|
@@ -25,6 +25,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
bool SetMobileData(string iTSN, string iSN, string iSourceCode, string iMPKind, string iResult, string iErrCode, string flag, out string oErrorMessage);
|
|
|
bool SetPcbaData(string iSN, string iResCode, string iOperator, string iResult, string iErrCode, out string oErrMessage);
|
|
|
bool GoMo(string iMO, string iSN, string iResCode, out string oErrMessage);
|
|
|
+ string Test(string TEST);
|
|
|
}
|
|
|
|
|
|
[Guid("41EAB546-6EF4-464A-895A-9C34013A5D8C")]
|
|
@@ -328,7 +329,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
return false;
|
|
|
}
|
|
|
//通过序列号获取最近操作的工单号
|
|
|
- string ms_id = getFieldDataByCondition("makeserial", "ms_id", "ms_sncode='" + iSN + "'").ToString();
|
|
|
+ string ms_id = getFieldDataByCondition("makeserial", "max(ms_id)", "ms_sncode='" + iSN + "'").ToString();
|
|
|
if (ms_id != "")
|
|
|
{
|
|
|
DataTable dt = getFieldsDataByCondition("MakeSerial", new string[] { "ms_id", "ms_mac", "ms_bt", "ms_meid", "ms_netcode", "ms_psn", "ms_imei1", "ms_imei2", "ms_imei3", "ms_othcode1", "ms_othcode2", "ms_othcode3", "ms_othid1", "ms_othid2", "ms_othid3" }, "ms_id='" + ms_id + "'");
|
|
@@ -493,6 +494,9 @@ namespace BenQGuru.eMES.DLLService
|
|
|
public bool SetMobileData(string iTSN, string iSN, string iSourceCode, string iMPKind, string iResult, string iErrCode, string flag, out string oErrorMessage)
|
|
|
{
|
|
|
oErrorMessage = "";
|
|
|
+ if (iTSN == "") { oErrorMessage = "TSN不能为空"; return false; }
|
|
|
+ if (iSN == "") { oErrorMessage = "SN不能为空"; return false; }
|
|
|
+ if (iSourceCode == "") { oErrorMessage = "岗位资源不能为空"; return false; }
|
|
|
string[] param = new string[] { iTSN, iSN, iSourceCode, "", iResult, iErrCode, oErrorMessage };
|
|
|
string[] ParamName = new string[] { "v_i_tsn", "v_i_sncode", "v_i_sourcecode", "v_i_usercode", "v_i_result", "v_i_errcode", "v_o_errmsg" };
|
|
|
CallProcedure("CS_DLLSNCHANGE", ParamName, ref param);
|
|
@@ -1024,5 +1028,10 @@ namespace BenQGuru.eMES.DLLService
|
|
|
cmd.Connection.Open();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public string Test(string TEST)
|
|
|
+ {
|
|
|
+ return TEST;
|
|
|
+ }
|
|
|
}
|
|
|
}
|