Commit 0ac16077 LN

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

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