Browse Source

装箱报文修改

callm 4 weeks ago
parent
commit
2bc8696bb6

+ 1 - 1
UAS_MES_HYSX/FunctionCode/Packing/Packing_PackageCollectionZX.cs

@@ -669,12 +669,12 @@ namespace UAS_MES_NEW.Packing
 
         private void Packing_Click(object sender, EventArgs e)
         {
+            HttpServer.GetOutBoxInfo(pa_outboxcode.Text);
             if (dh.CheckExist("package", "pa_outboxcode='" + pa_outboxcode.Text + "' and nvl(pa_status,0)=0"))
             {
                 string Seal = MessageBox.Show(this.ParentForm, "是否确认封箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
                 if (Seal == "Yes")
                 {
-                    HttpServer.GetOutBoxInfo(pa_outboxcode.Text);
                     OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "采集完成,手动封箱成功\n", Color.Green);
                     dh.UpdateByCondition("package", "pa_status=1,pa_totalqty=pa_currentqty,pa_packageqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
                     pa_status.Text = "1";

+ 1 - 1
UAS_MES_HYSX/PublicMethod/HttpServer.cs

@@ -334,7 +334,7 @@ namespace UAS_MES_NEW.PublicMethod
     {
         static DataHelper dh = new DataHelper();
         public static int SN_SERVICE_PORT = 21610;
-        public static int MAX_BUF_SIZE = 16392;
+        public static int MAX_BUF_SIZE = 32784;
         static string ComputeSha256Hash(string input)
         {
             using (SHA256 sha256 = SHA256.Create())