|
@@ -985,8 +985,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
|
|
|
this.txtBarcode.Focus();
|
|
this.txtBarcode.Focus();
|
|
|
this.txtBarcode.SelectAll();
|
|
this.txtBarcode.SelectAll();
|
|
|
return;
|
|
return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (string.IsNullOrWhiteSpace(item["mouldPlan"].ToString()) || Convert.ToInt32(item["mouldPlan"].ToString()) == 0 )
|
|
|
|
|
+ {
|
|
|
|
|
+ MessageBox.Show("此模具未报工,不能添加到成型线。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
|
|
|
+ this.txtBarcode.Focus();
|
|
|
|
|
+ this.txtBarcode.SelectAll();
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
//DataRow r = dtInfo.NewRow();
|
|
//DataRow r = dtInfo.NewRow();
|
|
|
//r["GroutingMouldCode"] = gMouldCode;
|
|
//r["GroutingMouldCode"] = gMouldCode;
|
|
|
//r["MouldSource"] = "1";
|
|
//r["MouldSource"] = "1";
|
|
@@ -1005,7 +1011,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
|
|
|
//r["NEWFLAG"] = "1";
|
|
//r["NEWFLAG"] = "1";
|
|
|
//dtInfo.Rows.Add(r);
|
|
//dtInfo.Rows.Add(r);
|
|
|
|
|
|
|
|
- int outputCount = Convert.ToInt32(item["OutputCount"]);
|
|
|
|
|
|
|
+ int outputCount = Convert.ToInt32(item["OutputCount"]);
|
|
|
if (outputCount == 1)
|
|
if (outputCount == 1)
|
|
|
{
|
|
{
|
|
|
DataRow r = dtInfo.NewRow();
|
|
DataRow r = dtInfo.NewRow();
|