修改实业及环保数据
This commit is contained in:
parent
1e79fa5a96
commit
e78f7c64e6
|
@ -0,0 +1,214 @@
|
|||
|
||||
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
|
||||
|
||||
alter table [dbo].[HSSEData_HSSE] alter column [TotalEnergyConsumption] decimal(18,4) null
|
||||
alter table [dbo].[HSSEData_HSSE] alter column [IncomeComprehensiveEnergyConsumption] decimal(18,4) null
|
||||
alter table [dbo].[HSSEData_HSSE] alter column [NewWaterConsumption] decimal(18,4) null
|
||||
go
|
|
@ -151,6 +151,7 @@
|
|||
<Compile Include="API\HSSE\APITrainingTaskService.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" />
|
||||
|
@ -735,6 +736,7 @@
|
|||
<Compile Include="WebService\CNCECHSSEMonitorService.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" />
|
||||
|
@ -746,6 +748,9 @@
|
|||
<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_RiskControlService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\SYHSEData_SYHSEService.cs" />
|
||||
<Compile Include="ZHGL\HSSESystem\HSSEManageItemService.cs" />
|
||||
<Compile Include="ZHGL\HSSESystem\HSSEManageService.cs" />
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4926,5 +4926,11 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string Project_SYHSEData_SYHSEMenuId = "";
|
||||
#endregion
|
||||
|
||||
public const string Base_FactoryMenuId = "CD167198-1667-4552-9876-E768C2542C30";
|
||||
/// <summary>
|
||||
/// 实业
|
||||
/// </summary>
|
||||
public const string SYHSEData_DataMenuId = "S89E5EC2-F725-4656-9110-5AF83C18FB6C";
|
||||
}
|
||||
}
|
|
@ -693,5 +693,20 @@ namespace BLL
|
|||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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_CWCEC;
|
||||
Item.CollCropCode = UnitService.GetUnitByUnitId(Const.UnitId_CWCEC).CollCropCode;
|
||||
Item.UnitName= UnitService.GetUnitByUnitId(Const.UnitId_CWCEC).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_CWCEC;
|
||||
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;
|
||||
}
|
||||
}
|
|
@ -204,6 +204,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" />
|
||||
|
@ -1614,6 +1616,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" />
|
||||
|
@ -5837,6 +5841,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>
|
||||
|
@ -14835,6 +14853,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>
|
||||
|
|
|
@ -214,6 +214,10 @@ namespace FineUIPro.Web.JDGL.WBS
|
|||
{
|
||||
try
|
||||
{
|
||||
//strConn = "Provider=Microsoft.Jet.OleDb.4.0;" +
|
||||
// "data source=" + Server.MapPath("ExcelFiles/MyExcelFile.xls") +
|
||||
// ";Extended Properties='Excel 8.0; HDR=Yes; IMEX=1'"; //此连接只能操作Excel2003或之前版本(.xls)文件
|
||||
|
||||
string oleDBConnString = String.Empty;
|
||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
||||
oleDBConnString += "Data Source=";
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSSE首页数据表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="ReportDate"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
|
@ -99,13 +99,13 @@
|
|||
FieldType="String" HeaderText="特种作业培训数" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="TotalEnergyConsumption" DataField="TotalEnergyConsumption" SortField="TotalEnergyConsumption"
|
||||
FieldType="String" HeaderText="能耗总量" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
FieldType="String" HeaderText="能耗总量(万吨标准煤)" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="IncomeComprehensiveEnergyConsumption" DataField="IncomeComprehensiveEnergyConsumption" SortField="IncomeComprehensiveEnergyConsumption"
|
||||
FieldType="String" HeaderText="万元营业收入综合能耗" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
FieldType="String" HeaderText="万元营业收入综合能耗(吨标准煤/万元)" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="NewWaterConsumption" DataField="NewWaterConsumption" SortField="NewWaterConsumption"
|
||||
FieldType="String" HeaderText="用新水量" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
FieldType="String" HeaderText="用新水量(万吨)" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="HeadOfficeInspectorGeneralNum" DataField="HeadOfficeInspectorGeneralNum" SortField="HeadOfficeInspectorGeneralNum"
|
||||
FieldType="String" HeaderText="企业总部总监人数" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
|
|
|
@ -118,15 +118,15 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtTotalEnergyConsumption" runat="server" Label="能耗总量" LabelWidth="160" NoDecimal="true" NoNegative="true">
|
||||
<f:NumberBox ID="txtTotalEnergyConsumption" runat="server" Label="能耗总量(万吨标准煤)" LabelWidth="160" NoDecimal="false" DecimalPrecision="4" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtIncomeComprehensiveEnergyConsumption" runat="server" Label="万元营业收入综合能耗" LabelWidth="160" NoDecimal="true" NoNegative="true">
|
||||
<f:NumberBox ID="txtIncomeComprehensiveEnergyConsumption" runat="server" Label="万元营业收入综合能耗(吨标准煤/万元)" LabelWidth="160" NoDecimal="false" DecimalPrecision="4" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtNewWaterConsumption" runat="server" Label="用新水量" LabelWidth="160" NoDecimal="true" NoNegative="true">
|
||||
<f:NumberBox ID="txtNewWaterConsumption" runat="server" Label="用新水量(万吨)" LabelWidth="160" NoDecimal="false" DecimalPrecision="4" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:Label runat="server"></f:Label>
|
||||
</Items>
|
||||
|
@ -515,6 +515,9 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnCopy" Icon="Database" runat="server" ToolTip="复制上次数据" Text ="复制上次数据"
|
||||
ValidateForms="SimpleForm1" OnClick="btnCopy_Click" MarginLeft="10px">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" Text="保存" runat="server" ValidateForms="Form15"
|
||||
OnClick="btnSave_Click">
|
||||
|
|
|
@ -334,7 +334,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
|||
}
|
||||
else
|
||||
{
|
||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CWCEC);
|
||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(Const.UnitId_CWCEC);
|
||||
txtUnitName.Text = base_Unit.UnitName;
|
||||
txtCollCropCode.Text = base_Unit.CollCropCode;
|
||||
txtReportDate.SelectedDate = DateTime.Now;
|
||||
|
@ -389,7 +389,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
|||
|
||||
}
|
||||
Model.HSSEData_HSSE table = new Model.HSSEData_HSSE();
|
||||
table.UnitId = BLL.Const.UnitId_CWCEC;
|
||||
table.UnitId = Const.UnitId_CWCEC;
|
||||
table.CollCropCode = this.txtCollCropCode.Text;
|
||||
table.UnitName = this.txtUnitName.Text;
|
||||
table.ReportDate = this.txtReportDate.SelectedDate;
|
||||
|
@ -403,9 +403,9 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
|||
table.SafeTrainNum = Funs.GetNewInt(this.txtSafeTrainNum.Text);
|
||||
table.SpecialTrainNum = Funs.GetNewInt(this.txtSpecialTrainNum.Text);
|
||||
table.SpecialOperationTrainNum = Funs.GetNewInt(this.txtSpecialOperationTrainNum.Text);
|
||||
table.TotalEnergyConsumption = Funs.GetNewInt(this.txtTotalEnergyConsumption.Text);
|
||||
table.IncomeComprehensiveEnergyConsumption = Funs.GetNewInt(this.txtIncomeComprehensiveEnergyConsumption.Text);
|
||||
table.NewWaterConsumption = Funs.GetNewInt(this.txtNewWaterConsumption.Text);
|
||||
table.TotalEnergyConsumption = Funs.GetNewDecimalOrZero(this.txtTotalEnergyConsumption.Text);
|
||||
table.IncomeComprehensiveEnergyConsumption = Funs.GetNewDecimalOrZero(this.txtIncomeComprehensiveEnergyConsumption.Text);
|
||||
table.NewWaterConsumption = Funs.GetNewDecimalOrZero(this.txtNewWaterConsumption.Text);
|
||||
table.HeadOfficeInspectorGeneralNum = Funs.GetNewInt(this.txtHeadOfficeInspectorGeneralNum.Text);
|
||||
table.HeadOfficeFullTimeNum = Funs.GetNewInt(this.txtHeadOfficeFullTimeNum.Text);
|
||||
table.BranchInspectorGeneralNum = Funs.GetNewInt(this.txtBranchInspectorGeneralNum.Text);
|
||||
|
@ -551,7 +551,301 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
|||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 复制数据
|
||||
/// <summary>
|
||||
/// 复制报表数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.HSSEData_HSSE model = Funs.DB.HSSEData_HSSE.OrderByDescending(x=>x.ReportDate).FirstOrDefault();
|
||||
if (model != null)
|
||||
{
|
||||
if (model.BeUnderConstructionNum.HasValue)
|
||||
{
|
||||
this.txtBeUnderConstructionNum.Text = model.BeUnderConstructionNum.Value.ToString();
|
||||
}
|
||||
if (model.ShutdownNum.HasValue)
|
||||
{
|
||||
this.txtShutdownNum.Text = model.ShutdownNum.Value.ToString();
|
||||
}
|
||||
if (model.JoinConstructionPersonNum.HasValue)
|
||||
{
|
||||
this.txtJoinConstructionPersonNum.Text = model.JoinConstructionPersonNum.Value.ToString();
|
||||
}
|
||||
if (model.MajorProjectsUnderConstructionNum.HasValue)
|
||||
{
|
||||
this.txtMajorProjectsUnderConstructionNum.Text = model.MajorProjectsUnderConstructionNum.Value.ToString();
|
||||
}
|
||||
if (model.TotalWorkingHour.HasValue)
|
||||
{
|
||||
this.txtTotalWorkingHour.Text = model.TotalWorkingHour.Value.ToString();
|
||||
}
|
||||
if (model.LostWorkingHour.HasValue)
|
||||
{
|
||||
this.txtLostWorkingHour.Text = model.LostWorkingHour.Value.ToString();
|
||||
}
|
||||
if (model.SafeWorkingHour.HasValue)
|
||||
{
|
||||
this.txtSafeWorkingHour.Text = model.SafeWorkingHour.Value.ToString();
|
||||
}
|
||||
if (model.SafeTrainNum.HasValue)
|
||||
{
|
||||
this.txtSafeTrainNum.Text = model.SafeTrainNum.Value.ToString();
|
||||
}
|
||||
if (model.SpecialTrainNum.HasValue)
|
||||
{
|
||||
this.txtSpecialTrainNum.Text = model.SpecialTrainNum.Value.ToString();
|
||||
}
|
||||
if (model.SpecialOperationTrainNum.HasValue)
|
||||
{
|
||||
this.txtSpecialOperationTrainNum.Text = model.SpecialOperationTrainNum.Value.ToString();
|
||||
}
|
||||
if (model.TotalEnergyConsumption.HasValue)
|
||||
{
|
||||
this.txtTotalEnergyConsumption.Text = model.TotalEnergyConsumption.Value.ToString();
|
||||
}
|
||||
if (model.IncomeComprehensiveEnergyConsumption.HasValue)
|
||||
{
|
||||
this.txtIncomeComprehensiveEnergyConsumption.Text = model.IncomeComprehensiveEnergyConsumption.Value.ToString();
|
||||
}
|
||||
if (model.NewWaterConsumption.HasValue)
|
||||
{
|
||||
this.txtNewWaterConsumption.Text = model.NewWaterConsumption.Value.ToString();
|
||||
}
|
||||
if (model.HeadOfficeInspectorGeneralNum.HasValue)
|
||||
{
|
||||
this.txtHeadOfficeInspectorGeneralNum.Text = model.HeadOfficeInspectorGeneralNum.Value.ToString();
|
||||
}
|
||||
if (model.HeadOfficeFullTimeNum.HasValue)
|
||||
{
|
||||
this.txtHeadOfficeFullTimeNum.Text = model.HeadOfficeFullTimeNum.Value.ToString();
|
||||
}
|
||||
if (model.BranchInspectorGeneralNum.HasValue)
|
||||
{
|
||||
this.txtBranchInspectorGeneralNum.Text = model.BranchInspectorGeneralNum.Value.ToString();
|
||||
}
|
||||
if (model.BranchFullTimeNum.HasValue)
|
||||
{
|
||||
this.txtBranchFullTimeNum.Text = model.BranchFullTimeNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectInspectorGeneralNum.HasValue)
|
||||
{
|
||||
this.txtProjectInspectorGeneralNum.Text = model.ProjectInspectorGeneralNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectFullTimeNum.HasValue)
|
||||
{
|
||||
this.txtProjectFullTimeNum.Text = model.ProjectFullTimeNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectSafetyMonitorNum.HasValue)
|
||||
{
|
||||
this.txtProjectSafetyMonitorNum.Text = model.ProjectSafetyMonitorNum.Value.ToString();
|
||||
}
|
||||
if (model.SafetyInjectionEngineer.HasValue)
|
||||
{
|
||||
this.txtSafetyInjectionEngineer.Text = model.SafetyInjectionEngineer.Value.ToString();
|
||||
}
|
||||
if (model.CertificateANum.HasValue)
|
||||
{
|
||||
this.txtCertificateANum.Text = model.CertificateANum.Value.ToString();
|
||||
}
|
||||
if (model.CertificateBNum.HasValue)
|
||||
{
|
||||
this.txtCertificateBNum.Text = model.CertificateBNum.Value.ToString();
|
||||
}
|
||||
if (model.CertificateCNum.HasValue)
|
||||
{
|
||||
this.txtCertificateCNum.Text = model.CertificateCNum.Value.ToString();
|
||||
}
|
||||
if (model.SafetyCommitteeMeetingNum.HasValue)
|
||||
{
|
||||
this.txtSafetyCommitteeMeetingNum.Text = model.SafetyCommitteeMeetingNum.Value.ToString();
|
||||
}
|
||||
if (model.EnterpriseTopicsMeetingNum.HasValue)
|
||||
{
|
||||
this.txtEnterpriseTopicsMeetingNum.Text = model.EnterpriseTopicsMeetingNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectSafetyLeadingGroupMeetingNum.HasValue)
|
||||
{
|
||||
this.txtProjectSafetyLeadingGroupMeetingNum.Text = model.ProjectSafetyLeadingGroupMeetingNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectSafetyMeetingNum.HasValue)
|
||||
{
|
||||
this.txtProjectSafetyMeetingNum.Text = model.ProjectSafetyMeetingNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanyLeadShiftCheckNum.HasValue)
|
||||
{
|
||||
this.txtCompanyLeadShiftCheckNum.Text = model.CompanyLeadShiftCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanyComprehensiveCheckNum.HasValue)
|
||||
{
|
||||
this.txtCompanyComprehensiveCheckNum.Text = model.CompanyComprehensiveCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanySpecialCheckNum.HasValue)
|
||||
{
|
||||
this.txtCompanySpecialCheckNum.Text = model.CompanySpecialCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectLeadShiftCheckNum.HasValue)
|
||||
{
|
||||
this.txtProjectLeadShiftCheckNum.Text = model.ProjectLeadShiftCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectSpecialCheckNum.HasValue)
|
||||
{
|
||||
this.txtProjectSpecialCheckNum.Text = model.ProjectSpecialCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectMajorCheckNum.HasValue)
|
||||
{
|
||||
this.txtProjectMajorCheckNum.Text = model.ProjectMajorCheckNum.Value.ToString();
|
||||
}
|
||||
if (model.NearMissNum.HasValue)
|
||||
{
|
||||
this.txtNearMissNum.Text = model.NearMissNum.Value.ToString();
|
||||
}
|
||||
if (model.RecordableEventNum.HasValue)
|
||||
{
|
||||
this.txtRecordableEventNum.Text = model.RecordableEventNum.Value.ToString();
|
||||
}
|
||||
if (model.GeneralAccidentNum.HasValue)
|
||||
{
|
||||
this.txtGeneralAccidentNum.Text = model.GeneralAccidentNum.Value.ToString();
|
||||
}
|
||||
if (model.MajorAccidentNum.HasValue)
|
||||
{
|
||||
this.txtMajorAccidentNum.Text = model.MajorAccidentNum.Value.ToString();
|
||||
}
|
||||
if (model.SeriousAccidentNum.HasValue)
|
||||
{
|
||||
this.txtSeriousAccidentNum.Text = model.SeriousAccidentNum.Value.ToString();
|
||||
}
|
||||
if (model.SpecialSeriousAccidentNum.HasValue)
|
||||
{
|
||||
this.txtSpecialSeriousAccidentNum.Text = model.SpecialSeriousAccidentNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanyComprehensivePlanNum.HasValue)
|
||||
{
|
||||
this.txtCompanyComprehensivePlanNum.Text = model.CompanyComprehensivePlanNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanySpecialPlanNum.HasValue)
|
||||
{
|
||||
this.txtCompanySpecialPlanNum.Text = model.CompanySpecialPlanNum.Value.ToString();
|
||||
}
|
||||
if (model.CompanyOnSiteDisposalPlan.HasValue)
|
||||
{
|
||||
this.txtCompanyOnSiteDisposalPlan.Text = model.CompanyOnSiteDisposalPlan.Value.ToString();
|
||||
}
|
||||
if (model.CompanyDrillNum.HasValue)
|
||||
{
|
||||
this.txtCompanyDrillNum.Text = model.CompanyDrillNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectComprehensivePlanNum.HasValue)
|
||||
{
|
||||
this.txtProjectComprehensivePlanNum.Text = model.ProjectComprehensivePlanNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectSpecialPlanNum.HasValue)
|
||||
{
|
||||
this.txtProjectSpecialPlanNum.Text = model.ProjectSpecialPlanNum.Value.ToString();
|
||||
}
|
||||
if (model.ProjectOnSiteDisposalPlan.HasValue)
|
||||
{
|
||||
this.txtProjectOnSiteDisposalPlan.Text = model.ProjectOnSiteDisposalPlan.Value.ToString();
|
||||
}
|
||||
if (model.ProjectDrillNum.HasValue)
|
||||
{
|
||||
this.txtProjectDrillNum.Text = model.ProjectDrillNum.Value.ToString();
|
||||
}
|
||||
if (model.CostExtract.HasValue)
|
||||
{
|
||||
this.txtCostExtract.Text = model.CostExtract.Value.ToString();
|
||||
}
|
||||
if (model.CostUse.HasValue)
|
||||
{
|
||||
this.txtCostUse.Text = model.CostUse.Value.ToString();
|
||||
}
|
||||
if (model.UseEquipmentNum.HasValue)
|
||||
{
|
||||
this.txtUseEquipmentNum.Text = model.UseEquipmentNum.Value.ToString();
|
||||
}
|
||||
if (model.SpecialEquipmentNum.HasValue)
|
||||
{
|
||||
this.txtSpecialEquipmentNum.Text = model.SpecialEquipmentNum.Value.ToString();
|
||||
}
|
||||
if (model.LicensesNum.HasValue)
|
||||
{
|
||||
this.txtLicensesNum.Text = model.LicensesNum.Value.ToString();
|
||||
}
|
||||
if (model.LicensesCloseNum.HasValue)
|
||||
{
|
||||
this.txtLicensesCloseNum.Text = model.LicensesCloseNum.Value.ToString();
|
||||
}
|
||||
if (model.GeneralClosedNum.HasValue)
|
||||
{
|
||||
this.txtGeneralClosedNum.Text = model.GeneralClosedNum.Value.ToString();
|
||||
}
|
||||
if (model.GeneralNotClosedNum.HasValue)
|
||||
{
|
||||
this.txtGeneralNotClosedNum.Text = model.GeneralNotClosedNum.Value.ToString();
|
||||
}
|
||||
if (model.MajorClosedNum.HasValue)
|
||||
{
|
||||
this.txtMajorClosedNum.Text = model.MajorClosedNum.Value.ToString();
|
||||
}
|
||||
if (model.MajorNotClosedNum.HasValue)
|
||||
{
|
||||
this.txtMajorNotClosedNum.Text = model.MajorNotClosedNum.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.MediumRiskNum.HasValue)
|
||||
{
|
||||
this.txtMediumRiskNum.Text = model.MediumRiskNum.Value.ToString();
|
||||
}
|
||||
if (model.HighRiskNum.HasValue)
|
||||
{
|
||||
this.txtHighRiskNum.Text = model.HighRiskNum.Value.ToString();
|
||||
}
|
||||
if (model.CompletedNum.HasValue)
|
||||
{
|
||||
this.txtCompletedNum.Text = model.CompletedNum.Value.ToString();
|
||||
}
|
||||
if (model.TrainPersonNum.HasValue)
|
||||
{
|
||||
this.txtTrainPersonNum.Text = model.TrainPersonNum.Value.ToString();
|
||||
}
|
||||
if (model.ConstructionNum.HasValue)
|
||||
{
|
||||
this.txtConstructionNum.Text = model.ConstructionNum.Value.ToString();
|
||||
}
|
||||
if (model.FinishedNum.HasValue)
|
||||
{
|
||||
this.txtFinishedNum.Text = model.FinishedNum.Value.ToString();
|
||||
}
|
||||
if (model.SuperCompletedNum.HasValue)
|
||||
{
|
||||
this.txtSuperCompletedNum.Text = model.SuperCompletedNum.Value.ToString();
|
||||
}
|
||||
if (model.SuperTrainPersonNum.HasValue)
|
||||
{
|
||||
this.txtSuperTrainPersonNum.Text = model.SuperTrainPersonNum.Value.ToString();
|
||||
}
|
||||
if (model.SuperConstructionNum.HasValue)
|
||||
{
|
||||
this.txtSuperConstructionNum.Text = model.SuperConstructionNum.Value.ToString();
|
||||
}
|
||||
if (model.SuperFinishedNum.HasValue)
|
||||
{
|
||||
this.txtSuperFinishedNum.Text = model.SuperFinishedNum.Value.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -1,11 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Tree>
|
||||
<TreeNode id="3C87C9C0-1C22-48A0-A767-9537347F6A7D" Text="合同量单" NavigateUrl="CLGL/ContractQuantitySheet.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="64E43C10-ECA5-4C7D-97C9-670E9F05DC01" Text="材料信息" NavigateUrl="CLGL/Material.aspx"></TreeNode>
|
||||
<TreeNode id="0E23EC47-4C05-4783-91C1-1ACFE270C4D4" Text="领料单" NavigateUrl="CLGL/MaterialRecord.aspx"></TreeNode>
|
||||
<TreeNode id="414F9650-37F8-4B20-A2BB-EBBD4F620E49" Text="货架信息" NavigateUrl="CLGL/GoodsShelves.aspx"></TreeNode>
|
||||
<TreeNode id="C0C5E48B-4C0D-4657-92AB-25DF0FEE372F" Text="设计请购一览表" NavigateUrl="">
|
||||
<TreeNode id="484E50BA-B6F2-47E0-BB7C-B1C27965E087" Text="合同清单一览表" NavigateUrl="CLGL/ContractList.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="F0F43F1C-0E73-4A7C-AE43-26950D8D93E4" Text="合同清单汇总表" NavigateUrl="CLGL/ContractListSum.aspx"></TreeNode>
|
||||
<TreeNode id="55301756-3313-4876-A1C3-2D1246C4B93C" Text="管道材料状态一览表" NavigateUrl="CLGL/PipelineMaterialList.aspx"></TreeNode>
|
||||
<TreeNode id="074B06B2-456A-4F7B-8E40-00F379C6E302" Text="管道材料编码统计一览表" NavigateUrl="CLGL/PipelineMaterialCodeList.aspx"></TreeNode>
|
||||
<TreeNode id="AF7EA0E4-92A1-4F8D-A5A0-99B0084F7C75" Text="管道供货商概要一览表" NavigateUrl="CLGL/PipelineSupplierList.aspx"></TreeNode>
|
||||
<TreeNode id="8BBFA90C-1F1C-4587-AA94-BE44C5075CBD" Text="MTO明细信息一览表" NavigateUrl="CLGL/MTODetail.aspx"></TreeNode>
|
||||
<TreeNode id="44527C92-FF92-4935-B81E-F6C8B8C4D622" Text="管道材料汇总表" NavigateUrl="CLGL/PipelineMaterialSumList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="9F944625-2EA3-46A1-8D18-A882CE88F3A5" Text="现场请购到货及出库一览表" NavigateUrl=""><TreeNode id="7D4E3B4D-76FE-41FB-B2F2-23A0D252D4E4" Text="现场请购明细一览表" NavigateUrl="CLGL/RequestDetailList.aspx"></TreeNode>
|
||||
<TreeNode id="31134149-CE94-49FD-A1D9-5A70553FAC61" Text="现场到货明细一览表" NavigateUrl="CLGL/ArrivalDetailList.aspx"></TreeNode>
|
||||
<TreeNode id="3C30E38D-0BE9-4295-AF70-73D52F7FC4BC" Text="现场出库明细一览表" NavigateUrl="CLGL/CheckOutDetailList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="9669E903-C7DD-4E48-8962-B22A7B4972E6" Text="其他" NavigateUrl=""><TreeNode id="414F9650-37F8-4B20-A2BB-EBBD4F620E49" Text="货架信息" NavigateUrl="CLGL/GoodsShelves.aspx"></TreeNode>
|
||||
<TreeNode id="4B52E7FF-AA04-489B-B0EE-DC31C5C4F45B" Text="施工单位信息" NavigateUrl="CLGL/SubUnit.aspx"></TreeNode>
|
||||
<TreeNode id="43A118BC-0A81-42F1-B008-829D40CFE625" Text="供应商信息" NavigateUrl="CLGL/Supplier.aspx"></TreeNode>
|
||||
<TreeNode id="94041D2D-ADF5-47CD-8628-11837D32354D" Text="请购单" NavigateUrl="CLGL/PurchaseRequisition.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -19,6 +19,7 @@
|
|||
<TreeNode id="a4f071a6-51cb-45b1-bbac-93a02f1cb98a" Text="资料接收登记" NavigateUrl="CQMS/Comprehensive/DataReceiving.aspx"></TreeNode>
|
||||
<TreeNode id="4a9df3ce-88fd-42a4-aac2-5a7b86edd578" Text="资料发放登记" NavigateUrl="CQMS/Comprehensive/DataDistribution.aspx"></TreeNode>
|
||||
<TreeNode id="d8de4143-b680-44cf-9a78-acd3d49a8d00" Text="图纸收发记录" NavigateUrl="CQMS/Comprehensive/DesignDrawings.aspx"></TreeNode>
|
||||
<TreeNode id="B2086D3A-2384-487E-AFFB-6FACDD09B621" Text="质量数据" NavigateUrl="ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="149f1f1c-a925-412b-970e-e9b79d54e03f" Text="过程控制" NavigateUrl=""><TreeNode id="4781f467-35bf-4cf2-aaa4-7960a175eb61" Text="共检通知单" NavigateUrl="CQMS/ProcessControl/InspectionNotice.aspx"></TreeNode>
|
||||
<TreeNode id="e728cc1a-fd65-4f1a-8f22-2b72e62f78ee" Text="控制点检查检测" NavigateUrl="CQMS/ProcessControl/InspectionManagement.aspx"></TreeNode>
|
||||
|
|
|
@ -1,54 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Tree>
|
||||
<TreeNode id="60F4B988-4D1D-48D6-A959-2EA4BD2978A1" Text="基础设置" NavigateUrl="">
|
||||
<TreeNode id="8IDKGJE2-09B1-1234-VC6D-865CE48F0005" Text="管道等级" NavigateUrl="HJGL/BaseInfo/PipingClass.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="8IDKGJE2-09B1-4607-BC6D-865CE48F0014" Text="管道介质" NavigateUrl="HJGL/BaseInfo/Medium.aspx"></TreeNode>
|
||||
<TreeNode id="8IDKGJE2-09B1-4607-BC6D-865CE48F0009" Text="安装组件" NavigateUrl="HJGL/BaseInfo/Components.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="3EFCE9C3-1983-4AEC-8FA1-D7A90F08CBCB" Text="焊工管理" NavigateUrl=""><TreeNode id="1908E4C9-4A63-4A6C-6666-DA4910C2A8C7" Text="焊工管理" NavigateUrl="HJGL/PersonManage/WelderManage.aspx"></TreeNode>
|
||||
<TreeNode id="13F11D51-1B54-400F-BDBB-36685BC94819" Text="无损检测工管理" NavigateUrl="HJGL/PersonManage/CheckerManage.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="1D009522-D2C6-4256-B4FB-3E5E061A23D7" Text="焊接工艺评定" NavigateUrl=""><TreeNode id="63CD1C52-1A87-4946-9CA7-8C3C2CB0CA2E" Text="焊接工艺规程编制" NavigateUrl="HJGL/WPQ/WPQList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="8IDKGJE2-09B1-4607-DCS2-DCC3O48F080F" Text="焊口基础信息" NavigateUrl=""><TreeNode id="8IDKGJE2-09B1-6UIO-3EFM-5TGED48F0001" Text="管线信息" NavigateUrl="HJGL/WeldingManage/PipelineList.aspx"></TreeNode>
|
||||
<TreeNode id="32F5CC8C-E0F4-456C-AB88-77E36269FA50" Text="焊口基础信息" NavigateUrl="HJGL/WeldingManage/WeldJointList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="4D36E99E-B3D8-4C61-826A-CBD98EC51515" Text="焊接日报" NavigateUrl=""><TreeNode id="6ce0b6bc-aa4d-4f0d-9f1f-75a553810793" Text="焊接任务单" NavigateUrl="HJGL/WeldingManage/WeldTask.aspx"></TreeNode>
|
||||
<TreeNode id="294A4F70-B19E-4D84-A09D-484128D9CC19" Text="预提交日报审核" NavigateUrl="HJGL/WeldingManage/PreWeldReportAudit.aspx"></TreeNode>
|
||||
<TreeNode id="5TYHMD2F-2582-4DEB-905E-6E9DCFEFBGHO" Text="焊接日报" NavigateUrl="HJGL/WeldingManage/WeldReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="7FE911EF-616A-4F04-AACD-E53E633A9E86" Text="热处理/硬度管理" NavigateUrl=""><TreeNode id="90579BE7-E38C-4CD2-A3BC-755169FF3BB2" Text="热处理委托" NavigateUrl="HJGL/HotProcessHard/HotProessTrust.aspx"></TreeNode>
|
||||
<TreeNode id="71a7de4f-5216-41cb-bcc9-8a5e43d5d168" Text="热处理报告" NavigateUrl="HJGL/HotProcessHard/HotProessReport.aspx"></TreeNode>
|
||||
<TreeNode id="72B3E508-1315-4CC3-939F-E840FA701A0E" Text="硬度检测委托" NavigateUrl="HJGL/HotProcessHard/HardTrust.aspx"></TreeNode>
|
||||
<TreeNode id="c5ba5ef6-2112-4fe2-9ada-b8762cb629f6" Text="硬度检测报告" NavigateUrl="HJGL/HotProcessHard/HardReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="4F07D4BF-5971-4D3C-A0DE-B2ACA8CD82FF" Text="点口管理" NavigateUrl=""><TreeNode id="3ACE25CE-C5CE-4CEC-AD27-0D5CF1DF2F01" Text="点口管理" NavigateUrl="HJGL/PointTrust/PointBatch.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="3363C60A-E1ED-445B-BC93-DF2BE04D9759" Text="无损检测委托" NavigateUrl=""><TreeNode id="0CA58EC2-7934-49B3-A2C3-327FAD27C541" Text="无损检测委托单" NavigateUrl="HJGL/PointTrust/TrustBatch.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="DFDD9655-0284-499C-8842-A238CA97418C" Text="无损检测" NavigateUrl=""><TreeNode id="CDECC461-1897-4D88-BD13-0824E540F565" Text="检测单录入" NavigateUrl="HJGL/NDT/NDTBatch.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="E7533566-73A9-4507-8FCB-1FE713819A24" Text="返修检测委托" NavigateUrl=""><TreeNode id="6D215BF6-7002-46B3-B2EA-A57CD849F0F1" Text="返修/扩透" NavigateUrl="HJGL/RepairAndExpand/RepairAndExpand.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="A24B7926-EF69-456E-8A24-936D30384680" Text="试压管理" NavigateUrl=""><TreeNode id="1C6F9CA9-FDAC-4CE5-A19C-5536538851E1" Text="试压包划分" NavigateUrl="HJGL/TestPackage/TestPackageEdit.aspx"></TreeNode>
|
||||
<TreeNode id="55976B16-2C33-406E-B514-2FE42D031071" Text="试压前条件确认" NavigateUrl="HJGL/TestPackage/TestPackageAudit.aspx"></TreeNode>
|
||||
<TreeNode id="24941EDC-CED6-4176-8CCD-EB5F08156D08" Text="尾项检查及消项" NavigateUrl="HJGL/TestPackage/ItemEndCheck.aspx"></TreeNode>
|
||||
<TreeNode id="82951D78-9029-4F69-A032-00C47551B3E6" Text="压力试验" NavigateUrl="HJGL/TestPackage/TestPackageComplete.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="96e7b541-7364-4075-a2b2-d6e0024f1781" Text="泄露性/真空管理" NavigateUrl=""><TreeNode id="4b1c7e7d-dc3e-46f6-b1e9-fab4457e7684" Text="泄露性/真空试验录入" NavigateUrl="HJGL/LeakVacuum/LeakVacuumEdit.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="3fa44880-96d1-46ab-84b2-1f975dbcf193" Text="吹扫/清洗管理" NavigateUrl=""><TreeNode id="e6da5ef9-aa42-49dd-b6a6-b54a3b922d68" Text="吹扫/清洗试验录入" NavigateUrl="HJGL/PurgingCleaning/PurgingCleaningEdit.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="F3B157B7-9BEE-4150-80CB-087828F1C51D" Text="焊接数据分析" NavigateUrl=""><TreeNode id="075232DC-7C0B-4A5D-B9E4-6B37CB1A9C69" Text="焊接一次合格率" NavigateUrl="HJGL/WeldingReport/FirstPassRate.aspx"></TreeNode>
|
||||
<TreeNode id="66A76F90-96A7-4C1F-B8D9-125DDEACEF52" Text="单位工程进度分析" NavigateUrl="HJGL/WeldingReport/UnitWorkareaAnalyze.aspx"></TreeNode>
|
||||
<TreeNode id="88CDDC68-54DE-4E24-9524-A33B80EC0E12" Text="单位工程质量分析" NavigateUrl="HJGL/WeldingReport/UnitWorkAreaQuality.aspx"></TreeNode>
|
||||
<TreeNode id="41C22E63-36B7-4C44-89EC-F765BFBB7C55" Text="焊工业绩分析" NavigateUrl="HJGL/WeldingReport/WelderPerformance.aspx"></TreeNode>
|
||||
<TreeNode id="464DBFBC-94E8-48A1-AF67-28AACF872470" Text="焊工平均业绩" NavigateUrl="HJGL/WeldingReport/WelderAvgPerformance.aspx"></TreeNode>
|
||||
<TreeNode id="0ADD01FB-8088-4595-BB40-6A73F332A229" Text="管线综合分析" NavigateUrl="HJGL/WeldingReport/IsoCmprehensive.aspx"></TreeNode>
|
||||
<TreeNode id="5F0969E3-2A0A-473E-92BE-4DD390602556" Text="焊接缺陷统计" NavigateUrl="HJGL/WeldingReport/DefectStatistics.aspx"></TreeNode>
|
||||
<TreeNode id="CF3CB43C-4031-4CFD-905F-154DC1CB881E" Text="管线综合信息" NavigateUrl="HJGL/WeldingReport/IsoCompreInfo.aspx"></TreeNode>
|
||||
<TreeNode id="E96D5600-0B06-4817-BE80-BAA9B99E6F4A" Text="无损检测周报" NavigateUrl="HJGL/WeldingReport/NDTWeeklyReport.aspx"></TreeNode>
|
||||
<TreeNode id="6324E66A-4760-4D10-9EA6-88B792EEAEAF" Text="无损检测月报" NavigateUrl="HJGL/WeldingReport/NDTMonthlyReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="02296D33-17A9-43FE-B764-AA5A6AF0E85E" Text="管道焊接工程量表(一)" NavigateUrl="HJGL/FL/TotalQuantity.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="BC27FBEC-DA1D-4909-880E-499A294CCB1B" Text="管道焊接工程量表(二)" NavigateUrl="HJGL/FL/Quantity.aspx"></TreeNode>
|
||||
<TreeNode id="5F999DDA-9C8A-452F-A313-3270BA76C5F8" Text="无损检测量表" NavigateUrl="HJGL/FL/NdtList.aspx"></TreeNode>
|
||||
<TreeNode id="B1A3F19F-2512-4F71-A2E3-3F1C436CC624" Text="试压包量表" NavigateUrl="HJGL/FL/PressurePackageList.aspx"></TreeNode>
|
||||
<TreeNode id="FD7A2F80-329A-4306-9887-712F3CCEA392" Text="尾项清单量表" NavigateUrl="HJGL/FL/TailItemList.aspx"></TreeNode>
|
||||
<TreeNode id="6035E549-66FF-4B6D-989B-BE99C9EF5EB7" Text="焊接数据" NavigateUrl="ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx"></TreeNode>
|
||||
</Tree>
|
|
@ -129,6 +129,7 @@
|
|||
<TreeNode id="0973EE1C-CD2A-4116-BD67-1ABAD71D6C7C" Text="应急演练工作计划半年报" NavigateUrl="HSSE/InformationProject/DrillPlanHalfYearReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="9BEB66C0-E6DE-44DD-94F6-5C7433E6DE62" Text="项目HSE总结" NavigateUrl="HSSE/ActionPlan/ActionPlanSummary.aspx"></TreeNode>
|
||||
<TreeNode id="C483220C-0FEE-4E45-9B78-BBBA857EFFB3" Text="安全数据" NavigateUrl="ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="0ED3E0CC-75E0-4FF3-8832-067217A6CD4D" Text="事故管理" NavigateUrl=""><TreeNode id="FB5C66FF-3BFB-490F-A14F-0DD5B5A4D110" Text="HSSE事故(对人员)记录" NavigateUrl="HSSE/Accident/AccidentPersonRecord.aspx"></TreeNode>
|
||||
<TreeNode id="9A9D6805-6C98-46E4-943E-130C4A3EB9A2" Text="HSSE事故(含未遂)处理" NavigateUrl="HSSE/Accident/AccidentHandle.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>
|
|
@ -54,4 +54,9 @@
|
|||
<TreeNode id="4882C5F0-9D49-4B2E-BA30-E806D3CDF6FA" Text="实名制人员" NavigateUrl="ZHGL/RealName/LeavePost.aspx"></TreeNode>
|
||||
<TreeNode id="214A1AE1-816E-4DDA-8E6E-04EB35F02A12" Text="现场人员" NavigateUrl="ZHGL/RealName/OnPost.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<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>
|
|
@ -192,16 +192,16 @@
|
|||
<div class="i-item">
|
||||
<div class="ii-desc">环保数据</div>
|
||||
<div class="ii-item bg5">
|
||||
<div class="desc">能耗总量</div>
|
||||
<div class="num num-cl3"><%=showData(hSSEData_HSSE.TotalEnergyConsumption,"--") %></div>
|
||||
<div class="desc">能耗总量<br/>(万吨标准煤)</div>
|
||||
<div class="num num-cl3"><%=showDecimalData(hSSEData_HSSE.TotalEnergyConsumption,"--") %></div>
|
||||
</div>
|
||||
<div class="ii-item bg5">
|
||||
<div class="desc">万元营业收入综合能耗</div>
|
||||
<div class="num num-cl3"><%=showData(hSSEData_HSSE.IncomeComprehensiveEnergyConsumption,"--") %></div>
|
||||
<div class="desc">万元营业收入综合能耗<br/>(吨标准煤/万元)</div>
|
||||
<div class="num num-cl3"><%=showDecimalData(hSSEData_HSSE.IncomeComprehensiveEnergyConsumption,"--") %></div>
|
||||
</div>
|
||||
<div class="ii-item bg5">
|
||||
<div class="desc">用新水量</div>
|
||||
<div class="num num-cl3"><%=showData(hSSEData_HSSE.NewWaterConsumption,"--") %></div>
|
||||
<div class="desc">用新水量<br/>(万吨)</div>
|
||||
<div class="num num-cl3"><%=showDecimalData(hSSEData_HSSE.NewWaterConsumption,"--") %></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -415,7 +415,6 @@
|
|||
<script src="../res/assets/js/video-7.15.0.min.js"></script>
|
||||
<script src="../res/assets/js/china.js"></script>
|
||||
<script>
|
||||
|
||||
function initMapEchart() {
|
||||
// 1. 实例化对象
|
||||
var myChart = echarts.init(document.querySelector(".sd-map"));
|
||||
|
@ -464,9 +463,9 @@
|
|||
html += '<div style="font-size:18px;margin-bottom:8px;">' + params.data.name + '</div>'
|
||||
//html += '<div style="width: 98px;height: 24px;margin-bottom:10px;background: #F24166;border-radius: 12px;text-align:center;">' + '在施危大工程' + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">监理单位:' + params.data.jLUnit + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">施工单位:' + params.data.sGUnit + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">施工单位:' + params.data.SGUnit + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">建设单位:' + params.data.ownUnit + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">工程造价:' + params.data.projectMoney + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; margin-bottom:12px;">工程造价:' + params.data.ProjectMoney + '</div>'
|
||||
html += '<div style="width: 240px; white-space:normal; word-break:break-all;word-break:break-all;overflow:auto; white-space:normal; ">工程地点:' + params.data.address + '</div>'
|
||||
html += '<div><a style="font-size:12px;color:#1AB1FF;cursor:pointer;" href="../indexProject.aspx?projectId=' + params.data.id +'" target="_blank">项目详情>></a></div>'
|
||||
html += '</div>'
|
||||
|
@ -1072,7 +1071,8 @@
|
|||
var xArrYH = [<%=xArrYH%>]
|
||||
intiYhpczlsj('yhpczlsj', xArrYH, dataYHQ, dataYHZ)
|
||||
var dataaq = [<%=showData(hSSEData_HSSE.CompanyLeadShiftCheckNum,"0")%>, <%=showData(hSSEData_HSSE.CompanyComprehensiveCheckNum,"0")%>, <%=showData(hSSEData_HSSE.CompanySpecialCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectLeadShiftCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectSpecialCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectMajorCheckNum,"0")%>]
|
||||
initAqjdjcsj('aqjdjcsj', dataaq, 50)
|
||||
var max = Math.max(<%=showData(hSSEData_HSSE.CompanyLeadShiftCheckNum,"0")%>, <%=showData(hSSEData_HSSE.CompanyComprehensiveCheckNum,"0")%>, <%=showData(hSSEData_HSSE.CompanySpecialCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectLeadShiftCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectSpecialCheckNum,"0")%>, <%=showData(hSSEData_HSSE.ProjectMajorCheckNum,"0")%>);
|
||||
initAqjdjcsj('aqjdjcsj', dataaq, max)
|
||||
var datasg = [
|
||||
{ value: <%=showData(hSSEData_HSSE.GeneralAccidentNum,"0")%>, name: '一般事故' },
|
||||
{ value: <%=showData(hSSEData_HSSE.MajorAccidentNum,"0")%>, name: '较大事故' },
|
||||
|
@ -1081,7 +1081,7 @@
|
|||
]
|
||||
initSgsjsj('sgsjsj', datasg)
|
||||
var data = [ // 数据数组,name 为数据项名称,value 为数据项值
|
||||
{ value: <%=showData(hSSEData_HSSE.CompletedNum,"0")%>, name: '一般' },
|
||||
{ value: <%=showData(hSSEData_HSSE.GeneralRiskNum,"0")%>, name: '一般' },
|
||||
{ value: <%=showData(hSSEData_HSSE.LowRiskNum,"0")%>, name: '低风险' },
|
||||
{ value: <%=showData(hSSEData_HSSE.MediumRiskNum,"0")%>, name: '中风险' },
|
||||
{ value: <%=showData(hSSEData_HSSE.HighRiskNum,"0")%>, name: '高风险' },
|
||||
|
|
|
@ -5,7 +5,6 @@ using System.Web;
|
|||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.common
|
||||
{
|
||||
public partial class mainMenu_HSSE2 : PageBase
|
||||
|
@ -29,7 +28,8 @@ namespace FineUIPro.Web.common
|
|||
hSSEData_HSSE = new Model.HSSEData_HSSE();
|
||||
}
|
||||
|
||||
|
||||
zgl1 = "0";
|
||||
zgl2 = "0";
|
||||
if (hSSEData_HSSE.GeneralClosedNum.HasValue && hSSEData_HSSE.GeneralNotClosedNum.HasValue)
|
||||
{
|
||||
zgl1 = String.Format("{0:N2}", 100.0 * hSSEData_HSSE.GeneralClosedNum.Value / (hSSEData_HSSE.GeneralClosedNum.Value + hSSEData_HSSE.GeneralNotClosedNum.Value));
|
||||
|
@ -77,7 +77,7 @@ namespace FineUIPro.Web.common
|
|||
}
|
||||
|
||||
|
||||
var projectList = Funs.DB.Base_Project.ToList();
|
||||
var projectList = Funs.DB.Base_Project.Where(x => x.MapCoordinates != null).ToList();
|
||||
if (projectList != null && projectList.Count > 0)
|
||||
{
|
||||
foreach (var p in projectList)
|
||||
|
@ -103,5 +103,17 @@ namespace FineUIPro.Web.common
|
|||
return format;
|
||||
}
|
||||
}
|
||||
|
||||
public string showDecimalData(decimal? value, string format)
|
||||
{
|
||||
if (value.HasValue)
|
||||
{
|
||||
return value.Value.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return format;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,9 +7,11 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.common {
|
||||
|
||||
|
||||
public partial class mainMenu_HSSE2 {
|
||||
namespace FineUIPro.Web.common
|
||||
{
|
||||
|
||||
|
||||
public partial class mainMenu_HSSE2
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
1146
SGGL/Model/Model.cs
1146
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
|
@ -134,6 +134,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" />
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Model
|
|||
public int? HeadOfficeInspectorGeneralNum { get; set; }
|
||||
public int? HighRiskNum { get; set; }
|
||||
public string Id { get; set; }
|
||||
public int? IncomeComprehensiveEnergyConsumption { get; set; }
|
||||
public decimal? IncomeComprehensiveEnergyConsumption { get; set; }
|
||||
public int? JoinConstructionPersonNum { get; set; }
|
||||
public int? LicensesCloseNum { get; set; }
|
||||
public int? LicensesNum { get; set; }
|
||||
|
@ -61,7 +61,7 @@ namespace Model
|
|||
public string MajorRate { get; set; }
|
||||
public int? MediumRiskNum { get; set; }
|
||||
public int? NearMissNum { get; set; }
|
||||
public int? NewWaterConsumption { get; set; }
|
||||
public decimal? NewWaterConsumption { get; set; }
|
||||
public int? ProjectComprehensivePlanNum { get; set; }
|
||||
public int? ProjectDrillNum { get; set; }
|
||||
public int? ProjectFullTimeNum { get; set; }
|
||||
|
@ -90,7 +90,7 @@ namespace Model
|
|||
public int? SuperConstructionNum { get; set; }
|
||||
public int? SuperFinishedNum { get; set; }
|
||||
public int? SuperTrainPersonNum { get; set; }
|
||||
public int? TotalEnergyConsumption { get; set; }
|
||||
public decimal? TotalEnergyConsumption { get; set; }
|
||||
public int? TotalWorkingHour { get; set; }
|
||||
public int? TrainPersonNum { get; set; }
|
||||
public string UnitId { get; set; }
|
||||
|
|
Loading…
Reference in New Issue