|
|
@@ -231,8 +231,8 @@ namespace UAS_MES_NEW.Make
|
|
|
}
|
|
|
|
|
|
|
|
|
- int st_maxusecount = (int)dh.getFieldDataByCondition("stencil", "nvl(st_maxusecount, 0)", $"st_code = '{toolingVal.Text.Trim()}'");
|
|
|
- int st_usecount = (int)dh.getFieldDataByCondition("stencil", "nvl(st_usecount, 0)", $"st_code = '{toolingVal.Text.Trim()}'");
|
|
|
+ int st_maxusecount = Convert.ToInt32(dh.getFieldDataByCondition("stencil", "nvl(st_maxusecount, 0)", $"st_code = '{toolingVal.Text.Trim()}'"));
|
|
|
+ int st_usecount = Convert.ToInt32(dh.getFieldDataByCondition("stencil", "nvl(st_usecount, 0)", $"st_code = '{toolingVal.Text.Trim()}'"));
|
|
|
if (st_maxusecount - st_usecount <= 0)
|
|
|
{
|
|
|
ShowMsg(MsgBox, 0, $"NG,可使用次数不足,使用次数上限为:{st_maxusecount},当前使用次数为:{st_usecount}");
|