From cc2bccfe64faac8eccac2264e7f3eabb0a7d1e71 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Wed, 28 Jan 2026 14:54:19 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=9F=A5=E4=B8=8B?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/WebAPI/Controllers/PersonController.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SGGL/WebAPI/Controllers/PersonController.cs b/SGGL/WebAPI/Controllers/PersonController.cs index c534b96a..cd77c62a 100644 --- a/SGGL/WebAPI/Controllers/PersonController.cs +++ b/SGGL/WebAPI/Controllers/PersonController.cs @@ -1,4 +1,5 @@ using BLL; +using Model; using System; using System.Configuration; using System.IO; @@ -808,15 +809,17 @@ namespace WebAPI.Controllers var responeData = new Model.ResponeData(); try { - var trainingIds = Funs.DB.EduTrain_TrainRecord.Where(x => projectId == projectId).Select(x => x.TrainingId).ToList(); - var personIds = Funs.DB.EduTrain_TrainRecordDetail.Where(x => trainingIds.Contains(x.TrainingId)).Select(x=>x.PersonId).ToList(); ; + // var trainingIds = Funs.DB.EduTrain_TrainRecord.Where(x => projectId == projectId).Select(x => x.TrainingId).ToList(); + // var personIds = Funs.DB.EduTrain_TrainRecordDetail.Where(x => trainingIds.Contains(x.TrainingId)).Select(x=>x.PersonId).ToList(); ; responeData.data = (from x in Funs.DB.SitePerson_Person join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId - join persons in Funs.DB.Person_Persons on x.IdentityCard equals persons.IdentityCard - where x.ProjectId == projectId && !x.ExchangeTime.HasValue + join persons in Funs.DB.Person_Persons on x.IdentityCard equals persons.IdentityCard + join traindetail in Funs.DB.EduTrain_TrainRecordDetail on x.PersonId equals traindetail.PersonId + join train in Funs.DB.EduTrain_TrainRecord on traindetail.TrainingId equals train.TrainingId + where x.ProjectId == projectId && !x.ExchangeTime.HasValue && train.ProjectId == projectId && x.States == Const.ProjectPersonStates_1 && x.CardNo.Length > 5 && persons.PhotoUrl != null - where personIds.Contains(x.PersonId) + // where personIds.Contains(x.PersonId) select new { x.PersonId, From f1224ea1947828827de08f64818f055473856a7e Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Wed, 28 Jan 2026 15:08:33 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2c9c729f..e11f354b 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ SGGL/.svn /SGGL/FineUIPro.Web/ErrLog.txt /SGGL/CLAUDE.md /SGGL/.claude +/SGGL/AGENTS.md From 403ae1921b5e821ea427020d4906d5e2cb493f8c Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Wed, 28 Jan 2026 15:18:10 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=94=B9=E7=94=A8=E9=A1=B9=E7=9B=AE=E4=BB=A3?= =?UTF-8?q?=E5=8F=B7=E4=BD=9C=E4=B8=BA=E5=BF=85=E5=A1=AB=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ProjectPersonInput/Output 和 PersonInOutRecordInput 模型中添加 ProjectCode 属性 - GetProjectPerson 和 GetPersonInOutRecord 接口必填参数改为 ProjectCode - APIPersonService 添加项目代号过滤逻辑和查询结果输出 --- SGGL/BLL/API/APIPersonService.cs | 16 +++++++++++++--- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 2 +- SGGL/Model/HSSE/PersonInOutRecordInput.cs | 4 ++++ SGGL/Model/HSSE/ProjectPersonInput.cs | 4 ++++ SGGL/Model/HSSE/ProjectPersonOutput.cs | 4 ++++ SGGL/WebAPI/Controllers/PersonController.cs | 12 ++++++------ 6 files changed, 32 insertions(+), 10 deletions(-) diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs index 51e9c7c8..85751fe7 100644 --- a/SGGL/BLL/API/APIPersonService.cs +++ b/SGGL/BLL/API/APIPersonService.cs @@ -320,7 +320,11 @@ namespace BLL { query = query.Where(x => x.ProjectName.Contains(filter.ProjectName)); } - + // 项目代号过滤(模糊查询) + if (!string.IsNullOrEmpty(filter.ProjectCode)) + { + query = query.Where(x => x.ProjectCode.Contains(filter.ProjectCode)); + } // 人员ID过滤 if (!string.IsNullOrEmpty(filter.PersonId)) { @@ -384,6 +388,7 @@ namespace BLL IdentityCard = x.IdentityCard, ProjectId = x.ProjectId, ProjectName = x.ProjectName, + ProjectCode= x.ProjectCode, UnitId = x.UnitId, UnitName = x.UnitName, TeamGroupName = x.TeamGroupName, @@ -1112,7 +1117,7 @@ namespace BLL var query = from x in db.SitePerson_PersonInOut join y in db.SitePerson_Person on x.PersonId equals y.PersonId join z in db.Base_Project on x.ProjectId equals z.ProjectId - where x.ChangeTime >= filter.StartTime && x.ChangeTime <= filter.EndTime && z.ProjectName.Contains(filter.ProjectName) + where x.ChangeTime >= filter.StartTime && x.ChangeTime <= filter.EndTime && z.ProjectCode.Contains(filter.ProjectCode) select new Model.PersonInOutItem { PersonId = x.PersonId, @@ -1130,7 +1135,12 @@ namespace BLL // 添加过滤条件 if (filter != null) - { + { + // 项目名称过滤(模糊查询) + if (!string.IsNullOrEmpty(filter.ProjectName)) + { + query = query.Where(x => x.ProjectName.Contains(filter.ProjectName)); + } // 单位名称过滤(模糊查询) if (!string.IsNullOrEmpty(filter.UnitName)) { diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 939f1c0c..3933756b 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -16910,7 +16910,7 @@ - + diff --git a/SGGL/Model/HSSE/PersonInOutRecordInput.cs b/SGGL/Model/HSSE/PersonInOutRecordInput.cs index 12287848..ebd12ce5 100644 --- a/SGGL/Model/HSSE/PersonInOutRecordInput.cs +++ b/SGGL/Model/HSSE/PersonInOutRecordInput.cs @@ -16,6 +16,10 @@ namespace Model /// public string ProjectName { get; set; } /// + /// 项目代号 + /// + public string ProjectCode { get; set; } + /// /// 单位名称 /// public string UnitName { get; set; } diff --git a/SGGL/Model/HSSE/ProjectPersonInput.cs b/SGGL/Model/HSSE/ProjectPersonInput.cs index e594b832..3b9bae68 100644 --- a/SGGL/Model/HSSE/ProjectPersonInput.cs +++ b/SGGL/Model/HSSE/ProjectPersonInput.cs @@ -40,6 +40,10 @@ namespace Model /// public string ProjectName { get; set; } /// + /// 项目代号 + /// + public string ProjectCode { get; set; } + /// /// 单位名称 /// public string UnitName { get; set; } diff --git a/SGGL/Model/HSSE/ProjectPersonOutput.cs b/SGGL/Model/HSSE/ProjectPersonOutput.cs index b0fb4ebd..91142e9a 100644 --- a/SGGL/Model/HSSE/ProjectPersonOutput.cs +++ b/SGGL/Model/HSSE/ProjectPersonOutput.cs @@ -42,6 +42,10 @@ namespace Model /// public string ProjectName { get; set; } /// + /// 项目代号 + /// + public string ProjectCode { get; set; } + /// /// 单位ID /// public string UnitId { get; set; } diff --git a/SGGL/WebAPI/Controllers/PersonController.cs b/SGGL/WebAPI/Controllers/PersonController.cs index c534b96a..a1a049cc 100644 --- a/SGGL/WebAPI/Controllers/PersonController.cs +++ b/SGGL/WebAPI/Controllers/PersonController.cs @@ -102,7 +102,7 @@ namespace WebAPI.Controllers /// /// 根据条件获取项目人员信息(支持分页和过滤) /// - /// 查询过滤条件(ProjectName为必填参数) + /// 查询过滤条件(ProjectCode为必填参数) /// 每页条数 /// 页码(从1开始) /// 是否返回全部数据 @@ -112,11 +112,11 @@ namespace WebAPI.Controllers var responeData = new Model.ResponeData(); try { - // 验证必填参数 ProjectName - if (filter == null || string.IsNullOrEmpty(filter.ProjectName)) + // 验证必填参数 ProjectCode + if (filter == null || string.IsNullOrEmpty(filter.ProjectCode)) { responeData.code = 0; - responeData.message = "ProjectName为必填参数!"; + responeData.message = "ProjectCode为必填参数!"; return responeData; } @@ -1072,10 +1072,10 @@ namespace WebAPI.Controllers responeData.message = "StartTime不能大于EndTime!"; return responeData; } - if (filter == null || string.IsNullOrEmpty(filter.ProjectName)) + if (filter == null || string.IsNullOrEmpty(filter.ProjectCode)) { responeData.code = 0; - responeData.message = "ProjectName为必填参数!"; + responeData.message = "ProjectCode为必填参数!"; return responeData; } From 1c8f33186f852d96e5dd22acaa11bb9bf9fb865e Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Wed, 28 Jan 2026 15:22:09 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIPersonService.cs | 6 +----- SGGL/Model/HSSE/PersonInOutRecordInput.cs | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs index 85751fe7..1fdbdf8d 100644 --- a/SGGL/BLL/API/APIPersonService.cs +++ b/SGGL/BLL/API/APIPersonService.cs @@ -1136,11 +1136,7 @@ namespace BLL // 添加过滤条件 if (filter != null) { - // 项目名称过滤(模糊查询) - if (!string.IsNullOrEmpty(filter.ProjectName)) - { - query = query.Where(x => x.ProjectName.Contains(filter.ProjectName)); - } + // 单位名称过滤(模糊查询) if (!string.IsNullOrEmpty(filter.UnitName)) { diff --git a/SGGL/Model/HSSE/PersonInOutRecordInput.cs b/SGGL/Model/HSSE/PersonInOutRecordInput.cs index ebd12ce5..6fe92770 100644 --- a/SGGL/Model/HSSE/PersonInOutRecordInput.cs +++ b/SGGL/Model/HSSE/PersonInOutRecordInput.cs @@ -10,11 +10,7 @@ namespace Model /// 人员出入记录入参 /// public class PersonInOutRecordInput - { - /// - /// 项目名称 - /// - public string ProjectName { get; set; } + { /// /// 项目代号 /// From af5341bb9908e8100f73dc6366fb7702a398d95c Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Mon, 2 Feb 2026 17:14:58 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9D=90=E6=96=99?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BB=93=E5=BA=93=E4=B8=8B=E6=8B=89=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=BB=8E=E5=85=A5=E5=BA=93=E5=8D=95=E4=B8=AD=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E4=BB=93=E5=BA=93=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/CLGL/TwInOutplanmasterService.cs | 9 ++++++++- SGGL/FineUIPro.Web/CLGL/ArrivalStatistics.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/OutPlanMasterEdit.aspx.cs | 4 ++-- SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs | 4 ++-- 8 files changed, 22 insertions(+), 15 deletions(-) diff --git a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs index 50a2f7df..87d567f9 100644 --- a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs +++ b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs @@ -605,7 +605,14 @@ namespace BLL return cusBillCode; } - + public static Dictionary GetWarehouseCode(string projectId) + { + var q = (from x in Funs.DB.Tw_InOutPlanMaster + where x.ProjectId == projectId && + x.InOutType == (int)TwConst.InOutType.入库 + select x.WarehouseCode).Distinct().ToDictionary(x => x, x => x); + return q; + } public static string GetDataInCusBillCode(string projectid, string unitcode, string typeString, string unitWorkCode = "", string Category = "") { if (typeString == TwConst.TypeInt.其他入库.ToString()) diff --git a/SGGL/FineUIPro.Web/CLGL/ArrivalStatistics.aspx.cs b/SGGL/FineUIPro.Web/CLGL/ArrivalStatistics.aspx.cs index 72a06a07..8a93f70d 100644 --- a/SGGL/FineUIPro.Web/CLGL/ArrivalStatistics.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/ArrivalStatistics.aspx.cs @@ -20,9 +20,9 @@ namespace FineUIPro.Web.CLGL { if (!IsPostBack) { - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); // 绑定表格 diff --git a/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs b/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs index c05eeae2..a2455755 100644 --- a/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs @@ -71,9 +71,9 @@ namespace FineUIPro.Web.CLGL private void InitDrpList() { this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); Funs.FineUIPleaseSelect(this.drpWarehouse); drpTypeInt.DataTextField = "Key"; diff --git a/SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs b/SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs index db704057..030755e4 100644 --- a/SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/InputMaster.aspx.cs @@ -30,9 +30,9 @@ namespace FineUIPro.Web.CLGL private void InitDrpList() { this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); Funs.FineUIPleaseSelect(this.drpWarehouse); drpTypeInt.DataTextField = "Key"; diff --git a/SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs b/SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs index 0b33b7e8..841f2295 100644 --- a/SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/MaterialStock.aspx.cs @@ -12,9 +12,9 @@ namespace FineUIPro.Web.CLGL if (!IsPostBack) { this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); Funs.FineUIPleaseSelect(this.drpWarehouse); // 绑定表格 diff --git a/SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs index 1ceb6917..a60ac02c 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs @@ -28,9 +28,9 @@ namespace FineUIPro.Web.CLGL private void InitDrpList() { - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); Funs.FineUIPleaseSelect(this.drpWarehouse); drpTypeInt.DataTextField = "Key"; diff --git a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterEdit.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterEdit.aspx.cs index 2b3543c6..44ac50eb 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutPlanMasterEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutPlanMasterEdit.aspx.cs @@ -85,9 +85,9 @@ namespace FineUIPro.Web.CLGL private void InitDrpList() { - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); string[] typeIntArr = { TwConst.TypeInt.散件出库.ToString(), TwConst.TypeInt.其他出库.ToString() }; diff --git a/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs b/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs index e85d6dfa..0b2a3193 100644 --- a/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs @@ -32,9 +32,9 @@ namespace FineUIPro.Web.CLGL private void InitDrpList() { - drpWarehouse.DataTextField = "Text"; + drpWarehouse.DataTextField = "Key"; drpWarehouse.DataValueField = "Value"; - drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode(); + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); drpWarehouse.DataBind(); Funs.FineUIPleaseSelect(this.drpWarehouse); drpTypeInt.DataTextField = "Key"; From 3f11ff9548d3255da309ecc4ed301c8c4a1cb204 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Thu, 12 Feb 2026 21:44:52 +0800 Subject: [PATCH 06/13] =?UTF-8?q?feat(CLGL):=20=E5=85=A5=E5=BA=93=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=AE=A1=E5=88=92=E6=98=8E=E7=BB=86=E5=AE=9E?= =?UTF-8?q?=E6=94=B6=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/CLGL/TwInputmasterService.cs | 2 +- SGGL/FineUIPro.Web/CLGL/InPlanMasterEdit.aspx | 2 +- .../CLGL/InPlanMasterEdit.aspx.cs | 35 +++++++++++++++++-- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/SGGL/BLL/CLGL/TwInputmasterService.cs b/SGGL/BLL/CLGL/TwInputmasterService.cs index 7f2d06eb..261f6d61 100644 --- a/SGGL/BLL/CLGL/TwInputmasterService.cs +++ b/SGGL/BLL/CLGL/TwInputmasterService.cs @@ -241,7 +241,7 @@ namespace BLL if (plan == null || plan.State != (int)TwConst.State.已审核) { return; - } + } //判断是否已经生成过入库单 var queryIsExitInMaster = new Tw_InOutMasterOutput(); queryIsExitInMaster.InOutPlanMasterId = planId; diff --git a/SGGL/FineUIPro.Web/CLGL/InPlanMasterEdit.aspx b/SGGL/FineUIPro.Web/CLGL/InPlanMasterEdit.aspx index bde8c373..5959a00d 100644 --- a/SGGL/FineUIPro.Web/CLGL/InPlanMasterEdit.aspx +++ b/SGGL/FineUIPro.Web/CLGL/InPlanMasterEdit.aspx @@ -22,7 +22,7 @@ - <%-- + /// 保存计划明细项的实收数量 + /// + private void SavePlanDetail(string InOutPlanMasterId) + { + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + string detailId = teamGroupRow.Value("id"); + decimal actNum = values.Value("ActNum"); + + var detail = TwInOutplandetailService.GetById(detailId); + if (detail != null) + { + detail.ActNum = actNum; + TwInOutplandetailService.Update(detail); + } + } + } protected void btnEditProcess_Click(object sender, EventArgs e) { throw new NotImplementedException(); @@ -87,7 +109,14 @@ namespace FineUIPro.Web.CLGL protected void btnSave_Click(object sender, EventArgs e) { var model = TwInOutplanmasterService.GetById(Id); - if (model == null) return; + if (model == null) return; + if (model.State == (int)TwConst.State.待审核) + { + SavePlanDetail(Id); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + return; + } model.WarehouseMan = this.CurrUser.PersonId; model.WarehouseDate = DateTime.Now; TwInOutplanmasterService.Update(model); From 3a6308a7c9e257e2a4100f650234a74e8ecc7da8 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Sat, 28 Feb 2026 14:23:15 +0800 Subject: [PATCH 07/13] =?UTF-8?q?=E5=90=88=E5=90=8C=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=8A=B3=E5=8A=A1=E9=A1=B9=E7=9B=AE=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs index b7d74af7..516a4da8 100644 --- a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs @@ -68,7 +68,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement DropConstructionManager.Label = "现场执行经理"; Approval_Construction.Label = "劳务管理组"; - DropProjectManager.Label = "运营管理部"; + DropProjectManager.Label = "项目经理"; } #endregion From bc2427b3354959226a23bfff8b364b5d956015eb Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Sat, 28 Feb 2026 14:49:05 +0800 Subject: [PATCH 08/13] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BA=BA=E5=91=98=E5=87=BA=E5=85=A5=E5=9C=BA?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=8E=A5=E5=8F=A3=E5=8F=96=E6=B6=88=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BB=A3=E5=8F=B7=E5=BF=85=E5=A1=AB=EF=BC=8C=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E4=BB=A3=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=EF=BC=8C=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8F=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIPersonService.cs | 11 +++++++++-- .../BiddingManagement/ActionPlanReviewEdit.aspx.cs | 2 +- SGGL/Model/APIItem/HSSE/PersonInOutItem.cs | 14 ++++++++++++++ SGGL/WebAPI/Controllers/PersonController.cs | 13 +++++++------ 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs index 1fdbdf8d..7a24e5dc 100644 --- a/SGGL/BLL/API/APIPersonService.cs +++ b/SGGL/BLL/API/APIPersonService.cs @@ -1117,14 +1117,17 @@ namespace BLL var query = from x in db.SitePerson_PersonInOut join y in db.SitePerson_Person on x.PersonId equals y.PersonId join z in db.Base_Project on x.ProjectId equals z.ProjectId - where x.ChangeTime >= filter.StartTime && x.ChangeTime <= filter.EndTime && z.ProjectCode.Contains(filter.ProjectCode) + where x.ChangeTime >= filter.StartTime && x.ChangeTime <= filter.EndTime select new Model.PersonInOutItem { PersonId = x.PersonId, PersonName = y.PersonName, ProjectId = x.ProjectId, + ProjectCode=z.ProjectCode, + ProjectName=z.ProjectName, UnitId = y.UnitId, UnitName = db.Base_Unit.First(z => z.UnitId == y.UnitId).UnitName, + IdentityCard=x.IdentityCard, WorkPostId = y.WorkPostId, WorkPostName = db.Base_WorkPost.First(z => z.WorkPostId == y.WorkPostId).WorkPostName, IsIn = x.IsIn, @@ -1142,7 +1145,11 @@ namespace BLL { query = query.Where(x => x.UnitName.Contains(filter.UnitName)); } - + // 项目代号过滤(模糊查询) + if (!string.IsNullOrEmpty(filter.ProjectCode)) + { + query = query.Where(x => x.ProjectCode.Contains(filter.ProjectCode)); + } // 人员姓名过滤(模糊查询) if (!string.IsNullOrEmpty(filter.PersonName)) { diff --git a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs index 516a4da8..9f13d345 100644 --- a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ActionPlanReviewEdit.aspx.cs @@ -67,7 +67,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(Approval_Construction, null, CurrUser.UnitId, Const.ConstructionLabor, false); DropConstructionManager.Label = "现场执行经理"; - Approval_Construction.Label = "劳务管理组"; + Approval_Construction.Label = "主办部门负责人"; DropProjectManager.Label = "项目经理"; } #endregion diff --git a/SGGL/Model/APIItem/HSSE/PersonInOutItem.cs b/SGGL/Model/APIItem/HSSE/PersonInOutItem.cs index f9f5e72a..32967e74 100644 --- a/SGGL/Model/APIItem/HSSE/PersonInOutItem.cs +++ b/SGGL/Model/APIItem/HSSE/PersonInOutItem.cs @@ -86,6 +86,20 @@ namespace Model get; set; } /// + /// 项目代号 + /// + public string ProjectCode + { + get; set; + } + /// + /// 项目名称 + /// + public string ProjectName + { + get; set; + } + /// /// 单位ID /// public string UnitId diff --git a/SGGL/WebAPI/Controllers/PersonController.cs b/SGGL/WebAPI/Controllers/PersonController.cs index ab1517f0..f692c6b5 100644 --- a/SGGL/WebAPI/Controllers/PersonController.cs +++ b/SGGL/WebAPI/Controllers/PersonController.cs @@ -1075,12 +1075,13 @@ namespace WebAPI.Controllers responeData.message = "StartTime不能大于EndTime!"; return responeData; } - if (filter == null || string.IsNullOrEmpty(filter.ProjectCode)) - { - responeData.code = 0; - responeData.message = "ProjectCode为必填参数!"; - return responeData; - } + //20260228 赛鼎it要求取消projectcode必填验证,改为如果有projectcode则按照projectcode查询,没有则不过滤projectcode查询 + //if (filter == null || string.IsNullOrEmpty(filter.ProjectCode)) + //{ + // responeData.code = 0; + // responeData.message = "ProjectCode为必填参数!"; + // return responeData; + //} // 处理可空参数的默认值 int actualPagesize = pagesize ?? 15; From 39a7bc2f6c2b261de511108964c3f3ce44716f25 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Mon, 2 Mar 2026 20:03:07 +0800 Subject: [PATCH 09/13] =?UTF-8?q?=E7=84=8A=E5=8F=A3=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=84=8A=E7=82=B9=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_V2026-03-02-001.sql | 222 ++++++++++ .../HJGL/WeldingManage/WeldJointService.cs | 4 +- .../DataIn/PDMS输出(设计)数据模板.xlsx | Bin 10021 -> 9768 bytes .../WeldingManage/PipelineListPDMSIn.aspx.cs | 12 +- .../HJGL/WeldingManage/WeldJointList.aspx | 4 + .../HJGL/WeldingManage/WeldJointList.aspx.cs | 2 +- SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs | 4 +- SGGL/Model/Model.cs | 410 ++++++++++-------- 8 files changed, 469 insertions(+), 189 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2026-03-02-001.sql diff --git a/DataBase/版本日志/SGGLDB_V2026-03-02-001.sql b/DataBase/版本日志/SGGLDB_V2026-03-02-001.sql new file mode 100644 index 00000000..695cc2d9 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-03-02-001.sql @@ -0,0 +1,222 @@ +alter table dbo.HJGL_WeldJoint + add WeldJointPoint nvarchar(300) +go + +alter view dbo.View_HJGL_WeldJoint as + SELECT jot.[ProjectId] --项目Id + , pipe.[UnitWorkId] --单位工程Id + , uw.UnitWorkName --单位工程 + , pipe.[UnitId] --单位Id + , unit.UnitName --单位 + , jot.[PipelineCode] --管线号 + , pipe.[SingleNumber] --单线图号 + , pipe.[SingleName] --图纸名称 + , pipe.[MediumId] --介质Id + , medium.MediumCode + , medium.MediumName --介质名称 + , pipe.[PipingClassId] --管道等级Id + , pipingClass.PipingClassCode --管道等级 + , pipe.[DetectionRateId] --探伤比例Id + , dr.DetectionRateCode --探伤比例(例如5,10,20) + , pipe.DetectionType --探伤类型Id(可能多个,中间用|分隔) + , STUFF((SELECT ',' + DetectionTypeCode + FROM Base_DetectionType + WHERE CHARINDEX('|' + LTRIM(DetectionTypeId) + '|', '|' + pipe.DetectionType + '|') > 0 + FOR XML PATH('')), 1, 1, '') AS DetectionTypeStr --探伤类型(可能多个,中间用,分隔) + , pipe.DesignTemperature --设计温度℃ + , pipe.DesignPress --设计压力Mpa(g) + , pipe.TestMedium --压力试验介质Id + , tm.MediumName AS TestMediumName --压力试验介质 + , pipe.TestPressure --压力试验压力Mpa(g) + , pipe.PressurePipingClassId --压力管道级别Id + , ppc.PressurePipingClassCode --压力管道级别 + , pipe.PipeLenth --管线长度(m) + , pipe.LeakMedium --泄露性试验介质Id + , tm2.MediumName AS LeakMediumName --泄露性试验介质 + , pipe.LeakPressure --泄露性试验压力Mpa(g) + , pipe.PCMedium --吹洗要求Id + , pm.PurgeMethodCode --吹洗要求 + , pipe.VacuumPressure --真空试验压力Kpa(a) + , pipe.MaterialId --材质Id + , mat.MaterialCode AS PipeMaterialCode --材质 + , pipe.Remark AS PipeRemark --备注 + , pipe.FlowingSection as FlowingSection --流水段 + , jot.[WeldJointId] --焊口Id + , jot.[WeldJointCode] --焊口号 + , jot.[Material1Id] --材质1Id + , mat1.MaterialCode AS Material1Code --材质1 + , jot.[Material2Id] --材质2Id + , mat2.MaterialCode AS Material2Code --材质2 + , jot.[Dia] --外径 + , jot.DNDia --DN公称直径 + , jot.[Size] --达因 + , jot.[Thickness] --壁厚 + , jot.[Specification] --规格 + , jot.[WeldTypeId] --焊缝类型Id + , WeldType.WeldTypeCode --焊缝类型 + , jot.[DetectionTypeId] --检测类型Id + , ndt.DetectionTypeCode --检测类型 + , jot.[Components1Id] --组件1号Id + , com1.ComponentsCode AS ComponentsCode1 --组件1号 + , jot.[Components2Id] --组件2号Id + , com2.ComponentsCode AS ComponentsCode2 --组件2号 + , jot.DesignIsHotProess --是否热处理 + , CASE jot.DesignIsHotProess WHEN 1 THEN '是' ELSE '否' END AS DesignIsHotProessStr --是否热处理 + , jot.[WeldingMethodId] --焊接方法Id + , WeldingMethod.WeldingMethodCode --焊接方法 + , jot.WPQId --WPS的Id + , wps.WPQCode --WPS编号 + , jot.MatchableWPQ --可匹配WPQ + , jot.[GrooveTypeId] --坡口类型Id + , GrooveType.GrooveTypeCode --坡口类型 + , jot.[WeldingRod] --焊条Id + , rod.ConsumablesCode AS WeldingRodCode --焊条 + , jot.[WeldingWire] --焊丝Id + , wire.ConsumablesCode AS WeldingWireCode --焊丝 + , jot.PreTemperature --预热温度 + , jot.[JointAttribute] --焊口属性 + , jot.TwoJointType --二次焊口新增类型 + , pipe.PipeArea --工厂预制/现场安装 + , daily.WeldingDate as WeldingDateD + , CONVERT(VARCHAR(100), daily.WeldingDate, 23) AS WeldingDate --焊接日期 + , BackingWelder.WelderCode AS BackingWelderCode --打底焊工 + , CoverWelder.WelderCode AS CoverWelderCode --盖面焊工 + , CoverWelderTeamGroup.TeamGroupName as CoverWelderTeamGroupName ----盖面焊工班组 + , BackingWelderTeamGroup.TeamGroupName as BackingWelderTeamGroupName --打底焊工班组 + , (CASE (SELECT COUNT(*) + FROM [dbo].[HJGL_HotProess_TrustItem] hpti + WHERE hpti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(ReportNo, '') + FROM [dbo].[HJGL_HotProess_Trust] hpt + LEFT JOIN [dbo].[HJGL_HotProess_TrustItem] hpti + ON hpti.HotProessTrustId = hpt.HotProessTrustId + WHERE hpti.WeldJointId = jot.WeldJointId) END) AS HotProessReportNo --热处理报告编号 + , (CASE (SELECT TOP 1 IsCompleted + FROM [dbo].[HJGL_HotProess_TrustItem] hpti + WHERE hpti.WeldJointId = jot.WeldJointId) + WHEN 1 THEN '完成' + WHEN 0 THEN '未完成' + ELSE '未热处理' END) AS HotProessResult --热处理检测结果 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Hard_TrustItem hti + WHERE hti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(InspectionNum, '') + FROM [dbo].HJGL_Hard_Trust ht + LEFT JOIN [dbo].HJGL_Hard_TrustItem hti ON hti.HardTrustID = ht.HardTrustID + WHERE hti.WeldJointId = jot.WeldJointId) END) AS HardReportNo --硬度报告编号 + , (CASE (SELECT TOP 1 IsPass + FROM [dbo].HJGL_Hard_TrustItem hti + WHERE hti.WeldJointId = jot.WeldJointId) + WHEN 1 THEN '合格' + WHEN 0 THEN '不合格' + ELSE '待检测' END) AS HardResult --硬度检测结果 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Batch_BatchTrustItem bti + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 TrustBatchCode + FROM [dbo].HJGL_Batch_BatchTrust bt + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchId = bt.TrustBatchId + WHERE bti.WeldJointId = jot.WeldJointId) END) AS TrustBatchCode --委托单编号 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Batch_NDEItem ndei + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(NDECode, '') + FROM [dbo].HJGL_Batch_NDE nde + LEFT JOIN [dbo].HJGL_Batch_NDEItem ndei ON ndei.NDEID = nde.NDEID + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti + ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) END) AS NDECode --检测单编号 + , (CASE (SELECT TOP 1 CheckResult + FROM [dbo].HJGL_Batch_NDEItem ndei + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN '1' THEN '合格' + WHEN '2' THEN '不合格' + ELSE '' END) AS CheckResult --检测结果 + , jot.PipelineId + , jot.[JointArea] + , jot.[WeldingLocationId] + , jot.[HeartNo1] + , jot.[HeartNo2] + , jot.[IsHotProess] + , jot.[WeldingDailyId] + , jot.[BackingWelderId] + , jot.[CoverWelderId] + , jot.WeldingMode + , jot.Remark + , jot.IsTwoJoint + , jot.SubmitMan + , jot.AuditMan + , jot.AuditMan2 + , jot.AuditDate + , jot.AuditDate2 + , jot.WeldJointPoint + , WeldingLocation.WeldingLocationCode + , CASE WHEN jot.WeldingDailyId IS NULL THEN '否' ELSE '是' END AS IsWelding + , CASE WHEN jot.WeldingDailyId IS NULL THEN '未完成' ELSE '已完成' END AS IsWeldOK + , CASE WHEN jot.IsHotProess = 1 THEN '是' ELSE '否' END AS IsHotProessStr + , BackingWelder.PersonName AS BackingWelderName + , CoverWelder.PersonName AS CoverWelderName + , (CASE + WHEN CoverWelder.WelderCode IS NOT NULL AND BackingWelder.WelderCode IS NOT NULL + THEN CoverWelder.WelderCode + '/' + BackingWelder.WelderCode + ELSE (ISNULL(CoverWelder.WelderCode, '') + ISNULL(BackingWelder.WelderCode, '')) END) AS WelderCode + , --焊工 + (CASE + WHEN mat1.MaterialCode IS NOT NULL AND mat2.MaterialCode IS NOT NULL + THEN mat1.MaterialCode + '/' + mat2.MaterialCode + ELSE (ISNULL(mat1.MaterialCode, '') + ISNULL(mat2.MaterialCode, '')) END) AS MaterialCode + , --材质 + + daily.WeldingDailyCode + , pointItem.PointBatchId + , point.PointBatchCode + , (CASE + WHEN pointItem.PointState = '1' THEN '已点口' + WHEN pointItem.PointState = '2' THEN '已扩透' + ELSE '' END) AS IsPoint + FROM [dbo].[HJGL_WeldJoint] jot + LEFT JOIN dbo.HJGL_Pipeline pipe ON pipe.PipelineId = jot.PipelineId + LEFT JOIN dbo.WBS_UnitWork uw ON uw.UnitWorkId = pipe.UnitWorkId + LEFT JOIN dbo.HJGL_WeldingDaily AS daily ON daily.WeldingDailyId = jot.WeldingDailyId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId = daily.UnitId + LEFT JOIN Base_WeldType AS WeldType ON WeldType.WeldTypeId = jot.WeldTypeId + LEFT JOIN dbo.Base_DetectionRate dr ON dr.DetectionRateId = pipe.DetectionRateId + LEFT JOIN Base_TestMedium tm ON tm.TestMediumId = pipe.TestMedium + LEFT JOIN Base_TestMedium tm2 ON tm2.TestMediumId = pipe.LeakMedium + LEFT JOIN Base_PurgeMethod pm ON pm.PurgeMethodId = pipe.PCMedium + LEFT JOIN Base_PressurePipingClass ppc ON ppc.PressurePipingClassId = pipe.PressurePipingClassId + LEFT JOIN Base_Material AS mat ON mat.MaterialId = pipe.MaterialId + LEFT JOIN Base_Material AS mat1 ON mat1.MaterialId = jot.Material1Id + LEFT JOIN Base_Material AS mat2 ON mat2.MaterialId = jot.Material2Id + LEFT JOIN Base_WeldingMethod AS WeldingMethod ON WeldingMethod.WeldingMethodId = jot.WeldingMethodId + LEFT JOIN Base_WeldingLocation AS WeldingLocation + ON WeldingLocation.WeldingLocationId = jot.WeldingLocationId + LEFT JOIN Base_Consumables AS wire ON wire.ConsumablesId = jot.WeldingWire + LEFT JOIN Base_Consumables AS rod ON rod.ConsumablesId = jot.WeldingRod + LEFT JOIN Base_GrooveType AS GrooveType ON GrooveType.GrooveTypeId = jot.GrooveTypeId + LEFT JOIN Base_Components AS com1 ON com1.ComponentsId = jot.Components1Id + LEFT JOIN Base_Components AS com2 ON com2.ComponentsId = jot.Components2Id + LEFT JOIN SitePerson_Person AS BackingWelder + ON BackingWelder.PersonId = jot.BackingWelderId and BackingWelder.ProjectId = jot.ProjectId + LEFT JOIN SitePerson_Person AS CoverWelder + ON CoverWelder.PersonId = jot.CoverWelderId and CoverWelder.ProjectId = jot.ProjectId + LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId = pipe.PipingClassId + LEFT JOIN dbo.Base_Medium medium ON medium.MediumId = pipe.MediumId + LEFT JOIN dbo.Base_DetectionType ndt ON ndt.DetectionTypeId = jot.DetectionTypeId + LEFT JOIN dbo.WPQ_WPQList wps ON wps.WPQId = jot.WPQId + LEFT JOIN dbo.HJGL_Batch_PointBatchItem pointItem ON pointItem.WeldJointId = jot.WeldJointId + LEFT JOIN dbo.HJGL_Batch_PointBatch point ON point.PointBatchId = pointItem.PointBatchId + LEFT JOIN dbo.ProjectData_TeamGroup AS CoverWelderTeamGroup + on CoverWelderTeamGroup.TeamGroupId = jot.CoverWelderTeamGroupId and + CoverWelderTeamGroup.ProjectId = jot.ProjectId + LEFT JOIN dbo.ProjectData_TeamGroup AS BackingWelderTeamGroup + on BackingWelderTeamGroup.TeamGroupId = jot.BackingWelderTeamGroupId and + BackingWelderTeamGroup.ProjectId = jot.ProjectId +go + diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs index 3f21f363..5c3ce0dd 100644 --- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs +++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs @@ -118,7 +118,8 @@ namespace BLL SubmitMan = weldJoint.SubmitMan, TwoJointType = weldJoint.TwoJointType, CoverWelderTeamGroupId = weldJoint.CoverWelderTeamGroupId, - BackingWelderTeamGroupId = weldJoint.BackingWelderTeamGroupId + BackingWelderTeamGroupId = weldJoint.BackingWelderTeamGroupId, + WeldJointPoint = weldJoint.WeldJointPoint }; if (!string.IsNullOrEmpty(weldJoint.WeldJointId)) { @@ -189,6 +190,7 @@ namespace BLL newWeldJoint.TwoJointType = weldJoint.TwoJointType; newWeldJoint.CoverWelderTeamGroupId = weldJoint.CoverWelderTeamGroupId; newWeldJoint.BackingWelderTeamGroupId = weldJoint.BackingWelderTeamGroupId; + newWeldJoint.WeldJointPoint = weldJoint.WeldJointPoint; db.SubmitChanges(); } } diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/PDMS输出(设计)数据模板.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataIn/PDMS输出(设计)数据模板.xlsx index d4711140f99ce9ae31c056c0a93eff9f0d313a79..67cfb9b7630f3642b7b030c181394aaca38a2a53 100644 GIT binary patch literal 9768 zcma)CbwE|kwkM?}q`Nz%yOHkh?rs4=I;5rJ(48VB9n#(1A=2IP4tl@qr}umJz4>GI zIkSIj*51FFv(BuLmjZ`?1$l14vg-oR*S{JJ@Po0Pk-Vdwy%U2x5QYjIfc^m+7SaY~ z0tEr#1Oov<`a8_P-k#pw#yUNwT@suLDd@=W2+6U+;zLNBby()QD6M*P&%QOztc;MU zwq{1x2dH-Tw)iKe?CPX}-)Y)wU|fsarQY zNz9}Nk~*GHkSk!PU*=ane%JvQsd`T<%0YXbLOB>9@Ht3qLoilHk(vNU#v+1dt)w5D z<6^r7^o=1GJ^{=uQawt)!u88dPKW7nA7LpwF1{umTVXKOQ__HWY?-3GhH7$;bF@#N zBYZW(vM3n@+_o_0#gwb^G~j}~jLiuYAE?aSu(LkUxtHWjMJjrk4M_3NfKnAl&3wD6 z>lrD)po#^o+&Y-!4PVO3cnD*=M(7A^i+9kkjVmI!tI#>;^1r7LUIh?sn5ONqf^4M< zx3oAkoYQFC-+#FU`<>o8_&zxWAibJEdXfK5uaTXj$uqz2Vg+S88IeS<#21N9`97t` z!j_W8OHQGQilh3@YFt)Fh^O_khpRIZ_ONZ=^?sz*L$u=|KbQY;W(=?bKl zD#K)h3gS~L^h=k$a;{6e`_{{xK+|`oDCp;^KT68W8!Fl*QnV(Ph-RMZdx9&0MP3YH zQ(A`EEoPm$N^bvh>#Ir;oUKmLO#S+LXa#6+K)3^Ff|M<%?R)R3S7Z28qEV#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k}08nLsv|xt-bBi7RKmZ=TVIBMSrXBxW7w zcBBu(krfzzP6*&37?Sx43l_rb<|wo=M=>^x&FRrVA@m%My_L7*GyYmCGro>fqB=nx zW_%jQf|=bwC3$PnILb(yl>0TK@uTQrw;@H7pt4 zcCW>IaDBeG#A5QWK*&GycRrWlqeaj| z_>2y*RLDV(KUu1iBgoeJUrPUn&;USQjGSzj@NfOp1J7!*fqZFc<+BN}t763!DQ7BY z^fKC4x!T~TWd_YK1SWUlmGxv(lgXK4;^y3>H|47E!BM`iaOSMbuLxXMZ1hq2jfiGA z{nRL7UKzC0wzWu;y%Go=xaxF8&wc}sJ{u|Pk1B-t6@Rs7@I`vYdm|m5!3!+uJh_S zRZ=`NQY>6IOK(ly%uAZt<94F45ggZ|7@N!c0)!xIQ=6d%vW4^{;ybgCT{ngY@o$Hz zsk&XbE|Ac%6LTz+a>BZVtifR;I<@yKg4tBTgJ=xYMg|0BVd7vsdisq*+C6S$uWFGw z$?s(UB^eYn17s=q&*zE$nA6|B{ln=ZMcKaw`0IIxKL^N$IPsrOKl}{*x$FA}bQ;nJ z{;3E2Gx)EqvOk~zz!K80;Qyy__H&${`zL=y!hm#C{=aU@&ryD^g#HmF4D%oBqCW@t zd0YKQ0B_u11N^bc{u%o73jYr%6X9>rpV#|8NBHaF?GHQvkVp&w{B0@sGyJcK_s?(w u2U(VK`06HMvC{Ojvum1yB=iv+h diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs index 7e52491b..0b72df78 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs @@ -730,6 +730,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage } } + // 读取焊点坐标(AE列) + string col29 = Convert.ToString(pds[i].AE); + if (!string.IsNullOrEmpty(col29)) + { + pipeline.WeldJointPoint = col29; + } + if (!string.IsNullOrEmpty(pipeline.PipelineCode) && !string.IsNullOrEmpty(pipeline.WeldJointCode)) { pipeline.ProjectId = this.CurrUser.LoginProjectId; @@ -1039,6 +1046,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage JointAttribute = x.JointAttribute, ProjectId = this.CurrUser.LoginProjectId, IsHotProess = x.IsHotProess, + WeldJointPoint = x.WeldJointPoint, }).DistinctBy(temp => new { temp.WeldJointCode, @@ -1054,7 +1062,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage temp.DetectionTypeId, temp.JointAttribute, temp.ProjectId, - temp.IsHotProess + temp.IsHotProess, + temp.WeldJointPoint }).ToList(); var pipelineCodes = weldJoints.Select(x => x.PipelineCode).Distinct().ToList(); @@ -1076,6 +1085,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage weldJoint.JointAttribute = weldJoints[i].JointAttribute; weldJoint.ProjectId = weldJoints[i].ProjectId; weldJoint.IsHotProess = weldJoints[i].IsHotProess; + weldJoint.WeldJointPoint = weldJoints[i].WeldJointPoint; var isExistJot = allWeldJoints.FirstOrDefault(x => x.PipelineId == weldJoint.PipelineId && x.WeldJointCode == weldJoint.WeldJointCode); if (isExistJot != null) // 更新焊口 diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx index 7c25b792..a497b446 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx @@ -294,6 +294,10 @@ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px"> + + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs index 310f02df..7940da7f 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs @@ -328,7 +328,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage IsWelding,IsHotProessStr,Material1Code,Material2Code,WeldTypeCode, Specification,HeartNo1,HeartNo2,Size,Dia,DNDia,Thickness,GrooveTypeCode, WeldingMethodCode,WeldingWireCode,WeldingRodCode,WeldingDate,WeldingDailyCode, - BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark + BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark,WeldJointPoint FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL "; List listStr = new List { }; diff --git a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs index f3f65ca8..237826fc 100644 --- a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs @@ -629,10 +629,10 @@ namespace FineUIPro.Web.Person /// protected void drpRole_SelectedIndexChanged(object sender, EventArgs e) { - if (this.drpRole.SelectedItemArray.Count() > 4) + if (this.drpRole.SelectedItemArray.Count() > 5) { this.drpRole.SelectedValueArray = null; - Alert.ShowInParent("最多可选择4个角色!", MessageBoxIcon.Warning); + Alert.ShowInParent("最多可选择5个角色!", MessageBoxIcon.Warning); } else { diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index a5658a95..0f229b3c 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -12365,7 +12365,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")] public string ApproveIdea { get @@ -22544,6 +22544,8 @@ namespace Model private string _UnitId; + private string _ProjectId; + private string _MaterialId; private string _ColorName; @@ -22554,8 +22556,6 @@ namespace Model private string _Remark; - private string _ProjectId; - #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -22564,6 +22564,8 @@ namespace Model partial void OnMaterialColorIdChanged(); partial void OnUnitIdChanging(string value); partial void OnUnitIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); partial void OnMaterialIdChanging(string value); partial void OnMaterialIdChanged(); partial void OnColorNameChanging(string value); @@ -22574,8 +22576,6 @@ namespace Model partial void OnRGBChanged(); partial void OnRemarkChanging(string value); partial void OnRemarkChanged(); - partial void OnProjectIdChanging(string value); - partial void OnProjectIdChanged(); #endregion public Base_MaterialColor() @@ -22623,6 +22623,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialId", DbType="NVarChar(50)")] public string MaterialId { @@ -22723,26 +22743,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] - public string ProjectId - { - get - { - return this._ProjectId; - } - set - { - if ((this._ProjectId != value)) - { - this.OnProjectIdChanging(value); - this.SendPropertyChanging(); - this._ProjectId = value; - this.SendPropertyChanged("ProjectId"); - this.OnProjectIdChanged(); - } - } - } - public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -100096,10 +100096,10 @@ namespace Model private string _TrainNumber; - private System.Nullable _TypeInt; - private string _TrainNumberId; + private System.Nullable _TypeInt; + private string _CompileMan; private System.Nullable _CompileDate; @@ -100134,10 +100134,10 @@ namespace Model partial void OnReceiveDateChanged(); partial void OnTrainNumberChanging(string value); partial void OnTrainNumberChanged(); - partial void OnTypeIntChanging(System.Nullable value); - partial void OnTypeIntChanged(); partial void OnTrainNumberIdChanging(string value); partial void OnTrainNumberIdChanged(); + partial void OnTypeIntChanging(System.Nullable value); + partial void OnTypeIntChanged(); partial void OnCompileManChanging(string value); partial void OnCompileManChanged(); partial void OnCompileDateChanging(System.Nullable value); @@ -100391,26 +100391,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeInt", DbType="Int")] - public System.Nullable TypeInt - { - get - { - return this._TypeInt; - } - set - { - if ((this._TypeInt != value)) - { - this.OnTypeIntChanging(value); - this.SendPropertyChanging(); - this._TypeInt = value; - this.SendPropertyChanged("TypeInt"); - this.OnTypeIntChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainNumberId", DbType="VarChar(50)")] public string TrainNumberId { @@ -100431,6 +100411,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeInt", DbType="Int")] + public System.Nullable TypeInt + { + get + { + return this._TypeInt; + } + set + { + if ((this._TypeInt != value)) + { + this.OnTypeIntChanging(value); + this.SendPropertyChanging(); + this._TypeInt = value; + this.SendPropertyChanged("TypeInt"); + this.OnTypeIntChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] public string CompileMan { @@ -107488,6 +107488,8 @@ namespace Model private string _CoverWelderTeamGroupId; + private string _WeldJointPoint; + private EntitySet _HJGL_Batch_BatchTrustItem; private EntitySet _HJGL_Batch_PointBatchItem; @@ -107634,6 +107636,8 @@ namespace Model partial void OnBackingWelderTeamGroupIdChanged(); partial void OnCoverWelderTeamGroupIdChanging(string value); partial void OnCoverWelderTeamGroupIdChanged(); + partial void OnWeldJointPointChanging(string value); + partial void OnWeldJointPointChanged(); #endregion public HJGL_WeldJoint() @@ -108703,6 +108707,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointPoint", DbType="NVarChar(300)")] + public string WeldJointPoint + { + get + { + return this._WeldJointPoint; + } + set + { + if ((this._WeldJointPoint != value)) + { + this.OnWeldJointPointChanging(value); + this.SendPropertyChanging(); + this._WeldJointPoint = value; + this.SendPropertyChanged("WeldJointPoint"); + this.OnWeldJointPointChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Batch_BatchTrustItem_HJGL_WeldJoint", Storage="_HJGL_Batch_BatchTrustItem", ThisKey="WeldJointId", OtherKey="WeldJointId", DeleteRule="NO ACTION")] public EntitySet HJGL_Batch_BatchTrustItem { @@ -111678,7 +111702,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rectification", DbType="NVarChar(500)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rectification", DbType="NVarChar(50)")] public string Rectification { get @@ -111804,7 +111828,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measures", DbType="NVarChar(500)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measures", DbType="NVarChar(50)")] public string Measures { get @@ -164917,7 +164941,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(3000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(500)")] public string AttentPerson { get @@ -195924,7 +195948,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectDescription", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectDescription", DbType="VarChar(255)")] public string ProjectDescription { get @@ -196044,7 +196068,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CalculationRule", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CalculationRule", DbType="VarChar(255)")] public string CalculationRule { get @@ -196104,7 +196128,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionSubcontractor", DbType="VarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionSubcontractor", DbType="VarChar(50)")] public string ConstructionSubcontractor { get @@ -196488,7 +196512,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,3)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,2)")] public System.Nullable WorkPackageEstimate { get @@ -196793,16 +196817,6 @@ namespace Model private string _ProjectId; - private string _ContractId; - - private string _OrderCode; - - private System.Nullable _OrderInDate; - - private System.Nullable _OrderOutDate; - - private string _MaterialRequisitionUnit; - private System.Nullable _State; private string _InvoiceCode; @@ -196831,6 +196845,16 @@ namespace Model private string _CreateUser; + private string _ContractId; + + private System.Nullable _OrderInDate; + + private string _OrderCode; + + private System.Nullable _OrderOutDate; + + private string _MaterialRequisitionUnit; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -196839,16 +196863,6 @@ namespace Model partial void OnInvoiceIdChanged(); partial void OnProjectIdChanging(string value); partial void OnProjectIdChanged(); - partial void OnContractIdChanging(string value); - partial void OnContractIdChanged(); - partial void OnOrderCodeChanging(string value); - partial void OnOrderCodeChanged(); - partial void OnOrderInDateChanging(System.Nullable value); - partial void OnOrderInDateChanged(); - partial void OnOrderOutDateChanging(System.Nullable value); - partial void OnOrderOutDateChanged(); - partial void OnMaterialRequisitionUnitChanging(string value); - partial void OnMaterialRequisitionUnitChanged(); partial void OnStateChanging(System.Nullable value); partial void OnStateChanged(); partial void OnInvoiceCodeChanging(string value); @@ -196877,6 +196891,16 @@ namespace Model partial void OnCreateDateChanged(); partial void OnCreateUserChanging(string value); partial void OnCreateUserChanged(); + partial void OnContractIdChanging(string value); + partial void OnContractIdChanged(); + partial void OnOrderInDateChanging(System.Nullable value); + partial void OnOrderInDateChanged(); + partial void OnOrderCodeChanging(string value); + partial void OnOrderCodeChanged(); + partial void OnOrderOutDateChanging(System.Nullable value); + partial void OnOrderOutDateChanged(); + partial void OnMaterialRequisitionUnitChanging(string value); + partial void OnMaterialRequisitionUnitChanged(); #endregion public PHTGL_Invoice() @@ -196924,106 +196948,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractId", DbType="NVarChar(50)")] - public string ContractId - { - get - { - return this._ContractId; - } - set - { - if ((this._ContractId != value)) - { - this.OnContractIdChanging(value); - this.SendPropertyChanging(); - this._ContractId = value; - this.SendPropertyChanged("ContractId"); - this.OnContractIdChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderCode", DbType="NVarChar(50)")] - public string OrderCode - { - get - { - return this._OrderCode; - } - set - { - if ((this._OrderCode != value)) - { - this.OnOrderCodeChanging(value); - this.SendPropertyChanging(); - this._OrderCode = value; - this.SendPropertyChanged("OrderCode"); - this.OnOrderCodeChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderInDate", DbType="Date")] - public System.Nullable OrderInDate - { - get - { - return this._OrderInDate; - } - set - { - if ((this._OrderInDate != value)) - { - this.OnOrderInDateChanging(value); - this.SendPropertyChanging(); - this._OrderInDate = value; - this.SendPropertyChanged("OrderInDate"); - this.OnOrderInDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderOutDate", DbType="Date")] - public System.Nullable OrderOutDate - { - get - { - return this._OrderOutDate; - } - set - { - if ((this._OrderOutDate != value)) - { - this.OnOrderOutDateChanging(value); - this.SendPropertyChanging(); - this._OrderOutDate = value; - this.SendPropertyChanged("OrderOutDate"); - this.OnOrderOutDateChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialRequisitionUnit", DbType="NVarChar(100)")] - public string MaterialRequisitionUnit - { - get - { - return this._MaterialRequisitionUnit; - } - set - { - if ((this._MaterialRequisitionUnit != value)) - { - this.OnMaterialRequisitionUnitChanging(value); - this.SendPropertyChanging(); - this._MaterialRequisitionUnit = value; - this.SendPropertyChanged("MaterialRequisitionUnit"); - this.OnMaterialRequisitionUnitChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Int")] public System.Nullable State { @@ -197304,6 +197228,106 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractId", DbType="NVarChar(50)")] + public string ContractId + { + get + { + return this._ContractId; + } + set + { + if ((this._ContractId != value)) + { + this.OnContractIdChanging(value); + this.SendPropertyChanging(); + this._ContractId = value; + this.SendPropertyChanged("ContractId"); + this.OnContractIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderInDate", DbType="Date")] + public System.Nullable OrderInDate + { + get + { + return this._OrderInDate; + } + set + { + if ((this._OrderInDate != value)) + { + this.OnOrderInDateChanging(value); + this.SendPropertyChanging(); + this._OrderInDate = value; + this.SendPropertyChanged("OrderInDate"); + this.OnOrderInDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderCode", DbType="NVarChar(50)")] + public string OrderCode + { + get + { + return this._OrderCode; + } + set + { + if ((this._OrderCode != value)) + { + this.OnOrderCodeChanging(value); + this.SendPropertyChanging(); + this._OrderCode = value; + this.SendPropertyChanged("OrderCode"); + this.OnOrderCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderOutDate", DbType="Date")] + public System.Nullable OrderOutDate + { + get + { + return this._OrderOutDate; + } + set + { + if ((this._OrderOutDate != value)) + { + this.OnOrderOutDateChanging(value); + this.SendPropertyChanging(); + this._OrderOutDate = value; + this.SendPropertyChanged("OrderOutDate"); + this.OnOrderOutDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialRequisitionUnit", DbType="NVarChar(100)")] + public string MaterialRequisitionUnit + { + get + { + return this._MaterialRequisitionUnit; + } + set + { + if ((this._MaterialRequisitionUnit != value)) + { + this.OnMaterialRequisitionUnitChanging(value); + this.SendPropertyChanging(); + this._MaterialRequisitionUnit = value; + this.SendPropertyChanged("MaterialRequisitionUnit"); + this.OnMaterialRequisitionUnitChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -198682,7 +198706,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewResults", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewResults", DbType="NVarChar(1000)")] public string ReviewResults { get @@ -296920,6 +296944,8 @@ namespace Model private System.Nullable _AuditDate2; + private string _WeldJointPoint; + private string _WeldingLocationCode; private string _IsWelding; @@ -298564,6 +298590,22 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointPoint", DbType="NVarChar(300)")] + public string WeldJointPoint + { + get + { + return this._WeldJointPoint; + } + set + { + if ((this._WeldJointPoint != value)) + { + this._WeldJointPoint = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingLocationCode", DbType="NVarChar(50)")] public string WeldingLocationCode { @@ -320714,7 +320756,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")] public string Name { get @@ -321291,7 +321333,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(50)")] public string PackageContent { get @@ -321482,7 +321524,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(50)")] public string PackageContent { get @@ -326821,7 +326863,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(50)")] public string PackageContent { get @@ -328293,7 +328335,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PackageContent", DbType="NVarChar(50)")] public string PackageContent { get @@ -338194,7 +338236,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractNo", DbType="NVarChar(1500)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractNo", DbType="NVarChar(500)")] public string ContractNo { get @@ -338214,7 +338256,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorks", DbType="NVarChar(1500)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorks", DbType="NVarChar(500)")] public string UnitWorks { get From 5b89af7fa0a77614942ed249294f5d6c5691a8ec Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Tue, 3 Mar 2026 10:40:52 +0800 Subject: [PATCH 10/13] =?UTF-8?q?=E6=A0=A1=E6=AD=A3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WeldingManage/PipelineListPDMSIn.aspx.cs | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs index 0b72df78..1cbd2ad9 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs @@ -1103,36 +1103,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage if (weldJoints_add.Count > 0) { BLL.WeldJointService.AddBulkWeldJoint(weldJoints_add); - } - Model.SGGLDB db2 = Funs.DB; - List delJoints = new List(); - var allWeldJoints2 = from x in db2.HJGL_WeldJoint - join y in db2.HJGL_Pipeline on x.PipelineId equals y.PipelineId - where y.UnitWorkId == Request.Params["UnitWorkId"] - select x; - foreach (var pipelineCode in pipelineCodes) - { - var pipelineWeldJointCodes = weldJoints.Where(x => x.PipelineCode == pipelineCode).Select(x => x.WeldJointCode).ToList(); - var q = allWeldJoints2.Where(x => x.PipelineCode == pipelineCode && !pipelineWeldJointCodes.Contains(x.WeldJointCode)).ToList(); - delJoints.AddRange(q); - } - if (delJoints.Count() > 0) - { - try - { - db2.HJGL_WeldJoint.DeleteAllOnSubmit(delJoints); - db2.SubmitChanges(); - } - catch (Exception) - { - string weldJointCodes = string.Empty; - foreach (var item in delJoints) - { - weldJointCodes += item.WeldJointCode + ","; - } - Alert.ShowInParent(weldJointCodes, MessageBoxIcon.Warning); - } - } + } } //public void AddView_HJGL_WeldJoint(List PipelineList) From b9f4db1a04dd57d2bc3d69d014ceba814085d1b9 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Thu, 5 Mar 2026 19:26:36 +0800 Subject: [PATCH 11/13] =?UTF-8?q?=20=20feat(HJGL):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9D=90=E6=96=99=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=A1=E7=BA=BF=E5=88=92=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **新增功能:** - 添加材料仓库管理模块(增删改查) - 管线划分页面支持按流水段和管线划分筛选 - 管线划分页面支持批量设置仓库 **技术改进:** - 新增 Base_Warehouse 表和模型 - 扩展 HJGL_Pipeline 模型添加 WarehouseId 字段 - 优化管线查询支持多条件组合 --- SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Common/Const.cs | 5 + .../HJGL/BaseInfo/Base_WarehouseService.cs | 109 +++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 ++ .../HJGL/BaseInfo/Warehouse.aspx | 99 +++++++ .../HJGL/BaseInfo/Warehouse.aspx.cs | 274 ++++++++++++++++++ .../HJGL/BaseInfo/Warehouse.aspx.designer.cs | 179 ++++++++++++ .../HJGL/BaseInfo/WarehouseEdit.aspx | 46 +++ .../HJGL/BaseInfo/WarehouseEdit.aspx.cs | 100 +++++++ .../BaseInfo/WarehouseEdit.aspx.designer.cs | 87 ++++++ .../HJGL/BaseInfo/WarehouseView.aspx | 43 +++ .../HJGL/BaseInfo/WarehouseView.aspx.cs | 50 ++++ .../BaseInfo/WarehouseView.aspx.designer.cs | 78 +++++ .../HJGL/PreDesign/PipelingDivide.aspx | 23 +- .../HJGL/PreDesign/PipelingDivide.aspx.cs | 123 +++++++- .../PreDesign/PipelingDivide.aspx.designer.cs | 31 +- SGGL/FineUIPro.Web/common/Menu_HJGL.xml | 9 +- SGGL/Model/Model.cs | 265 +++++++++++++++++ 18 files changed, 1533 insertions(+), 13 deletions(-) create mode 100644 SGGL/BLL/HJGL/BaseInfo/Base_WarehouseService.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.designer.cs diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 84946509..8f460448 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -399,6 +399,7 @@ + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 12317853..28a9603a 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -2821,6 +2821,11 @@ namespace BLL /// public const string HJGL_ComponentsMenuId = "8IDKGJE2-09B1-4607-BC6D-865CE48F0009"; + /// + /// 材料仓库 + /// + public const string HJGL_WarehouseMenuId = "2F027233-22EC-4063-A04F-FB9FE6A91588"; + /// /// 探伤类型 /// diff --git a/SGGL/BLL/HJGL/BaseInfo/Base_WarehouseService.cs b/SGGL/BLL/HJGL/BaseInfo/Base_WarehouseService.cs new file mode 100644 index 00000000..f3eec28a --- /dev/null +++ b/SGGL/BLL/HJGL/BaseInfo/Base_WarehouseService.cs @@ -0,0 +1,109 @@ +namespace BLL +{ + using Model; + using System.Collections.Generic; + using System.Linq; + + public static class Base_WarehouseService + { + /// + /// 根据仓库ID获取仓库信息 + /// + /// 仓库ID + /// 仓库实体 + public static Model.Base_Warehouse GetWarehouseByWarehouseId(string warehouseId) + { + return Funs.DB.Base_Warehouse.FirstOrDefault(e => e.WarehouseId == warehouseId); + } + + /// + /// 新增仓库信息 + /// + /// 仓库实体 + public static void AddWarehouse(Model.Base_Warehouse warehouse) + { + Model.SGGLDB db = Funs.DB; + Model.Base_Warehouse newWarehouse = new Base_Warehouse + { + WarehouseId = warehouse.WarehouseId, + WarehouseName = warehouse.WarehouseName, + Remark = warehouse.Remark, + ProjectId = warehouse.ProjectId, + CreateUserId = warehouse.CreateUserId, + CreateTime = warehouse.CreateTime, + ModifyUserId = warehouse.ModifyUserId, + ModifyTime = warehouse.ModifyTime, + }; + db.Base_Warehouse.InsertOnSubmit(newWarehouse); + db.SubmitChanges(); + } + + /// + /// 更新仓库信息 + /// + /// 仓库实体 + public static void UpdateWarehouse(Model.Base_Warehouse warehouse) + { + Model.SGGLDB db = Funs.DB; + Model.Base_Warehouse newWarehouse = db.Base_Warehouse.FirstOrDefault(e => e.WarehouseId == warehouse.WarehouseId); + if (newWarehouse != null) + { + newWarehouse.WarehouseName = warehouse.WarehouseName; + newWarehouse.Remark = warehouse.Remark; + newWarehouse.ProjectId = warehouse.ProjectId; + newWarehouse.ModifyUserId = warehouse.ModifyUserId; + newWarehouse.ModifyTime = warehouse.ModifyTime; + db.SubmitChanges(); + } + } + + /// + /// 根据仓库ID删除仓库信息 + /// + /// 仓库ID + public static void DeleteWarehouseByWarehouseId(string warehouseId) + { + Model.SGGLDB db = Funs.DB; + Model.Base_Warehouse delWarehouse = db.Base_Warehouse.FirstOrDefault(e => e.WarehouseId == warehouseId); + if (delWarehouse != null) + { + db.Base_Warehouse.DeleteOnSubmit(delWarehouse); + db.SubmitChanges(); + } + } + + /// + /// 获取项目下所有仓库列表 + /// + /// 项目ID + /// 仓库列表 + public static List GetWarehouseList(string projectId) + { + var list = (from x in Funs.DB.Base_Warehouse + where x.ProjectId == projectId + orderby x.WarehouseName + select x).ToList(); + + return list; + } + + /// + /// 初始化仓库下拉框 + /// + /// 下拉框控件 + /// 项目ID + /// 是否显示"请选择" + /// "请选择"项的文本 + public static void InitWarehouseDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease, string itemText) + { + dropName.DataValueField = "WarehouseId"; + dropName.DataTextField = "WarehouseName"; + dropName.DataSource = GetWarehouseList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName, itemText); + } + } + } +} diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 3933756b..dc8503e2 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1520,6 +1520,9 @@ + + + @@ -10347,6 +10350,27 @@ TestMediumView.aspx + + Warehouse.aspx + ASPXCodeBehind + + + Warehouse.aspx + + + WarehouseEdit.aspx + ASPXCodeBehind + + + WarehouseEdit.aspx + + + WarehouseView.aspx + ASPXCodeBehind + + + WarehouseView.aspx + Weld.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx new file mode 100644 index 00000000..9a0538c7 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx @@ -0,0 +1,99 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Warehouse.aspx.cs" Inherits="FineUIPro.Web.HJGL.BaseInfo.Warehouse" %> + + + + + 材料仓库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.cs new file mode 100644 index 00000000..9f212071 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.cs @@ -0,0 +1,274 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.HJGL.BaseInfo +{ + public partial class Warehouse : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + this.BindGrid(); + } + } + + #region 绑定数据 + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT WarehouseId,WarehouseName,Remark" + + @" FROM dbo.Base_Warehouse WHERE 1=1 "; + List listStr = new List(); + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (!string.IsNullOrEmpty(this.txtWarehouseName.Text.Trim())) + { + strSql += " AND WarehouseName LIKE @WarehouseName"; + listStr.Add(new SqlParameter("@WarehouseName", "%" + this.txtWarehouseName.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtRemark.Text.Trim())) + { + strSql += " AND Remark LIKE @Remark"; + listStr.Add(new SqlParameter("@Remark", "%" + this.txtRemark.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid(); + } + + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + #endregion + + #region 增加按钮事件 + /// + /// 增加按钮事件 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + if (GetButtonPower(Const.BtnAdd)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WarehouseEdit.aspx", "新增 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 编辑 + /// + /// 双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.EditData(); + } + + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + /// + /// 编辑数据方法 + /// + private void EditData() + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning); + return; + } + + // 双击事件 编辑权限有:编辑页面,无:查看页面 + if (GetButtonPower(Const.BtnModify)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WarehouseEdit.aspx?WarehouseId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + else if (GetButtonPower(Const.BtnSee)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WarehouseView.aspx?WarehouseId={0}", Grid1.SelectedRowID, "查看 - "))); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 删除 + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + if (GetButtonPower(Const.BtnDelete)) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + string strShowNotify = string.Empty; + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var getWarehouse = BLL.Base_WarehouseService.GetWarehouseByWarehouseId(rowID); + if (getWarehouse != null) + { + string cont = judgementDelete(rowID); + if (string.IsNullOrEmpty(cont)) + { + BLL.Base_WarehouseService.DeleteWarehouseByWarehouseId(rowID); + } + else + { + strShowNotify += "材料仓库" + ":" + getWarehouse.WarehouseName + cont; + } + } + } + + BindGrid(); + if (!string.IsNullOrEmpty(strShowNotify)) + { + Alert.ShowInTop(strShowNotify, MessageBoxIcon.Warning); + } + else + { + ShowNotify("删除成功!", MessageBoxIcon.Success); + } + } + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + #region 判断是否可删除 + /// + /// 判断是否可以删除 + /// + /// + private string judgementDelete(string id) + { + string content = string.Empty; + // 检查是否有关联的管线 + if (Funs.DB.HJGL_Pipeline.FirstOrDefault(x => x.WarehouseId == id) != null) + { + content += "已在【管线信息】中使用,不能删除!"; + } + + return content; + } + #endregion + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnQuery_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查看按钮 + /// + /// 查看按钮 + /// + /// + /// + protected void btnView_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WarehouseView.aspx?WarehouseId={0}", Grid1.SelectedRowID, "查看 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private bool GetButtonPower(string button) + { + return BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.HJGL_WarehouseMenuId, button); + } + #endregion + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.designer.cs new file mode 100644 index 00000000..fbe565c7 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/Warehouse.aspx.designer.cs @@ -0,0 +1,179 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.BaseInfo +{ + + + public partial class Warehouse + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// txtWarehouseName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWarehouseName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRemark; + + /// + /// btnQuery 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnQuery; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + + /// + /// btnView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnView; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx new file mode 100644 index 00000000..71263566 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WarehouseEdit.aspx.cs" + Inherits="FineUIPro.Web.HJGL.BaseInfo.WarehouseEdit" %> + + + + + 编辑材料仓库 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.cs new file mode 100644 index 00000000..448e619e --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.cs @@ -0,0 +1,100 @@ +using BLL; +using System; +using System.Linq; + +namespace FineUIPro.Web.HJGL.BaseInfo +{ + public partial class WarehouseEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string WarehouseId + { + get + { + return (string)ViewState["WarehouseId"]; + } + set + { + ViewState["WarehouseId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.txtWarehouseName.Focus(); + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.WarehouseId = Request.Params["WarehouseId"]; + if (!string.IsNullOrEmpty(this.WarehouseId)) + { + Model.Base_Warehouse warehouse = BLL.Base_WarehouseService.GetWarehouseByWarehouseId(this.WarehouseId); + if (warehouse != null) + { + this.txtWarehouseName.Text = warehouse.WarehouseName; + this.txtRemark.Text = warehouse.Remark; + } + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + // 唯一性检查:仓库名称在项目内不能重复 + var q = Funs.DB.Base_Warehouse.FirstOrDefault(x => x.WarehouseName == this.txtWarehouseName.Text.Trim() + && (x.WarehouseId != this.WarehouseId || (this.WarehouseId == null && x.WarehouseId != null)) + && x.ProjectId == this.CurrUser.LoginProjectId); + if (q != null) + { + Alert.ShowInTop("此仓库名称已存在!", MessageBoxIcon.Warning); + return; + } + + Model.Base_Warehouse newWarehouse = new Model.Base_Warehouse + { + WarehouseName = this.txtWarehouseName.Text.Trim(), + Remark = this.txtRemark.Text.Trim(), + ProjectId = this.CurrUser.LoginProjectId, + ModifyUserId = this.CurrUser.PersonId, + ModifyTime = DateTime.Now + }; + + if (!string.IsNullOrEmpty(this.WarehouseId)) + { + // 更新 + newWarehouse.WarehouseId = this.WarehouseId; + BLL.Base_WarehouseService.UpdateWarehouse(newWarehouse); + } + else + { + // 新增 + this.WarehouseId = SQLHelper.GetNewID(typeof(Model.Base_Warehouse)); + newWarehouse.WarehouseId = this.WarehouseId; + newWarehouse.CreateUserId = this.CurrUser.PersonId; + newWarehouse.CreateTime = DateTime.Now; + BLL.Base_WarehouseService.AddWarehouse(newWarehouse); + } + + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.designer.cs new file mode 100644 index 00000000..22e64deb --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseEdit.aspx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.BaseInfo { + + + public partial class WarehouseEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtWarehouseName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWarehouseName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx new file mode 100644 index 00000000..76eeec8d --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx @@ -0,0 +1,43 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WarehouseView.aspx.cs" + Inherits="FineUIPro.Web.HJGL.BaseInfo.WarehouseView" %> + + + + + 查看材料仓库 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.cs new file mode 100644 index 00000000..be6dd10a --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.cs @@ -0,0 +1,50 @@ +using BLL; +using System; + +namespace FineUIPro.Web.HJGL.BaseInfo +{ + public partial class WarehouseView : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string WarehouseId + { + get + { + return (string)ViewState["WarehouseId"]; + } + set + { + ViewState["WarehouseId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.WarehouseId = Request.Params["WarehouseId"]; + if (!string.IsNullOrEmpty(this.WarehouseId)) + { + Model.Base_Warehouse warehouse = BLL.Base_WarehouseService.GetWarehouseByWarehouseId(this.WarehouseId); + if (warehouse != null) + { + this.txtWarehouseName.Text = warehouse.WarehouseName; + this.txtRemark.Text = warehouse.Remark; + } + } + } + } + #endregion + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.designer.cs new file mode 100644 index 00000000..f173e7f4 --- /dev/null +++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/WarehouseView.aspx.designer.cs @@ -0,0 +1,78 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HJGL.BaseInfo { + + + public partial class WarehouseView { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtWarehouseName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWarehouseName; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx index adbddc4b..8626aee5 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx @@ -62,6 +62,11 @@ + + + + @@ -83,11 +88,13 @@ EmptyText="输入查询条件" Hidden="true" Width="180px" LabelWidth="80px" LabelAlign="Right"> - - - + + + @@ -125,6 +132,14 @@ + + + + <%-- diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs index d73c73fe..fa86df46 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs @@ -53,6 +53,15 @@ namespace FineUIPro.Web.HJGL.PreDesign this.InitTreeMenu();//加载树 PipelineComplete = 0; PipelineNOComplete = 0; + + // 初始化仓库下拉框 + Base_WarehouseService.InitWarehouseDropDownList(this.ddlWarehouse, this.CurrUser.LoginProjectId, true, "-请选择-"); + + // 初始化流水段下拉框 + this.InitFlowingSectionDropDownList(); + + // 初始化管线划分下拉框 + this.InitPipeAreaDropDownList(); } } @@ -150,6 +159,7 @@ namespace FineUIPro.Web.HJGL.PreDesign /// protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) { + InitFlowingSectionDropDownList(); this.BindGrid(); // var q = view_HJGL_Pipelines.Where(x => x.PipeArea == PipelineService.PipeArea_SHOP); // if (q.Any()) @@ -190,13 +200,26 @@ namespace FineUIPro.Web.HJGL.PreDesign view_HJGL_Pipeline.SingleName = this.txtSingleName.Text.Trim(); // view_HJGL_Pipeline.MaterialCode=this.txtMaterialCode.Text.Trim(); var list = BLL.PipelineService.GetHJGL_PipelineList(view_HJGL_Pipeline); - if (!string.IsNullOrEmpty(this.txtMaterialCode.Text.Trim())) +/* if (!string.IsNullOrEmpty(this.txtMaterialCode.Text.Trim())) { list = (from x in list join y in Funs.DB.HJGL_PipeLineMat on x.PipelineId equals y.PipelineId where y.MaterialCode.Contains(txtMaterialCode.Text.Trim()) select x).Distinct().ToList(); + }*/ + + // 流水段查询 + if ( this.ddlFlowingSection.SelectedValue != Const._Null) + { + list = list.Where(x => x.FlowingSection == this.ddlFlowingSection.SelectedValue).ToList(); } + + // 管线划分查询 + if (this.ddlPipeArea.SelectedValue!=Const._Null) + { + list = list.Where(x => x.PipeArea == this.ddlPipeArea.SelectedValue).ToList(); + } + view_HJGL_Pipelines = list; // 2.获取当前分页数据 Grid1.RecordCount = list.Count(); @@ -205,8 +228,23 @@ namespace FineUIPro.Web.HJGL.PreDesign // 3.绑定到Grid + // 获取仓库名称 + var warehouseList = Base_WarehouseService.GetWarehouseList(this.CurrUser.LoginProjectId); + var listWithWarehouse = (from x in list + join y in warehouseList on x.WarehouseId equals y.WarehouseId into temp + from z in temp.DefaultIfEmpty() + select new + { + x.PipelineId, + x.PipelineCode, + x.FlowingSection, + x.PipeArea, + x.UnitWorkId, + x.ProjectId, + WarehouseName = z != null ? z.WarehouseName : "" + }).ToList(); - var table = this.GetPagedDataTable(Grid1, list); + var table = this.GetPagedDataTable(Grid1, listWithWarehouse); Grid1.DataSource = table; Grid1.DataBind(); //lbSinglePreRate.Text= GetSinglePreRateByUnitWork(this.tvControlItem.SelectedNodeID); @@ -364,11 +402,47 @@ namespace FineUIPro.Web.HJGL.PreDesign BindGrid(); } + /// + /// 仓库设置按钮 + /// + protected void btnSetWarehouse_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + return; + } + + string warehouseId = this.ddlWarehouse.SelectedValue; + if (string.IsNullOrEmpty(warehouseId)) + { + Alert.ShowInTop("请选择仓库!", MessageBoxIcon.Warning); + return; + } + + // 批量更新 + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var pipeline = PipelineService.GetPipelineByPipelineId(rowID); + if (pipeline != null) + { + pipeline.WarehouseId = warehouseId; + PipelineService.UpdatePipeline(pipeline); + } + } + + BindGrid(); + ShowNotify("批量设置仓库成功!", MessageBoxIcon.Success); + } + protected void btnRset_Click(object sender, EventArgs e) { txtPipelineCode.Text = String.Empty; txtSingleName.Text = String.Empty; - txtMaterialCode.Text = String.Empty; + //txtMaterialCode.Text = String.Empty; + ddlFlowingSection.SelectedValue = Const._Null; + ddlPipeArea.SelectedValue = String.Empty; BindGrid(); } @@ -392,6 +466,49 @@ namespace FineUIPro.Web.HJGL.PreDesign } return PipeAreaValue; } + + #region 初始化下拉框 + /// + /// 初始化流水段下拉框 + /// + private void InitFlowingSectionDropDownList() + { + var baseQuery = from x in Funs.DB.HJGL_Pipeline + where x.ProjectId == this.CurrUser.LoginProjectId + select new { + x.FlowingSection , + x.UnitWorkId + }; + if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID)) + { + baseQuery = baseQuery.Where(x => x.UnitWorkId == tvControlItem.SelectedNodeID); + } + var flowingSections = baseQuery.Select(x=>x.FlowingSection).Distinct().OrderBy(x => x).ToList(); + this.ddlFlowingSection.DataValueField = "FlowingSection"; + this.ddlFlowingSection.DataTextField = "FlowingSection"; + this.ddlFlowingSection.DataSource = flowingSections.Select(x => new { FlowingSection = x }).ToList(); + this.ddlFlowingSection.DataBind(); + Funs.FineUIPleaseSelect(this.ddlFlowingSection, "-请选择-"); + } + + /// + /// 初始化管线划分下拉框 + /// + private void InitPipeAreaDropDownList() + { + List pipeAreaList = new List(); + pipeAreaList.Add(new System.Web.UI.WebControls.ListItem("工厂预制", PipelineService.PipeArea_SHOP)); + pipeAreaList.Add(new System.Web.UI.WebControls.ListItem("现场施工", PipelineService.PipeArea_FIELD)); + + this.ddlPipeArea.DataValueField = "Value"; + this.ddlPipeArea.DataTextField = "Text"; + this.ddlPipeArea.DataSource = pipeAreaList; + this.ddlPipeArea.DataBind(); + Funs.FineUIPleaseSelect(this.ddlPipeArea, "-请选择-"); + + } + #endregion + /// /// 获取图纸预制率(工厂预制管线的预制达因/工厂预制管线的总达因) /// diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.designer.cs index 203e23d1..3a90fb88 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.designer.cs @@ -140,6 +140,24 @@ namespace FineUIPro.Web.HJGL.PreDesign /// protected global::FineUIPro.Label lbSinglePreRate; + /// + /// ddlWarehouse 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlWarehouse; + + /// + /// btnSetWarehouse 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSetWarehouse; + /// /// btnSetShop 控件。 /// @@ -195,13 +213,22 @@ namespace FineUIPro.Web.HJGL.PreDesign protected global::FineUIPro.TextBox txtSingleName; /// - /// txtMaterialCode 控件。 + /// ddlFlowingSection 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtMaterialCode; + protected global::FineUIPro.DropDownList ddlFlowingSection; + + /// + /// ddlPipeArea 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPipeArea; /// /// btnQuery 控件。 diff --git a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml index c6acad79..f99c41df 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml @@ -4,6 +4,7 @@ + @@ -13,12 +14,12 @@ + - - - + + @@ -27,7 +28,7 @@ - + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 0f229b3c..7c263eb1 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -266,6 +266,9 @@ namespace Model partial void InsertBase_UnitType(Base_UnitType instance); partial void UpdateBase_UnitType(Base_UnitType instance); partial void DeleteBase_UnitType(Base_UnitType instance); + partial void InsertBase_Warehouse(Base_Warehouse instance); + partial void UpdateBase_Warehouse(Base_Warehouse instance); + partial void DeleteBase_Warehouse(Base_Warehouse instance); partial void InsertBase_WeldingLocation(Base_WeldingLocation instance); partial void UpdateBase_WeldingLocation(Base_WeldingLocation instance); partial void DeleteBase_WeldingLocation(Base_WeldingLocation instance); @@ -2571,6 +2574,14 @@ namespace Model } } + public System.Data.Linq.Table Base_Warehouse + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Base_WeldingLocation { get @@ -38761,6 +38772,236 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_Warehouse")] + public partial class Base_Warehouse : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _WarehouseId; + + private string _WarehouseName; + + private string _Remark; + + private string _ProjectId; + + private string _CreateUserId; + + private System.Nullable _CreateTime; + + private string _ModifyUserId; + + private System.Nullable _ModifyTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnWarehouseIdChanging(string value); + partial void OnWarehouseIdChanged(); + partial void OnWarehouseNameChanging(string value); + partial void OnWarehouseNameChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnCreateUserIdChanging(string value); + partial void OnCreateUserIdChanged(); + partial void OnCreateTimeChanging(System.Nullable value); + partial void OnCreateTimeChanged(); + partial void OnModifyUserIdChanging(string value); + partial void OnModifyUserIdChanged(); + partial void OnModifyTimeChanging(System.Nullable value); + partial void OnModifyTimeChanged(); + #endregion + + public Base_Warehouse() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WarehouseId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string WarehouseId + { + get + { + return this._WarehouseId; + } + set + { + if ((this._WarehouseId != value)) + { + this.OnWarehouseIdChanging(value); + this.SendPropertyChanging(); + this._WarehouseId = value; + this.SendPropertyChanged("WarehouseId"); + this.OnWarehouseIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WarehouseName", DbType="NVarChar(200) NOT NULL", CanBeNull=false)] + public string WarehouseName + { + get + { + return this._WarehouseName; + } + set + { + if ((this._WarehouseName != value)) + { + this.OnWarehouseNameChanging(value); + this.SendPropertyChanging(); + this._WarehouseName = value; + this.SendPropertyChanged("WarehouseName"); + this.OnWarehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateUserId", DbType="NVarChar(50)")] + public string CreateUserId + { + get + { + return this._CreateUserId; + } + set + { + if ((this._CreateUserId != value)) + { + this.OnCreateUserIdChanging(value); + this.SendPropertyChanging(); + this._CreateUserId = value; + this.SendPropertyChanged("CreateUserId"); + this.OnCreateUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")] + public System.Nullable CreateTime + { + get + { + return this._CreateTime; + } + set + { + if ((this._CreateTime != value)) + { + this.OnCreateTimeChanging(value); + this.SendPropertyChanging(); + this._CreateTime = value; + this.SendPropertyChanged("CreateTime"); + this.OnCreateTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModifyUserId", DbType="NVarChar(50)")] + public string ModifyUserId + { + get + { + return this._ModifyUserId; + } + set + { + if ((this._ModifyUserId != value)) + { + this.OnModifyUserIdChanging(value); + this.SendPropertyChanging(); + this._ModifyUserId = value; + this.SendPropertyChanged("ModifyUserId"); + this.OnModifyUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModifyTime", DbType="DateTime")] + public System.Nullable ModifyTime + { + get + { + return this._ModifyTime; + } + set + { + if ((this._ModifyTime != value)) + { + this.OnModifyTimeChanging(value); + this.SendPropertyChanging(); + this._ModifyTime = value; + this.SendPropertyChanged("ModifyTime"); + this.OnModifyTimeChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_WeldingLocation")] public partial class Base_WeldingLocation : INotifyPropertyChanging, INotifyPropertyChanged { @@ -102234,6 +102475,8 @@ namespace Model private string _FlowingSection; + private string _WarehouseId; + private EntityRef _Base_TestMedium; private EntitySet _HJGL_Batch_PointBatch; @@ -102338,6 +102581,8 @@ namespace Model partial void OnStateChanged(); partial void OnFlowingSectionChanging(string value); partial void OnFlowingSectionChanged(); + partial void OnWarehouseIdChanging(string value); + partial void OnWarehouseIdChanged(); #endregion public HJGL_Pipeline() @@ -103054,6 +103299,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WarehouseId", DbType="NVarChar(50)")] + public string WarehouseId + { + get + { + return this._WarehouseId; + } + set + { + if ((this._WarehouseId != value)) + { + this.OnWarehouseIdChanging(value); + this.SendPropertyChanging(); + this._WarehouseId = value; + this.SendPropertyChanged("WarehouseId"); + this.OnWarehouseIdChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_[HJGL_Pipeline_Base_TestMedium1", Storage="_Base_TestMedium", ThisKey="LeakMedium", OtherKey="TestMediumId", IsForeignKey=true)] public Base_TestMedium Base_TestMedium { From aaa8090205a1ee7de4d87941b37c063439a71d49 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Thu, 5 Mar 2026 19:26:42 +0800 Subject: [PATCH 12/13] =?UTF-8?q?=20=20feat(HJGL):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9D=90=E6=96=99=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=A1=E7=BA=BF=E5=88=92=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **新增功能:** - 添加材料仓库管理模块(增删改查) - 管线划分页面支持按流水段和管线划分筛选 - 管线划分页面支持批量设置仓库 **技术改进:** - 新增 Base_Warehouse 表和模型 - 扩展 HJGL_Pipeline 模型添加 WarehouseId 字段 - 优化管线查询支持多条件组合 --- DataBase/版本日志/SGGLDB_V2026-03-05-001.sql | 144 ++++++++++++++++++ SGGL/BLL/CLGL/TwArrivalStatisticsService.cs | 4 +- SGGL/BLL/CLGL/TwInOutplanmasterService.cs | 8 +- .../HJGL/WeldingManage/WeldMatMatch.aspx | 41 +++-- .../HJGL/WeldingManage/WeldMatMatch.aspx.cs | 47 +++--- .../WeldMatMatch.aspx.designer.cs | 26 +++- SGGL/FineUIPro.Web/common/Menu_DigData.xml | 63 ++++++-- SGGL/FineUIPro.Web/common/Menu_HTGL.xml | 6 +- SGGL/FineUIPro.Web/common/Menu_JDGL.xml | 6 +- SGGL/FineUIPro.Web/common/Menu_PHTGL.xml | 2 +- SGGL/FineUIPro.Web/common/Menu_ZHGL.xml | 42 ----- 11 files changed, 283 insertions(+), 106 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2026-03-05-001.sql diff --git a/DataBase/版本日志/SGGLDB_V2026-03-05-001.sql b/DataBase/版本日志/SGGLDB_V2026-03-05-001.sql new file mode 100644 index 00000000..6a1c92b1 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-03-05-001.sql @@ -0,0 +1,144 @@ +-- ============================================= +-- 材料仓库管理与管线划分优化 - 数据库变更脚本 +-- 生成时间: 2026-03-05 +-- 说明: 请在执行前备份数据库 +-- ============================================= + +-- ============================================= +-- 第一部分: 创建材料仓库表 +-- ============================================= + +-- 检查表是否存在,如果存在则删除(仅用于开发环境) +-- IF OBJECT_ID('dbo.Base_Warehouse', 'U') IS NOT NULL +-- DROP TABLE dbo.Base_Warehouse; +-- GO + +-- 创建材料仓库表 +CREATE TABLE dbo.Base_Warehouse ( + WarehouseId NVARCHAR(50) NOT NULL, + WarehouseName NVARCHAR(200) NOT NULL, + Remark NVARCHAR(500) NULL, + ProjectId NVARCHAR(50) NOT NULL, + CreateUserId NVARCHAR(50) NULL, + CreateTime DATETIME NULL, + ModifyUserId NVARCHAR(50) NULL, + ModifyTime DATETIME NULL, + CONSTRAINT PK_Base_Warehouse PRIMARY KEY CLUSTERED (WarehouseId ASC), + CONSTRAINT FK_Base_Warehouse_Project FOREIGN KEY (ProjectId) + REFERENCES dbo.Project_Project (ProjectId) + ON DELETE NO ACTION +); +GO + +-- 创建索引以提升查询性能 +CREATE NONCLUSTERED INDEX IX_Base_Warehouse_ProjectId + ON dbo.Base_Warehouse(ProjectId); +GO + +CREATE NONCLUSTERED INDEX IX_Base_Warehouse_WarehouseName + ON dbo.Base_Warehouse(WarehouseName); +GO + +-- 添加表说明 +EXEC sys.sp_addextendedproperty + @name=N'MS_Description', + @value=N'材料仓库基础信息表' , + @level0type=N'SCHEMA', + @level0name=N'dbo', + @level1type=N'TABLE', + @level1name=N'Base_Warehouse'; +GO + +-- 添加字段说明 +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'仓库ID(主键)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'WarehouseId'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'仓库名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'WarehouseName'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'Remark'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'ProjectId'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'CreateUserId'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'CreateTime'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'ModifyUserId'; +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Warehouse', @level2type=N'COLUMN',@level2name=N'ModifyTime'; +GO + +PRINT '材料仓库表创建完成'; +GO + +-- ============================================= +-- 第二部分: 为管线表添加仓库字段 +-- ============================================= + +-- 检查字段是否已存在 +IF NOT EXISTS ( + SELECT 1 FROM sys.columns + WHERE object_id = OBJECT_ID('dbo.HJGL_Pipeline') + AND name = 'WarehouseId' +) +BEGIN + -- 添加 WarehouseId 字段(允许NULL以兼容现有数据) + ALTER TABLE dbo.HJGL_Pipeline + ADD WarehouseId NVARCHAR(50) NULL; + GO + + -- 添加字段说明 + EXEC sys.sp_addextendedproperty + @name=N'MS_Description', + @value=N'仓库ID(关联Base_Warehouse表)' , + @level0type=N'SCHEMA', + @level0name=N'dbo', + @level1type=N'TABLE', + @level1name=N'HJGL_Pipeline', + @level2type=N'COLUMN', + @level2name=N'WarehouseId'; + GO + + -- 添加外键约束(可选,根据实际需求决定是否启用) + -- ALTER TABLE dbo.HJGL_Pipeline + -- ADD CONSTRAINT FK_HJGL_Pipeline_Warehouse + -- FOREIGN KEY (WarehouseId) + -- REFERENCES dbo.Base_Warehouse(WarehouseId) + -- ON DELETE SET NULL; + -- GO + + PRINT '管线表WarehouseId字段添加完成'; +END +ELSE +BEGIN + PRINT '管线表WarehouseId字段已存在,跳过添加'; +END +GO + +-- ============================================= +-- 第三部分: 验证脚本 +-- ============================================= + +-- 验证表和字段创建成功 +SELECT + 'Base_Warehouse表' AS 对象类型, + CASE WHEN EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Base_Warehouse') + THEN '已创建 ✓' + ELSE '未创建 ✗' + END AS 状态; + +SELECT + 'HJGL_Pipeline.WarehouseId字段' AS 对象类型, + CASE WHEN EXISTS ( + SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS + WHERE TABLE_NAME = 'HJGL_Pipeline' + AND COLUMN_NAME = 'WarehouseId' + ) + THEN '已添加 ✓' + ELSE '未添加 ✗' + END AS 状态; +GO + +PRINT '========================================'; +PRINT '数据库变更脚本执行完成!'; +PRINT '========================================'; +PRINT ''; +PRINT '重要提示:'; +PRINT '1. 请在生产环境执行前备份数据库'; +PRINT '2. 建议在维护窗口执行ALTER TABLE操作'; +PRINT '3. 现有管线数据的WarehouseId默认为NULL'; +PRINT '4. 可通过批量设置功能逐步完善数据'; +PRINT '========================================'; +GO diff --git a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs index b3c4aa53..85306403 100644 --- a/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs +++ b/SGGL/BLL/CLGL/TwArrivalStatisticsService.cs @@ -12,12 +12,12 @@ namespace BLL { using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) { - string PipeArea = WarehouseCode == "工厂预制" ? "1" : "2"; + string WarehouseId = Base_WarehouseService.GetWarehouseList(projectid).Where(x => x.WarehouseName == WarehouseCode).Select(x => x.WarehouseId).FirstOrDefault(); ///所需材料数量列表 var NeedOutMateriaList = from x in db.HJGL_PipeLineMat join y in db.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode join z in db.HJGL_Pipeline on x.PipelineId equals z.PipelineId - where z.ProjectId == projectid && (string.IsNullOrEmpty(materialCode) || x.MaterialCode.Contains(materialCode)) && z.PipeArea == PipeArea + where z.ProjectId == projectid && (string.IsNullOrEmpty(materialCode) || x.MaterialCode.Contains(materialCode)) && z.WarehouseId == WarehouseId group x by x.MaterialCode into g select new diff --git a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs index 87d567f9..39b09813 100644 --- a/SGGL/BLL/CLGL/TwInOutplanmasterService.cs +++ b/SGGL/BLL/CLGL/TwInOutplanmasterService.cs @@ -1,5 +1,6 @@ using EmitMapper; using FineUIPro; +using Microsoft.SqlServer.Dts.Runtime; using MiniExcelLibs; using Model; using System; @@ -264,7 +265,7 @@ namespace BLL string errorWarehouseCode = ""; foreach (var item in warehouseCodeList) { - if (!DropListService.HJGL_WarehouseCode().Select(x => x.Value == item).Any()) + if (!Base_WarehouseService.GetWarehouseList(projectid).Select(x => x.WarehouseName == item).Any()) { errorWarehouseCode += item + ","; } @@ -607,10 +608,7 @@ namespace BLL public static Dictionary GetWarehouseCode(string projectId) { - var q = (from x in Funs.DB.Tw_InOutPlanMaster - where x.ProjectId == projectId && - x.InOutType == (int)TwConst.InOutType.入库 - select x.WarehouseCode).Distinct().ToDictionary(x => x, x => x); + var q = Base_WarehouseService.GetWarehouseList(projectId).Distinct().ToDictionary(x => x.WarehouseName, x => x.WarehouseName); return q; } public static string GetDataInCusBillCode(string projectid, string unitcode, string typeString, string unitWorkCode = "", string Category = "") diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx index be578e6c..08f8d3d3 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx @@ -33,8 +33,9 @@ .f-grid-row.green { background-color: green; } + .f-grid-row { - font-size:smaller; + font-size: smaller; } @@ -50,6 +51,13 @@ IconFont="ArrowCircleLeft"> + + + + + + @@ -57,17 +65,18 @@ - - - + + + + + runat="server" LabelWidth="80px" + Width="180px" LabelAlign="Left"> - + - + @@ -84,14 +93,14 @@ + BodyPadding="10px" AutoScroll="true"> @@ -99,12 +108,12 @@ - + - - + - + @@ -141,7 +150,7 @@ + SortField="PipelineId" SortDirection="ASC" EnableCheckBoxSelect="true"> + SortField="Id" SortDirection="ASC" OnSort="Grid1_Sort"> dicSeclectPipeLine = new Dictionary(); - //public static List tw_PipeMatMatchOutputs ; public static decimal Rate = 0; - public string WarehouseCode + public string WarehouseId { get { - return (string)ViewState["WarehouseCode"]; + return (string)ViewState["WarehouseId"]; } set { - ViewState["WarehouseCode"] = value; + ViewState["WarehouseId"] = value; } } public string PipeArea @@ -79,15 +78,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage { tw_PipeMatMatchOutputs = new List(); PipeArea = Request.Params["PipeArea"]; - if (PipeArea == "2") - { - WarehouseCode = "现场安装"; - } - else - { - WarehouseCode = "工厂预制"; - } - HJGL_MaterialService.materialStockItems_FIELD = new List(); + drpWarehouse.DataTextField = "Key"; + drpWarehouse.DataValueField = "Value"; + drpWarehouse.DataSource = BLL.TwInOutplanmasterService.GetWarehouseCode(this.CurrUser.LoginProjectId); + drpWarehouse.DataBind(); + drpWarehouse_SelectedIndexChanged(null, null); +; HJGL_MaterialService.materialStockItems_FIELD = new List(); HJGL_MaterialService.materialStockItems_SHOP = new List(); dicSeclectPipeLine = new Dictionary(); var pipeline = (from x in Funs.DB.HJGL_Pipeline @@ -159,7 +155,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage foreach (var q in unitWork1) { - int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId && x.PipeArea == PipeArea select x).Count(); + int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId && x.PipeArea == PipeArea && x.WarehouseId == WarehouseId select x).Count(); var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId); TreeNode tn1 = new TreeNode(); tn1.NodeID = q.UnitWorkId; @@ -182,7 +178,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { foreach (var q in unitWork2) { - int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId && x.PipeArea == PipeArea select x).Count(); + int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId && x.PipeArea == PipeArea && x.WarehouseId == WarehouseId select x).Count(); // var NowComPipelineCode = PipelineService.GetNoComPipelinesByUnitWordId(q.UnitWorkId); //int a = NowComPipelineCode.Count(); var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId); @@ -221,14 +217,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage //} var CompleteInOutPlanDetail_RelationList = from x in Funs.DB.Tw_InOutPlanDetail_Relation join y in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals y.Id - where y.State == (int)TwConst.State.已完成 && y.WarehouseCode == WarehouseCode + where y.State == (int)TwConst.State.已完成 && y.WarehouseCode == drpWarehouse.SelectedValue select x; var pipeline = (from x in Funs.DB.HJGL_Pipeline join y in CompleteInOutPlanDetail_RelationList on x.PipelineId equals y.PipelineId into temp from y in temp.DefaultIfEmpty() where y == null && x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == node.NodeID - && x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim()) + && x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim()) && x.WarehouseId==WarehouseId orderby x.PipelineCode select x).ToList(); if (!string.IsNullOrEmpty(drpFlowingSection.SelectedValue) && drpFlowingSection.SelectedValue != Const._Null) @@ -396,7 +392,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var model2 = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject(model)); string pipeid = model2.First().Value; - var relationModle = TwInoutplandetailRelationService.GetByPipelineId(pipeid, WarehouseCode); + var relationModle = TwInoutplandetailRelationService.GetByPipelineId(pipeid, drpWarehouse.SelectedValue); if (relationModle != null) { Grid3.Rows[i].RowCssClass = "yellow"; @@ -499,7 +495,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID); var pipeline = (from x in Funs.DB.HJGL_Pipeline - where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID && x.PipeArea == PipeArea + where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID && x.PipeArea == PipeArea && x.WarehouseId == WarehouseId orderby x.PipelineCode select x).ToList(); List pipelineList = new List(); @@ -570,7 +566,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage dicSeclectPipeLine.Add(node.NodeID, node.Text); } } - tw_PipeMatMatchOutputs = TwArrivalStatisticsService.GetPipeMatMatch(this.CurrUser.LoginProjectId, dicSeclectPipeLine.Keys.ToList(), WarehouseCode); + tw_PipeMatMatchOutputs = TwArrivalStatisticsService.GetPipeMatMatch(this.CurrUser.LoginProjectId, dicSeclectPipeLine.Keys.ToList(), drpWarehouse.SelectedValue); BindGrid3(); BindGrid2(); @@ -587,7 +583,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage node.Checked = false; } - tw_PipeMatMatchOutputs = TwArrivalStatisticsService.GetPipeMatMatch(this.CurrUser.LoginProjectId, dicSeclectPipeLine.Keys.ToList(), WarehouseCode); + tw_PipeMatMatchOutputs = TwArrivalStatisticsService.GetPipeMatMatch(this.CurrUser.LoginProjectId, dicSeclectPipeLine.Keys.ToList(), drpWarehouse.SelectedValue); BindGrid3(); BindGrid2(); @@ -765,8 +761,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage return isCover; } + #endregion - + protected void drpWarehouse_SelectedIndexChanged(object sender, EventArgs e) + { + WarehouseId = Base_WarehouseService.GetWarehouseList(this.CurrUser.LoginProjectId).Where(x => x.WarehouseName == drpWarehouse.SelectedValue).Select(x => x.WarehouseId).FirstOrDefault(); + this.InitTreeMenu();//加载树 + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.designer.cs index 525a976f..943a5341 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.designer.cs @@ -59,6 +59,24 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// protected global::FineUIPro.Toolbar Toolbar1; + /// + /// drpWarehouse 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpWarehouse; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + /// /// txtPipelineCode 控件。 /// @@ -78,13 +96,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage protected global::FineUIPro.HiddenField hdUnitWorkId; /// - /// Toolbar5 控件。 + /// Toolbar6 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar5; + protected global::FineUIPro.Toolbar Toolbar6; /// /// drpFlowingSection 控件。 @@ -96,13 +114,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage protected global::FineUIPro.DropDownList drpFlowingSection; /// - /// Toolbar2 控件。 + /// Toolbar5 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar2; + protected global::FineUIPro.Toolbar Toolbar5; /// /// btnTreeFind 控件。 diff --git a/SGGL/FineUIPro.Web/common/Menu_DigData.xml b/SGGL/FineUIPro.Web/common/Menu_DigData.xml index b532a9bb..bb7a7a34 100644 --- a/SGGL/FineUIPro.Web/common/Menu_DigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_DigData.xml @@ -1,9 +1,51 @@  - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -16,12 +58,15 @@ + + + - - - - - + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_HTGL.xml b/SGGL/FineUIPro.Web/common/Menu_HTGL.xml index 95eeab91..129ab5fd 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HTGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HTGL.xml @@ -1,8 +1,8 @@  - - - + + + diff --git a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml index 8d4aa005..fd6a0762 100644 --- a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml @@ -1,7 +1,11 @@  - + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml b/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml index 56efca63..53b0bd32 100644 --- a/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_PHTGL.xml @@ -4,10 +4,10 @@ - + diff --git a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml index 8398186c..403b874b 100644 --- a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml @@ -58,49 +58,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 4b8bc359cf02b8ade2e4d707488b41be16f360fe Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Thu, 5 Mar 2026 20:10:46 +0800 Subject: [PATCH 13/13] 1 --- SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx | 2 +- SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx index 8626aee5..ddca91a0 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx @@ -90,7 +90,7 @@ + Width="180px" LabelWidth="80px" LabelAlign="Right" AutoSelectFirstItem="true"> diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs index fa86df46..b437bdec 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs @@ -489,6 +489,7 @@ namespace FineUIPro.Web.HJGL.PreDesign this.ddlFlowingSection.DataSource = flowingSections.Select(x => new { FlowingSection = x }).ToList(); this.ddlFlowingSection.DataBind(); Funs.FineUIPleaseSelect(this.ddlFlowingSection, "-请选择-"); + ddlFlowingSection.SelectedValue = Const._Null; } ///