|
@@ -14,6 +14,7 @@ namespace MOKA_Factory_Tools
|
|
|
{
|
|
|
internal class GMethod
|
|
|
{
|
|
|
+ public static MaInfo s_maInfo = null;
|
|
|
private static Dictionary<string, string> LastKaylaOrderInfo = new Dictionary<string, string>();
|
|
|
|
|
|
private static string url_MaInfo = "http://smes-prd-app01.tclking.com:9002/SAPService.asmx";
|
|
@@ -30,10 +31,16 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static bool GetMaInfo(string sn, out MaInfo maInfo, SQLiteConnection errorDBNow)
|
|
|
+ public static bool GetMaInfo(string sn, string order, out MaInfo maInfo, SQLiteConnection errorDBNow)
|
|
|
{
|
|
|
string desc;
|
|
|
maInfo = null;
|
|
|
+ if (s_maInfo != null && s_maInfo.ODF.Equals(order, StringComparison.InvariantCultureIgnoreCase) )
|
|
|
+ {
|
|
|
+ maInfo = s_maInfo;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
string strPost = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
|
|
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
|
|
|
"<soap:Body>" +
|
|
@@ -70,6 +77,8 @@ namespace MOKA_Factory_Tools
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ s_maInfo = maInfo;
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -283,7 +292,7 @@ namespace MOKA_Factory_Tools
|
|
|
{
|
|
|
// 请求新的订单信息;
|
|
|
MaInfo maInfo;
|
|
|
- if (!GetMaInfo(sn, out maInfo, null))
|
|
|
+ if (!GetMaInfo(sn, order, out maInfo, null))
|
|
|
{
|
|
|
Log.WriteErrorLog("Kayla GetMaInfo失败");
|
|
|
return false;
|