|
|
@ -239,7 +239,7 @@ namespace QualityAndOrder |
|
|
BindOrderGrid(); |
|
|
BindOrderGrid(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
OrderDetailRpc.ChangeShowType((long)preOrderGrid.CurrentRow.Cells["P_WeightBill_ID"].Value, (bool)preOrderGrid.CurrentRow.Cells["P_Show"].Value); |
|
|
|
|
|
|
|
|
OrderDetailRpc.ChangeShowType((long)preOrderGrid.CurrentRow.Cells["P_WeightBill_ID"].Value, !(bool)preOrderGrid.CurrentRow.Cells["P_Show"].Value); |
|
|
BindPreOrderGrid(); |
|
|
BindPreOrderGrid(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -282,8 +282,9 @@ namespace QualityAndOrder |
|
|
var lastNumber = OrderDetailRpc.GetLastNumber(lastOrderDetail.WeightBill_ID, lastOrderDetail.ID); |
|
|
var lastNumber = OrderDetailRpc.GetLastNumber(lastOrderDetail.WeightBill_ID, lastOrderDetail.ID); |
|
|
|
|
|
|
|
|
if (lastOrderDetail.PlanNumber > lastNumber) |
|
|
if (lastOrderDetail.PlanNumber > lastNumber) |
|
|
throw new Exception("排宰总头数多余过磅头数"); |
|
|
|
|
|
if (lastOrderDetail.PlanNumber == lastNumber) |
|
|
|
|
|
|
|
|
throw new Exception("排宰总头数多于过磅头数"); |
|
|
|
|
|
var dbCurrentNumber = OrderDetailRpc.GetCurrentOrderPlanNumber(lastOrderDetail.ID); |
|
|
|
|
|
if (lastOrderDetail.PlanNumber == dbCurrentNumber) |
|
|
return; |
|
|
return; |
|
|
if (lastOrderDetail.PlanNumber == 0) |
|
|
if (lastOrderDetail.PlanNumber == 0) |
|
|
{ |
|
|
{ |
|
|
|