Эх сурвалжийг харах

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 7 жил өмнө
parent
commit
04db8d9d62

+ 11 - 0
UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

@@ -88,6 +88,17 @@ namespace UAS_MES.Make
         {
             if (e.KeyCode == Keys.Enter)
             {
+                string pa_type = dh.getFieldDataByCondition("package", "pa_type", "pa_outboxcode = '" + pa_outboxcode.Text + "'").ToString();
+                if (pa_type == "1")
+                {
+                    OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "为卡通箱,不可进行操作\n", Color.Red, pa_outboxcode);
+                    return;
+                }
+                else if (pa_type == "2")
+                {
+                    OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "为大箱,不可进行操作\n", Color.Red, pa_outboxcode);
+                    return;
+                }
                 LoadGridData();
                 sql.Clear();
                 sql.Append("select pa_makecode,pa_id,pa_status,nvl(pa_standardqty,PR_PALLETQTY)pa_standardqty,pa_prodcode,pa_packageqty,pa_totalqty,pa_salecode,pa_currentqty,pr_code pa_prodcode,pa_outboxcode,pa_totalqty,pa_custcode ");

+ 2 - 2
UAS-MES/UAS-MES.csproj

@@ -38,11 +38,11 @@
     <ProductName>优软MES系统</ProductName>
     <PublisherName>深圳市优软科技有限公司</PublisherName>
     <SuiteName>优软MES系统</SuiteName>
-    <MinimumRequiredVersion>1.0.0.603</MinimumRequiredVersion>
+    <MinimumRequiredVersion>1.0.0.606</MinimumRequiredVersion>
     <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
     <WebPage>publish.htm</WebPage>
     <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
-    <ApplicationRevision>604</ApplicationRevision>
+    <ApplicationRevision>607</ApplicationRevision>
     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
     <UseApplicationTrust>true</UseApplicationTrust>
     <CreateDesktopShortcut>true</CreateDesktopShortcut>