临时用电方案、企业大检查
This commit is contained in:
parent
170f26497c
commit
26122b9376
|
|
@ -0,0 +1,142 @@
|
||||||
|
-- auto-generated definition
|
||||||
|
create table dbo.Supervise_UnitHazardRegister
|
||||||
|
(
|
||||||
|
UnitHazardRegisterId nvarchar(50) not null
|
||||||
|
primary key,
|
||||||
|
UnitHazardRegisterCode nvarchar(50) not null,
|
||||||
|
CheckDate datetime,
|
||||||
|
CheckMainType nvarchar(2),
|
||||||
|
CheckType nvarchar(50),
|
||||||
|
ProjectId nvarchar(50)
|
||||||
|
constraint FK_UnitHazardRegister_Project
|
||||||
|
references dbo.Base_Project,
|
||||||
|
UnitId nvarchar(50)
|
||||||
|
constraint FK_UnitHazardRegister_Unit
|
||||||
|
references dbo.Base_Unit,
|
||||||
|
CheckObjectId nvarchar(200),
|
||||||
|
CheckUnitId nvarchar(50)
|
||||||
|
constraint FK_UnitHazardRegister_CheckUnit
|
||||||
|
references dbo.Base_Unit,
|
||||||
|
CheckTeam nvarchar(200),
|
||||||
|
CheckManIds nvarchar(max),
|
||||||
|
CheckManNames nvarchar(max),
|
||||||
|
EvaluationResult nvarchar(max),
|
||||||
|
AttachUrl nvarchar(2000),
|
||||||
|
States int default 0,
|
||||||
|
CompileMan nvarchar(50),
|
||||||
|
CreateDate datetime,
|
||||||
|
UpdateDate datetime,
|
||||||
|
IsUpdate bit
|
||||||
|
)
|
||||||
|
go
|
||||||
|
|
||||||
|
create index IX_UnitHazardRegister_CheckDate
|
||||||
|
on dbo.Supervise_UnitHazardRegister (CheckDate desc)
|
||||||
|
go
|
||||||
|
|
||||||
|
create index IX_UnitHazardRegister_CheckMainType
|
||||||
|
on dbo.Supervise_UnitHazardRegister (CheckMainType)
|
||||||
|
go
|
||||||
|
|
||||||
|
create index IX_UnitHazardRegister_ProjectId
|
||||||
|
on dbo.Supervise_UnitHazardRegister (ProjectId)
|
||||||
|
go
|
||||||
|
|
||||||
|
-- auto-generated definition
|
||||||
|
create table dbo.Supervise_UnitHazardRegisterItem
|
||||||
|
(
|
||||||
|
UnitHazardRegisterItemId nvarchar(50) not null
|
||||||
|
primary key,
|
||||||
|
UnitHazardRegisterId nvarchar(50) not null
|
||||||
|
constraint FK_UnitHazardRegisterItem_Register
|
||||||
|
references dbo.Supervise_UnitHazardRegister
|
||||||
|
on delete cascade,
|
||||||
|
ProblemDescription nvarchar(max),
|
||||||
|
ProblemType nvarchar(50),
|
||||||
|
RiskLevel nvarchar(50),
|
||||||
|
RectifyRequirement nvarchar(max),
|
||||||
|
CompleteStatus int default 0,
|
||||||
|
CompletedDate datetime,
|
||||||
|
SortIndex int default 0,
|
||||||
|
RectificationMeasures nvarchar(100),
|
||||||
|
IsUpdate bit
|
||||||
|
)
|
||||||
|
go
|
||||||
|
|
||||||
|
create index IX_UnitHazardRegisterItem_RegisterId
|
||||||
|
on dbo.Supervise_UnitHazardRegisterItem (UnitHazardRegisterId)
|
||||||
|
go
|
||||||
|
|
||||||
|
/***************
|
||||||
|
|
||||||
|
delete Sys_Menu where MenuId='C46C007E-A100-4A52-9317-3B885442E130'
|
||||||
|
delete Sys_Menu where MenuId='73283863-CF67-44CA-9DF8-67071734A528'
|
||||||
|
delete Sys_Menu where MenuId='73283863-CF67-44CA-9DF8-67071734A529'
|
||||||
|
delete Sys_Menu where MenuId='FDA7722C-383E-4BB1-B29D-BB0BF87AA942'
|
||||||
|
delete Sys_Menu where MenuId='15511354-9822-4A21-AB24-2483D889FDB8'
|
||||||
|
delete Sys_Menu where MenuId='15511354-9822-4A21-AB24-2483D889FDB9'
|
||||||
|
|
||||||
|
delete Sys_ButtonToMenu where MenuId='C46C007E-A100-4A52-9317-3B885442E130'
|
||||||
|
delete Sys_ButtonToMenu where MenuId='FDA7722C-383E-4BB1-B29D-BB0BF87AA942'
|
||||||
|
|
||||||
|
********/
|
||||||
|
|
||||||
|
|
||||||
|
--隐藏之前企业大检查
|
||||||
|
update Sys_Menu set IsUsed=0 where MenuId='CD9FC4C8-4B02-4619-8B02-50DA6AE6146E' or SuperMenu='CD9FC4C8-4B02-4619-8B02-50DA6AE6146E'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--企业大检查
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '8CA4A1EC-3218-4E6B-9CA2-125C814A8141')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName,Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'8CA4A1EC-3218-4E6B-9CA2-125C814A8141', N'企业大检查', N'', 40, N'0', N'Menu_ZHGL', 1,0, 1);
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
--公司级
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'C46C007E-A100-4A52-9317-3B885442E130', N'企业安全检查', null, N'ZHGL/Supervise/UnitHazardRegister.aspx?type=0', 10, N'8CA4A1EC-3218-4E6B-9CA2-125C814A8141', N'Menu_ZHGL', 1, 1, 1);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'73283863-CF67-44CA-9DF8-67071734A528', N'企业安全检查记录', null, N'ZHGL/Supervise/UnitHazardRegisterRecord.aspx?type=0', 20, N'8CA4A1EC-3218-4E6B-9CA2-125C814A8141', N'Menu_ZHGL', 1, 1, 1);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'FDA7722C-383E-4BB1-B29D-BB0BF87AA942', N'企业质量检查', null, N'ZHGL/Supervise/UnitHazardRegister.aspx?type=1', 30, N'8CA4A1EC-3218-4E6B-9CA2-125C814A8141', N'Menu_ZHGL', 1, 1, 1);
|
||||||
|
go
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'15511354-9822-4A21-AB24-2483D889FDB8', N'企业质量检查记录', null, N'ZHGL/Supervise/UnitHazardRegisterRecord.aspx?type=1', 40, N'8CA4A1EC-3218-4E6B-9CA2-125C814A8141', N'Menu_ZHGL', 1, 1, 1);
|
||||||
|
go
|
||||||
|
|
||||||
|
|
||||||
|
--项目级
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'73283863-CF67-44CA-9DF8-67071734A529', N'企业安全检查记录', null, N'ZHGL/Supervise/UnitHazardRegisterRecord.aspx?type=0', 05, N'467A0CB9-737D-4451-965E-869EBC3A4BD6', N'Menu_HSSE', 1, 1, 1);
|
||||||
|
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'15511354-9822-4A21-AB24-2483D889FDB9', N'企业质量检查记录', null, N'ZHGL/Supervise/UnitHazardRegisterRecord.aspx?type=1', 05, N'A54EC449-5F77-4068-83B9-AA305B721A0B', N'Menu_CQMS', 1, 1, 1);
|
||||||
|
go
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'D15F74F2-CD1A-4F45-9501-DF00ED845730', N'C46C007E-A100-4A52-9317-3B885442E130', N'修改', 2);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'A2CCDFF7-9593-4BCB-9425-769C99F8EFEE', N'C46C007E-A100-4A52-9317-3B885442E130', N'删除', 3);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'435F26E9-232F-4CAA-835F-CAF41DA2B175', N'C46C007E-A100-4A52-9317-3B885442E130', N'保存', 4);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'B822D703-CFE3-422A-88F3-67B26B0A255A', N'C46C007E-A100-4A52-9317-3B885442E130', N'增加', 1);
|
||||||
|
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'B980C835-B079-4485-AE0E-EE721C191470', N'FDA7722C-383E-4BB1-B29D-BB0BF87AA942', N'修改', 2);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'9BABA2CE-2593-422A-A792-80E826D164AB', N'FDA7722C-383E-4BB1-B29D-BB0BF87AA942', N'删除', 3);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'5C9AF2B1-4AF0-4F16-BC5D-154055A6BF8F', N'FDA7722C-383E-4BB1-B29D-BB0BF87AA942', N'保存', 4);
|
||||||
|
go
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex) VALUES (N'E3CD6629-9B4B-4B26-A24B-97F9F3E4428F', N'FDA7722C-383E-4BB1-B29D-BB0BF87AA942', N'增加', 1);
|
||||||
|
go
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
alter table dbo.Supervise_UnitHazardRegister
|
||||||
|
add InsResponsibleUserId nvarchar(50)
|
||||||
|
go
|
||||||
|
|
||||||
|
exec sp_addextendedproperty 'MS_Description', N'受检责任人', 'SCHEMA', 'dbo', 'TABLE', 'Supervise_UnitHazardRegister',
|
||||||
|
'COLUMN', 'InsResponsibleUserId'
|
||||||
|
go
|
||||||
|
alter table dbo.Supervise_UnitHazardRegister
|
||||||
|
drop constraint FK_UnitHazardRegister_Unit
|
||||||
|
go
|
||||||
|
alter table dbo.Supervise_UnitHazardRegister
|
||||||
|
drop column UnitId
|
||||||
|
go
|
||||||
|
|
||||||
|
alter table dbo.Supervise_UnitHazardRegister
|
||||||
|
drop column CheckObjectId
|
||||||
|
go
|
||||||
|
|
@ -34,3 +34,96 @@ GO
|
||||||
update [dbo].[Sys_Menu] set MenuName = '安全健康检查' WHERE MenuName = '安全健康日常巡检' and IsUsed = '1'
|
update [dbo].[Sys_Menu] set MenuName = '安全健康检查' WHERE MenuName = '安全健康日常巡检' and IsUsed = '1'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--菜单安全技术-临时用电方案表
|
||||||
|
--注意:菜单父级位置根据定制单位结构放置【五环放在施工方案(Menu_HSSE)下面】
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '09B2A0A6-A693-4F1D-A4F5-D5DEA803D771')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName,Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'09B2A0A6-A693-4F1D-A4F5-D5DEA803D771', N'临时用电方案', N'HSSE/Solution/TemporaryElectricity.aspx', 40, '5FF7BBD8-3E0A-4C90-8976-AFF5CE7E17A5', 'Menu_HSSE', 0,1, 1);
|
||||||
|
END
|
||||||
|
|
||||||
|
--安全技术-临时用电方案表
|
||||||
|
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'Solution_TemporaryElectricity') AND type = N'U')
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[Solution_TemporaryElectricity](
|
||||||
|
[TemporaryElectricityId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[Code] [nvarchar](100) NULL,
|
||||||
|
[Name] [nvarchar](200) NULL,
|
||||||
|
[Content] [nvarchar](2000) NULL,
|
||||||
|
[Remark] [nvarchar](500) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_Solution_TemporaryElectricity] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[TemporaryElectricityId] ASC
|
||||||
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'TemporaryElectricityId'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Code'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Name'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Content'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'临时用电方案' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity'
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
update Sys_Menu set MenuName='临时用电方案'
|
||||||
|
WHERE MenuId = '09B2A0A6-A693-4F1D-A4F5-D5DEA803D771'
|
||||||
|
update Sys_Menu set MenuName='临时用电方案'
|
||||||
|
WHERE MenuId = 'B04483D5-4421-4046-8B1A-E97589952150'
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
--临时用电方案补充字段
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Solution_TemporaryElectricity' AND COLUMN_NAME = 'Remark')
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE Solution_TemporaryElectricity ADD Content nvarchar(2000);
|
||||||
|
ALTER TABLE Solution_TemporaryElectricity ADD Remark nvarchar(500);
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Content'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_TemporaryElectricity', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
--安全技术-临时用电表操作按钮
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_ButtonToMenu WHERE MenuId = '09B2A0A6-A693-4F1D-A4F5-D5DEA803D771')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||||
|
VALUES (N'A633C879-BE46-4D2B-BAC3-9A656396AD53', N'09B2A0A6-A693-4F1D-A4F5-D5DEA803D771', N'增加', 1);
|
||||||
|
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||||
|
VALUES (N'3C001F6B-428B-4BDC-8913-FD00CAC63C64', N'09B2A0A6-A693-4F1D-A4F5-D5DEA803D771', N'修改', 2);
|
||||||
|
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||||
|
VALUES (N'E510ABD6-50B2-4685-8DB8-E362B88E8F9E', N'09B2A0A6-A693-4F1D-A4F5-D5DEA803D771', N'删除', 3);
|
||||||
|
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||||
|
VALUES (N'9552542D-879F-49A7-BB33-7F1B54D9658F', N'09B2A0A6-A693-4F1D-A4F5-D5DEA803D771', N'保存', 4);
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
----菜单设置报错脚本补充处理
|
||||||
|
--IF NOT EXISTS (SELECT * FROM Sys_Const WHERE ID = '28BF7713-44E7-43C1-B24A-7342CDD561A7')
|
||||||
|
--BEGIN
|
||||||
|
-- INSERT INTO dbo.Sys_Const (ID, ConstValue, ConstText, SortIndex, GroupId, Remark)
|
||||||
|
-- VALUES (N'28BF7713-44E7-43C1-B24A-7342CDD561A7', N'System_Qwms', N'质量与焊接管理系统', 2, N'SystemClassification', null);
|
||||||
|
--END
|
||||||
|
|
||||||
|
--GO
|
||||||
|
|
||||||
|
--IF NOT EXISTS (SELECT * FROM Sys_Const WHERE ID = '5823ADE9-302E-4402-BA6E-80F440BF184E')
|
||||||
|
--BEGIN
|
||||||
|
-- INSERT INTO dbo.Sys_Const (ID, ConstValue, ConstText, SortIndex, GroupId, Remark)
|
||||||
|
-- VALUES (N'5823ADE9-302E-4402-BA6E-80F440BF184E', N'System_Hsse', N'安全与职业健康管理系统', 1, N'SystemClassification', null);
|
||||||
|
--END
|
||||||
|
--GO
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
alter table SitePerson_Person add IsSyncWelder bit null
|
||||||
|
GO
|
||||||
|
alter table BS_Welder add PersonId nvarchar(50) null
|
||||||
|
GO
|
||||||
|
|
@ -599,6 +599,7 @@
|
||||||
<Compile Include="HSSE\Solution\ExpertArgumentService.cs" />
|
<Compile Include="HSSE\Solution\ExpertArgumentService.cs" />
|
||||||
<Compile Include="HSSE\Solution\LargerHazardService.cs" />
|
<Compile Include="HSSE\Solution\LargerHazardService.cs" />
|
||||||
<Compile Include="HSSE\Solution\SolutionTemplateService.cs" />
|
<Compile Include="HSSE\Solution\SolutionTemplateService.cs" />
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricityService.cs" />
|
||||||
<Compile Include="HSSE\Technique\EmergencyService.cs" />
|
<Compile Include="HSSE\Technique\EmergencyService.cs" />
|
||||||
<Compile Include="HSSE\Technique\HazardListService.cs" />
|
<Compile Include="HSSE\Technique\HazardListService.cs" />
|
||||||
<Compile Include="HSSE\Technique\HazardListTypeService.cs" />
|
<Compile Include="HSSE\Technique\HazardListTypeService.cs" />
|
||||||
|
|
@ -929,6 +930,8 @@
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterItemService.cs" />
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterService.cs" />
|
||||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportService.cs" />
|
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportService.cs" />
|
||||||
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportService.cs" />
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportService.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ProjectView>ProjectFiles</ProjectView>
|
<ProjectView>ShowAllFiles</ProjectView>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -103,5 +103,26 @@ namespace BLL
|
||||||
Funs.FineUIPleaseSelect(dropName);
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据检查大类和检查类别代码获取检查类别名称
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="checkMainType">检查大类(0=安全,1=质量)</param>
|
||||||
|
/// <param name="checkTypeCode">检查类别代码</param>
|
||||||
|
/// <returns>检查类别名称</returns>
|
||||||
|
public static string GetCheckTypeName(string checkMainType, string checkTypeCode)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(checkMainType) || string.IsNullOrEmpty(checkTypeCode))
|
||||||
|
{
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
var checkType = Funs.DB.Base_SuperviseCheckType
|
||||||
|
.FirstOrDefault(x => x.CheckMainType == checkMainType && x.CheckTypeCode == checkTypeCode);
|
||||||
|
|
||||||
|
return checkType?.CheckTypeName ?? string.Empty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1534,6 +1534,26 @@ namespace BLL
|
||||||
/// 安全监督检查整改
|
/// 安全监督检查整改
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string SuperviseCheckRectifyMenuId = "A02E0365-383C-49A0-BF1A-B3E42052959B";
|
public const string SuperviseCheckRectifyMenuId = "A02E0365-383C-49A0-BF1A-B3E42052959B";
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 企业安全检查菜单ID
|
||||||
|
/// </summary>
|
||||||
|
public const string UnitHazardRegisterMenu_Safety = "C46C007E-A100-4A52-9317-3B885442E130";
|
||||||
|
/// <summary>
|
||||||
|
/// 企业质量检查菜单ID
|
||||||
|
/// </summary>
|
||||||
|
public const string UnitHazardRegisterMenu_Quality = "FDA7722C-383E-4BB1-B29D-BB0BF87AA942";
|
||||||
|
/// <summary>
|
||||||
|
/// 企业安全检查菜单记录ID
|
||||||
|
/// </summary>
|
||||||
|
public const string UnitHazardRegisterMenuRecord_Safety = "73283863-CF67-44CA-9DF8-67071734A528";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 企业质量检查菜单记录ID
|
||||||
|
/// </summary>
|
||||||
|
public const string UnitHazardRegisterMenuRecord_Quality = "15511354-9822-4A21-AB24-2483D889FDB8";
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 集团安全监督
|
#region 集团安全监督
|
||||||
|
|
@ -1971,6 +1991,10 @@ namespace BLL
|
||||||
/// 危险性较大的工程清单
|
/// 危险性较大的工程清单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string ProjectLargerHazardListMenuId = "5B3D3F7B-9B50-4927-B131-11D13D4D1C19";
|
public const string ProjectLargerHazardListMenuId = "5B3D3F7B-9B50-4927-B131-11D13D4D1C19";
|
||||||
|
/// <summary>
|
||||||
|
/// 临时用电
|
||||||
|
/// </summary>
|
||||||
|
public const string ProjectTemporaryElectricityListMenuId = "09B2A0A6-A693-4F1D-A4F5-D5DEA803D771";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 专家论证清单
|
/// 专家论证清单
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,21 @@ namespace BLL
|
||||||
return htmlStr;
|
return htmlStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static string ConvertImageUrlByImage(object ToeyId)
|
||||||
|
{
|
||||||
|
string url = string.Empty;
|
||||||
|
if (ToeyId != null)
|
||||||
|
{
|
||||||
|
var imhurl = BLL.AttachFileService.getFileUrl(ToeyId.ToString());
|
||||||
|
if (imhurl != null)
|
||||||
|
{
|
||||||
|
url = ShowImage(Funs.SGGLUrl, imhurl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工作台项目图片
|
/// 工作台项目图片
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,72 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public class TemporaryElectricityService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取临时用电方案信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="UnitWorkId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.Solution_TemporaryElectricity GetTemporaryElectricityByTemporaryElectricityId(string TemporaryElectricityId)
|
||||||
|
{
|
||||||
|
return Funs.DB.Solution_TemporaryElectricity.FirstOrDefault(e => e.TemporaryElectricityId == TemporaryElectricityId);
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 添加临时用电方案信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void AddTemporaryElectricity(Model.Solution_TemporaryElectricity TemporaryElectricity)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Solution_TemporaryElectricity newTemporaryElectricity = new Model.Solution_TemporaryElectricity();
|
||||||
|
newTemporaryElectricity.TemporaryElectricityId = TemporaryElectricity.TemporaryElectricityId;
|
||||||
|
newTemporaryElectricity.ProjectId = TemporaryElectricity.ProjectId;
|
||||||
|
newTemporaryElectricity.Code = TemporaryElectricity.Code;
|
||||||
|
newTemporaryElectricity.Name = TemporaryElectricity.Name;
|
||||||
|
newTemporaryElectricity.Content = TemporaryElectricity.Content;
|
||||||
|
newTemporaryElectricity.Remark = TemporaryElectricity.Remark;
|
||||||
|
newTemporaryElectricity.CompileMan = TemporaryElectricity.CompileMan;
|
||||||
|
newTemporaryElectricity.CompileDate = TemporaryElectricity.CompileDate;
|
||||||
|
db.Solution_TemporaryElectricity.InsertOnSubmit(newTemporaryElectricity);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改临时用电方案信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void UpdateTemporaryElectricity(Model.Solution_TemporaryElectricity TemporaryElectricity)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Solution_TemporaryElectricity newTemporaryElectricity = db.Solution_TemporaryElectricity.FirstOrDefault(e => e.TemporaryElectricityId == TemporaryElectricity.TemporaryElectricityId);
|
||||||
|
if (newTemporaryElectricity != null)
|
||||||
|
{
|
||||||
|
newTemporaryElectricity.Code = TemporaryElectricity.Code;
|
||||||
|
newTemporaryElectricity.Name = TemporaryElectricity.Name;
|
||||||
|
newTemporaryElectricity.Content = TemporaryElectricity.Content;
|
||||||
|
newTemporaryElectricity.Remark = TemporaryElectricity.Remark;
|
||||||
|
newTemporaryElectricity.CompileMan = TemporaryElectricity.CompileMan;
|
||||||
|
newTemporaryElectricity.CompileDate = TemporaryElectricity.CompileDate;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除临时用电方案信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="checkerId"></param>
|
||||||
|
public static void DeleteTemporaryElectricityById(string TemporaryElectricityId)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Solution_TemporaryElectricity TemporaryElectricity = db.Solution_TemporaryElectricity.FirstOrDefault(e => e.TemporaryElectricityId == TemporaryElectricityId);
|
||||||
|
if (TemporaryElectricity != null)
|
||||||
|
{
|
||||||
|
db.Solution_TemporaryElectricity.DeleteOnSubmit(TemporaryElectricity);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -429,6 +429,32 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 项目表下拉框
|
#region 项目表下拉框
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目表下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dropName">下拉框名字</param>
|
||||||
|
/// <param name="isShowPlease">是否显示请选择</param>
|
||||||
|
public static void InitProjectDropDownList(FineUIPro.DropDownList dropName, string unitId, bool isShowPlease)
|
||||||
|
{
|
||||||
|
var IsThisUnit = CommonService.GetThisUnitId() == unitId ? true : false;
|
||||||
|
dropName.DataValueField = "ProjectId";
|
||||||
|
dropName.DataTextField = "ProjectName";
|
||||||
|
if (IsThisUnit)
|
||||||
|
{
|
||||||
|
dropName.DataSource = BLL.ProjectService.GetProjectWorkList();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dropName.DataSource = BLL.ProjectService.GetProjectWorkList(unitId);
|
||||||
|
}
|
||||||
|
dropName.DataBind();
|
||||||
|
if (isShowPlease)
|
||||||
|
{
|
||||||
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目表下拉框
|
/// 项目表下拉框
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,338 @@
|
||||||
|
using System;
|
||||||
|
using Model;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查明细服务
|
||||||
|
/// </summary>
|
||||||
|
public static class UnitHazardRegisterItemService
|
||||||
|
{
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加明细记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="item">明细记录</param>
|
||||||
|
public static void AddUnitHazardRegisterItem(Model.Supervise_UnitHazardRegisterItem item)
|
||||||
|
{
|
||||||
|
Funs.DB.Supervise_UnitHazardRegisterItem.InsertOnSubmit(item);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主表ID删除所有明细
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主表ID</param>
|
||||||
|
public static void DeleteItemsByRegisterId(string registerId)
|
||||||
|
{
|
||||||
|
var items = (from x in Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
where x.UnitHazardRegisterId == registerId
|
||||||
|
select x).ToList();
|
||||||
|
if (items.Count > 0)
|
||||||
|
{
|
||||||
|
Funs.DB.Supervise_UnitHazardRegisterItem.DeleteAllOnSubmit(items);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除明细记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="itemId">明细ID</param>
|
||||||
|
public static void DeleteUnitHazardRegisterItemById(string itemId)
|
||||||
|
{
|
||||||
|
Model.Supervise_UnitHazardRegisterItem item =
|
||||||
|
Funs.DB.Supervise_UnitHazardRegisterItem.FirstOrDefault(e => e.UnitHazardRegisterItemId == itemId);
|
||||||
|
if (item != null)
|
||||||
|
{
|
||||||
|
Funs.DB.Supervise_UnitHazardRegisterItem.DeleteOnSubmit(item);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据风险级别获取明细数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主表ID</param>
|
||||||
|
/// <param name="riskLevel">风险级别</param>
|
||||||
|
/// <returns>明细数量</returns>
|
||||||
|
public static int GetCountByRiskLevel(string registerId, string riskLevel)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
where x.UnitHazardRegisterId == registerId && x.RiskLevel == riskLevel
|
||||||
|
select x).Count();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取已完成的明细数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主表ID</param>
|
||||||
|
/// <returns>已完成数量</returns>
|
||||||
|
public static int GetFinishedCount(string registerId)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
where x.UnitHazardRegisterId == registerId && x.CompleteStatus == 1
|
||||||
|
select x).Count();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主表ID获取明细列表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主表ID</param>
|
||||||
|
/// <returns>明细列表</returns>
|
||||||
|
public static List<Model.Supervise_UnitHazardRegisterItem> GetItemsByRegisterId(string registerId)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
where x.UnitHazardRegisterId == registerId
|
||||||
|
orderby x.SortIndex
|
||||||
|
select x).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取主单的整改状态
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主单ID</param>
|
||||||
|
/// <returns>整改状态:0=全部未整改,1=部分整改,2=全部整改</returns>
|
||||||
|
public static int GetRectifyStatus(string registerId)
|
||||||
|
{
|
||||||
|
var items = GetItemsByRegisterId(registerId);
|
||||||
|
|
||||||
|
if (items.Count == 0)
|
||||||
|
{
|
||||||
|
return 0; // 无明细,视为全部未整改
|
||||||
|
}
|
||||||
|
|
||||||
|
int finishedCount = items.Count(x => x.CompleteStatus == 1);
|
||||||
|
int totalCount = items.Count;
|
||||||
|
|
||||||
|
if (finishedCount == 0)
|
||||||
|
{
|
||||||
|
return 0; // 全部未整改
|
||||||
|
}
|
||||||
|
else if (finishedCount < totalCount)
|
||||||
|
{
|
||||||
|
return 1; // 部分整改
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 2; // 全部整改
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取整改状态文本
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主单ID</param>
|
||||||
|
/// <returns>状态文本</returns>
|
||||||
|
public static string GetRectifyStatusText(string registerId)
|
||||||
|
{
|
||||||
|
int status = GetRectifyStatus(registerId);
|
||||||
|
switch (status)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
return "全部未整改";
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
return "部分整改";
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
return "全部整改";
|
||||||
|
|
||||||
|
default:
|
||||||
|
return "未知";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取未完成的明细数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">主表ID</param>
|
||||||
|
/// <returns>未完成数量</returns>
|
||||||
|
public static int GetUnfinishedCount(string registerId)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
where x.UnitHazardRegisterId == registerId && (x.CompleteStatus == null || x.CompleteStatus == 0)
|
||||||
|
select x).Count();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据明细ID获取明细记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="itemId">明细ID</param>
|
||||||
|
/// <returns>明细记录</returns>
|
||||||
|
public static Model.Supervise_UnitHazardRegisterItem GetUnitHazardRegisterItemById(string itemId)
|
||||||
|
{
|
||||||
|
return Funs.DB.Supervise_UnitHazardRegisterItem.FirstOrDefault(e => e.UnitHazardRegisterItemId == itemId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取企业级检查明细列表(使用input对象,返回总数)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">查询条件</param>
|
||||||
|
/// <param name="pageIndex">页码(从0开始)</param>
|
||||||
|
/// <param name="pageSize">每页大小</param>
|
||||||
|
/// <param name="returnAll">是否返回所有数据(不分页)</param>
|
||||||
|
/// <param name="totalCount">总记录数</param>
|
||||||
|
/// <returns>检查明细列表</returns>
|
||||||
|
public static List<UnitHazardRegisterItemOutput> GetUnitHazardRegisterItems(
|
||||||
|
UnitHazardRegisterItemInput input,
|
||||||
|
int pageIndex,
|
||||||
|
int pageSize,
|
||||||
|
bool returnAll,
|
||||||
|
out int totalCount)
|
||||||
|
{
|
||||||
|
var db = Funs.DB;
|
||||||
|
var query = from i in db.Supervise_UnitHazardRegisterItem
|
||||||
|
join r in db.Supervise_UnitHazardRegister
|
||||||
|
on i.UnitHazardRegisterId equals r.UnitHazardRegisterId
|
||||||
|
join ct in db.Base_SuperviseCheckType
|
||||||
|
on new { MainType = r.CheckMainType, TypeCode = r.CheckType }
|
||||||
|
equals new { MainType = ct.CheckMainType, TypeCode = ct.CheckTypeCode } into ctGroup
|
||||||
|
from ct in ctGroup.DefaultIfEmpty()
|
||||||
|
join u in db.Base_Unit
|
||||||
|
on r.CheckUnitId equals u.UnitId into uGroup
|
||||||
|
from u in uGroup.DefaultIfEmpty()
|
||||||
|
join user in db.Sys_User on r.InsResponsibleUserId equals user.UserId into userGroup
|
||||||
|
from user in userGroup.DefaultIfEmpty()
|
||||||
|
select new UnitHazardRegisterItemOutput
|
||||||
|
{
|
||||||
|
UnitHazardRegisterItemId = i.UnitHazardRegisterItemId,
|
||||||
|
UnitHazardRegisterCode = r.UnitHazardRegisterCode,
|
||||||
|
CheckDate = r.CheckDate,
|
||||||
|
CheckMainTypeName = r.CheckMainType == "0" ? "安全" : "质量",
|
||||||
|
CheckTypeName = ct.CheckTypeName,
|
||||||
|
ProblemDescription = i.ProblemDescription,
|
||||||
|
ProblemType = i.ProblemType,
|
||||||
|
RiskLevel = i.RiskLevel,
|
||||||
|
RectifyRequirement = i.RectifyRequirement,
|
||||||
|
StatesName = UnitHazardRegisterService.ConvertState(r.States.Value),
|
||||||
|
CheckTeam = r.CheckTeam,
|
||||||
|
ProjectId = r.ProjectId,
|
||||||
|
CheckUnitName = u.UnitName,
|
||||||
|
States = r.States,
|
||||||
|
ProblemStatesName = i.CompleteStatus==1 ? "已整改":"未整改",
|
||||||
|
ProblemStates = i.CompleteStatus,
|
||||||
|
InsResponsibleUserId = r.InsResponsibleUserId,
|
||||||
|
InsResponsibleUserName= user.UserName
|
||||||
|
};
|
||||||
|
|
||||||
|
// 应用检查大类过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.CheckMainType))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckMainTypeName.Contains(input.CheckMainType == "0" ? "安全" : "质量"));
|
||||||
|
}
|
||||||
|
// 项目id过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.ProjectId))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.ProjectId.Contains(input.ProjectId));
|
||||||
|
}
|
||||||
|
// 检查组/人搜索
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.CheckTeam))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckTeam.Contains(input.CheckTeam));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查类别搜索
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.CheckType))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckTypeName != null && x.CheckTypeName.Contains(input.CheckType));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 问题描述搜索
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.Problem))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.ProblemDescription.Contains(input.Problem));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查时间范围
|
||||||
|
if (input != null && input.StartTime.HasValue)
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckDate >= input.StartTime.Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (input != null && input.EndTime.HasValue)
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckDate <= input.EndTime.Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 风险级别过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.RiskLevel) && input.RiskLevel != "null")
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.RiskLevel == input.RiskLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 状态过滤
|
||||||
|
if (input != null && input.States != null)
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.States == input.States);
|
||||||
|
}
|
||||||
|
// 问题整改状态过滤
|
||||||
|
if (input != null && input.ProblemStates != null)
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.ProblemStates == input.ProblemStates);
|
||||||
|
}
|
||||||
|
// 单位权限过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.UnitId))
|
||||||
|
{
|
||||||
|
var thisUnit = BLL.CommonService.GetIsThisUnit();
|
||||||
|
if (thisUnit.UnitId != input.UnitId)
|
||||||
|
{
|
||||||
|
// 先获取用户有权限的项目ID列表
|
||||||
|
var projectIds = (from p in Funs.DB.Base_Project
|
||||||
|
where p.UnitId == input.UnitId
|
||||||
|
select p.ProjectId).ToList();
|
||||||
|
|
||||||
|
// 过滤查询结果
|
||||||
|
query = query.Where(x => Funs.DB.Supervise_UnitHazardRegister
|
||||||
|
.Any(r => Funs.DB.Supervise_UnitHazardRegisterItem
|
||||||
|
.Any(i => i.UnitHazardRegisterItemId == x.UnitHazardRegisterItemId &&
|
||||||
|
i.UnitHazardRegisterId == r.UnitHazardRegisterId &&
|
||||||
|
projectIds.Contains(r.ProjectId))));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取总数
|
||||||
|
totalCount = query.Count();
|
||||||
|
|
||||||
|
// 排序和分页
|
||||||
|
var orderedQuery = query.OrderByDescending(x => x.CheckDate);
|
||||||
|
|
||||||
|
if (returnAll)
|
||||||
|
{
|
||||||
|
return orderedQuery.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return orderedQuery
|
||||||
|
.Skip(pageIndex * pageSize)
|
||||||
|
.Take(pageSize)
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 更新明细记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="item">明细记录</param>
|
||||||
|
public static void UpdateUnitHazardRegisterItem(Model.Supervise_UnitHazardRegisterItem item)
|
||||||
|
{
|
||||||
|
Model.Supervise_UnitHazardRegisterItem oldItem =
|
||||||
|
Funs.DB.Supervise_UnitHazardRegisterItem.FirstOrDefault(e => e.UnitHazardRegisterItemId == item.UnitHazardRegisterItemId);
|
||||||
|
if (oldItem != null)
|
||||||
|
{
|
||||||
|
oldItem.ProblemDescription = item.ProblemDescription;
|
||||||
|
oldItem.ProblemType = item.ProblemType;
|
||||||
|
oldItem.RiskLevel = item.RiskLevel;
|
||||||
|
oldItem.RectifyRequirement = item.RectifyRequirement;
|
||||||
|
oldItem.CompleteStatus = item.CompleteStatus;
|
||||||
|
oldItem.CompletedDate = item.CompletedDate;
|
||||||
|
oldItem.SortIndex = item.SortIndex;
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion Methods
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,301 @@
|
||||||
|
using System;
|
||||||
|
using Model;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查主表服务
|
||||||
|
/// </summary>
|
||||||
|
public static class UnitHazardRegisterService
|
||||||
|
{
|
||||||
|
#region Fields
|
||||||
|
|
||||||
|
public static Dictionary<string, int> StateMap = new Dictionary<string, int>
|
||||||
|
{
|
||||||
|
{ "待提交" ,(int)StateInt.待提交},
|
||||||
|
{ "待整改" ,(int)StateInt.待整改},
|
||||||
|
{ "部分整改" ,(int)StateInt.部分整改},
|
||||||
|
{ "已闭环" ,(int)StateInt.已闭环},
|
||||||
|
};
|
||||||
|
|
||||||
|
#endregion Fields
|
||||||
|
|
||||||
|
#region Enums
|
||||||
|
|
||||||
|
public enum StateInt : int
|
||||||
|
{
|
||||||
|
待提交 = 0,
|
||||||
|
待整改= 1,
|
||||||
|
部分整改 = 2,
|
||||||
|
已闭环 = 3,
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion Enums
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加企业级检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="register">企业级检查记录</param>
|
||||||
|
public static void AddUnitHazardRegister(Model.Supervise_UnitHazardRegister register)
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
Model.Supervise_UnitHazardRegister newRegister = new Model.Supervise_UnitHazardRegister
|
||||||
|
{
|
||||||
|
UnitHazardRegisterId = register.UnitHazardRegisterId,
|
||||||
|
UnitHazardRegisterCode = register.UnitHazardRegisterCode,
|
||||||
|
CheckDate = register.CheckDate,
|
||||||
|
CheckMainType = register.CheckMainType,
|
||||||
|
CheckType = register.CheckType,
|
||||||
|
ProjectId = register.ProjectId,
|
||||||
|
CheckUnitId = register.CheckUnitId,
|
||||||
|
CheckTeam = register.CheckTeam,
|
||||||
|
CheckManIds = register.CheckManIds,
|
||||||
|
CheckManNames = register.CheckManNames,
|
||||||
|
InsResponsibleUserId = register.InsResponsibleUserId,
|
||||||
|
EvaluationResult = register.EvaluationResult,
|
||||||
|
AttachUrl = register.AttachUrl,
|
||||||
|
States = register.States??0,
|
||||||
|
CompileMan = register.CompileMan,
|
||||||
|
CreateDate = DateTime.Now
|
||||||
|
};
|
||||||
|
db.Supervise_UnitHazardRegister.InsertOnSubmit(newRegister);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string ConvertState(int state)
|
||||||
|
{
|
||||||
|
string result = string.Empty;
|
||||||
|
result = StateMap.First(c => c.Value == state).Key;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 删除企业级检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">检查记录ID</param>
|
||||||
|
public static void DeleteUnitHazardRegisterById(string registerId)
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
var register = db.Supervise_UnitHazardRegister.FirstOrDefault(e => e.UnitHazardRegisterId == registerId);
|
||||||
|
if (register != null)
|
||||||
|
{
|
||||||
|
// 删除附件
|
||||||
|
if (!string.IsNullOrEmpty(register.AttachUrl))
|
||||||
|
{
|
||||||
|
BLL.UploadFileService.DeleteFile(Funs.RootPath, register.AttachUrl);
|
||||||
|
}
|
||||||
|
// 删除编码记录
|
||||||
|
BLL.CodeRecordsService.DeleteCodeRecordsByDataId(registerId);
|
||||||
|
// 删除附件
|
||||||
|
BLL.CommonService.DeleteAttachFileById(registerId);
|
||||||
|
// 删除流程
|
||||||
|
BLL.CommonService.DeleteFlowOperateByID(registerId);
|
||||||
|
|
||||||
|
db.Supervise_UnitHazardRegister.DeleteOnSubmit(register);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目和时间段获取检查数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId">项目ID</param>
|
||||||
|
/// <param name="startTime">开始时间</param>
|
||||||
|
/// <param name="endTime">结束时间</param>
|
||||||
|
/// <returns>检查数量</returns>
|
||||||
|
public static int GetCount(string projectId, DateTime startTime, DateTime endTime)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegister
|
||||||
|
where x.ProjectId == projectId && x.CheckDate >= startTime && x.CheckDate <= endTime
|
||||||
|
select x).Count();
|
||||||
|
}
|
||||||
|
public static int GetCount(string checkMainType)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.Supervise_UnitHazardRegister
|
||||||
|
where x.CheckMainType ==checkMainType
|
||||||
|
select x.UnitHazardRegisterId).Count();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据ID获取企业级检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">检查记录ID</param>
|
||||||
|
/// <returns>企业级检查记录</returns>
|
||||||
|
public static Model.Supervise_UnitHazardRegister GetUnitHazardRegisterById(string registerId)
|
||||||
|
{
|
||||||
|
return Funs.DB.Supervise_UnitHazardRegister.FirstOrDefault(e => e.UnitHazardRegisterId == registerId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 判断是否可以删除检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="registerId">检查记录ID</param>
|
||||||
|
/// <returns>true=可以删除,false=不能删除</returns>
|
||||||
|
public static bool CanDeleteRegister(string registerId)
|
||||||
|
{
|
||||||
|
var register = GetUnitHazardRegisterById(registerId);
|
||||||
|
if (register == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 只有"待提交"状态可以删除,其他状态不能删除
|
||||||
|
return register.States <= (int)StateInt.待提交;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取企业级检查列表(使用input对象,返回总数)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">查询条件</param>
|
||||||
|
/// <param name="pageIndex">页码(从0开始)</param>
|
||||||
|
/// <param name="pageSize">每页大小</param>
|
||||||
|
/// <param name="returnAll">是否返回所有数据(不分页)</param>
|
||||||
|
/// <param name="totalCount">总记录数</param>
|
||||||
|
/// <returns>检查记录列表</returns>
|
||||||
|
public static List<UnitHazardRegisterOutput> GetUnitHazardRegisters(
|
||||||
|
UnitHazardRegisterInput input,
|
||||||
|
int pageIndex,
|
||||||
|
int pageSize,
|
||||||
|
bool returnAll,
|
||||||
|
out int totalCount)
|
||||||
|
{
|
||||||
|
var db = Funs.DB;
|
||||||
|
// 使用JOIN一次性获取所有数据,解决N+1查询问题
|
||||||
|
var query = from x in db.Supervise_UnitHazardRegister
|
||||||
|
join ct in db.Base_SuperviseCheckType
|
||||||
|
on new { MainType = x.CheckMainType, TypeCode = x.CheckType }
|
||||||
|
equals new { MainType = ct.CheckMainType, TypeCode = ct.CheckTypeCode } into ctGroup
|
||||||
|
from ct in ctGroup.DefaultIfEmpty()
|
||||||
|
join u in db.Base_Unit
|
||||||
|
on x.CheckUnitId equals u.UnitId into uGroup
|
||||||
|
from u in uGroup.DefaultIfEmpty()
|
||||||
|
join p in db.Base_Project on x.ProjectId equals p.ProjectId into pGroup
|
||||||
|
from p in pGroup.DefaultIfEmpty()
|
||||||
|
select new UnitHazardRegisterOutput
|
||||||
|
{
|
||||||
|
UnitHazardRegisterId = x.UnitHazardRegisterId,
|
||||||
|
UnitHazardRegisterCode = x.UnitHazardRegisterCode,
|
||||||
|
CheckDate = x.CheckDate,
|
||||||
|
ProjectId = x.ProjectId,
|
||||||
|
CheckMainTypeName = x.CheckMainType == "0" ? "安全" : "质量",
|
||||||
|
CheckType = x.CheckType,
|
||||||
|
CheckTypeName = ct.CheckTypeName,
|
||||||
|
CheckObjectText = p.ProjectName,
|
||||||
|
CheckUnitName = u.UnitName,
|
||||||
|
CheckTeam = x.CheckTeam,
|
||||||
|
EvaluationResult = x.EvaluationResult,
|
||||||
|
StatesName = ConvertState(x.States.Value),
|
||||||
|
AttachUrl = x.AttachUrl,
|
||||||
|
};
|
||||||
|
|
||||||
|
// 应用检查大类过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.CheckMainType))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckMainTypeName.Contains(input.CheckMainType == "0" ? "安全" : "质量"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 应用文本搜索
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.SearchText))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.UnitHazardRegisterCode.Contains(input.SearchText) ||
|
||||||
|
x.CheckObjectText.Contains(input.SearchText) ||
|
||||||
|
x.CheckTeam.Contains(input.SearchText) ||
|
||||||
|
x.EvaluationResult.Contains(input.SearchText));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 应用检查类别过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.CheckType) && input.CheckType != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.CheckType == input.CheckType);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目权限过滤
|
||||||
|
if (input != null && !string.IsNullOrEmpty(input.ProjectId))
|
||||||
|
{
|
||||||
|
query = query.Where(x => x.ProjectId != null && x.ProjectId == input.ProjectId);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取总数
|
||||||
|
totalCount = query.Count();
|
||||||
|
|
||||||
|
// 排序和分页
|
||||||
|
var orderedQuery = query.OrderByDescending(x => x.CheckDate);
|
||||||
|
|
||||||
|
if (returnAll)
|
||||||
|
{
|
||||||
|
return orderedQuery.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return orderedQuery
|
||||||
|
.Skip(pageIndex * pageSize)
|
||||||
|
.Take(pageSize)
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 更新企业级检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="register">企业级检查记录</param>
|
||||||
|
public static void UpdateUnitHazardRegister(Model.Supervise_UnitHazardRegister register)
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
Model.Supervise_UnitHazardRegister newRegister =
|
||||||
|
db.Supervise_UnitHazardRegister.FirstOrDefault(e => e.UnitHazardRegisterId == register.UnitHazardRegisterId);
|
||||||
|
if (newRegister != null)
|
||||||
|
{
|
||||||
|
newRegister.UnitHazardRegisterCode = register.UnitHazardRegisterCode;
|
||||||
|
newRegister.CheckDate = register.CheckDate;
|
||||||
|
newRegister.CheckMainType = register.CheckMainType;
|
||||||
|
newRegister.CheckType = register.CheckType;
|
||||||
|
newRegister.ProjectId = register.ProjectId;
|
||||||
|
newRegister.CheckUnitId = register.CheckUnitId;
|
||||||
|
newRegister.CheckTeam = register.CheckTeam;
|
||||||
|
newRegister.CheckManIds = register.CheckManIds;
|
||||||
|
newRegister.CheckManNames = register.CheckManNames;
|
||||||
|
newRegister.EvaluationResult = register.EvaluationResult;
|
||||||
|
newRegister.AttachUrl = register.AttachUrl;
|
||||||
|
newRegister.States = register.States;
|
||||||
|
newRegister.InsResponsibleUserId = register.InsResponsibleUserId;
|
||||||
|
newRegister.UpdateDate = DateTime.Now;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 更新主单状态(根据明细的整改情况)
|
||||||
|
/// </summary>
|
||||||
|
public static void UpdateRegisterStatus(string registerId)
|
||||||
|
{
|
||||||
|
// 获取主单的所有明细的整改状态
|
||||||
|
int rectifyStatus = BLL.UnitHazardRegisterItemService.GetRectifyStatus(registerId);
|
||||||
|
|
||||||
|
var register = BLL.UnitHazardRegisterService.GetUnitHazardRegisterById(registerId);
|
||||||
|
if (register != null)
|
||||||
|
{
|
||||||
|
// 根据整改状态更新主单状态
|
||||||
|
switch (rectifyStatus)
|
||||||
|
{
|
||||||
|
case 0: // 全部未整改
|
||||||
|
register.States = (int)UnitHazardRegisterService.StateInt.待整改; // 待整改
|
||||||
|
break;
|
||||||
|
case 1: // 部分整改
|
||||||
|
register.States = (int)UnitHazardRegisterService.StateInt.部分整改; ; // 待整改
|
||||||
|
break;
|
||||||
|
case 2: // 全部整改
|
||||||
|
register.States = (int)UnitHazardRegisterService.StateInt.已闭环; ; // 已完成
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
BLL.UnitHazardRegisterService.UpdateUnitHazardRegister(register);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion Methods
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1434,6 +1434,9 @@
|
||||||
<Content Include="HSSE\Solution\SolutionTemplate.aspx" />
|
<Content Include="HSSE\Solution\SolutionTemplate.aspx" />
|
||||||
<Content Include="HSSE\Solution\SolutionTemplateEdit.aspx" />
|
<Content Include="HSSE\Solution\SolutionTemplateEdit.aspx" />
|
||||||
<Content Include="HSSE\Solution\SolutionTemplateView.aspx" />
|
<Content Include="HSSE\Solution\SolutionTemplateView.aspx" />
|
||||||
|
<Content Include="HSSE\Solution\TemporaryElectricity.aspx" />
|
||||||
|
<Content Include="HSSE\Solution\TemporaryElectricityEdit.aspx" />
|
||||||
|
<Content Include="HSSE\Solution\TemporaryElectricityView.aspx" />
|
||||||
<Content Include="HSSE\Technique\CheckItemDetailEdit.aspx" />
|
<Content Include="HSSE\Technique\CheckItemDetailEdit.aspx" />
|
||||||
<Content Include="HSSE\Technique\CheckItemEdit.aspx" />
|
<Content Include="HSSE\Technique\CheckItemEdit.aspx" />
|
||||||
<Content Include="HSSE\Technique\CheckItemSet.aspx" />
|
<Content Include="HSSE\Technique\CheckItemSet.aspx" />
|
||||||
|
|
@ -2422,6 +2425,10 @@
|
||||||
<Content Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx" />
|
<Content Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx" />
|
||||||
<Content Include="common\font\DIN-Medium.otf" />
|
<Content Include="common\font\DIN-Medium.otf" />
|
||||||
<Content Include="ZHGL\Supervise\SuperviseCheckReportFinalizeEdit.aspx" />
|
<Content Include="ZHGL\Supervise\SuperviseCheckReportFinalizeEdit.aspx" />
|
||||||
|
<Content Include="ZHGL\Supervise\UnitHazardRegister.aspx" />
|
||||||
|
<Content Include="ZHGL\Supervise\UnitHazardRegisterEdit.aspx" />
|
||||||
|
<Content Include="ZHGL\Supervise\UnitHazardRegisterRecord.aspx" />
|
||||||
|
<Content Include="ZHGL\Supervise\UnitHazardRegisterRecordEdit.aspx" />
|
||||||
<Content Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx" />
|
<Content Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx" />
|
||||||
<Content Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportEdit.aspx" />
|
<Content Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportEdit.aspx" />
|
||||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx" />
|
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx" />
|
||||||
|
|
@ -14520,6 +14527,27 @@
|
||||||
<Compile Include="HSSE\Solution\SolutionTemplateView.aspx.designer.cs">
|
<Compile Include="HSSE\Solution\SolutionTemplateView.aspx.designer.cs">
|
||||||
<DependentUpon>SolutionTemplateView.aspx</DependentUpon>
|
<DependentUpon>SolutionTemplateView.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricity.aspx.cs">
|
||||||
|
<DependentUpon>TemporaryElectricity.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricity.aspx.designer.cs">
|
||||||
|
<DependentUpon>TemporaryElectricity.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricityEdit.aspx.cs">
|
||||||
|
<DependentUpon>TemporaryElectricityEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricityEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>TemporaryElectricityEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricityView.aspx.cs">
|
||||||
|
<DependentUpon>TemporaryElectricityView.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\Solution\TemporaryElectricityView.aspx.designer.cs">
|
||||||
|
<DependentUpon>TemporaryElectricityView.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="HSSE\Technique\CheckItemDetailEdit.aspx.cs">
|
<Compile Include="HSSE\Technique\CheckItemDetailEdit.aspx.cs">
|
||||||
<DependentUpon>CheckItemDetailEdit.aspx</DependentUpon>
|
<DependentUpon>CheckItemDetailEdit.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
@ -20225,6 +20253,34 @@
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportFinalizeEdit.aspx.designer.cs">
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportFinalizeEdit.aspx.designer.cs">
|
||||||
<DependentUpon>SuperviseCheckReportFinalizeEdit.aspx</DependentUpon>
|
<DependentUpon>SuperviseCheckReportFinalizeEdit.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegister.aspx.cs">
|
||||||
|
<DependentUpon>UnitHazardRegister.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegister.aspx.designer.cs">
|
||||||
|
<DependentUpon>UnitHazardRegister.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterEdit.aspx.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterRecord.aspx.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterRecord.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterRecord.aspx.designer.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterRecord.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterRecordEdit.aspx.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterRecordEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\Supervise\UnitHazardRegisterRecordEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>UnitHazardRegisterRecordEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx.cs">
|
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx.cs">
|
||||||
<DependentUpon>TestRunMonthSummaryReport.aspx</DependentUpon>
|
<DependentUpon>TestRunMonthSummaryReport.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -368,8 +368,11 @@ namespace FineUIPro.Web.HSSE.Check
|
||||||
{
|
{
|
||||||
//case "低": RiskLevel = "0"; break;
|
//case "低": RiskLevel = "0"; break;
|
||||||
case "一般": RiskLevel = "1"; break;
|
case "一般": RiskLevel = "1"; break;
|
||||||
|
case "一般风险": RiskLevel = "1"; break;
|
||||||
case "较高": RiskLevel = "2"; break;
|
case "较高": RiskLevel = "2"; break;
|
||||||
|
case "较大风险": RiskLevel = "2"; break;
|
||||||
case "高": RiskLevel = "3"; break;
|
case "高": RiskLevel = "3"; break;
|
||||||
|
case "重大风险": RiskLevel = "3"; break;
|
||||||
default: RiskLevel = "1"; break;
|
default: RiskLevel = "1"; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,127 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemporaryElectricity.aspx.cs" Inherits="FineUIPro.Web.HSSE.Solution.TemporaryElectricity" %>
|
||||||
|
|
||||||
|
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" 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></title>
|
||||||
|
<style type="text/css">
|
||||||
|
.f-grid-colheader-text {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</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="380" Title="公司-项目" TitleToolTip="公司-项目" 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:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||||
|
</f:ContentPanel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||||
|
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="临时用电方案" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="TemporaryElectricityId" AllowCellEditing="true"
|
||||||
|
ClicksToEdit="2" DataIDField="TemporaryElectricityId" AllowSorting="true" SortField="CompileDate"
|
||||||
|
SortDirection="DESC" EnableColumnLines="true" ForceFit="true"
|
||||||
|
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnRowCommand="Grid1_RowCommand"
|
||||||
|
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True" OnRowDoubleClick="Grid1_RowDoubleClick" OnPageIndexChange="Grid1_PageIndexChange">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnNew" Icon="Add" EnablePostBack="true" Hidden="true" Text="新增"
|
||||||
|
runat="server">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
|
EnableLock="true" Locked="False">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="140px" ColumnID="Code" DataField="Code" FieldType="String" HeaderText="编号" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="280px" ColumnID="Name" DataField="Name" FieldType="String" HeaderText="方案名称" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="380px" ColumnID="Content" DataField="Content" FieldType="String" HeaderText="内容" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="220px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName" FieldType="String" HeaderText="编制人" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="95px" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="编制日期" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" TextAlign="Center" HeaderTextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
<Listeners>
|
||||||
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
</Listeners>
|
||||||
|
<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:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
<f:ListItem Text="所有行" Value="100000" />
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:ToolbarFill runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
|
||||||
|
<f:Window ID="Window1" Title="临时用电方案" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
|
Width="900px" Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||||
|
Height="500px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click" Hidden="true">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||||
|
OnClick="btnMenuDel_Click" Hidden="true">
|
||||||
|
</f:MenuButton>
|
||||||
|
</Items>
|
||||||
|
</f:Menu>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
|
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,240 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
public partial class TemporaryElectricity : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 项目id
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ProjectId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ProjectId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
|
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||||
|
{
|
||||||
|
this.ProjectId = Request.Params["projectId"];
|
||||||
|
}
|
||||||
|
|
||||||
|
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||||
|
this.ucTree.ProjectId = this.ProjectId;
|
||||||
|
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId) )
|
||||||
|
{
|
||||||
|
this.panelLeftRegion.Hidden = true;
|
||||||
|
////权限按钮方法
|
||||||
|
this.GetButtonPower();
|
||||||
|
}
|
||||||
|
btnNew.OnClientClick = Window1.GetShowReference("TemporaryElectricityEdit.aspx") + "return false;";
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 公司级树加载
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void changeTree(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.ProjectId = this.ucTree.ProjectId;
|
||||||
|
this.GetButtonPower();
|
||||||
|
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
|
||||||
|
public void BindGrid()
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(this.ProjectId))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
DataTable tb = ChecklistData();
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
protected DataTable ChecklistData()
|
||||||
|
{
|
||||||
|
string strSql = @"select C.*,p.UserName from [dbo].[Solution_TemporaryElectricity] C left join Sys_User p on p.UserId=C.CompileMan
|
||||||
|
where 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
strSql += " AND C.ProjectId = @ProjectId";
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
return tb;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 分页显示条数下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 窗体关闭
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
//右键编辑
|
||||||
|
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
//双击编辑
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
//分页
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 编辑数据方法
|
||||||
|
/// </summary>
|
||||||
|
private void EditData()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TemporaryElectricityEdit.aspx?TemporaryElectricityId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||||
|
|
||||||
|
}
|
||||||
|
//右键查看
|
||||||
|
protected void btnMenuView_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TemporaryElectricityView.aspx?TemporaryElectricityId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||||
|
}
|
||||||
|
//右键删除
|
||||||
|
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||||
|
{
|
||||||
|
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||||
|
{
|
||||||
|
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||||
|
////删除附件表
|
||||||
|
BLL.CommonService.DeleteAttachFileById(rowID);
|
||||||
|
BLL.TemporaryElectricityService.DeleteTemporaryElectricityById(rowID);
|
||||||
|
}
|
||||||
|
|
||||||
|
BindGrid();
|
||||||
|
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 搜索
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 重置
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnRset_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 获取按钮权限
|
||||||
|
/// <summary>
|
||||||
|
/// 获取按钮权限
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="button"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
private void GetButtonPower()
|
||||||
|
{
|
||||||
|
if (Request.Params["value"] == "0")
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectTemporaryElectricityListMenuId);
|
||||||
|
if (buttonList.Count() > 0)
|
||||||
|
{
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||||
|
{
|
||||||
|
this.btnNew.Hidden = false;
|
||||||
|
}
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
this.btnMenuModify.Hidden = false;
|
||||||
|
}
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||||
|
{
|
||||||
|
this.btnMenuDel.Hidden = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||||
|
{
|
||||||
|
btnNew.Hidden = true;
|
||||||
|
btnMenuModify.Hidden = true;
|
||||||
|
btnMenuDel.Hidden = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||||
|
{
|
||||||
|
object[] keys = Grid1.DataKeys[e.RowIndex];
|
||||||
|
string fileId = string.Empty;
|
||||||
|
if (keys == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fileId = keys[0].ToString();
|
||||||
|
}
|
||||||
|
if (e.CommandName.Equals("download"))
|
||||||
|
{
|
||||||
|
string menuId = Const.ProjectTemporaryElectricityListMenuId;
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||||
|
String.Format("../../AttachFile/webuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/TemporaryElectricity&menuId={1}", fileId, menuId)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,197 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TemporaryElectricity
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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.UnitProjectTControl ucTree;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panelCenterRegion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panelCenterRegion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnNew 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnNew;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblPageIndex 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Menu1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Menu Menu1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuModify 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuView 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuView;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuDel 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuDel;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,102 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemporaryElectricityEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Solution.TemporaryElectricityEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<title>临时用电方案</title>
|
||||||
|
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<script src="../../Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||||
|
<style type="text/css">
|
||||||
|
.labcenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-grid-row .f-grid-cell-inner {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:ContentPanel ID="ContentPanel2" Title="临时用电方案" ShowBorder="true"
|
||||||
|
BodyPadding="10px" EnableCollapse="true" ShowHeader="false" AutoScroll="true"
|
||||||
|
runat="server">
|
||||||
|
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCode" runat="server" Required="true" ShowRedStar="true" Label="编号" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtName" runat="server" Required="true" ShowRedStar="true" Label="方案名称" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtContent" runat="server" Label="内容" MaxLength="200" Height="120px" LabelAlign="Right">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRemark" runat="server" Label="备注" MaxLength="500" Height="100px" LabelAlign="Right">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCompileMan" runat="server" Readonly="true" Label="编制人" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DatePicker ID="txtCompileDate" ShowRedStar="true" Required="true" runat="server" Label="编制日期" LabelAlign="Right" EnableEdit="true">
|
||||||
|
</f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</f:ContentPanel>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:Label runat="server" ID="lbTemp">
|
||||||
|
</f:Label>
|
||||||
|
<f:Button ID="imgBtnFile" Text="文件" ToolTip="上传及查看" Icon="TableCell" runat="server" OnClick="imgBtnFile_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" OnClick="btnSave_Click" runat="server" ToolTip="保存" Text="保存" ValidateForms="SimpleForm1">
|
||||||
|
</f:Button>
|
||||||
|
<f:HiddenField ID="hdId" runat="server">
|
||||||
|
</f:HiddenField>
|
||||||
|
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||||
|
</f:HiddenField>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
</f:Form>
|
||||||
|
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" OnClose="WindowAtt_Close" runat="server" IsModal="true" Width="700px"
|
||||||
|
Height="550px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,119 @@
|
||||||
|
using BLL;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using AspNet = System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
public partial class TemporaryElectricityEdit : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
public string TemporaryElectricityId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["TemporaryElectricityId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["TemporaryElectricityId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
TemporaryElectricityId = Request.Params["TemporaryElectricityId"];
|
||||||
|
if (!string.IsNullOrEmpty(TemporaryElectricityId))
|
||||||
|
{
|
||||||
|
hdId.Text = this.TemporaryElectricityId;
|
||||||
|
Model.Solution_TemporaryElectricity TemporaryElectricity = BLL.TemporaryElectricityService.GetTemporaryElectricityByTemporaryElectricityId(TemporaryElectricityId);
|
||||||
|
this.txtCode.Text = TemporaryElectricity.Code;
|
||||||
|
this.txtName.Text = TemporaryElectricity.Name;
|
||||||
|
this.txtContent.Text = TemporaryElectricity.Content;
|
||||||
|
this.txtRemark.Text = TemporaryElectricity.Remark;
|
||||||
|
if (!string.IsNullOrEmpty(TemporaryElectricity.CompileMan))
|
||||||
|
{
|
||||||
|
this.txtCompileMan.Text = UserService.GetUserNameByUserId(TemporaryElectricity.CompileMan);
|
||||||
|
}
|
||||||
|
if (TemporaryElectricity.CompileDate != null)
|
||||||
|
{
|
||||||
|
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", TemporaryElectricity.CompileDate);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtCompileMan.Text = this.CurrUser.UserName;
|
||||||
|
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void imgBtnFile_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(hdId.Text))
|
||||||
|
{
|
||||||
|
hdId.Text = SQLHelper.GetNewID();
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=1&toKeyId={0}&path=FileUpload/TemporaryElectricity&menuId={1}", hdId.Text, BLL.Const.ProjectTemporaryElectricityListMenuId)));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Saveinspection("save");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 保存
|
||||||
|
/// </summary>
|
||||||
|
public void Saveinspection(string saveType)
|
||||||
|
{
|
||||||
|
Model.Solution_TemporaryElectricity TemporaryElectricity = new Model.Solution_TemporaryElectricity();
|
||||||
|
TemporaryElectricity.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
|
TemporaryElectricity.Code = this.txtCode.Text.Trim();
|
||||||
|
TemporaryElectricity.Name = this.txtName.Text.Trim();
|
||||||
|
TemporaryElectricity.Content = this.txtContent.Text.Trim();
|
||||||
|
TemporaryElectricity.Remark = this.txtRemark.Text.Trim();
|
||||||
|
TemporaryElectricity.CompileMan = this.CurrUser.UserId;
|
||||||
|
TemporaryElectricity.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text.Trim());
|
||||||
|
if (!string.IsNullOrEmpty(this.TemporaryElectricityId))
|
||||||
|
{
|
||||||
|
TemporaryElectricity.TemporaryElectricityId = this.TemporaryElectricityId;
|
||||||
|
TemporaryElectricityService.UpdateTemporaryElectricity(TemporaryElectricity);
|
||||||
|
LogService.AddSys_Log(CurrUser, TemporaryElectricity.Code, TemporaryElectricity.TemporaryElectricityId, Const.ProjectTemporaryElectricityListMenuId, "修改临时用电方案");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(hdId.Text))
|
||||||
|
{
|
||||||
|
TemporaryElectricity.TemporaryElectricityId = SQLHelper.GetNewID();
|
||||||
|
TemporaryElectricityId = TemporaryElectricity.TemporaryElectricityId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TemporaryElectricity.TemporaryElectricityId = hdId.Text;
|
||||||
|
}
|
||||||
|
TemporaryElectricityService.AddTemporaryElectricity(TemporaryElectricity);
|
||||||
|
LogService.AddSys_Log(CurrUser, TemporaryElectricity.Code, TemporaryElectricity.TemporaryElectricityId, Const.ProjectTemporaryElectricityListMenuId, "增加临时用电方案");
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
188
SGGL/FineUIPro.Web/HSSE/Solution/TemporaryElectricityEdit.aspx.designer.cs
generated
Normal file
188
SGGL/FineUIPro.Web/HSSE/Solution/TemporaryElectricityEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,188 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TemporaryElectricityEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ContentPanel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtContent 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRemark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCompileMan 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCompileMan;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCompileDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtCompileDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbTemp 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbTemp;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// imgBtnFile 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button imgBtnFile;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdAttachUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,100 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemporaryElectricityView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Solution.TemporaryElectricityView" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<title>临时用电方案</title>
|
||||||
|
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<script src="../../Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||||
|
<style type="text/css">
|
||||||
|
.labcenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-grid-row .f-grid-cell-inner {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:ContentPanel ID="ContentPanel2" Title="临时用电方案" ShowBorder="true"
|
||||||
|
BodyPadding="10px" EnableCollapse="true" ShowHeader="false" AutoScroll="true"
|
||||||
|
runat="server">
|
||||||
|
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCode" runat="server" Readonly="true" Required="true" ShowRedStar="true" Label="编号" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtName" runat="server" Readonly="true" Required="true" ShowRedStar="true" Label="名称" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtContent" runat="server" Readonly="true" Label="内容" MaxLength="200" Height="100px" LabelAlign="Right">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRemark" runat="server" Readonly="true" Label="备注" MaxLength="500" Height="80px" LabelAlign="Right">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCompileMan" runat="server" Readonly="true" Label="编制人" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DatePicker ID="txtCompileDate" ShowRedStar="true" Required="true" Readonly="true" runat="server" Label="编制日期" LabelAlign="Right" EnableEdit="true">
|
||||||
|
</f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</f:ContentPanel>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:Label runat="server" ID="lbTemp">
|
||||||
|
</f:Label>
|
||||||
|
<f:Button ID="imgBtnFile" Text="文件" ToolTip="上传及查看" Icon="TableCell" runat="server" OnClick="imgBtnFile_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:HiddenField ID="hdId" runat="server">
|
||||||
|
</f:HiddenField>
|
||||||
|
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||||
|
</f:HiddenField>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
</f:Form>
|
||||||
|
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" OnClose="WindowAtt_Close" runat="server" IsModal="true" Width="700px"
|
||||||
|
Height="550px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,78 @@
|
||||||
|
using BLL;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using AspNet = System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
public partial class TemporaryElectricityView : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
public string TemporaryElectricityId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["TemporaryElectricityId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["TemporaryElectricityId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
TemporaryElectricityId = Request.Params["TemporaryElectricityId"];
|
||||||
|
if (!string.IsNullOrEmpty(TemporaryElectricityId))
|
||||||
|
{
|
||||||
|
hdId.Text = this.TemporaryElectricityId;
|
||||||
|
Model.Solution_TemporaryElectricity TemporaryElectricity = BLL.TemporaryElectricityService.GetTemporaryElectricityByTemporaryElectricityId(TemporaryElectricityId);
|
||||||
|
this.txtCode.Text = TemporaryElectricity.Code;
|
||||||
|
this.txtName.Text = TemporaryElectricity.Name;
|
||||||
|
this.txtContent.Text = TemporaryElectricity.Content;
|
||||||
|
this.txtRemark.Text = TemporaryElectricity.Remark;
|
||||||
|
if (!string.IsNullOrEmpty(TemporaryElectricity.CompileMan))
|
||||||
|
{
|
||||||
|
this.txtCompileMan.Text = UserService.GetUserNameByUserId(TemporaryElectricity.CompileMan);
|
||||||
|
}
|
||||||
|
if (TemporaryElectricity.CompileDate != null)
|
||||||
|
{
|
||||||
|
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", TemporaryElectricity.CompileDate);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtCompileMan.Text = this.CurrUser.UserName;
|
||||||
|
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void imgBtnFile_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(hdId.Text))
|
||||||
|
{
|
||||||
|
hdId.Text = SQLHelper.GetNewID();
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TemporaryElectricity&menuId={1}", hdId.Text, BLL.Const.ProjectTemporaryElectricityListMenuId)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
179
SGGL/FineUIPro.Web/HSSE/Solution/TemporaryElectricityView.aspx.designer.cs
generated
Normal file
179
SGGL/FineUIPro.Web/HSSE/Solution/TemporaryElectricityView.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,179 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.Solution
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TemporaryElectricityView
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ContentPanel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtContent 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRemark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCompileMan 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCompileMan;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCompileDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtCompileDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbTemp 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbTemp;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// imgBtnFile 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button imgBtnFile;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdAttachUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,122 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitHazardRegister.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Supervise.UnitHazardRegister" %>
|
||||||
|
|
||||||
|
<!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" />
|
||||||
|
<style type="text/css">
|
||||||
|
.f-grid-row .f-grid-cell-inner {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</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">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="企业级检查" EnableCollapse="true" ForceFit="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="UnitHazardRegisterId" DataIDField="UnitHazardRegisterId"
|
||||||
|
AllowSorting="true" SortField="CheckDate" SortDirection="DESC" EnableColumnLines="true"
|
||||||
|
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||||
|
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnSort="Grid1_Sort"
|
||||||
|
EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:TextBox runat="server" ID="txtSearch" Label="查询" EmptyText="编号/检查对象/检查组/评价结果"
|
||||||
|
Width="300px" AutoPostBack="true" OnTextChanged="txtSearch_TextChanged">
|
||||||
|
</f:TextBox>
|
||||||
|
|
||||||
|
<f:DropDownList ID="drpCheckMainType" runat="server" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="drpCheckMainType_SelectedIndexChanged" Label="检查大类" Width="200px" Readonly="true">
|
||||||
|
<f:ListItem Value="0" Text="安全" />
|
||||||
|
<f:ListItem Value="1" Text="质量" />
|
||||||
|
</f:DropDownList>
|
||||||
|
|
||||||
|
<f:DropDownList runat="server" ID="drpCheckType" EnableSimulateTree="True"
|
||||||
|
Label="检查类别" AutoPostBack="true" Width="260px" AutoSelectFirstItem="true"
|
||||||
|
OnSelectedIndexChanged="txtSearch_TextChanged">
|
||||||
|
</f:DropDownList>
|
||||||
|
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
|
||||||
|
<f:Button ID="btnNew" Icon="Add" EnablePostBack="false" runat="server" Text="新增" Hidden="true">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnEdit" Icon="Pencil" runat="server" OnClick="btnEdit_Click" Text="编辑" Hidden="true">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnDelete" Icon="Delete" ConfirmText="确定删除当前数据?"
|
||||||
|
OnClick="btnDelete_Click" Text="删除" Hidden="true" runat="server">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
|
||||||
|
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblNumber" runat="server"
|
||||||
|
Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'>
|
||||||
|
</asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="UnitHazardRegisterCode" DataField="UnitHazardRegisterCode"
|
||||||
|
SortField="UnitHazardRegisterCode" FieldType="String" HeaderText="编号" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="CheckDate" DataField="CheckDate" SortField="CheckDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="检查日期"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="90px" ColumnID="CheckMainTypeName" DataField="CheckMainTypeName"
|
||||||
|
FieldType="String" HeaderText="检查大类" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="CheckTypeName" DataField="CheckTypeName"
|
||||||
|
SortField="CheckTypeName" FieldType="String" HeaderText="检查类别" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="CheckObjectText" DataField="CheckObjectText"
|
||||||
|
FieldType="String" HeaderText="检查对象" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="CheckUnitName" DataField="CheckUnitName"
|
||||||
|
FieldType="String" HeaderText="检查单位" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="CheckTeam" DataField="CheckTeam" SortField="CheckTeam"
|
||||||
|
FieldType="String" HeaderText="检查组/人" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="StatesName" DataField="StatesName"
|
||||||
|
FieldType="String" HeaderText="状态" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</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:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
<f:ListItem Text="所有行" Value="100000" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="编辑企业级检查" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="true" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
|
Width="1000px" Height="660px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,166 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using Model;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
public partial class UnitHazardRegister : PageBase
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.GetButtonPower();
|
||||||
|
btnNew.OnClientClick = Window1.GetShowReference("UnitHazardRegisterEdit.aspx?type=" + Request["type"]) + "return false;";
|
||||||
|
// 获取 Type 参数
|
||||||
|
string type = Request["type"] ?? "0";
|
||||||
|
drpCheckMainType.SelectedValue = type;
|
||||||
|
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(
|
||||||
|
this.drpCheckType, type, true);
|
||||||
|
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定Grid数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
// 构建查询条件
|
||||||
|
var input = new UnitHazardRegisterInput
|
||||||
|
{
|
||||||
|
CheckMainType = drpCheckMainType.SelectedValue,
|
||||||
|
SearchText = this.txtSearch.Text.Trim(),
|
||||||
|
CheckType = this.drpCheckType.SelectedValue,
|
||||||
|
ProjectId = this.CurrUser.LoginProjectId
|
||||||
|
};
|
||||||
|
|
||||||
|
int totalCount;
|
||||||
|
|
||||||
|
// 使用新方法获取数据
|
||||||
|
var list = BLL.UnitHazardRegisterService.GetUnitHazardRegisters(
|
||||||
|
input,
|
||||||
|
Grid1.PageIndex,
|
||||||
|
Grid1.PageSize,
|
||||||
|
false,
|
||||||
|
out totalCount);
|
||||||
|
|
||||||
|
Grid1.RecordCount = totalCount;
|
||||||
|
Grid1.DataSource = list;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageIndex = e.NewPageIndex;
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
btnEdit_Click(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void txtSearch_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void drpCheckMainType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// 重新加载检查类别下拉框
|
||||||
|
string type = drpCheckMainType.SelectedValue;
|
||||||
|
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, type, true);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnEdit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
string registerId = Grid1.SelectedRowID;
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("UnitHazardRegisterEdit.aspx?UnitHazardRegisterId={0}&type={1}",
|
||||||
|
registerId, Request["type"])));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnDelete_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||||
|
{
|
||||||
|
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||||
|
{
|
||||||
|
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||||
|
if (UnitHazardRegisterService.CanDeleteRegister(rowID) || (this.CurrUser.UserId ==Const.hfnbdId || this.CurrUser.UserId == Const.sysglyId))
|
||||||
|
{
|
||||||
|
BLL.UnitHazardRegisterItemService.DeleteItemsByRegisterId(rowID);
|
||||||
|
BLL.UnitHazardRegisterService.DeleteUnitHazardRegisterById(rowID);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("该检查已进入整改流程不允许删除!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BindGrid();
|
||||||
|
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnOut_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string type = Request["type"] ?? "0";
|
||||||
|
string typeText = type == "0" ? "安全" : "质量";
|
||||||
|
|
||||||
|
Response.ClearContent();
|
||||||
|
Response.ContentType = "application/octet-stream";
|
||||||
|
Response.AddHeader("Content-Disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("企业" + typeText + "检查.xls", System.Text.Encoding.UTF8));
|
||||||
|
Response.Charset = "UTF-8";
|
||||||
|
|
||||||
|
Grid1.PageSize = 100000;
|
||||||
|
BindGrid();
|
||||||
|
|
||||||
|
Response.Write(GetGridTableHtml(Grid1));
|
||||||
|
Response.End();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GetButtonPower()
|
||||||
|
{
|
||||||
|
string menuId = Request["type"] == "0" ?
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety :
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Quality;
|
||||||
|
|
||||||
|
var buttonList = BLL.CommonService.GetAllButtonList(
|
||||||
|
this.CurrUser.LoginProjectId, this.CurrUser.UserId, menuId);
|
||||||
|
if (buttonList.Count > 0)
|
||||||
|
{
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnAdd)) btnNew.Hidden = false;
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnModify)) btnEdit.Hidden = false;
|
||||||
|
if (buttonList.Contains(BLL.Const.BtnDelete)) btnDelete.Hidden = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,170 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class UnitHazardRegister
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSearch 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtSearch;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpCheckMainType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpCheckMainType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpCheckType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpCheckType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnNew 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnNew;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnEdit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnEdit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnDelete 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnDelete;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnOut 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnOut;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,169 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitHazardRegisterEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Supervise.UnitHazardRegisterEdit" %>
|
||||||
|
|
||||||
|
<!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" />
|
||||||
|
<style type="text/css">
|
||||||
|
.labcenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-grid-row .f-grid-cell-inner {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtUnitHazardRegisterCode" runat="server" Label="检查编号" Required="true"
|
||||||
|
FocusOnPageLoad="true" MaxLength="50" ShowRedStar="true">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="检查日期" ID="dpkCheckDate" Required="true" ShowRedStar="true">
|
||||||
|
</f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpCheckMainType" runat="server" EmptyText="请选择检查大类" ShowRedStar="true" Readonly="true"
|
||||||
|
Label="检查大类" AutoPostBack="true" OnSelectedIndexChanged="drpCheckMainType_SelectedIndexChanged" Required="true">
|
||||||
|
<f:ListItem Value="0" Text="安全" />
|
||||||
|
<f:ListItem Value="1" Text="质量" />
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DropDownList runat="server" ID="drpCheckType" EnableEdit="true" LabelAlign="Right"
|
||||||
|
Label="检查类别" AutoSelectFirstItem="true" Required="true" ShowRedStar="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="ddlCheckUnitId" runat="server" EmptyText="请选择检查单位" OnSelectedIndexChanged="ddlCheckUnitId_SelectedIndexChanged"
|
||||||
|
Label="检查单位" ShowRedStar="true" Required="true" AutoSelectFirstItem="true" AutoPostBack="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="ddlProjectId" runat="server" EmptyText="请选择项目" EnableEdit="true"
|
||||||
|
Label="检查对象" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="ddlProjectId_SelectedIndexChanged" Required="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DropDownList ID="ddlInsResponsibleUserId" runat="server" EmptyText="请选择受检责任人" ShowRedStar="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCheckTeam" runat="server" Label="检查组/人" MaxLength="200" Width="400px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" ShowBorder="false"
|
||||||
|
Title="问题明细" EnableCollapse="true">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" OnRowCommand="Grid1_RowCommand" DataIDField="UnitHazardRegisterItemId"
|
||||||
|
DataKeyNames="UnitHazardRegisterItemId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||||
|
EnableColumnLines="true" Height="350px" AllowCellEditing="true" ClicksToEdit="1" OnPreDataBound="Grid1_PreDataBound">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnAdd" Icon="Add" runat="server" Text="新增问题" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnAdd_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center" />
|
||||||
|
<f:RenderField Width="200px" ColumnID="ProblemDescription" DataField="ProblemDescription"
|
||||||
|
FieldType="String" HeaderText="问题描述" HeaderTextAlign="Center" TextAlign="Left"
|
||||||
|
ExpandUnusedSpace="true">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtProblemDescription" runat="server" MaxLength="500">
|
||||||
|
</f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:TemplateField ColumnID="tfImageUrl1" Width="120px" HeaderText="问题图片" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lbImageUrl1" runat="server" Text='<%# BLL.UploadAttachmentService.ConvertImageUrlByImage(Eval("UnitHazardRegisterItemId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="ProblemType" DataField="ProblemType"
|
||||||
|
FieldType="String" HeaderText="问题类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||||
|
<Editor>
|
||||||
|
<f:DropDownList ID="drpProblemType" runat="server" EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="80px" ColumnID="RiskLevel" DataField="RiskLevel"
|
||||||
|
FieldType="String" HeaderText="风险级别" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
<Editor>
|
||||||
|
<f:DropDownList ID="drpRiskLevel" runat="server">
|
||||||
|
<f:ListItem Value="一般" Text="一般" />
|
||||||
|
<f:ListItem Value="较大" Text="较大" />
|
||||||
|
<f:ListItem Value="重大" Text="重大" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="RectifyRequirement" DataField="RectifyRequirement"
|
||||||
|
FieldType="String" HeaderText="整改要求" HeaderTextAlign="Center" TextAlign="Left">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtRectifyRequirement" runat="server" MaxLength="500">
|
||||||
|
</f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:LinkButtonField ID="lbUpload" Width="90px" HeaderText="问题图片上传" ConfirmTarget="Top" CommandName="attchUrl"
|
||||||
|
TextAlign="Center" ToolTip="上传" Text="上传" />
|
||||||
|
<f:LinkButtonField ID="lbDelete" ColumnID="Delete" Width="50px" EnablePostBack="false" Icon="Delete"
|
||||||
|
HeaderTextAlign="Center" HeaderText="删除" />
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:ContentPanel>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" Text="保存"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1" Text="提交"
|
||||||
|
OnClick="btnSubmit_Click">
|
||||||
|
</f:Button>
|
||||||
|
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server"
|
||||||
|
Icon="SystemClose" Text="关闭">
|
||||||
|
</f:Button>
|
||||||
|
<f:TextBox Hidden="true" ID="hdId" runat="server">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox Hidden="true" ID="hdAttachUrl" runat="server">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
</f:Form>
|
||||||
|
<f:Window ID="Window1" Title="上传图片" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="600px" Height="400px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowAtt" Title="上传附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="true" runat="server" OnClose="WindowAtt_Close" IsModal="true" Width="750px" Height="500px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,425 @@
|
||||||
|
using BLL;
|
||||||
|
using FineUIPro.Web.BaseInfo;
|
||||||
|
using FineUIPro.Web.SysManage;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
using Model;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
public partial class UnitHazardRegisterEdit : PageBase
|
||||||
|
{
|
||||||
|
#region Fields
|
||||||
|
|
||||||
|
private List<View_UnitHazardRegisterItem> items = new List<View_UnitHazardRegisterItem>();
|
||||||
|
|
||||||
|
#endregion Fields
|
||||||
|
|
||||||
|
#region Properties
|
||||||
|
|
||||||
|
public string UnitHazardRegisterId
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["UnitHazardRegisterId"]; }
|
||||||
|
set { ViewState["UnitHazardRegisterId"] = value; }
|
||||||
|
}
|
||||||
|
public string type
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["type"]; }
|
||||||
|
set { ViewState["type"] = value; }
|
||||||
|
}
|
||||||
|
#endregion Properties
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
// 获取 Type 参数
|
||||||
|
type = Request["type"] ?? "0";
|
||||||
|
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
|
||||||
|
InitDropList();
|
||||||
|
|
||||||
|
this.UnitHazardRegisterId = Request.Params["UnitHazardRegisterId"];
|
||||||
|
var register = BLL.UnitHazardRegisterService.GetUnitHazardRegisterById(this.UnitHazardRegisterId);
|
||||||
|
|
||||||
|
if (register != null)
|
||||||
|
{
|
||||||
|
// 编辑模式 - 加载数据
|
||||||
|
this.txtUnitHazardRegisterCode.Text = register.UnitHazardRegisterCode;
|
||||||
|
if (register.CheckDate != null)
|
||||||
|
{
|
||||||
|
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", register.CheckDate);
|
||||||
|
}
|
||||||
|
this.drpCheckMainType.SelectedValue = register.CheckMainType;
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(register.CheckType))
|
||||||
|
{
|
||||||
|
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(
|
||||||
|
this.drpCheckType, register.CheckMainType, false);
|
||||||
|
this.drpCheckType.SelectedValue = register.CheckType;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(register.ProjectId))
|
||||||
|
{
|
||||||
|
this.ddlProjectId.SelectedValue = register.ProjectId;
|
||||||
|
this.ddlInsResponsibleUserId.Items.Clear();
|
||||||
|
BLL.UserService.InitUserDropDownList(this.ddlInsResponsibleUserId, this.ddlProjectId.SelectedValue, true, null);
|
||||||
|
if (!string.IsNullOrWhiteSpace(register.InsResponsibleUserId))
|
||||||
|
{
|
||||||
|
this.ddlInsResponsibleUserId.SelectedValue = register.InsResponsibleUserId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(register.CheckUnitId))
|
||||||
|
{
|
||||||
|
this.ddlCheckUnitId.SelectedValue = register.CheckUnitId;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.txtCheckTeam.Text = register.CheckTeam;
|
||||||
|
|
||||||
|
// 加载明细
|
||||||
|
items = BLL.UnitHazardRegisterItemService.GetItemsByRegisterId(this.UnitHazardRegisterId)
|
||||||
|
.Select(x => new View_UnitHazardRegisterItem
|
||||||
|
{
|
||||||
|
UnitHazardRegisterItemId = x.UnitHazardRegisterItemId,
|
||||||
|
ProblemDescription = x.ProblemDescription,
|
||||||
|
ProblemType = x.ProblemType,
|
||||||
|
RiskLevel = x.RiskLevel,
|
||||||
|
RectifyRequirement = x.RectifyRequirement,
|
||||||
|
CompleteStatus = x.CompleteStatus,
|
||||||
|
CompletedDate = x.CompletedDate
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
if (register.States> (int)UnitHazardRegisterService.StateInt.待提交)
|
||||||
|
{
|
||||||
|
btnAdd.Hidden = true;
|
||||||
|
btnSave.Hidden = true;
|
||||||
|
btnSubmit.Hidden = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// 新增模式
|
||||||
|
var unitModel = UnitService.GetUnitByUnitId(this.CurrUser.UnitId);
|
||||||
|
if (unitModel?.IsBranch == true)
|
||||||
|
{
|
||||||
|
this.ddlCheckUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var thisUnit = BLL.CommonService.GetIsThisUnit();
|
||||||
|
this.ddlCheckUnitId.SelectedValue = thisUnit.UnitId;
|
||||||
|
}
|
||||||
|
this.txtCheckTeam.Text = BLL.UnitService.GetUnitNameByUnitId(this.CurrUser.UnitId) + " " + this.CurrUser.UserName;
|
||||||
|
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
|
|
||||||
|
// 自动生成编号
|
||||||
|
int newCount= UnitHazardRegisterService.GetCount(type)+1;
|
||||||
|
this.txtUnitHazardRegisterCode.Text = newCount.ToString().PadLeft(5,'0');
|
||||||
|
}
|
||||||
|
|
||||||
|
Grid1.DataSource = items;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void InitDropList()
|
||||||
|
{
|
||||||
|
drpCheckMainType.SelectedValue = type;
|
||||||
|
// 初始化下拉框
|
||||||
|
BLL.UnitService.InitBranchUnitDropDownList(this.ddlCheckUnitId, false);
|
||||||
|
BLL.ProjectService.InitProjectDropDownList(this.ddlProjectId, ddlCheckUnitId.SelectedValue, true);
|
||||||
|
BLL.UserService.InitUserDropDownList(this.ddlInsResponsibleUserId, this.ddlProjectId.SelectedValue, true, null);
|
||||||
|
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(
|
||||||
|
this.drpCheckType, type, false);
|
||||||
|
|
||||||
|
if (type=="0")
|
||||||
|
{
|
||||||
|
this.drpProblemType.DataTextField = "RegisterTypesName";
|
||||||
|
this.drpProblemType.DataValueField = "RegisterTypesName";
|
||||||
|
this.drpProblemType.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("1"); //安全巡检类型
|
||||||
|
this.drpProblemType.DataBind();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QualityQuestionTypeService.InitQualityQuestionType(drpProblemType, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
protected void btnAdd_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
JArray teamGroupData = Grid1.GetMergedData();
|
||||||
|
List<JObject> list = new List<JObject>();
|
||||||
|
foreach (JObject teamGroupRow in teamGroupData)
|
||||||
|
{
|
||||||
|
JObject values = teamGroupRow.Value<JObject>("values");
|
||||||
|
values.Add("UnitHazardRegisterItemId", teamGroupRow.Value<string>("id"));
|
||||||
|
list.Add(values);
|
||||||
|
}
|
||||||
|
JObject defaultObj = new JObject
|
||||||
|
{ { "UnitHazardRegisterItemId",Guid.NewGuid() },
|
||||||
|
{ "ProblemDescription", "" },
|
||||||
|
{ "ProblemType", "" },
|
||||||
|
{ "RiskLevel","一般"},
|
||||||
|
{ "RectifyRequirement", "" },
|
||||||
|
{ "Delete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>", GetDeleteScript(), IconHelper.GetResolvedIconUrl(Icon.Delete)) }
|
||||||
|
};
|
||||||
|
list.Add(defaultObj);
|
||||||
|
Grid1.DataSource = list;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查大类!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查类别!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.ddlProjectId.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查对象!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查单位!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SaveNew();
|
||||||
|
SaveItem();
|
||||||
|
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查大类!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查类别!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.ddlProjectId.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查对象!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择检查单位!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SaveNew(Const.BtnSubmit);
|
||||||
|
SaveItem();
|
||||||
|
|
||||||
|
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
protected void ddlCheckUnitId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.ddlProjectId.Items.Clear();
|
||||||
|
this.ddlInsResponsibleUserId.Items.Clear();
|
||||||
|
BLL.ProjectService.InitProjectDropDownList(this.ddlProjectId,ddlCheckUnitId.SelectedValue, true);
|
||||||
|
|
||||||
|
}
|
||||||
|
protected void ddlProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.ddlInsResponsibleUserId.Items.Clear();
|
||||||
|
//BLL.UnitService.InitUnitNameByProjectIdUnitTypeDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, Const.ProjectUnitType_1, true);
|
||||||
|
BLL.UserService.InitUserDropDownList(this.ddlInsResponsibleUserId, this.ddlProjectId.SelectedValue, true, null);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void drpCheckMainType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(
|
||||||
|
this.drpCheckType, this.drpCheckMainType.SelectedValue, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PreDataBound(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// 设置LinkButtonField的点击客户端事件
|
||||||
|
LinkButtonField deleteField = Grid1.FindColumn("Delete") as LinkButtonField;
|
||||||
|
deleteField.OnClientClick = GetDeleteScript();
|
||||||
|
var register = BLL.UnitHazardRegisterService.GetUnitHazardRegisterById(this.UnitHazardRegisterId);
|
||||||
|
|
||||||
|
if (register!=null&& register.States > (int)UnitHazardRegisterService.StateInt.待提交)
|
||||||
|
{
|
||||||
|
LinkButtonField lbUpload = Grid1.FindColumn(6) as LinkButtonField;
|
||||||
|
LinkButtonField lbDelete = Grid1.FindColumn(7) as LinkButtonField;
|
||||||
|
|
||||||
|
lbUpload.Enabled = false;
|
||||||
|
lbDelete.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||||
|
{
|
||||||
|
string itemId = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||||
|
string menuId = Request["type"] == "0" ?
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety :
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Quality;
|
||||||
|
if (e.CommandName == "attchUrl")
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/UnitHazardRegister&menuId={1}&edit=1", itemId, menuId)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void SaveItem()
|
||||||
|
{
|
||||||
|
JArray teamGroupData = Grid1.GetMergedData();
|
||||||
|
foreach (JObject teamGroupRow in teamGroupData)
|
||||||
|
{
|
||||||
|
JObject values = teamGroupRow.Value<JObject>("values");
|
||||||
|
|
||||||
|
Model.Supervise_UnitHazardRegisterItem registerItem = new Model.Supervise_UnitHazardRegisterItem
|
||||||
|
{
|
||||||
|
UnitHazardRegisterItemId = teamGroupRow.Value<string>("id"),
|
||||||
|
UnitHazardRegisterId = this.UnitHazardRegisterId,
|
||||||
|
ProblemDescription = values.Value<string>("ProblemDescription"),
|
||||||
|
ProblemType = values.Value<string>("ProblemType"),
|
||||||
|
RiskLevel = values.Value<string>("RiskLevel"),
|
||||||
|
RectifyRequirement = values.Value<string>("RectifyRequirement"),
|
||||||
|
CompleteStatus = 0
|
||||||
|
};
|
||||||
|
if (UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(registerItem.UnitHazardRegisterItemId) != null)
|
||||||
|
{
|
||||||
|
UnitHazardRegisterItemService.UpdateUnitHazardRegisterItem(registerItem);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BLL.UnitHazardRegisterItemService.AddUnitHazardRegisterItem(registerItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void SaveNew(string type="")
|
||||||
|
{
|
||||||
|
Supervise_UnitHazardRegister register = new Supervise_UnitHazardRegister
|
||||||
|
{
|
||||||
|
UnitHazardRegisterCode = this.txtUnitHazardRegisterCode.Text.Trim(),
|
||||||
|
CheckDate = Funs.GetNewDateTime(this.dpkCheckDate.Text.Trim()),
|
||||||
|
CheckMainType = this.drpCheckMainType.SelectedValue,
|
||||||
|
CheckType = this.drpCheckType.SelectedValue,
|
||||||
|
ProjectId = this.ddlProjectId.SelectedValue,
|
||||||
|
CheckUnitId = this.ddlCheckUnitId.SelectedValue,
|
||||||
|
InsResponsibleUserId = this.ddlInsResponsibleUserId.SelectedValue,
|
||||||
|
CheckTeam = this.txtCheckTeam.Text.Trim(),
|
||||||
|
CompileMan = this.CurrUser.UserId,
|
||||||
|
States = (int)UnitHazardRegisterService.StateInt.待提交
|
||||||
|
};
|
||||||
|
if (!string.IsNullOrEmpty(type))
|
||||||
|
{
|
||||||
|
|
||||||
|
register.States = (int)UnitHazardRegisterService.StateInt.待整改;
|
||||||
|
}
|
||||||
|
if (string.IsNullOrWhiteSpace(this.UnitHazardRegisterId))
|
||||||
|
{
|
||||||
|
// 新增
|
||||||
|
register.UnitHazardRegisterId = SQLHelper.GetNewID(typeof(Supervise_UnitHazardRegister));
|
||||||
|
this.UnitHazardRegisterId = register.UnitHazardRegisterId;
|
||||||
|
BLL.UnitHazardRegisterService.AddUnitHazardRegister(register);
|
||||||
|
|
||||||
|
// 增加一条编码记录
|
||||||
|
BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety, register.ProjectId, null,
|
||||||
|
register.UnitHazardRegisterId, register.CheckDate);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// 更新
|
||||||
|
register.UnitHazardRegisterId = this.UnitHazardRegisterId;
|
||||||
|
BLL.UnitHazardRegisterService.UpdateUnitHazardRegister(register);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
// 刷新Grid数据
|
||||||
|
items = BLL.UnitHazardRegisterItemService.GetItemsByRegisterId(this.UnitHazardRegisterId)
|
||||||
|
.Select(x => new View_UnitHazardRegisterItem
|
||||||
|
{
|
||||||
|
UnitHazardRegisterItemId = x.UnitHazardRegisterItemId,
|
||||||
|
ProblemDescription = x.ProblemDescription,
|
||||||
|
ProblemType = x.ProblemType,
|
||||||
|
RiskLevel = x.RiskLevel,
|
||||||
|
RectifyRequirement = x.RectifyRequirement,
|
||||||
|
CompleteStatus = x.CompleteStatus,
|
||||||
|
CompletedDate = x.CompletedDate
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
Grid1.DataSource = items;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
// 刷新Grid数据
|
||||||
|
JArray teamGroupData = Grid1.GetMergedData();
|
||||||
|
List<JObject> list = new List<JObject>();
|
||||||
|
foreach (JObject teamGroupRow in teamGroupData)
|
||||||
|
{
|
||||||
|
JObject values = teamGroupRow.Value<JObject>("values");
|
||||||
|
values.Add("UnitHazardRegisterItemId", teamGroupRow.Value<string>("id"));
|
||||||
|
list.Add(values);
|
||||||
|
}
|
||||||
|
Grid1.DataSource = list;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除提示
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private string GetDeleteScript()
|
||||||
|
{
|
||||||
|
return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion Methods
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查明细视图类
|
||||||
|
/// </summary>
|
||||||
|
public class View_UnitHazardRegisterItem
|
||||||
|
{
|
||||||
|
#region Properties
|
||||||
|
|
||||||
|
public DateTime? CompletedDate { get; set; }
|
||||||
|
public int? CompleteStatus { get; set; }
|
||||||
|
public string ProblemDescription { get; set; }
|
||||||
|
public string ProblemImageUrl { get; set; }
|
||||||
|
public string ProblemType { get; set; }
|
||||||
|
public string RectifyRequirement { get; set; }
|
||||||
|
public string RiskLevel { get; set; }
|
||||||
|
public string UnitHazardRegisterItemId { get; set; }
|
||||||
|
|
||||||
|
#endregion Properties
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,287 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class UnitHazardRegisterEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtUnitHazardRegisterCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtUnitHazardRegisterCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// dpkCheckDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker dpkCheckDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpCheckMainType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpCheckMainType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpCheckType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpCheckType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlCheckUnitId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlCheckUnitId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlProjectId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlProjectId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlInsResponsibleUserId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlInsResponsibleUserId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckTeam 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckTeam;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ContentPanel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAdd 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnAdd;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProblemDescription 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProblemDescription;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbImageUrl1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lbImageUrl1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpProblemType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProblemType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpRiskLevel 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpRiskLevel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRectifyRequirement 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtRectifyRequirement;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbUpload 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.LinkButtonField lbUpload;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbDelete 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.LinkButtonField lbDelete;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSubmit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSubmit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox hdId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdAttachUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox hdAttachUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,225 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitHazardRegisterRecord.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Supervise.UnitHazardRegisterRecord" %>
|
||||||
|
|
||||||
|
<!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" />
|
||||||
|
<link href="~/res/css/viewer.min.css" rel="stylesheet" />
|
||||||
|
<script src="../../res/js/viewer.min.js"></script>
|
||||||
|
<style type="text/css">
|
||||||
|
.f-grid-row .f-grid-cell-inner {
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imgPreview {
|
||||||
|
display: none;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%; /*容器占满整个屏幕*/
|
||||||
|
height: 100%;
|
||||||
|
position: fixed;
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.imgPreview img {
|
||||||
|
z-index: 100;
|
||||||
|
width: 60%;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%,-50%);
|
||||||
|
}
|
||||||
|
/*添加鼠标移入图片效果*/
|
||||||
|
.img {
|
||||||
|
cursor: url("ico/放大镜.png"), auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</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="VBox" BodyPadding="5px">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="企业级检查记录"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="UnitHazardRegisterItemId" DataIDField="UnitHazardRegisterItemId"
|
||||||
|
AllowSorting="true" SortField="CheckDate" SortDirection="DESC" OnSort="Grid1_Sort"
|
||||||
|
EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
|
||||||
|
OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand" ForceFit="true"
|
||||||
|
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:TextBox runat="server" Label="检查组/人" ID="txtCheckTeam" EmptyText="输入查询条件" AutoPostBack="true"
|
||||||
|
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="250px" LabelWidth="90px">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox runat="server" Label="检查类别" ID="txtCheckType" EmptyText="输入查询条件" AutoPostBack="true"
|
||||||
|
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="250px" LabelWidth="90px">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox runat="server" Label="问题描述" ID="txtProblem" EmptyText="输入查询条件" AutoPostBack="true"
|
||||||
|
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="300px" LabelWidth="90px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DatePicker ID="txtStartTime" runat="server" Label="检查时间" LabelAlign="Right"
|
||||||
|
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="90px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:Label ID="Label3" runat="server" Text="至">
|
||||||
|
</f:Label>
|
||||||
|
<f:DatePicker ID="txtEndTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||||
|
Width="130px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:DropDownList ID="drpRiskLevel" runat="server" Label="风险级别" AutoPostBack="true" EmptyText="-请选择-" AutoSelectFirstItem="false"
|
||||||
|
OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="90px" LabelAlign="Right" Width="200px">
|
||||||
|
<f:ListItem Text="一般" Value="一般" />
|
||||||
|
<f:ListItem Text="较大" Value="较大" />
|
||||||
|
<f:ListItem Text="重大" Value="重大" />
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DropDownList ID="drpProblemStates" runat="server" Label="问题整改状态" AutoPostBack="true" EmptyText="-请选择-" AutoSelectFirstItem="false"
|
||||||
|
OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="120px" LabelAlign="Right" Width="200px">
|
||||||
|
<f:ListItem Text="待整改" Value="0" />
|
||||||
|
<f:ListItem Text="已整改" Value="1" />
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnEdit" Icon="Pencil" runat="server" OnClick="btnEdit_Click" Text="编辑" Hidden="true">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
|
||||||
|
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center">
|
||||||
|
<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="UnitHazardRegisterCode" DataField="UnitHazardRegisterCode"
|
||||||
|
SortField="UnitHazardRegisterCode" FieldType="String" HeaderText="检查编号" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="CheckDate" DataField="CheckDate"
|
||||||
|
SortField="CheckDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
|
||||||
|
HeaderText="检查日期" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="80px" ColumnID="CheckMainTypeName" DataField="CheckMainTypeName"
|
||||||
|
FieldType="String" HeaderText="检查大类" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="CheckTypeName" DataField="CheckTypeName"
|
||||||
|
SortField="CheckTypeName" FieldType="String" HeaderText="检查类别" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="300px" ColumnID="ProblemDescription" DataField="ProblemDescription"
|
||||||
|
FieldType="String" HeaderText="问题描述" TextAlign="Left" HeaderTextAlign="Center"
|
||||||
|
ExpandUnusedSpace="true">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="ProblemType" DataField="ProblemType"
|
||||||
|
FieldType="String" HeaderText="问题类型" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="80px" ColumnID="RiskLevel" DataField="RiskLevel"
|
||||||
|
FieldType="String" HeaderText="风险级别" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="250px" ColumnID="RectifyRequirement" DataField="RectifyRequirement"
|
||||||
|
FieldType="String" HeaderText="整改要求" TextAlign="Left" HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:TemplateField ColumnID="tfImageUrl1" Width="120px" HeaderText="整改前" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lbImageUrl1" runat="server" Text='<%# BLL.UploadAttachmentService.ConvertImageUrlByImage(Eval("UnitHazardRegisterItemId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:TemplateField ColumnID="tfImageUrl2" Width="120px" HeaderText="整改后" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Left">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lbImageUrl2" runat="server" Text='<%# BLL.UploadAttachmentService.ConvertImageUrlByImage(Eval("UnitHazardRegisterItemId")+"-R") %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<%-- <f:RenderField Width="80px" ColumnID="StatesName" DataField="StatesName"
|
||||||
|
SortField="StatesName" FieldType="String" HeaderText="检查单状态" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>--%>
|
||||||
|
<f:RenderField Width="80px" ColumnID="ProblemStatesName" DataField="ProblemStatesName"
|
||||||
|
SortField="ProblemStatesName" FieldType="String" HeaderText="整改状态" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="80px" ColumnID="InsResponsibleUserName" DataField="InsResponsibleUserName"
|
||||||
|
SortField="InsResponsibleUserName" FieldType="String" HeaderText="整改负责人" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</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:ListItem Text="10" Value="10" Selected="true" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
<f:ListItem Text="所有行" Value="100000" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="查看明细" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
|
Width="900px" Height="580px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowAtt" Title="问题图片" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="750px"
|
||||||
|
Height="500px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
<div class="imgPreview">
|
||||||
|
<img src="#" alt="" id="imgPreview" />
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var imgID = '<%=Grid1.ClientID %>';
|
||||||
|
function showImg() {
|
||||||
|
var $wrap = $("#" + imgID)
|
||||||
|
console.log($wrap)
|
||||||
|
$wrap.find('img').on('click', function () {
|
||||||
|
var src = $(this).attr('src');
|
||||||
|
console.log(src)
|
||||||
|
if (src.indexOf("/res/icon") != -1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var div = document.createElement('div');
|
||||||
|
div.style.display = 'none';
|
||||||
|
div.innerHTML = '<img src="' + src + '">'; // 创建一个包含图片的 div 元素
|
||||||
|
document.body.appendChild(div); // 将 div 元素添加到页面中
|
||||||
|
|
||||||
|
var viewer = new Viewer(div.firstChild); // 创建 Viewer 实例并传入图片元素
|
||||||
|
viewer.show(); // 显示图片预览
|
||||||
|
|
||||||
|
// 在 Viewer 关闭后移除添加的 div 元素
|
||||||
|
viewer.on('hidden', function () {
|
||||||
|
document.body.removeChild(div);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
$('.imgPreview').on('click', function () {
|
||||||
|
// $('.imgPreview').hide()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
F.ready(function () {
|
||||||
|
showImg();
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,288 @@
|
||||||
|
using BLL;
|
||||||
|
using Model;
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using AspNet = System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
public partial class UnitHazardRegisterRecord : PageBase
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
Funs.DropDownPageSize(this.ddlPageSize);
|
||||||
|
|
||||||
|
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = this.CurrUser.PageSize.Value;
|
||||||
|
}
|
||||||
|
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
|
|
||||||
|
// 绑定表格
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
// 获取 Type 参数 (0=安全, 1=质量)
|
||||||
|
string type = Request["type"] ?? "0";
|
||||||
|
|
||||||
|
// 解析时间参数
|
||||||
|
DateTime? startTime = null;
|
||||||
|
DateTime? endTime = null;
|
||||||
|
if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
|
||||||
|
{
|
||||||
|
startTime = Funs.GetNewDateTime(txtStartTime.Text.Trim());
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||||
|
{
|
||||||
|
endTime = Funs.GetNewDateTime(txtEndTime.Text.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 解析状态参数
|
||||||
|
int? problemStates = null;
|
||||||
|
if (!string.IsNullOrEmpty(this.drpProblemStates.SelectedValue))
|
||||||
|
{
|
||||||
|
problemStates = Convert.ToInt32(this.drpProblemStates.SelectedValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 构建查询条件
|
||||||
|
var input = new UnitHazardRegisterItemInput
|
||||||
|
{
|
||||||
|
CheckMainType = type,
|
||||||
|
CheckTeam = this.txtCheckTeam.Text.Trim(),
|
||||||
|
CheckType = this.txtCheckType.Text.Trim(),
|
||||||
|
Problem = this.txtProblem.Text.Trim(),
|
||||||
|
StartTime = startTime,
|
||||||
|
EndTime = endTime,
|
||||||
|
RiskLevel = this.drpRiskLevel.SelectedValue,
|
||||||
|
ProblemStates = problemStates,
|
||||||
|
UnitId = this.CurrUser.UnitId
|
||||||
|
};
|
||||||
|
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||||
|
{
|
||||||
|
input.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
|
}
|
||||||
|
int totalCount;
|
||||||
|
|
||||||
|
// 使用新方法获取数据
|
||||||
|
var list = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItems(
|
||||||
|
input,
|
||||||
|
Grid1.PageIndex,
|
||||||
|
Grid1.PageSize,
|
||||||
|
false,
|
||||||
|
out totalCount);
|
||||||
|
|
||||||
|
Grid1.RecordCount = totalCount;
|
||||||
|
Grid1.DataSource = list;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 分页
|
||||||
|
/// </summary>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageIndex = e.NewPageIndex;
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
protected void Grid1_Sort(object sender,GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 分页显示条数下拉框
|
||||||
|
/// </summary>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.txtStartTime.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
|
||||||
|
{
|
||||||
|
if (Funs.GetNewDateTime(this.txtStartTime.Text.Trim()) > Funs.GetNewDateTime(this.txtEndTime.Text.Trim()))
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗
|
||||||
|
/// </summary>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid行双击事件
|
||||||
|
/// </summary>
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string itemId = Grid1.SelectedRowID;
|
||||||
|
// 打开单个问题记录整改编辑界面
|
||||||
|
var item = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(itemId);
|
||||||
|
if (item != null)
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("UnitHazardRegisterRecordEdit.aspx?ItemId={0}&RegisterId={1}&type={2}",
|
||||||
|
itemId, item.UnitHazardRegisterId, Request["type"])));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid行命令事件
|
||||||
|
/// </summary>
|
||||||
|
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||||
|
{
|
||||||
|
string itemId = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||||
|
|
||||||
|
if (e.CommandName == "attchUrl")
|
||||||
|
{
|
||||||
|
// 查看问题图片
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||||
|
String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/UnitHazardRegister&menuId={1}&edit=1&type=-1",
|
||||||
|
itemId, Request["type"] == "0" ? BLL.Const.UnitHazardRegisterMenu_Safety : BLL.Const.UnitHazardRegisterMenu_Quality)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 导出按钮
|
||||||
|
/// </summary>
|
||||||
|
protected void btnOut_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string type = Request["type"] ?? "0";
|
||||||
|
string typeText = type == "0" ? "安全" : "质量";
|
||||||
|
|
||||||
|
Response.ClearContent();
|
||||||
|
Response.ContentType = "application/octet-stream";
|
||||||
|
Response.AddHeader("Content-Disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("企业" + typeText + "检查记录.xls", System.Text.Encoding.UTF8));
|
||||||
|
Response.Charset = "UTF-8";
|
||||||
|
|
||||||
|
Grid1.PageSize = 100000;
|
||||||
|
BindGrid();
|
||||||
|
|
||||||
|
Response.Write(GetGridTableHtml(Grid1));
|
||||||
|
Response.End();
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0108 // “HiddenRectificationList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
|
||||||
|
/// <summary>
|
||||||
|
/// 导出方法
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="grid"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
private string GetGridTableHtml(Grid grid)
|
||||||
|
#pragma warning restore CS0108 // “HiddenRectificationList.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
|
||||||
|
{
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
|
||||||
|
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
|
||||||
|
sb.Append("<tr>");
|
||||||
|
foreach (GridColumn column in grid.Columns)
|
||||||
|
{
|
||||||
|
if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del")
|
||||||
|
{
|
||||||
|
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sb.Append("</tr>");
|
||||||
|
foreach (GridRow row in grid.Rows)
|
||||||
|
{
|
||||||
|
sb.Append("<tr>");
|
||||||
|
foreach (GridColumn column in grid.Columns)
|
||||||
|
{
|
||||||
|
if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del")
|
||||||
|
{
|
||||||
|
string html = row.Values[column.ColumnIndex].ToString();
|
||||||
|
if (column.ColumnID == "tfPageIndex")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lblPageIndex") as AspNet.Label).Text;
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "tfImageUrl")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lbtnImageUrl") as AspNet.LinkButton).Text;
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "tfRectificationImageUrl")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lbtnRectificationImageUrl") as AspNet.LinkButton).Text;
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "ProblemTypes")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lbProblemTypes") as AspNet.Label).Text;
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "tfImageUrl1")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lbImageUrl1") as AspNet.Label).Text;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "tfImageUrl2")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("lbImageUrl2") as AspNet.Label).Text;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (column.ColumnID == "CheckCycle")
|
||||||
|
{
|
||||||
|
html = (row.FindControl("Label2") as AspNet.Label).Text;
|
||||||
|
}
|
||||||
|
//if (column.ColumnID == "tfCutPayment")
|
||||||
|
//{
|
||||||
|
// html = (row.FindControl("lbtnCutPayment") as AspNet.LinkButton).Text;
|
||||||
|
//}
|
||||||
|
sb.AppendFormat("<td>{0}</td>", html);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sb.Append("</tr>");
|
||||||
|
}
|
||||||
|
sb.Append("</table>");
|
||||||
|
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnEdit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string itemId = Grid1.SelectedRowID;
|
||||||
|
// 打开单个问题记录整改编辑界面
|
||||||
|
var item = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(itemId);
|
||||||
|
if (item != null)
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("UnitHazardRegisterRecordEdit.aspx?ItemId={0}&RegisterId={1}&type={2}",
|
||||||
|
itemId, item.UnitHazardRegisterId, Request["type"])));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
242
SGGL/FineUIPro.Web/ZHGL/Supervise/UnitHazardRegisterRecord.aspx.designer.cs
generated
Normal file
242
SGGL/FineUIPro.Web/ZHGL/Supervise/UnitHazardRegisterRecord.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,242 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class UnitHazardRegisterRecord
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckTeam 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckTeam;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProblem 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProblem;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtStartTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtStartTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtEndTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtEndTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpRiskLevel 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpRiskLevel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpProblemStates 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProblemStates;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnEdit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnEdit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnOut 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnOut;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// labNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbImageUrl1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lbImageUrl1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbImageUrl2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lbImageUrl2;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,113 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitHazardRegisterRecordEdit.aspx.cs"
|
||||||
|
Inherits="FineUIPro.Web.ZHGL.Supervise.UnitHazardRegisterRecordEdit" %>
|
||||||
|
|
||||||
|
<!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="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCheckType" runat="server" Label="检查类别" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtProblemType" runat="server" Label="问题类型" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtRiskLevel" runat="server" Label="风险级别" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtCheckDate" runat="server" Label="检查日期" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCheckTeam" runat="server" Label="检查组/人" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtCheckUnitName" runat="server" Label="检查单位" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtProblemDescription" runat="server" Label="问题描述"
|
||||||
|
Height="80px" Readonly="true">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRectifyRequirement" runat="server" Label="整改要求"
|
||||||
|
Height="60px" Readonly="true">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:LinkButton ID="btnBeforeImage" runat="server" Label="整改前照片"
|
||||||
|
Text="查看" OnClick="btnBeforeImage_Click" LabelAlign="Right">
|
||||||
|
</f:LinkButton>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRectificationMeasures" runat="server" Label="整改措施"
|
||||||
|
Height="80px" Required="true" ShowRedStar="true">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtInsResponsibleUserName" runat="server" Label="整改负责人" Readonly="true">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DatePicker ID="dpkCompletedDate" runat="server" Label="完成日期"
|
||||||
|
Required="true" ShowRedStar="true">
|
||||||
|
</f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:LinkButton ID="btnAfterImage" runat="server" Label="整改后照片"
|
||||||
|
Text="上传和查看" OnClick="btnAfterImage_Click" LabelAlign="Right">
|
||||||
|
</f:LinkButton>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
|
||||||
|
Text="保存" OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ValidateForms="SimpleForm1"
|
||||||
|
Text="提交" OnClick="btnSubmit_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server"
|
||||||
|
Icon="SystemClose" Text="关闭">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
</f:Form>
|
||||||
|
<f:Window ID="Window1" Title="文件上传" Hidden="true" EnableIFrame="true"
|
||||||
|
EnableMaximize="true" Target="Parent" EnableResize="false" runat="server"
|
||||||
|
IsModal="true" Width="750px" Height="500px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,255 @@
|
||||||
|
using BLL;
|
||||||
|
using FineUIPro.Web.BaseInfo;
|
||||||
|
using Model;
|
||||||
|
using System;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
public partial class UnitHazardRegisterRecordEdit : PageBase
|
||||||
|
{
|
||||||
|
#region 定义项
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 问题明细ID
|
||||||
|
/// </summary>
|
||||||
|
private string ItemId
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["ItemId"]; }
|
||||||
|
set { ViewState["ItemId"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 主单ID
|
||||||
|
/// </summary>
|
||||||
|
private string RegisterId
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["RegisterId"]; }
|
||||||
|
set { ViewState["RegisterId"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查大类(0=安全,1=质量)
|
||||||
|
/// </summary>
|
||||||
|
private string CheckMainType
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["CheckMainType"]; }
|
||||||
|
set { ViewState["CheckMainType"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 页面加载
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
|
||||||
|
// 获取参数
|
||||||
|
this.ItemId = Request.Params["ItemId"];
|
||||||
|
this.RegisterId = Request.Params["RegisterId"];
|
||||||
|
this.CheckMainType = Request["type"] ?? "0";
|
||||||
|
|
||||||
|
// 加载数据
|
||||||
|
if (!string.IsNullOrEmpty(this.ItemId))
|
||||||
|
{
|
||||||
|
LoadData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 加载数据
|
||||||
|
/// </summary>
|
||||||
|
private void LoadData()
|
||||||
|
{
|
||||||
|
// 获取明细记录
|
||||||
|
var item = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(this.ItemId);
|
||||||
|
if (item == null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("问题记录不存在!", MessageBoxIcon.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取主单记录
|
||||||
|
var register = BLL.UnitHazardRegisterService.GetUnitHazardRegisterById(this.RegisterId);
|
||||||
|
if (register == null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("检查记录不存在!", MessageBoxIcon.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 填充只读字段
|
||||||
|
this.txtCheckType.Text = BLL.SuperviseCheckTypeService.GetCheckTypeName(
|
||||||
|
register.CheckMainType, register.CheckType);
|
||||||
|
this.txtProblemType.Text = item.ProblemType;
|
||||||
|
this.txtRiskLevel.Text = item.RiskLevel;
|
||||||
|
|
||||||
|
if (register.CheckDate != null)
|
||||||
|
{
|
||||||
|
this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", register.CheckDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.txtCheckTeam.Text = register.CheckTeam;
|
||||||
|
this.txtCheckUnitName.Text = BLL.UnitService.GetUnitNameByUnitId(register.CheckUnitId);
|
||||||
|
this.txtProblemDescription.Text = item.ProblemDescription;
|
||||||
|
this.txtRectifyRequirement.Text = item.RectifyRequirement;
|
||||||
|
this.txtInsResponsibleUserName.Text = UserService.GetUserNameByUserId(register.InsResponsibleUserId);
|
||||||
|
|
||||||
|
// 填充可编辑字段
|
||||||
|
this.txtRectificationMeasures.Text = item.RectificationMeasures;
|
||||||
|
|
||||||
|
if (item.CompletedDate != null)
|
||||||
|
{
|
||||||
|
this.dpkCompletedDate.Text = string.Format("{0:yyyy-MM-dd}", item.CompletedDate);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.dpkCompletedDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||||
|
}
|
||||||
|
bool isPowerEdit= (this.CurrUser.UserId==Const.sysglyId|| this.CurrUser.UserId == Const.hfnbdId || this.CurrUser.UserId == register.InsResponsibleUserId) ? true: false;
|
||||||
|
// 判断是否已整改,如果已整改则隐藏保存和提交按钮
|
||||||
|
if (item.CompleteStatus == 1 || !isPowerEdit)
|
||||||
|
{
|
||||||
|
this.btnSave.Hidden = true;
|
||||||
|
this.btnSubmit.Hidden = true;
|
||||||
|
this.txtRectificationMeasures.Readonly = true;
|
||||||
|
this.dpkCompletedDate.Readonly = true;
|
||||||
|
// this.btnAfterImage.Enabled = false;
|
||||||
|
if (item.CompleteStatus != 1 && !isPowerEdit)
|
||||||
|
{
|
||||||
|
ShowNotify("您不是整改责任人,不允许修改!", MessageBoxIcon.Information);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 保存和提交
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 保存按钮
|
||||||
|
/// </summary>
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SaveData(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 提交按钮
|
||||||
|
/// </summary>
|
||||||
|
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SaveData(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 保存数据
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="isSubmit">是否提交</param>
|
||||||
|
private void SaveData(bool isSubmit)
|
||||||
|
{
|
||||||
|
var item = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(this.ItemId);
|
||||||
|
if (item == null)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("问题记录不存在!", MessageBoxIcon.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 验证:如果已整改,不允许修改
|
||||||
|
if (item.CompleteStatus == 1)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("该问题已整改完成,不允许修改!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新明细字段
|
||||||
|
item.RectificationMeasures = this.txtRectificationMeasures.Text.Trim();
|
||||||
|
item.CompletedDate = Funs.GetNewDateTime(this.dpkCompletedDate.Text.Trim());
|
||||||
|
|
||||||
|
// 如果提交,确保标记为已完成
|
||||||
|
if (isSubmit)
|
||||||
|
{
|
||||||
|
item.CompleteStatus = 1;
|
||||||
|
if (!item.CompletedDate.HasValue)
|
||||||
|
{
|
||||||
|
item.CompletedDate = DateTime.Now;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新数据库
|
||||||
|
BLL.UnitHazardRegisterItemService.UpdateUnitHazardRegisterItem(item);
|
||||||
|
|
||||||
|
if (isSubmit)
|
||||||
|
{
|
||||||
|
// 更新主单状态
|
||||||
|
UnitHazardRegisterService.UpdateRegisterStatus(this.RegisterId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 记录日志
|
||||||
|
string menuId = this.CheckMainType == "0" ?
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety :
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Quality;
|
||||||
|
|
||||||
|
BLL.LogService.AddSys_Log(this.CurrUser, item.UnitHazardRegisterItemId,
|
||||||
|
this.ItemId, menuId, BLL.Const.BtnModify);
|
||||||
|
|
||||||
|
ShowNotify(isSubmit ? "提交成功!" : "保存成功!", MessageBoxIcon.Success);
|
||||||
|
|
||||||
|
// 关闭窗口
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 附件操作
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查看整改前照片
|
||||||
|
/// </summary>
|
||||||
|
protected void btnBeforeImage_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string menuId = this.CheckMainType == "0" ?
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety :
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Quality;
|
||||||
|
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/UnitHazardRegister&menuId={1}&edit=0&type=-1",
|
||||||
|
this.ItemId, menuId)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传和查看整改后照片
|
||||||
|
/// </summary>
|
||||||
|
protected void btnAfterImage_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string menuId = this.CheckMainType == "0" ?
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Safety :
|
||||||
|
BLL.Const.UnitHazardRegisterMenu_Quality;
|
||||||
|
|
||||||
|
|
||||||
|
var item = BLL.UnitHazardRegisterItemService.GetUnitHazardRegisterItemById(this.ItemId);
|
||||||
|
if (item != null && item.CompleteStatus == 1) //已整改不允许上传
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/UnitHazardRegister/&menuId={1}&edit=1&type=-1 ",
|
||||||
|
this.ItemId + "-R", menuId)));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||||
|
String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/UnitHazardRegister/&menuId={1}&edit=1 ",
|
||||||
|
this.ItemId + "-R", menuId)));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
215
SGGL/FineUIPro.Web/ZHGL/Supervise/UnitHazardRegisterRecordEdit.aspx.designer.cs
generated
Normal file
215
SGGL/FineUIPro.Web/ZHGL/Supervise/UnitHazardRegisterRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,215 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.Supervise
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class UnitHazardRegisterRecordEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProblemType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProblemType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRiskLevel 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtRiskLevel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckTeam 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckTeam;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCheckUnitName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCheckUnitName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProblemDescription 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtProblemDescription;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRectifyRequirement 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRectifyRequirement;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnBeforeImage 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.LinkButton btnBeforeImage;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRectificationMeasures 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRectificationMeasures;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtInsResponsibleUserName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtInsResponsibleUserName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// dpkCompletedDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker dpkCompletedDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAfterImage 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.LinkButton btnAfterImage;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSubmit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSubmit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
}
|
||||||
|
}
|
||||||
1290
SGGL/Model/Model.cs
1290
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
|
|
@ -297,6 +297,10 @@
|
||||||
<Compile Include="ZHGL\DataSync\WBSBreakdownProjectOutput.cs" />
|
<Compile Include="ZHGL\DataSync\WBSBreakdownProjectOutput.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\WeldDineOutput.cs" />
|
<Compile Include="ZHGL\DataSync\WeldDineOutput.cs" />
|
||||||
<Compile Include="ZHGL\DataSync\WelderOutput.cs" />
|
<Compile Include="ZHGL\DataSync\WelderOutput.cs" />
|
||||||
|
<Compile Include="ZHGL\UnitHazardRegisterInput.cs" />
|
||||||
|
<Compile Include="ZHGL\UnitHazardRegisterItemInput.cs" />
|
||||||
|
<Compile Include="ZHGL\UnitHazardRegisterItemOutput.cs" />
|
||||||
|
<Compile Include="ZHGL\UnitHazardRegisterOutput.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查查询条件
|
||||||
|
/// </summary>
|
||||||
|
public class UnitHazardRegisterInput
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 检查大类(0=安全,1=质量)
|
||||||
|
/// </summary>
|
||||||
|
public string CheckMainType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 搜索文本
|
||||||
|
/// </summary>
|
||||||
|
public string SearchText { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查类别
|
||||||
|
/// </summary>
|
||||||
|
public string CheckType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID(权限过滤)
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,63 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查明细查询条件
|
||||||
|
/// </summary>
|
||||||
|
public class UnitHazardRegisterItemInput
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 检查大类(0=安全,1=质量)
|
||||||
|
/// </summary>
|
||||||
|
public string CheckMainType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查组/人
|
||||||
|
/// </summary>
|
||||||
|
public string CheckTeam { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查类别
|
||||||
|
/// </summary>
|
||||||
|
public string CheckType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 问题描述
|
||||||
|
/// </summary>
|
||||||
|
public string Problem { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开始时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? StartTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 结束时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? EndTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 风险级别
|
||||||
|
/// </summary>
|
||||||
|
public string RiskLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态
|
||||||
|
/// </summary>
|
||||||
|
public int? States { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 问题整改状态
|
||||||
|
/// </summary>
|
||||||
|
public int? ProblemStates { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单位ID(权限过滤)
|
||||||
|
/// </summary>
|
||||||
|
public string UnitId { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 项目id
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查明细输出实体
|
||||||
|
/// </summary>
|
||||||
|
public class UnitHazardRegisterItemOutput
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 明细ID
|
||||||
|
/// </summary>
|
||||||
|
public string UnitHazardRegisterItemId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查编号
|
||||||
|
/// </summary>
|
||||||
|
public string UnitHazardRegisterCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查日期
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? CheckDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查大类名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckMainTypeName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查类别名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckTypeName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 问题描述
|
||||||
|
/// </summary>
|
||||||
|
public string ProblemDescription { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 问题类型
|
||||||
|
/// </summary>
|
||||||
|
public string ProblemType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 风险级别
|
||||||
|
/// </summary>
|
||||||
|
public string RiskLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 整改要求
|
||||||
|
/// </summary>
|
||||||
|
public string RectifyRequirement { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态名称
|
||||||
|
/// </summary>
|
||||||
|
public string StatesName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查组/人
|
||||||
|
/// </summary>
|
||||||
|
public string CheckTeam { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查项目ID
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查单位名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckUnitName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态
|
||||||
|
/// </summary>
|
||||||
|
public int? States { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 问题整改状态
|
||||||
|
/// </summary>
|
||||||
|
public int? ProblemStates { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 问题整改状态名称
|
||||||
|
/// </summary>
|
||||||
|
public string ProblemStatesName { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 受检负责人名称
|
||||||
|
/// </summary>
|
||||||
|
public string InsResponsibleUserName { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 受检负责人Id
|
||||||
|
/// </summary>
|
||||||
|
public string InsResponsibleUserId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,75 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 企业级检查输出实体
|
||||||
|
/// </summary>
|
||||||
|
public class UnitHazardRegisterOutput
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 检查记录ID
|
||||||
|
/// </summary>
|
||||||
|
public string UnitHazardRegisterId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查编号
|
||||||
|
/// </summary>
|
||||||
|
public string UnitHazardRegisterCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查日期
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? CheckDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查大类名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckMainTypeName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查类别代码
|
||||||
|
/// </summary>
|
||||||
|
public string CheckType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查类别名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckTypeName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查对象名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckObjectText { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查单位名称
|
||||||
|
/// </summary>
|
||||||
|
public string CheckUnitName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 检查组/人
|
||||||
|
/// </summary>
|
||||||
|
public string CheckTeam { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 评价结果
|
||||||
|
/// </summary>
|
||||||
|
public string EvaluationResult { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态名称
|
||||||
|
/// </summary>
|
||||||
|
public string StatesName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 附件URL
|
||||||
|
/// </summary>
|
||||||
|
public string AttachUrl { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_PublishTargetUrl>G:\发布\五环WebApi</_PublishTargetUrl>
|
<_PublishTargetUrl>G:\发布\五环WebApi</_PublishTargetUrl>
|
||||||
<History>True|2026-03-04T11:14:37.2772043Z||;True|2026-03-01T17:32:51.9305697+08:00||;True|2026-03-01T16:45:09.4172340+08:00||;True|2026-03-01T14:50:18.5222913+08:00||;True|2026-02-28T17:34:46.4778856+08:00||;True|2026-02-28T15:29:45.4981175+08:00||;True|2026-02-28T15:22:44.8350431+08:00||;True|2026-02-28T15:16:49.0265188+08:00||;True|2026-02-28T15:01:52.0489798+08:00||;True|2026-02-28T14:40:09.1723344+08:00||;True|2026-02-28T09:47:26.7601751+08:00||;True|2026-01-24T15:12:59.9025754+08:00||;True|2026-01-19T14:30:45.4370000+08:00||;True|2025-12-24T19:02:35.3684081+08:00||;True|2025-12-18T09:29:13.2909255+08:00||;True|2025-11-25T10:18:00.9729814+08:00||;True|2025-11-25T10:14:14.6947178+08:00||;True|2025-11-25T10:06:29.1167142+08:00||;True|2025-11-25T09:25:18.3566779+08:00||;True|2025-11-24T16:07:37.5433070+08:00||;True|2025-11-19T19:50:54.0090859+08:00||;True|2025-11-19T19:29:28.5861506+08:00||;True|2025-11-19T19:14:02.6887533+08:00||;True|2025-11-19T19:08:28.7856694+08:00||;True|2025-11-17T14:41:29.0529618+08:00||;True|2025-11-17T12:28:22.9224307+08:00||;True|2025-11-17T11:17:50.1481769+08:00||;True|2025-11-07T14:46:56.1446809+08:00||;True|2025-11-05T09:32:06.4998794+08:00||;True|2025-11-04T16:39:28.2175670+08:00||;True|2025-11-04T16:39:02.3610432+08:00||;True|2025-11-04T15:44:06.1295264+08:00||;True|2025-10-31T16:41:11.6570385+08:00||;True|2025-10-30T15:58:05.2014433+08:00||;True|2025-10-29T16:22:27.7866967+08:00||;True|2025-10-29T11:19:32.1187038+08:00||;True|2025-10-24T15:59:19.4176668+08:00||;True|2025-10-23T10:17:32.2384443+08:00||;True|2025-10-23T10:09:35.0601937+08:00||;True|2025-10-23T09:59:27.2018799+08:00||;True|2025-09-29T15:39:36.8617347+08:00||;True|2025-09-29T11:28:10.9193152+08:00||;True|2025-09-29T10:59:58.2893583+08:00||;True|2025-09-23T16:56:39.6344263+08:00||;True|2025-09-23T16:44:57.4175593+08:00||;True|2025-09-23T16:44:35.0478492+08:00||;True|2025-09-23T16:06:50.5843534+08:00||;True|2025-09-22T20:54:35.9805610+08:00||;True|2025-09-22T20:45:58.7044128+08:00||;True|2025-09-22T20:40:46.7449595+08:00||;True|2025-09-22T15:14:22.9602725+08:00||;True|2025-09-22T15:08:27.5989706+08:00||;True|2025-09-22T14:54:19.5237685+08:00||;True|2025-09-18T09:53:17.9300539+08:00||;True|2025-09-16T19:11:12.4383069+08:00||;True|2025-09-02T11:14:00.9580707+08:00||;True|2025-09-02T10:52:20.0445598+08:00||;True|2025-08-29T17:56:01.6245615+08:00||;True|2025-08-29T17:55:41.2802685+08:00||;True|2025-08-09T21:27:40.2103961+08:00||;True|2025-08-06T15:31:52.1166645+08:00||;True|2025-08-04T18:56:13.9675910+08:00||;True|2025-07-23T11:12:18.0134770+08:00||;True|2025-07-23T10:36:09.9990536+08:00||;True|2025-07-23T10:35:51.8814789+08:00||;True|2025-07-21T17:46:45.4620710+08:00||;True|2025-07-21T17:40:43.9871097+08:00||;True|2025-07-21T17:29:11.9275869+08:00||;True|2025-07-21T17:05:21.7763763+08:00||;True|2025-07-18T17:55:59.4892329+08:00||;True|2025-07-18T11:08:56.2628896+08:00||;True|2025-07-18T10:53:44.2534260+08:00||;True|2025-07-18T10:27:52.6751668+08:00||;True|2025-07-18T10:03:09.1785776+08:00||;True|2025-07-18T10:02:38.1252107+08:00||;True|2025-07-17T18:19:07.5837609+08:00||;True|2025-07-17T15:40:11.9126705+08:00||;True|2025-07-11T17:54:03.0298703+08:00||;True|2025-07-11T16:19:50.3283029+08:00||;True|2025-07-11T15:49:22.5920473+08:00||;True|2025-07-02T14:39:27.0436873+08:00||;True|2025-07-02T11:18:29.1208369+08:00||;True|2025-07-01T15:52:16.6767496+08:00||;True|2025-07-01T10:14:59.0471052+08:00||;True|2025-06-28T11:40:36.0544739+08:00||;True|2025-06-27T15:10:24.4628086+08:00||;True|2025-06-27T10:31:14.8332810+08:00||;True|2025-06-27T10:13:13.3022394+08:00||;True|2025-06-26T23:51:04.1304509+08:00||;True|2025-06-26T23:34:06.4223762+08:00||;True|2025-06-26T22:42:08.9018138+08:00||;True|2025-06-26T22:16:01.8954571+08:00||;True|2025-06-26T21:19:42.2638204+08:00||;True|2025-06-25T23:22:39.7267591+08:00||;True|2025-06-25T23:19:33.2378458+08:00||;True|2025-06-25T22:18:16.2863303+08:00||;True|2025-06-25T22:10:29.2540175+08:00||;True|2025-06-25T22:00:58.5212166+08:00||;True|2025-06-25T22:00:31.2531214+08:00||;True|2025-06-25T18:33:01.5770030+08:00||;</History>
|
<History>True|2026-03-06T04:42:13.4499176Z||;True|2026-03-05T15:19:57.4320764+08:00||;True|2026-03-04T19:14:37.2772043+08:00||;True|2026-03-01T17:32:51.9305697+08:00||;True|2026-03-01T16:45:09.4172340+08:00||;True|2026-03-01T14:50:18.5222913+08:00||;True|2026-02-28T17:34:46.4778856+08:00||;True|2026-02-28T15:29:45.4981175+08:00||;True|2026-02-28T15:22:44.8350431+08:00||;True|2026-02-28T15:16:49.0265188+08:00||;True|2026-02-28T15:01:52.0489798+08:00||;True|2026-02-28T14:40:09.1723344+08:00||;True|2026-02-28T09:47:26.7601751+08:00||;True|2026-01-24T15:12:59.9025754+08:00||;True|2026-01-19T14:30:45.4370000+08:00||;True|2025-12-24T19:02:35.3684081+08:00||;True|2025-12-18T09:29:13.2909255+08:00||;True|2025-11-25T10:18:00.9729814+08:00||;True|2025-11-25T10:14:14.6947178+08:00||;True|2025-11-25T10:06:29.1167142+08:00||;True|2025-11-25T09:25:18.3566779+08:00||;True|2025-11-24T16:07:37.5433070+08:00||;True|2025-11-19T19:50:54.0090859+08:00||;True|2025-11-19T19:29:28.5861506+08:00||;True|2025-11-19T19:14:02.6887533+08:00||;True|2025-11-19T19:08:28.7856694+08:00||;True|2025-11-17T14:41:29.0529618+08:00||;True|2025-11-17T12:28:22.9224307+08:00||;True|2025-11-17T11:17:50.1481769+08:00||;True|2025-11-07T14:46:56.1446809+08:00||;True|2025-11-05T09:32:06.4998794+08:00||;True|2025-11-04T16:39:28.2175670+08:00||;True|2025-11-04T16:39:02.3610432+08:00||;True|2025-11-04T15:44:06.1295264+08:00||;True|2025-10-31T16:41:11.6570385+08:00||;True|2025-10-30T15:58:05.2014433+08:00||;True|2025-10-29T16:22:27.7866967+08:00||;True|2025-10-29T11:19:32.1187038+08:00||;True|2025-10-24T15:59:19.4176668+08:00||;True|2025-10-23T10:17:32.2384443+08:00||;True|2025-10-23T10:09:35.0601937+08:00||;True|2025-10-23T09:59:27.2018799+08:00||;True|2025-09-29T15:39:36.8617347+08:00||;True|2025-09-29T11:28:10.9193152+08:00||;True|2025-09-29T10:59:58.2893583+08:00||;True|2025-09-23T16:56:39.6344263+08:00||;True|2025-09-23T16:44:57.4175593+08:00||;True|2025-09-23T16:44:35.0478492+08:00||;True|2025-09-23T16:06:50.5843534+08:00||;True|2025-09-22T20:54:35.9805610+08:00||;True|2025-09-22T20:45:58.7044128+08:00||;True|2025-09-22T20:40:46.7449595+08:00||;True|2025-09-22T15:14:22.9602725+08:00||;True|2025-09-22T15:08:27.5989706+08:00||;True|2025-09-22T14:54:19.5237685+08:00||;True|2025-09-18T09:53:17.9300539+08:00||;True|2025-09-16T19:11:12.4383069+08:00||;True|2025-09-02T11:14:00.9580707+08:00||;True|2025-09-02T10:52:20.0445598+08:00||;True|2025-08-29T17:56:01.6245615+08:00||;True|2025-08-29T17:55:41.2802685+08:00||;True|2025-08-09T21:27:40.2103961+08:00||;True|2025-08-06T15:31:52.1166645+08:00||;True|2025-08-04T18:56:13.9675910+08:00||;True|2025-07-23T11:12:18.0134770+08:00||;True|2025-07-23T10:36:09.9990536+08:00||;True|2025-07-23T10:35:51.8814789+08:00||;True|2025-07-21T17:46:45.4620710+08:00||;True|2025-07-21T17:40:43.9871097+08:00||;True|2025-07-21T17:29:11.9275869+08:00||;True|2025-07-21T17:05:21.7763763+08:00||;True|2025-07-18T17:55:59.4892329+08:00||;True|2025-07-18T11:08:56.2628896+08:00||;True|2025-07-18T10:53:44.2534260+08:00||;True|2025-07-18T10:27:52.6751668+08:00||;True|2025-07-18T10:03:09.1785776+08:00||;True|2025-07-18T10:02:38.1252107+08:00||;True|2025-07-17T18:19:07.5837609+08:00||;True|2025-07-17T15:40:11.9126705+08:00||;True|2025-07-11T17:54:03.0298703+08:00||;True|2025-07-11T16:19:50.3283029+08:00||;True|2025-07-11T15:49:22.5920473+08:00||;True|2025-07-02T14:39:27.0436873+08:00||;True|2025-07-02T11:18:29.1208369+08:00||;True|2025-07-01T15:52:16.6767496+08:00||;True|2025-07-01T10:14:59.0471052+08:00||;True|2025-06-28T11:40:36.0544739+08:00||;True|2025-06-27T15:10:24.4628086+08:00||;True|2025-06-27T10:31:14.8332810+08:00||;True|2025-06-27T10:13:13.3022394+08:00||;True|2025-06-26T23:51:04.1304509+08:00||;True|2025-06-26T23:34:06.4223762+08:00||;True|2025-06-26T22:42:08.9018138+08:00||;True|2025-06-26T22:16:01.8954571+08:00||;True|2025-06-26T21:19:42.2638204+08:00||;True|2025-06-25T23:22:39.7267591+08:00||;True|2025-06-25T23:19:33.2378458+08:00||;True|2025-06-25T22:18:16.2863303+08:00||;True|2025-06-25T22:10:29.2540175+08:00||;True|2025-06-25T22:00:58.5212166+08:00||;</History>
|
||||||
<LastFailureDetails />
|
<LastFailureDetails />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -86,22 +86,22 @@
|
||||||
<publishTime>10/28/2024 14:02:50</publishTime>
|
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/App_global.asax.compiled">
|
<File Include="bin/App_global.asax.compiled">
|
||||||
<publishTime>03/04/2026 19:14:36</publishTime>
|
<publishTime>03/06/2026 12:42:12</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/App_global.asax.dll">
|
<File Include="bin/App_global.asax.dll">
|
||||||
<publishTime>03/04/2026 19:14:36</publishTime>
|
<publishTime>03/06/2026 12:42:12</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Aspose.Words.dll">
|
<File Include="bin/Aspose.Words.dll">
|
||||||
<publishTime>12/06/2024 20:13:58</publishTime>
|
<publishTime>12/06/2024 20:13:58</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.dll">
|
<File Include="bin/BLL.dll">
|
||||||
<publishTime>03/04/2026 19:14:15</publishTime>
|
<publishTime>03/06/2026 12:41:50</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.dll.config">
|
<File Include="bin/BLL.dll.config">
|
||||||
<publishTime>12/26/2024 09:46:52</publishTime>
|
<publishTime>12/26/2024 09:46:52</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.pdb">
|
<File Include="bin/BLL.pdb">
|
||||||
<publishTime>03/04/2026 19:14:15</publishTime>
|
<publishTime>03/06/2026 12:41:50</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BouncyCastle.Crypto.dll">
|
<File Include="bin/BouncyCastle.Crypto.dll">
|
||||||
<publishTime>12/18/2020 05:32:28</publishTime>
|
<publishTime>12/18/2020 05:32:28</publishTime>
|
||||||
|
|
@ -128,10 +128,10 @@
|
||||||
<publishTime>07/25/2012 19:48:56</publishTime>
|
<publishTime>07/25/2012 19:48:56</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Model.dll">
|
<File Include="bin/Model.dll">
|
||||||
<publishTime>03/04/2026 19:14:07</publishTime>
|
<publishTime>03/06/2026 12:41:43</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Model.pdb">
|
<File Include="bin/Model.pdb">
|
||||||
<publishTime>03/04/2026 19:14:07</publishTime>
|
<publishTime>03/06/2026 12:41:43</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/netstandard.dll">
|
<File Include="bin/netstandard.dll">
|
||||||
<publishTime>02/12/2026 19:18:36</publishTime>
|
<publishTime>02/12/2026 19:18:36</publishTime>
|
||||||
|
|
@ -389,13 +389,13 @@
|
||||||
<publishTime>02/09/2013 00:42:28</publishTime>
|
<publishTime>02/09/2013 00:42:28</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebAPI.dll">
|
<File Include="bin/WebAPI.dll">
|
||||||
<publishTime>03/04/2026 19:14:16</publishTime>
|
<publishTime>03/06/2026 12:41:51</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebAPI.pdb">
|
<File Include="bin/WebAPI.pdb">
|
||||||
<publishTime>03/04/2026 19:14:16</publishTime>
|
<publishTime>03/06/2026 12:41:51</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebAPI.xml">
|
<File Include="bin/WebAPI.xml">
|
||||||
<publishTime>03/04/2026 19:14:16</publishTime>
|
<publishTime>03/06/2026 12:41:51</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebGrease.dll">
|
<File Include="bin/WebGrease.dll">
|
||||||
<publishTime>01/23/2014 21:57:34</publishTime>
|
<publishTime>01/23/2014 21:57:34</publishTime>
|
||||||
|
|
@ -479,7 +479,7 @@
|
||||||
<publishTime>10/28/2024 14:02:50</publishTime>
|
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="PrecompiledApp.config">
|
<File Include="PrecompiledApp.config">
|
||||||
<publishTime>03/04/2026 19:14:17</publishTime>
|
<publishTime>03/06/2026 12:41:52</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="Scripts/bootstrap.js">
|
<File Include="Scripts/bootstrap.js">
|
||||||
<publishTime>10/28/2024 14:02:50</publishTime>
|
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue