Commit 0ac16077 LN

修改:数量为0导入后无法补料

1 个父辈 36e5869a
......@@ -575,6 +575,8 @@ namespace TSA_V.LoadCSVLibrary
foreach (string proName in propertyList)
{
try
{
PropertyInfo prop = props.First(c => c.Name == proName);//获取同名属性
if (prop != null)
{//如果属性存在
......@@ -582,6 +584,12 @@ namespace TSA_V.LoadCSVLibrary
int index = propIndexMap[proName];
array[index] = value;
}
}
catch (Exception ex)
{
LogUtil.error(ex.ToString());
}
}
string newStr = "";
......
......@@ -42,7 +42,7 @@ namespace TSA_V.LoadCSVLibrary
///数量
/// </summary>
[CSVAttribute("Count", true, "数量", "Quantity")]
public string ComCount { get; set; }
public string ComCount { get; set; } = "0";
/// <summary>
///X坐标
/// </summary>
......
......@@ -32,7 +32,7 @@ namespace TSA_V.DeviceLibrary
int zhao = (int)(freespace / 1024);
if (zhao < checkZhao)
{
LogUtil.error(volume + "盘剩余空间:" + zhao + "G, 不再保存识别图片");
LogUtil.error(volume + "盘剩余空间:" + zhao + "G, 不再保存图片");
return false;
}
}
......
......@@ -70,6 +70,8 @@ namespace TSA_V
}
currIndex = 0;
ShowCom();
//if (!Setting_NInit.App_IsDebug)
{
if (TSAVBean.Status <= TSAVStatus.Wait)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.DeviceNotOk, "设备未连接,无法备料!"));
......@@ -80,6 +82,8 @@ namespace TSA_V
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.DeviceInReset, "设备正在重置中,请稍后再备料!"));
return false;
}
}
return true;
}
......
......@@ -510,7 +510,8 @@ namespace TSA_V
private void btnReplenish_Click(object sender, EventArgs e)
{
try
{
if (WorkModeUtil.OnlyGB)
{
string msg = ResourceControl.GetString("GuobanMode", "操作失败,当前为过板模式");
......@@ -555,6 +556,13 @@ namespace TSA_V
this.Visible = true;
}
}
}
catch (Exception ex)
{
LogUtil.error("btnReplenish_Click 出错:" + ex.ToString());
MessageBox.Show(ex.ToString());
}
}
private DialogResult WorkModeUtil_boxShowEvent(string msg, string okMsg)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!