2023-03-07 增加实业数据编辑
This commit is contained in:
parent
79c311a870
commit
3f158f1a70
Binary file not shown.
|
@ -0,0 +1,209 @@
|
|||
|
||||
CREATE TABLE [dbo].[Base_Factory](
|
||||
[FactoryId] [nvarchar](50) NOT NULL,
|
||||
[UnitId] [nvarchar](50) NULL,
|
||||
[FactoryCode] [nvarchar](100) NULL,
|
||||
[FactoryName] [nvarchar](100) NULL,
|
||||
[Address] [nvarchar](500) NULL,
|
||||
CONSTRAINT [PK_Base_Factory] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[FactoryId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Base_Factory] WITH CHECK ADD CONSTRAINT [FK_Base_Factory_Base_Unit] FOREIGN KEY([UnitId])
|
||||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Base_Factory] CHECK CONSTRAINT [FK_Base_Factory_Base_Unit]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory', @level2type=N'COLUMN',@level2name=N'FactoryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实业编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory', @level2type=N'COLUMN',@level2name=N'FactoryCode'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实业名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory', @level2type=N'COLUMN',@level2name=N'FactoryName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'地址' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory', @level2type=N'COLUMN',@level2name=N'Address'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实业工厂表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Factory'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[SYHSEData_Data](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[FactoryId] [nvarchar](50) NULL,
|
||||
[SafetyMnaHours] [int] NULL,
|
||||
[GeneralRiskNum] [int] NULL,
|
||||
[LowRiskNum] [int] NULL,
|
||||
[MoreRiskNum] [int] NULL,
|
||||
[GreatRiskNum] [int] NULL,
|
||||
[ReportDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_SYHSEData_Data] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_Data] WITH CHECK ADD CONSTRAINT [FK_SYHSEData_Data_Base_Factory] FOREIGN KEY([FactoryId])
|
||||
REFERENCES [dbo].[Base_Factory] ([FactoryId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_Data] CHECK CONSTRAINT [FK_SYHSEData_Data_Base_Factory]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工厂Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'FactoryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全人工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'SafetyMnaHours'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'一般风险数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'GeneralRiskNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'低风险数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'LowRiskNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'较大风险数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'MoreRiskNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大风险数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'GreatRiskNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实业数据表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_Data'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[SYHSEData_RiskControl](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[FactoryId] [nvarchar](50) NULL,
|
||||
[RiskControlName] [nvarchar](500) NULL,
|
||||
[ReportDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_SYHSEData_RiskControl] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_RiskControl] WITH CHECK ADD CONSTRAINT [FK_SYHSEData_RiskControl_Base_Factory] FOREIGN KEY([FactoryId])
|
||||
REFERENCES [dbo].[Base_Factory] ([FactoryId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_RiskControl] CHECK CONSTRAINT [FK_SYHSEData_RiskControl_Base_Factory]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_RiskControl', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工厂Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_RiskControl', @level2type=N'COLUMN',@level2name=N'FactoryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'风险管控名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_RiskControl', @level2type=N'COLUMN',@level2name=N'RiskControlName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_RiskControl', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'风险管控表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_RiskControl'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
alter table Hazard_RealTimeDevice add Value nvarchar(50) null
|
||||
alter table Hazard_RealTimeDevice add FactoryId nvarchar(50) null
|
||||
alter table Hazard_RealTimeDevice add ReportDate datetime null
|
||||
alter table Hazard_RealTimeDevice add ReceiveDate nvarchar(50) null
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[SYHSEData_HiddenDangerCheck](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[FactoryId] [nvarchar](50) NULL,
|
||||
[HiddenDangerName] [nvarchar](50) NULL,
|
||||
[TotalNum] [int] NULL,
|
||||
[OKNum] [int] NULL,
|
||||
[ReportDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_SYHSEData_HiddenDangerCheck] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_HiddenDangerCheck] WITH CHECK ADD CONSTRAINT [FK_SYHSEData_HiddenDangerCheck_Base_Factory] FOREIGN KEY([FactoryId])
|
||||
REFERENCES [dbo].[Base_Factory] ([FactoryId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[SYHSEData_HiddenDangerCheck] CHECK CONSTRAINT [FK_SYHSEData_HiddenDangerCheck_Base_Factory]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工厂Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'FactoryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'隐患名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'HiddenDangerName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'当日总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'TotalNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'当日整改数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'OKNum'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'隐患排查表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYHSEData_HiddenDangerCheck'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('CD167198-1667-4552-9876-E768C2542C30','实业信息','BaseInfo/BaseFactory.aspx',20,'0','Menu_Project',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('0CD166ED-11FC-443D-AC15-4AB80E5B1A41','CD167198-1667-4552-9876-E768C2542C30','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('3F74BCAB-AF0C-4B9F-83F6-460E95C7EDFA','CD167198-1667-4552-9876-E768C2542C30','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('B05D993D-2905-474B-9087-84EABADAD005','CD167198-1667-4552-9876-E768C2542C30','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('7AD48DC9-F962-4C71-9518-3193F0E8634A','CD167198-1667-4552-9876-E768C2542C30','保存',4)
|
||||
GO
|
||||
INSERT Sys_Menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES ( N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'实业数据','ZHGL/DataSync/SYHSEData_Data.aspx',40,N'1E216BE3-DB22-4649-BD9A-0777B0DC03E6',N'Menu_ZHGL',1,1,1)
|
||||
GO
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'7F8BA66D-DB63-4DBB-9EB6-73F0280CFA30',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'增加',1)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'EB3B7C26-E1A0-4498-8089-35637CC6DF26',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'修改',2)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'968693EE-8FE8-482A-AF0C-B08D919EF933',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'删除',3)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'8C6B85C3-81C9-4F7E-95C4-576DB34F3B18',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'保存',4)
|
||||
|
||||
GO
|
|
@ -7,6 +7,19 @@ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffi
|
|||
VALUES('B95DF6F0-EB0C-4120-BD56-A4453AB42059','项目列表','ProjectData/ProjectList.aspx',10,'0','Menu_Project',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('CD167198-1667-4552-9876-E768C2542C30','实业信息','BaseInfo/BaseFactory.aspx',20,'0','Menu_Project',1,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('0CD166ED-11FC-443D-AC15-4AB80E5B1A41','CD167198-1667-4552-9876-E768C2542C30','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('3F74BCAB-AF0C-4B9F-83F6-460E95C7EDFA','CD167198-1667-4552-9876-E768C2542C30','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('B05D993D-2905-474B-9087-84EABADAD005','CD167198-1667-4552-9876-E768C2542C30','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('7AD48DC9-F962-4C71-9518-3193F0E8634A','CD167198-1667-4552-9876-E768C2542C30','保存',4)
|
||||
GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('B95DF6F0-EB0C-4120-BD56-A4453AB42059','项目施工综合信息','ProjectData/ProjectInformation.aspx',20,'0','Menu_Project',1,1,1)
|
||||
--GO
|
||||
|
|
|
@ -396,6 +396,18 @@ GO
|
|||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('214A1AE1-816E-4DDA-8E6E-04EB35F02A12','现场人员','ZHGL/RealName/OnPost.aspx',40,'D78C6E54-4240-4E82-B9B5-8ED76CF62981','Menu_ZHGL',1,1,1)
|
||||
GO
|
||||
|
||||
|
||||
|
||||
INSERT Sys_Menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES ( N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'实业数据','ZHGL/DataSync/SYHSEData_Data.aspx',40,N'1E216BE3-DB22-4649-BD9A-0777B0DC03E6',N'Menu_ZHGL',1,1,1)
|
||||
GO
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'7F8BA66D-DB63-4DBB-9EB6-73F0280CFA30',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'增加',1)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'EB3B7C26-E1A0-4498-8089-35637CC6DF26',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'修改',2)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'968693EE-8FE8-482A-AF0C-B08D919EF933',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'删除',3)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'8C6B85C3-81C9-4F7E-95C4-576DB34F3B18',N'S89E5EC2-F725-4656-9110-5AF83C18FB6C',N'保存',4)
|
||||
|
||||
GO
|
||||
----本部综合管理
|
||||
--INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('A57CBE1D-B9F4-4FB6-A428-10197734AAB6','数据统计','',30,'0','Menu_ZHGL',1,0,1)
|
||||
|
|
|
@ -182,6 +182,7 @@
|
|||
<Compile Include="API\HSSE\APITrainTestRecordService.cs" />
|
||||
<Compile Include="API\HSSE\APITrainRecordService.cs" />
|
||||
<Compile Include="BaseInfo\AccidentTypeService.cs" />
|
||||
<Compile Include="BaseInfo\BaseFactoryService.cs" />
|
||||
<Compile Include="BaseInfo\CertificateService.cs" />
|
||||
<Compile Include="BaseInfo\CNProfessionalService.cs" />
|
||||
<Compile Include="BaseInfo\CostTypeService.cs" />
|
||||
|
@ -770,6 +771,7 @@
|
|||
<Compile Include="WebService\CNCECHSSEWebService.cs" />
|
||||
<Compile Include="ZHGL\DataStatistics\DataStatisticsService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\CQMSDataService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\Hazard_RealTimeDeviceService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\HJGLData_DefectService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\HJGLData_HJGLService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\HSSEData_HiddenDangerDetailService.cs" />
|
||||
|
@ -781,6 +783,8 @@
|
|||
<Compile Include="ZHGL\DataSync\ProjectDataSync\Project_HSSEData_HSSEService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\ProjectDataSync\Project_SYHSEData_SYHSEService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\ServerService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_DataService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_HiddenDangerCheckService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_SYHSEService.cs" />
|
||||
<Compile Include="ZHGL\HSSESystem\HSSEManageItemService.cs" />
|
||||
<Compile Include="ZHGL\HSSESystem\HSSEManageService.cs" />
|
||||
|
@ -818,6 +822,7 @@
|
|||
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_RiskControlService.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Model\Model.csproj">
|
||||
|
|
|
@ -0,0 +1,167 @@
|
|||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class Base_FactoryService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.Base_Factory> GetBase_FactoryByModle(Model.Base_Factory table)
|
||||
{
|
||||
var q = from x in db.Base_Factory
|
||||
where
|
||||
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryCode) || x.FactoryCode.Contains(table.FactoryCode)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryName) || x.FactoryName.Contains(table.FactoryName)) &&
|
||||
(string.IsNullOrEmpty(table.Address) || x.Address.Contains(table.Address))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
public static List<Model.Base_Factory> GetBase_FactoryList()
|
||||
{
|
||||
var q = (from x in db.Base_Factory orderby x.FactoryCode select x).ToList();
|
||||
|
||||
|
||||
return q;
|
||||
}
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.Base_Factory table, Grid Grid1)
|
||||
{
|
||||
var q = GetBase_FactoryByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.FactoryId,
|
||||
x.UnitId,
|
||||
x.FactoryCode,
|
||||
x.FactoryName,
|
||||
x.Address,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static Model.Base_Factory GetBase_FactoryById(string FactoryId)
|
||||
{
|
||||
return db.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId);
|
||||
}
|
||||
public static string GetBase_FactoryNameById(object FactoryId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (FactoryId!=null)
|
||||
{
|
||||
var model = db.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId.ToString());
|
||||
if (model != null)
|
||||
{
|
||||
name = model.FactoryName;
|
||||
}
|
||||
|
||||
}
|
||||
return name;
|
||||
}
|
||||
public static Model.Base_Factory GetBase_FactoryByCode(string FactoryCode)
|
||||
{
|
||||
return db.Base_Factory.FirstOrDefault(x => x.FactoryCode == FactoryCode);
|
||||
}
|
||||
public static void AddBase_Factory(Model.Base_Factory newtable)
|
||||
{
|
||||
|
||||
Model.Base_Factory table = new Model.Base_Factory
|
||||
{
|
||||
FactoryId = newtable.FactoryId,
|
||||
UnitId = newtable.UnitId,
|
||||
FactoryCode = newtable.FactoryCode,
|
||||
FactoryName = newtable.FactoryName,
|
||||
Address = newtable.Address,
|
||||
};
|
||||
db.Base_Factory.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkBase_Factory(List<Model.Base_Factory> newtables)
|
||||
{
|
||||
|
||||
db.Base_Factory.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdateBase_Factory(Model.Base_Factory newtable)
|
||||
{
|
||||
|
||||
Model.Base_Factory table = db.Base_Factory.FirstOrDefault(x => x.FactoryId == newtable.FactoryId);
|
||||
if (table != null)
|
||||
{
|
||||
table.FactoryId = newtable.FactoryId;
|
||||
table.UnitId = newtable.UnitId;
|
||||
table.FactoryCode = newtable.FactoryCode;
|
||||
table.FactoryName = newtable.FactoryName;
|
||||
table.Address = newtable.Address;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteBase_FactoryById(string FactoryId)
|
||||
{
|
||||
|
||||
Model.Base_Factory table = db.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId);
|
||||
if (table != null)
|
||||
{
|
||||
db.Base_Factory.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLBase_Factory()
|
||||
{
|
||||
if (db.Base_Factory != null)
|
||||
{
|
||||
db.Base_Factory.DeleteAllOnSubmit(db.Base_Factory);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static void InitBase_FactoryDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "FactoryId";
|
||||
dropName.DataTextField = "FactoryName";
|
||||
dropName.DataSource = GetBase_FactoryList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -344,6 +344,8 @@ namespace BLL
|
|||
/// 温度设置
|
||||
/// </summary>
|
||||
public const string HJGL_TemperatureSetMenuId = "A083BF37-745F-409F-9C3A-BC2FBC755757";
|
||||
|
||||
public const string Base_FactoryMenuId = "CD167198-1667-4552-9876-E768C2542C30";
|
||||
#endregion
|
||||
|
||||
#region 人员管理
|
||||
|
@ -5789,6 +5791,12 @@ namespace BLL
|
|||
/// 实业数据
|
||||
/// </summary>
|
||||
public const string SYHSEData_SYHSEMenuId = "64EE5EC2-F725-4656-9110-5AF83C18FB6C";
|
||||
/// <summary>
|
||||
/// 实业
|
||||
/// </summary>
|
||||
public const string SYHSEData_DataMenuId = "S89E5EC2-F725-4656-9110-5AF83C18FB6C";
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数据同步状态
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
newSysSet5.SetValue = token;
|
||||
}
|
||||
newSysSet5.SetName = "token";
|
||||
newSysSet5.SetId = 99;
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
@ -106,6 +107,7 @@
|
|||
newSysSet5.SetValue = ExpirationTime;
|
||||
}
|
||||
newSysSet5.SetName = "token失效时间";
|
||||
newSysSet5.SetId = 98;
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
|
|
@ -332,6 +332,20 @@ namespace BLL
|
|||
}
|
||||
return name;
|
||||
}
|
||||
public static string GetUnitNameByUnitId(object unitId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (unitId != null)
|
||||
{
|
||||
var unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == unitId.ToString());
|
||||
if (unit != null)
|
||||
{
|
||||
name = unit.UnitName;
|
||||
}
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
public static string GetInstallationNameByUnitId(string installationId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
|
|
|
@ -0,0 +1,278 @@
|
|||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class HazardRealtimedeviceService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.Hazard_RealTimeDevice> GetHazard_RealTimeDeviceByModle(Model.Hazard_RealTimeDevice table)
|
||||
{
|
||||
var q = from x in db.Hazard_RealTimeDevice
|
||||
where
|
||||
(string.IsNullOrEmpty(table.ID) || x.ID.Contains(table.ID)) &&
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName)) &&
|
||||
(string.IsNullOrEmpty(table.HazardName) || x.HazardName.Contains(table.HazardName)) &&
|
||||
(string.IsNullOrEmpty(table.HazardLevel) || x.HazardLevel.Contains(table.HazardLevel)) &&
|
||||
(string.IsNullOrEmpty(table.DeviceCode) || x.DeviceCode.Contains(table.DeviceCode)) &&
|
||||
(string.IsNullOrEmpty(table.DeviceName) || x.DeviceName.Contains(table.DeviceName)) &&
|
||||
(string.IsNullOrEmpty(table.DeviceType) || x.DeviceType.Contains(table.DeviceType)) &&
|
||||
(string.IsNullOrEmpty(table.SphereType) || x.SphereType.Contains(table.SphereType)) &&
|
||||
(string.IsNullOrEmpty(table.TemperatureType) || x.TemperatureType.Contains(table.TemperatureType)) &&
|
||||
(string.IsNullOrEmpty(table.DesignTemperantureMax) || x.DesignTemperantureMax.Contains(table.DesignTemperantureMax)) &&
|
||||
(string.IsNullOrEmpty(table.DesignTemperantureMin) || x.DesignTemperantureMin.Contains(table.DesignTemperantureMin)) &&
|
||||
(string.IsNullOrEmpty(table.PressureType) || x.PressureType.Contains(table.PressureType)) &&
|
||||
(string.IsNullOrEmpty(table.DesignPressure) || x.DesignPressure.Contains(table.DesignPressure)) &&
|
||||
(string.IsNullOrEmpty(table.DesignPressureMax) || x.DesignPressureMax.Contains(table.DesignPressureMax)) &&
|
||||
(string.IsNullOrEmpty(table.Medium) || x.Medium.Contains(table.Medium)) &&
|
||||
(string.IsNullOrEmpty(table.MediumForm) || x.MediumForm.Contains(table.MediumForm)) &&
|
||||
(string.IsNullOrEmpty(table.MediumLevelMax) || x.MediumLevelMax.Contains(table.MediumLevelMax)) &&
|
||||
(string.IsNullOrEmpty(table.Reserves) || x.Reserves.Contains(table.Reserves)) &&
|
||||
(string.IsNullOrEmpty(table.StandardCode) || x.StandardCode.Contains(table.StandardCode)) &&
|
||||
(string.IsNullOrEmpty(table.StandardName) || x.StandardName.Contains(table.StandardName)) &&
|
||||
(string.IsNullOrEmpty(table.StandardType) || x.StandardType.Contains(table.StandardType)) &&
|
||||
(string.IsNullOrEmpty(table.StandardDes) || x.StandardDes.Contains(table.StandardDes)) &&
|
||||
(string.IsNullOrEmpty(table.MeasurementUnit) || x.MeasurementUnit.Contains(table.MeasurementUnit)) &&
|
||||
(string.IsNullOrEmpty(table.MeterMax) || x.MeterMax.Contains(table.MeterMax)) &&
|
||||
(string.IsNullOrEmpty(table.MeterMin) || x.MeterMin.Contains(table.MeterMin)) &&
|
||||
(string.IsNullOrEmpty(table.ThresholdLow1) || x.ThresholdLow1.Contains(table.ThresholdLow1)) &&
|
||||
(string.IsNullOrEmpty(table.ThresholdLow2) || x.ThresholdLow2.Contains(table.ThresholdLow2)) &&
|
||||
(string.IsNullOrEmpty(table.ThresholdMax1) || x.ThresholdMax1.Contains(table.ThresholdMax1)) &&
|
||||
(string.IsNullOrEmpty(table.ThresholdMax2) || x.ThresholdMax2.Contains(table.ThresholdMax2)) &&
|
||||
(string.IsNullOrEmpty(table.BitNum) || x.BitNum.Contains(table.BitNum)) &&
|
||||
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
|
||||
(string.IsNullOrEmpty(table.Value) || x.Value.Contains(table.Value)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
|
||||
(string.IsNullOrEmpty(table.ReceiveDate) || x.ReceiveDate.Contains(table.ReceiveDate))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.Hazard_RealTimeDevice table, Grid Grid1)
|
||||
{
|
||||
var q = GetHazard_RealTimeDeviceByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.ID,
|
||||
x.UnitId,
|
||||
x.UnitName,
|
||||
x.HazardName,
|
||||
x.HazardLevel,
|
||||
x.DeviceCode,
|
||||
x.DeviceName,
|
||||
x.DeviceType,
|
||||
x.SphereType,
|
||||
x.TemperatureType,
|
||||
x.DesignTemperantureMax,
|
||||
x.DesignTemperantureMin,
|
||||
x.PressureType,
|
||||
x.DesignPressure,
|
||||
x.DesignPressureMax,
|
||||
x.Medium,
|
||||
x.MediumForm,
|
||||
x.MediumLevelMax,
|
||||
x.Reserves,
|
||||
x.StandardCode,
|
||||
x.StandardName,
|
||||
x.StandardType,
|
||||
x.StandardDes,
|
||||
x.MeasurementUnit,
|
||||
x.MeterMax,
|
||||
x.MeterMin,
|
||||
x.ThresholdLow1,
|
||||
x.ThresholdLow2,
|
||||
x.ThresholdMax1,
|
||||
x.ThresholdMax2,
|
||||
x.BitNum,
|
||||
x.DateTime,
|
||||
x.ProjectId,
|
||||
x.Value,
|
||||
x.FactoryId,
|
||||
x.ReportDate,
|
||||
x.ReceiveDate,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static Model.Hazard_RealTimeDevice GetHazard_RealTimeDeviceById(string ID)
|
||||
{
|
||||
return db.Hazard_RealTimeDevice.FirstOrDefault(x => x.ID == ID);
|
||||
}
|
||||
|
||||
|
||||
public static void AddHazard_RealTimeDevice(Model.Hazard_RealTimeDevice newtable)
|
||||
{
|
||||
|
||||
Model.Hazard_RealTimeDevice table = new Model.Hazard_RealTimeDevice
|
||||
{
|
||||
ID = newtable.ID,
|
||||
UnitId = newtable.UnitId,
|
||||
UnitName = newtable.UnitName,
|
||||
HazardName = newtable.HazardName,
|
||||
HazardLevel = newtable.HazardLevel,
|
||||
DeviceCode = newtable.DeviceCode,
|
||||
DeviceName = newtable.DeviceName,
|
||||
DeviceType = newtable.DeviceType,
|
||||
SphereType = newtable.SphereType,
|
||||
TemperatureType = newtable.TemperatureType,
|
||||
DesignTemperantureMax = newtable.DesignTemperantureMax,
|
||||
DesignTemperantureMin = newtable.DesignTemperantureMin,
|
||||
PressureType = newtable.PressureType,
|
||||
DesignPressure = newtable.DesignPressure,
|
||||
DesignPressureMax = newtable.DesignPressureMax,
|
||||
Medium = newtable.Medium,
|
||||
MediumForm = newtable.MediumForm,
|
||||
MediumLevelMax = newtable.MediumLevelMax,
|
||||
Reserves = newtable.Reserves,
|
||||
StandardCode = newtable.StandardCode,
|
||||
StandardName = newtable.StandardName,
|
||||
StandardType = newtable.StandardType,
|
||||
StandardDes = newtable.StandardDes,
|
||||
MeasurementUnit = newtable.MeasurementUnit,
|
||||
MeterMax = newtable.MeterMax,
|
||||
MeterMin = newtable.MeterMin,
|
||||
ThresholdLow1 = newtable.ThresholdLow1,
|
||||
ThresholdLow2 = newtable.ThresholdLow2,
|
||||
ThresholdMax1 = newtable.ThresholdMax1,
|
||||
ThresholdMax2 = newtable.ThresholdMax2,
|
||||
BitNum = newtable.BitNum,
|
||||
DateTime = newtable.DateTime,
|
||||
ProjectId = newtable.ProjectId,
|
||||
Value = newtable.Value,
|
||||
FactoryId = newtable.FactoryId,
|
||||
ReportDate = newtable.ReportDate,
|
||||
ReceiveDate = newtable.ReceiveDate,
|
||||
};
|
||||
db.Hazard_RealTimeDevice.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkHazard_RealTimeDevice(List<Model.Hazard_RealTimeDevice> newtables)
|
||||
{
|
||||
|
||||
db.Hazard_RealTimeDevice.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdateHazard_RealTimeDevice(Model.Hazard_RealTimeDevice newtable)
|
||||
{
|
||||
|
||||
Model.Hazard_RealTimeDevice table = db.Hazard_RealTimeDevice.FirstOrDefault(x => x.ID == newtable.ID);
|
||||
if (table != null)
|
||||
{
|
||||
table.ID = newtable.ID;
|
||||
table.UnitId = newtable.UnitId;
|
||||
table.UnitName = newtable.UnitName;
|
||||
table.HazardName = newtable.HazardName;
|
||||
table.HazardLevel = newtable.HazardLevel;
|
||||
table.DeviceCode = newtable.DeviceCode;
|
||||
table.DeviceName = newtable.DeviceName;
|
||||
table.DeviceType = newtable.DeviceType;
|
||||
table.SphereType = newtable.SphereType;
|
||||
table.TemperatureType = newtable.TemperatureType;
|
||||
table.DesignTemperantureMax = newtable.DesignTemperantureMax;
|
||||
table.DesignTemperantureMin = newtable.DesignTemperantureMin;
|
||||
table.PressureType = newtable.PressureType;
|
||||
table.DesignPressure = newtable.DesignPressure;
|
||||
table.DesignPressureMax = newtable.DesignPressureMax;
|
||||
table.Medium = newtable.Medium;
|
||||
table.MediumForm = newtable.MediumForm;
|
||||
table.MediumLevelMax = newtable.MediumLevelMax;
|
||||
table.Reserves = newtable.Reserves;
|
||||
table.StandardCode = newtable.StandardCode;
|
||||
table.StandardName = newtable.StandardName;
|
||||
table.StandardType = newtable.StandardType;
|
||||
table.StandardDes = newtable.StandardDes;
|
||||
table.MeasurementUnit = newtable.MeasurementUnit;
|
||||
table.MeterMax = newtable.MeterMax;
|
||||
table.MeterMin = newtable.MeterMin;
|
||||
table.ThresholdLow1 = newtable.ThresholdLow1;
|
||||
table.ThresholdLow2 = newtable.ThresholdLow2;
|
||||
table.ThresholdMax1 = newtable.ThresholdMax1;
|
||||
table.ThresholdMax2 = newtable.ThresholdMax2;
|
||||
table.BitNum = newtable.BitNum;
|
||||
table.DateTime = newtable.DateTime;
|
||||
table.ProjectId = newtable.ProjectId;
|
||||
table.Value = newtable.Value;
|
||||
table.FactoryId = newtable.FactoryId;
|
||||
table.ReportDate = newtable.ReportDate;
|
||||
table.ReceiveDate = newtable.ReceiveDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteHazard_RealTimeDeviceById(string ID)
|
||||
{
|
||||
|
||||
Model.Hazard_RealTimeDevice table = db.Hazard_RealTimeDevice.FirstOrDefault(x => x.ID == ID);
|
||||
if (table != null)
|
||||
{
|
||||
db.Hazard_RealTimeDevice.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLHazard_RealTimeDevice()
|
||||
{
|
||||
if (db.Hazard_RealTimeDevice != null)
|
||||
{
|
||||
db.Hazard_RealTimeDevice.DeleteAllOnSubmit(db.Hazard_RealTimeDevice);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static List<Model.Hazard_RealTimeDevice> GetHazard_RealTimeDeviceByDate(DateTime? reportDate)
|
||||
{
|
||||
var q = from x in db.Hazard_RealTimeDevice
|
||||
where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0
|
||||
select x;
|
||||
return q.ToList();
|
||||
}
|
||||
public static void DeleteHazard_RealTimeDeviceByDate(DateTime? reportDate)
|
||||
{
|
||||
|
||||
var table = db.Hazard_RealTimeDevice.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
if (table != null)
|
||||
{
|
||||
db.Hazard_RealTimeDevice.DeleteAllOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,245 @@
|
|||
using FineUIPro;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class SYHSEData_DataService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.SYHSEData_Data> GetSYHSEData_DataByModle(Model.SYHSEData_Data table)
|
||||
{
|
||||
var q = from x in db.SYHSEData_Data
|
||||
where
|
||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.SYHSEData_Data table, Grid Grid1)
|
||||
{
|
||||
var q = GetSYHSEData_DataByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.Id,
|
||||
x.FactoryId,
|
||||
x.SafetyMnaHours,
|
||||
x.GeneralRiskNum,
|
||||
x.LowRiskNum,
|
||||
x.MoreRiskNum,
|
||||
x.GreatRiskNum,
|
||||
x.ReportDate,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
public static bool IsReportByDate(DateTime dateTime)
|
||||
{
|
||||
var result = false;
|
||||
var q = (from x in Funs.DB.SYHSEData_Data
|
||||
where x.ReportDate >= dateTime.Date && x.ReportDate < (dateTime.Date.AddDays(1).Date)
|
||||
select x).ToList();
|
||||
if (q != null && q.Count > 0)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public static Model.ReturnData PushCNCEC(string Id)
|
||||
{
|
||||
string baseurl = "/api/SYHSEData/SaveNewSYHSEData";
|
||||
var item = GetItemById(Id);
|
||||
string str = JsonConvert.SerializeObject(item);
|
||||
var responeData = BLL.ServerService.PushCNCEC(str, baseurl);
|
||||
return responeData;
|
||||
}
|
||||
public static Model.NewSYHSEData GetItemById(string Id)
|
||||
{
|
||||
var data=GetSYHSEData_DataById(Id);
|
||||
var data_realtime = HazardRealtimedeviceService.GetHazard_RealTimeDeviceByDate(data.ReportDate);
|
||||
var data_hidden= SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(data.ReportDate);
|
||||
var data_risk= SyhsedataRiskcontrolService.GetSYHSEData_RiskControlByDate(data.ReportDate);
|
||||
|
||||
|
||||
NewSYHSEData APIData = new NewSYHSEData();
|
||||
var APIDataList_Item= new List<NewSYHSEDataItem>();
|
||||
var APIDataList_Relatime= new List<NewSYHSEDataRealTimeDeviceItem>();
|
||||
var APIDataList_Hidden= new List<NewSYHSEDataHiddenDangerCheckItem>();
|
||||
var APIDataList_Risk= new List<NewSYHSEDataRiskControlItem>();
|
||||
|
||||
foreach (var tb in data_realtime)
|
||||
{
|
||||
var q = new NewSYHSEDataRealTimeDeviceItem()
|
||||
{
|
||||
Id=tb.ID,
|
||||
HazardName=tb.HazardName,
|
||||
HazardLevel=tb.HazardLevel,
|
||||
DeviceName=tb.DeviceName,
|
||||
Medium=tb.Medium,
|
||||
MeasurementUnit=tb.MeasurementUnit,
|
||||
DateTime=tb.DateTime.ToString(),
|
||||
Value=tb.Value,
|
||||
|
||||
};
|
||||
|
||||
APIDataList_Relatime.Add(q);
|
||||
}
|
||||
|
||||
foreach (var tb in data_hidden)
|
||||
{
|
||||
var q = new NewSYHSEDataHiddenDangerCheckItem()
|
||||
{
|
||||
Id=tb.Id,
|
||||
HiddenDangerName=tb.HiddenDangerName,
|
||||
TotalNum=tb.TotalNum.HasValue ? tb.TotalNum.Value:0,
|
||||
OKNum=tb.OKNum.HasValue ? tb.OKNum.Value : 0,
|
||||
|
||||
};
|
||||
APIDataList_Hidden.Add(q);
|
||||
}
|
||||
|
||||
foreach (var tb in data_risk)
|
||||
{
|
||||
|
||||
var q = new NewSYHSEDataRiskControlItem()
|
||||
{
|
||||
Id=tb.Id,
|
||||
RiskControlName=tb.RiskControlName,
|
||||
|
||||
};
|
||||
APIDataList_Risk.Add(q);
|
||||
}
|
||||
|
||||
NewSYHSEDataItem Item = new NewSYHSEDataItem();
|
||||
Item.Id = data.Id;
|
||||
Item.ReportDate=data.ReportDate.ToString();
|
||||
Item.UnitId = Const.UnitId_CD;
|
||||
Item.CollCropCode = UnitService.GetUnitByUnitId(Const.UnitId_CD).CollCropCode;
|
||||
Item.UnitName= UnitService.GetUnitByUnitId(Const.UnitId_CD).UnitName;
|
||||
Item.FactoryId = data.FactoryId;
|
||||
Item.FactoryCode = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryCode;
|
||||
Item.FactoryName = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryName;
|
||||
Item.Address = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).Address;
|
||||
Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
|
||||
Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
|
||||
Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
|
||||
Item.MoreRiskNum = data.MoreRiskNum.HasValue ? data.MoreRiskNum.Value : 0;
|
||||
Item.GreatRiskNum = data.GreatRiskNum.HasValue ? data.GreatRiskNum.Value : 0;
|
||||
Item.NewSYHSEDataRiskControlItems = APIDataList_Risk;
|
||||
Item.NewSYHSEDataRealTimeDeviceItems = APIDataList_Relatime;
|
||||
Item.NewSYHSEDataHiddenDangerCheckItems = APIDataList_Hidden;
|
||||
|
||||
APIDataList_Item.Add(Item);
|
||||
|
||||
APIData.NewSYHSEDataItems = APIDataList_Item;
|
||||
|
||||
return APIData;
|
||||
}
|
||||
|
||||
public static Model.SYHSEData_Data GetSYHSEData_DataById(string Id)
|
||||
{
|
||||
return db.SYHSEData_Data.FirstOrDefault(x => x.Id == Id);
|
||||
}
|
||||
|
||||
|
||||
public static void AddSYHSEData_Data(Model.SYHSEData_Data newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_Data table = new Model.SYHSEData_Data
|
||||
{
|
||||
Id = newtable.Id,
|
||||
FactoryId = newtable.FactoryId,
|
||||
SafetyMnaHours = newtable.SafetyMnaHours,
|
||||
GeneralRiskNum = newtable.GeneralRiskNum,
|
||||
LowRiskNum = newtable.LowRiskNum,
|
||||
MoreRiskNum = newtable.MoreRiskNum,
|
||||
GreatRiskNum = newtable.GreatRiskNum,
|
||||
ReportDate = newtable.ReportDate,
|
||||
};
|
||||
db.SYHSEData_Data.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkSYHSEData_Data(List<Model.SYHSEData_Data> newtables)
|
||||
{
|
||||
|
||||
db.SYHSEData_Data.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdateSYHSEData_Data(Model.SYHSEData_Data newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_Data table = db.SYHSEData_Data.FirstOrDefault(x => x.Id == newtable.Id);
|
||||
if (table != null)
|
||||
{
|
||||
table.Id = newtable.Id;
|
||||
table.FactoryId = newtable.FactoryId;
|
||||
table.SafetyMnaHours = newtable.SafetyMnaHours;
|
||||
table.GeneralRiskNum = newtable.GeneralRiskNum;
|
||||
table.LowRiskNum = newtable.LowRiskNum;
|
||||
table.MoreRiskNum = newtable.MoreRiskNum;
|
||||
table.GreatRiskNum = newtable.GreatRiskNum;
|
||||
table.ReportDate = newtable.ReportDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteSYHSEData_DataById(string Id)
|
||||
{
|
||||
|
||||
Model.SYHSEData_Data table = db.SYHSEData_Data.FirstOrDefault(x => x.Id == Id);
|
||||
if (table != null)
|
||||
{
|
||||
db.SYHSEData_Data.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLSYHSEData_Data()
|
||||
{
|
||||
if (db.SYHSEData_Data != null)
|
||||
{
|
||||
db.SYHSEData_Data.DeleteAllOnSubmit(db.SYHSEData_Data);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,153 @@
|
|||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class SyhsedataHiddendangercheckService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.SYHSEData_HiddenDangerCheck> GetSYHSEData_HiddenDangerCheckByModle(Model.SYHSEData_HiddenDangerCheck table)
|
||||
{
|
||||
var q = from x in db.SYHSEData_HiddenDangerCheck
|
||||
where
|
||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
|
||||
(string.IsNullOrEmpty(table.HiddenDangerName) || x.HiddenDangerName.Contains(table.HiddenDangerName))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.SYHSEData_HiddenDangerCheck table, Grid Grid1)
|
||||
{
|
||||
var q = GetSYHSEData_HiddenDangerCheckByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.Id,
|
||||
x.FactoryId,
|
||||
x.HiddenDangerName,
|
||||
x.TotalNum,
|
||||
x.OKNum,
|
||||
x.ReportDate,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static Model.SYHSEData_HiddenDangerCheck GetSYHSEData_HiddenDangerCheckById(string Id)
|
||||
{
|
||||
return db.SYHSEData_HiddenDangerCheck.FirstOrDefault(x => x.Id == Id);
|
||||
}
|
||||
|
||||
|
||||
public static void AddSYHSEData_HiddenDangerCheck(Model.SYHSEData_HiddenDangerCheck newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_HiddenDangerCheck table = new Model.SYHSEData_HiddenDangerCheck
|
||||
{
|
||||
Id = newtable.Id,
|
||||
FactoryId = newtable.FactoryId,
|
||||
HiddenDangerName = newtable.HiddenDangerName,
|
||||
TotalNum = newtable.TotalNum,
|
||||
OKNum = newtable.OKNum,
|
||||
ReportDate = newtable.ReportDate,
|
||||
};
|
||||
db.SYHSEData_HiddenDangerCheck.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkSYHSEData_HiddenDangerCheck(List<Model.SYHSEData_HiddenDangerCheck> newtables)
|
||||
{
|
||||
|
||||
db.SYHSEData_HiddenDangerCheck.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdateSYHSEData_HiddenDangerCheck(Model.SYHSEData_HiddenDangerCheck newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_HiddenDangerCheck table = db.SYHSEData_HiddenDangerCheck.FirstOrDefault(x => x.Id == newtable.Id);
|
||||
if (table != null)
|
||||
{
|
||||
table.Id = newtable.Id;
|
||||
table.FactoryId = newtable.FactoryId;
|
||||
table.HiddenDangerName = newtable.HiddenDangerName;
|
||||
table.TotalNum = newtable.TotalNum;
|
||||
table.OKNum = newtable.OKNum;
|
||||
table.ReportDate = newtable.ReportDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteSYHSEData_HiddenDangerCheckById(string Id)
|
||||
{
|
||||
|
||||
Model.SYHSEData_HiddenDangerCheck table = db.SYHSEData_HiddenDangerCheck.FirstOrDefault(x => x.Id == Id);
|
||||
if (table != null)
|
||||
{
|
||||
db.SYHSEData_HiddenDangerCheck.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLSYHSEData_HiddenDangerCheck()
|
||||
{
|
||||
if (db.SYHSEData_HiddenDangerCheck != null)
|
||||
{
|
||||
db.SYHSEData_HiddenDangerCheck.DeleteAllOnSubmit(db.SYHSEData_HiddenDangerCheck);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static List<Model.SYHSEData_HiddenDangerCheck> GetSYHSEData_HiddenDangerCheckByDate(DateTime? reportDate)
|
||||
{
|
||||
var q = from x in db.SYHSEData_HiddenDangerCheck
|
||||
where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0
|
||||
select x;
|
||||
return q.ToList();
|
||||
}
|
||||
public static void DeleteSYHSEData_HiddenDangerCheckByDate(DateTime? reportDate)
|
||||
{
|
||||
|
||||
var table = db.SYHSEData_HiddenDangerCheck.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
if (table != null)
|
||||
{
|
||||
db.SYHSEData_HiddenDangerCheck.DeleteAllOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,147 @@
|
|||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class SyhsedataRiskcontrolService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.SYHSEData_RiskControl> GetSYHSEData_RiskControlByModle(Model.SYHSEData_RiskControl table)
|
||||
{
|
||||
var q = from x in db.SYHSEData_RiskControl
|
||||
where
|
||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryId) || x.FactoryId.Contains(table.FactoryId)) &&
|
||||
(string.IsNullOrEmpty(table.RiskControlName) || x.RiskControlName.Contains(table.RiskControlName))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.SYHSEData_RiskControl table, Grid Grid1)
|
||||
{
|
||||
var q = GetSYHSEData_RiskControlByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.Id,
|
||||
x.FactoryId,
|
||||
x.RiskControlName,
|
||||
x.ReportDate,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static Model.SYHSEData_RiskControl GetSYHSEData_RiskControlById(string Id)
|
||||
{
|
||||
return db.SYHSEData_RiskControl.FirstOrDefault(x => x.Id == Id);
|
||||
}
|
||||
|
||||
|
||||
public static void AddSYHSEData_RiskControl(Model.SYHSEData_RiskControl newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_RiskControl table = new Model.SYHSEData_RiskControl
|
||||
{
|
||||
Id = newtable.Id,
|
||||
FactoryId = newtable.FactoryId,
|
||||
RiskControlName = newtable.RiskControlName,
|
||||
ReportDate = newtable.ReportDate,
|
||||
};
|
||||
db.SYHSEData_RiskControl.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkSYHSEData_RiskControl(List<Model.SYHSEData_RiskControl> newtables)
|
||||
{
|
||||
|
||||
db.SYHSEData_RiskControl.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdateSYHSEData_RiskControl(Model.SYHSEData_RiskControl newtable)
|
||||
{
|
||||
|
||||
Model.SYHSEData_RiskControl table = db.SYHSEData_RiskControl.FirstOrDefault(x => x.Id == newtable.Id);
|
||||
if (table != null)
|
||||
{
|
||||
table.Id = newtable.Id;
|
||||
table.FactoryId = newtable.FactoryId;
|
||||
table.RiskControlName = newtable.RiskControlName;
|
||||
table.ReportDate = newtable.ReportDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeleteSYHSEData_RiskControlById(string Id)
|
||||
{
|
||||
|
||||
Model.SYHSEData_RiskControl table = db.SYHSEData_RiskControl.FirstOrDefault(x => x.Id == Id);
|
||||
if (table != null)
|
||||
{
|
||||
db.SYHSEData_RiskControl.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLSYHSEData_RiskControl()
|
||||
{
|
||||
if (db.SYHSEData_RiskControl != null)
|
||||
{
|
||||
db.SYHSEData_RiskControl.DeleteAllOnSubmit(db.SYHSEData_RiskControl);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static List<Model.SYHSEData_RiskControl> GetSYHSEData_RiskControlByDate(DateTime? reportDate)
|
||||
{
|
||||
var q = from x in db.SYHSEData_RiskControl
|
||||
where x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0
|
||||
select x;
|
||||
return q.ToList();
|
||||
}
|
||||
public static void DeleteSYHSEData_RiskControlByDate(DateTime? reportDate)
|
||||
{
|
||||
|
||||
var table = db.SYHSEData_RiskControl.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
if (table != null)
|
||||
{
|
||||
db.SYHSEData_RiskControl.DeleteAllOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,121 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaseFactory.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.BaseFactory" %>
|
||||
|
||||
<!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;
|
||||
}
|
||||
|
||||
.f-grid-row.yellow {
|
||||
background-color: YellowGreen;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.f-grid-row.red {
|
||||
background-color: Yellow;
|
||||
}
|
||||
</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" AutoScroll="true"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="实业工厂表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FactoryId" AllowCellEditing="true" ForceFit="true"
|
||||
ClicksToEdit="2" DataIDField="FactoryId" AllowSorting="true" SortField="FactoryId"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Hidden="true" Icon="Add" runat="server"
|
||||
OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出" Icon="FolderUp"
|
||||
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:TemplateField Width="120px" HeaderText="单位名称" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.UnitService.GetUnitNameByUnitId(Eval("UnitId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="FactoryCode" DataField="FactoryCode" SortField="FactoryCode"
|
||||
FieldType="String" HeaderText="实业编号" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="FactoryName" DataField="FactoryName" SortField="FactoryName"
|
||||
FieldType="String" HeaderText="实业名称" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Address" DataField="Address" SortField="Address"
|
||||
FieldType="String" HeaderText="地址" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
</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>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" runat="server" Hidden="true" ShowHeader="true"
|
||||
IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window1_Close"
|
||||
Title="编辑" EnableIFrame="true" Height="350px"
|
||||
Width="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnDelete_Click" EnablePostBack="true" Icon="Delete"
|
||||
Hidden="true" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除">
|
||||
</f:MenuButton>
|
||||
</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;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,249 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
public partial class BaseFactory : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.GetButtonPower();
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#region 绑定数据
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.Base_Factory table = new Model.Base_Factory();
|
||||
var tb = BLL.Base_FactoryService.getListData(table, Grid1);
|
||||
Grid1.RecordCount = Base_FactoryService.count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
Grid1.DataSource = tb;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region GV 数据操作
|
||||
/// <summary>
|
||||
/// 过滤表头
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void Grid1_FilterChange(object sender, EventArgs e)
|
||||
//{
|
||||
// this.BindGrid();
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
this.Grid1.PageIndex = e.NewPageIndex;
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
this.Grid1.SortDirection = e.SortDirection;
|
||||
this.Grid1.SortField = e.SortField;
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据编辑事件
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BaseFactoryEdit.aspx?FactoryId={0}", string.Empty, "增加 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string ID = Grid1.SelectedRowID;
|
||||
var model = BLL.Base_FactoryService.GetBase_FactoryById(ID);
|
||||
if (model != null) ///已上报时不能删除
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BaseFactoryEdit.aspx?FactoryId={0}", ID, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
this.btnEdit_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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();
|
||||
var model = BLL.Base_FactoryService.GetBase_FactoryById(rowID);
|
||||
if (model != null)
|
||||
{
|
||||
BLL.Base_FactoryService.DeleteBase_FactoryById(rowID);
|
||||
}
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取权限按钮
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.Base_FactoryMenuId);
|
||||
if (buttonList.Count > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("实业工厂表" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = 500;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出方法
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns></returns>
|
||||
private string GetGridTableHtml(Grid grid)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
string html = row.Values[column.ColumnIndex].ToString();
|
||||
if (column.ColumnID == "tfNumber")
|
||||
{
|
||||
html = (row.FindControl("lblNumber") as AspNet.Label).Text;
|
||||
}
|
||||
sb.AppendFormat("<td>{0}</td>", html);
|
||||
}
|
||||
|
||||
sb.Append("</tr>");
|
||||
}
|
||||
|
||||
sb.Append("</table>");
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,161 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
|
||||
public partial class BaseFactory
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <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>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaseFactoryEdit.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.BaseFactoryEdit" %>
|
||||
|
||||
<!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="txtFactoryCode" runat="server" Label="实业编号" MaxLength="200">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFactoryName" runat="server" Label="实业名称" MaxLength="200">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAddress" runat="server" Label="地址" MaxLength="200">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</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="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
public partial class BaseFactoryEdit: PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string FactoryId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["FactoryId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["FactoryId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.FactoryId = Request.Params["FactoryId"];
|
||||
if (!string.IsNullOrEmpty(this.FactoryId))
|
||||
{
|
||||
Model.Base_Factory model = BLL.Base_FactoryService.GetBase_FactoryById(this.FactoryId);
|
||||
if (model != null)
|
||||
{
|
||||
this.txtFactoryCode.Text = model.FactoryCode;
|
||||
this.txtFactoryName.Text = model.FactoryName;
|
||||
this.txtAddress.Text = model.Address;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsSaveCode())
|
||||
{
|
||||
ShowNotify("编号重复,请注意!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Base_Factory table = new Model.Base_Factory();
|
||||
table.UnitId = BLL.Const.UnitId_CD;
|
||||
table.FactoryCode = this.txtFactoryCode.Text;
|
||||
table.FactoryName = this.txtFactoryName.Text;
|
||||
table.Address = this.txtAddress.Text;
|
||||
if (string.IsNullOrEmpty(this.FactoryId))
|
||||
{
|
||||
table.FactoryId = SQLHelper.GetNewID(typeof(Model.Base_Factory));
|
||||
BLL.Base_FactoryService.AddBase_Factory(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
table.FactoryId = this.FactoryId;
|
||||
BLL.Base_FactoryService.UpdateBase_Factory(table);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
protected bool IsSaveCode()
|
||||
{
|
||||
bool result = true;
|
||||
var model = BLL.Base_FactoryService.GetBase_FactoryByCode(this.txtFactoryCode.Text);
|
||||
if(model != null && model.FactoryId !=this.FactoryId)
|
||||
{
|
||||
result=false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.Base_FactoryMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,107 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
|
||||
public partial class BaseFactoryEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtFactoryCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFactoryCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtFactoryName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFactoryName;
|
||||
|
||||
/// <summary>
|
||||
/// txtAddress 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAddress;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
|
@ -1715,3 +1715,185 @@ IP地址:::1
|
|||
|
||||
出错时间:02/23/2023 10:40:22
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:文件“/BaseInfo/Base_FactoryEdit.aspx”不存在。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
|
||||
在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||
在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||
在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
|
||||
在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
|
||||
在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
|
||||
在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
|
||||
在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
|
||||
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
|
||||
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
||||
出错时间:03/07/2023 19:28:11
|
||||
出错文件:http://localhost:8119/BaseInfo/Base_FactoryEdit.aspx?FactoryId=
|
||||
IP地址:::1
|
||||
|
||||
出错时间:03/07/2023 19:28:11
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:文件“/BaseInfo/Base_FactoryEdit.aspx”不存在。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
|
||||
在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||
在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||
在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
|
||||
在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
|
||||
在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
|
||||
在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
|
||||
在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
|
||||
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
|
||||
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
||||
出错时间:03/07/2023 19:28:59
|
||||
出错文件:http://localhost:8119/BaseInfo/Base_FactoryEdit.aspx?FactoryId=
|
||||
IP地址:::1
|
||||
|
||||
出错时间:03/07/2023 19:28:59
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:MissingMethodException
|
||||
错误信息:找不到方法:“Model.Base_Factory BLL.Base_FactoryService.GetBase_FactoryByCode(System.String)”。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.BaseInfo.BaseFactoryEdit.IsSaveCode()
|
||||
在 FineUIPro.Web.BaseInfo.BaseFactoryEdit.btnSave_Click(Object sender, EventArgs e)
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 19:39:59
|
||||
出错文件:http://localhost:8119/BaseInfo/BaseFactoryEdit.aspx?FactoryId=
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 19:39:59
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:MissingMethodException
|
||||
错误信息:找不到方法:“Model.Base_Factory BLL.Base_FactoryService.GetBase_FactoryByCode(System.String)”。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.BaseInfo.BaseFactoryEdit.IsSaveCode()
|
||||
在 FineUIPro.Web.BaseInfo.BaseFactoryEdit.btnSave_Click(Object sender, EventArgs e)
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 19:40:25
|
||||
出错文件:http://localhost:8119/BaseInfo/BaseFactoryEdit.aspx?FactoryId=
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 19:40:25
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:DuplicateKeyException
|
||||
错误信息:不能添加其键已在使用中的实体。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited)
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects()
|
||||
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges()
|
||||
在 BLL.SysConstSetService.SetToken(String token) 位置 D:\诺必达\成达\SGGL_CD\SGGL\BLL\SysManage\SysConstSetService.cs:行号 87
|
||||
在 FineUIPro.Web.SysManage.SysConstSet.btnApply_Click(Object sender, EventArgs e) 位置 D:\诺必达\成达\SGGL_CD\SGGL\FineUIPro.Web\SysManage\SysConstSet.aspx.cs:行号 1175
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 22:38:31
|
||||
出错文件:http://localhost:8119/SysManage/SysConstSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 22:38:31
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:DuplicateKeyException
|
||||
错误信息:不能添加其键已在使用中的实体。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited)
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects()
|
||||
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges()
|
||||
在 BLL.SysConstSetService.SetToken(String token) 位置 D:\诺必达\成达\SGGL_CD\SGGL\BLL\SysManage\SysConstSetService.cs:行号 87
|
||||
在 FineUIPro.Web.SysManage.SysConstSet.btnApply_Click(Object sender, EventArgs e) 位置 D:\诺必达\成达\SGGL_CD\SGGL\FineUIPro.Web\SysManage\SysConstSet.aspx.cs:行号 1175
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 22:40:55
|
||||
出错文件:http://localhost:8119/SysManage/SysConstSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 22:40:55
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:DuplicateKeyException
|
||||
错误信息:不能添加其键已在使用中的实体。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited)
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects()
|
||||
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges()
|
||||
在 BLL.SysConstSetService.SetToken(String token) 位置 D:\诺必达\成达\SGGL_CD\SGGL\BLL\SysManage\SysConstSetService.cs:行号 87
|
||||
在 FineUIPro.Web.SysManage.SysConstSet.btnApply_Click(Object sender, EventArgs e) 位置 D:\诺必达\成达\SGGL_CD\SGGL\FineUIPro.Web\SysManage\SysConstSet.aspx.cs:行号 1175
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 22:41:36
|
||||
出错文件:http://localhost:8119/SysManage/SysConstSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 22:41:36
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:DuplicateKeyException
|
||||
错误信息:不能添加其键已在使用中的实体。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects(MetaType type, Object item, Dictionary`2 visited)
|
||||
在 System.Data.Linq.ChangeProcessor.TrackUntrackedObjects()
|
||||
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges()
|
||||
在 BLL.SysConstSetService.SetTokenExpirationTime(String ExpirationTime)
|
||||
在 FineUIPro.Web.SysManage.SysConstSet.btnApply_Click(Object sender, EventArgs e) 位置 D:\诺必达\成达\SGGL_CD\SGGL\FineUIPro.Web\SysManage\SysConstSet.aspx.cs:行号 1176
|
||||
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||
在 (Button , EventArgs )
|
||||
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/07/2023 22:43:33
|
||||
出错文件:http://localhost:8119/SysManage/SysConstSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/07/2023 22:43:33
|
||||
|
||||
|
|
|
@ -220,6 +220,8 @@
|
|||
<Content Include="AttachFile\uploader.aspx" />
|
||||
<Content Include="AttachFile\webuploader.aspx" />
|
||||
<Content Include="BaseInfo\AccidentType.aspx" />
|
||||
<Content Include="BaseInfo\BaseFactory.aspx" />
|
||||
<Content Include="BaseInfo\BaseFactoryEdit.aspx" />
|
||||
<Content Include="BaseInfo\Certificate.aspx" />
|
||||
<Content Include="BaseInfo\CNProfessional.aspx" />
|
||||
<Content Include="BaseInfo\CNProfessionalEdit.aspx" />
|
||||
|
@ -1829,6 +1831,8 @@
|
|||
<Content Include="ZHGL\DataSync\ProjectDataSync\Project_HSSEData_HSSEEdit.aspx" />
|
||||
<Content Include="ZHGL\DataSync\ProjectDataSync\Project_SYHSEData_SYHSE.aspx" />
|
||||
<Content Include="ZHGL\DataSync\ProjectDataSync\Project_SYHSEData_SYHSEEdit.aspx" />
|
||||
<Content Include="ZHGL\DataSync\SYHSEData_Data.aspx" />
|
||||
<Content Include="ZHGL\DataSync\SYHSEData_DataEdit.aspx" />
|
||||
<Content Include="ZHGL\DataSync\SYHSEData_SYHSE.aspx" />
|
||||
<Content Include="ZHGL\DataSync\SYHSEData_SYHSEEdit.aspx" />
|
||||
<Content Include="ZHGL\Environmental\EIAReport.aspx" />
|
||||
|
@ -6047,6 +6051,20 @@
|
|||
<Compile Include="BaseInfo\AccidentType.aspx.designer.cs">
|
||||
<DependentUpon>AccidentType.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BaseInfo\BaseFactory.aspx.cs">
|
||||
<DependentUpon>BaseFactory.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BaseInfo\BaseFactory.aspx.designer.cs">
|
||||
<DependentUpon>BaseFactory.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BaseInfo\BaseFactoryEdit.aspx.cs">
|
||||
<DependentUpon>BaseFactoryEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BaseInfo\BaseFactoryEdit.aspx.designer.cs">
|
||||
<DependentUpon>BaseFactoryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BaseInfo\Certificate.aspx.cs">
|
||||
<DependentUpon>Certificate.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -15542,6 +15560,20 @@
|
|||
<Compile Include="ZHGL\DataSync\ProjectDataSync\Project_SYHSEData_SYHSEEdit.aspx.designer.cs">
|
||||
<DependentUpon>Project_SYHSEData_SYHSEEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_Data.aspx.cs">
|
||||
<DependentUpon>SYHSEData_Data.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_Data.aspx.designer.cs">
|
||||
<DependentUpon>SYHSEData_Data.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_DataEdit.aspx.cs">
|
||||
<DependentUpon>SYHSEData_DataEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_DataEdit.aspx.designer.cs">
|
||||
<DependentUpon>SYHSEData_DataEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_SYHSE.aspx.cs">
|
||||
<DependentUpon>SYHSEData_SYHSE.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
<add key="localRoot" value="D:\ChengDa\SGGL_CD\SGGL\FineUIPro.Web\" />
|
||||
<!--视频服务器-->
|
||||
<add key="Video_URL" value="http://sggljk.chengda.com:10000/" />
|
||||
<add key="Video_USER" value="admin"/>
|
||||
<add key="Video_PW" value="admin"/>
|
||||
<add key="Video_USER" value="admin" />
|
||||
<add key="Video_PW" value="admin" />
|
||||
<!--跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版-->
|
||||
<add key="miniprogram_state" value="developer" />
|
||||
</appSettings>
|
||||
|
@ -159,7 +159,11 @@
|
|||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.2.10" newVersion="1.3.2.10" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.85.4.369" newVersion="0.85.4.369" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYHSEData_Data.aspx.cs" Inherits="FineUIPro.Web.ZHGL.DataSync.SYHSEData_Data" %>
|
||||
|
||||
<!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;
|
||||
}
|
||||
|
||||
.f-grid-row.yellow {
|
||||
background-color: YellowGreen;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.f-grid-row.red {
|
||||
background-color: Yellow;
|
||||
}
|
||||
</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" AutoScroll="true"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="实业数据表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" ForceFit="true"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Hidden="true" Icon="Add" runat="server"
|
||||
OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出" Icon="FolderUp"
|
||||
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:TemplateField ColumnID="tfNumber2" Width="200px" HeaderText="工厂" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.Base_FactoryService.GetBase_FactoryNameById(Eval("FactoryId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="SafetyMnaHours" DataField="SafetyMnaHours" SortField="SafetyMnaHours"
|
||||
FieldType="String" HeaderText="安全人工时" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="GeneralRiskNum" DataField="GeneralRiskNum" SortField="GeneralRiskNum"
|
||||
FieldType="String" HeaderText="一般风险数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="LowRiskNum" DataField="LowRiskNum" SortField="LowRiskNum"
|
||||
FieldType="String" HeaderText="低风险数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="MoreRiskNum" DataField="MoreRiskNum" SortField="MoreRiskNum"
|
||||
FieldType="String" HeaderText="较大风险数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="GreatRiskNum" DataField="GreatRiskNum" SortField="GreatRiskNum"
|
||||
FieldType="String" HeaderText="重大风险数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ReportDate" DataField="ReportDate" SortField="ReportDate" Renderer="Date"
|
||||
FieldType="Date" HeaderText="日期" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
</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>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" runat="server" Hidden="true" ShowHeader="true"
|
||||
IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window1_Close"
|
||||
Title="编辑SYHSEData_Data" EnableIFrame="true" Height="650px"
|
||||
Width="1200px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnDelete_Click" EnablePostBack="true" Icon="Delete"
|
||||
Hidden="true" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除">
|
||||
</f:MenuButton>
|
||||
</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;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,249 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
public partial class SYHSEData_Data :PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.GetButtonPower();
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#region 绑定数据
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.SYHSEData_Data table = new Model.SYHSEData_Data();
|
||||
var tb = BLL.SYHSEData_DataService.getListData(table, Grid1);
|
||||
Grid1.RecordCount = SYHSEData_DataService.count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
Grid1.DataSource = tb;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region GV 数据操作
|
||||
/// <summary>
|
||||
/// 过滤表头
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void Grid1_FilterChange(object sender, EventArgs e)
|
||||
//{
|
||||
// this.BindGrid();
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
this.Grid1.PageIndex = e.NewPageIndex;
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
this.Grid1.SortDirection = e.SortDirection;
|
||||
this.Grid1.SortField = e.SortField;
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据编辑事件
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SYHSEData_DataEdit.aspx?Id={0}", string.Empty, "增加 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string ID = Grid1.SelectedRowID;
|
||||
var model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(ID);
|
||||
if (model != null) ///已上报时不能删除
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SYHSEData_DataEdit.aspx?Id={0}", ID, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
this.btnEdit_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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();
|
||||
var model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(rowID);
|
||||
if (model != null)
|
||||
{
|
||||
BLL.SYHSEData_DataService.DeleteSYHSEData_DataById(rowID);
|
||||
}
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取权限按钮
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.SYHSEData_DataMenuId);
|
||||
if (buttonList.Count > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("实业数据表" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = 500;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出方法
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns></returns>
|
||||
private string GetGridTableHtml(Grid grid)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
string html = row.Values[column.ColumnIndex].ToString();
|
||||
if (column.ColumnID == "tfNumber")
|
||||
{
|
||||
html = (row.FindControl("lblNumber") as AspNet.Label).Text;
|
||||
}
|
||||
sb.AppendFormat("<td>{0}</td>", html);
|
||||
}
|
||||
|
||||
sb.Append("</tr>");
|
||||
}
|
||||
|
||||
sb.Append("</table>");
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,161 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
|
||||
|
||||
public partial class SYHSEData_Data
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <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>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,282 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYHSEData_DataEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.DataSync.SYHSEData_DataEdit" %>
|
||||
|
||||
<!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" runat="server" AutoSizePanelID="Form6" />
|
||||
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" IsFluid="true" BodyPadding="10" EnableCollapse="true" Title="" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel Title="单位信息" BodyPadding="10" ID="GroupPanel1" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="DropFactory" runat="server" Label="实业" Required="true" ForceSelection="false" EnableEdit="true"></f:DropDownList>
|
||||
<f:DatePicker ID="txtReportDate" runat="server" Label="上报日期" LabelWidth="160" MaxLength="200" OnDateSelect="txtReportDate_DateSelect" EnableDateSelectEvent="true"></f:DatePicker>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel Title="安全人工时" BodyPadding="10" ID="GroupPanel2" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtSafetyMnaHours" runat="server" Label="安全人工时" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:Label runat="server"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel Title="风险管控" BodyPadding="10" ID="GroupPanel3" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtGeneralRiskNum" runat="server" Label="一般风险数" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtLowRiskNum" runat="server" Label="低风险数" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtMoreRiskNum" runat="server" Label="较大风险数" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtGreatRiskNum" runat="server" Label="重大风险数" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel Title="重大危险源" BodyPadding="10" ID="GroupPanel6" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid_Realtimedevice" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="ID" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
EnableColumnLines="true" DataIDField="ID">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew_Realtimedevice" ToolTip="新增" Icon="Add" runat="server" Text="新增">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete_Realtimedevice" ToolTip="删除" Icon="Delete" EnablePostBack="false" runat="server" Text="删除">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" Width="60px"></f:RowNumberField>
|
||||
<f:RenderField Width="150px" ColumnID="HazardName" DataField="HazardName" SortField="HazardName"
|
||||
FieldType="String" HeaderText="风险名称" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtHazardName" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="HazardLevel" DataField="HazardLevel" SortField="HazardLevel"
|
||||
FieldType="String" HeaderText="风险等级" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtHazardLevel" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="DeviceName" DataField="DeviceName" SortField="DeviceName"
|
||||
FieldType="String" HeaderText="设备名称" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDeviceName" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Medium" DataField="Medium" SortField="Medium"
|
||||
FieldType="String" HeaderText="介质" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtMedium" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="MeasurementUnit" DataField="MeasurementUnit" SortField="MeasurementUnit"
|
||||
FieldType="String" HeaderText="测量单位" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtMeasurementUnit" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="DateTime" DataField="DateTime" SortField="DateTime" RendererArgument="yyyy-MM-dd"
|
||||
FieldType="Date" HeaderText="时间" TextAlign="Left" HeaderTextAlign="Center" Renderer="Date" >
|
||||
<Editor>
|
||||
<f:DatePicker ID="txtDateTime" runat="server" LabelWidth="160" MaxLength="200" DateFormatString="yyyy-MM-dd" ></f:DatePicker>
|
||||
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Value" DataField="Value" SortField="Value"
|
||||
FieldType="String" HeaderText="评价值" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtValue" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
|
||||
<f:GroupPanel Title="隐患排查" BodyPadding="10" ID="GroupPanel5" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid_Hidden" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="Id" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
EnableColumnLines="true" DataIDField="Id">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew_Hidden" ToolTip="新增" Icon="Add" runat="server" Text="新增">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete_Hidden" ToolTip="删除" Icon="Delete" EnablePostBack="false" runat="server" Text="删除">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" Width="60px"></f:RowNumberField>
|
||||
<f:RenderField Width="150px" ColumnID="HiddenDangerName" DataField="HiddenDangerName" SortField="HiddenDangerName"
|
||||
FieldType="String" HeaderText="隐患名称" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtHiddenDangerName" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="TotalNum" DataField="TotalNum" SortField="TotalNum"
|
||||
FieldType="String" HeaderText="当日总数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
<Editor>
|
||||
<f:NumberBox ID="txtTotalNum" runat="server" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum" SortField="OKNum"
|
||||
FieldType="String" HeaderText="当日整改数" TextAlign="Left" HeaderTextAlign="Center">
|
||||
<Editor>
|
||||
<f:NumberBox ID="txtOKNum" runat="server" NoDecimal="true" LabelWidth="160" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
|
||||
<f:GroupPanel Title="风险管控" BodyPadding="10" ID="GroupPanel4" EnableCollapse="true" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid_Risk" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="Id" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
EnableColumnLines="true" DataIDField="Id">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew_Risk" ToolTip="新增" Icon="Add" runat="server" Text="新增">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete_Risk" ToolTip="删除" Icon="Delete" EnablePostBack="false" runat="server" Text="删除">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" Width="60px"></f:RowNumberField>
|
||||
<f:RenderField Width="150px" ColumnID="RiskControlName" DataField="RiskControlName" SortField="RiskControlName"
|
||||
FieldType="String" HeaderText="风险管控名称" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtRiskControlName" runat="server" LabelWidth="160">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
|
||||
</Items>
|
||||
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" Text="保存" runat="server" ValidateForms="Form6"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSyn" Icon="TableMultiple" Text="上报" runat="server" ValidateForms="Form6"
|
||||
OnClick="btnSyn_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="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script>
|
||||
//function onGridDataLoad(event) {
|
||||
// this.mergeColumns(['txtPlanningContent']);
|
||||
//}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,334 @@
|
|||
using BLL;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RestSharp.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
public partial class SYHSEData_DataEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Id"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Id"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.Id = Request.Params["Id"];
|
||||
BLL.Base_FactoryService.InitBase_FactoryDownList(DropFactory, true);
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
// Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
|
||||
Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
if (model != null)
|
||||
{
|
||||
//this.txtUnitId.Text = model.UnitId;
|
||||
if (!string.IsNullOrEmpty(model.FactoryId))
|
||||
{
|
||||
DropFactory.SelectedValue=model.FactoryId;
|
||||
|
||||
}
|
||||
if (model.ReportDate != null)
|
||||
{
|
||||
this.txtReportDate.SelectedDate = model.ReportDate;
|
||||
}
|
||||
if (model.SafetyMnaHours.HasValue)
|
||||
{
|
||||
this.txtSafetyMnaHours.Text = model.SafetyMnaHours.Value.ToString();
|
||||
}
|
||||
if (model.GeneralRiskNum.HasValue)
|
||||
{
|
||||
this.txtGeneralRiskNum.Text = model.GeneralRiskNum.Value.ToString();
|
||||
}
|
||||
if (model.LowRiskNum.HasValue)
|
||||
{
|
||||
this.txtLowRiskNum.Text = model.LowRiskNum.Value.ToString();
|
||||
}
|
||||
if (model.MoreRiskNum.HasValue)
|
||||
{
|
||||
this.txtMoreRiskNum.Text = model.MoreRiskNum.Value.ToString();
|
||||
}
|
||||
if (model.GreatRiskNum.HasValue)
|
||||
{
|
||||
this.txtGreatRiskNum.Text = model.GreatRiskNum.Value.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
txtReportDate.SelectedDate = DateTime.Now;
|
||||
|
||||
}
|
||||
BindGrid();
|
||||
#region Grid1
|
||||
// 删除选中单元格的客户端脚本
|
||||
string deleteScript_Realtimedevice = GetDeleteScript_Realtimedevice();
|
||||
string deleteScript_Hidden = GetDeleteScript_Hidden();
|
||||
string deleteScript_Risk = GetDeleteScript_Risk();
|
||||
|
||||
JObject defaultObj_Realtimedevice = new JObject
|
||||
{
|
||||
{ "HazardName", "" },
|
||||
{ "HazardLevel", "" },
|
||||
{ "DeviceName", "" },
|
||||
{ "Medium", "" },
|
||||
{ "MeasurementUnit", "" },
|
||||
{ "DateTime", "" },
|
||||
{ "Value", "" }
|
||||
};
|
||||
// 在第一行新增一条数据
|
||||
btnNew_Realtimedevice.OnClientClick = Grid_Realtimedevice.GetAddNewRecordReference(defaultObj_Realtimedevice, true);
|
||||
// 删除选中行按钮
|
||||
btnDelete_Realtimedevice.OnClientClick = Grid_Realtimedevice.GetNoSelectionAlertReference("请选择一条记录!") + deleteScript_Realtimedevice;
|
||||
|
||||
JObject defaultObj_Hidden = new JObject
|
||||
{
|
||||
{ "HiddenDangerName", "" },
|
||||
{ "TotalNum", "" },
|
||||
{ "OKNum", "" }
|
||||
};
|
||||
// 在第一行新增一条数据
|
||||
btnNew_Hidden.OnClientClick = Grid_Hidden.GetAddNewRecordReference(defaultObj_Hidden, true);
|
||||
// 删除选中行按钮
|
||||
btnDelete_Hidden.OnClientClick = Grid_Hidden.GetNoSelectionAlertReference("请选择一条记录!") + deleteScript_Hidden;
|
||||
|
||||
JObject defaultObj_Risk = new JObject
|
||||
{
|
||||
{ "RiskControlName", "" }
|
||||
};
|
||||
// 在第一行新增一条数据
|
||||
btnNew_Risk.OnClientClick = Grid_Risk.GetAddNewRecordReference(defaultObj_Risk, true);
|
||||
// 删除选中行按钮
|
||||
btnDelete_Risk.OnClientClick = Grid_Risk.GetNoSelectionAlertReference("请选择一条记录!") + deleteScript_Risk;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (txtReportDate.SelectedDate == null)
|
||||
{
|
||||
|
||||
ShowNotify("请选择上报日期!");
|
||||
return;
|
||||
|
||||
}
|
||||
if (DropFactory.SelectedValue==Const._Null)
|
||||
{
|
||||
|
||||
ShowNotify("请选择实业!");
|
||||
return;
|
||||
|
||||
}
|
||||
Model.SYHSEData_Data table = new Model.SYHSEData_Data();
|
||||
table.FactoryId = this.DropFactory.SelectedValue;
|
||||
table.ReportDate = this.txtReportDate.SelectedDate;
|
||||
table.SafetyMnaHours = Funs.GetNewInt(this.txtSafetyMnaHours.Text);
|
||||
table.GeneralRiskNum = Funs.GetNewInt(this.txtGeneralRiskNum.Text);
|
||||
table.LowRiskNum = Funs.GetNewInt(this.txtLowRiskNum.Text);
|
||||
table.MoreRiskNum = Funs.GetNewInt(this.txtMoreRiskNum.Text);
|
||||
table.GreatRiskNum = Funs.GetNewInt(this.txtGreatRiskNum.Text);
|
||||
if (string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
table.Id = SQLHelper.GetNewID(typeof(Model.SYHSEData_Data));
|
||||
BLL.SYHSEData_DataService.AddSYHSEData_Data(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
table.Id = this.Id;
|
||||
BLL.SYHSEData_DataService.UpdateSYHSEData_Data(table);
|
||||
}
|
||||
|
||||
BLL.HazardRealtimedeviceService.DeleteHazard_RealTimeDeviceByDate(table.ReportDate);
|
||||
JArray EditorArr_Realtimedevice = Grid_Realtimedevice.GetMergedData();
|
||||
if (EditorArr_Realtimedevice.Count > 0)
|
||||
{
|
||||
Model.Hazard_RealTimeDevice defect = new Model.Hazard_RealTimeDevice();
|
||||
|
||||
for (int i = 0; i < EditorArr_Realtimedevice.Count; i++)
|
||||
{
|
||||
JObject objects = (JObject)EditorArr_Realtimedevice[i];
|
||||
defect.ID = SQLHelper.GetNewID(typeof(Model.Hazard_RealTimeDevice));
|
||||
defect.ReportDate = table.ReportDate;
|
||||
defect.FactoryId = DropFactory.SelectedValue;
|
||||
defect.HazardName = objects["values"]["HazardName"].ToString();
|
||||
defect.HazardLevel = objects["values"]["HazardLevel"].ToString();
|
||||
defect.DeviceName = objects["values"]["DeviceName"].ToString();
|
||||
defect.Medium = objects["values"]["Medium"].ToString();
|
||||
defect.MeasurementUnit = objects["values"]["MeasurementUnit"].ToString();
|
||||
defect.Value = objects["values"]["Value"].ToString();
|
||||
defect.DateTime =DateTime.Parse(objects["values"]["DateTime"].ToString()) ;
|
||||
//defect.HazardLevel = Funs.GetNewInt(objects["values"]["HazardLevel"].ToString());
|
||||
|
||||
BLL.HazardRealtimedeviceService.AddHazard_RealTimeDevice(defect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
BLL.SyhsedataHiddendangercheckService.DeleteSYHSEData_HiddenDangerCheckByDate(table.ReportDate);
|
||||
JArray EditorArr_Hidden = Grid_Hidden.GetMergedData();
|
||||
if (EditorArr_Hidden.Count > 0)
|
||||
{
|
||||
Model.SYHSEData_HiddenDangerCheck defect = new Model.SYHSEData_HiddenDangerCheck();
|
||||
|
||||
for (int i = 0; i < EditorArr_Hidden.Count; i++)
|
||||
{
|
||||
JObject objects = (JObject)EditorArr_Hidden[i];
|
||||
defect.Id = SQLHelper.GetNewID(typeof(Model.SYHSEData_HiddenDangerCheck));
|
||||
defect.ReportDate = table.ReportDate;
|
||||
defect.FactoryId = DropFactory.SelectedValue;
|
||||
defect.HiddenDangerName = objects["values"]["HiddenDangerName"].ToString();
|
||||
defect.TotalNum = Funs.GetNewInt(objects["values"]["TotalNum"].ToString());
|
||||
defect.OKNum = Funs.GetNewInt(objects["values"]["OKNum"].ToString());
|
||||
|
||||
BLL.SyhsedataHiddendangercheckService.AddSYHSEData_HiddenDangerCheck(defect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
BLL.SyhsedataRiskcontrolService.DeleteSYHSEData_RiskControlByDate(table.ReportDate);
|
||||
JArray EditorArr_Risk = Grid_Risk.GetMergedData();
|
||||
if (EditorArr_Risk.Count > 0)
|
||||
{
|
||||
Model.SYHSEData_RiskControl defect = new Model.SYHSEData_RiskControl();
|
||||
|
||||
for (int i = 0; i < EditorArr_Risk.Count; i++)
|
||||
{
|
||||
JObject objects = (JObject)EditorArr_Risk[i];
|
||||
defect.Id = SQLHelper.GetNewID(typeof(Model.SYHSEData_RiskControl));
|
||||
defect.ReportDate = table.ReportDate;
|
||||
defect.FactoryId = DropFactory.SelectedValue;
|
||||
defect.RiskControlName = objects["values"]["RiskControlName"].ToString();
|
||||
BLL.SyhsedataRiskcontrolService.AddSYHSEData_RiskControl(defect);
|
||||
}
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
if (model != null)
|
||||
{
|
||||
var dt_Realtimedevice = BLL.HazardRealtimedeviceService.GetHazard_RealTimeDeviceByDate(model.ReportDate);
|
||||
Grid_Realtimedevice.RecordCount = dt_Realtimedevice.Count;
|
||||
Grid_Realtimedevice.DataSource = dt_Realtimedevice;
|
||||
Grid_Realtimedevice.DataBind();
|
||||
|
||||
var dt_Hidden= SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(model.ReportDate);
|
||||
Grid_Hidden.RecordCount = dt_Hidden.Count;
|
||||
Grid_Hidden.DataSource = dt_Hidden;
|
||||
Grid_Hidden.DataBind();
|
||||
|
||||
var dt_Risk = SyhsedataRiskcontrolService.GetSYHSEData_RiskControlByDate(model.ReportDate);
|
||||
Grid_Risk.RecordCount = dt_Risk.Count;
|
||||
Grid_Risk.DataSource = dt_Risk;
|
||||
Grid_Risk.DataBind();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
protected void txtReportDate_DateSelect(object sender, EventArgs e)
|
||||
{
|
||||
if (txtReportDate.SelectedDate != null)
|
||||
{
|
||||
DateTime dt = (DateTime)txtReportDate.SelectedDate;
|
||||
if (BLL.SYHSEData_DataService.IsReportByDate(dt))
|
||||
{
|
||||
txtReportDate.SelectedDate = null;
|
||||
ShowNotify("该日期已上报!");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void btnSyn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
var responedata = SYHSEData_DataService.PushCNCEC(Id);
|
||||
if (responedata.code == 1)
|
||||
{
|
||||
ShowNotify("上报成功!");
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(responedata.message);
|
||||
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
private string GetDeleteScript_Realtimedevice()
|
||||
{
|
||||
return Confirm.GetShowReference("确定删除当前数据吗?", String.Empty, MessageBoxIcon.Question, Grid_Realtimedevice.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
private string GetDeleteScript_Hidden()
|
||||
{
|
||||
return Confirm.GetShowReference("确定删除当前数据吗?", String.Empty, MessageBoxIcon.Question, Grid_Hidden.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
private string GetDeleteScript_Risk()
|
||||
{
|
||||
return Confirm.GetShowReference("确定删除当前数据吗?", String.Empty, MessageBoxIcon.Question, Grid_Risk.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.SYHSEData_DataMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,476 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
|
||||
|
||||
public partial class SYHSEData_DataEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Form6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form6;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// DropFactory 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropFactory;
|
||||
|
||||
/// <summary>
|
||||
/// txtReportDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtReportDate;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyMnaHours 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSafetyMnaHours;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel3;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// txtGeneralRiskNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtGeneralRiskNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtLowRiskNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtLowRiskNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtMoreRiskNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoreRiskNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtGreatRiskNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtGreatRiskNum;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel6;
|
||||
|
||||
/// <summary>
|
||||
/// Form7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form7;
|
||||
|
||||
/// <summary>
|
||||
/// Grid_Realtimedevice 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid_Realtimedevice;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew_Realtimedevice 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew_Realtimedevice;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete_Realtimedevice 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete_Realtimedevice;
|
||||
|
||||
/// <summary>
|
||||
/// txtHazardName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHazardName;
|
||||
|
||||
/// <summary>
|
||||
/// txtHazardLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHazardLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtDeviceName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDeviceName;
|
||||
|
||||
/// <summary>
|
||||
/// txtMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtMeasurementUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMeasurementUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtDateTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtDateTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel5;
|
||||
|
||||
/// <summary>
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// Grid_Hidden 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid_Hidden;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew_Hidden 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew_Hidden;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete_Hidden 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete_Hidden;
|
||||
|
||||
/// <summary>
|
||||
/// txtHiddenDangerName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHiddenDangerName;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtOKNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtOKNum;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel4;
|
||||
|
||||
/// <summary>
|
||||
/// Form4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// Grid_Risk 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid_Risk;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew_Risk 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew_Risk;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete_Risk 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete_Risk;
|
||||
|
||||
/// <summary>
|
||||
/// txtRiskControlName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRiskControlName;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSyn 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSyn;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
|
@ -31,8 +31,8 @@
|
|||
<TreeNode id="FAF7F4A4-A4BC-4D94-9E88-0CF5A380DB34" Text="考试计划" NavigateUrl="HSSE/EduTrain/TestPlan.aspx"></TreeNode>
|
||||
<TreeNode id="0EEB138D-84F9-4686-8CBB-CAEAA6CF1B2A" Text="考试记录" NavigateUrl="HSSE/EduTrain/TestRecord.aspx"></TreeNode>
|
||||
<TreeNode id="6FF941C1-8A00-4A74-8111-C892FC30A8DA" Text="考试统计" NavigateUrl="HSSE/EduTrain/TestStatistics.aspx"></TreeNode>
|
||||
<TreeNode id="1D9BC5A9-6CFF-4C38-BA69-D48BFAE6DDB3" Text="人员请假" NavigateUrl="HSSE/SitePerson/PersonAskForLeaveList.aspx"></TreeNode>
|
||||
<TreeNode id="AD6FC259-CF40-41C7-BA3F-15AC50C1DD20" Text="人员信息档案" NavigateUrl="HSSE/SitePerson/PersonList.aspx"></TreeNode>
|
||||
<TreeNode id="1D9BC5A9-6CFF-4C38-BA69-D48BFAE6DDB3" Text="人员请假" NavigateUrl="HSSE/SitePerson/PersonAskForLeaveList.aspx"></TreeNode>
|
||||
<TreeNode id="8F15D3BE-BE21-4A6F-AD5C-2BBECEE46149" Text="人工时日报" NavigateUrl="HSSE/SitePerson/DayReport.aspx"></TreeNode>
|
||||
<TreeNode id="6C97E014-AF13-46E5-ADB2-03D327C560EC" Text="人工时月报" NavigateUrl="HSSE/SitePerson/MonthReport.aspx"></TreeNode>
|
||||
<TreeNode id="7ACB0CB1-15D8-4E8E-A54D-0CDC5F69B39A" Text="发卡管理" NavigateUrl="HSSE/SitePerson/SendCard.aspx"></TreeNode>
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
<Tree>
|
||||
<TreeNode id="B95DF6F0-EB0C-4120-BD56-A4453AB42059" Text="项目列表" NavigateUrl="ProjectData/ProjectList.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="CD167198-1667-4552-9876-E768C2542C30" Text="实业信息" NavigateUrl="BaseInfo/BaseFactory.aspx"></TreeNode>
|
||||
</Tree>
|
|
@ -61,5 +61,6 @@
|
|||
<TreeNode id="1E216BE3-DB22-4649-BD9A-0777B0DC03E6" Text="QHSE上报" NavigateUrl=""><TreeNode id="94F94EC1-54B3-4BEB-A019-0A755A66D8FD" Text="安全数据" NavigateUrl="ZHGL/DataSync/HSSEData_HSSE.aspx"></TreeNode>
|
||||
<TreeNode id="4C9920AE-F335-48B1-BDB0-276173305952" Text="质量数据" NavigateUrl="ZHGL/DataSync/CQMSData_CQMS.aspx"></TreeNode>
|
||||
<TreeNode id="2110702F-4E12-479A-8EA1-E5A8EEF77276" Text="焊接数据" NavigateUrl="ZHGL/DataSync/HJGLData_HJGL.aspx"></TreeNode>
|
||||
<TreeNode id="S89E5EC2-F725-4656-9110-5AF83C18FB6C" Text="实业数据" NavigateUrl="ZHGL/DataSync/SYHSEData_Data.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
public class NewSYHSEData
|
||||
{
|
||||
/// <summary>
|
||||
/// 实业数据项集合
|
||||
/// </summary>
|
||||
public List<NewSYHSEDataItem> NewSYHSEDataItems
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
public class NewSYHSEDataHiddenDangerCheckItem
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 隐患名称
|
||||
/// </summary>
|
||||
public string HiddenDangerName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 当日总数
|
||||
/// </summary>
|
||||
public int TotalNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 当日整改数
|
||||
/// </summary>
|
||||
public int OKNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,167 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 实业数据项
|
||||
/// </summary>
|
||||
public class NewSYHSEDataItem
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上报日期
|
||||
/// </summary>
|
||||
public string ReportDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单位Id
|
||||
/// </summary>
|
||||
public string UnitId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 社会统一信用码
|
||||
/// </summary>
|
||||
public string CollCropCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
/// </summary>
|
||||
public string UnitName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实业ID
|
||||
/// </summary>
|
||||
public string FactoryId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实业编号
|
||||
/// </summary>
|
||||
public string FactoryCode
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实业名称
|
||||
/// </summary>
|
||||
public string FactoryName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
public string Address
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 安全人工时
|
||||
/// </summary>
|
||||
public int SafetyMnaHours
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 一般风险数
|
||||
/// </summary>
|
||||
public int GeneralRiskNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 低风险数
|
||||
/// </summary>
|
||||
public int LowRiskNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 较大风险数
|
||||
/// </summary>
|
||||
public int MoreRiskNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重大风险数
|
||||
/// </summary>
|
||||
public int GreatRiskNum
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 风险管控
|
||||
/// </summary>
|
||||
public List<NewSYHSEDataRiskControlItem> NewSYHSEDataRiskControlItems
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重大危险源
|
||||
/// </summary>
|
||||
public List<NewSYHSEDataRealTimeDeviceItem> NewSYHSEDataRealTimeDeviceItems
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 隐患排查
|
||||
/// </summary>
|
||||
public List<NewSYHSEDataHiddenDangerCheckItem> NewSYHSEDataHiddenDangerCheckItems
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
public class NewSYHSEDataRealTimeDeviceItem
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 风险名称
|
||||
/// </summary>
|
||||
public string HazardName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 风险等级
|
||||
/// </summary>
|
||||
public string HazardLevel
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
public string DeviceName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 介质
|
||||
/// </summary>
|
||||
public string Medium
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量单位
|
||||
/// </summary>
|
||||
public string MeasurementUnit
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
public string DateTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 评价值
|
||||
/// </summary>
|
||||
public string Value
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
public class NewSYHSEDataRiskControlItem
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 风险名称
|
||||
/// </summary>
|
||||
public string RiskControlName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
1120
SGGL/Model/Model.cs
1120
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
|
@ -139,6 +139,11 @@
|
|||
<Compile Include="APIItem\HSSE\TestRecordItemItem.cs" />
|
||||
<Compile Include="APIItem\HSSE\TestTrainingResourcesItem.cs" />
|
||||
<Compile Include="APIItem\ReturnData.cs" />
|
||||
<Compile Include="APIItem\SHHSE\NewSYHSEData.cs" />
|
||||
<Compile Include="APIItem\SHHSE\NewSYHSEDataHiddenDangerCheckItem.cs" />
|
||||
<Compile Include="APIItem\SHHSE\NewSYHSEDataItem.cs" />
|
||||
<Compile Include="APIItem\SHHSE\NewSYHSEDataRealTimeDeviceItem.cs" />
|
||||
<Compile Include="APIItem\SHHSE\NewSYHSEDataRiskControlItem.cs" />
|
||||
<Compile Include="APIItem\ToDoItem.cs" />
|
||||
<Compile Include="APIItem\HSSE\TrainingPlanItem.cs" />
|
||||
<Compile Include="APIItem\HSSE\TrainingPlanItemItem.cs" />
|
||||
|
|
Loading…
Reference in New Issue