|
@@ -61,6 +61,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("序列号对应工序检测")]
|
|
|
public bool CheckRoutePassed(string iSN, string iResCode, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -108,6 +110,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("验证身份信息")]
|
|
|
public bool CheckUserAndResourcePassed(string iUserCode, string iResCode, string iPassWord, out string oErrMessage)
|
|
|
{
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
oErrMessage = "";
|
|
|
if (iUserCode == "" || iPassWord == "" || iResCode == "")
|
|
|
{
|
|
@@ -178,6 +182,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("分配MAC和BT信息")]
|
|
|
public bool GetAddressRangeByMO(string iSN, out string oWIFI, out string oBT, out string oCode1, out string oCode2, out string oCdoe3, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
oWIFI = "";
|
|
|
oBT = "";
|
|
|
oCode1 = "";
|
|
@@ -227,6 +232,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("分配IMEI和NetCode信息")]
|
|
|
public bool GetMEIOrNetCodeRange(string iSN, string iIMEI1, string iNetCode, out string oIMEI1, out string oIMEI2, out string oMEID, out string oNetCode, out string oPSN, out string oID1, out string oID2, out string oID3, out string oID4, out string oID5, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
oIMEI1 = "";
|
|
|
oIMEI2 = "";
|
|
|
oMEID = "";
|
|
@@ -264,6 +270,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("获取工单软件版本")]
|
|
|
public bool GetSoftVersion(string iSN, out string oSoftVersion, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
string oMakeCode = "";
|
|
|
oErrMessage = "";
|
|
|
GetRcardMOInfo(iSN, out oMakeCode, out oErrMessage);
|
|
@@ -281,6 +288,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("获取序列号对应工单信息")]
|
|
|
public bool GetRcardMOInfo(string iSN, out string oMoCode, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
//取MakeProcess表中的执行记录ID最大的一个工单的号码
|
|
|
oMoCode = "";
|
|
|
if (iSN == "")
|
|
@@ -329,6 +337,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("查询已分配的信息")]
|
|
|
public bool GetMobileAllInfo(string iSN, out string oWIFI, out string oBT, out string oCode1, out string oCode2, out string oCode3, out string oIMEI1, out string oIMEI2, out string oMEID, out string oNetCode, out string oPSN, out string oID1, out string oID2, out string oID3, out string oID4, out string oID5, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
oBT = "";
|
|
|
oMEID = "";
|
|
|
oWIFI = "";
|
|
@@ -395,6 +404,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
/// <param name="iUserCode"></param>
|
|
|
private void InsertMakeProcess(string iSnCode, string iMakeCode, string iSourceCode, string iMPKind, string result, string iUserCode)
|
|
|
{
|
|
|
+ iSnCode = iSnCode.ToUpper();
|
|
|
+ iSourceCode = iSourceCode.ToUpper();
|
|
|
string CurrentStep = "";
|
|
|
string LineCode = "";
|
|
|
string CurrentStepName = "";
|
|
@@ -423,6 +434,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("写入SN的Wifi,BT信息")]
|
|
|
public bool SetAddressInfo(string iSN, string iWIFI, string iBT, string iCode1, string iCode2, string iCode3, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -442,6 +454,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("序列号跳到下一 步")]
|
|
|
public bool SetStepFinish(string iMakeCode, string iSourceCode, string iSN, string iMPKind, string iResult, string iUserCode, string iErrCode, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iSourceCode = iSourceCode.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -518,6 +532,9 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("设置测试结果,结果必须为NG或者OK")]
|
|
|
public bool SetMobileData(string iTSN, string iSN, string iSourceCode, string iOperater, string iResult, string iErrCode, string flag, out string oErrorMessage)
|
|
|
{
|
|
|
+ iTSN = iTSN.ToUpper();
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iSourceCode = iSourceCode.ToUpper();
|
|
|
oErrorMessage = "";
|
|
|
if (iTSN == "") { oErrorMessage = "TSN不能为空"; return false; }
|
|
|
if (iSN == "") { oErrorMessage = "SN不能为空"; return false; }
|
|
@@ -533,6 +550,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
|
|
|
private bool CS_SetFinish(string iMakeCode, string iSourceCode, string iSN, string iUserCode, string iResult, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iSourceCode = iSourceCode.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -569,6 +588,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("设置测试结果")]
|
|
|
public bool SetTestDetail(string iSN, string iTestResult, string iResCode, string[] iTestDetail, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
if (iSN == "" || iSN == null)
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -610,6 +631,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("设置IMEI信息")]
|
|
|
public bool SetIMEIInfo(string iSN, string iIMEI1, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -639,6 +661,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("设置测试结果")]
|
|
|
public bool SetPcbaData(string iSN, string iResCode, string iOperator, string iResult, string iErrCode, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|
|
@@ -668,6 +692,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[Description("序列号归属工单")]
|
|
|
public bool GoMo(string iMO, string iSN, string iResCode, out string oErrMessage)
|
|
|
{
|
|
|
+ iSN = iSN.ToUpper();
|
|
|
+ iResCode = iResCode.ToUpper();
|
|
|
if (iSN == "")
|
|
|
{
|
|
|
oErrMessage = "SN不能为空";
|