Ver Fonte

BUG修改

callm há 4 dias atrás
pai
commit
9f240dad2e

+ 7 - 1
UAS_MES_YDCY/FunctionCode/Packing/Packing_CartonBoxPass.cs

@@ -133,7 +133,7 @@ namespace UAS_MES_NEW.Packing
                     double ActualWeight = double.Parse(weight.Text == "" ? "0" : weight.Text.Replace("kg", "").Trim());
                     //需要检查称重重量
 
-                    dh.UpdateByCondition("package", "pa_printcount= nvl(pa_printcount,0)+1,pa_weight='" + ActualWeight + "',pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + outboxcode.Text + "'");
+                    //dh.UpdateByCondition("package", "pa_printcount= nvl(pa_printcount,0)+1,pa_weight='" + ActualWeight + "',pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + outboxcode.Text + "'");
                     if (AutoPrint.Checked)
                     {
                         if (PrintLabel.Items.Count > 0)
@@ -145,6 +145,12 @@ namespace UAS_MES_NEW.Packing
                             OperateResult.AppendText(">>产品" + pr_code.Text + "未维护卡通标签\n", Color.Red);
                         }
                     }
+                    ListViewItem lsi = new ListViewItem();
+                    lsi.SubItems.Add(outboxcode.Text);
+                    lsi.SubItems.Add(ActualWeight.ToString() + pr_cartonunit.Text);
+                    lsi.SubItems.Add(System.DateTime.Now.ToString());
+                    WeighRecord.Items.Add(lsi);
+                    OperateResult.AppendText(">>箱号" + outboxcode.Text + "称重完成\n", Color.Green);
                     if (!LogicHandler.OutBoxStepPass(outboxcode.Text, ma_code.Text, User.UserSourceCode, User.UserCode, "卡通箱:" + outboxcode.Text + "整箱过站", "卡通箱整箱过站", out ErrorMessage))
                     {
                         OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, outboxcode);

+ 2 - 1
UAS_MES_YDCY/FunctionCode/Warehouse/Warehouse_FinishedProductOutSumNEW.cs

@@ -980,10 +980,11 @@ namespace UAS_MES_NEW.Warehouse
             sql.Clear();
             sql.Append("insert into prodiomac(pim_id,pim_inoutno,pim_piid,pim_prodcode,pim_mac,pim_indate,pim_inman,pim_type,pim_outboxcode,pim_inorout,pim_class,pim_custpo,pim_custdetno,pim_pdid,pim_custprodcode)");
             sql.Append("select prodiomac_seq.nextval,'" + pi_inoutno.Text + "','" + pi_id.Text + "',ms_prodcode,ms_sncode,sysdate,'" + User.UserCode + "','" + pib_type + "','" + iBox + "','OUT','出货','" + custpo + "','" + custpodetno + "','" + PDID + "',ma_custprodcode " +
-                " from mes_package_view left join makeserial on ms_sncode=v_barcode and ms_makecode=v_makecode left join make on ma_code=ms_makecode where v_outboxcode='" + iBox + "' and   not exists (select 1 from prodiomac where PIM_PRODCODE = ms_prodcode and PIM_MAC = ms_sncode)");
+                " from mes_package_view left join makeserial on ms_sncode=v_barcode and ms_makecode=v_makecode left join make on ma_code=ms_makecode where v_outboxcode='" + iBox + "' and   not exists (select 1 from prodiomac where PIM_PRODCODE = ms_prodcode and PIM_MAC = ms_sncode and PIM_CLASS='出货')");
             dh.ExecuteSql(sql.GetString(), "insert");
         }
 
+
         private Boolean checkinsertprodiomac(string type, string iBox)
         {
             sql.Clear();