|
|
@@ -169,7 +169,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
//批量插入
|
|
|
if (b.btnInsert)
|
|
|
context.Response.Write(batchinsert(context.Request["data"], context.Request["PACKINGFORMCODE"],context.Request["PACKINGBOMID"],context.Request["GOODSID"],context.Request["MATERIALCODE"],
|
|
|
- context.Request["PACKINGFORMNAME"],context.Request["PACKINGLINE"],context.Request["GOODSTYPE"],context.Request["LOGOID"],context.Request["STATUS"],context.Request["REMARKS"]));
|
|
|
+ context.Request["PACKINGFORMNAME"],context.Request["PACKINGLINE"],context.Request["GOODSTYPE"],context.Request["LOGOID"],context.Request["STATUS"],context.Request["REMARKS"],
|
|
|
+ context.Request["PLATETYPE"],context.Request["STACKNUM"]));
|
|
|
else
|
|
|
context.Response.Write(new JsonResult(JsonStatus.rightError).ToJson());
|
|
|
break;
|
|
|
@@ -230,6 +231,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
m.BEGINTIME,
|
|
|
m.ENDTIME,
|
|
|
m.REMARKS,
|
|
|
+ D.DICTIONARYVALUE PLATETYPE,
|
|
|
+ D1.DICTIONARYVALUE STACKNUM,
|
|
|
m.VALUEFLAG,
|
|
|
m.ACCOUNTID,
|
|
|
m.CREATEUSERID,
|
|
|
@@ -238,7 +241,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
m.UPDATETIME
|
|
|
FROM
|
|
|
TP_MST_PACKINGFORM m
|
|
|
-
|
|
|
+ left join tp_mst_datadictionary d on m.platetype = d.dictionaryid and d.dictionarytype = 'TPC031'
|
|
|
+ left join tp_mst_datadictionary d1 on m.stacknum = d1.dictionaryid and d1.dictionarytype = 'TPC032'
|
|
|
--xuwei modify 2021-05-25
|
|
|
--LEFT JOIN TP_MST_GOODS g ON g.GOODSID = m.GOODSID
|
|
|
LEFT JOIN V_GOODS_MATERIALCODE g ON g.GOODSID = m.GOODSID AND g.MATERIALCODE = m.MATERIALCODE
|
|
|
@@ -392,6 +396,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
m.BEGINTIME,
|
|
|
m.ENDTIME,
|
|
|
m.REMARKS,
|
|
|
+ D.DICTIONARYVALUE PLATETYPE,
|
|
|
+ D1.DICTIONARYVALUE STACKNUM,
|
|
|
m.VALUEFLAG,
|
|
|
m.ACCOUNTID,
|
|
|
m.CREATEUSERID,
|
|
|
@@ -400,6 +406,9 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
m.UPDATETIME
|
|
|
FROM
|
|
|
TP_MST_PACKINGFORM m
|
|
|
+ left join tp_mst_datadictionary d on m.platetype = d.dictionaryid and d.dictionarytype = 'TPC031'
|
|
|
+ left join tp_mst_datadictionary d1 on m.stacknum = d1.dictionaryid and d1.dictionarytype = 'TPC032'
|
|
|
+
|
|
|
--LEFT JOIN TP_MST_PACKINGBOM p ON p.PACKINGBOMID = m.PACKINGBOMID
|
|
|
LEFT JOIN TP_MST_GOODS g ON g.GOODSID = m.GOODSID
|
|
|
LEFT JOIN TP_MST_LOGO l ON l.LOGOID = g.LOGOID
|
|
|
@@ -726,6 +735,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
ORDERNO,
|
|
|
STATUS,
|
|
|
PLATENUM,
|
|
|
+ PLATETYPE,
|
|
|
+ STACKNUM,
|
|
|
--OUTNUM,
|
|
|
--BEGINTIME,
|
|
|
--ENDTIME,
|
|
|
@@ -743,6 +754,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
@ORDERNO@,
|
|
|
@STATUS@,
|
|
|
@PLATENUM@,
|
|
|
+ @PLATETYPE@,
|
|
|
+ @STACKNUM@,
|
|
|
--@OUTNUM@,
|
|
|
--@BEGINTIME@,
|
|
|
--@ENDTIME@,
|
|
|
@@ -761,6 +774,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
new CDAParameter("ORDERNO", form["ORDERNO"]),
|
|
|
new CDAParameter("STATUS", form["STATUS"]),
|
|
|
new CDAParameter("PLATENUM", form["PLATENUM"]),
|
|
|
+ new CDAParameter("PLATETYPE", form["PLATETYPE"]),
|
|
|
+ new CDAParameter("STACKNUM", form["STACKNUM"]),
|
|
|
//new CDAParameter("OUTNUM",form["OUTNUM"]),
|
|
|
//new CDAParameter("BEGINTIME",form["BEGINTIME"]),
|
|
|
//new CDAParameter("ENDTIME",form["ENDTIME"]),
|
|
|
@@ -1201,7 +1216,7 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
/// </summary>
|
|
|
/// <returns>json</returns>
|
|
|
private string batchinsert(string jsondata, string packingformcode, string packingbomid, string goodsid, string materialcode, string packingformname,
|
|
|
- string packingline, string goodstype, string logoid,string status,string remarks)
|
|
|
+ string packingline, string goodstype, string logoid,string status,string remarks,string platetype,string stacknum)
|
|
|
{
|
|
|
using (IDataAccess conn = DataAccess.Create())
|
|
|
{
|
|
|
@@ -1497,6 +1512,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
ORDERNO,
|
|
|
STATUS,
|
|
|
PLATENUM,
|
|
|
+ PLATETYPE,
|
|
|
+ STACKNUM,
|
|
|
--OUTNUM,
|
|
|
--BEGINTIME,
|
|
|
--ENDTIME,
|
|
|
@@ -1514,6 +1531,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
@ORDERNO@,
|
|
|
@STATUS@,
|
|
|
@PLATENUM@,
|
|
|
+ @PLATETYPE@,
|
|
|
+ @STACKNUM@,
|
|
|
--@OUTNUM@,
|
|
|
--@BEGINTIME@,
|
|
|
--@ENDTIME@,
|
|
|
@@ -1534,6 +1553,8 @@ public class packingform : IHttpHandler, IReadOnlySessionState
|
|
|
new CDAParameter("LOGOID", logoid),
|
|
|
new CDAParameter("GOODSID", goodsid),
|
|
|
new CDAParameter("MATERIALCODE", materialcode),
|
|
|
+ new CDAParameter("PLATETYPE", platetype),
|
|
|
+ new CDAParameter("STACKNUM", stacknum),
|
|
|
new CDAParameter("REMARKS", remarks +"【列:"+detailTable.Rows[i]["COLUMNID"].ToString()+"层:"+detailTable.Rows[i]["LAYERID"].ToString()+"栈板号"+detailTable.Rows[i]["GROUPID"].ToString()+"】"),
|
|
|
new CDAParameter("ACCOUNTID", HttpContext.Current.Session["accountId"]),
|
|
|
new CDAParameter("CREATEUSERID", HttpContext.Current.Session["userId"]),
|