Browse Source

DoCommandLog方法修改

Hcsy 8 years ago
parent
commit
001f2e0686
1 changed files with 3 additions and 3 deletions
  1. 3 3
      UAS-MES/PublicMethod/LogicHandler.cs

+ 3 - 3
UAS-MES/PublicMethod/LogicHandler.cs

@@ -458,9 +458,9 @@ namespace UAS_MES.PublicMethod
         {
             sql.Clear();
             sql.Append("insert into commandlog(cl_id,cl_man,cl_date,cl_linecode,cl_sourcecode,cl_makecode,cl_operate,");
-            sql.Append("cl_result,cl_sncode,cl_code) values(commandlog_seq.nextval,'"+iUserCode+"',sysdate,'"+ iLineCode + "',");
-            sql.Append("'"+ iSourceCode + "','"+iMakeCode+"','"+iOperate+"','"+iResult+"','"+iSncode+"','"+ iCheckno + "')");
-            dh.ExecuteSql(sql.ToString(), "insert");
+            sql.Append("cl_result,cl_sncode,cl_code) values(commandlog_seq.nextval,:iUserCode,sysdate,:iLineCode ,");
+            sql.Append(":iSourceCode ,:iMakeCode,:iOperate,:iResult,:iSncode,:iCheckno )");
+            dh.ExecuteSql(sql.ToString(), "insert", iUserCode, iMakeCode, iLineCode, iSourceCode, iOperate, iResult, iSncode, iCheckno);
         }
 
         /// <summary>