|
@@ -1423,6 +1423,7 @@ namespace JLHHJSvr.Helper
|
|
|
,actual_useqty
|
|
|
,qd_actual_size
|
|
|
,qd_pfgroupqty
|
|
|
+ ,formulaid
|
|
|
)
|
|
|
SELECT @mattressid
|
|
|
,printid
|
|
@@ -1437,6 +1438,7 @@ namespace JLHHJSvr.Helper
|
|
|
,actual_useqty
|
|
|
,qd_actual_size
|
|
|
,qd_pfgroupqty
|
|
|
+ ,formulaid
|
|
|
FROM u_mattress_interface_qd
|
|
|
WHERE mattressid = @copy_id";
|
|
|
cmd.Parameters.Clear();
|
|
@@ -1581,7 +1583,7 @@ namespace JLHHJSvr.Helper
|
|
|
foreach (var mx in qdlist)
|
|
|
{
|
|
|
mx.mattressid = mattressid;
|
|
|
- DbSqlHelper.Insert(cmd, mx, "mattressid,printid,itemname,bj_pzname,bj_pzname_mx,bj_pzname_mx_mx,mtrlid,erp_mtrlid,wrkgrpid,useqty,dscrp,actual_useqty,qd_actual_size,qd_pfgroupqty,ss_rate,ls_rate,sh_rate");
|
|
|
+ DbSqlHelper.Insert(cmd, mx, "mattressid,printid,itemname,bj_pzname,bj_pzname_mx,bj_pzname_mx_mx,mtrlid,erp_mtrlid,wrkgrpid,useqty,dscrp,actual_useqty,qd_actual_size,qd_pfgroupqty,ss_rate,ls_rate,sh_rate,formulaid");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1638,13 +1640,14 @@ namespace JLHHJSvr.Helper
|
|
|
,u_mattress_interface_qd.ss_rate
|
|
|
,u_mattress_interface_qd.ls_rate
|
|
|
,u_mattress_interface_qd.sh_rate
|
|
|
+ ,u_mattress_interface_qd.formulaid
|
|
|
FROM u_mattress_interface_qd
|
|
|
";
|
|
|
var whereList = new List<string>();
|
|
|
whereList.Add("mattressid = @mattressid");
|
|
|
var param = new Dictionary<string, object>();
|
|
|
param.Add("@mattressid", mattressid);
|
|
|
- var outFields = "mattressid, printid, itemname, bj_pzname, bj_pzname_mx, bj_pzname_mx_mx, mtrlid, erp_mtrlid, useqty, dscrp, actual_useqty, qd_actual_size, qd_pfgroupqty, wrkgrpid, ss_rate, ls_rate, sh_rate";
|
|
|
+ var outFields = "mattressid, printid, itemname, bj_pzname, bj_pzname_mx, bj_pzname_mx_mx, mtrlid, erp_mtrlid, useqty, dscrp, actual_useqty, qd_actual_size, qd_pfgroupqty, wrkgrpid, ss_rate, ls_rate, sh_rate, formulaid";
|
|
|
DbSqlHelper.SelectJoin(cmd, selectStr, ListEx.GetWhereStr(whereList), param, "printid", outFields, 0, 0, qdList);
|
|
|
|
|
|
|
|
@@ -1663,18 +1666,23 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
case "裥面":
|
|
|
chastrType.Add(mx.bj_pzname_mx_mx, 901);
|
|
|
+ mx.billtype = 901;
|
|
|
break;
|
|
|
case "裥底":
|
|
|
chastrType.Add(mx.bj_pzname_mx_mx, 902);
|
|
|
+ mx.billtype = 902;
|
|
|
break;
|
|
|
case "大侧":
|
|
|
chastrType.Add(mx.bj_pzname_mx_mx, 903);
|
|
|
+ mx.billtype = 903;
|
|
|
break;
|
|
|
case "小侧":
|
|
|
chastrType.Add(mx.bj_pzname_mx_mx, 904);
|
|
|
+ mx.billtype = 904;
|
|
|
break;
|
|
|
case "V侧":
|
|
|
chastrType.Add(mx.bj_pzname_mx_mx, 905);
|
|
|
+ mx.billtype = 905;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -1735,6 +1743,7 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
mtrlid = qdmx.mtrlid.Value,
|
|
|
erp_mtrlid = qdmx.erp_mtrlid,
|
|
|
+ formulaid = qdmx.formulaid
|
|
|
};
|
|
|
bcpMxList.Add(bcpmx);
|
|
|
}
|
|
@@ -1798,6 +1807,7 @@ namespace JLHHJSvr.Helper
|
|
|
mtrlid = arr[0].erp_mtrlid.Value;
|
|
|
}
|
|
|
qdmx.erp_mtrlid = mtrlid;
|
|
|
+ qdmx.formulaid = arr[0].formulaid;
|
|
|
}
|
|
|
|
|
|
bcpMattress.mxlist = bcpMxList;
|