|
@ -1,6 +1,8 @@ |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Data; |
|
|
using System.Data; |
|
|
using System.Reflection; |
|
|
using System.Reflection; |
|
|
|
|
|
using System.Runtime.Remoting.Contexts; |
|
|
|
|
|
using System.Text; |
|
|
using System.Web.Script.Services; |
|
|
using System.Web.Script.Services; |
|
|
using System.Web.Services; |
|
|
using System.Web.Services; |
|
|
using Tools; |
|
|
using Tools; |
|
@ -47,6 +49,7 @@ namespace Webservice |
|
|
model.DataList = null; |
|
|
model.DataList = null; |
|
|
|
|
|
|
|
|
LogHelper.WriteSysLogBase("箱码与总成码关系绑定,入参boxCode=" + boxCode + ",barCode=" + barCode, MethodBase.GetCurrentMethod().Name); |
|
|
LogHelper.WriteSysLogBase("箱码与总成码关系绑定,入参boxCode=" + boxCode + ",barCode=" + barCode, MethodBase.GetCurrentMethod().Name); |
|
|
|
|
|
Context.Response.ContentType = "application/json; charset=utf-8"; |
|
|
|
|
|
|
|
|
#region 参数判断
|
|
|
#region 参数判断
|
|
|
//if (string.IsNullOrWhiteSpace(app_id))
|
|
|
//if (string.IsNullOrWhiteSpace(app_id))
|
|
@ -55,12 +58,12 @@ namespace Webservice |
|
|
// Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model));
|
|
|
// Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model));
|
|
|
// return;
|
|
|
// return;
|
|
|
//}
|
|
|
//}
|
|
|
//if (string.IsNullOrWhiteSpace(boxCode))
|
|
|
if (string.IsNullOrWhiteSpace(boxCode)) |
|
|
//{
|
|
|
{ |
|
|
// model.ErrReason = "缺少必要传入参数 boxCode";
|
|
|
model.ErrReason = "缺少必要传入参数 boxCode"; |
|
|
// Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model));
|
|
|
Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model)); |
|
|
// return;
|
|
|
return; |
|
|
//}
|
|
|
} |
|
|
//if (string.IsNullOrWhiteSpace(barCode))
|
|
|
//if (string.IsNullOrWhiteSpace(barCode))
|
|
|
//{
|
|
|
//{
|
|
|
// model.ErrReason = "缺少必要传入参数 barCode";
|
|
|
// model.ErrReason = "缺少必要传入参数 barCode";
|
|
@ -133,6 +136,7 @@ namespace Webservice |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model)); |
|
|
Context.Response.Write(JSONTools.ScriptSerialize<JsonModel<MKModel>>(model)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|