|
|
@@ -462,13 +462,13 @@ namespace UAS_MES.PublicMethod
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- public static void DoCommandLog(string iCaller,string iUserCode, string iMakeCode, string iLineCode, string iSourceCode, string iOperate, string iResult, string iSncode, string iCheckno)
|
|
|
+ public static void DoCommandLog(string iCaller, string iUserCode, string iMakeCode, string iLineCode, string iSourceCode, string iOperate, string iResult, string iSncode, string iCheckno)
|
|
|
{
|
|
|
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_sncode,cl_code) select commandlog_seq.nextval,:iUserCode,sysdate,:iLineCode ,");
|
|
|
- sql.Append(":iSourceCode ,ms_makecode,:iOperate,:iResult,:iSncode,ms_checkno from makeserial where ms_sncode=:iSncode");
|
|
|
- dh.ExecuteSql(sql.ToString(), "insert", iCaller, iUserCode, iLineCode, iSourceCode, iOperate, iResult, iSncode, iSncode);
|
|
|
+ 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_sncode,cl_code) values( commandlog_seq.nextval,:cl_caller,:iUserCode,sysdate,:iLineCode ,");
|
|
|
+ sql.Append(":iSourceCode ,:iMakeCode,:iOperate,:iResult,:iSncode,:iCheckno)");
|
|
|
+ dh.ExecuteSql(sql.ToString(), "insert", iCaller, iUserCode, iLineCode, iSourceCode, iMakeCode, iOperate, iResult, iSncode, iCheckno);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -1359,7 +1359,7 @@ namespace UAS_MES.PublicMethod
|
|
|
if (dt.Rows[0]["ms_downstatus"].ToString() != "0")
|
|
|
{
|
|
|
ErrMessage = "序列号:" + iSonCode + "已下地,请先取消下地";
|
|
|
- return false ;
|
|
|
+ return false;
|
|
|
}
|
|
|
if (dt.Rows[0]["ms_nextmacode"].ToString() != "")
|
|
|
{
|