diff --git a/.vs/SGGL_CWCEC/v17/.wsuo b/.vs/SGGL_CWCEC/v17/.wsuo
index f2ca5eea..166cc64d 100644
Binary files a/.vs/SGGL_CWCEC/v17/.wsuo and b/.vs/SGGL_CWCEC/v17/.wsuo differ
diff --git a/DataBase/版本日志/SGGLDB_WH_2023-05-22.sql b/DataBase/版本日志/SGGLDB_WH_2023-05-22.sql
new file mode 100644
index 00000000..629df264
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-05-22.sql
@@ -0,0 +1,333 @@
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('F734733B-4DB4-4DB7-9A0C-894C876BDB76','ְHSEƶ','HSSE/ActionPlan/SubManageRule.aspx',13,'7944B1C6-636B-4AD8-980C-A2F6D44883D3','Menu_HSSE',0,1,1)
+ GO
+ --ְHSEƶȰť
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('1D420DC1-34AE-493E-8F2D-CAEA41DF64C9','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('BF1C0D7A-267E-41B4-8D8E-A99371FC1B3A','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('266F6D4F-193B-4CD6-9D3E-5AFD06679B72','F734733B-4DB4-4DB7-9A0C-894C876BDB76','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('CA237F10-32FC-4BA7-BD05-1FF9E5D6EC65','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',4)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D8F410DF-6043-4F71-A1AB-03A623D19824','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',5)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85','Э빵ͨ','DocManage/DocManage.aspx',10,'0','Menu_Doc',0,1,1)
+GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('446DC128-39C7-4C18-BFA7-8DD44CFDCD3B','609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('445656DA-132D-41F3-A921-1A9BF4269CEB','609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('6EEB512C-1650-4B3D-B442-772DE10234AD','609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85','',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('A1AFBD64-32F8-4A92-A832-B656C5DFB679','609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85','ɾ',4)
+ GO
+ insert into Sys_Menu( MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType ,IsOffice,IsEnd,IsUsed )
+ values('F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','ĵ','BaseInfo/DocType.aspx',170,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
+ GO
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('27DasEC6-5D58-4B06-BF3F-C62E1D361074','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',1)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('7EB2ESDA-0DEE-45D2-81BA-A49F9F8D556E','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',2)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('EF174SDA-1E96-4523-9CD5-5040D2442DC6','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','ɾ',3)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('124B7659-5F18-49F3-8D30-BF8652383027','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',4)
+ GO
+ update Sys_Menu set MenuName='HSSE¹(δ)' where MenuId='9A9D6805-6C98-46E4-943E-130C4A3EB9A2'
+ Go
+/****** Object: Table [dbo].[ActionPlan_SubManagerRule] Script Date: 2023/5/22 14:15:28 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+SET ANSI_PADDING ON
+GO
+
+CREATE TABLE [dbo].[ActionPlan_SubManagerRule](
+ [ManagerRuleId] [nvarchar](50) NOT NULL,
+ [ManageRuleCode] [nvarchar](50) NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ManageRuleName] [nvarchar](50) NULL,
+ [ManageRuleTypeId] [nvarchar](50) NULL,
+ [VersionNo] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [AttachUrl] [nvarchar](2000) NULL,
+ [Remark] [nvarchar](1000) NULL,
+ [IsIssue] [bit] NULL,
+ [IssueDate] [datetime] NULL,
+ [Flag] [bit] NULL,
+ [State] [char](1) NOT NULL,
+ [SeeFile] [nvarchar](max) NULL,
+ CONSTRAINT [PK_ActionPlan_SubManagerRule] PRIMARY KEY CLUSTERED
+(
+ [ManagerRuleId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[ActionPlan_SubManagerRule] WITH CHECK ADD CONSTRAINT [FK_ActionPlan_SubManagerRule_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[ActionPlan_SubManagerRule] CHECK CONSTRAINT [FK_ActionPlan_SubManagerRule_Base_Project]
+GO
+
+ALTER TABLE [dbo].[ActionPlan_SubManagerRule] WITH CHECK ADD CONSTRAINT [FK_ActionPlan_SubManagerRule_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[ActionPlan_SubManagerRule] CHECK CONSTRAINT [FK_ActionPlan_SubManagerRule_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'涨' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'ManageRuleCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'ManageRuleName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'汾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'VersionNo'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'(true-false-δ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'IsIssue'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'IssueDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ǣ0-μ̣1-μ̣' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'Flag'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬0--±, 1--, 2--ֳHSSE, 3--ĿHSSE, 4--Ŀ5--ɣ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'State'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule', @level2type=N'COLUMN',@level2name=N'SeeFile'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ְ̰ȫ涨' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ActionPlan_SubManagerRule'
+GO
+
+
+drop table Base_DocType
+drop table Doc_DocManage
+drop table Doc_DocManageApprove
+/****** Object: Table [dbo].[Base_DocType] Script Date: 2023/5/22 15:49:58 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+CREATE TABLE [dbo].[Base_DocType](
+ [DocTypeId] [nvarchar](50) NOT NULL,
+ [DocTypeCode] [nvarchar](50) NULL,
+ [DocTypeName] [nvarchar](50) NULL,
+ [CodeRule] [nvarchar](200) NULL,
+ CONSTRAINT [PK_Base_DocType] PRIMARY KEY CLUSTERED
+(
+ [DocTypeId] 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
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_DocType', @level2type=N'COLUMN',@level2name=N'DocTypeId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_DocType', @level2type=N'COLUMN',@level2name=N'DocTypeCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_DocType', @level2type=N'COLUMN',@level2name=N'DocTypeName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_DocType'
+GO
+
+
+
+/****** Object: Table [dbo].[Doc_DocManage] Script Date: 2023/5/22 15:41:32 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+SET ANSI_PADDING ON
+GO
+
+CREATE TABLE [dbo].[Doc_DocManage](
+ [DocId] [nvarchar](50) NOT NULL,
+ [DocCode] [nvarchar](50) NULL,
+ [DocName] [nvarchar](100) NULL,
+ [DocTypeId] [nvarchar](50) NULL,
+ [CNProfessionalId] [nvarchar](50) NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [DocContent] [nvarchar](2000) NULL,
+ [SendUnitId] [nvarchar](50) NULL,
+ [ReceivUnitIds] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NULL,
+ [State] [char](1) NULL,
+ [AcceptMan] [nvarchar](1000) NULL,
+ [DepartId] [nvarchar](50) NULL,
+ [FinishTime] [datetime] NULL,
+ [ProjectSubjectId] [nvarchar](50) NULL,
+ [CopyMan] [nvarchar](1000) NULL,
+ CONSTRAINT [PK_Doc_DocManage] PRIMARY KEY CLUSTERED
+(
+ [DocId] 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
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManage_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
+REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] CHECK CONSTRAINT [FK_Doc_DocManage_Base_CNProfessional]
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManage_Base_DocType] FOREIGN KEY([DocTypeId])
+REFERENCES [dbo].[Base_DocType] ([DocTypeId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] CHECK CONSTRAINT [FK_Doc_DocManage_Base_DocType]
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManage_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] CHECK CONSTRAINT [FK_Doc_DocManage_Base_Project]
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManage_Base_Unit] FOREIGN KEY([SendUnitId])
+REFERENCES [dbo].[Base_Unit] ([UnitId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] CHECK CONSTRAINT [FK_Doc_DocManage_Base_Unit]
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManage_Sys_User] FOREIGN KEY([CompileMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManage] CHECK CONSTRAINT [FK_Doc_DocManage_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'DocId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'DocCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'DocName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'DocTypeId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רҵId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'DocContent'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'͵λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'SendUnitId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'յλIds' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'ReceivUnitIds'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'CompileMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'CompileDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage', @level2type=N'COLUMN',@level2name=N'State'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManage'
+GO
+
+
+
+CREATE TABLE [dbo].[Doc_DocManageApprove](
+ [DocManageApproveId] [nvarchar](50) NOT NULL,
+ [DocId] [nvarchar](50) NULL,
+ [ApproveMan] [nvarchar](50) NULL,
+ [ApproveDate] [datetime] NULL,
+ [IsAgree] [bit] NULL,
+ [ApproveIdea] [nvarchar](500) NULL,
+ [Type] [varchar](50) NULL,
+ CONSTRAINT [PK_Doc_DocManageApprove] PRIMARY KEY CLUSTERED
+(
+ [DocManageApproveId] 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
+
+SET ANSI_PADDING OFF
+GO
+
+ALTER TABLE [dbo].[Doc_DocManageApprove] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManageApprove_Doc_DocManage] FOREIGN KEY([DocId])
+REFERENCES [dbo].[Doc_DocManage] ([DocId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManageApprove] CHECK CONSTRAINT [FK_Doc_DocManageApprove_Doc_DocManage]
+GO
+
+ALTER TABLE [dbo].[Doc_DocManageApprove] WITH CHECK ADD CONSTRAINT [FK_Doc_DocManageApprove_Sys_User] FOREIGN KEY([ApproveMan])
+REFERENCES [dbo].[Sys_User] ([UserId])
+GO
+
+ALTER TABLE [dbo].[Doc_DocManageApprove] CHECK CONSTRAINT [FK_Doc_DocManageApprove_Sys_User]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'DocManageApproveId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'DocId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'ApproveMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'ApproveDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿͬ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'IsAgree'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove', @level2type=N'COLUMN',@level2name=N'ApproveIdea'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Doc_DocManageApprove'
+GO
+
+
diff --git a/DataBase/菜单初始化脚本/0-1系统设置(Menu_SysSet).sql b/DataBase/菜单初始化脚本/0-1系统设置(Menu_SysSet).sql
index 97f9411c..0459d502 100644
--- a/DataBase/菜单初始化脚本/0-1系统设置(Menu_SysSet).sql
+++ b/DataBase/菜单初始化脚本/0-1系统设置(Menu_SysSet).sql
@@ -235,6 +235,15 @@ GO
insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('124B7659-5F18-49F3-8D30-BF8680830827','3044D68E-5018-4B57-BFC4-FBE4BCCA8B8B','',4)
GO
+ insert into Sys_Menu( MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType ,IsOffice,IsEnd,IsUsed )
+ values('F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','ĵ','BaseInfo/DocType.aspx',170,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
+ GO
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('27D8CEC6-5D58-4B06-BF3F-C62E1D361074','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',1)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('7EB2E0FA-0DEE-45D2-81BA-A49F9F8D556E','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',2)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('CBEF171A-1E96-4523-9CD5-5040D2C42DC6','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','ɾ',3)
+ insert into Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) values('124B7659-5F18-49F3-8D30-BF8680830827','F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64','',4)
+ GO
+
/**********/
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('A93BA810-3511-4BB2-9C10-9663351DF79F','','',20,'D363BD9D-4DEC-45D8-89C8-B0E49DEF61B4','Menu_SysSet',1,0,1)
diff --git a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
index 3b5776ad..5c09d145 100644
--- a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
+++ b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
@@ -108,7 +108,21 @@ GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('78c1b689-3802-4ed6-a446-baf94eec5188','ec0942af-b1ae-4676-8442-4be3a5e22ea0','',5)
GO
-
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('F734733B-4DB4-4DB7-9A0C-894C876BDB76','ְHSEƶ','HSSE/ActionPlan/SubManageRule.aspx',13,'7944B1C6-636B-4AD8-980C-A2F6D44883D3','Menu_HSSE',0,1,1)
+ GO
+ --ְHSEƶȰť
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('1D420DC1-34AE-493E-8F2D-CAEA41DF64C9','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('BF1C0D7A-267E-41B4-8D8E-A99371FC1B3A','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('266F6D4F-193B-4CD6-9D3E-5AFD06679B72','F734733B-4DB4-4DB7-9A0C-894C876BDB76','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('CA237F10-32FC-4BA7-BD05-1FF9E5D6EC65','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',4)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D8F410DF-6043-4F71-A1AB-03A623D19824','F734733B-4DB4-4DB7-9A0C-894C876BDB76','',5)
+ GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('703D90A7-C40B-4753-943B-8A59AABDC043','涨嵥','HSSE/ActionPlan/ManagerRuleList.aspx',20,'7944B1C6-636B-4AD8-980C-A2F6D44883D3','Menu_HSSE',0,1,1)
GO
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 0088b85c..582d2550 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -156,6 +156,7 @@
+
@@ -296,6 +297,8 @@
+
+
@@ -359,6 +362,7 @@
+
diff --git a/SGGL/BLL/BaseInfo/DocTypeService.cs b/SGGL/BLL/BaseInfo/DocTypeService.cs
new file mode 100644
index 00000000..2362c4e0
--- /dev/null
+++ b/SGGL/BLL/BaseInfo/DocTypeService.cs
@@ -0,0 +1,121 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class DocTypeService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 根据主键获取信息
+ ///
+ ///
+ ///
+ public static Model.Base_DocType GetDocTypeById(string docTypeID)
+ {
+ return Funs.DB.Base_DocType.FirstOrDefault(e => e.DocTypeId == docTypeID);
+ }
+
+ ///
+ /// 添加
+ ///
+ ///
+ public static void AddDocType(Model.Base_DocType docType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_DocType newDocType = new Model.Base_DocType
+ {
+ DocTypeId = docType.DocTypeId,
+ DocTypeCode = docType.DocTypeCode,
+ DocTypeName = docType.DocTypeName,
+ CodeRule = docType.CodeRule,
+ };
+
+ db.Base_DocType.InsertOnSubmit(newDocType);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ public static void UpdateDocType(Model.Base_DocType docType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_DocType newDocType = db.Base_DocType.FirstOrDefault(e => e.DocTypeId == docType.DocTypeId);
+ if (newDocType != null)
+ {
+ newDocType.DocTypeCode = docType.DocTypeCode;
+ newDocType.DocTypeName = docType.DocTypeName;
+ newDocType.CodeRule = docType.CodeRule;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除信息
+ ///
+ ///
+ public static void DeleteDocTypeById(string docTypeID)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Base_DocType docType = db.Base_DocType.FirstOrDefault(e => e.DocTypeId == docTypeID);
+ {
+ db.Base_DocType.DeleteOnSubmit(docType);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 获取类别下拉项
+ ///
+ ///
+ public static List GetDocTypeList()
+ {
+ var list = (from x in Funs.DB.Base_DocType orderby x.DocTypeCode select x).ToList();
+ return list;
+ }
+
+ ///
+ /// 类型表下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitDocTypeDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "DocTypeId";
+ dropName.DataTextField = "DocTypeName";
+ dropName.DataSource = GetDocTypeList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+
+ public static Model.Base_DocType GetDocTypeByName(string name)
+ {
+ return Funs.DB.Base_DocType.FirstOrDefault(e => e.DocTypeName == name);
+ }
+
+ ///
+ /// 根据主键获取类别名称
+ ///
+ ///
+ ///
+ public static string GetDocTypeNameById(string docTypeID)
+ {
+ string name = string.Empty;
+ var docType = Funs.DB.Base_DocType.FirstOrDefault(e => e.DocTypeId == docTypeID);
+ if (docType != null)
+ {
+ name = docType.DocTypeName;
+ }
+ return name;
+ }
+ }
+}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 70cb028d..52ce47fc 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -742,6 +742,10 @@ namespace BLL
/// 意见收集
///
public const string Menu_Opinion = "Menu_Opinion";
+ ///
+ /// 文档管理
+ ///
+ public const string Menu_Doc = "Menu_Doc";
#endregion
#endregion
@@ -784,8 +788,12 @@ namespace BLL
/// HSSE项目管理规定发布
///
public const string ActionPlan_ProjectManagerRuleMenuId = "ec0942af-b1ae-4676-8442-4be3a5e22ea0";
+ ///
+ /// HSS分包商管理规定发布
+ ///
+ public const string ActionPlan_SubManagerRuleMenuId = "F734733B-4DB4-4DB7-9A0C-894C876BDB76";
+
-
#region 本部检查
///
@@ -839,6 +847,10 @@ namespace BLL
/// 问题类型
///
public const string QuestionTypeMenuId = "3044D68E-5018-4B57-BFC4-FBE4BCCA8B8B";
+ ///
+ /// 文档类别
+ ///
+ public const string DocTypeMenuId = "F0DF2F2B-7C12-4A0F-B7D4-0B00BADE1D64";
#endregion
#region 基础信息
@@ -2852,7 +2864,6 @@ namespace BLL
public const string OpinionCollectionMenuId = "D801290C-1FD9-4467-AFF9-7D788C6344B1";
#endregion
-
#region 模版文件原始的虚拟路径
///
/// Excel附件路径
@@ -3213,6 +3224,22 @@ namespace BLL
public const string State_C = "-2";
#endregion
+ #region 文档流程定义
+ ///
+ /// 待提交
+ ///
+ public const string Doc_State_0 = "0";
+ ///
+ /// 进行中
+ ///
+ public const string Doc_State_1 = "1";
+ ///
+ /// 已闭环
+ ///
+ public const string Doc_State_2 = "2";
+ #endregion
+
+
#region 分流管理流程定义
///
/// 重新整理
@@ -5274,6 +5301,17 @@ namespace BLL
public const string UndergroundPipeCompletionMenuId = "C7037A5D-D8A6-4C1C-A5B8-2083C31C0A7B";
#endregion
+ #region 文档管理
+ ///
+ /// 文档管理
+ ///
+ public const string DocManageMenuId = "609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85";
+ ///
+ /// 文档查找
+ ///
+ public const string DocFindMenuId = "AE22BF25-CE08-477C-B135-543F1F4D4749";
+ #endregion
+
///
/// 设备专业Id
///
diff --git a/SGGL/BLL/DocManage/DocManageApproveService.cs b/SGGL/BLL/DocManage/DocManageApproveService.cs
new file mode 100644
index 00000000..7bab829b
--- /dev/null
+++ b/SGGL/BLL/DocManage/DocManageApproveService.cs
@@ -0,0 +1,125 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public class DocManageApproveService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 获取工程联络单模板列表
+ ///
+ ///
+ ///
+ ///
+ public static DataTable GetListData(string docId)
+ {
+ var db = Funs.DB;
+ var q = (from x in db.Doc_DocManageApprove
+ where x.DocId == docId && x.ApproveDate != null && x.Type == null
+ orderby x.ApproveDate
+ select new
+ {
+ x.DocManageApproveId,
+ x.DocId,
+ ApproveMan = (from y in db.Sys_User where y.UserId == x.ApproveMan select y.UserName).First(),
+ ApproveDate = (string.Format("{0:d}", x.ApproveDate)),
+ RoleName = (from m in db.Sys_Role join n in db.Sys_User on m.RoleId equals n.RoleId where n.UserId == x.ApproveMan select m.RoleName).First(),
+ x.IsAgree,
+ x.ApproveIdea,
+ x.Type
+ });
+ return Funs.LINQToDataTable(q);
+ }
+
+ ///
+ /// 根据文档审批编号获取一个文档审批信息
+ ///
+ /// 文档编号
+ /// 一个文档审批实体
+ public static Model.Doc_DocManageApprove GetDocManageApproveByApproveId(string approveId)
+ {
+ return db.Doc_DocManageApprove.FirstOrDefault(x => x.DocManageApproveId == approveId);
+ }
+
+ ///
+ /// 根据文档编号获取一个文档审批信息
+ ///
+ /// 文档编号
+ /// 一个文档审批实体
+ public static Model.Doc_DocManageApprove GetDocManageApproveByDocId(string DocId)
+ {
+ return db.Doc_DocManageApprove.FirstOrDefault(x => x.DocId == DocId && x.ApproveDate == null && x.Type == null);
+ }
+ ///
+ /// 根据文档编号获取一个文档通知信息
+ ///
+ ///
+ ///
+ public static Model.Doc_DocManageApprove GetNoticeDocManageApproveByDocId(string DocId, string userId)
+ {
+ return db.Doc_DocManageApprove.FirstOrDefault(x => x.DocId == DocId && x.ApproveDate == null && x.Type == "s" && x.ApproveMan == userId);
+ }
+ ///
+ /// 增加文档审批信息
+ ///
+ /// 文档审批实体
+ public static string AddDocManageApprove(Model.Doc_DocManageApprove approve)
+ {
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ string newKeyID = SQLHelper.GetNewID(typeof(Model.Doc_DocManageApprove));
+ Model.Doc_DocManageApprove newApprove = new Model.Doc_DocManageApprove();
+ newApprove.DocManageApproveId = newKeyID;
+ newApprove.DocId = approve.DocId;
+ newApprove.ApproveMan = approve.ApproveMan;
+ newApprove.ApproveDate = approve.ApproveDate;
+ newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.IsAgree = approve.IsAgree;
+ newApprove.Type = approve.Type;
+ db.Doc_DocManageApprove.InsertOnSubmit(newApprove);
+ db.SubmitChanges();
+ return newKeyID;
+ }
+ }
+
+ ///
+ /// 修改文档审批信息
+ ///
+ /// 文档审批实体
+ public static void UpdateDocManageApprove(Model.Doc_DocManageApprove approve)
+ {
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ Model.Doc_DocManageApprove newApprove = db.Doc_DocManageApprove.First(e => e.DocManageApproveId == approve.DocManageApproveId && e.ApproveDate == null);
+ newApprove.DocId = approve.DocId;
+ newApprove.ApproveMan = approve.ApproveMan;
+ newApprove.ApproveDate = approve.ApproveDate;
+ newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.IsAgree = approve.IsAgree;
+ newApprove.Type = approve.Type;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据文档编号删除对应的所有文档审批信息
+ ///
+ /// 文档编号
+ public static void DeleteDocManageApprovesByDocId(string DocId)
+ {
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ var q = (from x in db.Doc_DocManageApprove where x.DocId == DocId select x).ToList();
+ db.Doc_DocManageApprove.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/DocManage/DocManageService.cs b/SGGL/BLL/DocManage/DocManageService.cs
new file mode 100644
index 00000000..3fc5a202
--- /dev/null
+++ b/SGGL/BLL/DocManage/DocManageService.cs
@@ -0,0 +1,205 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Web.UI.WebControls;
+
+namespace BLL
+{
+ public class DocManageService
+ {
+
+ ///
+ /// 根据文档信息Id获取一个文档信息
+ ///
+ /// 文档信息Id
+ /// 一个文档信息实体
+ public static Model.Doc_DocManage GetDocByDocId(string DocId)
+ {
+ return Funs.DB.Doc_DocManage.FirstOrDefault(x => x.DocId == DocId);
+ }
+
+ public static void AddDoc(Model.Doc_DocManage Doc)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Doc_DocManage newDoc = new Model.Doc_DocManage();
+ newDoc.DocId = Doc.DocId;
+ newDoc.DocCode = Doc.DocCode;
+ newDoc.DocName = Doc.DocName;
+ newDoc.DocTypeId = Doc.DocTypeId;
+ newDoc.CNProfessionalId = Doc.CNProfessionalId;
+ newDoc.ProjectId = Doc.ProjectId;
+ newDoc.DocContent = Doc.DocContent;
+ newDoc.SendUnitId = Doc.SendUnitId;
+ newDoc.ReceivUnitIds = Doc.ReceivUnitIds;
+ newDoc.CompileMan = Doc.CompileMan;
+ newDoc.AcceptMan = Doc.AcceptMan;
+ newDoc.CompileDate = Doc.CompileDate;
+ newDoc.State = Doc.State;
+ newDoc.AcceptMan= Doc.AcceptMan;
+ newDoc.DepartId = Doc.DepartId;
+ newDoc.FinishTime = Doc.FinishTime;
+ newDoc.ProjectSubjectId = Doc.ProjectSubjectId;
+ db.Doc_DocManage.InsertOnSubmit(newDoc);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改文档信息信息
+ ///
+ /// 文档信息实体
+ public static void UpdateDoc(Model.Doc_DocManage Doc)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Doc_DocManage newDoc = db.Doc_DocManage.First(e => e.DocId == Doc.DocId);
+ newDoc.DocCode = Doc.DocCode;
+ newDoc.DocName = Doc.DocName;
+ newDoc.DocTypeId = Doc.DocTypeId;
+ newDoc.CNProfessionalId = Doc.CNProfessionalId;
+ newDoc.DocContent = Doc.DocContent;
+ newDoc.SendUnitId = Doc.SendUnitId;
+ newDoc.ReceivUnitIds = Doc.ReceivUnitIds;
+ newDoc.State = Doc.State;
+ newDoc.CompileMan = Doc.CompileMan;
+ newDoc.AcceptMan= Doc.AcceptMan;
+ newDoc.CompileDate = Doc.CompileDate;
+ newDoc.AcceptMan=Doc.AcceptMan;
+ newDoc.DepartId = Doc.DepartId;
+ newDoc.FinishTime = Doc.FinishTime;
+ newDoc.ProjectSubjectId = Doc.ProjectSubjectId;
+ newDoc.CopyMan = Doc.CopyMan;
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据文档信息Id删除一个文档信息信息
+ ///
+ /// 文档信息Id
+ public static void DeleteDoc(string DocId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.Doc_DocManage Doc = db.Doc_DocManage.First(e => e.DocId == DocId);
+
+ db.Doc_DocManage.DeleteOnSubmit(Doc);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据项目Id获取单位名称下拉选择项
+ ///
+ ///
+ ///
+ public static ListItem[] GetDocStateList()
+ {
+ ListItem[] list = new ListItem[3];
+ list[0] = new ListItem("待提交", BLL.Const.Doc_State_0);
+ list[1] = new ListItem("进行中", BLL.Const.Doc_State_1);
+ list[2] = new ListItem("已闭环", BLL.Const.Doc_State_2);
+ return list;
+ }
+
+ ///
+ /// 文档状态下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitDocState(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "Value";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = GetDocStateList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+
+ //
+ //获取审批状态
+ //
+ //
+ //
+ public static string ConvertState(object state)
+ {
+ if (state != null)
+ {
+ if (state.ToString() == BLL.Const.Doc_State_0)
+ {
+ return "待提交";
+ }
+ else if (state.ToString() == BLL.Const.Doc_State_1)
+ {
+ return "进行中";
+ }
+ else if (state.ToString() == BLL.Const.Doc_State_2)
+ {
+ return "已闭环";
+ }
+ }
+ return "";
+ }
+
+ //
+ //获取办理人姓名
+ //
+ //
+ //
+ public static string ConvertMan(object DocId)
+ {
+ if (DocId != null)
+ {
+ Model.Doc_DocManageApprove a = DocManageApproveService.GetDocManageApproveByDocId(DocId.ToString());
+ if (a != null)
+ {
+ if (a.ApproveMan != null)
+ {
+ return UserService.GetUserByUserId(a.ApproveMan).UserName;
+ }
+ }
+ else
+ {
+ return "";
+ }
+ }
+ return "";
+ }
+
+ ///
+ /// 根据id获取打印所需要的参数键值对
+ ///
+ ///
+ ///
+ public static Dictionary GetPairs(string DocId)
+ {
+ Model.Doc_DocManage doc = DocManageService.GetDocByDocId(DocId);
+ //txtDepart.Text=DepartService.getDepartNameById(doc.DepartId);
+ string CompileDate = "";
+ string FinishTime = "";
+ if (doc.CompileDate != null)
+ {
+ CompileDate = string.Format("{0:d}", doc.CompileDate);
+ }
+ if (doc.FinishTime != null)
+ {
+ FinishTime = string.Format("{0:d}", doc.FinishTime);
+ }
+
+ Dictionary keyValuePairs = new Dictionary();
+ /* keyValuePairs.Add("DocCode", doc.DocCode);
+ keyValuePairs.Add("SendUnitName", BLL.UnitService.GetUnitNameByUnitId(doc.SendUnitId));
+ keyValuePairs.Add("DocTypeName", BLL.DocTypeService.GetDocTypeNameById(doc.DocTypeId));
+ keyValuePairs.Add("ProSubjectName", ProjectSubjectService.GetProjectSubjectNameById(doc.ProjectSubjectId));
+ keyValuePairs.Add("CNProfessionalName", BLL.CNProfessionalService.GetCNProfessionalNameById(doc.CNProfessionalId));
+ keyValuePairs.Add("CompileManName", BLL.UserService.GetUserNameByUserId(doc.CompileMan));
+ keyValuePairs.Add("DocName", doc.DocName);
+ keyValuePairs.Add("CompileDate", CompileDate);
+ keyValuePairs.Add("FinishTime", FinishTime);
+ keyValuePairs.Add("ReceivUnit", BLL.UnitService.getUnitNamesUnitIds(doc.ReceivUnitIds));
+ keyValuePairs.Add("DocContent", doc.DocContent);*/
+ return keyValuePairs;
+
+ }
+ }
+}
diff --git a/SGGL/BLL/HSSE/ActionPlan/ActionPlan_SubManagerRuleService .cs b/SGGL/BLL/HSSE/ActionPlan/ActionPlan_SubManagerRuleService .cs
new file mode 100644
index 00000000..b991bfd4
--- /dev/null
+++ b/SGGL/BLL/HSSE/ActionPlan/ActionPlan_SubManagerRuleService .cs
@@ -0,0 +1,131 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public static class ActionPlan_SubManagerRuleService
+ {
+ ///
+ /// 根据主键获取管理规定
+ ///
+ ///
+ ///
+ public static Model.ActionPlan_SubManagerRule GetManagerRuleById(string managerRuleId)
+ {
+ return Funs.DB.ActionPlan_SubManagerRule.FirstOrDefault(e => e.ManagerRuleId == managerRuleId);
+ }
+
+ ///
+ /// 根据名称获取已发布管理规定的集合
+ ///
+ ///
+ ///
+ public static List GetIsIssueManagerRulesByName(string managerRuleName)
+ {
+ return (from x in Funs.DB.ActionPlan_SubManagerRule where x.ManageRuleName == managerRuleName && x.IsIssue == true orderby x.IssueDate select x).ToList();
+ }
+
+ ///
+ /// 根据日期获取管理规定集合
+ ///
+ /// 开始时间
+ /// 结束时间
+ /// 项目号
+ /// 管理规定集合
+ public static List GetManagerRuleListsByDate(DateTime startTime, DateTime endTime, string projectId)
+ {
+ return (from x in Funs.DB.ActionPlan_SubManagerRule where x.CompileDate >= startTime && x.CompileDate <= endTime && x.ProjectId == projectId orderby x.CompileDate select x).ToList();
+ }
+
+ ///
+ /// 根据整理人获取管理规定
+ ///
+ ///
+ ///
+ public static List GetManageRuleByCompileMan(string compileMan)
+ {
+ return (from x in Funs.DB.ActionPlan_SubManagerRule where x.CompileMan == compileMan select x).ToList();
+ }
+
+ ///
+ /// 添加管理规定
+ ///
+ ///
+ public static void AddManageRule(Model.ActionPlan_SubManagerRule manageRule)
+ {
+ Model.ActionPlan_SubManagerRule newManageRule = new Model.ActionPlan_SubManagerRule
+ {
+ ManagerRuleId = manageRule.ManagerRuleId,
+ ManageRuleCode = manageRule.ManageRuleCode,
+ ProjectId = manageRule.ProjectId,
+ ManageRuleName = manageRule.ManageRuleName,
+ ManageRuleTypeId = manageRule.ManageRuleTypeId,
+ VersionNo = manageRule.VersionNo,
+ AttachUrl = manageRule.AttachUrl,
+ Remark = manageRule.Remark,
+ CompileMan = manageRule.CompileMan,
+ CompileDate = manageRule.CompileDate,
+ Flag = manageRule.Flag,
+ State = manageRule.State,
+ SeeFile = manageRule.SeeFile
+ };
+ Funs.DB.ActionPlan_SubManagerRule.InsertOnSubmit(newManageRule);
+ Funs.DB.SubmitChanges();
+
+ ////增加一条编码记录
+ BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ActionPlan_SubManagerRuleMenuId, manageRule.ProjectId, null, manageRule.ManagerRuleId, manageRule.CompileDate);
+ }
+
+ ///
+ /// 修改管理规定
+ ///
+ ///
+ public static void UpdateManageRule(Model.ActionPlan_SubManagerRule manageRule)
+ {
+ Model.ActionPlan_SubManagerRule newManageRule = Funs.DB.ActionPlan_SubManagerRule.FirstOrDefault(e => e.ManagerRuleId == manageRule.ManagerRuleId);
+ if (newManageRule != null)
+ {
+ newManageRule.ManageRuleName = manageRule.ManageRuleName;
+ newManageRule.ManageRuleTypeId = manageRule.ManageRuleTypeId;
+ newManageRule.VersionNo = manageRule.VersionNo;
+ newManageRule.AttachUrl = manageRule.AttachUrl;
+ newManageRule.Remark = manageRule.Remark;
+ newManageRule.CompileMan = manageRule.CompileMan;
+ newManageRule.CompileDate = manageRule.CompileDate;
+ newManageRule.IsIssue = manageRule.IsIssue;
+ newManageRule.IssueDate = manageRule.IssueDate;
+ newManageRule.Flag = manageRule.Flag;
+ newManageRule.State = manageRule.State;
+ newManageRule.SeeFile = manageRule.SeeFile;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除管理规定
+ ///
+ ///
+ public static void DeleteManageRuleById(string managerRuleId)
+ {
+ Model.ActionPlan_SubManagerRule manageRule = Funs.DB.ActionPlan_SubManagerRule.FirstOrDefault(e => e.ManagerRuleId == managerRuleId);
+ if (manageRule != null)
+ {
+ if (!string.IsNullOrEmpty(manageRule.AttachUrl))
+ {
+ BLL.UploadFileService.DeleteFile(Funs.RootPath, manageRule.AttachUrl);
+ }
+ ///删除编码表记录
+ CodeRecordsService.DeleteCodeRecordsByDataId(managerRuleId);
+ ////删除附件表
+ CommonService.DeleteAttachFileById(manageRule.ManagerRuleId);
+ ////删除审核流程表
+ CommonService.DeleteFlowOperateByID(manageRule.ManagerRuleId);
+ Funs.DB.ActionPlan_SubManagerRule.DeleteOnSubmit(manageRule);
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/SGGL/BLL/SysManage/UserService.cs b/SGGL/BLL/SysManage/UserService.cs
index 03721d6b..e2154ec2 100644
--- a/SGGL/BLL/SysManage/UserService.cs
+++ b/SGGL/BLL/SysManage/UserService.cs
@@ -597,6 +597,52 @@ namespace BLL
}
}
+ ///
+ /// Ŀź͵λIdȡûѡ
+ ///
+ ///
+ public static List GetUserListByProjectIdAndUnitIdAndNotCopyManId(string projectId, string unitId, string notCopyManId)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ List list = new List();
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ if (!string.IsNullOrEmpty(unitId))
+ {
+ list = (from x in db.Sys_User
+ join y in db.Project_ProjectUser
+ on x.UserId equals y.UserId
+ join z in db.Base_Depart on x.DepartId equals z.DepartId
+ where y.ProjectId == projectId && x.UnitId == unitId && x.IsPost == true && y.IsPost == true && x.UserId != notCopyManId
+ orderby z.DepartCode, x.UserName
+ select x).ToList();
+ }
+ else
+ {
+ list = (from x in db.Sys_User
+ join y in db.Project_ProjectUser
+ on x.UserId equals y.UserId
+ join z in db.Base_Depart on x.DepartId equals z.DepartId
+ where y.ProjectId == projectId && x.IsPost == true && y.IsPost == true && x.UserId != notCopyManId
+ orderby z.DepartCode, x.UserName
+ select x).ToList();
+ }
+
+ }
+ else
+ {
+ list = (from x in db.Sys_User
+ join z in db.Base_Depart on x.DepartId equals z.DepartId
+ where x.UnitId == unitId && x.IsPost == true && x.UserId != notCopyManId
+ orderby z.DepartCode, x.UserName
+ select x).ToList();
+ }
+ return list;
+ }
+ }
+
+
#region û
///
/// û
diff --git a/SGGL/FineUIPro.Web/AttachFile/Look.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/Look.aspx.cs
index 8f69c8ea..8eb46670 100644
--- a/SGGL/FineUIPro.Web/AttachFile/Look.aspx.cs
+++ b/SGGL/FineUIPro.Web/AttachFile/Look.aspx.cs
@@ -13,8 +13,8 @@ namespace FineUIPro.Web.AttachFile
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
var url = Request.Params["fileUrl"];
- // var Baseurl = "https://view.officeapps.live.com/op/embed.aspx?src=";
- var Baseurl = "https://view.xdocin.com/view?src=";
+ var Baseurl = "https://view.officeapps.live.com/op/embed.aspx?src=";
+ // var Baseurl = "https://view.xdocin.com/view?src=";
var Fileurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
var newurl = "";
var FiletExtension = Path.GetExtension(url);
diff --git a/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx
new file mode 100644
index 00000000..33f16ca5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx
@@ -0,0 +1,173 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocType.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.DocType" %>
+
+
+
+
+
+ 文档类别
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.cs
new file mode 100644
index 00000000..84941c98
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.cs
@@ -0,0 +1,286 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.BaseInfo
+{
+ public partial class DocType : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ ////权限按钮方法
+ this.GetButtonPower();
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ BindGrid();
+ //SolutionTempleteTypeService.InitSolutionTempleteDropDownList(drpSolutionTempleteType, true);
+ }
+ }
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @" select DocTypeId ,DocTypeCode ,DocTypeName,CodeRule from Base_DocType ";
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
+ Grid1.RecordCount = tb.Rows.Count;
+ tb = GetFilteredTable(Grid1.FilteredData, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
+
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ ///
+ /// 分页
+ ///
+ ///
+ private List GetPagedDataTable(int pageIndex, int pageSize)
+ {
+ List source = (from x in Funs.DB.Base_DocType orderby x.DocTypeCode select x).ToList();
+ List paged = new List();
+
+ int rowbegin = pageIndex * pageSize;
+ int rowend = (pageIndex + 1) * pageSize;
+ if (rowend > source.Count())
+ {
+ rowend = source.Count();
+ }
+
+ for (int i = rowbegin; i < rowend; i++)
+ {
+ paged.Add(source[i]);
+ }
+
+ return paged;
+ }
+
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ Grid1.PageIndex = e.NewPageIndex;
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ protected void btnDelete_Click(object sender, EventArgs e)
+ {
+ if (judgementDelete(hfFormID.Text, true))
+ {
+ var getDocType = BLL.DocTypeService.GetDocTypeById(hfFormID.Text);
+ if (getDocType != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, getDocType.DocTypeCode, getDocType.DocTypeId, BLL.Const.DocTypeMenuId, BLL.Const.BtnDelete);
+ BLL.DocTypeService.DeleteDocTypeById(hfFormID.Text);
+
+ // 重新绑定表格,并模拟点击[新增按钮]
+ BindGrid();
+ PageContext.RegisterStartupScript("onNewButtonClick();");
+ }
+ }
+ }
+
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ if (judgementDelete(rowID, true))
+ {
+ var getDocType = BLL.DocTypeService.GetDocTypeById(rowID);
+ if (getDocType != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, getDocType.DocTypeCode, getDocType.DocTypeId, BLL.Const.DocTypeMenuId, BLL.Const.BtnDelete);
+ BLL.DocTypeService.DeleteDocTypeById(rowID);
+ }
+ }
+ }
+ BindGrid();
+ PageContext.RegisterStartupScript("onNewButtonClick();");
+ }
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!");
+ return;
+ }
+ string Id = Grid1.SelectedRowID;
+ var DocType = BLL.DocTypeService.GetDocTypeById(Id);
+ if (DocType != null)
+ {
+ this.txtDocTypeCode.Text = DocType.DocTypeCode;
+ this.txtDocTypeName.Text = DocType.DocTypeName;
+ this.txtCodeRule.Text = DocType.CodeRule;
+ hfFormID.Text = Id;
+ this.btnDelete.Enabled = true;
+ }
+ }
+
+ protected void Grid1_FilterChange(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ string strRowID = hfFormID.Text;
+ Model.Base_DocType newDocType = new Model.Base_DocType
+ {
+ DocTypeCode = this.txtDocTypeCode.Text.Trim(),
+ DocTypeName = this.txtDocTypeName.Text.Trim(),
+ CodeRule = txtCodeRule.Text.Trim()
+ };
+ //if (drpSolutionTempleteType.SelectedValue != BLL.Const._Null) {
+ // newDocType.SolutionTempleteTypeCode = drpSolutionTempleteType.SelectedValue;
+ //}
+ if (string.IsNullOrEmpty(strRowID))
+ {
+ newDocType.DocTypeId = SQLHelper.GetNewID(typeof(Model.Base_DocType));
+ BLL.DocTypeService.AddDocType(newDocType);
+ BLL.LogService.AddSys_Log(this.CurrUser, newDocType.DocTypeCode, newDocType.DocTypeId, BLL.Const.DocTypeMenuId, BLL.Const.BtnAdd);
+ }
+ else
+ {
+ newDocType.DocTypeId = strRowID;
+ BLL.DocTypeService.UpdateDocType(newDocType);
+ BLL.LogService.AddSys_Log(this.CurrUser, newDocType.DocTypeCode, newDocType.DocTypeId, BLL.Const.DocTypeMenuId, BLL.Const.BtnModify);
+ }
+ this.SimpleForm1.Reset();
+ // 重新绑定表格,并点击当前编辑或者新增的行
+ BindGrid();
+ PageContext.RegisterStartupScript(String.Format("F('{0}').selectRow('{1}');", Grid1.ClientID, newDocType.DocTypeId));
+ }
+
+ private void retText()
+ {
+ this.hfFormID.Text = string.Empty;
+ this.txtDocTypeCode.Text = string.Empty;
+ this.txtDocTypeName.Text = string.Empty;
+ this.txtCodeRule.Text = string.Empty;
+ }
+
+ ///
+ /// 判断是否可删除
+ ///
+ ///
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+ //if (Funs.DB.Technique_SpecialScheme.FirstOrDefault(x => x.DocTypeID == id) != null)
+ //{
+ // content = "该专业方案类别已在【专业方案】中使用,不能删除!";
+ //}
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content);
+ }
+ return false;
+ }
+ }
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DocTypeMenuId);
+ 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.btnDelete.Hidden = false;
+ this.btnMenuDelete.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnSave))
+ {
+ this.btnSave.Hidden = false;
+ }
+ }
+ }
+ #endregion
+
+ #region 验证文档类别名称、编号是否存在
+ ///
+ /// 验证专项方案类型名称、编号是否存在
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ var q = Funs.DB.Base_DocType.FirstOrDefault(x => x.DocTypeCode == this.txtDocTypeCode.Text.Trim() && (x.DocTypeId != hfFormID.Text || (hfFormID.Text == null && x.DocTypeId != null)));
+ if (q != null)
+ {
+ ShowNotify("输入的文档类别编号已存在!", MessageBoxIcon.Warning);
+ }
+
+ var q2 = Funs.DB.Base_DocType.FirstOrDefault(x => x.DocTypeName == this.txtDocTypeName.Text.Trim() && (x.DocTypeId != hfFormID.Text || (hfFormID.Text == null && x.DocTypeId != null)));
+ if (q2 != null)
+ {
+ ShowNotify("输入的文档类别名称已存在!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.designer.cs
new file mode 100644
index 00000000..43c98604
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BaseInfo/DocType.aspx.designer.cs
@@ -0,0 +1,195 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BaseInfo {
+
+
+ public partial class DocType {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.SimpleForm SimpleForm1;
+
+ ///
+ /// hfFormID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hfFormID;
+
+ ///
+ /// txtDocTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDocTypeCode;
+
+ ///
+ /// txtDocTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDocTypeName;
+
+ ///
+ /// txtCodeRule 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCodeRule;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// btnDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDelete;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPerson.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPerson.aspx
index 1516968c..a9bde66e 100644
--- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPerson.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionPerson.aspx
@@ -6,6 +6,18 @@
人员报验
+
+ ///
+ ///
+ 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;
+ BindGrid();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+
+#pragma warning disable CS0108 // “ManagerRule.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
+ ///
+ /// 导出方法
+ ///
+ ///
+ ///
+ private string GetGridTableHtml(Grid grid)
+#pragma warning restore CS0108 // “ManagerRule.GetGridTableHtml(Grid)”隐藏继承的成员“PageBase.GetGridTableHtml(Grid)”。如果是有意隐藏,请使用关键字 new。
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("");
+ sb.Append("");
+ sb.Append("");
+ foreach (GridColumn column in grid.Columns)
+ {
+ sb.AppendFormat("| {0} | ", column.HeaderText);
+ }
+ sb.Append("
");
+ foreach (GridRow row in grid.Rows)
+ {
+ sb.Append("");
+ foreach (GridColumn column in grid.Columns)
+ {
+ string html = row.Values[column.ColumnIndex].ToString();
+ if (column.ColumnID == "tfNumber")
+ {
+ html = (row.FindControl("labNumber") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfManageRuleCode")
+ {
+ html = (row.FindControl("lblManageRuleCode") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfOldManageRuleCode")
+ {
+ html = (row.FindControl("lblOldManageRuleCode") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfManageRuleName")
+ {
+ html = (row.FindControl("lblManageRuleName") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfManageRuleTypeName")
+ {
+ html = (row.FindControl("lblManageRuleTypeName") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfShortRemark")
+ {
+ html = (row.FindControl("lblRemark") as AspNet.Label).Text;
+ }
+ if (column.ColumnID == "tfState")
+ {
+ html = (row.FindControl("lblState") as AspNet.Label).Text;
+ }
+ sb.AppendFormat("| {0} | ", html);
+ }
+
+ sb.Append("
");
+ }
+
+ sb.Append("
");
+
+ return sb.ToString();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRule.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRule.aspx.designer.cs
new file mode 100644
index 00000000..6c78dd21
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRule.aspx.designer.cs
@@ -0,0 +1,224 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.ActionPlan
+{
+
+
+ public partial class SubManageRule
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// cbIssue 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBoxList cbIssue;
+
+ ///
+ /// txtManageRuleCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleCode;
+
+ ///
+ /// txtManageRuleName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleName;
+
+ ///
+ /// txtManageRuleTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleTypeName;
+
+ ///
+ /// btnQuery 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnQuery;
+
+ ///
+ /// btnCompile 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnCompile;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// lblManageRuleName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblManageRuleName;
+
+ ///
+ /// lblState 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblState;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Window2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window2;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuIssuance 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuIssuance;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx
new file mode 100644
index 00000000..5b7e20ad
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx
@@ -0,0 +1,83 @@
+<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="SubManageRuleEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.ActionPlan.SubManageRuleEdit" %>
+
+<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl"
+ TagPrefix="uc1" %>
+
+
+
+
+ 编辑管理规定
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.cs
new file mode 100644
index 00000000..f1db233c
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.cs
@@ -0,0 +1,216 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.HSSE.ActionPlan
+{
+ public partial class SubManageRuleEdit : PageBase
+ {
+ #region 定义变量
+ ///
+ /// 主键
+ ///
+ public string ProjectManageRuleId
+ {
+ get
+ {
+ return (string)ViewState["ProjectManageRuleId"];
+ }
+ set
+ {
+ ViewState["ProjectManageRuleId"] = value;
+ }
+ }
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ ///
+ /// 附件路径
+ ///
+ public string FullAttachUrl
+ {
+ get
+ {
+ return (string)ViewState["FullAttachUrl"];
+ }
+ set
+ {
+ ViewState["FullAttachUrl"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ if (Request.Params["type"] == "see") //查看
+ {
+ this.btnSave.Hidden = true;
+ }
+ //加载管理规定类别下拉选项
+ this.ddlManageRuleTypeId.DataTextField = "ManageRuleTypeName";
+ this.ddlManageRuleTypeId.DataValueField = "ManageRuleTypeId";
+ this.ddlManageRuleTypeId.DataSource = BLL.ManageRuleTypeService.GetManageRuleTypeList();
+ ddlManageRuleTypeId.DataBind();
+ Funs.FineUIPleaseSelect(this.ddlManageRuleTypeId);
+ this.ProjectManageRuleId = Request.Params["ManagerRuleId"];
+ if (!string.IsNullOrEmpty(this.ProjectManageRuleId))
+ {
+ var managerRule = BLL.ActionPlan_SubManagerRuleService.GetManagerRuleById(this.ProjectManageRuleId);
+ if (managerRule != null)
+ {
+ this.ProjectId = managerRule.ProjectId;
+ this.txtManageRuleCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ProjectManageRuleId);
+ this.txtManageRuleName.Text = managerRule.ManageRuleName;
+ this.txtSeeFile.Text = HttpUtility.HtmlDecode(managerRule.SeeFile);
+ if (!string.IsNullOrEmpty(managerRule.ManageRuleTypeId))
+ {
+ this.ddlManageRuleTypeId.SelectedValue = managerRule.ManageRuleTypeId;
+ }
+ }
+ }
+ ///初始化审核菜单
+ this.ctlAuditFlow.MenuId = BLL.Const.ActionPlan_SubManagerRuleMenuId;
+ this.ctlAuditFlow.DataId = this.ProjectManageRuleId;
+ this.ctlAuditFlow.ProjectId = this.ProjectId;
+ this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
+ }
+ }
+ #endregion
+
+ #region 保存
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ this.SaveData(BLL.Const.BtnSave);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSubmit_Click(object sender, EventArgs e)
+ {
+ this.SaveData(BLL.Const.BtnSubmit);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+
+ ///
+ /// 保存数据
+ ///
+ private void SaveData(string type)
+ {
+ Model.ActionPlan_SubManagerRule newManagerRule = new Model.ActionPlan_SubManagerRule();
+ newManagerRule.ManageRuleCode = this.txtManageRuleCode.Text.Trim();
+ newManagerRule.ManageRuleName = this.txtManageRuleName.Text.Trim();
+ newManagerRule.SeeFile = HttpUtility.HtmlEncode(this.txtSeeFile.Text);
+ if (this.ddlManageRuleTypeId.SelectedValue != BLL.Const._Null)
+ {
+ newManagerRule.ManageRuleTypeId = this.ddlManageRuleTypeId.SelectedValue;
+ }
+ newManagerRule.AttachUrl = this.FullAttachUrl;
+ newManagerRule.State = BLL.Const.State_0;
+ if (type == BLL.Const.BtnSubmit)
+ {
+ newManagerRule.State = this.ctlAuditFlow.NextStep;
+ }
+ var manageRule = BLL.ActionPlan_SubManagerRuleService.GetManagerRuleById(this.ProjectManageRuleId);
+ if (manageRule == null)
+ {
+ if (string.IsNullOrEmpty(this.ProjectManageRuleId))
+ {
+ newManagerRule.ManagerRuleId = SQLHelper.GetNewID(typeof(Model.ActionPlan_SubManagerRule));
+ }
+ else
+ {
+ newManagerRule.ManagerRuleId = this.ProjectManageRuleId;
+ }
+ newManagerRule.ProjectId = this.CurrUser.LoginProjectId;
+ newManagerRule.CompileDate = DateTime.Now;
+ newManagerRule.CompileMan = this.CurrUser.UserId;
+ newManagerRule.IsIssue = false;
+ newManagerRule.Flag = true;
+ BLL.ActionPlan_SubManagerRuleService.AddManageRule(newManagerRule);
+ ////保存流程审核数据
+ this.ctlAuditFlow.btnSaveData(this.CurrUser.LoginProjectId, BLL.Const.ActionPlan_ManagerRuleMenuId, newManagerRule.ManagerRuleId, true, newManagerRule.ManageRuleName, "../ActionPlan/ManagerRuleView.aspx?ManagerRuleId={0}");
+ }
+ else
+ {
+ newManagerRule.ManagerRuleId = manageRule.ManagerRuleId;
+ newManagerRule.ProjectId = manageRule.ProjectId;
+ newManagerRule.CompileDate = manageRule.CompileDate;
+ newManagerRule.CompileMan = manageRule.CompileMan;
+ newManagerRule.IsIssue = manageRule.IsIssue;
+ newManagerRule.Flag = manageRule.Flag;
+ BLL.ActionPlan_SubManagerRuleService.UpdateManageRule(newManagerRule);
+ }
+
+ BLL.LogService.AddSys_Log(this.CurrUser, newManagerRule.ManageRuleCode, newManagerRule.ManagerRuleId, BLL.Const.ActionPlan_SubManagerRuleMenuId, Const.BtnModify);
+ ////保存流程审核数据
+ this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ActionPlan_SubManagerRuleMenuId, this.ProjectManageRuleId, (type == BLL.Const.BtnSubmit ? true : false), newManagerRule.ManageRuleName, "../ActionPlan/ProjectManagerRuleView.aspx?ManagerRuleId={0}");
+ }
+ #endregion
+
+ #region 附件上传
+ ///
+ /// 上传附件
+ ///
+ ///
+ ///
+ protected void btnAttachUrl_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrEmpty(this.ProjectManageRuleId))
+ {
+ this.ProjectManageRuleId = SQLHelper.GetNewID(typeof(Model.ActionPlan_SubManagerRule));
+ }
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanManagerRule&menuId={1}", ProjectManageRuleId, BLL.Const.ActionPlan_SubManagerRuleMenuId)));
+ }
+ #endregion
+
+ #region 验证管理规定名称是否存在
+ ///
+ /// 验证管理规定名称是否存在
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ var standard = Funs.DB.ActionPlan_SubManagerRule.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.ManageRuleName == this.txtManageRuleName.Text.Trim());
+ if (standard != null)
+ {
+ ShowNotify("输入的文件名称已存在!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.designer.cs
new file mode 100644
index 00000000..664c1ad7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleEdit.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.ActionPlan
+{
+
+
+ public partial class SubManageRuleEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtManageRuleName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleName;
+
+ ///
+ /// txtManageRuleCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleCode;
+
+ ///
+ /// ddlManageRuleTypeId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlManageRuleTypeId;
+
+ ///
+ /// txtSeeFile 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HtmlEditor txtSeeFile;
+
+ ///
+ /// ContentPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ContentPanel ContentPanel1;
+
+ ///
+ /// ctlAuditFlow 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// lbTemp 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label lbTemp;
+
+ ///
+ /// hdProjectManageRuleId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdProjectManageRuleId;
+
+ ///
+ /// btnAttachUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnAttachUrl;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnSubmit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSubmit;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx
new file mode 100644
index 00000000..1a435188
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx
@@ -0,0 +1,74 @@
+<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="SubManageRuleView.aspx.cs" Inherits="FineUIPro.Web.HSSE.ActionPlan.SubManageRuleView" %>
+
+<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl"
+ TagPrefix="uc1" %>
+
+
+
+
+ 管理规定
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.cs
new file mode 100644
index 00000000..11a09368
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.cs
@@ -0,0 +1,111 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.HSSE.ActionPlan
+{
+ public partial class SubManageRuleView : PageBase
+ {
+ #region 定义变量
+ ///
+ /// 主键
+ ///
+ public string ProjectManageRuleId
+ {
+ get
+ {
+ return (string)ViewState["ProjectManageRuleId"];
+ }
+ set
+ {
+ ViewState["ProjectManageRuleId"] = value;
+ }
+ }
+ ///
+ /// 项目主键
+ ///
+ public string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+ ///
+ /// 附件路径
+ ///
+ public string FullAttachUrl
+ {
+ get
+ {
+ return (string)ViewState["FullAttachUrl"];
+ }
+ set
+ {
+ ViewState["FullAttachUrl"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ this.ProjectManageRuleId = Request.Params["ManagerRuleId"];
+ if (!string.IsNullOrEmpty(this.ProjectManageRuleId))
+ {
+ var managerRule = BLL.ActionPlan_SubManagerRuleService.GetManagerRuleById(this.ProjectManageRuleId);
+ if (managerRule != null)
+ {
+ this.ProjectId = managerRule.ProjectId;
+ this.txtManageRuleCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ProjectManageRuleId);
+ this.txtManageRuleName.Text = managerRule.ManageRuleName;
+ this.txtSeeFile.Text = HttpUtility.HtmlDecode(managerRule.SeeFile);
+ var manag = BLL.ManageRuleTypeService.GetManageRuleTypeById(managerRule.ManageRuleTypeId);
+ if (manag != null)
+ {
+ this.ddlManageRuleTypeId.Text = manag.ManageRuleTypeName;
+ }
+ }
+ }
+ ///初始化审核菜单
+ this.ctlAuditFlow.MenuId = BLL.Const.ActionPlan_CompanyManagerRuleMenuId;
+ this.ctlAuditFlow.DataId = this.ProjectManageRuleId;
+ this.ctlAuditFlow.ProjectId = this.ProjectId;
+ this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
+ }
+ }
+ #endregion
+ #region 附件上传
+ ///
+ /// 上传附件
+ ///
+ ///
+ ///
+ protected void btnAttachUrl_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.ProjectManageRuleId))
+ {
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanManagerRule&menuId={1}&type=-1", ProjectManageRuleId, BLL.Const.ActionPlan_SubManagerRuleMenuId)));
+ }
+
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.designer.cs
new file mode 100644
index 00000000..abe16ac6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/ActionPlan/SubManageRuleView.aspx.designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.ActionPlan
+{
+
+
+ public partial class SubManageRuleView
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtManageRuleName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleName;
+
+ ///
+ /// txtManageRuleCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtManageRuleCode;
+
+ ///
+ /// ddlManageRuleTypeId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox ddlManageRuleTypeId;
+
+ ///
+ /// txtSeeFile 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HtmlEditor txtSeeFile;
+
+ ///
+ /// ContentPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ContentPanel ContentPanel1;
+
+ ///
+ /// ctlAuditFlow 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// lbTemp 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label lbTemp;
+
+ ///
+ /// btnAttachUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnAttachUrl;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/RiskAnalysisChart.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/RiskAnalysisChart.aspx.cs
index f1922c4f..a05af7f7 100644
--- a/SGGL/FineUIPro.Web/HSSE/HiddenInspection/RiskAnalysisChart.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/HiddenInspection/RiskAnalysisChart.aspx.cs
@@ -74,7 +74,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
rowTime["已整改"] = unitHazad.Where(x => x.States == "3" || x.States == "2").Count();
dtTime.Rows.Add(rowTime);
}
- this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "单位巡检分析", this.drpChartType.SelectedValue, 1130, 450, this.ckbShow.Checked));
+ this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "单位巡检分析", this.drpChartType.SelectedValue, 1100, 300, this.ckbShow.Checked));
}
else //饼形图
{
diff --git a/SGGL/FineUIPro.Web/common/Menu_Doc.xml b/SGGL/FineUIPro.Web/common/Menu_Doc.xml
new file mode 100644
index 00000000..0a714bec
--- /dev/null
+++ b/SGGL/FineUIPro.Web/common/Menu_Doc.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
index 5554d3e0..1a55169b 100644
--- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
@@ -11,6 +11,7 @@
+
diff --git a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
index 72bacc30..2876a6e9 100644
--- a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
@@ -23,6 +23,7 @@
+
diff --git a/SGGL/FineUIPro.Web/indexProject.aspx b/SGGL/FineUIPro.Web/indexProject.aspx
index 1d21c20e..e9b98ade 100644
--- a/SGGL/FineUIPro.Web/indexProject.aspx
+++ b/SGGL/FineUIPro.Web/indexProject.aspx
@@ -254,6 +254,11 @@
EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" ID="btnOpinion">
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs
index 47f9d136..1a3f9a41 100644
--- a/SGGL/FineUIPro.Web/indexProject.aspx.cs
+++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs
@@ -677,6 +677,11 @@ namespace FineUIPro.Web
this.Tab1.IFrameUrl = "~/Opinion/OpinionCollection.aspx";
this.Tab1.Title = "意见收集";
}
+ else if (type==Const.Menu_Doc)
+ {
+ this.Tab1.IFrameUrl = "~/DocManage/DocManage.aspx";
+ this.Tab1.Title = "协调与沟通";
+ }
else
{
this.Tab1.Title = "首页";
@@ -763,7 +768,10 @@ namespace FineUIPro.Web
Response.Write("");
// this.MenuSwitchMethod(Const.Menu_DigitalSite);
}
-
+ protected void btnDoc_Click(object sender, EventArgs e)
+ {
+ this.MenuSwitchMethod(Const.Menu_Doc);
+ }
protected string VideoURL
{
get
diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs
index a7ffe613..f9fd8c51 100644
--- a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web {
-
-
- public partial class indexProject {
-
+namespace FineUIPro.Web
+{
+
+
+ public partial class indexProject
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// topPanel 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ContentPanel topPanel;
-
+
///
/// ContentPanel1 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ContentPanel ContentPanel1;
-
+
///
/// Button21 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button Button21;
-
+
///
/// Button3 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button Button3;
-
+
///
/// btnHSSE 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnHSSE;
-
+
///
/// btnJDGL 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnJDGL;
-
+
///
/// btnHJGL 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnHJGL;
-
+
///
/// btnCLGL 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCLGL;
-
+
///
/// btnTestRun 控件。
///
@@ -119,7 +121,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnTestRun;
-
+
///
/// btnPGJSX 控件。
///
@@ -128,7 +130,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPGJSX;
-
+
///
/// btnDigitalSite 控件。
///
@@ -137,7 +139,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnDigitalSite;
-
+
///
/// btnPDigData 控件。
///
@@ -146,7 +148,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPDigData;
-
+
///
/// btnOpinion 控件。
///
@@ -155,7 +157,16 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOpinion;
-
+
+ ///
+ /// btnDoc 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDoc;
+
///
/// btnPZHGL 控件。
///
@@ -164,7 +175,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPZHGL;
-
+
///
/// drpProject 控件。
///
@@ -173,7 +184,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpProject;
-
+
///
/// btnWeather 控件。
///
@@ -182,7 +193,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnWeather;
-
+
///
/// Button19 控件。
///
@@ -191,7 +202,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button Button19;
-
+
///
/// btnPersonal 控件。
///
@@ -200,7 +211,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPersonal;
-
+
///
/// btnProjectSet 控件。
///
@@ -209,7 +220,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnProjectSet;
-
+
///
/// Button18 控件。
///
@@ -218,7 +229,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button Button18;
-
+
///
/// leftPanel 控件。
///
@@ -227,7 +238,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel leftPanel;
-
+
///
/// leftPanelToolCollapse 控件。
///
@@ -236,7 +247,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool leftPanelToolCollapse;
-
+
///
/// leftPanelToolGear 控件。
///
@@ -245,7 +256,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool leftPanelToolGear;
-
+
///
/// btnExpandAll 控件。
///
@@ -254,7 +265,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnExpandAll;
-
+
///
/// btnCollapseAll 控件。
///
@@ -263,7 +274,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnCollapseAll;
-
+
///
/// MenuMode 控件。
///
@@ -272,7 +283,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton MenuMode;
-
+
///
/// MenuModeNormal 控件。
///
@@ -281,7 +292,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuModeNormal;
-
+
///
/// MenuModeCompact 控件。
///
@@ -290,7 +301,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuModeCompact;
-
+
///
/// MenuModeLarge 控件。
///
@@ -299,7 +310,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuModeLarge;
-
+
///
/// MenuStyle 控件。
///
@@ -308,7 +319,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton MenuStyle;
-
+
///
/// MenuStyleTree 控件。
///
@@ -317,7 +328,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuStyleTree;
-
+
///
/// MenuStyleMiniModeTree 控件。
///
@@ -326,7 +337,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree;
-
+
///
/// MenuStylePlainTree 控件。
///
@@ -335,7 +346,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuStylePlainTree;
-
+
///
/// MenuLang 控件。
///
@@ -344,7 +355,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton MenuLang;
-
+
///
/// MenuLangZHCN 控件。
///
@@ -353,7 +364,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuCheckBox MenuLangZHCN;
-
+
///
/// mainTabStrip 控件。
///
@@ -362,7 +373,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TabStrip mainTabStrip;
-
+
///
/// Tab1 控件。
///
@@ -371,7 +382,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tab Tab1;
-
+
///
/// toolRefresh 控件。
///
@@ -380,7 +391,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool toolRefresh;
-
+
///
/// toolNewWindow 控件。
///
@@ -389,7 +400,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool toolNewWindow;
-
+
///
/// toolMaximize 控件。
///
@@ -398,7 +409,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool toolMaximize;
-
+
///
/// toolSignOut 控件。
///
@@ -407,7 +418,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tool toolSignOut;
-
+
///
/// windowCustomQuery 控件。
///
@@ -416,7 +427,7 @@ namespace FineUIPro.Web {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window windowCustomQuery;
-
+
///
/// XmlDataSource1 控件。
///
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 0c6e832c..a6f1dbe1 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -62,6 +62,9 @@ namespace Model
partial void InsertActionPlan_ProjectManagerRule(ActionPlan_ProjectManagerRule instance);
partial void UpdateActionPlan_ProjectManagerRule(ActionPlan_ProjectManagerRule instance);
partial void DeleteActionPlan_ProjectManagerRule(ActionPlan_ProjectManagerRule instance);
+ partial void InsertActionPlan_SubManagerRule(ActionPlan_SubManagerRule instance);
+ partial void UpdateActionPlan_SubManagerRule(ActionPlan_SubManagerRule instance);
+ partial void DeleteActionPlan_SubManagerRule(ActionPlan_SubManagerRule instance);
partial void InsertAdministrative_CarManager(Administrative_CarManager instance);
partial void UpdateAdministrative_CarManager(Administrative_CarManager instance);
partial void DeleteAdministrative_CarManager(Administrative_CarManager instance);
@@ -107,6 +110,9 @@ namespace Model
partial void InsertBase_DNCompare(Base_DNCompare instance);
partial void UpdateBase_DNCompare(Base_DNCompare instance);
partial void DeleteBase_DNCompare(Base_DNCompare instance);
+ partial void InsertBase_DocType(Base_DocType instance);
+ partial void UpdateBase_DocType(Base_DocType instance);
+ partial void DeleteBase_DocType(Base_DocType instance);
partial void InsertBase_EmergencyType(Base_EmergencyType instance);
partial void UpdateBase_EmergencyType(Base_EmergencyType instance);
partial void DeleteBase_EmergencyType(Base_EmergencyType instance);
@@ -662,6 +668,12 @@ namespace Model
partial void InsertDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance);
partial void UpdateDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance);
partial void DeleteDigData_HSEDataCollectSubmission(DigData_HSEDataCollectSubmission instance);
+ partial void InsertDoc_DocManage(Doc_DocManage instance);
+ partial void UpdateDoc_DocManage(Doc_DocManage instance);
+ partial void DeleteDoc_DocManage(Doc_DocManage instance);
+ partial void InsertDoc_DocManageApprove(Doc_DocManageApprove instance);
+ partial void UpdateDoc_DocManageApprove(Doc_DocManageApprove instance);
+ partial void DeleteDoc_DocManageApprove(Doc_DocManageApprove instance);
partial void InsertDriver_BeforeTestRun(Driver_BeforeTestRun instance);
partial void UpdateDriver_BeforeTestRun(Driver_BeforeTestRun instance);
partial void DeleteDriver_BeforeTestRun(Driver_BeforeTestRun instance);
@@ -2414,6 +2426,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table ActionPlan_SubManagerRule
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Administrative_CarManager
{
get
@@ -2534,6 +2554,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Base_DocType
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Base_EmergencyType
{
get
@@ -4014,6 +4042,22 @@ namespace Model
}
}
+ public System.Data.Linq.Table Doc_DocManage
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Doc_DocManageApprove
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Driver_BeforeTestRun
{
get
@@ -15461,6 +15505,486 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ActionPlan_SubManagerRule")]
+ public partial class ActionPlan_SubManagerRule : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ManagerRuleId;
+
+ private string _ManageRuleCode;
+
+ private string _ProjectId;
+
+ private string _ManageRuleName;
+
+ private string _ManageRuleTypeId;
+
+ private string _VersionNo;
+
+ private System.Nullable _CompileDate;
+
+ private string _CompileMan;
+
+ private string _AttachUrl;
+
+ private string _Remark;
+
+ private System.Nullable _IsIssue;
+
+ private System.Nullable _IssueDate;
+
+ private System.Nullable _Flag;
+
+ private string _State;
+
+ private string _SeeFile;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnManagerRuleIdChanging(string value);
+ partial void OnManagerRuleIdChanged();
+ partial void OnManageRuleCodeChanging(string value);
+ partial void OnManageRuleCodeChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnManageRuleNameChanging(string value);
+ partial void OnManageRuleNameChanged();
+ partial void OnManageRuleTypeIdChanging(string value);
+ partial void OnManageRuleTypeIdChanged();
+ partial void OnVersionNoChanging(string value);
+ partial void OnVersionNoChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnAttachUrlChanging(string value);
+ partial void OnAttachUrlChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnIsIssueChanging(System.Nullable value);
+ partial void OnIsIssueChanged();
+ partial void OnIssueDateChanging(System.Nullable value);
+ partial void OnIssueDateChanged();
+ partial void OnFlagChanging(System.Nullable value);
+ partial void OnFlagChanged();
+ partial void OnStateChanging(string value);
+ partial void OnStateChanged();
+ partial void OnSeeFileChanging(string value);
+ partial void OnSeeFileChanged();
+ #endregion
+
+ public ActionPlan_SubManagerRule()
+ {
+ this._Base_Project = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagerRuleId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ManagerRuleId
+ {
+ get
+ {
+ return this._ManagerRuleId;
+ }
+ set
+ {
+ if ((this._ManagerRuleId != value))
+ {
+ this.OnManagerRuleIdChanging(value);
+ this.SendPropertyChanging();
+ this._ManagerRuleId = value;
+ this.SendPropertyChanged("ManagerRuleId");
+ this.OnManagerRuleIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageRuleCode", DbType="NVarChar(50)")]
+ public string ManageRuleCode
+ {
+ get
+ {
+ return this._ManageRuleCode;
+ }
+ set
+ {
+ if ((this._ManageRuleCode != value))
+ {
+ this.OnManageRuleCodeChanging(value);
+ this.SendPropertyChanging();
+ this._ManageRuleCode = value;
+ this.SendPropertyChanged("ManageRuleCode");
+ this.OnManageRuleCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ if (this._Base_Project.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageRuleName", DbType="NVarChar(50)")]
+ public string ManageRuleName
+ {
+ get
+ {
+ return this._ManageRuleName;
+ }
+ set
+ {
+ if ((this._ManageRuleName != value))
+ {
+ this.OnManageRuleNameChanging(value);
+ this.SendPropertyChanging();
+ this._ManageRuleName = value;
+ this.SendPropertyChanged("ManageRuleName");
+ this.OnManageRuleNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManageRuleTypeId", DbType="NVarChar(50)")]
+ public string ManageRuleTypeId
+ {
+ get
+ {
+ return this._ManageRuleTypeId;
+ }
+ set
+ {
+ if ((this._ManageRuleTypeId != value))
+ {
+ this.OnManageRuleTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._ManageRuleTypeId = value;
+ this.SendPropertyChanged("ManageRuleTypeId");
+ this.OnManageRuleTypeIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VersionNo", DbType="NVarChar(50)")]
+ public string VersionNo
+ {
+ get
+ {
+ return this._VersionNo;
+ }
+ set
+ {
+ if ((this._VersionNo != value))
+ {
+ this.OnVersionNoChanging(value);
+ this.SendPropertyChanging();
+ this._VersionNo = value;
+ this.SendPropertyChanged("VersionNo");
+ this.OnVersionNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")]
+ public string AttachUrl
+ {
+ get
+ {
+ return this._AttachUrl;
+ }
+ set
+ {
+ if ((this._AttachUrl != value))
+ {
+ this.OnAttachUrlChanging(value);
+ this.SendPropertyChanging();
+ this._AttachUrl = value;
+ this.SendPropertyChanged("AttachUrl");
+ this.OnAttachUrlChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsIssue", DbType="Bit")]
+ public System.Nullable IsIssue
+ {
+ get
+ {
+ return this._IsIssue;
+ }
+ set
+ {
+ if ((this._IsIssue != value))
+ {
+ this.OnIsIssueChanging(value);
+ this.SendPropertyChanging();
+ this._IsIssue = value;
+ this.SendPropertyChanged("IsIssue");
+ this.OnIsIssueChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IssueDate", DbType="DateTime")]
+ public System.Nullable IssueDate
+ {
+ get
+ {
+ return this._IssueDate;
+ }
+ set
+ {
+ if ((this._IssueDate != value))
+ {
+ this.OnIssueDateChanging(value);
+ this.SendPropertyChanging();
+ this._IssueDate = value;
+ this.SendPropertyChanged("IssueDate");
+ this.OnIssueDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Flag", DbType="Bit")]
+ public System.Nullable Flag
+ {
+ get
+ {
+ return this._Flag;
+ }
+ set
+ {
+ if ((this._Flag != value))
+ {
+ this.OnFlagChanging(value);
+ this.SendPropertyChanging();
+ this._Flag = value;
+ this.SendPropertyChanged("Flag");
+ this.OnFlagChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Char(1) NOT NULL", CanBeNull=false)]
+ public string State
+ {
+ get
+ {
+ return this._State;
+ }
+ set
+ {
+ if ((this._State != value))
+ {
+ this.OnStateChanging(value);
+ this.SendPropertyChanging();
+ this._State = value;
+ this.SendPropertyChanged("State");
+ this.OnStateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SeeFile", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string SeeFile
+ {
+ get
+ {
+ return this._SeeFile;
+ }
+ set
+ {
+ if ((this._SeeFile != value))
+ {
+ this.OnSeeFileChanging(value);
+ this.SendPropertyChanging();
+ this._SeeFile = value;
+ this.SendPropertyChanged("SeeFile");
+ this.OnSeeFileChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_SubManagerRule_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
+ public Base_Project Base_Project
+ {
+ get
+ {
+ return this._Base_Project.Entity;
+ }
+ set
+ {
+ Base_Project previousValue = this._Base_Project.Entity;
+ if (((previousValue != value)
+ || (this._Base_Project.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Base_Project.Entity = null;
+ previousValue.ActionPlan_SubManagerRule.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.ActionPlan_SubManagerRule.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_SubManagerRule_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.ActionPlan_SubManagerRule.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.ActionPlan_SubManagerRule.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Administrative_CarManager")]
public partial class Administrative_CarManager : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -16919,6 +17443,8 @@ namespace Model
private EntitySet _DataBase_StartWorkReport;
+ private EntitySet _Doc_DocManage;
+
private EntitySet _JDGL_QuantityList;
private EntitySet _ProcessControl_InspectionManagement;
@@ -16952,6 +17478,7 @@ namespace Model
this._Comprehensive_SiteVisaManagement = new EntitySet(new Action(this.attach_Comprehensive_SiteVisaManagement), new Action(this.detach_Comprehensive_SiteVisaManagement));
this._CQMS_DataBase_InspectionLot = new EntitySet(new Action(this.attach_CQMS_DataBase_InspectionLot), new Action(this.detach_CQMS_DataBase_InspectionLot));
this._DataBase_StartWorkReport = new EntitySet(new Action(this.attach_DataBase_StartWorkReport), new Action(this.detach_DataBase_StartWorkReport));
+ this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage));
this._JDGL_QuantityList = new EntitySet(new Action(this.attach_JDGL_QuantityList), new Action(this.detach_JDGL_QuantityList));
this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement));
this._WBS_Division = new EntitySet(new Action(this.attach_WBS_Division), new Action(this.detach_WBS_Division));
@@ -17181,6 +17708,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_CNProfessional", Storage="_Doc_DocManage", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage;
+ }
+ set
+ {
+ this._Doc_DocManage.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JDGL_QuantityList_Base_CNProfessional", Storage="_JDGL_QuantityList", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", DeleteRule="NO ACTION")]
public EntitySet JDGL_QuantityList
{
@@ -17372,6 +17912,18 @@ namespace Model
entity.Base_CNProfessional = null;
}
+ private void attach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_CNProfessional = this;
+ }
+
+ private void detach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_CNProfessional = null;
+ }
+
private void attach_JDGL_QuantityList(JDGL_QuantityList entity)
{
this.SendPropertyChanging();
@@ -19641,6 +20193,168 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_DocType")]
+ public partial class Base_DocType : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _DocTypeId;
+
+ private string _DocTypeCode;
+
+ private string _DocTypeName;
+
+ private string _CodeRule;
+
+ private EntitySet _Doc_DocManage;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDocTypeIdChanging(string value);
+ partial void OnDocTypeIdChanged();
+ partial void OnDocTypeCodeChanging(string value);
+ partial void OnDocTypeCodeChanged();
+ partial void OnDocTypeNameChanging(string value);
+ partial void OnDocTypeNameChanged();
+ partial void OnCodeRuleChanging(string value);
+ partial void OnCodeRuleChanged();
+ #endregion
+
+ public Base_DocType()
+ {
+ this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage));
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocTypeId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string DocTypeId
+ {
+ get
+ {
+ return this._DocTypeId;
+ }
+ set
+ {
+ if ((this._DocTypeId != value))
+ {
+ this.OnDocTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._DocTypeId = value;
+ this.SendPropertyChanged("DocTypeId");
+ this.OnDocTypeIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocTypeCode", DbType="NVarChar(50)")]
+ public string DocTypeCode
+ {
+ get
+ {
+ return this._DocTypeCode;
+ }
+ set
+ {
+ if ((this._DocTypeCode != value))
+ {
+ this.OnDocTypeCodeChanging(value);
+ this.SendPropertyChanging();
+ this._DocTypeCode = value;
+ this.SendPropertyChanged("DocTypeCode");
+ this.OnDocTypeCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocTypeName", DbType="NVarChar(50)")]
+ public string DocTypeName
+ {
+ get
+ {
+ return this._DocTypeName;
+ }
+ set
+ {
+ if ((this._DocTypeName != value))
+ {
+ this.OnDocTypeNameChanging(value);
+ this.SendPropertyChanging();
+ this._DocTypeName = value;
+ this.SendPropertyChanged("DocTypeName");
+ this.OnDocTypeNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CodeRule", DbType="NVarChar(200)")]
+ public string CodeRule
+ {
+ get
+ {
+ return this._CodeRule;
+ }
+ set
+ {
+ if ((this._CodeRule != value))
+ {
+ this.OnCodeRuleChanging(value);
+ this.SendPropertyChanging();
+ this._CodeRule = value;
+ this.SendPropertyChanged("CodeRule");
+ this.OnCodeRuleChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Doc_DocManage", ThisKey="DocTypeId", OtherKey="DocTypeId", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage;
+ }
+ set
+ {
+ this._Doc_DocManage.Assign(value);
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ private void attach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_DocType = this;
+ }
+
+ private void detach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_DocType = null;
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_EmergencyType")]
public partial class Base_EmergencyType : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -23942,6 +24656,8 @@ namespace Model
private EntitySet _ActionPlan_ProjectManagerRule;
+ private EntitySet _ActionPlan_SubManagerRule;
+
private EntitySet _Administrative_CarManager;
private EntitySet _Administrative_DriverManager;
@@ -24066,6 +24782,8 @@ namespace Model
private EntitySet _DataBase_StartWorkReport;
+ private EntitySet _Doc_DocManage;
+
private EntitySet _Driver_BeforeTestRun;
private EntitySet _Driver_DriverProgress;
@@ -24580,6 +25298,7 @@ namespace Model
this._ActionPlan_CompanyManagerRule = new EntitySet(new Action(this.attach_ActionPlan_CompanyManagerRule), new Action(this.detach_ActionPlan_CompanyManagerRule));
this._ActionPlan_ManagerRule = new EntitySet(new Action(this.attach_ActionPlan_ManagerRule), new Action(this.detach_ActionPlan_ManagerRule));
this._ActionPlan_ProjectManagerRule = new EntitySet(new Action(this.attach_ActionPlan_ProjectManagerRule), new Action(this.detach_ActionPlan_ProjectManagerRule));
+ this._ActionPlan_SubManagerRule = new EntitySet(new Action(this.attach_ActionPlan_SubManagerRule), new Action(this.detach_ActionPlan_SubManagerRule));
this._Administrative_CarManager = new EntitySet(new Action(this.attach_Administrative_CarManager), new Action(this.detach_Administrative_CarManager));
this._Administrative_DriverManager = new EntitySet(new Action(this.attach_Administrative_DriverManager), new Action(this.detach_Administrative_DriverManager));
this._Base_Components = new EntitySet(new Action(this.attach_Base_Components), new Action(this.detach_Base_Components));
@@ -24642,6 +25361,7 @@ namespace Model
this._DataBase_DataTypeProject = new EntitySet(new Action(this.attach_DataBase_DataTypeProject), new Action(this.detach_DataBase_DataTypeProject));
this._DataBase_File = new EntitySet(new Action(this.attach_DataBase_File), new Action(this.detach_DataBase_File));
this._DataBase_StartWorkReport = new EntitySet(new Action(this.attach_DataBase_StartWorkReport), new Action(this.detach_DataBase_StartWorkReport));
+ this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage));
this._Driver_BeforeTestRun = new EntitySet(new Action(this.attach_Driver_BeforeTestRun), new Action(this.detach_Driver_BeforeTestRun));
this._Driver_DriverProgress = new EntitySet(new Action(this.attach_Driver_DriverProgress), new Action(this.detach_Driver_DriverProgress));
this._Driver_DriverReport = new EntitySet(new Action(this.attach_Driver_DriverReport), new Action(this.detach_Driver_DriverReport));
@@ -25715,6 +26435,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_SubManagerRule_Base_Project", Storage="_ActionPlan_SubManagerRule", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet ActionPlan_SubManagerRule
+ {
+ get
+ {
+ return this._ActionPlan_SubManagerRule;
+ }
+ set
+ {
+ this._ActionPlan_SubManagerRule.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Administrative_CarManager_Base_Project", Storage="_Administrative_CarManager", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet Administrative_CarManager
{
@@ -26563,6 +27296,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Project", Storage="_Doc_DocManage", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage;
+ }
+ set
+ {
+ this._Doc_DocManage.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_BeforeTestRun_Base_Project", Storage="_Driver_BeforeTestRun", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet Driver_BeforeTestRun
{
@@ -29459,6 +30205,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_ActionPlan_SubManagerRule(ActionPlan_SubManagerRule entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_ActionPlan_SubManagerRule(ActionPlan_SubManagerRule entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_Administrative_CarManager(Administrative_CarManager entity)
{
this.SendPropertyChanging();
@@ -30179,6 +30937,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_Driver_BeforeTestRun(Driver_BeforeTestRun entity)
{
this.SendPropertyChanging();
@@ -36158,6 +36928,8 @@ namespace Model
private EntitySet _CQMS_Foreign_ControlPointCheck;
+ private EntitySet _Doc_DocManage;
+
private EntitySet _Driver_BeforeTestRun;
private EntitySet _Driver_DriverScheme;
@@ -36515,6 +37287,7 @@ namespace Model
this._CostGoods_PayRegistration = new EntitySet(new Action(this.attach_CostGoods_PayRegistration), new Action(this.detach_CostGoods_PayRegistration));
this._CostGoods_SubPayRegistration = new EntitySet(new Action(this.attach_CostGoods_SubPayRegistration), new Action(this.detach_CostGoods_SubPayRegistration));
this._CQMS_Foreign_ControlPointCheck = new EntitySet(new Action(this.attach_CQMS_Foreign_ControlPointCheck), new Action(this.detach_CQMS_Foreign_ControlPointCheck));
+ this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage));
this._Driver_BeforeTestRun = new EntitySet(new Action(this.attach_Driver_BeforeTestRun), new Action(this.detach_Driver_BeforeTestRun));
this._Driver_DriverScheme = new EntitySet(new Action(this.attach_Driver_DriverScheme), new Action(this.detach_Driver_DriverScheme));
this._Driver_DriverScheme_Base_Unit1 = new EntitySet(new Action(this.attach_Driver_DriverScheme_Base_Unit1), new Action(this.detach_Driver_DriverScheme_Base_Unit1));
@@ -37780,6 +38553,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Unit", Storage="_Doc_DocManage", ThisKey="UnitId", OtherKey="SendUnitId", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage;
+ }
+ set
+ {
+ this._Doc_DocManage.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_BeforeTestRun_Base_Unit", Storage="_Driver_BeforeTestRun", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
public EntitySet Driver_BeforeTestRun
{
@@ -40013,6 +40799,18 @@ namespace Model
entity.Base_Unit = null;
}
+ private void attach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Unit = this;
+ }
+
+ private void detach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Unit = null;
+ }
+
private void attach_Driver_BeforeTestRun(Driver_BeforeTestRun entity)
{
this.SendPropertyChanging();
@@ -112879,6 +113677,973 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Doc_DocManage")]
+ public partial class Doc_DocManage : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _DocId;
+
+ private string _DocCode;
+
+ private string _DocName;
+
+ private string _DocTypeId;
+
+ private string _CNProfessionalId;
+
+ private string _ProjectId;
+
+ private string _DocContent;
+
+ private string _SendUnitId;
+
+ private string _ReceivUnitIds;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _State;
+
+ private string _AcceptMan;
+
+ private string _DepartId;
+
+ private System.Nullable _FinishTime;
+
+ private string _ProjectSubjectId;
+
+ private string _CopyMan;
+
+ private EntityRef _Base_CNProfessional;
+
+ private EntityRef _Base_DocType;
+
+ private EntityRef _Base_Project;
+
+ private EntityRef _Base_Unit;
+
+ private EntityRef _Sys_User;
+
+ private EntitySet _Doc_DocManageApprove;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDocIdChanging(string value);
+ partial void OnDocIdChanged();
+ partial void OnDocCodeChanging(string value);
+ partial void OnDocCodeChanged();
+ partial void OnDocNameChanging(string value);
+ partial void OnDocNameChanged();
+ partial void OnDocTypeIdChanging(string value);
+ partial void OnDocTypeIdChanged();
+ partial void OnCNProfessionalIdChanging(string value);
+ partial void OnCNProfessionalIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnDocContentChanging(string value);
+ partial void OnDocContentChanged();
+ partial void OnSendUnitIdChanging(string value);
+ partial void OnSendUnitIdChanged();
+ partial void OnReceivUnitIdsChanging(string value);
+ partial void OnReceivUnitIdsChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnStateChanging(string value);
+ partial void OnStateChanged();
+ partial void OnAcceptManChanging(string value);
+ partial void OnAcceptManChanged();
+ partial void OnDepartIdChanging(string value);
+ partial void OnDepartIdChanged();
+ partial void OnFinishTimeChanging(System.Nullable value);
+ partial void OnFinishTimeChanged();
+ partial void OnProjectSubjectIdChanging(string value);
+ partial void OnProjectSubjectIdChanged();
+ partial void OnCopyManChanging(string value);
+ partial void OnCopyManChanged();
+ #endregion
+
+ public Doc_DocManage()
+ {
+ this._Base_CNProfessional = default(EntityRef);
+ this._Base_DocType = default(EntityRef);
+ this._Base_Project = default(EntityRef);
+ this._Base_Unit = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ this._Doc_DocManageApprove = new EntitySet(new Action(this.attach_Doc_DocManageApprove), new Action(this.detach_Doc_DocManageApprove));
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string DocId
+ {
+ get
+ {
+ return this._DocId;
+ }
+ set
+ {
+ if ((this._DocId != value))
+ {
+ this.OnDocIdChanging(value);
+ this.SendPropertyChanging();
+ this._DocId = value;
+ this.SendPropertyChanged("DocId");
+ this.OnDocIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocCode", DbType="NVarChar(50)")]
+ public string DocCode
+ {
+ get
+ {
+ return this._DocCode;
+ }
+ set
+ {
+ if ((this._DocCode != value))
+ {
+ this.OnDocCodeChanging(value);
+ this.SendPropertyChanging();
+ this._DocCode = value;
+ this.SendPropertyChanged("DocCode");
+ this.OnDocCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocName", DbType="NVarChar(100)")]
+ public string DocName
+ {
+ get
+ {
+ return this._DocName;
+ }
+ set
+ {
+ if ((this._DocName != value))
+ {
+ this.OnDocNameChanging(value);
+ this.SendPropertyChanging();
+ this._DocName = value;
+ this.SendPropertyChanged("DocName");
+ this.OnDocNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocTypeId", DbType="NVarChar(50)")]
+ public string DocTypeId
+ {
+ get
+ {
+ return this._DocTypeId;
+ }
+ set
+ {
+ if ((this._DocTypeId != value))
+ {
+ if (this._Base_DocType.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnDocTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._DocTypeId = value;
+ this.SendPropertyChanged("DocTypeId");
+ this.OnDocTypeIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
+ public string CNProfessionalId
+ {
+ get
+ {
+ return this._CNProfessionalId;
+ }
+ set
+ {
+ if ((this._CNProfessionalId != value))
+ {
+ if (this._Base_CNProfessional.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCNProfessionalIdChanging(value);
+ this.SendPropertyChanging();
+ this._CNProfessionalId = value;
+ this.SendPropertyChanged("CNProfessionalId");
+ this.OnCNProfessionalIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ if (this._Base_Project.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocContent", DbType="NVarChar(2000)")]
+ public string DocContent
+ {
+ get
+ {
+ return this._DocContent;
+ }
+ set
+ {
+ if ((this._DocContent != value))
+ {
+ this.OnDocContentChanging(value);
+ this.SendPropertyChanging();
+ this._DocContent = value;
+ this.SendPropertyChanged("DocContent");
+ this.OnDocContentChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SendUnitId", DbType="NVarChar(50)")]
+ public string SendUnitId
+ {
+ get
+ {
+ return this._SendUnitId;
+ }
+ set
+ {
+ if ((this._SendUnitId != value))
+ {
+ if (this._Base_Unit.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnSendUnitIdChanging(value);
+ this.SendPropertyChanging();
+ this._SendUnitId = value;
+ this.SendPropertyChanged("SendUnitId");
+ this.OnSendUnitIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceivUnitIds", DbType="NVarChar(500)")]
+ public string ReceivUnitIds
+ {
+ get
+ {
+ return this._ReceivUnitIds;
+ }
+ set
+ {
+ if ((this._ReceivUnitIds != value))
+ {
+ this.OnReceivUnitIdsChanging(value);
+ this.SendPropertyChanging();
+ this._ReceivUnitIds = value;
+ this.SendPropertyChanged("ReceivUnitIds");
+ this.OnReceivUnitIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Char(1)")]
+ public string State
+ {
+ get
+ {
+ return this._State;
+ }
+ set
+ {
+ if ((this._State != value))
+ {
+ this.OnStateChanging(value);
+ this.SendPropertyChanging();
+ this._State = value;
+ this.SendPropertyChanged("State");
+ this.OnStateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptMan", DbType="NVarChar(1000)")]
+ public string AcceptMan
+ {
+ get
+ {
+ return this._AcceptMan;
+ }
+ set
+ {
+ if ((this._AcceptMan != value))
+ {
+ this.OnAcceptManChanging(value);
+ this.SendPropertyChanging();
+ this._AcceptMan = value;
+ this.SendPropertyChanged("AcceptMan");
+ this.OnAcceptManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartId", DbType="NVarChar(50)")]
+ public string DepartId
+ {
+ get
+ {
+ return this._DepartId;
+ }
+ set
+ {
+ if ((this._DepartId != value))
+ {
+ this.OnDepartIdChanging(value);
+ this.SendPropertyChanging();
+ this._DepartId = value;
+ this.SendPropertyChanged("DepartId");
+ this.OnDepartIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinishTime", DbType="DateTime")]
+ public System.Nullable FinishTime
+ {
+ get
+ {
+ return this._FinishTime;
+ }
+ set
+ {
+ if ((this._FinishTime != value))
+ {
+ this.OnFinishTimeChanging(value);
+ this.SendPropertyChanging();
+ this._FinishTime = value;
+ this.SendPropertyChanged("FinishTime");
+ this.OnFinishTimeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSubjectId", DbType="NVarChar(50)")]
+ public string ProjectSubjectId
+ {
+ get
+ {
+ return this._ProjectSubjectId;
+ }
+ set
+ {
+ if ((this._ProjectSubjectId != value))
+ {
+ this.OnProjectSubjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectSubjectId = value;
+ this.SendPropertyChanged("ProjectSubjectId");
+ this.OnProjectSubjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CopyMan", DbType="NVarChar(1000)")]
+ public string CopyMan
+ {
+ get
+ {
+ return this._CopyMan;
+ }
+ set
+ {
+ if ((this._CopyMan != value))
+ {
+ this.OnCopyManChanging(value);
+ this.SendPropertyChanging();
+ this._CopyMan = value;
+ this.SendPropertyChanged("CopyMan");
+ this.OnCopyManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_CNProfessional", Storage="_Base_CNProfessional", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", IsForeignKey=true)]
+ public Base_CNProfessional Base_CNProfessional
+ {
+ get
+ {
+ return this._Base_CNProfessional.Entity;
+ }
+ set
+ {
+ Base_CNProfessional previousValue = this._Base_CNProfessional.Entity;
+ if (((previousValue != value)
+ || (this._Base_CNProfessional.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Base_CNProfessional.Entity = null;
+ previousValue.Doc_DocManage.Remove(this);
+ }
+ this._Base_CNProfessional.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManage.Add(this);
+ this._CNProfessionalId = value.CNProfessionalId;
+ }
+ else
+ {
+ this._CNProfessionalId = default(string);
+ }
+ this.SendPropertyChanged("Base_CNProfessional");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Base_DocType", ThisKey="DocTypeId", OtherKey="DocTypeId", IsForeignKey=true)]
+ public Base_DocType Base_DocType
+ {
+ get
+ {
+ return this._Base_DocType.Entity;
+ }
+ set
+ {
+ Base_DocType previousValue = this._Base_DocType.Entity;
+ if (((previousValue != value)
+ || (this._Base_DocType.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Base_DocType.Entity = null;
+ previousValue.Doc_DocManage.Remove(this);
+ }
+ this._Base_DocType.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManage.Add(this);
+ this._DocTypeId = value.DocTypeId;
+ }
+ else
+ {
+ this._DocTypeId = default(string);
+ }
+ this.SendPropertyChanged("Base_DocType");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
+ public Base_Project Base_Project
+ {
+ get
+ {
+ return this._Base_Project.Entity;
+ }
+ set
+ {
+ Base_Project previousValue = this._Base_Project.Entity;
+ if (((previousValue != value)
+ || (this._Base_Project.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Base_Project.Entity = null;
+ previousValue.Doc_DocManage.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManage.Add(this);
+ this._ProjectId = value.ProjectId;
+ }
+ else
+ {
+ this._ProjectId = default(string);
+ }
+ this.SendPropertyChanged("Base_Project");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Unit", Storage="_Base_Unit", ThisKey="SendUnitId", OtherKey="UnitId", IsForeignKey=true)]
+ public Base_Unit Base_Unit
+ {
+ get
+ {
+ return this._Base_Unit.Entity;
+ }
+ set
+ {
+ Base_Unit previousValue = this._Base_Unit.Entity;
+ if (((previousValue != value)
+ || (this._Base_Unit.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Base_Unit.Entity = null;
+ previousValue.Doc_DocManage.Remove(this);
+ }
+ this._Base_Unit.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManage.Add(this);
+ this._SendUnitId = value.UnitId;
+ }
+ else
+ {
+ this._SendUnitId = default(string);
+ }
+ this.SendPropertyChanged("Base_Unit");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.Doc_DocManage.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManage.Add(this);
+ this._CompileMan = value.UserId;
+ }
+ else
+ {
+ this._CompileMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Doc_DocManage", Storage="_Doc_DocManageApprove", ThisKey="DocId", OtherKey="DocId", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManageApprove
+ {
+ get
+ {
+ return this._Doc_DocManageApprove;
+ }
+ set
+ {
+ this._Doc_DocManageApprove.Assign(value);
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ private void attach_Doc_DocManageApprove(Doc_DocManageApprove entity)
+ {
+ this.SendPropertyChanging();
+ entity.Doc_DocManage = this;
+ }
+
+ private void detach_Doc_DocManageApprove(Doc_DocManageApprove entity)
+ {
+ this.SendPropertyChanging();
+ entity.Doc_DocManage = null;
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Doc_DocManageApprove")]
+ public partial class Doc_DocManageApprove : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _DocManageApproveId;
+
+ private string _DocId;
+
+ private string _ApproveMan;
+
+ private System.Nullable _ApproveDate;
+
+ private System.Nullable _IsAgree;
+
+ private string _ApproveIdea;
+
+ private string _Type;
+
+ private EntityRef _Doc_DocManage;
+
+ private EntityRef _Sys_User;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDocManageApproveIdChanging(string value);
+ partial void OnDocManageApproveIdChanged();
+ partial void OnDocIdChanging(string value);
+ partial void OnDocIdChanged();
+ partial void OnApproveManChanging(string value);
+ partial void OnApproveManChanged();
+ partial void OnApproveDateChanging(System.Nullable value);
+ partial void OnApproveDateChanged();
+ partial void OnIsAgreeChanging(System.Nullable value);
+ partial void OnIsAgreeChanged();
+ partial void OnApproveIdeaChanging(string value);
+ partial void OnApproveIdeaChanged();
+ partial void OnTypeChanging(string value);
+ partial void OnTypeChanged();
+ #endregion
+
+ public Doc_DocManageApprove()
+ {
+ this._Doc_DocManage = default(EntityRef);
+ this._Sys_User = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocManageApproveId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string DocManageApproveId
+ {
+ get
+ {
+ return this._DocManageApproveId;
+ }
+ set
+ {
+ if ((this._DocManageApproveId != value))
+ {
+ this.OnDocManageApproveIdChanging(value);
+ this.SendPropertyChanging();
+ this._DocManageApproveId = value;
+ this.SendPropertyChanged("DocManageApproveId");
+ this.OnDocManageApproveIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocId", DbType="NVarChar(50)")]
+ public string DocId
+ {
+ get
+ {
+ return this._DocId;
+ }
+ set
+ {
+ if ((this._DocId != value))
+ {
+ if (this._Doc_DocManage.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnDocIdChanging(value);
+ this.SendPropertyChanging();
+ this._DocId = value;
+ this.SendPropertyChanged("DocId");
+ this.OnDocIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")]
+ public string ApproveMan
+ {
+ get
+ {
+ return this._ApproveMan;
+ }
+ set
+ {
+ if ((this._ApproveMan != value))
+ {
+ if (this._Sys_User.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnApproveManChanging(value);
+ this.SendPropertyChanging();
+ this._ApproveMan = value;
+ this.SendPropertyChanged("ApproveMan");
+ this.OnApproveManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveDate", DbType="DateTime")]
+ public System.Nullable ApproveDate
+ {
+ get
+ {
+ return this._ApproveDate;
+ }
+ set
+ {
+ if ((this._ApproveDate != value))
+ {
+ this.OnApproveDateChanging(value);
+ this.SendPropertyChanging();
+ this._ApproveDate = value;
+ this.SendPropertyChanged("ApproveDate");
+ this.OnApproveDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")]
+ public System.Nullable IsAgree
+ {
+ get
+ {
+ return this._IsAgree;
+ }
+ set
+ {
+ if ((this._IsAgree != value))
+ {
+ this.OnIsAgreeChanging(value);
+ this.SendPropertyChanging();
+ this._IsAgree = value;
+ this.SendPropertyChanged("IsAgree");
+ this.OnIsAgreeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(500)")]
+ public string ApproveIdea
+ {
+ get
+ {
+ return this._ApproveIdea;
+ }
+ set
+ {
+ if ((this._ApproveIdea != value))
+ {
+ this.OnApproveIdeaChanging(value);
+ this.SendPropertyChanging();
+ this._ApproveIdea = value;
+ this.SendPropertyChanged("ApproveIdea");
+ this.OnApproveIdeaChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="VarChar(50)")]
+ public string Type
+ {
+ get
+ {
+ return this._Type;
+ }
+ set
+ {
+ if ((this._Type != value))
+ {
+ this.OnTypeChanging(value);
+ this.SendPropertyChanging();
+ this._Type = value;
+ this.SendPropertyChanged("Type");
+ this.OnTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Doc_DocManage", Storage="_Doc_DocManage", ThisKey="DocId", OtherKey="DocId", IsForeignKey=true)]
+ public Doc_DocManage Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage.Entity;
+ }
+ set
+ {
+ Doc_DocManage previousValue = this._Doc_DocManage.Entity;
+ if (((previousValue != value)
+ || (this._Doc_DocManage.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Doc_DocManage.Entity = null;
+ previousValue.Doc_DocManageApprove.Remove(this);
+ }
+ this._Doc_DocManage.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManageApprove.Add(this);
+ this._DocId = value.DocId;
+ }
+ else
+ {
+ this._DocId = default(string);
+ }
+ this.SendPropertyChanged("Doc_DocManage");
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Sys_User", ThisKey="ApproveMan", OtherKey="UserId", IsForeignKey=true)]
+ public Sys_User Sys_User
+ {
+ get
+ {
+ return this._Sys_User.Entity;
+ }
+ set
+ {
+ Sys_User previousValue = this._Sys_User.Entity;
+ if (((previousValue != value)
+ || (this._Sys_User.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._Sys_User.Entity = null;
+ previousValue.Doc_DocManageApprove.Remove(this);
+ }
+ this._Sys_User.Entity = value;
+ if ((value != null))
+ {
+ value.Doc_DocManageApprove.Add(this);
+ this._ApproveMan = value.UserId;
+ }
+ else
+ {
+ this._ApproveMan = default(string);
+ }
+ this.SendPropertyChanged("Sys_User");
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Driver_BeforeTestRun")]
public partial class Driver_BeforeTestRun : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -313227,6 +314992,8 @@ namespace Model
private EntitySet _ActionPlan_ProjectManagerRule;
+ private EntitySet _ActionPlan_SubManagerRule;
+
private EntitySet _Administrative_CarManager;
private EntitySet _Administrative_DriverManager;
@@ -313359,6 +315126,10 @@ namespace Model
private EntitySet _DataBase_StartWorkReport;
+ private EntitySet _Doc_DocManage;
+
+ private EntitySet _Doc_DocManageApprove;
+
private EntitySet _Driver_DriverProgress;
private EntitySet _Driver_DriverReport;
@@ -313984,6 +315755,7 @@ namespace Model
this._ActionPlan_CompanyManagerRule = new EntitySet(new Action(this.attach_ActionPlan_CompanyManagerRule), new Action(this.detach_ActionPlan_CompanyManagerRule));
this._ActionPlan_ManagerRule = new EntitySet(new Action(this.attach_ActionPlan_ManagerRule), new Action(this.detach_ActionPlan_ManagerRule));
this._ActionPlan_ProjectManagerRule = new EntitySet(new Action(this.attach_ActionPlan_ProjectManagerRule), new Action(this.detach_ActionPlan_ProjectManagerRule));
+ this._ActionPlan_SubManagerRule = new EntitySet(new Action(this.attach_ActionPlan_SubManagerRule), new Action(this.detach_ActionPlan_SubManagerRule));
this._Administrative_CarManager = new EntitySet(new Action(this.attach_Administrative_CarManager), new Action(this.detach_Administrative_CarManager));
this._Administrative_DriverManager = new EntitySet(new Action(this.attach_Administrative_DriverManager), new Action(this.detach_Administrative_DriverManager));
this._Base_ProjectSate = new EntitySet(new Action(this.attach_Base_ProjectSate), new Action(this.detach_Base_ProjectSate));
@@ -314050,6 +315822,8 @@ namespace Model
this._CQMS_Foreign_ITPListProject = new EntitySet(new Action(this.attach_CQMS_Foreign_ITPListProject), new Action(this.detach_CQMS_Foreign_ITPListProject));
this._DataBase_File = new EntitySet(new Action(this.attach_DataBase_File), new Action(this.detach_DataBase_File));
this._DataBase_StartWorkReport = new EntitySet(new Action(this.attach_DataBase_StartWorkReport), new Action(this.detach_DataBase_StartWorkReport));
+ this._Doc_DocManage = new EntitySet(new Action(this.attach_Doc_DocManage), new Action(this.detach_Doc_DocManage));
+ this._Doc_DocManageApprove = new EntitySet(new Action(this.attach_Doc_DocManageApprove), new Action(this.detach_Doc_DocManageApprove));
this._Driver_DriverProgress = new EntitySet(new Action(this.attach_Driver_DriverProgress), new Action(this.detach_Driver_DriverProgress));
this._Driver_DriverReport = new EntitySet(new Action(this.attach_Driver_DriverReport), new Action(this.detach_Driver_DriverReport));
this._Driver_DriverScheme = new EntitySet(new Action(this.attach_Driver_DriverScheme), new Action(this.detach_Driver_DriverScheme));
@@ -315534,6 +317308,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_SubManagerRule_Sys_User", Storage="_ActionPlan_SubManagerRule", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet ActionPlan_SubManagerRule
+ {
+ get
+ {
+ return this._ActionPlan_SubManagerRule;
+ }
+ set
+ {
+ this._ActionPlan_SubManagerRule.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Administrative_CarManager_Sys_User", Storage="_Administrative_CarManager", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet Administrative_CarManager
{
@@ -316392,6 +318179,32 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Sys_User", Storage="_Doc_DocManage", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManage
+ {
+ get
+ {
+ return this._Doc_DocManage;
+ }
+ set
+ {
+ this._Doc_DocManage.Assign(value);
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Doc_DocManageApprove", ThisKey="UserId", OtherKey="ApproveMan", DeleteRule="NO ACTION")]
+ public EntitySet Doc_DocManageApprove
+ {
+ get
+ {
+ return this._Doc_DocManageApprove;
+ }
+ set
+ {
+ this._Doc_DocManageApprove.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_DriverProgress_Sys_User", Storage="_Driver_DriverProgress", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet Driver_DriverProgress
{
@@ -319926,6 +321739,18 @@ namespace Model
entity.Sys_User = null;
}
+ private void attach_ActionPlan_SubManagerRule(ActionPlan_SubManagerRule entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_ActionPlan_SubManagerRule(ActionPlan_SubManagerRule entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
private void attach_Administrative_CarManager(Administrative_CarManager entity)
{
this.SendPropertyChanging();
@@ -320718,6 +322543,30 @@ namespace Model
entity.Sys_User = null;
}
+ private void attach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_Doc_DocManage(Doc_DocManage entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
+ private void attach_Doc_DocManageApprove(Doc_DocManageApprove entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = this;
+ }
+
+ private void detach_Doc_DocManageApprove(Doc_DocManageApprove entity)
+ {
+ this.SendPropertyChanging();
+ entity.Sys_User = null;
+ }
+
private void attach_Driver_DriverProgress(Driver_DriverProgress entity)
{
this.SendPropertyChanging();