From f45fed15aab5c7cb30a923885ab3c3ee22e340b8 Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Wed, 6 Sep 2023 16:25:07 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=BA=A7=E9=A1=B9=E7=9B=AE=E7=BB=B4=E5=BA=A6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_V2023-09-06.sql | 24 ++ .../0-2大数据中心(Menu_DigData).sql | 25 +- .../1-10大数据中心(Menu_PDigData).sql | 16 +- SGGL/BLL/BLL.csproj | 4 + SGGL/BLL/DigData/CQMSDataDWService .cs | 68 +++ SGGL/BLL/DigData/HSEDataDWService.cs | 68 +++ SGGL/BLL/DigData/HTGLDataDWService.cs | 78 ++++ SGGL/BLL/DigData/JDGLDataDWService.cs | 65 +++ SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx | 90 ++++ SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs | 116 ++++++ .../DigData/CQMSDataDW.aspx.designer.cs | 161 ++++++++ SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx | 91 +++++ SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs | 141 +++++++ .../DigData/HSEDataDW.aspx.designer.cs | 161 ++++++++ SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx | 121 ++++++ SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs | 141 +++++++ .../DigData/HTGLDataDW.aspx.designer.cs | 161 ++++++++ SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx | 81 ++++ SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs | 116 ++++++ .../DigData/JDGLDataDW.aspx.designer.cs | 161 ++++++++ SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx | 189 +++++++++ .../DigData/ProjectDataDW.aspx.cs | 187 +++++++++ .../DigData/ProjectDataDW.aspx.designer.cs | 386 ++++++++++++++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 40 ++ SGGL/FineUIPro.Web/common/Menu_DigData.xml | 12 +- SGGL/FineUIPro.Web/common/Menu_PDigData.xml | 6 +- SGGL/SGGL.sln | 4 +- 27 files changed, 2685 insertions(+), 28 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2023-09-06.sql create mode 100644 SGGL/BLL/DigData/CQMSDataDWService .cs create mode 100644 SGGL/BLL/DigData/HSEDataDWService.cs create mode 100644 SGGL/BLL/DigData/HTGLDataDWService.cs create mode 100644 SGGL/BLL/DigData/JDGLDataDWService.cs create mode 100644 SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx create mode 100644 SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs create mode 100644 SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx create mode 100644 SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs create mode 100644 SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx create mode 100644 SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs create mode 100644 SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx create mode 100644 SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs create mode 100644 SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx create mode 100644 SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs create mode 100644 SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs diff --git a/DataBase/版本日志/SGGLDB_V2023-09-06.sql b/DataBase/版本日志/SGGLDB_V2023-09-06.sql new file mode 100644 index 00000000..4d5b69f6 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-09-06.sql @@ -0,0 +1,24 @@ +DELETE FROM Sys_Menu WHERE MenuId IN +('4911D344-3182-4B46-B01F-B10DB058E550','4F7C556C-DAC1-4BC4-BCF6-1B401F771204','D01D3916-743A-4F97-9ADB-815712A89FAC','0443E704-45F4-40BE-8069-13E5554F5700') +GO +UPDATE Sys_Menu SET Url='DigData/ProjectDataDW.aspx',IsEnd=1 WHERE MenuId='775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC' +GO + +--ȫݿ +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('E1ABD1B1-1563-433A-972B-555076A96D06','ȫݿ','DigData/HSEDataDW.aspx',5,'AA670914-6EAA-4CFA-8BD6-E0648F8FD21C','Menu_DigData',1,1,1) +GO +--ݿ +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('15D01AB6-F959-4ABD-B861-C5C2EE6FA906','ݿ','DigData/CQMSDataDW.aspx',10,'7EC74F30-B2F7-454E-B0AE-8E993211F763','Menu_DigData',1,1,1) +GO + +--ݿ +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('44D51E89-267D-4D72-AB6D-1F4CA4E7D19D','ݿ','DigData/JDGLDataDW.aspx',10,'E7F7BC38-7357-49C0-9242-68289031F618','Menu_DigData',1,1,1) +GO + +--ͬݿ +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('ABC4323E-2F6F-4147-AA7A-8726131D7044','ͬݿ','DigData/JDGLDataDW.aspx',10,'381A4608-2CDE-42AF-BC4D-FF554785B9F8','Menu_DigData',1,1,1) +GO \ No newline at end of file diff --git a/DataBase/菜单初始化脚本/0-2大数据中心(Menu_DigData).sql b/DataBase/菜单初始化脚本/0-2大数据中心(Menu_DigData).sql index 42fbcd01..6529578c 100644 --- a/DataBase/菜单初始化脚本/0-2大数据中心(Menu_DigData).sql +++ b/DataBase/菜单初始化脚本/0-2大数据中心(Menu_DigData).sql @@ -14,7 +14,11 @@ GO GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('AA670914-6EAA-4CFA-8BD6-E0648F8FD21C','ȫݿ','',10,'92B50285-30BD-4B62-9E23-A0D6B4BA1577','Menu_DigData',1,0,1) - GO + GO + --ȫݿ + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('E1ABD1B1-1563-433A-972B-555076A96D06','ȫݿ','DigData/HSEDataDW.aspx',5,'AA670914-6EAA-4CFA-8BD6-E0648F8FD21C','Menu_DigData',1,1,1) + GO --ȫճ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('04B182E4-D31E-449F-9803-322F3F380D89','HSEճ','DigData/DailyProblemAnalysis.aspx',10,'AA670914-6EAA-4CFA-8BD6-E0648F8FD21C','Menu_DigData',1,1,1) @@ -29,13 +33,28 @@ GO GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('7EC74F30-B2F7-454E-B0AE-8E993211F763','ݿ','',20,'92B50285-30BD-4B62-9E23-A0D6B4BA1577','Menu_DigData',1,0,1) - GO + GO + --ݿ + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('15D01AB6-F959-4ABD-B861-C5C2EE6FA906','ݿ','DigData/CQMSDataDW.aspx',10,'7EC74F30-B2F7-454E-B0AE-8E993211F763','Menu_DigData',1,1,1) + GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('E7F7BC38-7357-49C0-9242-68289031F618','ݿ','',30,'92B50285-30BD-4B62-9E23-A0D6B4BA1577','Menu_DigData',1,0,1) - GO + GO + --ݿ + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('44D51E89-267D-4D72-AB6D-1F4CA4E7D19D','ݿ','DigData/JDGLDataDW.aspx',10,'E7F7BC38-7357-49C0-9242-68289031F618','Menu_DigData',1,1,1) + GO + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('381A4608-2CDE-42AF-BC4D-FF554785B9F8','ͬݿ','',40,'92B50285-30BD-4B62-9E23-A0D6B4BA1577','Menu_DigData',1,0,1) GO + --ͬݿ + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES('ABC4323E-2F6F-4147-AA7A-8726131D7044','ͬݿ','DigData/HTGLDataDW.aspx',10,'381A4608-2CDE-42AF-BC4D-FF554785B9F8','Menu_DigData',1,1,1) + GO + --INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) --VALUES('5BE7F83B-C02D-4481-815F-153279B44C39','ݿ','',50,'92B50285-30BD-4B62-9E23-A0D6B4BA1577','Menu_DigData',1,0,1) --GO diff --git a/DataBase/菜单初始化脚本/1-10大数据中心(Menu_PDigData).sql b/DataBase/菜单初始化脚本/1-10大数据中心(Menu_PDigData).sql index 1f1e3f6e..e9c1c558 100644 --- a/DataBase/菜单初始化脚本/1-10大数据中心(Menu_PDigData).sql +++ b/DataBase/菜单初始化脚本/1-10大数据中心(Menu_PDigData).sql @@ -7,20 +7,8 @@ VALUES('5704B651-2172-45D3-8206-448612C5BA11','WBS GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) -VALUES('775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Ŀݲֿ','',20,'0','Menu_PDigData',1,0,1) -GO - INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) - VALUES('4911D344-3182-4B46-B01F-B10DB058E550','ȫ','',10,'775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Menu_PDigData',1,0,1) - GO - INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) - VALUES('4F7C556C-DAC1-4BC4-BCF6-1B401F771204','','',20,'775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Menu_PDigData',1,0,1) - GO - INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) - VALUES('D01D3916-743A-4F97-9ADB-815712A89FAC','','',30,'775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Menu_PDigData',1,0,1) - GO - INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) - VALUES('0443E704-45F4-40BE-8069-13E5554F5700','ͬ','',40,'775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Menu_PDigData',1,0,1) - GO +VALUES('775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC','Ŀݲֿ','DigData/ProjectDataDW.aspx',20,'0','Menu_PDigData',1,1,1) +GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) VALUES('D9252E0B-3956-473A-8ECC-12C0933469C3','ݷ','',30,'0','Menu_PDigData',1,0,1) diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 6037c38e..6b379922 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -339,6 +339,10 @@ + + + + diff --git a/SGGL/BLL/DigData/CQMSDataDWService .cs b/SGGL/BLL/DigData/CQMSDataDWService .cs new file mode 100644 index 00000000..1c2127c5 --- /dev/null +++ b/SGGL/BLL/DigData/CQMSDataDWService .cs @@ -0,0 +1,68 @@ +using FineUIPro; +using System; +using System.Collections; +using System.Linq; + +namespace BLL +{ + /// + /// 质量数据仓库 + /// + public static class CQMSDataDWService + { + public static Model.SGGLDB db = Funs.DB; + + #region 质量数据仓库 + /// + /// 记录数 + /// + public static int count + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.Base_Project + select x; + + /// + /// 质量数据仓库 + /// + /// + /// + /// + /// + /// + public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1) + { + var getDataList = from x in Funs.DB.Base_Project select x; + if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) + { + getDataList = getDataList.Where(x => x.ProjectId == projectId); + } + + count = getDataList.Count(); + if (count == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + select new + { + x.ProjectId, + x.ProjectName, + x.ProjectCode, + Rate1 = "0%", //质量验收问题整改率 + Rate2 = "0%", //控制点完成率 + Rate3 = "0%", //质量检查问题整改率 + Rate4 = "0%", //管道焊接一次合格率 + }; + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/BLL/DigData/HSEDataDWService.cs b/SGGL/BLL/DigData/HSEDataDWService.cs new file mode 100644 index 00000000..3805288c --- /dev/null +++ b/SGGL/BLL/DigData/HSEDataDWService.cs @@ -0,0 +1,68 @@ +using FineUIPro; +using System; +using System.Collections; +using System.Linq; + +namespace BLL +{ + /// + /// 安全数据仓库 + /// + public static class HSEDataDWService + { + public static Model.SGGLDB db = Funs.DB; + + #region 安全数据仓库 + /// + /// 记录数 + /// + public static int count + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.Base_Project + select x; + + /// + /// 安全数据仓库 + /// + /// + /// + /// + /// + /// + public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1) + { + var getDataList = from x in Funs.DB.Base_Project select x; + if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) + { + getDataList = getDataList.Where(x => x.ProjectId == projectId); + } + + count = getDataList.Count(); + if (count == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + select new + { + x.ProjectId, + x.ProjectName, + x.ProjectCode, + Count1=0, //人员数量 + Count2 =0, //安全人工时 + Count3 =0, //安全培训次数 + ProblemRate = "0%", //安全巡检整改率 + }; + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/BLL/DigData/HTGLDataDWService.cs b/SGGL/BLL/DigData/HTGLDataDWService.cs new file mode 100644 index 00000000..e646a5c2 --- /dev/null +++ b/SGGL/BLL/DigData/HTGLDataDWService.cs @@ -0,0 +1,78 @@ +using FineUIPro; +using System; +using System.Collections; +using System.Linq; + +namespace BLL +{ + /// + /// 合同管理数据仓库 + /// + public static class HTGLDataDWService + { + public static Model.SGGLDB db = Funs.DB; + + #region 合同管理数据仓库 + /// + /// 记录数 + /// + public static int count + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.Base_Project + select x; + + /// + /// 合同管理数据仓库 + /// + /// + /// + /// + /// + /// + public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1) + { + var getDataList = from x in Funs.DB.Base_Project select x; + if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) + { + getDataList = getDataList.Where(x => x.ProjectId == projectId); + } + + count = getDataList.Count(); + if (count == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + select new + { + x.ProjectId, + x.ProjectName, + x.ProjectCode, + Count1=0, + Count2 =0, + Count3 =0, + Count4 = 0, + Count5 = 0, + Count6 = 0, + Count7 = 0, + Count8 = 0, + Count9 = 0, + Count10 = 0, + Count11 = 0, + Count12 = 0, + Count13 = 0, + Count14 = 0, + }; + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/BLL/DigData/JDGLDataDWService.cs b/SGGL/BLL/DigData/JDGLDataDWService.cs new file mode 100644 index 00000000..be372d94 --- /dev/null +++ b/SGGL/BLL/DigData/JDGLDataDWService.cs @@ -0,0 +1,65 @@ +using FineUIPro; +using System; +using System.Collections; +using System.Linq; + +namespace BLL +{ + /// + /// 进度数据仓库 + /// + public static class JDGLDataDWService + { + public static Model.SGGLDB db = Funs.DB; + + #region 进度数据仓库 + /// + /// 记录数 + /// + public static int count + { + get; + set; + } + + /// + /// 定义变量 + /// + private static IQueryable getDataLists = from x in db.Base_Project + select x; + + /// + /// 进度数据仓库 + /// + /// + /// + /// + /// + /// + public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1) + { + var getDataList = from x in Funs.DB.Base_Project select x; + if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) + { + getDataList = getDataList.Where(x => x.ProjectId == projectId); + } + + count = getDataList.Count(); + if (count == 0) + { + return null; + } + getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); + return from x in getDataList + select new + { + x.ProjectId, + x.ProjectName, + x.ProjectCode, + JDRate = "0%", //项目进度完成百分比 + }; + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx new file mode 100644 index 00000000..2450ad19 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx @@ -0,0 +1,90 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CQMSDataDW.aspx.cs" + Inherits="FineUIPro.Web.DigData.CQMSDataDW" %> + + + + + + 质量数据库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs new file mode 100644 index 00000000..b0661adb --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.cs @@ -0,0 +1,116 @@ +using BLL; +using Newtonsoft.Json.Linq; +using System; +using System.Linq; +using System.Text; + +namespace FineUIPro.Web.DigData +{ + public partial class CQMSDataDW : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ProjectService.InitProjectDropDownList(this.drpProject, false); + Funs.FineUIPleaseSelect(drpProject, "请选择项目"); + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData =CQMSDataDWService.getDataDWList( this.drpProject.SelectedValue, + Funs.GetNewDateTime(this.txtStartTime.Text), Funs.GetNewDateTime(this.txtEndTime.Text),this.Grid1); + Grid1.RecordCount = CQMSDataDWService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("质量数据仓库" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.designer.cs new file mode 100644 index 00000000..ed635b97 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/CQMSDataDW.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class CQMSDataDW + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx new file mode 100644 index 00000000..a8bdfc9c --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx @@ -0,0 +1,91 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HSEDataDW.aspx.cs" + Inherits="FineUIPro.Web.DigData.HSEDataDW" %> + + + + + + HSE数据库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs new file mode 100644 index 00000000..4acf6af5 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.cs @@ -0,0 +1,141 @@ +using BLL; +using Newtonsoft.Json.Linq; +using System; +using System.Linq; +using System.Text; + +namespace FineUIPro.Web.DigData +{ + public partial class HSEDataDW : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ProjectService.InitProjectDropDownList(this.drpProject, false); + Funs.FineUIPleaseSelect(drpProject, "请选择项目"); + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData = HSEDataDWService.getDataDWList( this.drpProject.SelectedValue, + Funs.GetNewDateTime(this.txtStartTime.Text), Funs.GetNewDateTime(this.txtEndTime.Text),this.Grid1); + Grid1.RecordCount = HSEDataDWService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + this.OutputSummaryData(); ///取合计值 + } + + /// + /// 计算合计 + /// + private void OutputSummaryData( ) + { + int aCount1 = 0, aCount2 = 0, aCount3 = 0; + for (int i = 0; i < Grid1.Rows.Count(); i++) + { + aCount1 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[3].ToString()); + aCount2 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[4].ToString()); + aCount3 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[5].ToString()); + } + + JObject summary = new JObject + { + { "ProjectName", "合计" }, + { "Count1", aCount1.ToString() }, + { "Count2", aCount2.ToString() }, + { "Count3", aCount3.ToString() }, + }; + Grid1.SummaryData = summary; + } + + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("HSE数据仓库" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.designer.cs new file mode 100644 index 00000000..6a5c5055 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HSEDataDW.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class HSEDataDW + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx new file mode 100644 index 00000000..a00b65f1 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx @@ -0,0 +1,121 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HTGLDataDW.aspx.cs" + Inherits="FineUIPro.Web.DigData.HTGLDataDW" %> + + + + + + 合同数据库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs new file mode 100644 index 00000000..b151d5dc --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs @@ -0,0 +1,141 @@ +using BLL; +using Newtonsoft.Json.Linq; +using System; +using System.Linq; +using System.Text; + +namespace FineUIPro.Web.DigData +{ + public partial class HTGLDataDW : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ProjectService.InitProjectDropDownList(this.drpProject, false); + Funs.FineUIPleaseSelect(drpProject, "请选择项目"); + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData = HTGLDataDWService.getDataDWList( this.drpProject.SelectedValue, + Funs.GetNewDateTime(this.txtStartTime.Text), Funs.GetNewDateTime(this.txtEndTime.Text),this.Grid1); + Grid1.RecordCount = HTGLDataDWService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + this.OutputSummaryData(); ///取合计值 + } + + /// + /// 计算合计 + /// + private void OutputSummaryData( ) + { + int aCount1 = 0, aCount2 = 0, aCount3 = 0; + for (int i = 0; i < Grid1.Rows.Count(); i++) + { + aCount1 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[3].ToString()); + aCount2 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[4].ToString()); + aCount3 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[5].ToString()); + } + + JObject summary = new JObject + { + { "ProjectName", "合计" }, + { "Count1", aCount1.ToString() }, + { "Count2", aCount2.ToString() }, + { "Count3", aCount3.ToString() }, + }; + Grid1.SummaryData = summary; + } + + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("合同数据仓库" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs new file mode 100644 index 00000000..83094669 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class HTGLDataDW + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx new file mode 100644 index 00000000..5c77240f --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx @@ -0,0 +1,81 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JDGLDataDW.aspx.cs" + Inherits="FineUIPro.Web.DigData.JDGLDataDW" %> + + + + + + 进度数据库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs new file mode 100644 index 00000000..65f5c7a7 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.cs @@ -0,0 +1,116 @@ +using BLL; +using Newtonsoft.Json.Linq; +using System; +using System.Linq; +using System.Text; + +namespace FineUIPro.Web.DigData +{ + public partial class JDGLDataDW : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Funs.DropDownPageSize(this.ddlPageSize); + ProjectService.InitProjectDropDownList(this.drpProject, false); + Funs.FineUIPleaseSelect(drpProject, "请选择项目"); + // 绑定表格 + this.BindGrid(); + } + } + #endregion + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData = JDGLDataDWService.getDataDWList( this.drpProject.SelectedValue, + Funs.GetNewDateTime(this.txtStartTime.Text), Funs.GetNewDateTime(this.txtEndTime.Text),this.Grid1); + Grid1.RecordCount = JDGLDataDWService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void TextBox_TextChanged(object sender, EventArgs e) + { + this.BindGrid(); + } + #endregion + + /// + /// 查询 + /// + /// + /// + protected void btSearch_Click(object sender, EventArgs e) + { + this.BindGrid(); + } + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("进度数据仓库" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = Encoding.UTF8; + this.Grid1.PageSize = this.Grid1.RecordCount; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.designer.cs new file mode 100644 index 00000000..c320aeb8 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/JDGLDataDW.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class JDGLDataDW + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// txtStartTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// ToolbarFill2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill2; + + /// + /// btSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btSearch; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + } +} diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx new file mode 100644 index 00000000..aac4ef7d --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx @@ -0,0 +1,189 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectDataDW.aspx.cs" Inherits="FineUIPro.Web.DigData.ProjectDataDW" %> + + + + + + 项目WBS数据仓库 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs new file mode 100644 index 00000000..3972dcb0 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs @@ -0,0 +1,187 @@ +using BLL; +using System; +using System.Data; +using System.Linq; + +namespace FineUIPro.Web.DigData +{ + public partial class ProjectDataDW : PageBase + { + /// + /// 项目ID + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ProjectId = this.CurrUser.LoginProjectId; + } + } + + + /// + /// + /// + /// + /// + protected void ckType_SelectedIndexChanged(object sender, EventArgs e) + { + this.gpHSSE.Hidden = true; + this.gpCQMS.Hidden = true; + this.gpJDGL.Hidden = true; + this.gpHTGL.Hidden = true; + this.gpLW.Hidden = true; + SetData(); + } + + /// + /// 数据展示 + /// + private void SetData() + { + if (!string.IsNullOrEmpty(this.ProjectId)) + { + foreach (var item in this.ckType.SelectedValueArray) + { + if (item == "HSSE") + { + this.gpHSSE.Hidden = false; + this.lbExpertArgument.Text = (from x in Funs.DB.Solution_LargerHazardListItem + join y in Funs.DB.Solution_LargerHazardList on x.LargerHazardListId equals y.LargerHazardListId + where y.ProjectId == this.ProjectId + && y.States == Const.State_1 + + select x).Count().ToString(); + this.lbAccident.Text = (from x in Funs.DB.Accident_AccidentPersonRecord + where x.ProjectId == this.ProjectId + && x.States == Const.State_2 + + select x).Count().ToString(); + } + if (item == "CQMS") + { + this.gpCQMS.Hidden = false; + //// 实体验收 资料验收 + var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail + join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode + where y.ProjectId == this.ProjectId + && y.State == "8" + select x; + int all = getSpotCheckDetail.Count(); + // this.lbSpotCheck1.Text = all.ToString(); + int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count(); //一次合格 + // this.lbSpotCheck2.Text= okCount.ToString(); + + this.lbSpotCheckRate.Text= all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString()+"%" : "0%"; + + /// 资料验收合格项目 + var getOKSpotCheckDetail = getSpotCheckDetail.Where(x => x.IsOK == true); + int okYSCount = getOKSpotCheckDetail.Count(); //验收合格 + int okDateCount = getSpotCheckDetail.Where(x => x.IsDataOK == "1").Count(); //资料合格 + this.lbSpotCheckDataRate.Text = okYSCount > 0 ? Math.Round(okDateCount * 100.0 / (okYSCount * 1.0)).ToString() + "%" : "0%"; + + ///实体质量问题整改率 + //int allNoOk = all - onesOKCount; ///问题数 + //int oKCount = getSpotCheckDetail.Where(x => x.IsOK == true).Count(); //合格数 + //int zgCount = oKCount - onesOKCount; ///整改数 + //this.lbSpotCheckOkRate.Text = allNoOk > 0 ? Math.Round(zgCount * 100.0 / (allNoOk * 1.0)).ToString() + "%" : "0%"; + + ////控制点 + //var getControlItemAndCycle=from x in Funs.DB.WBS_ControlItemAndCycle + // where x.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId) + // && (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId)) + // && x.ControlPoint.Contains("A") && x.CheckNum >0 + // select x; + /////A级控制点总量 + //int allControlItemCount = getControlItemAndCycle.Count(); + /////已完成A级控制点数 + //var getOKSpotCheckDetailCheckNum = from x in getOKSpotCheckDetail + // group x by x.ControlItemAndCycleId + // into g select new { g.First().ControlItemAndCycleId, num = g.Count() }; + + //var getOKControlItemAndCycle = from x in getControlItemAndCycle + // join y in getOKSpotCheckDetailCheckNum on x.ControlItemAndCycleId equals y.ControlItemAndCycleId + // where x.CheckNum == y.num + // select x; + //int okControlItemCount= getOKControlItemAndCycle.Count(); + //this.lbControlItemRate.Text = allControlItemCount > 0 ? Math.Round(okControlItemCount * 100.0 / (allControlItemCount * 1.0)).ToString() + "%" : "0%"; + } + if (item == "JDGL") + { + this.gpJDGL.Hidden = false; + + //double totalSJCost = 0; ////累计实际费用 + //decimal totalPlanCost = 0; ////计划费用 + //var getWorkPackageDetail = Funs.DB.WBS_WorkPackageDetail.FirstOrDefault(x => x.WorkPackageId == workPackageId); + //if (getWorkPackageDetail != null) + //{ + // ///末级节点 + // var getMaxSJCost = Funs.DB.View_WBS_WorkPackageDetail.Where(x => x.WorkPackageId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault(); + // if (getMaxSJCost != null) + // { + // totalSJCost = getMaxSJCost.TotalThisValue ?? 0; + // totalPlanCost = getMaxSJCost.PlanCost ?? 0; + // } + //} + //else + //{ + // ///非末级节点 + // var getMaxSJCost = Funs.DB.View_WBS_WorkPackageParentDetail.Where(x =>x.ProjectId == this.ProjectId + // && x.ParentId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault(); + // if (getMaxSJCost != null) + // { + // totalSJCost = getMaxSJCost.TotalThisValue ?? 0; + // totalPlanCost = getMaxSJCost.PlanCost ?? 0; + // } + //} + ////// 根 节点 建筑工程 安装工程 + //if (workPackageId == "1" || workPackageId == "2") + //{ + // var getUnitWorkByType = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId && x.ProjectType == workPackageId select x; + // if (getUnitWorkByType.Count() > 0) + // { + // totalPlanCost = getUnitWorkByType.Sum(x => x.PlanCost ?? 0); + // } + //} + + //var getUnitWork = Funs.DB.WBS_UnitWork.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.UnitWorkId == workPackageId); + //if (getUnitWork != null) + //{ + // totalPlanCost= getUnitWork.PlanCost ?? 0; + //} + + /////项目进度完成百分比 + //decimal s = Convert.ToDecimal(totalSJCost); + //this.lbJDRate.Text = totalPlanCost > 0 ? Math.Round(s / totalPlanCost).ToString() + "%" : "0%"; + + } + if (item == "HTGL") + { + this.gpHTGL.Hidden = false; + } + if (item == "LW") + { + this.gpLW.Hidden = false; + } + } + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs new file mode 100644 index 00000000..25d324cd --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs @@ -0,0 +1,386 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class ProjectDataDW + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// ckType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList ckType; + + /// + /// gpHSSE 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel gpHSSE; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// lbExpertArgument 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbExpertArgument; + + /// + /// lbAccident 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbAccident; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label3; + + /// + /// Label7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label7; + + /// + /// Label8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label8; + + /// + /// Label9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label9; + + /// + /// gpCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel gpCQMS; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// lbSpotCheckRate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbSpotCheckRate; + + /// + /// lbSpotCheckDataRate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbSpotCheckDataRate; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label2; + + /// + /// Label10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label10; + + /// + /// gpJDGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel gpJDGL; + + /// + /// Form3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form3; + + /// + /// lbJDRate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbJDRate; + + /// + /// gpHTGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel gpHTGL; + + /// + /// Form4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form4; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label4; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// Label11 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label11; + + /// + /// Label6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label6; + + /// + /// Label12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label12; + + /// + /// Label13 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label13; + + /// + /// Label14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label14; + + /// + /// Label15 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label15; + + /// + /// Label16 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label16; + + /// + /// Label17 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label17; + + /// + /// Label18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label18; + + /// + /// Label19 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label19; + + /// + /// gpLW 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel gpLW; + + /// + /// Form5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form5; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label5; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 40fcdd75..03dc5e8f 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -525,6 +525,11 @@ + + + + + @@ -7603,6 +7608,41 @@ WorkingHoursItem.aspx + + CQMSDataDW.aspx + ASPXCodeBehind + + + CQMSDataDW.aspx + + + HSEDataDW.aspx + ASPXCodeBehind + + + HSEDataDW.aspx + + + HTGLDataDW.aspx + ASPXCodeBehind + + + HTGLDataDW.aspx + + + JDGLDataDW.aspx + ASPXCodeBehind + + + JDGLDataDW.aspx + + + ProjectDataDW.aspx + ASPXCodeBehind + + + ProjectDataDW.aspx + ShowProjectWBS.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/common/Menu_DigData.xml b/SGGL/FineUIPro.Web/common/Menu_DigData.xml index bf060031..3ac7eb46 100644 --- a/SGGL/FineUIPro.Web/common/Menu_DigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_DigData.xml @@ -3,13 +3,17 @@ - + + - - - + + + + + + diff --git a/SGGL/FineUIPro.Web/common/Menu_PDigData.xml b/SGGL/FineUIPro.Web/common/Menu_PDigData.xml index f1829be3..e9c0d7fc 100644 --- a/SGGL/FineUIPro.Web/common/Menu_PDigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_PDigData.xml @@ -2,11 +2,7 @@ - - - - - + \ No newline at end of file diff --git a/SGGL/SGGL.sln b/SGGL/SGGL.sln index 721038cf..e128e1ef 100644 --- a/SGGL/SGGL.sln +++ b/SGGL/SGGL.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.2017 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33927.249 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FineUIPro.Web", "FineUIPro.Web\FineUIPro.Web.csproj", "{C88D3156-2D56-4DB0-922E-1995FB61C9BD}" EndProject From aac8c334d394db1e3e90d9a78c2cb947d898ca98 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Thu, 7 Sep 2023 08:44:11 +0800 Subject: [PATCH 2/7] 2023-09-07 --- .vs/SGGL_SeDin/v17/.wsuo | Bin 263168 -> 264192 bytes .../1-5焊接管理(Menu_HJGL).sql | 2 +- .../File/Fastreport/组件打印.frx | 22 +++++++++--------- .../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 8 +++---- .../HJGL/WeldingManage/WeldTask.aspx.cs | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.vs/SGGL_SeDin/v17/.wsuo b/.vs/SGGL_SeDin/v17/.wsuo index 8326a29aeccd0e42f21860e96045767e42b24d2e..eac8775749e7676d590f3a9026e92c8ecc36da03 100644 GIT binary patch delta 2092 zcmdUwT}+!*7{}jp+Cr)2qqN=1hs+|3!T>20#%FmMjQD|+2|<&^gz}|qWo_W?1cu{9 z-Lgb3uulx}&R~LGcr)H;yfBeuyVJxQz3|G#3qRr)%SO!RM*TlX7ubx(3oks$ujhH6 z^U>%0&vVYvFXiaVIm@kHyP_x(Y$uaRREhwLzytC@o*{hih=hz}y_fZX7Sx3x6Yyj; zfaA#~;XCNP3o8YW%tb5LT(a1v4x7_`7*-kZfgDf)N_l*%A66}>0|8JE8bBiuSo%@a z&7cLef;JEY?SSs&>XkzDy+X5>}XGZ>!BtmzS04!pHh9V z)@*axtNBCd`=I7-c>lMW+td}+EUboV`$#1AePmt96f9B^FB*mOn{H<5;$b769TIkK z%YLAZ;*J~k0=QXyhP2!n7bjQB!O6vT!Z~jqf=zw79v3GQJ2{zB9qE0i$I1!C$wQwx z3u!3Vnz=7)=&t)IEAK0Y?gVIP2fh$iKGi9YY*Of~=e#&aTb_{JwA+$u6>}8N>&+CU z@bf<2^Uu;&UN2qA_mh^di!s{DUl5}dF9_LL57(Zq7Csn3y5)%em+PiY=WAk^;;seK zT!ob5ZnSbP--}nJxcl`)e&=6?%)R!8Y~KkP!?~YMMFpENXeI^ zmTs)*CbLePQx3y%I4V{PSU?&` z2UcJMJS2O!W;<2Bh0k#Kt_llJ=rBZsNnVaEiJI@w@ICke{0Ml!PpE$ezkpxCCb$lM z2XBN+EO$_E)Agoj?@zELkqBxcNb%r;XrnFs7E-+ZRoSB$w_BbtQ)lbtG`{_%q}#1e zQkS=ew2lyOjD_#ZLE~0Ix=eImwev+)1~?i%UB=DsK4Elqe=OE3%rb-5U;^8QsJtQ8 zdvqy|(PD4A9f9pUR>z<29w6^C0ejtGe;+%KclP&@Jrr0EZJ1XF?Dq?wC{-!@#2T#) zbx}olkZPov^ss9m!SPCCBdp2~^W`@dDvlIk9|Uzq+AMs`6uJ;;Aw3ezP}2ChI;lKQ z>61-DkXO2CaI%8b$&+~=$uU5qu8 zKIQXh@zIHB^@(^mGNH{5M5B@E>Vb*aboINsPl`nBg7w&A{R7SZ+D7^`TAsnLKHmb0 l@ky*hyrNyy#6?Z6X{O~ByM(;t^$bl3m@ delta 2453 zcmb`}dsGxv9Kdnzu;ik<$YX&O7e!nRQ50oSFoZ>jtPCWr%wB+?mZoOAhWKDKHA^dY zZ??TtNwcztY>B-sdS}_g9`@48>||o`lklO5Z!MvK{M>&S}p1?7j1wxwG@Tcjn&F zn_~5Ku}uZen23l74W~LgJ1HUr5|M;{NI^@nQp}Go%*VVp-Hdd&*+N5r>`4(F2nZ$-;1hOy^aoAa1YGhRW-_WLVH9_SP$}^g}4Zdo-s~2S`r|?|E^ZGA2C38I^CyQI0k}FLK z!L;lh!vFWZm^Rs_jh5{(x^M)&eJg||o@U`=*L6&KJH55E{%iRqa5Z?3%NJJVP4A7Wspbuua@l&hir1xiYnRRm}*wfnCdj+ z$tjZF)b)PbB(r)9LeZedwqKYd!y=kZ$i+!3#1h$&RAEuw9D1~jtJF(xa=A5P2yyi^ zhprUNK)l^ym*F;jZ`Ran$ZphhNiYE%t7g~8)PdTIXnIsa!@B!;?T zIsdQ%jnIQ92bKw0QaoCEhV7FjcE%{IlgLHAB4_kexmBne4u485s@pl&*qYtxLiVk6 zOZVVCLEWhfdB~}o)Q|_`Tqi`!B$F0QbfsyHeMDF47D_8(5ZfJ#ql`y_+D9UikPJKe zAqD;6Kq>}cAkr`h=@<+rhF~bpMh1onx*(IvaEw3}Mq(7QF&bl#0~c~J7UPhIe2m9A zD8K|1q6lsjVlhEXRVmY@Mku?)+x z0*%n|kIzBlN{+0;%~*{!Sc_Y*4!7bqtj7l2jyrHCn&5*U5_e%E?nVIj;9lH^`|$uC z#6x%(o7A9hrm_Xicm!Lq4Ub|w9>e2!0z2>|p2E|320PJ$AfCl@*o9W?#`AaqFXAP< zj92g~_NYOBjmqn2!y9-LZ{cmcgLm;B-p5{ifDf?`AK_zsf={s@pW$?~HkNgJ>xzFY9F2ocy^rxo>@zE7ph3lJ^x<(`EZfvQoO&AL0H)cD9!tNFx$ cPcvl(q9aW)8`qdRS9#WY#9EKG%@f)57a51lhyVZp diff --git a/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql b/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql index 4c762b12..20cc9602 100644 --- a/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql +++ b/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql @@ -365,7 +365,7 @@ GO GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) - VALUES('27AA3C4C-D424-4CBA-ABBE-EDA953A196A4','޼ⵥ¼','HJGL/NDT/NDTBatch.aspx?Type=R',30,'E7533566-73A9-4507-8FCB-1FE713819A24','Menu_HJGL',0,1,1) + VALUES('27AA3C4C-D424-4CBA-ABBE-EDA953A196A4','޼ⵥ¼','HJGL/NDT/NDTBatch.arspx?Type=R',30,'E7533566-73A9-4507-8FCB-1FE713819A24','Menu_HJGL',0,1,1) GO /*ⵥ¼*/ INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('A4284CC7-4F99-4188-8CAB-A2CF578A0F2A','27AA3C4C-D424-4CBA-ABBE-EDA953A196A4','',1) diff --git a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx index 5d47cd9a..c05040e6 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -99,7 +99,7 @@ namespace FastReport } - + @@ -153,15 +153,15 @@ namespace FastReport - + - - + + - + @@ -174,28 +174,28 @@ namespace FastReport - + - + - + - + - + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs index 558a3655..ec18c3f4 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs @@ -526,7 +526,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage { var t = BLL.WeldTaskService.GetWeldTaskById(row); - errlog += InsertWeldingDailyItem(t.WeldJointId, t.CoverWelderId, t.BackingWelderId, t.JointAttribute, newWeldingDaily.WeldingDate, batchCondition, false); + errlog += InsertWeldingDailyItem(t.WeldJointId, t.CoverWelderId, t.BackingWelderId, t.JointAttribute, newWeldingDaily.WeldingDate, batchCondition, true); } } else @@ -536,7 +536,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage if (Grid1.SelectedRowIDArray.Contains(Grid1.Rows[i].RowID)) { var t = BLL.WeldTaskService.GetWeldTaskById(Grid1.Rows[i].RowID); - errlog += InsertWeldingDailyItem(t.WeldJointId, t.CoverWelderId, t.BackingWelderId, t.JointAttribute, newWeldingDaily.WeldingDate, batchCondition, false); + errlog += InsertWeldingDailyItem(t.WeldJointId, t.CoverWelderId, t.BackingWelderId, t.JointAttribute, newWeldingDaily.WeldingDate, batchCondition, true); } else { @@ -1062,7 +1062,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage var pointBatchItems = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.WeldJointId == weldJointId select x; string pointBatchId = pointBatchItems.FirstOrDefault().PointBatchId; - /*// 删除焊口所在批明细信息 + // 删除焊口所在批明细信息 BLL.PointBatchDetailService.DeleteBatchDetail(weldJointId); // 删除批信息 @@ -1070,7 +1070,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage if (pointBatchId != null && batch.Count() == 0) { BLL.PointBatchService.DeleteBatch(pointBatchId); - }*/ + } } } else diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs index 025e2f42..49415846 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs @@ -427,7 +427,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage if (batchC != null) { string batchCondition = batchC.SetValue; - BLL.PointBatchService.AddBatchByWeldJointId(item.WeldJointId,null, batchCondition); + //BLL.PointBatchService.AddBatchByWeldJointId(item.WeldJointId,null, batchCondition); } @@ -919,7 +919,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage if (task != null) { BLL.WeldTaskService.DeleteWeldingTask(task.WeldTaskId); - PointBatchService.DeleteBatchByWeldJointId(task.WeldJointId); + //PointBatchService.DeleteBatchByWeldJointId(task.WeldJointId); } } ShowNotify("删除成功!", MessageBoxIcon.Success); From b3e1db76117858b67ad47fb3293cfec600e2d769 Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Thu, 7 Sep 2023 08:51:08 +0800 Subject: [PATCH 3/7] 20230906 --- SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx | 12 +- .../DigData/ProjectDataDW.aspx.cs | 125 +++++++++--------- .../DigData/ProjectDataDW.aspx.designer.cs | 24 ++-- SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx | 2 +- .../DigData/ProjectWBSDW.aspx.cs | 4 + .../DigData/ProjectWBSDW.aspx.designer.cs | 4 +- SGGL/FineUIPro.Web/ErrLog.txt | 42 ------ 7 files changed, 90 insertions(+), 123 deletions(-) diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx index aac4ef7d..1e23034d 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx @@ -38,21 +38,21 @@ - + - + - + - + - + - + diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs index 3972dcb0..137ce1f2 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs @@ -1,6 +1,7 @@ using BLL; using System; using System.Data; +using System.Data.SqlTypes; using System.Linq; namespace FineUIPro.Web.DigData @@ -63,33 +64,61 @@ namespace FineUIPro.Web.DigData if (item == "HSSE") { this.gpHSSE.Hidden = false; - this.lbExpertArgument.Text = (from x in Funs.DB.Solution_LargerHazardListItem - join y in Funs.DB.Solution_LargerHazardList on x.LargerHazardListId equals y.LargerHazardListId - where y.ProjectId == this.ProjectId - && y.States == Const.State_1 - - select x).Count().ToString(); - this.lbAccident.Text = (from x in Funs.DB.Accident_AccidentPersonRecord - where x.ProjectId == this.ProjectId - && x.States == Const.State_2 - - select x).Count().ToString(); + this.lbSitePersons.Text = (from x in Funs.DB.SitePerson_Person + where x.ProjectId == this.ProjectId //&& y.States == Const.State_1 + select x).Count().ToString(); + var getPersonInOutNumber = (from x in Funs.DB.SitePerson_PersonInOutNumber + where x.ProjectId == this.ProjectId + select x).OrderByDescending(x => x.InOutDate).FirstOrDefault(); + if (getPersonInOutNumber != null) + { + this.lbWorkHours.Text = (getPersonInOutNumber.WorkHours ?? 0).ToString(); + } + else + { + this.lbWorkHours.Text = "0"; + } + this.lbEduCount.Text = (from x in Funs.DB.EduTrain_TrainRecord + where x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2 + select x).Count().ToString(); + + var getAllHazardRegister = from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.ProjectId == this.ProjectId && x.States != null && x.States != "4" && x.States != "0" + select x; + int allHazardCount = getAllHazardRegister.Count(); + int cHazardCount = getAllHazardRegister.Where(x => x.States == "3").Count(); + this.lbRectifyRate.Text = allHazardCount > 0 ? Math.Round(cHazardCount * 100.0 / (allHazardCount * 1.0)).ToString() + "%" : "0%"; + + this.lbMeetingCount.Text = (Funs.DB.Meeting_AttendMeeting.Where(x => x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2).Count() + + Funs.DB.Meeting_ClassMeeting.Where(x => x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2).Count() + + Funs.DB.Meeting_MonthMeeting.Where(x => x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2).Count() + + Funs.DB.Meeting_SpecialMeeting.Where(x => x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2).Count() + + Funs.DB.Meeting_WeekMeeting.Where(x => x.ProjectId == this.ProjectId && x.States == BLL.Const.State_2).Count()).ToString(); + + var getCostManges = Funs.DB.CostGoods_CostManage.Where(x => x.ProjectId == this.ProjectId && x.States == Const.State_2); + if (getCostManges.Count() > 0) + { + this.lbHSECost.Text = getCostManges.Sum(x => x.SumMoney ?? 0).ToString(); + } + else + { + this.lbHSECost.Text = "0"; + } } if (item == "CQMS") { this.gpCQMS.Hidden = false; //// 实体验收 资料验收 var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail - join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode - where y.ProjectId == this.ProjectId - && y.State == "8" - select x; + join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode + where y.ProjectId == this.ProjectId && y.State == "8" + select x; int all = getSpotCheckDetail.Count(); - // this.lbSpotCheck1.Text = all.ToString(); - int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count(); //一次合格 - // this.lbSpotCheck2.Text= okCount.ToString(); + // this.lbSpotCheck1.Text = all.ToString(); + int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count(); //一次合格 + // this.lbSpotCheck2.Text= okCount.ToString(); - this.lbSpotCheckRate.Text= all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString()+"%" : "0%"; + this.lbSpotCheckRate.Text = all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString() + "%" : "0%"; /// 资料验收合格项目 var getOKSpotCheckDetail = getSpotCheckDetail.Where(x => x.IsOK == true); @@ -127,49 +156,25 @@ namespace FineUIPro.Web.DigData { this.gpJDGL.Hidden = false; - //double totalSJCost = 0; ////累计实际费用 - //decimal totalPlanCost = 0; ////计划费用 - //var getWorkPackageDetail = Funs.DB.WBS_WorkPackageDetail.FirstOrDefault(x => x.WorkPackageId == workPackageId); - //if (getWorkPackageDetail != null) - //{ - // ///末级节点 - // var getMaxSJCost = Funs.DB.View_WBS_WorkPackageDetail.Where(x => x.WorkPackageId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault(); - // if (getMaxSJCost != null) - // { - // totalSJCost = getMaxSJCost.TotalThisValue ?? 0; - // totalPlanCost = getMaxSJCost.PlanCost ?? 0; - // } - //} - //else - //{ - // ///非末级节点 - // var getMaxSJCost = Funs.DB.View_WBS_WorkPackageParentDetail.Where(x =>x.ProjectId == this.ProjectId - // && x.ParentId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault(); - // if (getMaxSJCost != null) - // { - // totalSJCost = getMaxSJCost.TotalThisValue ?? 0; - // totalPlanCost = getMaxSJCost.PlanCost ?? 0; - // } - //} - ////// 根 节点 建筑工程 安装工程 - //if (workPackageId == "1" || workPackageId == "2") - //{ - // var getUnitWorkByType = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId && x.ProjectType == workPackageId select x; - // if (getUnitWorkByType.Count() > 0) - // { - // totalPlanCost = getUnitWorkByType.Sum(x => x.PlanCost ?? 0); - // } - //} + double totalSJCost = 0; ////累计实际费用 + decimal totalPlanCost = 0; ////计划费用 + var getViewWorkPackageParentDetail = from x in Funs.DB.View_WBS_WorkPackageParentDetail + where x.ProjectId == this.ProjectId && (x.ParentId == "1" || x.ParentId == "2") + select x; + if (getViewWorkPackageParentDetail.Count() > 0) + { + totalSJCost = getViewWorkPackageParentDetail.Sum(x => x.TotalThisValue ?? 0); + } - //var getUnitWork = Funs.DB.WBS_UnitWork.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.UnitWorkId == workPackageId); - //if (getUnitWork != null) - //{ - // totalPlanCost= getUnitWork.PlanCost ?? 0; - //} + var getUnitWork = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId select x; + if (getUnitWork.Count() > 0) + { + totalPlanCost = getUnitWork.Sum(x => x.PlanCost ?? 0); + } - /////项目进度完成百分比 - //decimal s = Convert.ToDecimal(totalSJCost); - //this.lbJDRate.Text = totalPlanCost > 0 ? Math.Round(s / totalPlanCost).ToString() + "%" : "0%"; + ///项目进度完成百分比 + decimal s = Convert.ToDecimal(totalSJCost); + this.lbJDRate.Text = totalPlanCost > 0 ? Math.Round(s / totalPlanCost).ToString() + "%" : "0%"; } if (item == "HTGL") diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs index 25d324cd..894b8118 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs @@ -87,58 +87,58 @@ namespace FineUIPro.Web.DigData protected global::FineUIPro.Form SimpleForm1; /// - /// lbExpertArgument 控件。 + /// lbSitePersons 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label lbExpertArgument; + protected global::FineUIPro.Label lbSitePersons; /// - /// lbAccident 控件。 + /// lbWorkHours 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label lbAccident; + protected global::FineUIPro.Label lbWorkHours; /// - /// Label3 控件。 + /// lbEduCount 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label3; + protected global::FineUIPro.Label lbEduCount; /// - /// Label7 控件。 + /// lbRectifyRate 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label7; + protected global::FineUIPro.Label lbRectifyRate; /// - /// Label8 控件。 + /// lbMeetingCount 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label8; + protected global::FineUIPro.Label lbMeetingCount; /// - /// Label9 控件。 + /// lbHSECost 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label9; + protected global::FineUIPro.Label lbHSECost; /// /// gpCQMS 控件。 diff --git a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx index 3e3e41d3..426eb1d2 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx +++ b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx @@ -64,7 +64,7 @@ - + diff --git a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.cs index 3f67a293..c7182d9a 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.cs @@ -114,6 +114,10 @@ namespace FineUIPro.Web.DigData && x.States == Const.State_2 && (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId)) select x).Count().ToString(); + + this.lbHSEProblemCount.Text= (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.ProjectId == this.ProjectId && x.States != null && x.States !="4" && x.States != "0" + select x).Count().ToString(); } if (item == "CQMS") { diff --git a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.designer.cs index f8ae1512..caf5ffa5 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectWBSDW.aspx.designer.cs @@ -159,13 +159,13 @@ namespace FineUIPro.Web.DigData protected global::FineUIPro.Label lbAccident; /// - /// Label3 控件。 + /// lbHSEProblemCount 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label3; + protected global::FineUIPro.Label lbHSEProblemCount; /// /// gpCQMS 控件。 diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index b4222019..e69de29b 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1,42 +0,0 @@ - -错误信息开始=====> -错误类型:NullReferenceException -错误信息:未将对象引用设置到对象的实例。 -错误堆栈: - 在 FineUIPro.Web.index.MenuSwitchMethod(String type) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\index.aspx.cs:行号 417 - 在 FineUIPro.Web.index.btnPerson_Click(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\index.aspx.cs:行号 467 - 在 FineUIPro.Button.OnClick(EventArgs e) - 在 (Button , EventArgs ) - 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/03/2023 11:44:42 -出错文件:http://localhost:8797/index.aspx -IP地址:::1 - -出错时间:09/03/2023 11:44:42 - - -错误信息开始=====> -错误类型:ChangeConflictException -错误信息:2 的 1 更新失败。 -错误堆栈: - 在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) - 在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) - 在 System.Data.Linq.DataContext.SubmitChanges() - 在 BLL.PhtglContractTrackService.UpdatePHTGL_ContractTrack(PHTGL_ContractTrack newtable) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\BLL\PHTGL\ContractCompile\PhtglContracttrackService .cs:行号 200 - 在 FineUIPro.Web.PHTGL.ContractCompile.ContractTrackList.btnSave_OnClick(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\PHTGL\ContractCompile\ContractTrackList.aspx.cs:行号 371 - 在 FineUIPro.Button.OnClick(EventArgs e) - 在 (Button , EventArgs ) - 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/04/2023 10:22:11 -出错文件:http://localhost:8797/PHTGL/ContractCompile/ContractTrackList.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/04/2023 10:22:11 - From 36c40ea33c06c111eb6d01e07c8d1b7840c84401 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Thu, 7 Sep 2023 16:38:56 +0800 Subject: [PATCH 4/7] 2023-09-07 --- .../Fastreport/管道焊口检测委托单NoPic.frx | 4 +- .../Fastreport/管道焊口返修委托单NoPic.frx | 344 ++++++++++++++++++ .../File/Fastreport/组件打印.frx | 13 +- .../HJGL/PointTrust/PointBatch.aspx.cs | 5 +- .../HJGL/PreDesign/PrePipeline.aspx.cs | 75 +++- .../HJGL/RepairAndExpand/RepairTrust.aspx | 5 + .../HJGL/RepairAndExpand/RepairTrust.aspx.cs | 118 ++++++ .../RepairTrust.aspx.designer.cs | 75 ++-- .../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 1 + 9 files changed, 580 insertions(+), 60 deletions(-) create mode 100644 SGGL/FineUIPro.Web/File/Fastreport/管道焊口返修委托单NoPic.frx diff --git a/SGGL/FineUIPro.Web/File/Fastreport/管道焊口检测委托单NoPic.frx b/SGGL/FineUIPro.Web/File/Fastreport/管道焊口检测委托单NoPic.frx index f6f23483..59c3cb35 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/管道焊口检测委托单NoPic.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/管道焊口检测委托单NoPic.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -89,7 +89,7 @@ namespace FastReport } - + diff --git a/SGGL/FineUIPro.Web/File/Fastreport/管道焊口返修委托单NoPic.frx b/SGGL/FineUIPro.Web/File/Fastreport/管道焊口返修委托单NoPic.frx new file mode 100644 index 00000000..539d7f15 --- /dev/null +++ b/SGGL/FineUIPro.Web/File/Fastreport/管道焊口返修委托单NoPic.frx @@ -0,0 +1,344 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + + private void Table4_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Table1"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + Table4.PrintRow(0); + // each PrintRow call must be followed by either PrintColumn or PrintColumns call + // to print cells on the row + Table4.PrintColumns(); + + // now enumerate the data source and print the table body + + // print the table body + Table4.PrintRow(1); + Table4.PrintColumns(); + Table4.PrintRow(2); + Table4.PrintColumns(); + Table4.PrintRow(3); + Table4.PrintColumns(); + Table4.PrintRow(4); + Table4.PrintColumns(); + Table4.PrintRow(5); + Table4.PrintColumns(); + + // go next data source row + rowData.Next(); + + } + + private void Table5_ManualBuild(object sender, EventArgs e) + { + Table5.PrintRow(0); + Table5.PrintColumns(); + Table5.PrintRow(1); + Table5.PrintColumns(); + } + + + private int x; + private void Tabel_Data_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + Tabel_Data.PrintRow(0); + // each PrintRow call must be followed by either PrintColumn or PrintColumns call + // to print cells on the row + Tabel_Data.PrintColumns(); + x=0; + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + x++; + // print the table body + Tabel_Data.PrintRow(1); + Tabel_Data.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx index c05040e6..9938dabe 100644 --- a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx +++ b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -99,7 +99,7 @@ namespace FastReport } - + @@ -114,15 +114,8 @@ namespace FastReport - - - - - - - - + diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs index aab12ce5..cb7f9fb9 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs @@ -572,7 +572,8 @@ namespace FineUIPro.Web.HJGL.PointTrust { if (!batch.EndDate.HasValue) { - PointBatchService.UpdateBatchIsClosed2(this.PointBatchId, DateTime.Now); + PointBatchService.UpdateBatchIsClosed(this.PointBatchId, DateTime.Now); + /*PointBatchService.UpdateBatchIsClosed2(this.PointBatchId, DateTime.Now); //生成委托单 Model.HJGL_Batch_BatchTrust newBatchTrust = new Model.HJGL_Batch_BatchTrust(); var project = BLL.ProjectService.GetProjectByProjectId(batch.ProjectId); @@ -595,7 +596,7 @@ namespace FineUIPro.Web.HJGL.PointTrust newBatchTrust.DetectionTypeId = batch.DetectionTypeId; newBatchTrust.DetectionRateId = batch.DetectionRateId; newBatchTrust.PointBatchId = this.PointBatchId; - BLL.Batch_BatchTrustService.AddBatchTrust(newBatchTrust); // 新增委托单 + BLL.Batch_BatchTrustService.AddBatchTrust(newBatchTrust); // 新增委托单*/ this.BindGrid(); Alert.ShowInTop("关批成功!", MessageBoxIcon.Success); } diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs index cd01605b..14b62b2f 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs @@ -355,13 +355,68 @@ namespace FineUIPro.Web.HJGL.PreDesign } protected void btnPrint_Click(object sender, EventArgs e) { - Print(tvControlItem.SelectedNodeID,""); + Print(tvControlItem.SelectedNodeID, Grid1.SelectedRowIDArray); } - private void Print(string PipelineId ,string PipelineComponentId) + private void Print(string PipelineId ,string[] PipelineComponentId) { + var db = Funs.DB; BLL.FastReportService.ResetData(); - string strSql = @" SELECT com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,unitwork.UnitWorkName, + var query = + from com in db.HJGL_Pipeline_Component + join mat in db.HJGL_PipeLineMat on com.PipeLineMatId equals mat.PipeLineMatId into matJoin + from mat in matJoin.DefaultIfEmpty() + join pipe in db.HJGL_Pipeline on com.PipelineId equals pipe.PipelineId into pipeJoin + from pipe in pipeJoin.DefaultIfEmpty() + join punit in db.Base_Unit on com.PreUnit equals punit.UnitId into punitJoin + from punit in punitJoin.DefaultIfEmpty() + join aunit in db.Base_Unit on com.AssembleUnit equals aunit.UnitId into aunitJoin + from aunit in aunitJoin.DefaultIfEmpty() + join unitwork in db.WBS_UnitWork on pipe.UnitWorkId equals unitwork.UnitWorkId into unitworkJoin + from unitwork in unitworkJoin.DefaultIfEmpty() + join mater in db.Base_Material on pipe.MaterialId equals mater.MaterialId into materJoin + from mater in materJoin.DefaultIfEmpty() + where com.QRCode != "" & com.PipelineId == PipelineId + select new + { + com.PipelineComponentId, + com.PipelineComponentCode, + com.BoxNumber, + UnitWorkName = unitwork.UnitWorkName, + com.PipelineId, + PreUnit = punit.UnitName, + AssembleUnit = aunit.UnitName, + mat.PrefabricatedComponents, + com.QRCode, + com.State, + PlanStartDate = string.Format("yyyy-MM-dd", pipe.PlanStartDate), + pipe.PipelineCode, + pipe.FlowingSection, + QRCode2 = "PrePipeline$" + com.PipelineComponentId, + mater.MaterialCode + }; + + var result = query.ToList(); + if (PipelineComponentId.Length>0) + { + result = result.Where(x => PipelineComponentId.Contains(x.PipelineComponentId)).ToList(); + } + var tb = LINQToDataTable(result); + if (tb != null) + { + tb.TableName = "Table1"; + } + BLL.FastReportService.AddFastreportTable(tb); + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + initTemplatePath = "File\\Fastreport\\组件打印.frx"; + + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + + } + /*string strSql = @" SELECT com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,unitwork.UnitWorkName, com.PipelineId, punit.UnitName AS PreUnit,aunit.UnitName AS AssembleUnit,mat.PrefabricatedComponents, com.QRCode,com.State,CONVERT(varchar(100), pipe.PlanStartDate, 23) as PlanStartDate,pipe.PipelineCode,pipe.FlowingSection, ('PrePipeline$'+com.PipelineComponentId )as QRCode2,mater.* @@ -377,11 +432,7 @@ namespace FineUIPro.Web.HJGL.PreDesign strSql += " AND com.PipelineId =@PipelineId"; listStr.Add(new SqlParameter("@PipelineId", PipelineId)); - if (PipelineComponentId!="") - { - strSql += " AND com.PipelineComponentId =@PipelineComponentId"; - listStr.Add(new SqlParameter("@PipelineComponentId", PipelineComponentId)); - } + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); if (tb != null) @@ -397,8 +448,9 @@ namespace FineUIPro.Web.HJGL.PreDesign { PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); - } + }*/ } + /// /// 增加焊口信息 /// @@ -500,11 +552,6 @@ namespace FineUIPro.Web.HJGL.PreDesign } } } - else if (e.CommandName == "cmd_print") - { - string Id = this.Grid1.SelectedRowID; - Print(tvControlItem.SelectedNodeID, Id); - } } protected void btnSearch_Click(object sender, EventArgs e) diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx index 21bc9392..56cd9dbc 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx @@ -170,6 +170,11 @@ EnableMaximize="true" Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true" Width="1050px" Height="650px"> + + + + diff --git a/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.cs b/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.cs new file mode 100644 index 00000000..a9015453 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.cs @@ -0,0 +1,79 @@ +using BLL; +using FineUIPro.Web.CQMS.WBS; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; + +namespace FineUIPro.Web.DigData +{ + public partial class ProjectWBSAnalysis : PageBase + { + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ucTree.IsShowAll = false; + this.ucTree.Level= this.hdLevel.Text = "0"; + BindGrid(); + } + } + + protected void changeTree(object sender, EventArgs e) + { + this.hdWorkPackageCode.Text = this.ucTree.WorkPackageCode; + this.hdLevel.Text = this.ucTree.Level; + BindGrid(); + } + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1); + Grid1.RecordCount = WBSAnalysisService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.designer.cs new file mode 100644 index 00000000..c308ef13 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/ProjectWBSAnalysis.aspx.designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class ProjectWBSAnalysis + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ucTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.WBSControl ucTree; + + /// + /// hdWorkPackageCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox hdWorkPackageCode; + + /// + /// hdLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox hdLevel; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx new file mode 100644 index 00000000..ba8ab06f --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx @@ -0,0 +1,93 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WBSAnalysis.aspx.cs" Inherits="FineUIPro.Web.DigData.WBSAnalysis" %> + +<%@ Register Src="~/Controls/WBSControl.ascx" TagName="WBSControl" TagPrefix="uc1" %> + + + + + WBS数据分析 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.cs b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.cs new file mode 100644 index 00000000..d2a493eb --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.cs @@ -0,0 +1,79 @@ +using BLL; +using FineUIPro.Web.CQMS.WBS; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; + +namespace FineUIPro.Web.DigData +{ + public partial class WBSAnalysis : PageBase + { + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.ucTree.IsShowAll = false; + this.ucTree.Level= this.hdLevel.Text = "0"; + BindGrid(); + } + } + + protected void changeTree(object sender, EventArgs e) + { + this.hdWorkPackageCode.Text = this.ucTree.WorkPackageCode; + this.hdLevel.Text = this.ucTree.Level; + BindGrid(); + } + + #region 绑定数据Grid1 + /// + /// 绑定数据Grid1 + /// + private void BindGrid() + { + var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1); + Grid1.RecordCount = WBSAnalysisService.count; + Grid1.DataSource = getData; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + this.BindGrid(); + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.designer.cs new file mode 100644 index 00000000..470bca96 --- /dev/null +++ b/SGGL/FineUIPro.Web/DigData/WBSAnalysis.aspx.designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.DigData +{ + + + public partial class WBSAnalysis + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ucTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.WBSControl ucTree; + + /// + /// hdWorkPackageCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox hdWorkPackageCode; + + /// + /// hdLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox hdLevel; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + } +} diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index e69de29b..9e8fc3d8 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -0,0 +1,19 @@ + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 (TreeNode ) + 在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument) + 在 (TreeNode , String , String ) + 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:09/07/2023 21:53:15 +出错文件:http://localhost:6422/DigData/WBSAnalysis.aspx +IP地址:::1 +操作人员:JT + +出错时间:09/07/2023 21:53:15 + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 03dc5e8f..1fdb7299 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -537,6 +537,8 @@ + + @@ -7692,6 +7694,20 @@ HSEDataCollect.aspx + + ProjectWBSAnalysis.aspx + ASPXCodeBehind + + + ProjectWBSAnalysis.aspx + + + WBSAnalysis.aspx + ASPXCodeBehind + + + WBSAnalysis.aspx + WBSDW.aspx ASPXCodeBehind @@ -14185,7 +14201,7 @@ True 0 / - http://localhost:8797/ + http://localhost:6422/ False False diff --git a/SGGL/FineUIPro.Web/Person/ProjectPersonEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/ProjectPersonEdit.aspx.cs index 2fa70f00..3c779396 100644 --- a/SGGL/FineUIPro.Web/Person/ProjectPersonEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/Person/ProjectPersonEdit.aspx.cs @@ -404,9 +404,9 @@ namespace FineUIPro.Web.Person } else { - this.drpUnit.SelectedValue = this.CurrUser.UnitId ?? Const.UnitId_SEDIN; + this.drpUnit.SelectedValue = this.CurrUser.UnitId ?? ProjectService.getProjectUnitIdByUnitType(this.drpProject.SelectedValue, Const.ProjectUnitType_1); } - Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAuditor, this.drpProject.SelectedValue, Const.UnitId_SEDIN, BLL.Const.HSSEManager + "," + BLL.Const.HSSEAssistantManager, false); + Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAuditor, this.drpProject.SelectedValue, ProjectService.getProjectUnitIdByUnitType(this.drpProject.SelectedValue,Const.ProjectUnitType_1), BLL.Const.HSSEManager + "," + BLL.Const.HSSEAssistantManager, false); TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.drpProject.SelectedValue, this.drpUnit.SelectedValue, false); gvWorkArea.DataSource = UnitWorkService.GetUnitWorkLists(this.drpProject.SelectedValue); gvWorkArea.DataBind();//单位工程 @@ -453,7 +453,7 @@ namespace FineUIPro.Web.Person protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e) { // this.trRole.Hidden = true; - if (this.drpUnit.SelectedValue == BLL.Const.UnitId_SEDIN) + if (this.drpUnit.SelectedValue == ProjectService.getProjectUnitIdByUnitType(this.drpProject.SelectedValue, Const.ProjectUnitType_1)) { // this.trRole.Hidden = false; this.txtIdentityCard.Required = false; diff --git a/SGGL/FineUIPro.Web/common/Menu_DigData.xml b/SGGL/FineUIPro.Web/common/Menu_DigData.xml index 3ac7eb46..8eb9b3df 100644 --- a/SGGL/FineUIPro.Web/common/Menu_DigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_DigData.xml @@ -13,11 +13,15 @@ + + - + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_PDigData.xml b/SGGL/FineUIPro.Web/common/Menu_PDigData.xml index e9c0d7fc..678f0f7f 100644 --- a/SGGL/FineUIPro.Web/common/Menu_PDigData.xml +++ b/SGGL/FineUIPro.Web/common/Menu_PDigData.xml @@ -3,6 +3,6 @@ - + \ No newline at end of file From 6b2c6e3e21e3df70b0fae0cc748857270e6cdb7c Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Fri, 8 Sep 2023 10:49:05 +0800 Subject: [PATCH 6/7] =?UTF-8?q?20230908=E8=B5=9B=E9=BC=8E=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E5=AF=86=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-08-30.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-01-lpf.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-01.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-04.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-05.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-06.sql | 0 DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-07.sql | 0 SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 1 - SGGL/FineUIPro.Web/Personal/PersonalSet.aspx.cs | 4 ++-- 9 files changed, 2 insertions(+), 3 deletions(-) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-08-30.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-01-lpf.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-01.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-04.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-05.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-06.sql (100%) rename DataBase/版本日志/{ => 已更新脚本}/SGGLDB_V2023-09-07.sql (100%) diff --git a/DataBase/版本日志/SGGLDB_V2023-08-30.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-08-30.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-08-30.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-08-30.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-01-lpf.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-01-lpf.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-01-lpf.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-01-lpf.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-01.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-01.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-01.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-01.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-04.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-04.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-04.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-04.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-05.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-05.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-05.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-05.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-06.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-06.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-06.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-06.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-09-07.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-07.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-09-07.sql rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-07.sql diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 1fdb7299..a2b4a81c 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -10443,7 +10443,6 @@ EPSummaryReport.aspx - ASPXCodeBehind EPSummaryReport.aspx diff --git a/SGGL/FineUIPro.Web/Personal/PersonalSet.aspx.cs b/SGGL/FineUIPro.Web/Personal/PersonalSet.aspx.cs index 220ba2f9..c62b9c1a 100644 --- a/SGGL/FineUIPro.Web/Personal/PersonalSet.aspx.cs +++ b/SGGL/FineUIPro.Web/Personal/PersonalSet.aspx.cs @@ -256,8 +256,8 @@ namespace FineUIPro.Web.Personal return; } - //BLL.Person_PersonsService.UpdatePassword(user.PersonId, this.txtNewPassword.Text); - //BLL.LogService.AddSys_Log(this.CurrUser, user.UserCode, user.PersonId, BLL.Const.UserMenuId, BLL.Const.BtnModify); + BLL.Person_PersonsService.UpdatePassword(user.PersonId, this.txtNewPassword.Text); + BLL.LogService.AddSys_Log(this.CurrUser, user.JobNum, user.PersonId, BLL.Const.UserMenuId, BLL.Const.BtnModify); PageContext.RegisterStartupScript(ActiveWindow.GetHideReference()); } } From c5ce2145c611555fa39126ba8ca201de119257ae Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Sat, 9 Sep 2023 16:44:17 +0800 Subject: [PATCH 7/7] 2023-09-09 --- .../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 182 +----------------- 1 file changed, 1 insertion(+), 181 deletions(-) diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs index b1a013eb..e83401be 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs @@ -814,14 +814,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage private string InsertWeldingDailyItem(string weldJointId, string coverWelderId, string backingWelderId, string jointAttribute, DateTime? weldingDate, string batchCondition, bool isSave) { string errlog = string.Empty; - string[] condition = batchCondition.Split('|'); - var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); var newWeldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId); - var pipeline = BLL.PipelineService.GetPipelineByPipelineId(newWeldJoint.PipelineId); - var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(pipeline.UnitWorkId); - var unit = BLL.UnitService.GetUnitByUnitId(pipeline.UnitId); - var ndt = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(newWeldJoint.DetectionTypeId); - var ndtr = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(pipeline.DetectionRateId); if (newWeldJoint != null && string.IsNullOrEmpty(newWeldJoint.WeldingDailyId)) { @@ -842,178 +835,8 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage BLL.WeldJointService.UpdateWeldJointAddG(newWeldJoint.WeldJointId, newWeldJoint.JointAttribute, Const.BtnAdd); if (isSave) { - // 进批 - //BLL.Batch_PointBatchItemService.InsertPointBatch(this.ProjectId, this.drpUnit.SelectedValue, this.drpUnitWork.SelectedValue, item.CoverWelderId, item.WeldJointId, weldingDate); - bool isPass = true; - foreach (string c in condition) - { - if (c == "1") - { - if (string.IsNullOrEmpty(pipeline.UnitWorkId)) - { - isPass = false; - break; - - } - } - if (c == "2") - { - if (string.IsNullOrEmpty(pipeline.UnitId)) - { - isPass = false; - break; - - } - } - if (c == "3") - { - if (string.IsNullOrEmpty(newWeldJoint.DetectionTypeId)) - { - isPass = false; - break; - } - } - if (c == "4") - { - if (string.IsNullOrEmpty(pipeline.DetectionRateId)) - { - isPass = false; - break; - } - } - if (c == "5") - { - if (string.IsNullOrEmpty(pipeline.PipingClassId)) - { - isPass = false; - break; - } - } - // 6是管线,7是焊工都不可能为空,这里就不判断了 - } - - if (isPass) - { - string strSql = @"SELECT PointBatchId FROM dbo.HJGL_Batch_PointBatch - WHERE (EndDate IS NULL OR EndDate ='') - AND ProjectId = @ProjectId - AND UnitWorkId = @UnitWorkId AND UnitId =@UnitId - AND DetectionTypeId =@DetectionTypeId - AND DetectionRateId =@DetectionRateId"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId)); - listStr.Add(new SqlParameter("@UnitWorkId", pipeline.UnitWorkId)); - listStr.Add(new SqlParameter("@UnitId", pipeline.UnitId)); - listStr.Add(new SqlParameter("@DetectionTypeId", newWeldJoint.DetectionTypeId)); - listStr.Add(new SqlParameter("@DetectionRateId", pipeline.DetectionRateId)); - - // 5,6,7项为可选项 - if (condition.Contains("5")) - { - strSql += " AND PipingClassId =@PipingClassId"; - listStr.Add(new SqlParameter("@PipingClassId", pipeline.PipingClassId)); - } - if (condition.Contains("6")) - { - strSql += " AND PipelineId =@PipelineId"; - listStr.Add(new SqlParameter("@PipelineId", newWeldJoint.PipelineId)); - } - if (condition.Contains("7")) - { - strSql += " AND WelderId =@WelderId"; - listStr.Add(new SqlParameter("@WelderId", newWeldJoint.CoverWelderId)); - } - - SqlParameter[] parameter = listStr.ToArray(); - DataTable batchInfo = SQLHelper.GetDataTableRunText(strSql, parameter); - - string batchId = string.Empty; - if (batchInfo.Rows.Count == 0) - { - Model.HJGL_Batch_PointBatch batch = new Model.HJGL_Batch_PointBatch(); - batch.PointBatchId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_PointBatch)); - batchId = batch.PointBatchId; - string perfix = project.ProjectCode + "-" + unitWork.UnitWorkCode + "-GD-DK-" + ndt.DetectionTypeCode + "-" + ndtr.DetectionRateValue.ToString() + "%-"; - batch.PointBatchCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode4ByProjectId", "dbo.HJGL_Batch_PointBatch", "PointBatchCode", this.CurrUser.LoginProjectId, perfix); - - batch.ProjectId = CurrUser.LoginProjectId; - batch.UnitWorkId = pipeline.UnitWorkId; - batch.BatchCondition = batchCondition; - batch.UnitId = pipeline.UnitId; - batch.DetectionTypeId = newWeldJoint.DetectionTypeId; - batch.DetectionRateId = pipeline.DetectionRateId; - if (condition.Contains("5")) - { - batch.PipingClassId = pipeline.PipingClassId; - } - if (condition.Contains("6")) - { - batch.PipelineId = newWeldJoint.PipelineId; - if (pipeline.PipeArea==PipelineService.PipeArea_FIELD) - { - perfix += "XC-"; - batch.PointBatchCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode4ByProjectId", "dbo.HJGL_Batch_PointBatch", "PointBatchCode", this.CurrUser.LoginProjectId, perfix); - - } - else if (pipeline.PipeArea == PipelineService.PipeArea_SHOP) - { - perfix += "GC-"; - batch.PointBatchCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode4ByProjectId", "dbo.HJGL_Batch_PointBatch", "PointBatchCode", this.CurrUser.LoginProjectId, perfix); - - } - } - if (condition.Contains("7")) - { - batch.WelderId = newWeldJoint.CoverWelderId; - } - batch.StartDate = DateTime.Now; - BLL.PointBatchService.AddPointBatch(batch); - } - else - { - batchId = batchInfo.Rows[0][0].ToString(); - } - - var b = BLL.PointBatchDetailService.GetBatchDetailByJotId(weldJointId); - if (b == null) - { - try - { - Model.HJGL_Batch_PointBatchItem batchDetail = new Model.HJGL_Batch_PointBatchItem(); - string pointBatchItemId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_PointBatchItem)); - batchDetail.PointBatchItemId = pointBatchItemId; - batchDetail.PointBatchId = batchId; - batchDetail.WeldJointId = weldJointId; - batchDetail.WeldingDate = weldingDate; - batchDetail.CreatDate = DateTime.Now; - BLL.Funs.DB.HJGL_Batch_PointBatchItem.InsertOnSubmit(batchDetail); - BLL.Funs.DB.SubmitChanges(); - - // 焊工首道口RT必点 - var joints = from x in Funs.DB.HJGL_Batch_PointBatchItem - join y in Funs.DB.HJGL_Batch_PointBatch on x.PointBatchId equals y.PointBatchId - join z in Funs.DB.Base_DetectionType on y.DetectionTypeId equals z.DetectionTypeId - join j in Funs.DB.HJGL_WeldJoint on x.WeldJointId equals j.WeldJointId - where z.DetectionTypeCode == "RT" - && j.CoverWelderId == newWeldJoint.CoverWelderId - select x; - if (joints.Count() <= 1) - { - BLL.PointBatchDetailService.UpdatePointBatchDetail(pointBatchItemId, "1", System.DateTime.Now); - BLL.PointBatchDetailService.UpdateWelderFirst(pointBatchItemId, true); - } - } - catch - { - - } - } - } - else - { - errlog += "焊口【" + newWeldJoint.WeldJointCode + "】组批条件不能为空。"; - } + errlog = PointBatchService.AddBatchByWeldJointId(weldJointId, weldingDate, batchCondition);//自动组批 } } @@ -1040,9 +863,6 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage string errlog = string.Empty; var newWeldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId); var pipeline = BLL.PipelineService.GetPipelineByPipelineId(newWeldJoint.PipelineId); - var unit = BLL.UnitService.GetUnitByUnitId(pipeline.UnitId); - var ndt = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(newWeldJoint.DetectionTypeId); - var ndtr = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(pipeline.DetectionRateId); if (newWeldJoint != null && !string.IsNullOrEmpty(newWeldJoint.WeldingDailyId)) {