xiachangming 2 лет назад
Родитель
Сommit
fc8f13756e
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      DK.Client/PCModule/F_PC_1001.cs

+ 16 - 0
DK.Client/PCModule/F_PC_1001.cs

@@ -722,6 +722,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                 {
                     return;
                 }
+                DataRow[] item1 = dt.Select("Sel = 1 and plan_code is  null ");
+                if (item1 != null && item1.Length > 0)
+                {
+                    MessageBox.Show("存在未报工模具",
+                        this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
+                        MessageBoxDefaultButton.Button1);
+                    return;
+                }
                 DataRow[] items = dt.Select("Sel = 1 and plan_code is not null ");
                 if (items == null || items.Length == 0)
                 {
@@ -764,6 +772,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                 {
                     return;
                 }
+                DataRow[] item1 = dt.Select("Sel = 1 and plan_code is not null ");
+                if (item1 != null && item1.Length>0 )
+                {
+                    MessageBox.Show("存在已报工模具",
+                        this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning,
+                        MessageBoxDefaultButton.Button1);
+                    return;
+                }
                 DataRow[] items = dt.Select("Sel = 1 and plan_code is  null ");
                 if (items == null || items.Length == 0)
                 {