From f0c5baedbe29bc8f015a7bf3d6e8d495edae827d Mon Sep 17 00:00:00 2001 From: "songnan.zhang" Date: Mon, 13 Jun 2022 15:51:47 +0800 Subject: [PATCH] baocun --- .../QMAPP.FJC.Web/Controllers/DictController.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/APPQ5/QMAPP.FJC.Web/Controllers/DictController.cs b/APPQ5/QMAPP.FJC.Web/Controllers/DictController.cs index b73a7e2..4feb3da 100644 --- a/APPQ5/QMAPP.FJC.Web/Controllers/DictController.cs +++ b/APPQ5/QMAPP.FJC.Web/Controllers/DictController.cs @@ -1175,7 +1175,13 @@ namespace QMAPP.FJC.Web.Controllers public ActionResult GetMachineList(string workcentercode) { QMAPP.FJC.Entity.Basic.MachineInfo info = new Entity.Basic.MachineInfo(); - info.WORKCENTER_CODE = workcentercode.Replace("PA",""); + if (workcentercode == "VW371PA_FOAMAREA") + { + info.WORKCENTER_CODE = "VW371_FOAMAREA"; + } + else + info.WORKCENTER_CODE = workcentercode; + List list = new List(); ServiceAgent wcfAgent = this.GetServiceAgent(); try @@ -1186,7 +1192,7 @@ namespace QMAPP.FJC.Web.Controllers ("MachineInfoBLL_GetMachineInfoList", info); foreach (QMAPP.FJC.Entity.Basic.MachineInfo item in dataResult) { - if (workcentercode.Contains("PA")) + if (workcentercode == "VW371PA_FOAMAREA") { if (item.MACHINECODDE.Contains("PA")) { @@ -1194,7 +1200,7 @@ namespace QMAPP.FJC.Web.Controllers list.Add(item); } } - else + else if (workcentercode == "VW371_FOAMAREA") { if (!item.MACHINECODDE.Contains("PA")) { @@ -1202,6 +1208,11 @@ namespace QMAPP.FJC.Web.Controllers list.Add(item); } } + else + { + item.MACHINENAME = item.MACHINECODDE + "/" + item.MACHINENAME; + list.Add(item); + } } //} list.Insert(0, new QMAPP.FJC.Entity.Basic.MachineInfo() { MACHINECODDE = "", MACHINENAME = this.EmptyItemTitle });