|
@@ -2267,6 +2267,7 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ #region 开始抄写;
|
|
|
// 如果是抄写EDID,则不获取白平衡数据;
|
|
|
if (CommonMethod.IsEDIDCopy(midListNow))
|
|
|
{
|
|
@@ -4662,6 +4663,7 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
}
|
|
|
#endregion
|
|
|
+ #endregion
|
|
|
|
|
|
//数据上传
|
|
|
if (midListNow.host == "LocalPC" && !preloadNow)
|
|
@@ -5076,56 +5078,6 @@ namespace MOKA_Factory_Tools
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 获取订单可用key余量
|
|
|
- /// </summary>
|
|
|
- /// <param name="order">订单号</param>
|
|
|
- /// <returns></returns>
|
|
|
- public bool GetOrderRemainKeyCount(string order)
|
|
|
- {
|
|
|
- string url = midListNow.host;
|
|
|
- string url1;
|
|
|
- string count;
|
|
|
- string code;
|
|
|
- string desc;
|
|
|
- if (!CommonMethod.HTTPChecker(url))
|
|
|
- return false;
|
|
|
- HttpHelper http = new HttpHelper();
|
|
|
- HttpItem item = new HttpItem()
|
|
|
- {
|
|
|
- Encoding = Encoding.Default,
|
|
|
- Method = "post",
|
|
|
- ContentType = "application/x-www-form-urlencoded",
|
|
|
- Timeout = 3000
|
|
|
- };
|
|
|
- url1 = url + "/getAvailableKeyCount.do?";
|
|
|
- item.URL = url1;
|
|
|
- item.Postdata = "ordernum=" + order;
|
|
|
- HttpResult result = http.GetHtml(item);
|
|
|
- if (result.StatusCode == System.Net.HttpStatusCode.OK)
|
|
|
- {
|
|
|
- Log.WriteGetKeyLog("\r\nGetOrderRemainKeyCount count:\r\n" + item.URL + "\r\n" + item.Postdata + "\r\n" + result.Html);
|
|
|
- if (Xmlconfig.KeyCountXml(result.Html, "response", "count", out code, out desc, out count))
|
|
|
- {
|
|
|
- availableCount = count.Replace(",", "");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- availableCount = "unknow";
|
|
|
- CommonMethod.ReportErrormsg("Fail to parse GetOrderRemainKeyCount", desc + "\r\n" + result.Html + "\r\nAddress: " + item.URL + "\r\nPostdata: " + item.Postdata, errorDBNow);
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- availableCount = "unknow";
|
|
|
- CommonMethod.ReportErrormsg("Fail to get GetOrderRemainKeyCount", result.StatusDescription + "\r\n" + result.Html + "\r\nAddress: " + item.URL + "\r\nPostdata: " + item.Postdata, errorDBNow);
|
|
|
- return false;
|
|
|
- }
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 按键触发在线抄写
|
|
|
/// 注意:此按键的作用是给不需要输入SN号的工厂使用;
|