|
@@ -325,11 +325,13 @@ namespace JLHHJSvr.Helper
|
|
|
public void MattressInterfaceFindERPPz(int mattressid, List<u_mattress_interface> interfaceList, int? configcodetype = 0)
|
|
|
{
|
|
|
var mattress = new u_mattress() { mattressid = mattressid };
|
|
|
- DbSqlHelper.SelectOne(cmd, mattress, "erp_configcodetype");
|
|
|
|
|
|
if (configcodetype != 0)
|
|
|
{
|
|
|
mattress.erp_configcodetype = configcodetype;
|
|
|
+ } else
|
|
|
+ {
|
|
|
+ DbSqlHelper.SelectOne(cmd, mattress, "erp_configcodetype");
|
|
|
}
|
|
|
|
|
|
MattressInterfaceFindERPPz(mattress, interfaceList);
|
|
@@ -390,23 +392,23 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
|
|
|
|
|
|
+ var resultDict = resultList.ToDictionary(r => r.name, r => r);
|
|
|
+
|
|
|
for (var i = 0; i < interfaceList.Count; i++)
|
|
|
{
|
|
|
- interfaceList[i].printid = i + 1;
|
|
|
+ var current = interfaceList[i];
|
|
|
+ current.printid = i + 1;
|
|
|
|
|
|
- foreach (var result in resultList)
|
|
|
+ if (resultDict.TryGetValue(current.bj_pzname, out var result))
|
|
|
{
|
|
|
- if (interfaceList[i].bj_pzname == result.name)
|
|
|
+ if (result.pzid > 0)
|
|
|
{
|
|
|
- if (result.pzid > 0)
|
|
|
- {
|
|
|
- interfaceList[i].erp_pzid = result.pzid;
|
|
|
- interfaceList[i].erp_pzcode = result.pzcode;
|
|
|
- interfaceList[i].erp_pzname = result.name;
|
|
|
- }
|
|
|
-
|
|
|
- if (interfaceList[i].bj_inputtype != 2) interfaceList[i].bj_inputtype = result.inputtype;
|
|
|
+ current.erp_pzid = result.pzid;
|
|
|
+ current.erp_pzcode = result.pzcode;
|
|
|
+ current.erp_pzname = result.name;
|
|
|
}
|
|
|
+
|
|
|
+ if (current.bj_inputtype != 2) current.bj_inputtype = result.inputtype;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -478,9 +480,9 @@ namespace JLHHJSvr.Helper
|
|
|
{"顶布裥棉3",new string[] { "顶布裥棉", "", "顶布裥棉3图案", "顶布裥棉3说明" } },
|
|
|
{"顶布裥棉4",new string[] { "顶布裥棉","", "顶布裥棉4图案", "顶布裥棉4说明" } },
|
|
|
{"普通大侧",new string[] { "大侧", "大侧裥棉", "大侧裥棉图案" } },
|
|
|
- {"上下拼侧1",new string[] {"大侧", "大侧-上下拼侧1", "大侧-上下拼侧1", "大侧-上下拼侧1高度"} },
|
|
|
- {"上下拼侧2",new string[] { "大侧", "大侧-上下拼侧2", "大侧-上下拼侧2", "大侧-上下拼侧2高度" } },
|
|
|
- {"上下拼侧3",new string[] { "大侧", "大侧-上下拼侧3", "大侧-上下拼侧3", "大侧-上下拼侧3高度" } },
|
|
|
+ {"上下拼侧1",new string[] {"大侧", "大侧-上下拼侧1", "大侧-上下拼侧1裥棉图案", "大侧-上下拼侧1高度"} },
|
|
|
+ {"上下拼侧2",new string[] { "大侧", "大侧-上下拼侧2", "大侧-上下拼侧2裥棉图案", "大侧-上下拼侧2高度" } },
|
|
|
+ {"上下拼侧3",new string[] { "大侧", "大侧-上下拼侧3", "大侧-上下拼侧3裥棉图案", "大侧-上下拼侧3高度" } },
|
|
|
{"左右拼侧1",new string[] { "大侧", "大侧-左右拼侧1", "大侧-左右拼侧1裥棉图案", "大侧-左右拼侧1长度" } },
|
|
|
{"左右拼侧2",new string[] { "大侧", "大侧-左右拼侧2", "大侧-左右拼侧2裥棉图案", "大侧-左右拼侧2长度" } },
|
|
|
{"左右拼侧3",new string[] { "大侧", "大侧-左右拼侧3", "大侧-左右拼侧3裥棉图案", "大侧-左右拼侧3长度", "大侧说明" } },
|