|
@ -477,6 +477,16 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
|
|
|
|
|
var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>(); |
|
|
var orders = new List<FJC.Entity.ProductionPlan.WorkOrder>(); |
|
|
orders.Add(order1); |
|
|
orders.Add(order1); |
|
|
|
|
|
if (dgvPlan.Rows.Count > 1) |
|
|
|
|
|
{ |
|
|
|
|
|
var orders2 = new List<FJC.Entity.ProductionPlan.WorkOrder>(); |
|
|
|
|
|
var order2 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[1].DataBoundItem; |
|
|
|
|
|
orders2.Add(order2); |
|
|
|
|
|
if (orders[0].MATERIAL_NAME.Substring(0, 7) != orders2[0].MATERIAL_NAME.Substring(0, 7)) |
|
|
|
|
|
{ |
|
|
|
|
|
MessageBox.Show("计划工单即将变换配置,请注意!"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
List<LabelData> labels = new List<LabelData>(); |
|
|
List<LabelData> labels = new List<LabelData>(); |
|
|
|
|
|
|
|
@ -647,6 +657,17 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i].DataBoundItem; |
|
|
var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i].DataBoundItem; |
|
|
orders.Add(order1); |
|
|
orders.Add(order1); |
|
|
|
|
|
|
|
|
|
|
|
if ((i+1)<= count) |
|
|
|
|
|
{ |
|
|
|
|
|
var orders2 = new List<FJC.Entity.ProductionPlan.WorkOrder>(); |
|
|
|
|
|
var order2 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i + 1].DataBoundItem; |
|
|
|
|
|
orders2.Add(order2); |
|
|
|
|
|
if (orders[0].MATERIAL_NAME.Substring(0, 7) != orders2[0].MATERIAL_NAME.Substring(0, 7)) |
|
|
|
|
|
{ |
|
|
|
|
|
MessageBox.Show("计划工单即将变换配置,请注意!"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
toolStripButton1.Enabled = false; |
|
|
toolStripButton1.Enabled = false; |
|
|
|
|
|
|
|
|
List<LabelData> labels = new List<LabelData>(); |
|
|
List<LabelData> labels = new List<LabelData>(); |
|
|