shim 8 жил өмнө
parent
commit
1aef17168e

+ 2 - 10
UAS-MES/FunctionCode/Make/Make_RePrintLabel.cs

@@ -252,11 +252,7 @@ namespace UAS_MES.Make
                 OperateResult.AppendText("<<打印成功\n", Color.Green);
                 Print.CodeSoft(Tag.ToString(), lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), indate[PrintLabel.SelectedIndex]);
                 //打印成功,记录日志commandlog , cl_operate彩盒或者机身标补打印,cl_result补打印成功
-                sql.Clear();
-                sql.Append("insert into commandlog(cl_id,cl_caller,cl_man,cl_date,cl_linecode,cl_sourcecode,cl_makecode,cl_operate,");
-                sql.Append("cl_result,cl_outboxcode,cl_code) values (commandlog_seq.nextval,:caller,:inman,sysdate,:linecode,:sourcecode,:makecode,");
-                sql.Append(":operate,:result,:outboxcode,'')");
-                dh.ExecuteSql(sql.GetString(), "insert", Tag.ToString(),User.UserCode, User.UserLineCode, User.UserSourceCode, ms_makecode.Text, "卡通箱标签补打印,箱号:" + inputValue.Text, "补打印成功",inputValue.Text);
+                LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "卡通箱标签补打印,箱号:" + inputValue.Text, "补打印成功", inputValue.Text, "");
                 //如果pa_downstatus<>0,则更新pa_downstatus=-1 where pa_outboxcode=?code,同时插入记录至表 MAKEDOWN
                 if (mapB.Rows[0]["pa_downstatus"].ToString() == "0")
                 {
@@ -395,11 +391,7 @@ namespace UAS_MES.Make
                                 sql.Append("update makedown set md_status=0,Md_UPREASON='标签补打核对',Md_UPMAN='" + User.UserCode + "',Md_UPDATE=SYSDATE WHERE Md_OUTBOXCODE='" + TSN + "' AND Md_PRODCODE='" + infoc.Rows[0]["pa_prodcode"].ToString() + "' AND Md_STATUS=-1");
                             }
                             //记录操作日志commandlog , 补打核对,核对成功
-                            sql.Clear();
-                            sql.Append("insert into commandlog(cl_id,cl_caller,cl_man,cl_date,cl_linecode,cl_sourcecode,cl_makecode,cl_operate,");
-                            sql.Append("cl_result,cl_outboxcode,cl_code) values (commandlog_seq.nextval,:caller,:inman,sysdate,:linecode,:sourcecode,:makecode,");
-                            sql.Append(":operate,:result,:outboxcode,'')");
-                            dh.ExecuteSql(sql.GetString(), "insert",Tag.ToString(), User.UserCode, User.UserLineCode, User.UserSourceCode, infoc.Rows[0]["pa_makecode"].ToString(), "标签补打核对,卡通箱号:" + TSN, "核对成功",TSN);
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, infoc.Rows[0]["pa_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "标签补打核对,卡通箱号:" + TSN, "核对成功", TSN, "");
                         }
                         else
                         {