增加施工月报
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
@@ -0,0 +1,21 @@
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('A20E2443-A118-4C67-9084-FFEB685CA539','清单子目使用率及价格走势图','',20,'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('6D1F3A3F-EFD1-420A-87E7-8CFAEF971165','日工效统计','',30,'381A4608-2CDE-42AF-BC4D-FF554785B9F8','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
update Sys_Menu set Url='DigData/WBSAnalysis.aspx' where MenuId='CFEF47C0-8EFA-46FF-8648-5B1922519DCC'
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('DD960B76-1F33-468B-9FEF-76328235C079','项目质量数据汇总','',20,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('A705738B-D0A2-41D2-A01A-18774B5AED49','项目施工数据汇总','',30,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
update Sys_Menu set Url='DigData/ProjectWBSAnalysis.aspx' where MenuId='B6C1706F-685D-4BAF-B8F7-99C9561C8F5B'
|
||||
GO
|
||||
@@ -15,6 +15,10 @@ 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
|
||||
--安全数据库
|
||||
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)
|
||||
@@ -30,12 +34,34 @@ 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
|
||||
--质量数据库
|
||||
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
|
||||
--进度数据库
|
||||
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('A20E2443-A118-4C67-9084-FFEB685CA539','清单子目使用率及价格走势图','',20,'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('6D1F3A3F-EFD1-420A-87E7-8CFAEF971165','日工效统计','',30,'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
|
||||
@@ -44,19 +70,27 @@ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffi
|
||||
VALUES('B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','数据分析室','',50,'0','Menu_DigData',1,0,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('CFEF47C0-8EFA-46FF-8648-5B1922519DCC','WBS数据分析','',10,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
VALUES('CFEF47C0-8EFA-46FF-8648-5B1922519DCC','WBS数据分析','DigData/WBSAnalysis.aspx',10,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('B146FC96-B199-426B-8504-4BE093C0DCB1','项目数据汇总分析','',20,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,0,1)
|
||||
GO
|
||||
--项目HSE数据信息汇总
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('427AB060-2510-4568-B85B-AD6796EBE569','项目HSE数据汇总','DigData/HSEDataCollect.aspx',10,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('AF5C32FD-F0CB-404E-B56D-C4AE79A8A050','人员功效分析','',10,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
--GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('0DB6BB5F-B17A-4A38-AABB-278300EA9E39','员工产值分析','',20,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
--GO
|
||||
--项目HSE数据信息汇总
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('427AB060-2510-4568-B85B-AD6796EBE569','项目HSE数据汇总','DigData/HSEDataCollect.aspx',10,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('DD960B76-1F33-468B-9FEF-76328235C079','项目质量数据汇总','',20,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('A705738B-D0A2-41D2-A01A-18774B5AED49','项目施工数据汇总','',30,'B146FC96-B199-426B-8504-4BE093C0DCB1','Menu_DigData',1,1,1)
|
||||
GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('AF5C32FD-F0CB-404E-B56D-C4AE79A8A050','人员功效分析','',10,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
--GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('0DB6BB5F-B17A-4A38-AABB-278300EA9E39','员工产值分析','',20,'B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE','Menu_DigData',1,1,1)
|
||||
--GO
|
||||
|
||||
@@ -7,26 +7,14 @@ 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)
|
||||
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('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
|
||||
|
||||
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)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('B6C1706F-685D-4BAF-B8F7-99C9561C8F5B','WBS数据分析','',10,'D9252E0B-3956-473A-8ECC-12C0933469C3','Menu_PDigData',1,1,1)
|
||||
VALUES('B6C1706F-685D-4BAF-B8F7-99C9561C8F5B','WBS数据分析','DigData/ProjectWBSAnalysis.aspx',10,'D9252E0B-3956-473A-8ECC-12C0933469C3','Menu_PDigData',1,1,1)
|
||||
GO
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -339,6 +339,11 @@
|
||||
<Compile Include="CQMS\WBS\WorkPackageParentDetailService.cs" />
|
||||
<Compile Include="CQMS\WBS\WorkPackageProjectService.cs" />
|
||||
<Compile Include="CQMS\WBS\WorkPackageService.cs" />
|
||||
<Compile Include="DigData\CQMSDataDWService .cs" />
|
||||
<Compile Include="DigData\WBSAnalysisService.cs" />
|
||||
<Compile Include="DigData\HTGLDataDWService.cs" />
|
||||
<Compile Include="DigData\JDGLDataDWService.cs" />
|
||||
<Compile Include="DigData\HSEDataDWService.cs" />
|
||||
<Compile Include="DigData\ProblemAnalysisService.cs" />
|
||||
<Compile Include="DigData\HSEDataCollectService.cs" />
|
||||
<Compile Include="DropListService.cs" />
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量数据仓库
|
||||
/// </summary>
|
||||
public static class CQMSDataDWService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 质量数据仓库
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.Base_Project> getDataLists = from x in db.Base_Project
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 质量数据仓库
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="Grid1"></param>
|
||||
/// <returns></returns>
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全数据仓库
|
||||
/// </summary>
|
||||
public static class HSEDataDWService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 安全数据仓库
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.Base_Project> getDataLists = from x in db.Base_Project
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 安全数据仓库
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="Grid1"></param>
|
||||
/// <returns></returns>
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 合同管理数据仓库
|
||||
/// </summary>
|
||||
public static class HTGLDataDWService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 合同管理数据仓库
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.Base_Project> getDataLists = from x in db.Base_Project
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 合同管理数据仓库
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="Grid1"></param>
|
||||
/// <returns></returns>
|
||||
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,
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 进度数据仓库
|
||||
/// </summary>
|
||||
public static class JDGLDataDWService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 进度数据仓库
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.Base_Project> getDataLists = from x in db.Base_Project
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 进度数据仓库
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="Grid1"></param>
|
||||
/// <returns></returns>
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using FineUIPro;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// WBS分析
|
||||
/// </summary>
|
||||
public static class WBSAnalysisService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region WBS分析
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_WorkPackageInit> getDataLists = from x in db.WBS_WorkPackageInit
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 合同管理数据仓库
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="Grid1"></param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getDataDWList(string level,string workPackageId, Grid Grid1)
|
||||
{
|
||||
var getDataList = getDataLists;
|
||||
if (level == "0")
|
||||
{
|
||||
List<Model.WBS_WorkPackageInit> listWork = new List<Model.WBS_WorkPackageInit>();
|
||||
if (string.IsNullOrEmpty(workPackageId) || workPackageId == "1")
|
||||
{
|
||||
Model.WBS_WorkPackageInit work1 = new Model.WBS_WorkPackageInit
|
||||
{
|
||||
WorkPackageCode = "1",
|
||||
PackageContent = "建筑工程",
|
||||
};
|
||||
listWork.Add(work1);
|
||||
}
|
||||
if (string.IsNullOrEmpty(workPackageId) || workPackageId == "2")
|
||||
{
|
||||
Model.WBS_WorkPackageInit work2 = new Model.WBS_WorkPackageInit
|
||||
{
|
||||
WorkPackageCode = "2",
|
||||
PackageContent = "安装工程",
|
||||
};
|
||||
listWork.Add(work2);
|
||||
}
|
||||
getDataList = listWork.AsQueryable();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (level == "1")
|
||||
{
|
||||
getDataList = getDataList.Where(x => x.SuperWorkPack == null);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(workPackageId))
|
||||
{
|
||||
if (workPackageId != "1" && workPackageId != "2")
|
||||
{
|
||||
getDataList = getDataList.Where(x => x.SuperWorkPack == workPackageId);
|
||||
}
|
||||
else
|
||||
{
|
||||
getDataList = getDataList.Where(x => x.ProjectType == workPackageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.WorkPackageCode,
|
||||
x.PackageContent,
|
||||
Count1=0,
|
||||
Count2 = 0,
|
||||
Count3 = 0,
|
||||
Count4 = 0,
|
||||
Count5 = 0,
|
||||
Count6 = 0,
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -464,6 +464,28 @@
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目各单位类型单位名称
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="unitType"></param>
|
||||
/// <returns></returns>
|
||||
public static string getProjectUnitIdByUnitType(string projectId, string unitType)
|
||||
{
|
||||
string unitId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
var getUnit = from x in Funs.DB.Project_ProjectUnit
|
||||
where x.ProjectId == projectId && x.UnitType == unitType
|
||||
select x.UnitId;
|
||||
if (getUnit.Count() > 0)
|
||||
{
|
||||
unitId = Funs.GetStringByArray(getUnit.ToArray());
|
||||
}
|
||||
}
|
||||
return unitId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目各单位类型单位名称
|
||||
/// </summary>
|
||||
@@ -477,7 +499,7 @@
|
||||
{
|
||||
var getUnitName = from x in Funs.DB.Project_ProjectUnit
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == projectId.ToString() && x.UnitType == unitType
|
||||
where x.ProjectId == projectId && x.UnitType == unitType
|
||||
select y.UnitName;
|
||||
if (getUnitName.Count() > 0)
|
||||
{
|
||||
@@ -500,7 +522,7 @@
|
||||
{
|
||||
var getShortUnitName = from x in Funs.DB.Project_ProjectUnit
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == projectId.ToString() && x.UnitType == unitType
|
||||
where x.ProjectId == projectId && x.UnitType == unitType
|
||||
select y.ShortUnitName;
|
||||
if (getShortUnitName.Count() > 0)
|
||||
{
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="ckState" Width="350px" AutoColumnWidth="true"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="ckState_SelectedIndexChanged">
|
||||
<f:RadioButtonList runat="server" ID="ckLevel" Width="350px" AutoColumnWidth="true"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="ckLevel_SelectedIndexChanged">
|
||||
<f:RadioItem Text="全部" Value="-1" Selected="true"/>
|
||||
<f:RadioItem Text="0级" Value="0" />
|
||||
<f:RadioItem Text="1级" Value="1" />
|
||||
|
||||
@@ -19,6 +19,25 @@ namespace FineUIPro.Web.Controls
|
||||
}
|
||||
}
|
||||
|
||||
public string Level
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Level"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Level"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsShowAll
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = true;
|
||||
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
@@ -29,8 +48,15 @@ namespace FineUIPro.Web.Controls
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (!IsShowAll)
|
||||
{
|
||||
this.ckLevel.Items.Remove(this.ckLevel.Items[0]);
|
||||
this.ckLevel.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
////加载树
|
||||
SetSubUnitProjectTree(this.trWBS);
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -42,6 +68,7 @@ namespace FineUIPro.Web.Controls
|
||||
/// <param name="e"></param>
|
||||
protected void trWBS_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
this.Level = this.ckLevel.SelectedValue;
|
||||
if (this.trWBS != null && !string.IsNullOrEmpty(this.trWBS.SelectedNodeID))
|
||||
{
|
||||
this.WorkPackageCode = this.trWBS.SelectedNodeID;
|
||||
@@ -52,6 +79,21 @@ namespace FineUIPro.Web.Controls
|
||||
}
|
||||
}
|
||||
|
||||
protected void ckLevel_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Level = this.ckLevel.SelectedValue;
|
||||
if (this.trWBS != null && !string.IsNullOrEmpty(this.trWBS.SelectedNodeID))
|
||||
{
|
||||
this.WorkPackageCode = this.trWBS.SelectedNodeID;
|
||||
}
|
||||
////加载树
|
||||
SetSubUnitProjectTree(this.trWBS);
|
||||
if (this.change != null)
|
||||
{
|
||||
this.change(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
public delegate void userEvent(object sender, EventArgs arg);
|
||||
|
||||
public event userEvent change;
|
||||
@@ -153,11 +195,5 @@ namespace FineUIPro.Web.Controls
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void ckState_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
////加载树
|
||||
SetSubUnitProjectTree(this.trWBS);
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -33,13 +33,13 @@ namespace FineUIPro.Web.Controls
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ckState 控件。
|
||||
/// ckLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList ckState;
|
||||
protected global::FineUIPro.RadioButtonList ckLevel;
|
||||
|
||||
/// <summary>
|
||||
/// trWBS 控件。
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CQMSDataDW.aspx.cs"
|
||||
Inherits="FineUIPro.Web.DigData.CQMSDataDW" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>质量数据库</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpProject" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="btSearch_Click" Width="500px"
|
||||
EmptyText="请选择项目" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="开始日期"
|
||||
ID="txtStartTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="结束日期"
|
||||
ID="txtEndTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btSearch_Click"></f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="质量数据库"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" ForceFit="true"
|
||||
AllowSorting="true" SortField="ProjectName" SortDirection="DESC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="ProjectCode" DataField="ProjectCode"
|
||||
FieldType="String" HeaderText="项目号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ProjectName" DataField="ProjectName"
|
||||
FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Rate1" DataField="Rate1"
|
||||
FieldType="String" HeaderText="质量验收问题整改率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Rate2" DataField="Rate2"
|
||||
FieldType="String" HeaderText="控制点完成率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Rate3" DataField="Rate3"
|
||||
FieldType="String" HeaderText="质量检查问题整改率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Rate4" DataField="Rate4"
|
||||
FieldType="String" HeaderText="管道焊接一次合格率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑">
|
||||
</f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
}
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class CQMSDataDW
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HSEDataDW.aspx.cs"
|
||||
Inherits="FineUIPro.Web.DigData.HSEDataDW" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>HSE数据库</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpProject" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="btSearch_Click" Width="500px"
|
||||
EmptyText="请选择项目" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="开始日期"
|
||||
ID="txtStartTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="结束日期"
|
||||
ID="txtEndTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btSearch_Click"></f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSE数据库"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" ForceFit="true"
|
||||
AllowSorting="true" SortField="ProjectName" SortDirection="DESC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True"
|
||||
EnableSummary="true" SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="ProjectCode" DataField="ProjectCode"
|
||||
FieldType="String" HeaderText="项目号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="ProjectName" DataField="ProjectName"
|
||||
FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Count1" DataField="Count1"
|
||||
FieldType="Int" HeaderText="人员数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Count2" DataField="Count2"
|
||||
FieldType="Int" HeaderText="安全人工时" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Count3" DataField="Count3"
|
||||
FieldType="Int" HeaderText="安全培训次数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ProblemRate" DataField="ProblemRate"
|
||||
FieldType="String" HeaderText="安全巡检整改率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑">
|
||||
</f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
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(); ///取合计值
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 计算合计
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
}
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class HSEDataDW
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HTGLDataDW.aspx.cs"
|
||||
Inherits="FineUIPro.Web.DigData.HTGLDataDW" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>合同数据库</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpProject" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="btSearch_Click" Width="500px"
|
||||
EmptyText="请选择项目" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="开始日期"
|
||||
ID="txtStartTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="结束日期"
|
||||
ID="txtEndTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btSearch_Click"></f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="合同数据库"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" ForceFit="true"
|
||||
AllowSorting="true" SortField="ProjectName" SortDirection="DESC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="120px" ColumnID="ProjectCode" DataField="ProjectCode"
|
||||
FieldType="String" HeaderText="项目号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ProjectName" DataField="ProjectName"
|
||||
FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Count1" DataField="Count1"
|
||||
FieldType="Int" HeaderText="项目总体毛利" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑">
|
||||
</f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,137 @@
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
public partial class HTGLDataDW : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
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(); ///取合计值
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 计算合计
|
||||
/// </summary>
|
||||
//private void OutputSummaryData( )
|
||||
//{
|
||||
// int aCount1 = 0;
|
||||
// for (int i = 0; i < Grid1.Rows.Count(); i++)
|
||||
// {
|
||||
// aCount1 += Funs.GetNewIntOrZero(Grid1.Rows[i].Values[3].ToString());
|
||||
// }
|
||||
|
||||
// JObject summary = new JObject
|
||||
// {
|
||||
// { "ProjectName", "合计" },
|
||||
// { "Count1", aCount1.ToString() },
|
||||
// };
|
||||
// Grid1.SummaryData = summary;
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
}
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class HTGLDataDW
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JDGLDataDW.aspx.cs"
|
||||
Inherits="FineUIPro.Web.DigData.JDGLDataDW" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>进度数据库</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpProject" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="btSearch_Click" Width="500px"
|
||||
EmptyText="请选择项目" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="开始日期"
|
||||
ID="txtStartTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" EmptyText="结束日期"
|
||||
ID="txtEndTime" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btSearch_Click"></f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="进度数据库"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" ForceFit="true"
|
||||
AllowSorting="true" SortField="ProjectName" SortDirection="DESC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="ProjectCode" DataField="ProjectCode"
|
||||
FieldType="String" HeaderText="项目号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="ProjectName" DataField="ProjectName"
|
||||
FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="JDRate" DataField="JDRate"
|
||||
FieldType="String" HeaderText="项目进度完成百分比" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑">
|
||||
</f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
}
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class JDGLDataDW
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectDataDW.aspx.cs" Inherits="FineUIPro.Web.DigData.ProjectDataDW" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>项目WBS数据仓库</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="项目数据仓库"
|
||||
TitleToolTip="项目数据仓库" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:CheckBoxList runat="server" ID="ckType" AutoColumnWidth="true"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="ckType_SelectedIndexChanged">
|
||||
<f:CheckItem Value="HSSE" Text="安全数据" />
|
||||
<f:CheckItem Value="CQMS" Text="质量数据" />
|
||||
<f:CheckItem Value="JDGL" Text="进度数据" />
|
||||
<f:CheckItem Value="HTGL" Text="合同数据" />
|
||||
<f:CheckItem Value="LW" Text="劳务数据" />
|
||||
</f:CheckBoxList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:GroupPanel runat="server" ID="gpHSSE" Title="安全数据" Layout="VBox" Hidden="true"
|
||||
Height="150px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbSitePersons" runat="server" Label="人员数量">
|
||||
</f:Label>
|
||||
<f:Label ID="lbWorkHours" runat="server" Label="安全人工时">
|
||||
</f:Label>
|
||||
<f:Label ID="lbEduCount" runat="server" Label="安全培训次数">
|
||||
</f:Label>
|
||||
<f:Label ID="lbRectifyRate" runat="server" Label="安全巡检整改率">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbMeetingCount" runat="server" Label="安全会议次数">
|
||||
</f:Label>
|
||||
<f:Label ID="lbHSECost" runat="server" Label="安全费用投入">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpCQMS" Title="质量数据" Layout="VBox" Hidden="true"
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<%-- <f:Label ID="lbSpotCheck1" runat="server" Label="实体验收共检项数">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheck2" runat="server" Label="实体验收共检一次合格数">
|
||||
</f:Label>--%>
|
||||
<f:Label ID="lbSpotCheckRate" runat="server" Label="质量验收问题整改率">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheckDataRate" runat="server" Label="控制点完成率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label2" runat="server" Label="质量检查问题整改率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label10" runat="server" Label="管道焊接一次合格率">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpJDGL" Title="进度数据" Layout="VBox" Hidden="true"
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbJDRate" runat="server" Label="项目进度完成百分比">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpHTGL" Title="合同数据" Layout="VBox" Hidden="true"
|
||||
Height="200px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label4" runat="server" Label="合同签约价">
|
||||
</f:Label>
|
||||
<f:Label ID="Label1" runat="server" Label="概算">
|
||||
</f:Label>
|
||||
<f:Label ID="Label11" runat="server" Label="单合同毛利">
|
||||
</f:Label>
|
||||
<f:Label ID="Label6" runat="server" Label="项目总体毛利">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label12" runat="server" Label="合同进度百分比">
|
||||
</f:Label>
|
||||
<f:Label ID="Label13" runat="server" Label="工程款支付百分比">
|
||||
</f:Label>
|
||||
<f:Label ID="Label14" runat="server" Label="合同结算价">
|
||||
</f:Label>
|
||||
<f:Label ID="Label15" runat="server" Label="合同变更率">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label16" runat="server" Label="合同签证率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label17" runat="server" Label="日工效统计">
|
||||
</f:Label>
|
||||
<f:Label ID="Label18" runat="server" Label="实际工效投入">
|
||||
</f:Label>
|
||||
<f:Label ID="Label19" runat="server" Label="">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpLW" Title="劳务数据" Layout="VBox" Hidden="true"
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" Label="" LabelWidth="180px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="WBS" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Self" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="1200px" Height="650px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%--var menuID = '<%= Menu1.ClientID %>';--%>
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
// F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,192 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlTypes;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
public partial class ProjectDataDW : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据展示
|
||||
/// </summary>
|
||||
private void SetData()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
foreach (var item in this.ckType.SelectedValueArray)
|
||||
{
|
||||
if (item == "HSSE")
|
||||
{
|
||||
this.gpHSSE.Hidden = false;
|
||||
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;
|
||||
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 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 = 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%";
|
||||
|
||||
}
|
||||
if (item == "HTGL")
|
||||
{
|
||||
this.gpHTGL.Hidden = false;
|
||||
}
|
||||
if (item == "LW")
|
||||
{
|
||||
this.gpLW.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,386 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class ProjectDataDW
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// ckType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBoxList ckType;
|
||||
|
||||
/// <summary>
|
||||
/// gpHSSE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpHSSE;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// lbSitePersons 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSitePersons;
|
||||
|
||||
/// <summary>
|
||||
/// lbWorkHours 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbWorkHours;
|
||||
|
||||
/// <summary>
|
||||
/// lbEduCount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbEduCount;
|
||||
|
||||
/// <summary>
|
||||
/// lbRectifyRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbRectifyRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbMeetingCount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbMeetingCount;
|
||||
|
||||
/// <summary>
|
||||
/// lbHSECost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbHSECost;
|
||||
|
||||
/// <summary>
|
||||
/// gpCQMS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpCQMS;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheckRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheckRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheckDataRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheckDataRate;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Label10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label10;
|
||||
|
||||
/// <summary>
|
||||
/// gpJDGL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpJDGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// lbJDRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbJDRate;
|
||||
|
||||
/// <summary>
|
||||
/// gpHTGL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpHTGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label11;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// Label12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label12;
|
||||
|
||||
/// <summary>
|
||||
/// Label13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label13;
|
||||
|
||||
/// <summary>
|
||||
/// Label14 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label14;
|
||||
|
||||
/// <summary>
|
||||
/// Label15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label15;
|
||||
|
||||
/// <summary>
|
||||
/// Label16 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label16;
|
||||
|
||||
/// <summary>
|
||||
/// Label17 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label17;
|
||||
|
||||
/// <summary>
|
||||
/// Label18 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label18;
|
||||
|
||||
/// <summary>
|
||||
/// Label19 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label19;
|
||||
|
||||
/// <summary>
|
||||
/// gpLW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpLW;
|
||||
|
||||
/// <summary>
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWBSAnalysis.aspx.cs" Inherits="FineUIPro.Web.DigData.ProjectWBSAnalysis" %>
|
||||
|
||||
<%@ Register Src="~/Controls/WBSControl.ascx" TagName="WBSControl" TagPrefix="uc1" %>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>WBS数据分析</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="350" Title="WBS" TitleToolTip="WBS" ShowBorder="true"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:WBSControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||
</f:ContentPanel>
|
||||
<f:TextBox ID="hdWorkPackageCode" runat="server" Hidden="true"></f:TextBox>
|
||||
<f:TextBox ID="hdLevel" runat="server" Hidden="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="WBS数据分析"
|
||||
TitleToolTip="WBS数据分析" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="数据分析"
|
||||
runat="server" BoxFlex="1" DataKeyNames="WorkPackageCode" DataIDField="WorkPackageCode" ForceFit="true"
|
||||
AllowSorting="true" SortField="WorkPackageCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="110px" ColumnID="PackageContent" DataField="PackageContent"
|
||||
FieldType="String" HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Count1" DataField="Count1"
|
||||
FieldType="Int" HeaderText="危大工程数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Count2" DataField="Count2"
|
||||
FieldType="Int" HeaderText="安全事故数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="Count3" DataField="Count3"
|
||||
FieldType="Int" HeaderText="安全巡检问题总数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="Count4" DataField="Count4"
|
||||
FieldType="Int" HeaderText="实体验收一次合格率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="Count5" DataField="Count5"
|
||||
FieldType="Int" HeaderText="施工资料同步率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="Count6" DataField="Count6"
|
||||
FieldType="Int" HeaderText="质量问题数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%--var menuID = '<%= Menu1.ClientID %>';--%>
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
// F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1);
|
||||
Grid1.RecordCount = WBSAnalysisService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class ProjectWBSAnalysis
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.WBSControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// hdWorkPackageCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdWorkPackageCode;
|
||||
|
||||
/// <summary>
|
||||
/// hdLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdLevel;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@
|
||||
</f:Label>
|
||||
<f:Label ID="lbAccident" runat="server" Label="安全事故数量">
|
||||
</f:Label>
|
||||
<f:Label ID="Label3" runat="server" Label="安全巡检问题总数">
|
||||
<f:Label ID="lbHSEProblemCount" runat="server" Label="安全巡检问题总数">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
@@ -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")
|
||||
{
|
||||
|
||||
+2
-2
@@ -159,13 +159,13 @@ namespace FineUIPro.Web.DigData
|
||||
protected global::FineUIPro.Label lbAccident;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// lbHSEProblemCount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
protected global::FineUIPro.Label lbHSEProblemCount;
|
||||
|
||||
/// <summary>
|
||||
/// gpCQMS 控件。
|
||||
|
||||
@@ -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" %>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>WBS数据分析</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="350" Title="WBS" TitleToolTip="WBS" ShowBorder="true"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:WBSControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||
</f:ContentPanel>
|
||||
<f:TextBox ID="hdWorkPackageCode" runat="server" Hidden="true"></f:TextBox>
|
||||
<f:TextBox ID="hdLevel" runat="server" Hidden="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="WBS数据分析"
|
||||
TitleToolTip="WBS数据分析" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="数据分析"
|
||||
runat="server" BoxFlex="1" DataKeyNames="WorkPackageCode" DataIDField="WorkPackageCode" ForceFit="true"
|
||||
AllowSorting="true" SortField="WorkPackageCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowCellEditing="true"
|
||||
EnableColumnLines="true" AllowPaging="false" PageSize="20" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="110px" ColumnID="PackageContent" DataField="PackageContent"
|
||||
FieldType="String" HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Count1" DataField="Count1"
|
||||
FieldType="Int" HeaderText="危大工程数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Count2" DataField="Count2"
|
||||
FieldType="Int" HeaderText="安全事故数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="Count3" DataField="Count3"
|
||||
FieldType="Int" HeaderText="安全巡检问题总数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="Count4" DataField="Count4"
|
||||
FieldType="Int" HeaderText="实体验收一次合格率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="Count5" DataField="Count5"
|
||||
FieldType="Int" HeaderText="施工资料同步率" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="Count6" DataField="Count6"
|
||||
FieldType="Int" HeaderText="质量问题数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%--var menuID = '<%= Menu1.ClientID %>';--%>
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
// F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// <summary>
|
||||
/// 绑定数据Grid1
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1);
|
||||
Grid1.RecordCount = WBSAnalysisService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 改变索引事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
|
||||
|
||||
public partial class WBSAnalysis
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.WBSControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// hdWorkPackageCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdWorkPackageCode;
|
||||
|
||||
/// <summary>
|
||||
/// hdLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdLevel;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/29/2021 10:56:08" ReportInfo.Modified="06/29/2023 17:42:46" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/29/2021 10:56:08" ReportInfo.Modified="09/07/2023 16:31:45" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -89,7 +89,7 @@ namespace FastReport
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRFlrkaEt00MIgAr8gX5JbSr">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRE3tB+HA6hG9IKF+MBymee2">
|
||||
<TableDataSource Name="Table1" Alias="Head" DataType="System.Int32" Enabled="true" SelectCommand="select * from CH_Trust where CH_TrustID=@CH_TrustID">
|
||||
<Column Name="CH_TrustID" DataType="System.String"/>
|
||||
<Column Name="CH_TrustCode" DataType="System.String"/>
|
||||
|
||||
@@ -0,0 +1,344 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/29/2021 10:56:08" ReportInfo.Modified="09/07/2023 16:37:58" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRGRimlRRNsAVGXGMeiv1H1L">
|
||||
<TableDataSource Name="Table1" Alias="Head" DataType="System.Int32" Enabled="true" SelectCommand="select * from CH_Trust where CH_TrustID=@CH_TrustID">
|
||||
<Column Name="CH_TrustID" DataType="System.String"/>
|
||||
<Column Name="CH_TrustCode" DataType="System.String"/>
|
||||
<Column Name="CH_TrustUnit" DataType="System.String"/>
|
||||
<Column Name="CH_TrustDate" DataType="System.DateTime"/>
|
||||
<Column Name="CH_TrustType" DataType="System.String"/>
|
||||
<Column Name="CH_TrustMan" DataType="System.String"/>
|
||||
<Column Name="CH_Tabler" DataType="System.String"/>
|
||||
<Column Name="CH_TableDate" DataType="System.DateTime"/>
|
||||
<Column Name="CH_AuditMan" DataType="System.String"/>
|
||||
<Column Name="CH_AuditDate" DataType="System.DateTime"/>
|
||||
<Column Name="CH_Printer" DataType="System.String"/>
|
||||
<Column Name="CH_PrintDate" DataType="System.DateTime"/>
|
||||
<Column Name="CH_UnitName" DataType="System.String"/>
|
||||
<Column Name="CH_WorkNo" DataType="System.String"/>
|
||||
<Column Name="CH_ItemName" DataType="System.String"/>
|
||||
<Column Name="CH_SlopeType" DataType="System.String"/>
|
||||
<Column Name="CH_ServiceTemp" DataType="System.String"/>
|
||||
<Column Name="CH_Press" DataType="System.String"/>
|
||||
<Column Name="CH_WeldMethod" DataType="System.String"/>
|
||||
<Column Name="CH_NDTRate" DataType="System.String"/>
|
||||
<Column Name="CH_NDTMethod" DataType="System.String"/>
|
||||
<Column Name="CH_NDTCriteria" DataType="System.String"/>
|
||||
<Column Name="CH_AcceptGrade" DataType="System.String"/>
|
||||
<Column Name="CH_Remark" DataType="System.String"/>
|
||||
<Column Name="CH_CheckUnit" DataType="System.String"/>
|
||||
<Column Name="ProjectId" DataType="System.String"/>
|
||||
<Column Name="InstallationId" DataType="System.String"/>
|
||||
<Column Name="CH_RequestDate" DataType="System.DateTime"/>
|
||||
<Column Name="ToIso_Id" DataType="System.String"/>
|
||||
<CommandParameter Name="CH_TrustID" DataType="22" Expression="[CH_TrustID]"/>
|
||||
</TableDataSource>
|
||||
<TableDataSource Name="Table3" Alias="Data" DataType="System.Int32" Enabled="true" SelectCommand=" SELECT batch.PipelineCode ,batch.WeldJointCode,batch.WelderCode,joint.Specification , joint.MaterialCode,joint.Remark FROM dbo.View_Batch_BatchTrustItem as batch left join View_HJGL_WeldJoint joint on batch .WeldJointId=joint.WeldJointId where batch.TrustBatchId=@TrustBatchId">
|
||||
<Column Name="Remark" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
||||
<Column Name="PipelineCode" DataType="System.String"/>
|
||||
<Column Name="WeldJointCode" DataType="System.String"/>
|
||||
<Column Name="WelderCode" DataType="System.String"/>
|
||||
<Column Name="Specification" DataType="System.String"/>
|
||||
<Column Name="MaterialCode" DataType="System.String"/>
|
||||
<CommandParameter Name="TrustBatchId" DataType="12" Expression="[TrustBatchId]"/>
|
||||
</TableDataSource>
|
||||
</MsSqlDataConnection>
|
||||
<TableDataSource Name="Table1" ReferenceName="Table1" DataType="System.Int32" Enabled="true">
|
||||
<Column Name="CH_TrustCode" DataType="System.String"/>
|
||||
<Column Name="CH_TrustUnit" DataType="System.String"/>
|
||||
<Column Name="CH_TrustMan" DataType="System.String"/>
|
||||
<Column Name="CH_SlopeType" DataType="System.String"/>
|
||||
<Column Name="CH_WeldMethod" DataType="System.String"/>
|
||||
<Column Name="CH_NDTRate" DataType="System.String"/>
|
||||
<Column Name="CH_NDTMethod" DataType="System.String"/>
|
||||
<Column Name="CH_NDTCriteria" DataType="System.String"/>
|
||||
<Column Name="CH_AcceptGrade" DataType="System.String"/>
|
||||
<Column Name="CH_CheckUnit" DataType="System.String"/>
|
||||
<Column Name="ProjectName" DataType="System.String" PropName="ProjectId"/>
|
||||
<Column Name="WorkAreaName" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="WorkAreaCode" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="Column" DataType="System.Int32" Calculated="true" Expression=""/>
|
||||
<Column Name="Column1" DataType="System.Int32" Calculated="true" Expression=""/>
|
||||
<Column Name="Column2" DataType="System.Int32" Calculated="true" Expression=""/>
|
||||
<Column Name="Column3" DataType="System.Int32" Calculated="true" Expression=""/>
|
||||
</TableDataSource>
|
||||
<TableDataSource Name="Data" Alias="Dataaaa" ReferenceName="Data.Data" DataType="System.Int32" Enabled="true">
|
||||
<Column Name="CH_TrustID" DataType="System.String"/>
|
||||
<Column Name="ISO_IsoNo" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
||||
<Column Name="ISO_IsoNumber" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
||||
<Column Name="JOT_JointNo" DataType="System.Int32" PropName="Column1" Calculated="true" Expression=""/>
|
||||
<Column Name="WED_Code2" DataType="System.Int32" PropName="Column2" Calculated="true" Expression=""/>
|
||||
<Column Name="JOT_JointDesc" DataType="System.Int32" PropName="Column3" Calculated="true" Expression=""/>
|
||||
<Column Name="STE_Name1" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
||||
<Column Name="Remark" DataType="System.Int32" PropName="Column1" Calculated="true" Expression=""/>
|
||||
</TableDataSource>
|
||||
<Parameter Name="CH_TrustID" DataType="System.String"/>
|
||||
<Parameter Name="supUnit" DataType="System.String"/>
|
||||
<Parameter Name="totalUnit" DataType="System.String"/>
|
||||
<Parameter Name="ConUnit" DataType="System.String"/>
|
||||
<Parameter Name="CheckUnit" DataType="System.String"/>
|
||||
<Parameter Name="TrustBatchId" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" Guides="75.6">
|
||||
<PageHeaderBand Name="PageHeader1" Width="718.2" Height="283.5">
|
||||
<TableObject Name="Table4" Left="18.9" Top="37.8" Width="699.25" Height="246.02" ManualBuildEvent="Table4_ManualBuild">
|
||||
<TableColumn Name="Column13" Width="94.73"/>
|
||||
<TableColumn Name="Column14" Width="94.73"/>
|
||||
<TableColumn Name="Column15" Width="75.83"/>
|
||||
<TableColumn Name="Column16" Width="94.73"/>
|
||||
<TableColumn Name="Column17" Width="94.73"/>
|
||||
<TableColumn Name="Column18" Width="72.05"/>
|
||||
<TableColumn Name="Column19" Width="72.05"/>
|
||||
<TableColumn Name="Column20" Width="100.4"/>
|
||||
<TableRow Name="Row14" Height="64.64">
|
||||
<TableCell Name="Cell81" Border.Lines="All" Text="SH/T 3543-G414" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell82" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell83" Border.Lines="All" Text="管道焊口检测委托单" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="4" RowSpan="2"/>
|
||||
<TableCell Name="Cell84" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell85" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell86" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell87" Border.Lines="All" Text="工程名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell88" Border.Lines="All" Text="[Table1.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="宋体, 8pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row13" Height="43.78">
|
||||
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell79" Border.Lines="All" Text="单位工程名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell80" Border.Lines="All" Text="[Table1.WorkAreaName]" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="34.4">
|
||||
<TableCell Name="Cell33" Border.Lines="All" Text="检测单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" Text="[Table1.CH_CheckUnit]" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" Text="接收人" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Text="[Table1.CH_TrustMan]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="委托单号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell63" Border.Lines="All" Text="[Table1.CH_TrustCode]" HorzAlign="Center" VertAlign="Center" Font="宋体, 8pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="34.4">
|
||||
<TableCell Name="Cell38" Border.Lines="All" Text="区号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell39" Border.Lines="All" Text="[Table1.WorkAreaCode]" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" Text="检测时机" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" Text="焊后" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="检测标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell64" Border.Lines="All" Text="[Table1.CH_NDTCriteria]" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell69" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="34.4">
|
||||
<TableCell Name="Cell43" Border.Lines="All" Text="检测类别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell46" Border.Lines="All" Text="焊接方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell47" Border.Lines="All" Text="[Table1.CH_WeldMethod]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell60" Border.Lines="All" Text="合格级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="All" Text="[Table1.CH_AcceptGrade]" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row11" Height="34.4">
|
||||
<TableCell Name="Cell48" Border.Lines="All" Text="检测方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" Text="[Table1.CH_NDTMethod]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell50" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell51" Border.Lines="All" Text="坡口形式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" Text="[Table1.CH_SlopeType]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell61" Border.Lines="All" Text="检测比例" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All" Text="[Table1.CH_NDTRate]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="287.35" Width="718.2" Height="71.82">
|
||||
<TableObject Name="Tabel_Data" Left="18.9" Width="699.18" Height="71.82" Border.Lines="Top" ManualBuildEvent="Tabel_Data_ManualBuild">
|
||||
<TableColumn Name="Column21" Width="69.91"/>
|
||||
<TableColumn Name="Column22" Width="117.16"/>
|
||||
<TableColumn Name="Column23" Width="0"/>
|
||||
<TableColumn Name="Column24" Width="158.76"/>
|
||||
<TableColumn Name="Column25" Width="107.71"/>
|
||||
<TableColumn Name="Column26" Width="85.03"/>
|
||||
<TableColumn Name="Column27" Width="85.03"/>
|
||||
<TableColumn Name="Column28" Width="75.58"/>
|
||||
<TableRow Name="Row30" Height="22.68">
|
||||
<TableCell Name="Cell229" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell230" Border.Lines="All" Text="管道编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell231" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell232" Border.Lines="All" Text="焊口号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell233" Border.Lines="All" Text="焊工号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell234" Border.Lines="All" Text="焊口规格" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell235" Border.Lines="All" Text="焊口材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell236" Border.Lines="All" Text="备注" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row21" Height="49.14">
|
||||
<TableCell Name="Cell137" Border.Lines="All" Text="[x]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.PipelineCode]" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell139" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.WeldJointCode]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.WelderCode]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.Specification]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.MaterialCode]" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.Remark]" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<DataFooterBand Name="DataFooter1" Top="416" Width="718.2">
|
||||
<ChildBand Name="Child2" Top="363.01" Width="718.2" Height="49.14" FillUnusedSpace="true">
|
||||
<TableObject Name="Table6" Left="18.9" Width="699.18" Height="49.14" Border.Lines="Top">
|
||||
<TableColumn Name="Column53" Width="69.91"/>
|
||||
<TableColumn Name="Column54" Width="117.16"/>
|
||||
<TableColumn Name="Column55" Width="0"/>
|
||||
<TableColumn Name="Column56" Width="158.76"/>
|
||||
<TableColumn Name="Column57" Width="107.71"/>
|
||||
<TableColumn Name="Column58" Width="85.03"/>
|
||||
<TableColumn Name="Column59" Width="85.03"/>
|
||||
<TableColumn Name="Column60" Width="75.58"/>
|
||||
<TableRow Name="Row29" Height="49.14">
|
||||
<TableCell Name="Cell221" Border.Lines="All"/>
|
||||
<TableCell Name="Cell222" Border.Lines="All" ColSpan="2"/>
|
||||
<TableCell Name="Cell223" Border.Lines="All"/>
|
||||
<TableCell Name="Cell224" Border.Lines="All"/>
|
||||
<TableCell Name="Cell225" Border.Lines="All"/>
|
||||
<TableCell Name="Cell226" Border.Lines="All"/>
|
||||
<TableCell Name="Cell227" Border.Lines="All"/>
|
||||
<TableCell Name="Cell228" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</DataFooterBand>
|
||||
</DataBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="419.84" Width="718.2" Height="181.43">
|
||||
<TableObject Name="Table5" Left="18.9" Width="699.21" Height="135.6" Border.Lines="All" RepeatHeaders="false">
|
||||
<TableColumn Name="Column37" Width="99.45"/>
|
||||
<TableColumn Name="Column38" Width="90"/>
|
||||
<TableColumn Name="Column39" Width="99.45"/>
|
||||
<TableColumn Name="Column40" Width="71.1"/>
|
||||
<TableColumn Name="Column41" Width="99.45"/>
|
||||
<TableColumn Name="Column42" Width="67.32"/>
|
||||
<TableColumn Name="Column43" Width="76.77"/>
|
||||
<TableColumn Name="Column44" Width="95.67"/>
|
||||
<TableRow Name="Row24" Height="43.94">
|
||||
<TableCell Name="Cell161" Border.Lines="Left, Right" Text=" 建设单位: " Font="宋体, 10pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell162" Border.Lines="Left, Right, Top" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell163" Border.Lines="Left, Right" Text=" 监理单位: " Font="宋体, 10pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell164" Border.Lines="Left, Right, Top" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell165" Border.Lines="Left, Right" Text=" 总包单位: " Font="宋体, 10pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell166" Border.Lines="Left, Right, Top" Font="宋体, 10pt"/>
|
||||
<TableCell Name="Cell167" Border.Lines="Left, Right" Text=" 施工单位: " Font="宋体, 10pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell168" Border.Lines="Left, Right, Top" Font="宋体, 10pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row25" Height="45.83">
|
||||
<TableCell Name="Cell169" Border.Lines="All"/>
|
||||
<TableCell Name="Cell170" Border.Lines="All"/>
|
||||
<TableCell Name="Cell171" Border.Lines="All"/>
|
||||
<TableCell Name="Cell172" Border.Lines="All"/>
|
||||
<TableCell Name="Cell173" Border.Lines="All"/>
|
||||
<TableCell Name="Cell174" Border.Lines="All"/>
|
||||
<TableCell Name="Cell175" Border.Lines="All"/>
|
||||
<TableCell Name="Cell176" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row27" Height="45.83">
|
||||
<TableCell Name="Cell185" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" ColSpan="2"/>
|
||||
<TableCell Name="Cell186" Border.Lines="All"/>
|
||||
<TableCell Name="Cell187" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" ColSpan="2"/>
|
||||
<TableCell Name="Cell188" Border.Lines="All"/>
|
||||
<TableCell Name="Cell189" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" ColSpan="2"/>
|
||||
<TableCell Name="Cell190" Border.Lines="All"/>
|
||||
<TableCell Name="Cell191" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" ColSpan="2"/>
|
||||
<TableCell Name="Cell192" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child1" Top="605.12" Width="718.2" Height="17.77" PrintOnBottom="true"/>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
File diff suppressed because one or more lines are too long
@@ -525,6 +525,11 @@
|
||||
<Content Include="DataShow\SecurityRiskItem.aspx" />
|
||||
<Content Include="DataShow\WorkingHours.aspx" />
|
||||
<Content Include="DataShow\WorkingHoursItem.aspx" />
|
||||
<Content Include="DigData\CQMSDataDW.aspx" />
|
||||
<Content Include="DigData\HSEDataDW.aspx" />
|
||||
<Content Include="DigData\HTGLDataDW.aspx" />
|
||||
<Content Include="DigData\JDGLDataDW.aspx" />
|
||||
<Content Include="DigData\ProjectDataDW.aspx" />
|
||||
<Content Include="DigData\ShowProjectWBS.aspx" />
|
||||
<Content Include="DigData\ProjectWBSDW.aspx" />
|
||||
<Content Include="DigData\ShowProjectWBSPackage.aspx" />
|
||||
@@ -532,6 +537,8 @@
|
||||
<Content Include="DigData\RectifyProblemAnalysis.aspx" />
|
||||
<Content Include="DigData\DailyProblemAnalysis.aspx" />
|
||||
<Content Include="DigData\HSEDataCollect.aspx" />
|
||||
<Content Include="DigData\ProjectWBSAnalysis.aspx" />
|
||||
<Content Include="DigData\WBSAnalysis.aspx" />
|
||||
<Content Include="DigData\WBSDW.aspx" />
|
||||
<Content Include="FakesAssemblies\Apache.NMS.Fakes.dll" />
|
||||
<Content Include="FakesAssemblies\Apache.NMS.Fakes.xml" />
|
||||
@@ -7605,6 +7612,41 @@
|
||||
<Compile Include="DataShow\WorkingHoursItem.aspx.designer.cs">
|
||||
<DependentUpon>WorkingHoursItem.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\CQMSDataDW.aspx.cs">
|
||||
<DependentUpon>CQMSDataDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\CQMSDataDW.aspx.designer.cs">
|
||||
<DependentUpon>CQMSDataDW.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\HSEDataDW.aspx.cs">
|
||||
<DependentUpon>HSEDataDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\HSEDataDW.aspx.designer.cs">
|
||||
<DependentUpon>HSEDataDW.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\HTGLDataDW.aspx.cs">
|
||||
<DependentUpon>HTGLDataDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\HTGLDataDW.aspx.designer.cs">
|
||||
<DependentUpon>HTGLDataDW.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\JDGLDataDW.aspx.cs">
|
||||
<DependentUpon>JDGLDataDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\JDGLDataDW.aspx.designer.cs">
|
||||
<DependentUpon>JDGLDataDW.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\ProjectDataDW.aspx.cs">
|
||||
<DependentUpon>ProjectDataDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\ProjectDataDW.aspx.designer.cs">
|
||||
<DependentUpon>ProjectDataDW.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\ShowProjectWBS.aspx.cs">
|
||||
<DependentUpon>ShowProjectWBS.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -7654,6 +7696,20 @@
|
||||
<Compile Include="DigData\HSEDataCollect.aspx.designer.cs">
|
||||
<DependentUpon>HSEDataCollect.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\ProjectWBSAnalysis.aspx.cs">
|
||||
<DependentUpon>ProjectWBSAnalysis.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\ProjectWBSAnalysis.aspx.designer.cs">
|
||||
<DependentUpon>ProjectWBSAnalysis.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\WBSAnalysis.aspx.cs">
|
||||
<DependentUpon>WBSAnalysis.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DigData\WBSAnalysis.aspx.designer.cs">
|
||||
<DependentUpon>WBSAnalysis.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\WBSDW.aspx.cs">
|
||||
<DependentUpon>WBSDW.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -10389,7 +10445,6 @@
|
||||
</Compile>
|
||||
<Compile Include="HSSE\InformationProject\EPSummaryReport.aspx.cs">
|
||||
<DependentUpon>EPSummaryReport.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\InformationProject\EPSummaryReport.aspx.designer.cs">
|
||||
<DependentUpon>EPSummaryReport.aspx</DependentUpon>
|
||||
@@ -14161,7 +14216,7 @@
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:8797/</IISUrl>
|
||||
<IISUrl>http://localhost:6422/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)));
|
||||
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加焊口信息
|
||||
/// </summary>
|
||||
@@ -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)
|
||||
|
||||
@@ -170,6 +170,11 @@
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="1050px" Height="650px">
|
||||
</f:Window>
|
||||
|
||||
<f:Window ID="Window2" Title="打印" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="1010px" Height="660px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
function reloadGrid() {
|
||||
|
||||
@@ -3,6 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
@@ -445,6 +446,122 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataTable dt = new DataTable("Table1");
|
||||
dt.Columns.Add("ProjectName", typeof(String));
|
||||
dt.Columns.Add("CH_CheckUnit", typeof(String));
|
||||
dt.Columns.Add("WorkAreaName", typeof(String));
|
||||
dt.Columns.Add("CH_TrustUnit", typeof(String));
|
||||
dt.Columns.Add("CH_TrustMan", typeof(String));
|
||||
dt.Columns.Add("CH_TrustCode", typeof(String));
|
||||
dt.Columns.Add("WorkAreaCode", typeof(String));
|
||||
dt.Columns.Add("CH_NDTCriteria", typeof(String));
|
||||
dt.Columns.Add("CH_WeldMethod", typeof(String));
|
||||
dt.Columns.Add("CH_AcceptGrade", typeof(String));
|
||||
dt.Columns.Add("CH_NDTMethod", typeof(String));
|
||||
dt.Columns.Add("CH_SlopeType", typeof(String));
|
||||
dt.Columns.Add("CH_NDTRate", typeof(String));
|
||||
|
||||
|
||||
|
||||
DataRow dr = dt.NewRow();
|
||||
if (this.tvControlItem.SelectedNode == null)
|
||||
{
|
||||
Alert.ShowInTop("请选择要打印的委托单!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string reportId = this.tvControlItem.SelectedNode.NodeID;
|
||||
// Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(this.tvControlItem.SelectedNodeID);
|
||||
// Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(this.tvControlItem.SelectedNodeID);
|
||||
|
||||
// var trust = BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(reportId);
|
||||
var trust = BLL.Batch_BatchTrustService.GetBatchTrustViewById(this.tvControlItem.SelectedNodeID);
|
||||
if (trust != null)
|
||||
{
|
||||
string varValue = string.Empty;
|
||||
var projectName = BLL.ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
|
||||
|
||||
dr["ProjectName"] = projectName;
|
||||
if (!string.IsNullOrEmpty(trust.NDEUnit))
|
||||
{
|
||||
dr["CH_CheckUnit"] = BLL.UnitService.GetUnitNameByUnitId(trust.NDEUnit).ToString();
|
||||
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(trust.TrustBatchCode))
|
||||
{
|
||||
dr["CH_TrustCode"] = trust.TrustBatchCode;
|
||||
|
||||
}
|
||||
/* if (!string.IsNullOrEmpty(trust.CH_NDTCriteria))
|
||||
{
|
||||
dr["CH_NDTCriteria"] = trust.CH_NDTCriteria;
|
||||
}*/
|
||||
if (!string.IsNullOrEmpty(trust.DetectionTypeCode))
|
||||
{
|
||||
dr["CH_NDTMethod"] = trust.DetectionTypeCode;
|
||||
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(trust.DetectionRateId))
|
||||
{
|
||||
var list = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(trust.DetectionRateId);
|
||||
if (list != null)
|
||||
{
|
||||
dr["CH_NDTRate"] = list.DetectionRateCode;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var PworkArea = Funs.DB.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == trust.UnitWorkId);
|
||||
if (PworkArea != null)
|
||||
{
|
||||
//var cel = recordSheet.GetRow(3).CreateCell(1);
|
||||
//cel.SetCellValue(PworkArea.WorkAreaCode);
|
||||
//cel.CellStyle = styleCenter;
|
||||
dr["WorkAreaName"] = PworkArea.UnitWorkName;
|
||||
dr["WorkAreaCode"] = PworkArea.UnitWorkCode;
|
||||
|
||||
}
|
||||
dt.Rows.Add(dr);
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("TrustBatchId", trust.TrustBatchId);
|
||||
keyValuePairs.Add("totalUnit", "赛鼎工程有限公司");
|
||||
var unitcheck = Funs.DB.Project_ProjectUnit.FirstOrDefault(x => x.ProjectId == trust.ProjectId && x.UnitType == Const.ProjectUnitType_3);
|
||||
if (unitcheck != null && !string.IsNullOrEmpty(unitcheck.UnitId))
|
||||
{
|
||||
keyValuePairs.Add("supUnit", BLL.UnitService.GetUnitNameByUnitId(unitcheck.UnitId).ToString());
|
||||
}
|
||||
|
||||
|
||||
BLL.FastReportService.ResetData();
|
||||
BLL.FastReportService.AddFastreportTable(dt);
|
||||
BLL.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
|
||||
// Session["Table"] = dt;
|
||||
// Session["CH_TrustID"] = reportId;
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
initTemplatePath = "File\\Fastreport\\管道焊口返修委托单NoPic.frx";
|
||||
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择要打印的委托单!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
@@ -480,6 +597,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand
|
||||
// return;
|
||||
//}
|
||||
}
|
||||
*/
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.RepairAndExpand {
|
||||
namespace FineUIPro.Web.HJGL.RepairAndExpand
|
||||
{
|
||||
|
||||
|
||||
public partial class RepairTrust {
|
||||
public partial class RepairTrust
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
@@ -263,5 +265,14 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -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<SqlParameter> listStr = new List<SqlParameter>();
|
||||
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);//自动组批
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1033,15 +856,13 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <param name="weldingDailyId"></param>
|
||||
///
|
||||
/// <returns></returns>
|
||||
private string DeleteWeldingDailyItem(string weldJointId)
|
||||
{
|
||||
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))
|
||||
{
|
||||
@@ -1062,7 +883,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 +891,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
if (pointBatchId != null && batch.Count() == 0)
|
||||
{
|
||||
BLL.PointBatchService.DeleteBatch(pointBatchId);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,17 +3,25 @@
|
||||
<TreeNode id="FF0D9166-4509-4411-8039-F035BC251114" Text="数据仓库" NavigateUrl="">
|
||||
<TreeNode id="0E9C6A47-E410-43C4-95D1-1EC1C01E9967" Text="WBS数据仓库" NavigateUrl="DigData/WBSDW.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="92B50285-30BD-4B62-9E23-A0D6B4BA1577" Text="项目数据仓库" NavigateUrl=""><TreeNode id="AA670914-6EAA-4CFA-8BD6-E0648F8FD21C" Text="安全数据库" NavigateUrl=""><TreeNode id="04B182E4-D31E-449F-9803-322F3F380D89" Text="HSE日常检查问题分析" NavigateUrl="DigData/DailyProblemAnalysis.aspx"></TreeNode>
|
||||
<TreeNode id="92B50285-30BD-4B62-9E23-A0D6B4BA1577" Text="项目数据仓库" NavigateUrl=""><TreeNode id="AA670914-6EAA-4CFA-8BD6-E0648F8FD21C" Text="安全数据库" NavigateUrl=""><TreeNode id="E1ABD1B1-1563-433A-972B-555076A96D06" Text="安全数据仓库" NavigateUrl="DigData/HSEDataDW.aspx"></TreeNode>
|
||||
<TreeNode id="04B182E4-D31E-449F-9803-322F3F380D89" Text="HSE日常检查问题分析" NavigateUrl="DigData/DailyProblemAnalysis.aspx"></TreeNode>
|
||||
<TreeNode id="24939ABD-E174-4C3D-8B04-494917B7BE40" Text="HSE隐患整改问题分析" NavigateUrl="DigData/RectifyProblemAnalysis.aspx"></TreeNode>
|
||||
<TreeNode id="4B2E7EE5-AC7C-4143-B5BC-60080C763A24" Text="HSE教育培训统计" NavigateUrl="DigData/TrainRecordAnalysis.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="7EC74F30-B2F7-454E-B0AE-8E993211F763" Text="质量数据库" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="E7F7BC38-7357-49C0-9242-68289031F618" Text="进度数据库" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="381A4608-2CDE-42AF-BC4D-FF554785B9F8" Text="合同数据库" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="7EC74F30-B2F7-454E-B0AE-8E993211F763" Text="质量数据库" NavigateUrl=""><TreeNode id="15D01AB6-F959-4ABD-B861-C5C2EE6FA906" Text="质量数据库" NavigateUrl="DigData/CQMSDataDW.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="E7F7BC38-7357-49C0-9242-68289031F618" Text="进度数据库" NavigateUrl=""><TreeNode id="44D51E89-267D-4D72-AB6D-1F4CA4E7D19D" Text="进度数据库" NavigateUrl="DigData/JDGLDataDW.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="381A4608-2CDE-42AF-BC4D-FF554785B9F8" Text="合同数据库" NavigateUrl=""><TreeNode id="ABC4323E-2F6F-4147-AA7A-8726131D7044" Text="合同数据库" NavigateUrl="DigData/HTGLDataDW.aspx"></TreeNode>
|
||||
<TreeNode id="A20E2443-A118-4C67-9084-FFEB685CA539" Text="清单子目使用率及价格走势图" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="6D1F3A3F-EFD1-420A-87E7-8CFAEF971165" Text="日工效统计" NavigateUrl=""></TreeNode>
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE" Text="数据分析室" NavigateUrl=""><TreeNode id="CFEF47C0-8EFA-46FF-8648-5B1922519DCC" Text="WBS数据分析" NavigateUrl=""></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE" Text="数据分析室" NavigateUrl=""><TreeNode id="CFEF47C0-8EFA-46FF-8648-5B1922519DCC" Text="WBS数据分析" NavigateUrl="DigData/WBSAnalysis.aspx"></TreeNode>
|
||||
<TreeNode id="B146FC96-B199-426B-8504-4BE093C0DCB1" Text="项目数据汇总分析" NavigateUrl=""><TreeNode id="427AB060-2510-4568-B85B-AD6796EBE569" Text="项目HSE数据汇总" NavigateUrl="DigData/HSEDataCollect.aspx"></TreeNode>
|
||||
<TreeNode id="DD960B76-1F33-468B-9FEF-76328235C079" Text="项目质量数据汇总" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="A705738B-D0A2-41D2-A01A-18774B5AED49" Text="项目施工数据汇总" NavigateUrl=""></TreeNode>
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
||||
@@ -2,11 +2,7 @@
|
||||
<Tree>
|
||||
<TreeNode id="5704B651-2172-45D3-8206-448612C5BA11" Text="WBS数据仓库" NavigateUrl="DigData/ProjectWBSDW.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC" Text="项目数据仓库" NavigateUrl=""><TreeNode id="4911D344-3182-4B46-B01F-B10DB058E550" Text="安全数据" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="4F7C556C-DAC1-4BC4-BCF6-1B401F771204" Text="质量数据" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="D01D3916-743A-4F97-9ADB-815712A89FAC" Text="进度数据" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="0443E704-45F4-40BE-8069-13E5554F5700" Text="合同数据" NavigateUrl=""></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="D9252E0B-3956-473A-8ECC-12C0933469C3" Text="数据分析室" NavigateUrl=""><TreeNode id="B6C1706F-685D-4BAF-B8F7-99C9561C8F5B" Text="WBS数据分析" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="775A5D3C-CB1C-4EC8-A7E1-F4FCD77E85DC" Text="项目数据仓库" NavigateUrl="DigData/ProjectDataDW.aspx"></TreeNode>
|
||||
<TreeNode id="D9252E0B-3956-473A-8ECC-12C0933469C3" Text="数据分析室" NavigateUrl=""><TreeNode id="B6C1706F-685D-4BAF-B8F7-99C9561C8F5B" Text="WBS数据分析" NavigateUrl="DigData/ProjectWBSAnalysis.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user