|
@@ -17,7 +17,7 @@ namespace MOKA_Factory_Tools
|
|
|
public static bool CheckLogin(string url)
|
|
|
{
|
|
|
HttpHelper http = new HttpHelper();
|
|
|
- HttpItem item = new HttpItem() {URL = url, Encoding = Encoding.UTF8,Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false};
|
|
|
+ HttpItem item = new HttpItem() {URL = url + "api/MESTestCollect/CheckLogin", Encoding = Encoding.UTF8,Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false};
|
|
|
item.ContentType = "application/json;charset=utf-8";
|
|
|
item.Postdata = string.Format("{{\"password\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\"}}", sanhuaLoginInfo.staffCode, sanhuaLoginInfo.password, sanhuaLoginInfo.resourceCode);
|
|
|
HttpResult result = http.GetHtml(item);
|
|
@@ -45,7 +45,7 @@ namespace MOKA_Factory_Tools
|
|
|
public static bool ProductRouteCheck(string url, string productSN)
|
|
|
{
|
|
|
HttpHelper http = new HttpHelper();
|
|
|
- HttpItem item = new HttpItem() { URL = url, Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
+ HttpItem item = new HttpItem() { URL = url + "api/MESTestCollect/ProductRouteCheck", Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
item.ContentType = "application/json;charset=utf-8";
|
|
|
item.Postdata = string.Format("{{\"jigEdition\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\",\"productSN\":\"{3}\"}}",
|
|
|
sanhuaLoginInfo.jigEdtion, sanhuaLoginInfo.resourceCode, sanhuaLoginInfo.staffCode, productSN);
|
|
@@ -74,7 +74,7 @@ namespace MOKA_Factory_Tools
|
|
|
public static bool UploadIdcData(string url, string productSN, string acasId)
|
|
|
{
|
|
|
HttpHelper http = new HttpHelper();
|
|
|
- HttpItem item = new HttpItem() { URL = url, Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
+ HttpItem item = new HttpItem() { URL = url + "api/MESTestCollect/UploadIdcData", Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
item.ContentType = "application/json;charset=utf-8";
|
|
|
item.Postdata = string.Format("{{\"jigEdition\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\",\"productSN\":\"{3}\",\"attr\":\"{{\"ACASID\",\"{4}\"}}\"}}",
|
|
|
sanhuaLoginInfo.jigEdtion, sanhuaLoginInfo.resourceCode, sanhuaLoginInfo.staffCode, productSN, acasId);
|
|
@@ -103,7 +103,7 @@ namespace MOKA_Factory_Tools
|
|
|
public static bool ProductMoveNext(string url, string productSN, string result, string defectCode)
|
|
|
{
|
|
|
HttpHelper http = new HttpHelper();
|
|
|
- HttpItem item = new HttpItem() { URL = url, Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
+ HttpItem item = new HttpItem() { URL = url + "api/MESTestCollect/ProductMoveNext", Encoding = Encoding.UTF8, Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false };
|
|
|
item.ContentType = "application/json;charset=utf-8";
|
|
|
item.Postdata = string.Format("{{\"jigEdition\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\",\"productSN\":\"{3}\",\"defectCode\":\"{4}\",\"result\":\"{5}\"}}",
|
|
|
sanhuaLoginInfo.jigEdtion, sanhuaLoginInfo.resourceCode, sanhuaLoginInfo.staffCode, productSN, defectCode, result);
|