Ver Fonte

模具编辑 生产计划 编辑时不需要必须输入生产计划

qinqi há 1 ano atrás
pai
commit
7a7ef6dd2d
1 ficheiros alterados com 10 adições e 8 exclusões
  1. 10 8
      DK.Client/PCModule/F_PC_1002.cs

+ 10 - 8
DK.Client/PCModule/F_PC_1002.cs

@@ -400,6 +400,15 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
 					this.scbGoods.Focus();
 					return false;
 				}
+
+				if (this.ftcMouldType.Text == "石膏" && this.CBMouldPlan.SelectedValue == null)
+				{
+					MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产计划"),
+						this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
+						MessageBoxDefaultButton.Button1);
+					this.CBMouldPlan.Focus();
+					return false;
+				}
 			}
 			if (this.ftcMouldType.SelectedValue == null)
 			{
@@ -457,14 +466,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
 				this.txtOutputCount.Focus();
 				return false;
 			}
-			if (this.ftcMouldType.Text == "石膏" && this.CBMouldPlan.SelectedValue == null)
-			{
-				MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "生产计划"),
-					this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
-					MessageBoxDefaultButton.Button1);
-				this.CBMouldPlan.Focus();
-				return false;
-			}
+			
 			return true;
 		}
         #endregion