|
|
@@ -1187,7 +1187,14 @@ namespace UAS_MES_NEW.Make
|
|
|
{
|
|
|
if (Keys.Enter == e.KeyCode)
|
|
|
{
|
|
|
- int count = 0;
|
|
|
+ dt = (DataTable)dh.ExecuteSql("select * from make left join craft on ma_prodcode=cr_prodcode and cr_code=ma_craftcode " +
|
|
|
+ "left join craftdetail on cd_crid=cr_id where ma_code='" + ma_code.Text + "' and cd_stepcode='" + User.CurrentStepCode + "'", "select");
|
|
|
+ if (dt.Rows.Count == 0)
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">工序" + User.CurrentStepCode + "不存在工单工艺路线中\n", Color.Red, SNCount);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ int count;
|
|
|
if (!int.TryParse(SNCount.Text, out count))
|
|
|
{
|
|
|
OperateResult.AppendText(">请输入正确的数字\n", Color.Red, SNCount);
|