From 96d856751591109faf44ab1fa905e6e305114976 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Tue, 18 Feb 2025 17:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=84=8A=E6=8E=A5=E6=9D=90=E6=96=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vs/SGGL_SeDin_New/v17/.wsuo | Bin 69632 -> 71680 bytes .vs/SGGL_SeDin_New/v17/DocumentLayout.json | 12 ++-- SGGL/BLL/CLGL/TwArrivalStatisticsService.cs | 31 ++++++++-- SGGL/BLL/CLGL/TwInOutplanmasterService.cs | 55 +++++++++++++----- SGGL/BLL/CLGL/TwInputmasterService.cs | 28 +++++---- SGGL/BLL/CLGL/TwOutputmasterService.cs | 26 +++++++-- .../HJGL_ComponentJointService.cs | 2 +- .../WeldingManage/PipelineComponentService.cs | 34 +++++------ .../CLGL/OutPlanMasterOut.aspx.cs | 2 +- .../CLGL/OutPlanMasterSelect.aspx.cs | 1 + SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs | 13 ++++- .../File/Excel/DataIn/材料入库导入模板.xlsx | Bin 8935 -> 9382 bytes .../File/Fastreport/焊口打印.frx | 4 +- .../File/Fastreport/管道焊接任务单.frx | 4 +- .../File/Fastreport/组件打印.frx | 4 +- .../PreDesign/PrePipelineQRCodeIn.aspx.cs | 1 + .../HJGL/WeldingManage/WeldTask.aspx.cs | 16 +++-- SGGL/Model/CLGL/Tw_InOutMasterOutput.cs | 3 +- 18 files changed, 161 insertions(+), 75 deletions(-) diff --git a/.vs/SGGL_SeDin_New/v17/.wsuo b/.vs/SGGL_SeDin_New/v17/.wsuo index e225f173e71860fe8b3517cc971cfd72436a08af..2db9ef7e90a90c550ab122d54ce7b21fc6f404b5 100644 GIT binary patch delta 1872 zcmb`HUrbwd6vywm6e#5ux>Eiut1_@ooHX>$EtJj9DF;;W z@7Mb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Rj`;Kg> zzVxI~NyT^@|M%#Yxhe#viL zdSeygEP*{z+jijx5ntST%Lq5&!Yb>Z3H-FM$n-;QPktswni^BI%MCMKpnJPhy}?wd sr_Y~KCWHQPK$-OSr$UN9)E_>m^o0X~9^RGyK-j0bMZT!c5kr0a9a=wZQ~&?~ diff --git a/.vs/SGGL_SeDin_New/v17/DocumentLayout.json b/.vs/SGGL_SeDin_New/v17/DocumentLayout.json index b32b17b0..526a4537 100644 --- a/.vs/SGGL_SeDin_New/v17/DocumentLayout.json +++ b/.vs/SGGL_SeDin_New/v17/DocumentLayout.json @@ -11,6 +11,10 @@ "DockedWidth": 386, "SelectedChildIndex": -1, "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" + }, { "$type": "Bookmark", "Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}" @@ -59,10 +63,6 @@ "$type": "Bookmark", "Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" }, - { - "$type": "Bookmark", - "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}" - }, { "$type": "Bookmark", "Name": "ST:0:0:{1a46fd64-28d5-434c-8eb3-17a02d419b53}" @@ -70,6 +70,10 @@ { "$type": "Bookmark", "Name": "ST:0:0:{5726b0e3-1012-5233-81f9-d1fad48e7a56}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}" } ] } diff --git a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs index d411049a..b0e38aa9 100644 --- a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs +++ b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs @@ -171,15 +171,29 @@ namespace BLL { using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) { - var results = new List(); + var results = new List(); + string [] taskPipeLineList= null; + var inoutPlanMasterl = db.Tw_InOutPlanMaster.FirstOrDefault(x => x.Id == outPlanMasterId); + if (inoutPlanMasterl!=null) + { + if (inoutPlanMasterl.WeldTaskId.Split('|').Length==4) + { + taskPipeLineList = Funs.DB.View_HJGL_WeldingTask.Where(e => + e.UnitWorkId == inoutPlanMasterl.WeldTaskId.Split('|')[0].ToString() + && e.UnitId == inoutPlanMasterl.WeldTaskId.Split('|')[1].ToString() + && e.TaskDate.Value.Date == DateTime + .ParseExact(inoutPlanMasterl.WeldTaskId.Split('|')[2].ToString(), "yyyyMMdd", null).Date + && e.SerialNumber == inoutPlanMasterl.WeldTaskId.Split('|')[3].ToString() + ).Distinct().OrderBy(x => x.PipeLineSortIndex).Select(x => x.PipelineId).ToArray(); + } + } // 获取所需材料列表 var requiredMaterials = (from x in db.Tw_InOutPlanDetail_Relation join master in db.Tw_InOutPlanMaster on x.InOutPlanMasterId equals master.Id join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId - join t in db.HJGL_WeldTask on master.WeldTaskId equals t.WeldTaskId - where x.InOutPlanMasterId == outPlanMasterId + where x.InOutPlanMasterId == outPlanMasterId select new Tw_PipeMatMatchOutput { Id = Guid.NewGuid().ToString(), @@ -191,12 +205,17 @@ namespace BLL MaterialSpec = y.MaterialSpec, MaterialUnit = y.MaterialUnit, MaterialDef = y.MaterialDef, - NeedNum = x.Number, - PipeLineSortIndex=t.PipeLineSortIndex + NeedNum = x.Number } ).ToList(); + if (taskPipeLineList != null && taskPipeLineList.Any()) + { + requiredMaterials = requiredMaterials.OrderBy(x => Array.IndexOf(taskPipeLineList, x.PipelineId.ToString())).ToList(); + + } + var masterModle = db.Tw_InOutPlanMaster.FirstOrDefault(x => x.Id == outPlanMasterId); - results = GetMatMatchOutput(requiredMaterials.OrderBy(x=>x.PipelineId).ThenBy(x=>x.MaterialCode).ToList(), masterModle.WarehouseCode, masterModle.ProjectId); + results = GetMatMatchOutput(requiredMaterials, masterModle.WarehouseCode, masterModle.ProjectId); return results; } diff --git a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs index 499fe16b..b66eb84e 100644 --- a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs +++ b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs @@ -32,7 +32,7 @@ namespace BLL { var q = from x in Funs.DB.Tw_InOutPlanMaster join y in Funs.DB.HJGL_WeldTask on x.WeldTaskId equals y.WeldTaskId into yy - from y in yy.DefaultIfEmpty() + from y in yy.DefaultIfEmpty() join person in Funs.DB.Person_Persons on x.CreateMan equals person.PersonId into persons from person in persons.DefaultIfEmpty() join auditperson in Funs.DB.Person_Persons on x.AuditMan equals auditperson.PersonId into auditpersons @@ -284,8 +284,14 @@ namespace BLL return responeData; } } - var typeString = temeplateDtoIns.Select(x => x.TypeString).Distinct().ToList(); //获取导入文件的材料编码 - if (typeString.Contains("采购入库") && typeString.Contains("退料入库")) + var typeString = temeplateDtoIns.Select(x => x.TypeString).Distinct().ToList(); //获取导入文件的类型 + if (typeString.Where(x=>string.IsNullOrEmpty(x)).Count()>0) + { + responeData.code = 0; + responeData.message ="导入数据中类型列不能为空!"; + return responeData; + } + if (typeString.Contains("采购入库") && typeString.Contains("其他入库")) { responeData.code = 0; responeData.message = errorWarehouseCode + "每次只能导入一种类型!"; @@ -350,9 +356,9 @@ namespace BLL twInOutPlanMaster.TypeInt = (int)TwConst.TypeInt.采购入库; } - else if ("退料入库".Equals(FirstCusBillCodeDtoIns.TypeString)) + else if ("其他入库".Equals(FirstCusBillCodeDtoIns.TypeString)) { - twInOutPlanMaster.TypeInt = (int)TwConst.TypeInt.退料入库; + twInOutPlanMaster.TypeInt = (int)TwConst.TypeInt.其他入库; } else { @@ -555,7 +561,13 @@ namespace BLL TwInOutplandetailService.AddList(details, planMasterModel.Id); return message; } - + /// + /// 获取出库申请单编号 + /// + /// + /// + /// + /// public static string GetCusBillCodeByTaskCode(string taskCode,TwConst.TypeInt typeInt,TwConst.Category category ) { string cusBillCode = ""; @@ -601,17 +613,17 @@ namespace BLL public static string GetDataInCusBillCode(string projectid, string unitcode,string typeString,string unitWorkCode="",string Category = "") { - if (typeString == TwConst.TypeInt.退料入库.ToString()) + if (typeString == TwConst.TypeInt.其他入库.ToString()) { //生成规则是20240919-unitcode-AP-GR01 - string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) + "-" + unitcode + "-AP-GR"; + string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now) ; var queryAll = new Tw_InOutMasterOutput() { ProjectId = projectid, CusBillCode = cusBillCode, }; var queryAllresult = GetModle(queryAll).Count(); - cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0'); + cusBillCode = cusBillCode + "-AP-" + (queryAllresult + 1).ToString().PadLeft(2, '0'); return cusBillCode; } else if (typeString == TwConst.TypeInt.散件出库.ToString()) @@ -628,15 +640,30 @@ namespace BLL var queryAllresult = GetModle(queryAll).Count(); if (Category == TwConst.Category.管段.ToString()) { - cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-GI-P01"; + cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-AP-P01"; } else { - cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-GI-PF01"; + cusBillCode = cusBillCode + (queryAllresult + 1).ToString().PadLeft(2, '0') + "-AP-PF01"; } return cusBillCode; } + else if (typeString == TwConst.TypeInt.其他出库.ToString()) + { + //生成规则是20240919-01 + string cusBillCode = string.Format("{0:yyyyMMdd}", DateTime.Now); + var queryAll = new Tw_InOutMasterOutput() + { + ProjectId = projectid, + CusBillCode = cusBillCode, + TypeInt = (int)TwConst.TypeInt.其他出库, + }; + var queryAllresult = GetModle(queryAll).Count(); + cusBillCode = cusBillCode +"-AP-"+ (queryAllresult + 1).ToString().PadLeft(2, '0'); + return cusBillCode; + } + else { //生成规则是20240919-unitcode-AP-GR01 @@ -678,11 +705,11 @@ namespace BLL { return; } - var pipelineList = db.View_HJGL_WeldingTask.Where(e => e.UnitWorkId == unitworkid && e.UnitId == unitid && e.TaskDate.Value.Date == date.Date && e.SerialNumber == serialNumber).Select(x=>x.PipelineId).Distinct().ToList(); - + var pipelineList = db.View_HJGL_WeldingTask.Where(e => e.UnitWorkId == unitworkid && e.UnitId == unitid && e.TaskDate.Value.Date == date.Date && e.SerialNumber == serialNumber).OrderBy(x=>x.PipeLineSortIndex).Select(x=>x.PipelineId).Distinct().ToList(); + //领料出库需要排除散件材料 var MaterDatial= from x in db.HJGL_PipeLineMat join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode - where pipelineList.Contains(x.PipelineId) + where pipelineList.Contains(x.PipelineId) && x.PrefabricatedComponents !=null select new { x.PipelineId, diff --git a/SGGL/BLL/CLGL/TwInputmasterService.cs b/SGGL/BLL/CLGL/TwInputmasterService.cs index c1910943..85279101 100644 --- a/SGGL/BLL/CLGL/TwInputmasterService.cs +++ b/SGGL/BLL/CLGL/TwInputmasterService.cs @@ -273,16 +273,8 @@ namespace BLL WarehouseMan = plan.WarehouseMan, WarehouseDate = plan.WarehouseDate }; - if ((TwConst.TypeInt)plan.TypeInt!= TwConst.TypeInt.采购入库) - { - master.CusBillCode = GetCusBillCodeByTaskCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, - (BLL.TwConst.Category)plan.Category); - - } - else - { - master.CusBillCode= plan.CusBillCode.Replace("-AP", ""); - } + master.CusBillCode = GetCusBillCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, + (BLL.TwConst.Category)plan.Category, plan.CusBillCode); Add(master); //生成明细 foreach (var detail in detailLists) @@ -338,7 +330,15 @@ namespace BLL TwInOutplanmasterService.Update(plan); } - public static string GetCusBillCodeByTaskCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category) + /// + /// 获取入库单编号 + /// + /// + /// + /// + /// + /// + public static string GetCusBillCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category, string planCusBillCode = "") { string cusBillCode = ""; switch (typeInt) @@ -353,6 +353,12 @@ namespace BLL cusBillCode = taskCode + "-GI-PF01-RE01"; } + break; + case TwConst.TypeInt.其他入库: + cusBillCode = planCusBillCode.Replace("-AP-", "-GI-"); + break; + case TwConst.TypeInt.采购入库: + cusBillCode = planCusBillCode.Replace("-AP", ""); ; break; } return cusBillCode; diff --git a/SGGL/BLL/CLGL/TwOutputmasterService.cs b/SGGL/BLL/CLGL/TwOutputmasterService.cs index 990223c2..4417b5cc 100644 --- a/SGGL/BLL/CLGL/TwOutputmasterService.cs +++ b/SGGL/BLL/CLGL/TwOutputmasterService.cs @@ -78,7 +78,8 @@ namespace BLL AuditDate2 = x.AuditDate2, WarehouseMan = x.WarehouseMan, WarehouseDate = x.WarehouseDate, - WarehouseManName = warehouseperson.PersonName + WarehouseManName = warehouseperson.PersonName, + Remark=y.Remark }; return q; @@ -281,7 +282,7 @@ namespace BLL Id = Guid.NewGuid().ToString(), InOutPlanMasterId = plan.Id, ProjectId = plan.ProjectId, - CusBillCode = GetCusBillCodeByTaskCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, (BLL.TwConst.Category)plan.Category), + CusBillCode = GetCusBillCode(plan.WeldTaskCode, (TwConst.TypeInt)plan.TypeInt, (BLL.TwConst.Category)plan.Category,plan.CusBillCode), WarehouseCode = plan.WarehouseCode, Category = plan.Category, Source = plan.Source, @@ -295,7 +296,8 @@ namespace BLL AuditMan2 = plan.AuditMan2, AuditDate2 = plan.AuditDate2, WarehouseMan = plan.WarehouseMan, - WarehouseDate = plan.WarehouseDate + WarehouseDate = plan.WarehouseDate, + }; Add(master); //生成出库单明细 @@ -350,7 +352,15 @@ namespace BLL return result; } - public static string GetCusBillCodeByTaskCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category) + /// + /// 获取出库单编号 + /// + /// + /// + /// + /// + /// + public static string GetCusBillCode(string taskCode, TwConst.TypeInt typeInt, TwConst.Category category, string planCusBillCode = "") { string cusBillCode = ""; switch (typeInt) @@ -377,7 +387,13 @@ namespace BLL } break; - + case TwConst.TypeInt.散件出库: + cusBillCode = planCusBillCode.Replace("-AP-", "-GI-"); + break; + case TwConst.TypeInt.其他出库: + cusBillCode = planCusBillCode.Replace("-AP-", "-GI-"); + break; + } return cusBillCode; } diff --git a/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs b/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs index fc6da622..8f014136 100644 --- a/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs +++ b/SGGL/BLL/HJGL/WeldingManage/HJGL_ComponentJointService.cs @@ -137,7 +137,7 @@ namespace BLL var q = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId).ToList(); if (q.Count!=0) { - var NotProductionNum = (from x in q where x.State == 0 select x).Count(); //未生产数量 + var NotProductionNum = (from x in q where x.State == 0||x.State ==null select x).Count(); //未生产数量 var ProductionNum = (from x in q where x.State == 1 select x).Count(); //已生产数量 if (NotProductionNum == 0) //全部完成 { diff --git a/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs b/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs index b095ca20..7cba2ab3 100644 --- a/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs +++ b/SGGL/BLL/HJGL/WeldingManage/PipelineComponentService.cs @@ -93,33 +93,25 @@ namespace BLL /// /// public static IEnumerable GetPrintModelByPipelineComponentIds( - string[] PipelineComponentId, string[] PipelineId, bool IsCheckPrint) + string[] PipelineComponentId, string[] PipelineId, bool IsCheckPrint) { var db = Funs.DB; var query = from com in db.HJGL_Pipeline_Component - join mat in db.HJGL_PipeLineMat on com.PipeLineMatId equals mat.PipeLineMatId into matJoin - from mat in matJoin.DefaultIfEmpty() join pipe in db.HJGL_Pipeline on com.PipelineId equals pipe.PipelineId into pipeJoin - from pipe in pipeJoin.DefaultIfEmpty() join punit in db.Base_Unit on com.PreUnit equals punit.UnitId into punitJoin - from punit in punitJoin.DefaultIfEmpty() join aunit in db.Base_Unit on com.AssembleUnit equals aunit.UnitId into aunitJoin - from aunit in aunitJoin.DefaultIfEmpty() join unitwork in db.WBS_UnitWork on pipe.UnitWorkId equals unitwork.UnitWorkId into unitworkJoin - from unitwork in unitworkJoin.DefaultIfEmpty() join mater in db.Base_Material on pipe.MaterialId equals mater.MaterialId into materJoin - from mater in materJoin.DefaultIfEmpty() - where com.QRCode != "" - orderby com.PipelineComponentCode,com.PipelineId - + where com.QRCode != "" + orderby com.PipelineComponentCode, com.PipelineId select new PipelineComponentPrintDto { PipelineComponentId = com.PipelineComponentId, @@ -138,26 +130,32 @@ namespace BLL QRCode2 = "PrePipeline$" + com.PipelineComponentId, MaterialCode = mater.MaterialCode, IsPrint = com.IsPrint - }; + var result = query.ToList(); - if (PipelineComponentId!=null &&PipelineComponentId.Length > 0) + + if (PipelineComponentId != null && PipelineComponentId.Length > 0) { result = result.Where(x => PipelineComponentId.Contains(x.PipelineComponentId.ToString())).ToList(); } + if (PipelineId != null && PipelineId.Length > 0) { result = result.Where(x => PipelineId.Contains(x.PipelineId.ToString())).ToList(); + // 按照传入的 PipelineId 顺序排序 + result = result.OrderBy(x => Array.IndexOf(PipelineId, x.PipelineId.ToString())).ToList(); } - //if (IsCheckPrint != null & IsCheckPrint ==true) - //{ - // result = result.Where(x => x.IsPrint==false||x.IsPrint==null).ToList(); - //} + // if (IsCheckPrint != null & IsCheckPrint == true) + // { + // result = result.Where(x => x.IsPrint == false || x.IsPrint == null).ToList(); + // } + return result; } - + + /// /// 判断管线组件Code是否存在 diff --git a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterOut.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterOut.aspx.cs index 04c7f128..ad17e783 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterOut.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterOut.aspx.cs @@ -35,7 +35,7 @@ namespace FineUIPro.Web.CLGL table.Id = Id; var model = TwInOutplanmasterService.GetListData(table).FirstOrDefault(); - txtCusBillCode.Text = TwOutputmasterService.GetCusBillCodeByTaskCode(model.WeldTaskCode, (TwConst.TypeInt)model.TypeInt, (BLL.TwConst.Category)model.Category); + txtCusBillCode.Text = TwOutputmasterService.GetCusBillCode(model.WeldTaskCode, (TwConst.TypeInt)model.TypeInt, (BLL.TwConst.Category)model.Category); txtWarehouseCode.Text = model.WarehouseCode; txtCreateDate.Text = string.Format("{0:yyyy-MM-dd}", model.CreateDate); txtCreateMan.Text = Person_PersonsService.GetPersonsNameById(model.CreateMan); diff --git a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterSelect.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterSelect.aspx.cs index 04012728..9aa62bfa 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterSelect.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterSelect.aspx.cs @@ -255,6 +255,7 @@ namespace FineUIPro.Web.CLGL var inoutplandetail = (from x in Funs.DB.Tw_InOutPlanDetail_Relation //where x.InOutPlanMasterId == Id && x.PipelineId == this.tvControlItem.SelectedNodeID where x.PipelineId == this.tvControlItem.SelectedNodeID + && (x.PrefabricatedComponents == null || x.PrefabricatedComponents == "") select x).ToList(); // 优化 Linq 过滤条件 diff --git a/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs index 3614f27a..f0ac4402 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs @@ -303,7 +303,12 @@ namespace FineUIPro.Web.CLGL { ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); } - } + } + /// + /// 生成退料通知单 + /// + /// + /// protected void btnGenInPlanMaster_Click(object sender, EventArgs e) { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Tw_OutputMasterMenuId, Const.BtnModify)) @@ -329,7 +334,11 @@ namespace FineUIPro.Web.CLGL ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); } } - + /// + /// 生成补料通知单 + /// + /// + /// protected void btnGenOutPlanMaster_Click(object sender, EventArgs e) { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Tw_OutputMasterMenuId, Const.BtnModify)) diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/材料入库导入模板.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataIn/材料入库导入模板.xlsx index 99478d1d38ab27658e1ab768cea2cea3f5f678cb..f1a41ec31461a61351b0704fc51eb3791904fc23 100644 GIT binary patch literal 9382 zcmeHNg;yN;(jD9-xI4juI{^a0-GaNj4h{h_1PyM%UBV#2-3jgzf?Gmx3+~?}Z{N!< zZ@<6bZJ#qe)2F+tdw%EMs#{g9EC&ON1Aqr00ssI?KoRP$mlYHMfCdKuU;_}Lb;TSV zT+JO^4PSXVnFIA%Jnii$a$%wAvjNbM>;KvQhgYC9VaTD24O8MG@fstxUfpCX7t9F# zPB@8KbsM4K{H@j{?U=~g;V!`kFe4o0>?c`4;Mm9~-n@bNR1>%-wI1BW8Za6G@dnns zALsh^3R*1T;+$j&4zn$YMR*7e4I?em09yGDA>6iMT`-&Ux)sn&|hiu zJ^@ds*j9Xoa*RXk^+8%1eF)HB(IrxtMh-6yJ!Q13>iiPyf7Nh#>Zd}Ax9z;0CMlsU#|%CMJx~s}K3`y@nzUn;*itaNgJMs)GvZB&$#1&5kQ8;z zsU!1F|LBqFm2zfLmFJm<>En)-B!L7g0S zxREn^CLCV6p8J-C_91}4O-iE&B-E&9&8L;iTafQ;Xv+{t5;F7(oC4Fd$cW+Oc{#y4adHI@?G zA%o^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$cYlQYHIUyU7(ie9 zZiK%oBLDw)r$qXx`fncU&lPf?iTZ6(?(b^9d8zwTzF)5UJ%9z2u7ytd@38%^N#BvX xzuKLLU4D7^532XincpXS?{t58E%!fke^b8z1%#iQ6%+c`2_&f85b2%X{{cGUIIREx diff --git a/SGGL/FineUIPro.Web/File/Fastreport/焊口打印.frx b/SGGL/FineUIPro.Web/File/Fastreport/焊口打印.frx index 4b79aab2..f9472c0b 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/焊口打印.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/焊口打印.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -99,7 +99,7 @@ namespace FastReport } - + diff --git a/SGGL/FineUIPro.Web/File/Fastreport/管道焊接任务单.frx b/SGGL/FineUIPro.Web/File/Fastreport/管道焊接任务单.frx index 2bc28a83..9a7ac123 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/管道焊接任务单.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/管道焊接任务单.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -59,7 +59,7 @@ namespace FastReport } - + diff --git a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx index ccf889e3..60734d65 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -99,7 +99,7 @@ namespace FastReport } - + diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs index c68e3134..7f8c9fce 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs @@ -360,6 +360,7 @@ namespace FineUIPro.Web.HJGL.PreDesign hJGL_Pipeline_ComponentJoint.PipelineComponentId = item.PipelineComponentId; hJGL_Pipeline_ComponentJoint.WeldJointCode = joint.WeldJointCode; hJGL_Pipeline_ComponentJoint.WeldJointId=joint.WeldJointId; + hJGL_Pipeline_ComponentJoint.State = 0; HJGL_PipelineComponentjointService.AddHJGL_Pipeline_ComponentJoint(hJGL_Pipeline_ComponentJoint); } diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs index 8a58164d..dc8f8a87 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs @@ -235,7 +235,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage where x.UnitWorkId == node.NodeID && x.TaskDate < Convert.ToDateTime(this.txtTaskDateMonth.Text.Trim() + "-01").AddMonths(1) && x.TaskDate >= Convert.ToDateTime(this.txtTaskDateMonth.Text.Trim() + "-01") - select new { x.TaskDate.Value.Date, x.UnitId,x.SerialNumber, x.PipeLineSortIndex }).Distinct().ToList().OrderBy(x => x.PipeLineSortIndex); + select new { x.TaskDate.Value.Date, x.UnitId,x.SerialNumber }).Distinct().ToList().OrderBy(x => x.SerialNumber); if (p.Count() > 0) { foreach (var item in p) @@ -255,7 +255,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage join y in Funs.DB.HJGL_WeldJoint on x.WeldJointId equals y.WeldJointId where x.UnitWorkId == node.NodeID && y.WeldJointCode.Contains(this.txtWeldJointCode.Text.Trim()) orderby x.TaskDate descending - select new { x.TaskDate.Value.Date, x.UnitId, x.SerialNumber ,x.PipeLineSortIndex}).Distinct().ToList().OrderBy(x => x.PipeLineSortIndex); + select new { x.TaskDate.Value.Date, x.UnitId, x.SerialNumber }).Distinct().ToList().OrderBy(x => x.SerialNumber); if (p.Count() > 0) { foreach (var item in p) @@ -282,7 +282,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim())) { - weldingTask = weldingTask.Where(e => e.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).ToList(); + weldingTask = weldingTask.Where(e => e.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).OrderBy(x=>x.PipeLineSortIndex).ToList(); } DataTable tb = this.LINQToDataTable(weldingTask); @@ -1223,7 +1223,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage DateTime? taskTime = Funs.GetNewDateTime(tvControlItem.SelectedNodeID.Split('|')[2]); if (taskTime != null) { - var pipelines = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]).Select(x => x.PipelineId).Distinct().ToList(); + var pipelines = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]).OrderBy(z=>z.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList(); if (pipelines.Any()) { @@ -1277,7 +1277,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage this.BindGrid(GetWeldingTaskList); } } - + /// + /// 生成出库申请单 + /// + /// + /// protected void btnGenOutPlanMaster_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID)) @@ -1354,7 +1358,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage if (taskTime != null) { var weldTaskList = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]); - var pipelines = weldTaskList.Select(x => x.PipelineId).Distinct().ToList(); + var pipelines = weldTaskList.OrderBy(x=>x.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList(); if (pipelines.Any()) { diff --git a/SGGL/Model/CLGL/Tw_InOutMasterOutput.cs b/SGGL/Model/CLGL/Tw_InOutMasterOutput.cs index db2fa463..b1cb0d7d 100644 --- a/SGGL/Model/CLGL/Tw_InOutMasterOutput.cs +++ b/SGGL/Model/CLGL/Tw_InOutMasterOutput.cs @@ -18,7 +18,8 @@ namespace Model public string AuditManName2 { get; set; } public string ReqUnitName { get; set; } public string UnitWorkId { get; set; } - public string WeldTaskCode { get; set; } + public string WeldTaskCode { get; set; } + public string Remark { get; set; } public int? PipeLineSortIndex { get; set; } }