|
|
@@ -13,7 +13,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
|
|
|
public interface IMESHelper
|
|
|
{
|
|
|
- [DispId(12)]
|
|
|
+ [DispId(14)]
|
|
|
bool CheckRoutePassed(string iSN, string iResCode, out string oErrMessage);
|
|
|
bool GetRcardMOInfo(string iSN, out string oMoCode, out string oErrMessage);
|
|
|
bool CheckUserAndResourcePassed(string iUserCode, string iResCode, string iPassWord, out string oErrMessage);
|
|
|
@@ -26,6 +26,8 @@ namespace BenQGuru.eMES.DLLService
|
|
|
bool SetMobileData(string iTSN, string iSN, string iSourceCode, string iOperator, 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);
|
|
|
+ bool GetSoftVersion(string iSN, out string oSoftVersion, out string oErrMessage);
|
|
|
+ bool GetProductRelation(string iSN, out string oWIFI, out string oBT, out string IMEI1, out string IMEI2, out string IMEI3, out string oNetCode, out string oMEID, out string oErrMessage);
|
|
|
}
|
|
|
|
|
|
[Guid("41EAB546-6EF4-464A-895A-9C34013A5D8C")]
|
|
|
@@ -114,6 +116,70 @@ namespace BenQGuru.eMES.DLLService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [Description("获取工单软件版本")]
|
|
|
+ public bool GetSoftVersion(string iSN, out string oSoftVersion, out string oErrMessage)
|
|
|
+ {
|
|
|
+ string oMakeCode = "";
|
|
|
+ oErrMessage = "";
|
|
|
+ GetRcardMOInfo(iSN, out oMakeCode, out oErrMessage);
|
|
|
+ oSoftVersion = getFieldDataByCondition("make", "ma_softversion", "ma_code='" + oMakeCode + "'").ToString();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [Description("获取SN关联采集信息")]
|
|
|
+ public bool GetProductRelation(string iSN, out string oWIFI, out string oBT, out string oIMEI1, out string oIMEI2, out string oIMEI3, out string oNetCode, out string oMEID, out string oErrMessage)
|
|
|
+ {
|
|
|
+ oWIFI = "";
|
|
|
+ oBT = "";
|
|
|
+ oIMEI1 = "";
|
|
|
+ oIMEI2 = "";
|
|
|
+ oIMEI3 = "";
|
|
|
+ oNetCode = "";
|
|
|
+ oMEID = "";
|
|
|
+ string oMakeCode = "";
|
|
|
+ if (GetRcardMOInfo(iSN, out oMakeCode, out oErrMessage))
|
|
|
+ {
|
|
|
+ DataTable dt = (DataTable)ExecuteSql("select mal_mac,mal_bt from makeaddresslist where mal_makecode='" + oMakeCode + "' and rownum=1 ", "select");
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ if (dt.Rows[0]["mal_mac"].ToString() != "")
|
|
|
+ {
|
|
|
+ oWIFI = "Required";
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["mal_bt"].ToString() != "")
|
|
|
+ {
|
|
|
+ oBT = "Required";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dt = (DataTable)ExecuteSql("select mil_imei1,mil_imei2,mil_imei3,mil_netcode,mil_meid from makeimeilist where mil_makecode='" + oMakeCode + "' and rownum=1", "select");
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ if (dt.Rows[0]["mil_imei1"].ToString() != "")
|
|
|
+ {
|
|
|
+ oIMEI1 = "Required";
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["mil_imei2"].ToString() != "")
|
|
|
+ {
|
|
|
+ oIMEI2 = "Required";
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["mil_imei3"].ToString() != "")
|
|
|
+ {
|
|
|
+ oIMEI3 = "Required";
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["mil_netcode"].ToString() != "")
|
|
|
+ {
|
|
|
+ oNetCode = "Required";
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["mil_meid"].ToString() != "")
|
|
|
+ {
|
|
|
+ oMEID = "Required";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else return false;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 验证用户身份信息和岗位资源
|
|
|
/// </summary>
|