diff --git a/DataBase/版本日志/SGGLDB_V2021-12-07-001.sql b/DataBase/版本日志/SGGLDB_V2021-12-07-001.sql
new file mode 100644
index 00000000..6330df7a
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2021-12-07-001.sql
@@ -0,0 +1,271 @@
+--ѵ
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','ѵ','',95,'0','Menu_HSSE',0,0,1)
+GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('FCA7A020-9F1B-4E1B-B457-001E05A19774','Ŀλ','BoSheng/BoUnit.aspx',10,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('4E0030F6-EF5E-40A6-939F-C29BC4D7CEE1','ԱϢ','BoSheng/BoPerson.aspx',20,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('9DF3DA33-E80D-4BF5-882C-842E400F7CAF','ѵ¼','BoSheng/BoTrain.aspx',30,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('17666A2C-EE47-42DE-AB8E-E23088BB156D','ѵԱ','BoSheng/BoTrainPerson.aspx',40,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('909BBC10-68D4-4C97-9FC3-9C1168D5FBC5','ѵԾ','BoSheng/BoExam.aspx',50,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('C5DF2DE4-EB56-45F9-9881-6CD0B7A8E72F','Աѵ¼','BoSheng/BoPersonTrainRecord.aspx',60,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+
+--- 1 Ŀλ
+CREATE TABLE [dbo].[Bo_Sheng_Unit](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ParentID] [nvarchar](50) NULL,
+ [DepartCode] [nvarchar](50) NULL,
+ [ParentCode] [nvarchar](50) NULL,
+ [DepartName] [nvarchar](50) NULL,
+ [DepartType] [nvarchar](50) NULL,
+ [DepartShortName] [nvarchar](50) NULL,
+ [DepartOrder] [nvarchar](50) NULL,
+ [State] [nvarchar](50) NULL,
+ [DepartSir] [nvarchar](50) NULL,
+ [IsEpiboly] [nvarchar](50) NULL,
+ [Phone] [nvarchar](50) NULL,
+ [Charge] [nvarchar](50) NULL,
+ [Remark] [nvarchar](50) NULL,
+ [OwnerDeptID] [nvarchar](50) NULL,
+ [CreateDate] [datetime] NULL,
+ [CreateUser] [nvarchar](50) NULL,
+ [OperDate] [datetime] NULL,
+ [OperUser] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Bo_Sheng_Unit] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+--- 2 ԱϢ
+CREATE TABLE [dbo].[Bo_Sheng_Person](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [CreateDate] [datetime] NULL,
+ [CreateUser] [nvarchar](50) NULL,
+ [OperDate] [datetime] NULL,
+ [OperUser] [nvarchar](50) NULL,
+ [DeleteUser] [nvarchar](50) NULL,
+ [DeleteDate] [datetime] NULL,
+ [DeleteTag] [nvarchar](50) NULL,
+ [Name] [nvarchar](100) NULL,
+ [Sex] [nvarchar](2) NULL,
+ [BirthDay] [datetime] NULL,
+ [Address] [nvarchar](200) NULL,
+ [Nation] [nvarchar](50) NULL,
+ [IdentifyID] [nvarchar](50) NULL,
+ [Kind] [nvarchar](50) NULL,
+ [Photo] [nvarchar](2000) NULL,
+ [Police] [nvarchar](50) NULL,
+ [ValidPeriodStart] [nvarchar](50) NULL,
+ [ValidPeriodEnd] [nvarchar](50) NULL,
+ [Education] [nvarchar](50) NULL,
+ [Native] [nvarchar](500) NULL,
+ [Telephone] [nvarchar](50) NULL,
+ [MaritalStatus] [nvarchar](50) NULL,
+ [BloodGroup] [nvarchar](50) NULL,
+ [RegisteredType] [nvarchar](50) NULL,
+ [Age] [int] NULL,
+ [JobNumber] [nvarchar](50) NULL,
+ [CardContent] [nvarchar](50) NULL,
+ [ContactTel] [nvarchar](50) NULL,
+ [SecondContacts] [nvarchar](50) NULL,
+ [SecondContactsTel] [nvarchar](50) NULL,
+ [NewAddress] [nvarchar](50) NULL,
+ [HealthCondition] [nvarchar](50) NULL,
+ [HealthFile] [nvarchar](500) NULL,
+ [BuildArea] [nvarchar](50) NULL,
+ [TraPrincipal] [nvarchar](50) NULL,
+ [RegisterDate] [datetime] NULL,
+ [CategoryType] [nvarchar](50) NULL,
+ [Station] [nvarchar](50) NULL,
+ [Category] [nvarchar](50) NULL,
+ [CategoryLevel] [nvarchar](50) NULL,
+ [EntranceDate] [datetime] NULL,
+ [IsOut] [nvarchar](50) NULL,
+ [LeaveDate] [datetime] NULL,
+ [IsBlackList] [nvarchar](50) NULL,
+ [AgreementId] [nvarchar](100) NULL,
+ [HasInsurance] [nvarchar](50) NULL,
+ [DeviceNumber] [nvarchar](50) NULL,
+ [IsActive] [nvarchar](50) NULL,
+ [DepartId] [nvarchar](50) NULL,
+ [DepartName] [nvarchar](100) NULL,
+ [OwnerDepartId] [nvarchar](50) NULL,
+ [UploadTime] [datetime] NULL,
+ CONSTRAINT [PK_Bo_Sheng_Person] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+--- 3 ѵ¼
+CREATE TABLE [dbo].[Bo_Sheng_Train](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [DeleteUser] [nvarchar](50) NULL,
+ [DeleteDate] [datetime] NULL,
+ [DeleteTag] [nvarchar](50) NULL,
+ [RecordName] [nvarchar](500) NULL,
+ [TrainType] [nvarchar](50) NULL,
+ [PaperMode] [nvarchar](50) NULL,
+ [TrainMode] [nvarchar](50) NULL,
+ [TrainPrincipal] [nvarchar](50) NULL,
+ [TrainStartDate] [datetime] NULL,
+ [TrainEndDate] [datetime] NULL,
+ [TrainContent] [nvarchar](max) NULL,
+ [TrainDescript] [nvarchar](max) NULL,
+ [TrainPeriod] [nvarchar](50) NULL,
+ [PersonCount] [int] NULL,
+ [PassedCount] [int] NULL,
+ [CoverImg] [nvarchar](2000) NULL,
+ [DemandID] [nvarchar](50) NULL,
+ [CourseCount] [int] NULL,
+ [CourseDuration] [nvarchar](50) NULL,
+ [Source] [nvarchar](50) NULL,
+ [Description] [nvarchar](500) NULL,
+ [DeviceNo] [nvarchar](50) NULL,
+ [OwnerDepartId] [nvarchar](50) NULL,
+ [UploadTime] [datetime] NULL,
+ [OwnerDeptName] [nvarchar](100) NULL,
+ [TrainDepart] [nvarchar](max) NULL,
+ [CreateDate] [datetime] NULL,
+ [CreateUser] [nvarchar](50) NULL,
+ [OperDate] [datetime] NULL,
+ [OperUser] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Bo_Sheng_Train] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+--- 4 ѵԱ
+CREATE TABLE [dbo].[Bo_Sheng_TrainPerson](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [DeleteUser] [nvarchar](50) NULL,
+ [DeleteDate] [datetime] NULL,
+ [DeleteTag] [nvarchar](50) NULL,
+ [EmpName] [nvarchar](100) NULL,
+ [IdentifyId] [nvarchar](50) NULL,
+ [Photo] [nvarchar](500) NULL,
+ [Station] [nvarchar](50) NULL,
+ [Category] [nvarchar](50) NULL,
+ [CategoryName] [nvarchar](50) NULL,
+ [RecordId] [nvarchar](50) NULL,
+ [SignName] [nvarchar](500) NULL,
+ [DepartId] [nvarchar](50) NULL,
+ [DepartName] [nvarchar](50) NULL,
+ [SignInDate] [datetime] NULL,
+ [SignInType] [nvarchar](50) NULL,
+ [TrainPeriod] [nvarchar](50) NULL,
+ [State] [nvarchar](50) NULL,
+ [TotalScore] [decimal](18, 2) NULL,
+ [PassScore] [decimal](18, 0) NULL,
+ [Score] [decimal](18, 2) NULL,
+ [IsPass] [nvarchar](50) NULL,
+ [GroupNo] [nvarchar](50) NULL,
+ [ExamNo] [nvarchar](50) NULL,
+ [ExamCount] [int] NULL,
+ [DeviceNo] [nvarchar](50) NULL,
+ [OwnerDepartId] [nvarchar](50) NULL,
+ [UploadTime] [datetime] NULL,
+ [Answers] [nvarchar](2000) NULL,
+ [CreateDate] [datetime] NULL,
+ [CreateUser] [nvarchar](50) NULL,
+ [OperDate] [datetime] NULL,
+ [OperUser] [nvarchar](50) NULL,
+ CONSTRAINT [PK_Bo_Sheng_TrainPerson] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+--- 5 Ծ
+CREATE TABLE [dbo].[Bo_Sheng_Exam](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [RecordId] [nvarchar](50) NULL,
+ [ExamNo] [nvarchar](50) NULL,
+ [GroupNo] [nvarchar](50) NULL,
+ [CourseID] [nvarchar](50) NULL,
+ [COrder] [int] NULL,
+ [QsnCode] [nvarchar](50) NULL,
+ [QsnId] [nvarchar](50) NULL,
+ [QsnContent] [nvarchar](max) NULL,
+ [QsnFileName] [nvarchar](50) NULL,
+ [QsnAnswer] [nvarchar](50) NULL,
+ [QsnCategory] [nvarchar](50) NULL,
+ [QsnKind] [nvarchar](50) NULL,
+ [QsnImportant] [nvarchar](50) NULL,
+ [Description] [nvarchar](500) NULL,
+ [Analysis] [nvarchar](max) NULL,
+ [UploadTime] [datetime] NULL,
+ CONSTRAINT [PK_Bo_Sheng_Exam] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+--- 6 Աѵ¼
+CREATE TABLE [dbo].[Bo_Sheng_PersonTrainRecord](
+ [ID] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [EmpName] [nvarchar](50) NULL,
+ [IdentifyId] [nvarchar](50) NULL,
+ [CategoryName] [nvarchar](50) NULL,
+ [RecordId] [nvarchar](50) NULL,
+ [DepartId] [nvarchar](50) NULL,
+ [DepartName] [nvarchar](50) NULL,
+ [TrainPeriod] [nvarchar](50) NULL,
+ [TotalScore] [decimal](18, 2) NULL,
+ [PassScore] [decimal](18, 2) NULL,
+ [Score] [decimal](18, 2) NULL,
+ [IsPass] [nvarchar](50) NULL,
+ [GroupNo] [nvarchar](50) NULL,
+ [ExamNo] [nvarchar](50) NULL,
+ [ExamCount] [nvarchar](50) NULL,
+ [DeviceNo] [nvarchar](50) NULL,
+ [OwnerDepartId] [nvarchar](50) NULL,
+ [Answers] [nvarchar](500) NULL,
+ [RecordName] [nvarchar](50) NULL,
+ [TrainType] [nvarchar](50) NULL,
+ [PaperMode] [nvarchar](50) NULL,
+ [TrainMode] [nvarchar](50) NULL,
+ [TrainPrincipal] [nvarchar](50) NULL,
+ [TrainStartDate] [datetime] NULL,
+ [TrainEndDate] [datetime] NULL,
+ [TrainContent] [nvarchar](2000) NULL,
+ [TrainDescript] [nvarchar](max) NULL,
+ CONSTRAINT [PK_Bo_Sheng_PersonTrainRecord] PRIMARY KEY CLUSTERED
+(
+ [ID] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2021-10-02-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-10-02-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-10-02-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-10-02-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-11-02-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-02-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-11-02-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-02-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-11-11-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-11-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-11-11-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-11-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-11-26-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-26-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-11-26-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-11-26-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-12-01-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-01-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-12-01-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-01-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-12-01-001(材料管理菜单).sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-01-001(材料管理菜单).sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-12-01-001(材料管理菜单).sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-01-001(材料管理菜单).sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-12-02-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-02-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-12-02-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-02-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-12-03-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-03-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-12-03-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-03-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2021-12-03-001(集团安全检查及报表).sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-03-001(集团安全检查及报表).sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2021-12-03-001(集团安全检查及报表).sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2021-12-03-001(集团安全检查及报表).sql
diff --git a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
index 90f1bf70..61ae05b5 100644
--- a/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
+++ b/DataBase/菜单初始化脚本/1-3安全管理(Menu_HSSE).sql
@@ -518,6 +518,30 @@ GO
VALUES('6FF941C1-8A00-4A74-8111-C892FC30A8DA','ͳ','HSSE/EduTrain/TestStatistics.aspx',80,'6A0506EB-05CE-4BB3-9BA9-866389F01E1C','Menu_HSSE',0,1,1)
GO
+--ѵ
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','ѵ','',95,'0','Menu_HSSE',0,0,1)
+GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('FCA7A020-9F1B-4E1B-B457-001E05A19774','Ŀλ','BoSheng/BoUnit.aspx',10,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('4E0030F6-EF5E-40A6-939F-C29BC4D7CEE1','ԱϢ','BoSheng/BoPerson.aspx',20,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('9DF3DA33-E80D-4BF5-882C-842E400F7CAF','ѵ¼','BoSheng/BoTrain.aspx',30,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('17666A2C-EE47-42DE-AB8E-E23088BB156D','ѵԱ','BoSheng/BoTrainPerson.aspx',40,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('909BBC10-68D4-4C97-9FC3-9C1168D5FBC5','ѵԾ','BoSheng/BoExam.aspx',50,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('C5DF2DE4-EB56-45F9-9881-6CD0B7A8E72F','Աѵ¼','BoSheng/BoPersonTrainRecord.aspx',60,'3FD5EEC5-B3ED-4944-B9E9-6B8C923316E3','Menu_HSSE',0,1,1)
+ GO
+
--HSSE
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('467A0CB9-737D-4451-965E-869EBC3A4BD6','HSE','',100,'0','Menu_HSSE',0,0,1)
diff --git a/SGGL/BLL/API/APIDoorServerService.cs b/SGGL/BLL/API/APIDoorServerService.cs
index 0b8332e3..de2b8428 100644
--- a/SGGL/BLL/API/APIDoorServerService.cs
+++ b/SGGL/BLL/API/APIDoorServerService.cs
@@ -20,18 +20,28 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
int maxId = 0;
+ string name = string.Empty;
+ var getPersonByIdCard = db.SitePerson_Person.Where(x => x.IdentityCard == idCard).OrderByDescending(x=>x.InTime).FirstOrDefault();
+ if (getPersonByIdCard != null)
+ {
+ name = getPersonByIdCard.PersonName;
+ projectId = getPersonByIdCard.ProjectId;
+ }
+ else
+ {
+ var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == idCard && x.ProjectId == projectId);
+ if (getPerson != null)
+ {
+ name = getPerson.PersonName;
+ }
+ }
+
var getmax = db.T_d_facerecord.Where(x => x.ProjectId == projectId && x.RoleID == Intype).Select(x => x.ID);
if (getmax.Count() > 0)
{
maxId = getmax.Max() + 1;
}
- string name = string.Empty;
- var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == idCard && x.ProjectId ==projectId);
- if (getPerson != null)
- {
- name = getPerson.PersonName;
- }
-
+
Model.T_d_facerecord newFacerecord = new Model.T_d_facerecord()
{
NewID = SQLHelper.GetNewID(),
@@ -44,9 +54,9 @@ namespace BLL
RecordDes = Intype,
InOrOut = (isIn == 1 ? "进门" : "出门"),
};
-
db.T_d_facerecord.InsertOnSubmit(newFacerecord);
db.SubmitChanges();
+
///// 根据出入记录 写入考勤记录
Model.t_d_facerecordItem facerecord = new Model.t_d_facerecordItem
{
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 8b58203d..62914158 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -163,6 +163,7 @@
+
@@ -707,6 +708,7 @@
+
diff --git a/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs b/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs
new file mode 100644
index 00000000..96a1e265
--- /dev/null
+++ b/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs
@@ -0,0 +1,639 @@
+using Newtonsoft.Json.Linq;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Timers;
+
+namespace BLL
+{
+ public class BOSHENGMonitorService
+ {
+ #region 启动监视器 系统启动5分钟
+ ///
+ /// 监视组件
+ ///
+ private static Timer messageTimer;
+
+ ///
+ /// 启动监视器,不一定能成功,根据系统设置决定对监视器执行的操作 系统启动5分钟
+ ///
+ public static void StartMonitor()
+ {
+ int adTimeJ = 120;
+ if (messageTimer != null)
+ {
+ messageTimer.Stop();
+ messageTimer.Dispose();
+ messageTimer = null;
+ }
+ if (adTimeJ > 0)
+ {
+ messageTimer = new Timer
+ {
+ AutoReset = true
+ };
+ messageTimer.Elapsed += new ElapsedEventHandler(AddData);
+ messageTimer.Interval = 1000 * 60 * adTimeJ;// 60000 * adTimeJ;
+ messageTimer.Start();
+ }
+ }
+
+ ///
+ /// 流程确认 定时执行 系统启动5分钟
+ ///
+ /// Timer组件
+ /// 事件参数
+ private static void AddData(object sender, ElapsedEventArgs e)
+ {
+ try
+ {
+ var getDataList = (from x in Funs.DB.Sys_DataExchange where x.IsUpdate == false select x).Take(200).ToList();
+ if (getDataList.Count() > 0)
+ {
+ var getDataList0 = getDataList.Where(x => x.MessageText.Contains("\"Type\":0")).ToList();
+ var getDataList1 = getDataList.Where(x => x.MessageText.Contains("\"Type\":1")).ToList();
+ var getDataList2 = getDataList.Where(x => x.MessageText.Contains("\"Type\":2")).ToList();
+ var getDataList3 = getDataList.Where(x => x.MessageText.Contains("\"Type\":3")).ToList();
+ var getDataList4 = getDataList.Where(x => x.MessageText.Contains("\"Type\":4")).ToList();
+ var getDataList5 = getDataList.Where(x => x.MessageText.Contains("\"Type\":5")).ToList();
+
+ AddDataItem(getDataList1);
+ AddDataItem(getDataList0);
+ AddDataItem(getDataList2);
+ AddDataItem(getDataList3);
+ AddDataItem(getDataList4);
+ AddDataItem(getDataList5);
+ }
+ }
+ catch (Exception ex)
+ {
+ StartMonitor();
+ ErrLogInfo.WriteLog(ex, "博晟数据接口定时器", "RealNameMonitorService.AdUserInProcess");
+ }
+ }
+ #endregion
+
+ #region 与博晟培训考试接口数据插入明细方法
+ ///
+ /// 与博晟培训考试接口数据插入明细方法
+ ///
+ ///
+ private static void AddDataItem(List getDataExchange)
+ {
+ bool isOk = false;
+ foreach (var item in getDataExchange)
+ {
+ JObject obj = JObject.Parse(item.MessageText);
+ string type = obj["Type"].ToString();
+ string code = obj["Code"].ToString();
+ string fromprojectId = obj["DepartId"].ToString();
+ JArray arr = JArray.Parse(obj["Data"].ToString());
+ string projectId = string.Empty;
+ ////根据传值项目主键
+ var getProjectByFromProjectId = Funs.DB.Base_Project.FirstOrDefault(x => x.FromProjectId == fromprojectId);
+ if (getProjectByFromProjectId != null)
+ {
+ projectId = getProjectByFromProjectId.ProjectId;
+ }
+ else
+ {
+ if (type == "1")
+ {
+ projectId = AddProject(arr);
+ }
+ }
+
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ var sysUser = BLL.UserService.GetUserByUserId(BLL.Const.sysglyId);
+ if (sysUser != null)
+ {
+ sysUser.LoginProjectId = projectId;
+ }
+
+ if (type == "0")
+ {
+ isOk = AddPerson(projectId, arr, sysUser);
+ }
+ else if (type == "1")
+ {
+ isOk = AddUnit(projectId, arr, sysUser);
+ }
+ else if (type == "2")
+ {
+ isOk = AddTrainRecord(projectId, arr, sysUser);
+ }
+ else if (type == "3")
+ {
+ isOk = AddTrainRecordPerson(projectId, arr, sysUser);
+ }
+ else if (type == "4")
+ {
+ isOk = AddEduTrain_TrainTest(projectId, arr, sysUser);
+ }
+ else if (type == "5")
+ {
+ isOk = AddPersonTrainRecord(projectId, arr, sysUser);
+ }
+
+ if (isOk) ///更新数据接收状态
+ {
+ item.IsUpdate = true;
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region 插入信息-项目信息
+ ///
+ /// 插入信息-项目信息
+ ///
+ ///
+ ///
+ public static string AddProject(JArray arr)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ string projectId = string.Empty;
+ try
+ {
+ foreach (var item in arr)
+ {
+ string fromUnitId = item["ID"].ToString();
+ string departName = item["DepartName"].ToString(); ///单位名称
+ string departSir = item["DepartSir"].ToString(); ///单位级别 0:非项目部 1:项目部级 2:项目部下级单位
+ if (!string.IsNullOrEmpty(fromUnitId) && !string.IsNullOrEmpty(departName) && departSir == "1")
+ {
+ var getProjectByFromProjectId = db.Base_Project.FirstOrDefault(x => x.FromProjectId == fromUnitId);
+ if (getProjectByFromProjectId == null)
+ {
+ string projectCode = item["ProjectCode"].ToString();
+ var getProjectByProjectCode = db.Base_Project.FirstOrDefault(x => x.ProjectCode == projectCode);
+ if (getProjectByProjectCode != null)
+ {
+ projectId = getProjectByProjectCode.ProjectId;
+ getProjectByProjectCode.FromProjectId = fromUnitId;
+ db.SubmitChanges();
+ }
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("博晟-项目同步", ex);
+ }
+ return projectId;
+ }
+ }
+ #endregion
+
+ #region 插入人员信息
+ ///
+ /// 插入人员信息 0
+ ///
+ ///
+ ///
+ public static bool AddPerson(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertPersons = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getPerson = db.Bo_Sheng_Person.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getPerson == null)
+ {
+ Model.Bo_Sheng_Person newPerson = new Model.Bo_Sheng_Person
+ {
+ ID = getID,
+ ProjectId =projectId,
+ CreateDate =Funs.GetNewDateTime( item["CreateDate"].ToString()),
+ CreateUser = item["CreateUser"].ToString(),
+ OperDate = Funs.GetNewDateTime(item["OperDate"].ToString()),
+ OperUser = item["OperUser"].ToString(),
+ DeleteUser = item["DeleteUser"].ToString(),
+ DeleteDate = Funs.GetNewDateTime(item["DeleteDate"].ToString()),
+ DeleteTag = item["DeleteTag"].ToString(),
+ Name = item["Name"].ToString(),
+ Sex = item["Sex"].ToString(),
+ BirthDay = Funs.GetNewDateTime(item["BirthDay"].ToString()),
+ Address = item["Address"].ToString(),
+ Nation = item["Nation"].ToString(),
+ IdentifyID = item["IdentifyID"].ToString(),
+ Kind = item["Kind"].ToString(),
+ Photo = item["Photo"].ToString(),
+ Police = item["Police"].ToString(),
+ ValidPeriodStart = item["ValidPeriodStart"].ToString(),
+ ValidPeriodEnd = item["ValidPeriodEnd"].ToString(),
+ Education = item["Education"].ToString(),
+ Native = item["Native"].ToString(),
+ Telephone = item["Telephone"].ToString(),
+ MaritalStatus = item["MaritalStatus"].ToString(),
+ BloodGroup = item["BloodGroup"].ToString(),
+ RegisteredType = item["RegisteredType"].ToString(),
+ Age = Funs.GetNewInt(item["Age"].ToString()),
+ JobNumber = item["JobNumber"].ToString(),
+ CardContent = item["CardContent"].ToString(),
+ ContactTel = item["ContactTel"].ToString(),
+ SecondContacts = item["SecondContacts"].ToString(),
+ SecondContactsTel = item["SecondContactsTel"].ToString(),
+ NewAddress = item["NewAddress"].ToString(),
+ HealthCondition = item["HealthCondition"].ToString(),
+ HealthFile = item["HealthFile"].ToString(),
+ BuildArea = item["BuildArea"].ToString(),
+ TraPrincipal = item["TraPrincipal"].ToString(),
+ RegisterDate = Funs.GetNewDateTime(item["RegisterDate"].ToString()),
+ CategoryType = item["CategoryType"].ToString(),
+ Station = item["Station"].ToString(),
+ Category = item["Category"].ToString(),
+ CategoryLevel = item["CategoryLevel"].ToString(),
+ EntranceDate = Funs.GetNewDateTime(item["EntranceDate"].ToString()),
+ IsOut = item["IsOut"].ToString(),
+ LeaveDate = Funs.GetNewDateTime(item["LeaveDate"].ToString()),
+ IsBlackList = item["IsBlackList"].ToString(),
+ AgreementId = item["AgreementId"].ToString(),
+ HasInsurance = item["HasInsurance"].ToString(),
+ DeviceNumber = item["DeviceNumber"].ToString(),
+ IsActive = item["IsActive"].ToString(),
+ DepartId = item["DepartId"].ToString(),
+ DepartName = item["DepartName"].ToString(),
+ OwnerDepartId = item["OwnerDepartId"].ToString(),
+ UploadTime = Funs.GetNewDateTime(item["UploadTime"].ToString()),
+ };
+ insertPersons.Add(newPerson);
+ }
+ }
+
+ if (insertPersons.Count() > 0)
+ {
+ db.Bo_Sheng_Person.InsertAllOnSubmit(insertPersons);
+ db.SubmitChanges();
+ }
+
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-人员信息同步", ex);
+ }
+
+ return isOk;
+ }
+ }
+ #endregion
+
+ #region 插入信息-单位信息 1
+ ///
+ /// 插入信息-单位信息 1
+ ///
+ ///
+ ///
+ public static bool AddUnit(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertUnits = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getUnit = db.Bo_Sheng_Unit.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getUnit == null)
+ {
+ Model.Bo_Sheng_Unit newUnit = new Model.Bo_Sheng_Unit
+ {
+ ID = getID,
+ ProjectId = projectId,
+ ParentID = item["ParentID"].ToString(),
+ DepartCode = item["DepartCode"].ToString(),
+ ParentCode = item["ParentCode"].ToString(),
+ DepartName = item["DepartName"].ToString(),
+ DepartType = item["DepartType"].ToString(),
+ DepartShortName = item["DepartShortName"].ToString(),
+ DepartOrder = item["DepartOrder"].ToString(),
+ State = item["State"].ToString(),
+ DepartSir = item["DepartSir"].ToString(),
+ IsEpiboly = item["IsEpiboly"].ToString(),
+ Phone = item["Phone"].ToString(),
+ Charge = item["Charge"].ToString(),
+ Remark = item["Remark"].ToString(),
+ OwnerDeptID = item["OwnerDeptID"].ToString(),
+ CreateDate = Funs.GetNewDateTime(item["CreateDate"].ToString()),
+ CreateUser = item["CreateUser"].ToString(),
+ OperDate = Funs.GetNewDateTime(item["OperDate"].ToString()),
+ OperUser = item["OperUser"].ToString(),
+ };
+ insertUnits.Add(newUnit);
+ }
+ }
+ if (insertUnits.Count() > 0)
+ {
+ db.Bo_Sheng_Unit.InsertAllOnSubmit(insertUnits);
+ db.SubmitChanges();
+ }
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-单位信息同步", ex);
+ }
+ return isOk;
+ }
+ }
+ #endregion
+
+ #region 插入培训记录 2
+ ///
+ /// 插入培训记录 2
+ ///
+ ///
+ ///
+ public static bool AddTrainRecord(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertTrains = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getTrain = db.Bo_Sheng_Train.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getTrain == null)
+ {
+ Model.Bo_Sheng_Train newTrainRecord = new Model.Bo_Sheng_Train
+ {
+ ID = getID,
+ ProjectId =projectId,
+ DeleteUser = item["DeleteUser"].ToString(),
+ DeleteDate =Funs.GetNewDateTime( item["DeleteDate"].ToString()),
+ DeleteTag = item["DeleteTag"].ToString(),
+ RecordName = item["RecordName"].ToString(),
+ TrainType = item["TrainType"].ToString(),
+ PaperMode = item["PaperMode"].ToString(),
+ TrainMode = item["TrainMode"].ToString(),
+ TrainPrincipal = item["TrainPrincipal"].ToString(),
+ TrainStartDate = Funs.GetNewDateTime(item["TrainStartDate"].ToString()),
+ TrainEndDate = Funs.GetNewDateTime(item["TrainEndDate"].ToString()),
+ TrainContent = item["TrainContent"].ToString(),
+ TrainDescript = item["TrainDescript"].ToString(),
+ TrainPeriod = item["TrainPeriod"].ToString(),
+ PersonCount = Funs.GetNewInt(item["PersonCount"].ToString()),
+ PassedCount = Funs.GetNewInt(item["PassedCount"].ToString()),
+ CoverImg = item["CoverImg"].ToString(),
+ DemandID = item["DemandID"].ToString(),
+ CourseCount = Funs.GetNewInt(item["CourseCount"].ToString()),
+ CourseDuration = item["CourseDuration"].ToString(),
+ Source = item["Source"].ToString(),
+ Description = item["Description"].ToString(),
+ DeviceNo = item["DeviceNo"].ToString(),
+ OwnerDepartId = item["OwnerDepartId"].ToString(),
+ UploadTime = Funs.GetNewDateTime(item["UploadTime"].ToString()),
+ OwnerDeptName = item["OwnerDeptName"].ToString(),
+ TrainDepart = item["TrainDepart"].ToString(),
+ CreateDate = Funs.GetNewDateTime(item["CreateDate"].ToString()),
+ CreateUser = item["CreateUser"].ToString(),
+ OperDate = Funs.GetNewDateTime(item["OperDate"].ToString()),
+ OperUser = item["OperUser"].ToString(),
+ };
+ insertTrains.Add(newTrainRecord);
+ }
+ }
+ if (insertTrains.Count() > 0)
+ {
+ db.Bo_Sheng_Train.InsertAllOnSubmit(insertTrains);
+ db.SubmitChanges();
+ }
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-培训记录同步", ex);
+ }
+ return isOk;
+ }
+ }
+ #endregion
+
+ #region 插入培训人员 3
+ ///
+ /// 插入培训人员 3
+ ///
+ ///
+ ///
+ public static bool AddTrainRecordPerson(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertTrainPersons = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getTrainPerson = db.Bo_Sheng_TrainPerson.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getTrainPerson == null)
+ {
+ Model.Bo_Sheng_TrainPerson newPerson = new Model.Bo_Sheng_TrainPerson
+ {
+ ID = getID,
+ ProjectId = projectId,
+ DeleteUser = item["DeleteUser"].ToString(),
+ DeleteDate =Funs.GetNewDateTime( item["DeleteDate"].ToString()),
+ DeleteTag = item["DeleteTag"].ToString(),
+ EmpName = item["EmpName"].ToString(),
+ IdentifyId = item["IdentifyId"].ToString(),
+ Photo = item["Photo"].ToString(),
+ Station = item["Station"].ToString(),
+ Category = item["Category"].ToString(),
+ CategoryName = item["CategoryName"].ToString(),
+ RecordId = item["RecordId"].ToString(),
+ SignName = item["SignName"].ToString(),
+ DepartId = item["DepartId"].ToString(),
+ DepartName = item["DepartName"].ToString(),
+ SignInDate = Funs.GetNewDateTime(item["SignInDate"].ToString()),
+ SignInType = item["SignInType"].ToString(),
+ TrainPeriod = item["TrainPeriod"].ToString(),
+ State = item["State"].ToString(),
+ TotalScore =Funs.GetNewDecimal( item["TotalScore"].ToString()),
+ PassScore =Funs.GetNewDecimal( item["PassScore"].ToString()),
+ Score = Funs.GetNewDecimal( item["Score"].ToString()),
+ IsPass = item["IsPass"].ToString(),
+ GroupNo = item["GroupNo"].ToString(),
+ ExamNo = item["ExamNo"].ToString(),
+ ExamCount = Funs.GetNewInt(item["ExamCount"].ToString()),
+ DeviceNo = item["DeviceNo"].ToString(),
+ OwnerDepartId = item["OwnerDepartId"].ToString(),
+ UploadTime = Funs.GetNewDateTime(item["UploadTime"].ToString()),
+ Answers = item["Answers"].ToString(),
+ CreateDate = Funs.GetNewDateTime(item["CreateDate"].ToString()),
+ CreateUser = item["CreateUser"].ToString(),
+ OperDate = Funs.GetNewDateTime(item["OperDate"].ToString()),
+ OperUser = item["OperUser"].ToString(),
+ };
+ insertTrainPersons.Add(newPerson);
+ }
+ }
+
+ if (insertTrainPersons.Count() > 0)
+ {
+ db.Bo_Sheng_TrainPerson.InsertAllOnSubmit(insertTrainPersons);
+ db.SubmitChanges();
+ }
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-培训人员同步", ex);
+ }
+ return isOk;
+ }
+ }
+ #endregion
+
+ #region 插入试卷 4
+ ///
+ /// 插入试卷 4
+ ///
+ ///
+ ///
+ public static bool AddEduTrain_TrainTest(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertExams = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getExam = db.Bo_Sheng_Exam.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getExam == null)
+ {
+ Model.Bo_Sheng_Exam newTrainTest = new Model.Bo_Sheng_Exam
+ {
+ ID = getID,
+ ProjectId = projectId,
+ RecordId = item["RecordId"].ToString(),
+ ExamNo = item["ExamNo"].ToString(),
+ GroupNo = item["GroupNo"].ToString(),
+ CourseID = item["CourseID"].ToString(),
+ COrder =Funs.GetNewInt(item["COrder"].ToString()),
+ QsnCode = item["QsnCode"].ToString(),
+ QsnId = item["QsnId"].ToString(),
+ QsnContent = item["QsnContent"].ToString(),
+ QsnFileName = item["QsnFileName"].ToString(),
+ QsnAnswer = item["QsnAnswer"].ToString(),
+ QsnCategory = item["QsnCategory"].ToString(),
+ QsnKind = item["QsnKind"].ToString(),
+ QsnImportant = item["QsnImportant"].ToString(),
+ Description = item["Description"].ToString(),
+ Analysis = item["Analysis"].ToString(),
+ UploadTime = Funs.GetNewDateTime(item["UploadTime"].ToString()),
+ };
+
+ insertExams.Add(newTrainTest);
+ }
+ }
+
+ if (insertExams.Count() > 0)
+ {
+ db.Bo_Sheng_Exam.InsertAllOnSubmit(insertExams);
+ db.SubmitChanges();
+ }
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-培训试卷同步", ex);
+ }
+ return isOk;
+ }
+ }
+ #endregion
+
+ #region 插入人员培训记录 5
+ ///
+ /// 插入人员培训记录 5
+ ///
+ ///
+ ///
+ public static bool AddPersonTrainRecord(string projectId, JArray arr, Model.Sys_User user)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ bool isOk = true;
+ try
+ {
+ List insertPersonTrainRecords = new List();
+ foreach (var item in arr)
+ {
+ string getID = item["ID"].ToString();
+ var getPersonTrainRecord = db.Bo_Sheng_PersonTrainRecord.FirstOrDefault(x => x.ID == getID);
+ if (!string.IsNullOrEmpty(getID) && getPersonTrainRecord == null)
+ {
+ Model.Bo_Sheng_PersonTrainRecord newRecord = new Model.Bo_Sheng_PersonTrainRecord
+ {
+ ID = getID,
+ ProjectId = projectId,
+ EmpName = item["EmpName"].ToString(),
+ IdentifyId = item["IdentifyId"].ToString(),
+ CategoryName = item["CategoryName"].ToString(),
+ RecordId = item["RecordId"].ToString(),
+ DepartId = item["DepartId"].ToString(),
+ DepartName = item["DepartName"].ToString(),
+ TrainPeriod = item["TrainPeriod"].ToString(),
+ TotalScore = Funs.GetNewDecimal(item["TotalScore"].ToString()),
+ PassScore = Funs.GetNewDecimal(item["PassScore"].ToString()),
+ Score = Funs.GetNewDecimal(item["Score"].ToString()),
+ IsPass = item["IsPass"].ToString(),
+ GroupNo = item["GroupNo"].ToString(),
+ ExamNo = item["ExamNo"].ToString(),
+ ExamCount = item["ExamCount"].ToString(),
+ DeviceNo = item["DeviceNo"].ToString(),
+ OwnerDepartId = item["OwnerDepartId"].ToString(),
+ Answers = item["Answers"].ToString(),
+ RecordName = item["RecordName"].ToString(),
+ TrainType = item["TrainType"].ToString(),
+ PaperMode = item["PaperMode"].ToString(),
+ TrainMode = item["TrainMode"].ToString(),
+ TrainPrincipal = item["TrainPrincipal"].ToString(),
+ TrainStartDate = Funs.GetNewDateTime(item["TrainStartDate"].ToString()),
+ TrainEndDate = Funs.GetNewDateTime(item["TrainEndDate"].ToString()),
+ TrainContent = item["TrainContent"].ToString(),
+ TrainDescript = item["TrainDescript"].ToString(),
+ };
+
+ insertPersonTrainRecords.Add(newRecord);
+ }
+ }
+
+ if (insertPersonTrainRecords.Count() > 0)
+ {
+ db.Bo_Sheng_PersonTrainRecord.InsertAllOnSubmit(insertPersonTrainRecords);
+ db.SubmitChanges();
+ }
+ }
+ catch (Exception ex)
+ {
+ isOk = false;
+ ErrLogInfo.WriteLog("博晟-人员培训记录同步", ex);
+ }
+ return isOk;
+ }
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/BLL/BoSheng/BOSHENGService.cs b/SGGL/BLL/BoSheng/BOSHENGService.cs
new file mode 100644
index 00000000..6f75f8c4
--- /dev/null
+++ b/SGGL/BLL/BoSheng/BOSHENGService.cs
@@ -0,0 +1,500 @@
+using FineUIPro;
+using System;
+using System.Collections;
+using System.Linq;
+
+namespace BLL
+{
+ public static class BOSHENGService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ #region 获取单位列表
+ ///
+ /// 记录数
+ ///
+ public static int unitcount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getUnits = from x in db.Bo_Sheng_Unit select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getUnitListData(string projectId, string departName, string departCode, Grid Grid1)
+ {
+ IQueryable getDataList = getUnits.Where(x => x.ProjectId == projectId);
+
+ if (!string.IsNullOrEmpty(departName))
+ {
+ getDataList = getDataList.Where(x => x.DepartName.Contains(departName));
+ }
+ if (!string.IsNullOrEmpty(departCode))
+ {
+ getDataList = getDataList.Where(x => x.DepartCode.Contains(departCode));
+ }
+ unitcount = getDataList.Count();
+ if (unitcount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.ParentID,
+ x.DepartCode,
+ x.ParentCode,
+ x.DepartName,
+ x.DepartType,
+ x.DepartShortName,
+ x.DepartOrder,
+ x.State,
+ x.DepartSir,
+ x.IsEpiboly,
+ x.Phone,
+ x.Charge,
+ x.Remark,
+ x.OwnerDeptID,
+ x.CreateDate,
+ x.CreateUser,
+ x.OperDate,
+ x.OperUser,
+ };
+ }
+ #endregion
+
+ #region 获取人员列表
+ ///
+ /// 记录数
+ ///
+ public static int personcount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getPersons = from x in db.Bo_Sheng_Person select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getPersonListData(string projectId, string departName, string name, string identifyID, Grid Grid1)
+ {
+ IQueryable getDataList = getPersons.Where(x => x.ProjectId == projectId);
+ if (!string.IsNullOrEmpty(departName))
+ {
+ getDataList = getDataList.Where(x => x.DepartName.Contains(departName));
+ }
+ if (!string.IsNullOrEmpty(name))
+ {
+ getDataList = getDataList.Where(x => x.Name.Contains(name));
+ }
+ if (!string.IsNullOrEmpty(identifyID))
+ {
+ getDataList = getDataList.Where(x => x.IdentifyID == identifyID);
+ }
+
+ personcount = getDataList.Count();
+ if (personcount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList.OrderBy(x => x.DepartName), Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.CreateDate,
+ x.CreateUser,
+ x.OperDate,
+ x.OperUser,
+ x.DeleteUser,
+ x.DeleteDate,
+ x.DeleteTag,
+ x.Name,
+ x.Sex,
+ SexName = x.Sex == "2" ? "女" : "男",
+ x.BirthDay,
+ x.Address,
+ x.Nation,
+ x.IdentifyID,
+ x.Kind,
+ x.Photo,
+ x.Police,
+ x.ValidPeriodStart,
+ x.ValidPeriodEnd,
+ x.Education,
+ x.Native,
+ x.Telephone,
+ x.MaritalStatus,
+ x.BloodGroup,
+ x.RegisteredType,
+ x.Age,
+ x.JobNumber,
+ x.CardContent,
+ x.ContactTel,
+ x.SecondContacts,
+ x.SecondContactsTel,
+ x.NewAddress,
+ x.HealthCondition,
+ x.HealthFile,
+ x.BuildArea,
+ x.TraPrincipal,
+ x.RegisterDate,
+ x.CategoryType,
+ x.Station,
+ x.Category,
+ x.CategoryLevel,
+ x.EntranceDate,
+ x.IsOut,
+ IsOutName = x.IsOut == "1" ? "是" : "否",
+ x.LeaveDate,
+ x.IsBlackList,
+ IsBlackListName =x.IsBlackList == "1" ? "是" : "否",
+ x.AgreementId,
+ x.HasInsurance,
+ x.DeviceNumber,
+ x.IsActive,
+ x.DepartId,
+ x.DepartName,
+ x.OwnerDepartId,
+ x.UploadTime,
+ };
+ }
+ #endregion
+
+ #region 获取培训记录列表
+ ///
+ /// 记录数
+ ///
+ public static int traincount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getTrains = from x in db.Bo_Sheng_Train select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getTrainListData(string projectId, string trainType, string recordName, Grid Grid1)
+ {
+ IQueryable getDataList = getTrains.Where(x => x.ProjectId == projectId);
+ if (!string.IsNullOrEmpty(trainType))
+ {
+ getDataList = getDataList.Where(x => x.TrainType.Contains(trainType));
+ }
+ if (!string.IsNullOrEmpty(recordName))
+ {
+ getDataList = getDataList.Where(x => x.RecordName.Contains(recordName));
+ }
+
+ traincount = getDataList.Count();
+ if (traincount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.DeleteUser,
+ x.DeleteDate,
+ x.DeleteTag,
+ x.RecordName,
+ x.TrainType,
+ x.PaperMode,
+ PaperModeName = x.PaperMode=="0"? "使用原卷" : "重新出卷",
+ x.TrainMode,
+ x.TrainPrincipal,
+ x.TrainStartDate,
+ x.TrainEndDate,
+ x.TrainContent,
+ x.TrainDescript,
+ x.TrainPeriod,
+ x.PersonCount,
+ x.PassedCount,
+ x.CoverImg,
+ x.DemandID,
+ x.CourseCount,
+ x.CourseDuration,
+ x.Source,
+ SourceName = x.Source == "0" ? "项目" : "课程",
+ x.Description,
+ x.DeviceNo,
+ x.OwnerDepartId,
+ x.UploadTime,
+ x.OwnerDeptName,
+ x.TrainDepart,
+ x.CreateDate,
+ x.CreateUser,
+ x.OperDate,
+ x.OperUser,
+ };
+ }
+ #endregion
+
+ #region 获取培训人员列表
+ ///
+ /// 记录数
+ ///
+ public static int trainPersoncount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getTrainPersons = from x in db.Bo_Sheng_TrainPerson select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getTrainPersonListData(string projectId,string departName, string name, string identifyID, Grid Grid1)
+ {
+ IQueryable getDataList = getTrainPersons.Where(x => x.ProjectId == projectId);
+ if (!string.IsNullOrEmpty(departName))
+ {
+ getDataList = getDataList.Where(x => x.DepartName.Contains(departName));
+ }
+ if (!string.IsNullOrEmpty(name))
+ {
+ getDataList = getDataList.Where(x => x.EmpName.Contains(name));
+ }
+ if (!string.IsNullOrEmpty(identifyID))
+ {
+ getDataList = getDataList.Where(x => x.IdentifyId.Contains(identifyID));
+ }
+
+ trainPersoncount = getDataList.Count();
+ if (trainPersoncount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.DeleteUser,
+ x.DeleteDate,
+ x.DeleteTag,
+ x.EmpName,
+ x.IdentifyId,
+ x.Photo,
+ x.Station,
+ x.Category,
+ x.CategoryName,
+ x.RecordId,
+ x.SignName,
+ x.DepartId,
+ x.DepartName,
+ x.SignInDate,
+ x.SignInType,
+ x.TrainPeriod,
+ x.State,
+ StateName= x.State=="0"? "正常" : "补签",
+ x.TotalScore,
+ x.PassScore,
+ x.Score,
+ x.IsPass,
+ IsPassName = x.IsPass == "0" ? "否" : "是",
+ x.GroupNo,
+ x.ExamNo,
+ x.ExamCount,
+ x.DeviceNo,
+ x.OwnerDepartId,
+ x.UploadTime,
+ x.Answers,
+ x.CreateDate,
+ x.CreateUser,
+ x.OperDate,
+ x.OperUser,
+ };
+ }
+ #endregion
+
+ #region 获取试卷列表
+ ///
+ /// 记录数
+ ///
+ public static int examcount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getExams = from x in db.Bo_Sheng_Exam select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getExamListData(string projectId, string qsnCode,string qsnContent, Grid Grid1)
+ {
+ IQueryable getDataList = getExams.Where(x => x.ProjectId == projectId);
+
+ if (!string.IsNullOrEmpty(qsnCode))
+ {
+ getDataList = getDataList.Where(x => x.QsnCode == qsnCode);
+ }
+ if (!string.IsNullOrEmpty(qsnContent))
+ {
+ getDataList = getDataList.Where(x => x.QsnContent.Contains(qsnContent));
+ }
+
+ examcount = getDataList.Count();
+ if (examcount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.RecordId,
+ x.ExamNo,
+ x.GroupNo,
+ x.CourseID,
+ x.COrder,
+ x.QsnCode,
+ x.QsnId,
+ x.QsnContent,
+ x.QsnFileName,
+ x.QsnAnswer,
+ x.QsnCategory,
+ QsnCategoryName= x.QsnCategory=="3"? "图片题" : (x.QsnCategory == "2"? "多媒体题" : "文字题"),
+ x.QsnKind,
+ QsnKindName = x.QsnKind == "3" ? "判断" : (x.QsnCategory == "2" ? "多选" : "单选"),
+ x.QsnImportant,
+ QsnImportantName = x.QsnImportant == "2" ? "困难" : (x.QsnCategory == "1" ? "一般" : "容易"),
+ x.Description,
+ x.Analysis,
+ x.UploadTime,
+ };
+ }
+ #endregion
+
+ #region 获取人员培训记录列表
+ ///
+ /// 记录数
+ ///
+ public static int personTrainRecordcount
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// 定义变量
+ ///
+ private static IQueryable getPersonTrainRecords = from x in db.Bo_Sheng_PersonTrainRecord select x;
+
+ ///
+ /// 获取分页列表
+ ///
+ /// 页码
+ /// 每页数量
+ ///
+ public static IEnumerable getPersonTrainRecordListData(string projectId, string departName, string name, string identifyID, Grid Grid1)
+ {
+ IQueryable getDataList = getPersonTrainRecords.Where(x => x.ProjectId == projectId);
+
+ if (!string.IsNullOrEmpty(name))
+ {
+ getDataList = getDataList.Where(x => x.EmpName.Contains(name));
+ }
+ if (!string.IsNullOrEmpty(departName))
+ {
+ getDataList = getDataList.Where(x => x.DepartName.Contains(departName));
+ }
+ if (!string.IsNullOrEmpty(identifyID))
+ {
+ getDataList = getDataList.Where(x => x.IdentifyId.Contains(identifyID));
+ }
+
+ personTrainRecordcount = getDataList.Count();
+ if (personTrainRecordcount == 0)
+ {
+ return null;
+ }
+ getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+ return from x in getDataList
+ select new
+ {
+ x.ID,
+ x.ProjectId,
+ x.EmpName,
+ x.IdentifyId,
+ x.CategoryName,
+ x.RecordId,
+ x.DepartId,
+ x.DepartName,
+ x.TrainPeriod,
+ x.TotalScore,
+ x.PassScore,
+ x.Score,
+ x.IsPass,
+ IsPassName = x.IsPass == "0" ? "否" : "是",
+ x.GroupNo,
+ x.ExamNo,
+ x.ExamCount,
+ x.DeviceNo,
+ x.OwnerDepartId,
+ x.Answers,
+ x.RecordName,
+ x.TrainType,
+ x.PaperMode,
+ PaperModeName = x.PaperMode == "0" ? "使用原卷" : "重新出卷",
+ x.TrainMode,
+ x.TrainPrincipal,
+ x.TrainStartDate,
+ x.TrainEndDate,
+ x.TrainContent,
+ x.TrainDescript,
+ };
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx
new file mode 100644
index 00000000..98f78ae9
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx
@@ -0,0 +1,95 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoExam.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoExam" %>
+
+
+
+
+ 考试试卷
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.cs
new file mode 100644
index 00000000..b0797858
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoExam : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getExamListData(this.CurrUser.LoginProjectId, this.txtQsnCode.Text.Trim(),this.txtQsnContent.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.examcount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.designer.cs
new file mode 100644
index 00000000..7b224f71
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoExam.aspx.designer.cs
@@ -0,0 +1,132 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoExam {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtQsnCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtQsnCode;
+
+ ///
+ /// txtQsnContent 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtQsnContent;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx
new file mode 100644
index 00000000..3981bd7b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx
@@ -0,0 +1,127 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoPerson.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoPerson" %>
+
+
+
+
+ 人员信息
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.cs
new file mode 100644
index 00000000..640b052b
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoPerson : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getPersonListData(this.CurrUser.LoginProjectId, this.txtDepartName.Text.Trim(),this.txtName.Text.Trim(), this.txtIdentifyID.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.personcount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.designer.cs
new file mode 100644
index 00000000..bd0e1732
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx.designer.cs
@@ -0,0 +1,141 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoPerson {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtDepartName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDepartName;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
+ ///
+ /// txtIdentifyID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIdentifyID;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx
new file mode 100644
index 00000000..a3ff16a5
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoPersonTrainRecord.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoPersonTrainRecord" %>
+
+
+
+
+ 人员培训记录
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.cs
new file mode 100644
index 00000000..213096d4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoPersonTrainRecord : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getPersonTrainRecordListData(this.CurrUser.LoginProjectId, this.txtDepartName.Text.Trim(),this.txtName.Text.Trim(), this.txtIdentifyID.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.personTrainRecordcount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.designer.cs
new file mode 100644
index 00000000..46c03655
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPersonTrainRecord.aspx.designer.cs
@@ -0,0 +1,141 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoPersonTrainRecord {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtDepartName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDepartName;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
+ ///
+ /// txtIdentifyID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIdentifyID;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx
new file mode 100644
index 00000000..dadefa25
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx
@@ -0,0 +1,118 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoTrain.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoTrain" %>
+
+
+
+
+ 培训记录
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.cs
new file mode 100644
index 00000000..ef141882
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoTrain : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getTrainListData(this.CurrUser.LoginProjectId, this.txtTrainType.Text.Trim(),this.txtName.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.traincount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.designer.cs
new file mode 100644
index 00000000..adc89545
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrain.aspx.designer.cs
@@ -0,0 +1,132 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoTrain {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtTrainType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTrainType;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx
new file mode 100644
index 00000000..7aff2170
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx
@@ -0,0 +1,115 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoTrainPerson.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoTrainPerson" %>
+
+
+
+
+ 培训人员
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.cs
new file mode 100644
index 00000000..cbcf5b65
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoTrainPerson : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getTrainPersonListData(this.CurrUser.LoginProjectId, this.txtDepartName.Text.Trim(),this.txtName.Text.Trim(), this.txtIdentifyID.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.trainPersoncount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.designer.cs
new file mode 100644
index 00000000..b550cea7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoTrainPerson.aspx.designer.cs
@@ -0,0 +1,141 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoTrainPerson {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtDepartName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDepartName;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
+ ///
+ /// txtIdentifyID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIdentifyID;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx
new file mode 100644
index 00000000..e5cdc442
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx
@@ -0,0 +1,89 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoUnit.aspx.cs"
+ Inherits="FineUIPro.Web.BoSheng.BoUnit" %>
+
+
+
+
+ 项目单位
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.cs b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.cs
new file mode 100644
index 00000000..0e47fb13
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.cs
@@ -0,0 +1,94 @@
+using BLL;
+using System;
+using System.Text;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.BoSheng
+{
+ public partial class BoUnit : PageBase
+ {
+ ///
+ /// 加载
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ //this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ //this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ this.GridBind();
+ }
+ }
+
+ ///
+ /// 获取数据,合并相同行
+ ///
+ private void GridBind()
+ {
+ var getData = BOSHENGService.getUnitListData(this.CurrUser.LoginProjectId, this.txtName.Text.Trim(), this.txtCode.Text.Trim(), Grid1);
+ Grid1.RecordCount = BOSHENGService.unitcount;
+ Grid1.DataSource = getData;
+ Grid1.DataBind();
+ }
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ this.GridBind();
+ }
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ 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, Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = Encoding.UTF8;
+ this.Grid1.PageSize = this.Grid1.RecordCount;
+ this.GridBind();
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+ }
+ #endregion
+
+ #region 分页 排序
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.GridBind();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.GridBind();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.GridBind();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.designer.cs b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.designer.cs
new file mode 100644
index 00000000..1bccba87
--- /dev/null
+++ b/SGGL/FineUIPro.Web/BoSheng/BoUnit.aspx.designer.cs
@@ -0,0 +1,132 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.BoSheng {
+
+
+ public partial class BoUnit {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
+ ///
+ /// txtCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCode;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 455ae0e1..c9e7b064 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -222,6 +222,12 @@
+
+
+
+
+
+
@@ -5927,6 +5933,48 @@
WorkStage.aspx
+
+ BoExam.aspx
+ ASPXCodeBehind
+
+
+ BoExam.aspx
+
+
+ BoPersonTrainRecord.aspx
+ ASPXCodeBehind
+
+
+ BoPersonTrainRecord.aspx
+
+
+ BoTrainPerson.aspx
+ ASPXCodeBehind
+
+
+ BoTrainPerson.aspx
+
+
+ BoTrain.aspx
+ ASPXCodeBehind
+
+
+ BoTrain.aspx
+
+
+ BoPerson.aspx
+ ASPXCodeBehind
+
+
+ BoPerson.aspx
+
+
+ BoUnit.aspx
+ ASPXCodeBehind
+
+
+ BoUnit.aspx
+
ContractQuantitySheet.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/Global.asax.cs b/SGGL/FineUIPro.Web/Global.asax.cs
index 97281748..c447a38b 100644
--- a/SGGL/FineUIPro.Web/Global.asax.cs
+++ b/SGGL/FineUIPro.Web/Global.asax.cs
@@ -77,6 +77,16 @@
{
ErrLogInfo.WriteLog("从集团获取数据定时器!", ex);
}
+
+ ////从博晟获取培训考试数据定时器
+ try
+ {
+ BLL.BOSHENGMonitorService.StartMonitor();
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("从博晟获取培训考试数据定时器!", ex);
+ }
}
protected void Session_Start(object sender, EventArgs e)
diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
index 770fcc42..42a69946 100644
--- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml
@@ -49,8 +49,14 @@
+
+
+
+
+
+
+
-
diff --git a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
index c8033189..9109ea27 100644
--- a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
@@ -1,12 +1,8 @@
-
-
-
-
-
-
-
+
+
+
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 9dec9340..02d3e3d9 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -236,6 +236,24 @@ namespace Model
partial void InsertBase_WorkStage(Base_WorkStage instance);
partial void UpdateBase_WorkStage(Base_WorkStage instance);
partial void DeleteBase_WorkStage(Base_WorkStage instance);
+ partial void InsertBo_Sheng_Exam(Bo_Sheng_Exam instance);
+ partial void UpdateBo_Sheng_Exam(Bo_Sheng_Exam instance);
+ partial void DeleteBo_Sheng_Exam(Bo_Sheng_Exam instance);
+ partial void InsertBo_Sheng_Person(Bo_Sheng_Person instance);
+ partial void UpdateBo_Sheng_Person(Bo_Sheng_Person instance);
+ partial void DeleteBo_Sheng_Person(Bo_Sheng_Person instance);
+ partial void InsertBo_Sheng_PersonTrainRecord(Bo_Sheng_PersonTrainRecord instance);
+ partial void UpdateBo_Sheng_PersonTrainRecord(Bo_Sheng_PersonTrainRecord instance);
+ partial void DeleteBo_Sheng_PersonTrainRecord(Bo_Sheng_PersonTrainRecord instance);
+ partial void InsertBo_Sheng_Train(Bo_Sheng_Train instance);
+ partial void UpdateBo_Sheng_Train(Bo_Sheng_Train instance);
+ partial void DeleteBo_Sheng_Train(Bo_Sheng_Train instance);
+ partial void InsertBo_Sheng_TrainPerson(Bo_Sheng_TrainPerson instance);
+ partial void UpdateBo_Sheng_TrainPerson(Bo_Sheng_TrainPerson instance);
+ partial void DeleteBo_Sheng_TrainPerson(Bo_Sheng_TrainPerson instance);
+ partial void InsertBo_Sheng_Unit(Bo_Sheng_Unit instance);
+ partial void UpdateBo_Sheng_Unit(Bo_Sheng_Unit instance);
+ partial void DeleteBo_Sheng_Unit(Bo_Sheng_Unit instance);
partial void InsertBS_Steel(BS_Steel instance);
partial void UpdateBS_Steel(BS_Steel instance);
partial void DeleteBS_Steel(BS_Steel instance);
@@ -1736,6 +1754,9 @@ namespace Model
partial void InsertSys_Const(Sys_Const instance);
partial void UpdateSys_Const(Sys_Const instance);
partial void DeleteSys_Const(Sys_Const instance);
+ partial void InsertSys_DataExchange(Sys_DataExchange instance);
+ partial void UpdateSys_DataExchange(Sys_DataExchange instance);
+ partial void DeleteSys_DataExchange(Sys_DataExchange instance);
partial void InsertSys_ErrLogInfo(Sys_ErrLogInfo instance);
partial void UpdateSys_ErrLogInfo(Sys_ErrLogInfo instance);
partial void DeleteSys_ErrLogInfo(Sys_ErrLogInfo instance);
@@ -2623,6 +2644,54 @@ namespace Model
}
}
+ public System.Data.Linq.Table Bo_Sheng_Exam
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Bo_Sheng_Person
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Bo_Sheng_PersonTrainRecord
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Bo_Sheng_Train
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Bo_Sheng_TrainPerson
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Bo_Sheng_Unit
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table BS_Steel
{
get
@@ -6639,6 +6708,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Sys_DataExchange
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Sys_ErrLogInfo
{
get
@@ -6895,6 +6972,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Temp_tableSpaceInfo
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Test_TestPlan
{
get
@@ -40182,6 +40267,4698 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Bo_Sheng_Exam")]
+ public partial class Bo_Sheng_Exam : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private string _RecordId;
+
+ private string _ExamNo;
+
+ private string _GroupNo;
+
+ private string _CourseID;
+
+ private System.Nullable _COrder;
+
+ private string _QsnCode;
+
+ private string _QsnId;
+
+ private string _QsnContent;
+
+ private string _QsnFileName;
+
+ private string _QsnAnswer;
+
+ private string _QsnCategory;
+
+ private string _QsnKind;
+
+ private string _QsnImportant;
+
+ private string _Description;
+
+ private string _Analysis;
+
+ private System.Nullable _UploadTime;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnExamNoChanging(string value);
+ partial void OnExamNoChanged();
+ partial void OnGroupNoChanging(string value);
+ partial void OnGroupNoChanged();
+ partial void OnCourseIDChanging(string value);
+ partial void OnCourseIDChanged();
+ partial void OnCOrderChanging(System.Nullable value);
+ partial void OnCOrderChanged();
+ partial void OnQsnCodeChanging(string value);
+ partial void OnQsnCodeChanged();
+ partial void OnQsnIdChanging(string value);
+ partial void OnQsnIdChanged();
+ partial void OnQsnContentChanging(string value);
+ partial void OnQsnContentChanged();
+ partial void OnQsnFileNameChanging(string value);
+ partial void OnQsnFileNameChanged();
+ partial void OnQsnAnswerChanging(string value);
+ partial void OnQsnAnswerChanged();
+ partial void OnQsnCategoryChanging(string value);
+ partial void OnQsnCategoryChanged();
+ partial void OnQsnKindChanging(string value);
+ partial void OnQsnKindChanged();
+ partial void OnQsnImportantChanging(string value);
+ partial void OnQsnImportantChanged();
+ partial void OnDescriptionChanging(string value);
+ partial void OnDescriptionChanged();
+ partial void OnAnalysisChanging(string value);
+ partial void OnAnalysisChanged();
+ partial void OnUploadTimeChanging(System.Nullable value);
+ partial void OnUploadTimeChanged();
+ #endregion
+
+ public Bo_Sheng_Exam()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50)")]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamNo", DbType="NVarChar(50)")]
+ public string ExamNo
+ {
+ get
+ {
+ return this._ExamNo;
+ }
+ set
+ {
+ if ((this._ExamNo != value))
+ {
+ this.OnExamNoChanging(value);
+ this.SendPropertyChanging();
+ this._ExamNo = value;
+ this.SendPropertyChanged("ExamNo");
+ this.OnExamNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GroupNo", DbType="NVarChar(50)")]
+ public string GroupNo
+ {
+ get
+ {
+ return this._GroupNo;
+ }
+ set
+ {
+ if ((this._GroupNo != value))
+ {
+ this.OnGroupNoChanging(value);
+ this.SendPropertyChanging();
+ this._GroupNo = value;
+ this.SendPropertyChanged("GroupNo");
+ this.OnGroupNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CourseID", DbType="NVarChar(50)")]
+ public string CourseID
+ {
+ get
+ {
+ return this._CourseID;
+ }
+ set
+ {
+ if ((this._CourseID != value))
+ {
+ this.OnCourseIDChanging(value);
+ this.SendPropertyChanging();
+ this._CourseID = value;
+ this.SendPropertyChanged("CourseID");
+ this.OnCourseIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_COrder", DbType="Int")]
+ public System.Nullable COrder
+ {
+ get
+ {
+ return this._COrder;
+ }
+ set
+ {
+ if ((this._COrder != value))
+ {
+ this.OnCOrderChanging(value);
+ this.SendPropertyChanging();
+ this._COrder = value;
+ this.SendPropertyChanged("COrder");
+ this.OnCOrderChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnCode", DbType="NVarChar(50)")]
+ public string QsnCode
+ {
+ get
+ {
+ return this._QsnCode;
+ }
+ set
+ {
+ if ((this._QsnCode != value))
+ {
+ this.OnQsnCodeChanging(value);
+ this.SendPropertyChanging();
+ this._QsnCode = value;
+ this.SendPropertyChanged("QsnCode");
+ this.OnQsnCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnId", DbType="NVarChar(50)")]
+ public string QsnId
+ {
+ get
+ {
+ return this._QsnId;
+ }
+ set
+ {
+ if ((this._QsnId != value))
+ {
+ this.OnQsnIdChanging(value);
+ this.SendPropertyChanging();
+ this._QsnId = value;
+ this.SendPropertyChanged("QsnId");
+ this.OnQsnIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnContent", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string QsnContent
+ {
+ get
+ {
+ return this._QsnContent;
+ }
+ set
+ {
+ if ((this._QsnContent != value))
+ {
+ this.OnQsnContentChanging(value);
+ this.SendPropertyChanging();
+ this._QsnContent = value;
+ this.SendPropertyChanged("QsnContent");
+ this.OnQsnContentChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnFileName", DbType="NVarChar(50)")]
+ public string QsnFileName
+ {
+ get
+ {
+ return this._QsnFileName;
+ }
+ set
+ {
+ if ((this._QsnFileName != value))
+ {
+ this.OnQsnFileNameChanging(value);
+ this.SendPropertyChanging();
+ this._QsnFileName = value;
+ this.SendPropertyChanged("QsnFileName");
+ this.OnQsnFileNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnAnswer", DbType="NVarChar(50)")]
+ public string QsnAnswer
+ {
+ get
+ {
+ return this._QsnAnswer;
+ }
+ set
+ {
+ if ((this._QsnAnswer != value))
+ {
+ this.OnQsnAnswerChanging(value);
+ this.SendPropertyChanging();
+ this._QsnAnswer = value;
+ this.SendPropertyChanged("QsnAnswer");
+ this.OnQsnAnswerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnCategory", DbType="NVarChar(50)")]
+ public string QsnCategory
+ {
+ get
+ {
+ return this._QsnCategory;
+ }
+ set
+ {
+ if ((this._QsnCategory != value))
+ {
+ this.OnQsnCategoryChanging(value);
+ this.SendPropertyChanging();
+ this._QsnCategory = value;
+ this.SendPropertyChanged("QsnCategory");
+ this.OnQsnCategoryChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnKind", DbType="NVarChar(50)")]
+ public string QsnKind
+ {
+ get
+ {
+ return this._QsnKind;
+ }
+ set
+ {
+ if ((this._QsnKind != value))
+ {
+ this.OnQsnKindChanging(value);
+ this.SendPropertyChanging();
+ this._QsnKind = value;
+ this.SendPropertyChanged("QsnKind");
+ this.OnQsnKindChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QsnImportant", DbType="NVarChar(50)")]
+ public string QsnImportant
+ {
+ get
+ {
+ return this._QsnImportant;
+ }
+ set
+ {
+ if ((this._QsnImportant != value))
+ {
+ this.OnQsnImportantChanging(value);
+ this.SendPropertyChanging();
+ this._QsnImportant = value;
+ this.SendPropertyChanged("QsnImportant");
+ this.OnQsnImportantChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(500)")]
+ public string Description
+ {
+ get
+ {
+ return this._Description;
+ }
+ set
+ {
+ if ((this._Description != value))
+ {
+ this.OnDescriptionChanging(value);
+ this.SendPropertyChanging();
+ this._Description = value;
+ this.SendPropertyChanged("Description");
+ this.OnDescriptionChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Analysis", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string Analysis
+ {
+ get
+ {
+ return this._Analysis;
+ }
+ set
+ {
+ if ((this._Analysis != value))
+ {
+ this.OnAnalysisChanging(value);
+ this.SendPropertyChanging();
+ this._Analysis = value;
+ this.SendPropertyChanged("Analysis");
+ this.OnAnalysisChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadTime", DbType="DateTime")]
+ public System.Nullable UploadTime
+ {
+ get
+ {
+ return this._UploadTime;
+ }
+ set
+ {
+ if ((this._UploadTime != value))
+ {
+ this.OnUploadTimeChanging(value);
+ this.SendPropertyChanging();
+ this._UploadTime = value;
+ this.SendPropertyChanged("UploadTime");
+ this.OnUploadTimeChanged();
+ }
+ }
+ }
+
+ 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.Bo_Sheng_Person")]
+ public partial class Bo_Sheng_Person : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private System.Nullable _CreateDate;
+
+ private string _CreateUser;
+
+ private System.Nullable _OperDate;
+
+ private string _OperUser;
+
+ private string _DeleteUser;
+
+ private System.Nullable _DeleteDate;
+
+ private string _DeleteTag;
+
+ private string _Name;
+
+ private string _Sex;
+
+ private System.Nullable _BirthDay;
+
+ private string _Address;
+
+ private string _Nation;
+
+ private string _IdentifyID;
+
+ private string _Kind;
+
+ private string _Photo;
+
+ private string _Police;
+
+ private string _ValidPeriodStart;
+
+ private string _ValidPeriodEnd;
+
+ private string _Education;
+
+ private string _Native;
+
+ private string _Telephone;
+
+ private string _MaritalStatus;
+
+ private string _BloodGroup;
+
+ private string _RegisteredType;
+
+ private System.Nullable _Age;
+
+ private string _JobNumber;
+
+ private string _CardContent;
+
+ private string _ContactTel;
+
+ private string _SecondContacts;
+
+ private string _SecondContactsTel;
+
+ private string _NewAddress;
+
+ private string _HealthCondition;
+
+ private string _HealthFile;
+
+ private string _BuildArea;
+
+ private string _TraPrincipal;
+
+ private System.Nullable _RegisterDate;
+
+ private string _CategoryType;
+
+ private string _Station;
+
+ private string _Category;
+
+ private string _CategoryLevel;
+
+ private System.Nullable _EntranceDate;
+
+ private string _IsOut;
+
+ private System.Nullable _LeaveDate;
+
+ private string _IsBlackList;
+
+ private string _AgreementId;
+
+ private string _HasInsurance;
+
+ private string _DeviceNumber;
+
+ private string _IsActive;
+
+ private string _DepartId;
+
+ private string _DepartName;
+
+ private string _OwnerDepartId;
+
+ private System.Nullable _UploadTime;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnCreateDateChanging(System.Nullable value);
+ partial void OnCreateDateChanged();
+ partial void OnCreateUserChanging(string value);
+ partial void OnCreateUserChanged();
+ partial void OnOperDateChanging(System.Nullable value);
+ partial void OnOperDateChanged();
+ partial void OnOperUserChanging(string value);
+ partial void OnOperUserChanged();
+ partial void OnDeleteUserChanging(string value);
+ partial void OnDeleteUserChanged();
+ partial void OnDeleteDateChanging(System.Nullable value);
+ partial void OnDeleteDateChanged();
+ partial void OnDeleteTagChanging(string value);
+ partial void OnDeleteTagChanged();
+ partial void OnNameChanging(string value);
+ partial void OnNameChanged();
+ partial void OnSexChanging(string value);
+ partial void OnSexChanged();
+ partial void OnBirthDayChanging(System.Nullable value);
+ partial void OnBirthDayChanged();
+ partial void OnAddressChanging(string value);
+ partial void OnAddressChanged();
+ partial void OnNationChanging(string value);
+ partial void OnNationChanged();
+ partial void OnIdentifyIDChanging(string value);
+ partial void OnIdentifyIDChanged();
+ partial void OnKindChanging(string value);
+ partial void OnKindChanged();
+ partial void OnPhotoChanging(string value);
+ partial void OnPhotoChanged();
+ partial void OnPoliceChanging(string value);
+ partial void OnPoliceChanged();
+ partial void OnValidPeriodStartChanging(string value);
+ partial void OnValidPeriodStartChanged();
+ partial void OnValidPeriodEndChanging(string value);
+ partial void OnValidPeriodEndChanged();
+ partial void OnEducationChanging(string value);
+ partial void OnEducationChanged();
+ partial void OnNativeChanging(string value);
+ partial void OnNativeChanged();
+ partial void OnTelephoneChanging(string value);
+ partial void OnTelephoneChanged();
+ partial void OnMaritalStatusChanging(string value);
+ partial void OnMaritalStatusChanged();
+ partial void OnBloodGroupChanging(string value);
+ partial void OnBloodGroupChanged();
+ partial void OnRegisteredTypeChanging(string value);
+ partial void OnRegisteredTypeChanged();
+ partial void OnAgeChanging(System.Nullable value);
+ partial void OnAgeChanged();
+ partial void OnJobNumberChanging(string value);
+ partial void OnJobNumberChanged();
+ partial void OnCardContentChanging(string value);
+ partial void OnCardContentChanged();
+ partial void OnContactTelChanging(string value);
+ partial void OnContactTelChanged();
+ partial void OnSecondContactsChanging(string value);
+ partial void OnSecondContactsChanged();
+ partial void OnSecondContactsTelChanging(string value);
+ partial void OnSecondContactsTelChanged();
+ partial void OnNewAddressChanging(string value);
+ partial void OnNewAddressChanged();
+ partial void OnHealthConditionChanging(string value);
+ partial void OnHealthConditionChanged();
+ partial void OnHealthFileChanging(string value);
+ partial void OnHealthFileChanged();
+ partial void OnBuildAreaChanging(string value);
+ partial void OnBuildAreaChanged();
+ partial void OnTraPrincipalChanging(string value);
+ partial void OnTraPrincipalChanged();
+ partial void OnRegisterDateChanging(System.Nullable value);
+ partial void OnRegisterDateChanged();
+ partial void OnCategoryTypeChanging(string value);
+ partial void OnCategoryTypeChanged();
+ partial void OnStationChanging(string value);
+ partial void OnStationChanged();
+ partial void OnCategoryChanging(string value);
+ partial void OnCategoryChanged();
+ partial void OnCategoryLevelChanging(string value);
+ partial void OnCategoryLevelChanged();
+ partial void OnEntranceDateChanging(System.Nullable value);
+ partial void OnEntranceDateChanged();
+ partial void OnIsOutChanging(string value);
+ partial void OnIsOutChanged();
+ partial void OnLeaveDateChanging(System.Nullable value);
+ partial void OnLeaveDateChanged();
+ partial void OnIsBlackListChanging(string value);
+ partial void OnIsBlackListChanged();
+ partial void OnAgreementIdChanging(string value);
+ partial void OnAgreementIdChanged();
+ partial void OnHasInsuranceChanging(string value);
+ partial void OnHasInsuranceChanged();
+ partial void OnDeviceNumberChanging(string value);
+ partial void OnDeviceNumberChanged();
+ partial void OnIsActiveChanging(string value);
+ partial void OnIsActiveChanged();
+ partial void OnDepartIdChanging(string value);
+ partial void OnDepartIdChanged();
+ partial void OnDepartNameChanging(string value);
+ partial void OnDepartNameChanged();
+ partial void OnOwnerDepartIdChanging(string value);
+ partial void OnOwnerDepartIdChanged();
+ partial void OnUploadTimeChanging(System.Nullable value);
+ partial void OnUploadTimeChanged();
+ #endregion
+
+ public Bo_Sheng_Person()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")]
+ public System.Nullable CreateDate
+ {
+ get
+ {
+ return this._CreateDate;
+ }
+ set
+ {
+ if ((this._CreateDate != value))
+ {
+ this.OnCreateDateChanging(value);
+ this.SendPropertyChanging();
+ this._CreateDate = value;
+ this.SendPropertyChanged("CreateDate");
+ this.OnCreateDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateUser", DbType="NVarChar(50)")]
+ public string CreateUser
+ {
+ get
+ {
+ return this._CreateUser;
+ }
+ set
+ {
+ if ((this._CreateUser != value))
+ {
+ this.OnCreateUserChanging(value);
+ this.SendPropertyChanging();
+ this._CreateUser = value;
+ this.SendPropertyChanged("CreateUser");
+ this.OnCreateUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperDate", DbType="DateTime")]
+ public System.Nullable OperDate
+ {
+ get
+ {
+ return this._OperDate;
+ }
+ set
+ {
+ if ((this._OperDate != value))
+ {
+ this.OnOperDateChanging(value);
+ this.SendPropertyChanging();
+ this._OperDate = value;
+ this.SendPropertyChanged("OperDate");
+ this.OnOperDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperUser", DbType="NVarChar(50)")]
+ public string OperUser
+ {
+ get
+ {
+ return this._OperUser;
+ }
+ set
+ {
+ if ((this._OperUser != value))
+ {
+ this.OnOperUserChanging(value);
+ this.SendPropertyChanging();
+ this._OperUser = value;
+ this.SendPropertyChanged("OperUser");
+ this.OnOperUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteUser", DbType="NVarChar(50)")]
+ public string DeleteUser
+ {
+ get
+ {
+ return this._DeleteUser;
+ }
+ set
+ {
+ if ((this._DeleteUser != value))
+ {
+ this.OnDeleteUserChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteUser = value;
+ this.SendPropertyChanged("DeleteUser");
+ this.OnDeleteUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteDate", DbType="DateTime")]
+ public System.Nullable DeleteDate
+ {
+ get
+ {
+ return this._DeleteDate;
+ }
+ set
+ {
+ if ((this._DeleteDate != value))
+ {
+ this.OnDeleteDateChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteDate = value;
+ this.SendPropertyChanged("DeleteDate");
+ this.OnDeleteDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteTag", DbType="NVarChar(50)")]
+ public string DeleteTag
+ {
+ get
+ {
+ return this._DeleteTag;
+ }
+ set
+ {
+ if ((this._DeleteTag != value))
+ {
+ this.OnDeleteTagChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteTag = value;
+ this.SendPropertyChanged("DeleteTag");
+ this.OnDeleteTagChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(100)")]
+ public string Name
+ {
+ get
+ {
+ return this._Name;
+ }
+ set
+ {
+ if ((this._Name != value))
+ {
+ this.OnNameChanging(value);
+ this.SendPropertyChanging();
+ this._Name = value;
+ this.SendPropertyChanged("Name");
+ this.OnNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Sex", DbType="NVarChar(2)")]
+ public string Sex
+ {
+ get
+ {
+ return this._Sex;
+ }
+ set
+ {
+ if ((this._Sex != value))
+ {
+ this.OnSexChanging(value);
+ this.SendPropertyChanging();
+ this._Sex = value;
+ this.SendPropertyChanged("Sex");
+ this.OnSexChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BirthDay", DbType="DateTime")]
+ public System.Nullable BirthDay
+ {
+ get
+ {
+ return this._BirthDay;
+ }
+ set
+ {
+ if ((this._BirthDay != value))
+ {
+ this.OnBirthDayChanging(value);
+ this.SendPropertyChanging();
+ this._BirthDay = value;
+ this.SendPropertyChanged("BirthDay");
+ this.OnBirthDayChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
+ public string Address
+ {
+ get
+ {
+ return this._Address;
+ }
+ set
+ {
+ if ((this._Address != value))
+ {
+ this.OnAddressChanging(value);
+ this.SendPropertyChanging();
+ this._Address = value;
+ this.SendPropertyChanged("Address");
+ this.OnAddressChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Nation", DbType="NVarChar(50)")]
+ public string Nation
+ {
+ get
+ {
+ return this._Nation;
+ }
+ set
+ {
+ if ((this._Nation != value))
+ {
+ this.OnNationChanging(value);
+ this.SendPropertyChanging();
+ this._Nation = value;
+ this.SendPropertyChanged("Nation");
+ this.OnNationChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdentifyID", DbType="NVarChar(50)")]
+ public string IdentifyID
+ {
+ get
+ {
+ return this._IdentifyID;
+ }
+ set
+ {
+ if ((this._IdentifyID != value))
+ {
+ this.OnIdentifyIDChanging(value);
+ this.SendPropertyChanging();
+ this._IdentifyID = value;
+ this.SendPropertyChanged("IdentifyID");
+ this.OnIdentifyIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Kind", DbType="NVarChar(50)")]
+ public string Kind
+ {
+ get
+ {
+ return this._Kind;
+ }
+ set
+ {
+ if ((this._Kind != value))
+ {
+ this.OnKindChanging(value);
+ this.SendPropertyChanging();
+ this._Kind = value;
+ this.SendPropertyChanged("Kind");
+ this.OnKindChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Photo", DbType="NVarChar(2000)")]
+ public string Photo
+ {
+ get
+ {
+ return this._Photo;
+ }
+ set
+ {
+ if ((this._Photo != value))
+ {
+ this.OnPhotoChanging(value);
+ this.SendPropertyChanging();
+ this._Photo = value;
+ this.SendPropertyChanged("Photo");
+ this.OnPhotoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Police", DbType="NVarChar(50)")]
+ public string Police
+ {
+ get
+ {
+ return this._Police;
+ }
+ set
+ {
+ if ((this._Police != value))
+ {
+ this.OnPoliceChanging(value);
+ this.SendPropertyChanging();
+ this._Police = value;
+ this.SendPropertyChanged("Police");
+ this.OnPoliceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidPeriodStart", DbType="NVarChar(50)")]
+ public string ValidPeriodStart
+ {
+ get
+ {
+ return this._ValidPeriodStart;
+ }
+ set
+ {
+ if ((this._ValidPeriodStart != value))
+ {
+ this.OnValidPeriodStartChanging(value);
+ this.SendPropertyChanging();
+ this._ValidPeriodStart = value;
+ this.SendPropertyChanged("ValidPeriodStart");
+ this.OnValidPeriodStartChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidPeriodEnd", DbType="NVarChar(50)")]
+ public string ValidPeriodEnd
+ {
+ get
+ {
+ return this._ValidPeriodEnd;
+ }
+ set
+ {
+ if ((this._ValidPeriodEnd != value))
+ {
+ this.OnValidPeriodEndChanging(value);
+ this.SendPropertyChanging();
+ this._ValidPeriodEnd = value;
+ this.SendPropertyChanged("ValidPeriodEnd");
+ this.OnValidPeriodEndChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Education", DbType="NVarChar(50)")]
+ public string Education
+ {
+ get
+ {
+ return this._Education;
+ }
+ set
+ {
+ if ((this._Education != value))
+ {
+ this.OnEducationChanging(value);
+ this.SendPropertyChanging();
+ this._Education = value;
+ this.SendPropertyChanged("Education");
+ this.OnEducationChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Native", DbType="NVarChar(500)")]
+ public string Native
+ {
+ get
+ {
+ return this._Native;
+ }
+ set
+ {
+ if ((this._Native != value))
+ {
+ this.OnNativeChanging(value);
+ this.SendPropertyChanging();
+ this._Native = value;
+ this.SendPropertyChanged("Native");
+ this.OnNativeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Telephone", DbType="NVarChar(50)")]
+ public string Telephone
+ {
+ get
+ {
+ return this._Telephone;
+ }
+ set
+ {
+ if ((this._Telephone != value))
+ {
+ this.OnTelephoneChanging(value);
+ this.SendPropertyChanging();
+ this._Telephone = value;
+ this.SendPropertyChanged("Telephone");
+ this.OnTelephoneChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaritalStatus", DbType="NVarChar(50)")]
+ public string MaritalStatus
+ {
+ get
+ {
+ return this._MaritalStatus;
+ }
+ set
+ {
+ if ((this._MaritalStatus != value))
+ {
+ this.OnMaritalStatusChanging(value);
+ this.SendPropertyChanging();
+ this._MaritalStatus = value;
+ this.SendPropertyChanged("MaritalStatus");
+ this.OnMaritalStatusChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BloodGroup", DbType="NVarChar(50)")]
+ public string BloodGroup
+ {
+ get
+ {
+ return this._BloodGroup;
+ }
+ set
+ {
+ if ((this._BloodGroup != value))
+ {
+ this.OnBloodGroupChanging(value);
+ this.SendPropertyChanging();
+ this._BloodGroup = value;
+ this.SendPropertyChanged("BloodGroup");
+ this.OnBloodGroupChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisteredType", DbType="NVarChar(50)")]
+ public string RegisteredType
+ {
+ get
+ {
+ return this._RegisteredType;
+ }
+ set
+ {
+ if ((this._RegisteredType != value))
+ {
+ this.OnRegisteredTypeChanging(value);
+ this.SendPropertyChanging();
+ this._RegisteredType = value;
+ this.SendPropertyChanged("RegisteredType");
+ this.OnRegisteredTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Age", DbType="Int")]
+ public System.Nullable Age
+ {
+ get
+ {
+ return this._Age;
+ }
+ set
+ {
+ if ((this._Age != value))
+ {
+ this.OnAgeChanging(value);
+ this.SendPropertyChanging();
+ this._Age = value;
+ this.SendPropertyChanged("Age");
+ this.OnAgeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobNumber", DbType="NVarChar(50)")]
+ public string JobNumber
+ {
+ get
+ {
+ return this._JobNumber;
+ }
+ set
+ {
+ if ((this._JobNumber != value))
+ {
+ this.OnJobNumberChanging(value);
+ this.SendPropertyChanging();
+ this._JobNumber = value;
+ this.SendPropertyChanged("JobNumber");
+ this.OnJobNumberChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CardContent", DbType="NVarChar(50)")]
+ public string CardContent
+ {
+ get
+ {
+ return this._CardContent;
+ }
+ set
+ {
+ if ((this._CardContent != value))
+ {
+ this.OnCardContentChanging(value);
+ this.SendPropertyChanging();
+ this._CardContent = value;
+ this.SendPropertyChanged("CardContent");
+ this.OnCardContentChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactTel", DbType="NVarChar(50)")]
+ public string ContactTel
+ {
+ get
+ {
+ return this._ContactTel;
+ }
+ set
+ {
+ if ((this._ContactTel != value))
+ {
+ this.OnContactTelChanging(value);
+ this.SendPropertyChanging();
+ this._ContactTel = value;
+ this.SendPropertyChanged("ContactTel");
+ this.OnContactTelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SecondContacts", DbType="NVarChar(50)")]
+ public string SecondContacts
+ {
+ get
+ {
+ return this._SecondContacts;
+ }
+ set
+ {
+ if ((this._SecondContacts != value))
+ {
+ this.OnSecondContactsChanging(value);
+ this.SendPropertyChanging();
+ this._SecondContacts = value;
+ this.SendPropertyChanged("SecondContacts");
+ this.OnSecondContactsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SecondContactsTel", DbType="NVarChar(50)")]
+ public string SecondContactsTel
+ {
+ get
+ {
+ return this._SecondContactsTel;
+ }
+ set
+ {
+ if ((this._SecondContactsTel != value))
+ {
+ this.OnSecondContactsTelChanging(value);
+ this.SendPropertyChanging();
+ this._SecondContactsTel = value;
+ this.SendPropertyChanged("SecondContactsTel");
+ this.OnSecondContactsTelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NewAddress", DbType="NVarChar(50)")]
+ public string NewAddress
+ {
+ get
+ {
+ return this._NewAddress;
+ }
+ set
+ {
+ if ((this._NewAddress != value))
+ {
+ this.OnNewAddressChanging(value);
+ this.SendPropertyChanging();
+ this._NewAddress = value;
+ this.SendPropertyChanged("NewAddress");
+ this.OnNewAddressChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HealthCondition", DbType="NVarChar(50)")]
+ public string HealthCondition
+ {
+ get
+ {
+ return this._HealthCondition;
+ }
+ set
+ {
+ if ((this._HealthCondition != value))
+ {
+ this.OnHealthConditionChanging(value);
+ this.SendPropertyChanging();
+ this._HealthCondition = value;
+ this.SendPropertyChanged("HealthCondition");
+ this.OnHealthConditionChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HealthFile", DbType="NVarChar(500)")]
+ public string HealthFile
+ {
+ get
+ {
+ return this._HealthFile;
+ }
+ set
+ {
+ if ((this._HealthFile != value))
+ {
+ this.OnHealthFileChanging(value);
+ this.SendPropertyChanging();
+ this._HealthFile = value;
+ this.SendPropertyChanged("HealthFile");
+ this.OnHealthFileChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BuildArea", DbType="NVarChar(50)")]
+ public string BuildArea
+ {
+ get
+ {
+ return this._BuildArea;
+ }
+ set
+ {
+ if ((this._BuildArea != value))
+ {
+ this.OnBuildAreaChanging(value);
+ this.SendPropertyChanging();
+ this._BuildArea = value;
+ this.SendPropertyChanged("BuildArea");
+ this.OnBuildAreaChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TraPrincipal", DbType="NVarChar(50)")]
+ public string TraPrincipal
+ {
+ get
+ {
+ return this._TraPrincipal;
+ }
+ set
+ {
+ if ((this._TraPrincipal != value))
+ {
+ this.OnTraPrincipalChanging(value);
+ this.SendPropertyChanging();
+ this._TraPrincipal = value;
+ this.SendPropertyChanged("TraPrincipal");
+ this.OnTraPrincipalChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterDate", DbType="DateTime")]
+ public System.Nullable RegisterDate
+ {
+ get
+ {
+ return this._RegisterDate;
+ }
+ set
+ {
+ if ((this._RegisterDate != value))
+ {
+ this.OnRegisterDateChanging(value);
+ this.SendPropertyChanging();
+ this._RegisterDate = value;
+ this.SendPropertyChanged("RegisterDate");
+ this.OnRegisterDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CategoryType", DbType="NVarChar(50)")]
+ public string CategoryType
+ {
+ get
+ {
+ return this._CategoryType;
+ }
+ set
+ {
+ if ((this._CategoryType != value))
+ {
+ this.OnCategoryTypeChanging(value);
+ this.SendPropertyChanging();
+ this._CategoryType = value;
+ this.SendPropertyChanged("CategoryType");
+ this.OnCategoryTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Station", DbType="NVarChar(50)")]
+ public string Station
+ {
+ get
+ {
+ return this._Station;
+ }
+ set
+ {
+ if ((this._Station != value))
+ {
+ this.OnStationChanging(value);
+ this.SendPropertyChanging();
+ this._Station = value;
+ this.SendPropertyChanged("Station");
+ this.OnStationChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Category", DbType="NVarChar(50)")]
+ public string Category
+ {
+ get
+ {
+ return this._Category;
+ }
+ set
+ {
+ if ((this._Category != value))
+ {
+ this.OnCategoryChanging(value);
+ this.SendPropertyChanging();
+ this._Category = value;
+ this.SendPropertyChanged("Category");
+ this.OnCategoryChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CategoryLevel", DbType="NVarChar(50)")]
+ public string CategoryLevel
+ {
+ get
+ {
+ return this._CategoryLevel;
+ }
+ set
+ {
+ if ((this._CategoryLevel != value))
+ {
+ this.OnCategoryLevelChanging(value);
+ this.SendPropertyChanging();
+ this._CategoryLevel = value;
+ this.SendPropertyChanged("CategoryLevel");
+ this.OnCategoryLevelChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EntranceDate", DbType="DateTime")]
+ public System.Nullable EntranceDate
+ {
+ get
+ {
+ return this._EntranceDate;
+ }
+ set
+ {
+ if ((this._EntranceDate != value))
+ {
+ this.OnEntranceDateChanging(value);
+ this.SendPropertyChanging();
+ this._EntranceDate = value;
+ this.SendPropertyChanged("EntranceDate");
+ this.OnEntranceDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOut", DbType="NVarChar(50)")]
+ public string IsOut
+ {
+ get
+ {
+ return this._IsOut;
+ }
+ set
+ {
+ if ((this._IsOut != value))
+ {
+ this.OnIsOutChanging(value);
+ this.SendPropertyChanging();
+ this._IsOut = value;
+ this.SendPropertyChanged("IsOut");
+ this.OnIsOutChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaveDate", DbType="DateTime")]
+ public System.Nullable LeaveDate
+ {
+ get
+ {
+ return this._LeaveDate;
+ }
+ set
+ {
+ if ((this._LeaveDate != value))
+ {
+ this.OnLeaveDateChanging(value);
+ this.SendPropertyChanging();
+ this._LeaveDate = value;
+ this.SendPropertyChanged("LeaveDate");
+ this.OnLeaveDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsBlackList", DbType="NVarChar(50)")]
+ public string IsBlackList
+ {
+ get
+ {
+ return this._IsBlackList;
+ }
+ set
+ {
+ if ((this._IsBlackList != value))
+ {
+ this.OnIsBlackListChanging(value);
+ this.SendPropertyChanging();
+ this._IsBlackList = value;
+ this.SendPropertyChanged("IsBlackList");
+ this.OnIsBlackListChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AgreementId", DbType="NVarChar(100)")]
+ public string AgreementId
+ {
+ get
+ {
+ return this._AgreementId;
+ }
+ set
+ {
+ if ((this._AgreementId != value))
+ {
+ this.OnAgreementIdChanging(value);
+ this.SendPropertyChanging();
+ this._AgreementId = value;
+ this.SendPropertyChanged("AgreementId");
+ this.OnAgreementIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasInsurance", DbType="NVarChar(50)")]
+ public string HasInsurance
+ {
+ get
+ {
+ return this._HasInsurance;
+ }
+ set
+ {
+ if ((this._HasInsurance != value))
+ {
+ this.OnHasInsuranceChanging(value);
+ this.SendPropertyChanging();
+ this._HasInsurance = value;
+ this.SendPropertyChanged("HasInsurance");
+ this.OnHasInsuranceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceNumber", DbType="NVarChar(50)")]
+ public string DeviceNumber
+ {
+ get
+ {
+ return this._DeviceNumber;
+ }
+ set
+ {
+ if ((this._DeviceNumber != value))
+ {
+ this.OnDeviceNumberChanging(value);
+ this.SendPropertyChanging();
+ this._DeviceNumber = value;
+ this.SendPropertyChanged("DeviceNumber");
+ this.OnDeviceNumberChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsActive", DbType="NVarChar(50)")]
+ public string IsActive
+ {
+ get
+ {
+ return this._IsActive;
+ }
+ set
+ {
+ if ((this._IsActive != value))
+ {
+ this.OnIsActiveChanging(value);
+ this.SendPropertyChanging();
+ this._IsActive = value;
+ this.SendPropertyChanged("IsActive");
+ this.OnIsActiveChanged();
+ }
+ }
+ }
+
+ [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="_DepartName", DbType="NVarChar(100)")]
+ public string DepartName
+ {
+ get
+ {
+ return this._DepartName;
+ }
+ set
+ {
+ if ((this._DepartName != value))
+ {
+ this.OnDepartNameChanging(value);
+ this.SendPropertyChanging();
+ this._DepartName = value;
+ this.SendPropertyChanged("DepartName");
+ this.OnDepartNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerDepartId", DbType="NVarChar(50)")]
+ public string OwnerDepartId
+ {
+ get
+ {
+ return this._OwnerDepartId;
+ }
+ set
+ {
+ if ((this._OwnerDepartId != value))
+ {
+ this.OnOwnerDepartIdChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDepartId = value;
+ this.SendPropertyChanged("OwnerDepartId");
+ this.OnOwnerDepartIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadTime", DbType="DateTime")]
+ public System.Nullable UploadTime
+ {
+ get
+ {
+ return this._UploadTime;
+ }
+ set
+ {
+ if ((this._UploadTime != value))
+ {
+ this.OnUploadTimeChanging(value);
+ this.SendPropertyChanging();
+ this._UploadTime = value;
+ this.SendPropertyChanged("UploadTime");
+ this.OnUploadTimeChanged();
+ }
+ }
+ }
+
+ 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.Bo_Sheng_PersonTrainRecord")]
+ public partial class Bo_Sheng_PersonTrainRecord : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private string _EmpName;
+
+ private string _IdentifyId;
+
+ private string _CategoryName;
+
+ private string _RecordId;
+
+ private string _DepartId;
+
+ private string _DepartName;
+
+ private string _TrainPeriod;
+
+ private System.Nullable _TotalScore;
+
+ private System.Nullable _PassScore;
+
+ private System.Nullable _Score;
+
+ private string _IsPass;
+
+ private string _GroupNo;
+
+ private string _ExamNo;
+
+ private string _ExamCount;
+
+ private string _DeviceNo;
+
+ private string _OwnerDepartId;
+
+ private string _Answers;
+
+ private string _RecordName;
+
+ private string _TrainType;
+
+ private string _PaperMode;
+
+ private string _TrainMode;
+
+ private string _TrainPrincipal;
+
+ private System.Nullable _TrainStartDate;
+
+ private System.Nullable _TrainEndDate;
+
+ private string _TrainContent;
+
+ private string _TrainDescript;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnEmpNameChanging(string value);
+ partial void OnEmpNameChanged();
+ partial void OnIdentifyIdChanging(string value);
+ partial void OnIdentifyIdChanged();
+ partial void OnCategoryNameChanging(string value);
+ partial void OnCategoryNameChanged();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnDepartIdChanging(string value);
+ partial void OnDepartIdChanged();
+ partial void OnDepartNameChanging(string value);
+ partial void OnDepartNameChanged();
+ partial void OnTrainPeriodChanging(string value);
+ partial void OnTrainPeriodChanged();
+ partial void OnTotalScoreChanging(System.Nullable value);
+ partial void OnTotalScoreChanged();
+ partial void OnPassScoreChanging(System.Nullable value);
+ partial void OnPassScoreChanged();
+ partial void OnScoreChanging(System.Nullable value);
+ partial void OnScoreChanged();
+ partial void OnIsPassChanging(string value);
+ partial void OnIsPassChanged();
+ partial void OnGroupNoChanging(string value);
+ partial void OnGroupNoChanged();
+ partial void OnExamNoChanging(string value);
+ partial void OnExamNoChanged();
+ partial void OnExamCountChanging(string value);
+ partial void OnExamCountChanged();
+ partial void OnDeviceNoChanging(string value);
+ partial void OnDeviceNoChanged();
+ partial void OnOwnerDepartIdChanging(string value);
+ partial void OnOwnerDepartIdChanged();
+ partial void OnAnswersChanging(string value);
+ partial void OnAnswersChanged();
+ partial void OnRecordNameChanging(string value);
+ partial void OnRecordNameChanged();
+ partial void OnTrainTypeChanging(string value);
+ partial void OnTrainTypeChanged();
+ partial void OnPaperModeChanging(string value);
+ partial void OnPaperModeChanged();
+ partial void OnTrainModeChanging(string value);
+ partial void OnTrainModeChanged();
+ partial void OnTrainPrincipalChanging(string value);
+ partial void OnTrainPrincipalChanged();
+ partial void OnTrainStartDateChanging(System.Nullable value);
+ partial void OnTrainStartDateChanged();
+ partial void OnTrainEndDateChanging(System.Nullable value);
+ partial void OnTrainEndDateChanged();
+ partial void OnTrainContentChanging(string value);
+ partial void OnTrainContentChanged();
+ partial void OnTrainDescriptChanging(string value);
+ partial void OnTrainDescriptChanged();
+ #endregion
+
+ public Bo_Sheng_PersonTrainRecord()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmpName", DbType="NVarChar(50)")]
+ public string EmpName
+ {
+ get
+ {
+ return this._EmpName;
+ }
+ set
+ {
+ if ((this._EmpName != value))
+ {
+ this.OnEmpNameChanging(value);
+ this.SendPropertyChanging();
+ this._EmpName = value;
+ this.SendPropertyChanged("EmpName");
+ this.OnEmpNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdentifyId", DbType="NVarChar(50)")]
+ public string IdentifyId
+ {
+ get
+ {
+ return this._IdentifyId;
+ }
+ set
+ {
+ if ((this._IdentifyId != value))
+ {
+ this.OnIdentifyIdChanging(value);
+ this.SendPropertyChanging();
+ this._IdentifyId = value;
+ this.SendPropertyChanged("IdentifyId");
+ this.OnIdentifyIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CategoryName", DbType="NVarChar(50)")]
+ public string CategoryName
+ {
+ get
+ {
+ return this._CategoryName;
+ }
+ set
+ {
+ if ((this._CategoryName != value))
+ {
+ this.OnCategoryNameChanging(value);
+ this.SendPropertyChanging();
+ this._CategoryName = value;
+ this.SendPropertyChanged("CategoryName");
+ this.OnCategoryNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50)")]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [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="_DepartName", DbType="NVarChar(50)")]
+ public string DepartName
+ {
+ get
+ {
+ return this._DepartName;
+ }
+ set
+ {
+ if ((this._DepartName != value))
+ {
+ this.OnDepartNameChanging(value);
+ this.SendPropertyChanging();
+ this._DepartName = value;
+ this.SendPropertyChanged("DepartName");
+ this.OnDepartNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPeriod", DbType="NVarChar(50)")]
+ public string TrainPeriod
+ {
+ get
+ {
+ return this._TrainPeriod;
+ }
+ set
+ {
+ if ((this._TrainPeriod != value))
+ {
+ this.OnTrainPeriodChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPeriod = value;
+ this.SendPropertyChanged("TrainPeriod");
+ this.OnTrainPeriodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalScore", DbType="Decimal(18,2)")]
+ public System.Nullable TotalScore
+ {
+ get
+ {
+ return this._TotalScore;
+ }
+ set
+ {
+ if ((this._TotalScore != value))
+ {
+ this.OnTotalScoreChanging(value);
+ this.SendPropertyChanging();
+ this._TotalScore = value;
+ this.SendPropertyChanged("TotalScore");
+ this.OnTotalScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PassScore", DbType="Decimal(18,2)")]
+ public System.Nullable PassScore
+ {
+ get
+ {
+ return this._PassScore;
+ }
+ set
+ {
+ if ((this._PassScore != value))
+ {
+ this.OnPassScoreChanging(value);
+ this.SendPropertyChanging();
+ this._PassScore = value;
+ this.SendPropertyChanged("PassScore");
+ this.OnPassScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Score", DbType="Decimal(18,2)")]
+ public System.Nullable Score
+ {
+ get
+ {
+ return this._Score;
+ }
+ set
+ {
+ if ((this._Score != value))
+ {
+ this.OnScoreChanging(value);
+ this.SendPropertyChanging();
+ this._Score = value;
+ this.SendPropertyChanged("Score");
+ this.OnScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPass", DbType="NVarChar(50)")]
+ public string IsPass
+ {
+ get
+ {
+ return this._IsPass;
+ }
+ set
+ {
+ if ((this._IsPass != value))
+ {
+ this.OnIsPassChanging(value);
+ this.SendPropertyChanging();
+ this._IsPass = value;
+ this.SendPropertyChanged("IsPass");
+ this.OnIsPassChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GroupNo", DbType="NVarChar(50)")]
+ public string GroupNo
+ {
+ get
+ {
+ return this._GroupNo;
+ }
+ set
+ {
+ if ((this._GroupNo != value))
+ {
+ this.OnGroupNoChanging(value);
+ this.SendPropertyChanging();
+ this._GroupNo = value;
+ this.SendPropertyChanged("GroupNo");
+ this.OnGroupNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamNo", DbType="NVarChar(50)")]
+ public string ExamNo
+ {
+ get
+ {
+ return this._ExamNo;
+ }
+ set
+ {
+ if ((this._ExamNo != value))
+ {
+ this.OnExamNoChanging(value);
+ this.SendPropertyChanging();
+ this._ExamNo = value;
+ this.SendPropertyChanged("ExamNo");
+ this.OnExamNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamCount", DbType="NVarChar(50)")]
+ public string ExamCount
+ {
+ get
+ {
+ return this._ExamCount;
+ }
+ set
+ {
+ if ((this._ExamCount != value))
+ {
+ this.OnExamCountChanging(value);
+ this.SendPropertyChanging();
+ this._ExamCount = value;
+ this.SendPropertyChanged("ExamCount");
+ this.OnExamCountChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceNo", DbType="NVarChar(50)")]
+ public string DeviceNo
+ {
+ get
+ {
+ return this._DeviceNo;
+ }
+ set
+ {
+ if ((this._DeviceNo != value))
+ {
+ this.OnDeviceNoChanging(value);
+ this.SendPropertyChanging();
+ this._DeviceNo = value;
+ this.SendPropertyChanged("DeviceNo");
+ this.OnDeviceNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerDepartId", DbType="NVarChar(50)")]
+ public string OwnerDepartId
+ {
+ get
+ {
+ return this._OwnerDepartId;
+ }
+ set
+ {
+ if ((this._OwnerDepartId != value))
+ {
+ this.OnOwnerDepartIdChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDepartId = value;
+ this.SendPropertyChanged("OwnerDepartId");
+ this.OnOwnerDepartIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Answers", DbType="NVarChar(500)")]
+ public string Answers
+ {
+ get
+ {
+ return this._Answers;
+ }
+ set
+ {
+ if ((this._Answers != value))
+ {
+ this.OnAnswersChanging(value);
+ this.SendPropertyChanging();
+ this._Answers = value;
+ this.SendPropertyChanged("Answers");
+ this.OnAnswersChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordName", DbType="NVarChar(50)")]
+ public string RecordName
+ {
+ get
+ {
+ return this._RecordName;
+ }
+ set
+ {
+ if ((this._RecordName != value))
+ {
+ this.OnRecordNameChanging(value);
+ this.SendPropertyChanging();
+ this._RecordName = value;
+ this.SendPropertyChanged("RecordName");
+ this.OnRecordNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainType", DbType="NVarChar(50)")]
+ public string TrainType
+ {
+ get
+ {
+ return this._TrainType;
+ }
+ set
+ {
+ if ((this._TrainType != value))
+ {
+ this.OnTrainTypeChanging(value);
+ this.SendPropertyChanging();
+ this._TrainType = value;
+ this.SendPropertyChanged("TrainType");
+ this.OnTrainTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PaperMode", DbType="NVarChar(50)")]
+ public string PaperMode
+ {
+ get
+ {
+ return this._PaperMode;
+ }
+ set
+ {
+ if ((this._PaperMode != value))
+ {
+ this.OnPaperModeChanging(value);
+ this.SendPropertyChanging();
+ this._PaperMode = value;
+ this.SendPropertyChanged("PaperMode");
+ this.OnPaperModeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainMode", DbType="NVarChar(50)")]
+ public string TrainMode
+ {
+ get
+ {
+ return this._TrainMode;
+ }
+ set
+ {
+ if ((this._TrainMode != value))
+ {
+ this.OnTrainModeChanging(value);
+ this.SendPropertyChanging();
+ this._TrainMode = value;
+ this.SendPropertyChanged("TrainMode");
+ this.OnTrainModeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPrincipal", DbType="NVarChar(50)")]
+ public string TrainPrincipal
+ {
+ get
+ {
+ return this._TrainPrincipal;
+ }
+ set
+ {
+ if ((this._TrainPrincipal != value))
+ {
+ this.OnTrainPrincipalChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPrincipal = value;
+ this.SendPropertyChanged("TrainPrincipal");
+ this.OnTrainPrincipalChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainStartDate", DbType="DateTime")]
+ public System.Nullable TrainStartDate
+ {
+ get
+ {
+ return this._TrainStartDate;
+ }
+ set
+ {
+ if ((this._TrainStartDate != value))
+ {
+ this.OnTrainStartDateChanging(value);
+ this.SendPropertyChanging();
+ this._TrainStartDate = value;
+ this.SendPropertyChanged("TrainStartDate");
+ this.OnTrainStartDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainEndDate", DbType="DateTime")]
+ public System.Nullable TrainEndDate
+ {
+ get
+ {
+ return this._TrainEndDate;
+ }
+ set
+ {
+ if ((this._TrainEndDate != value))
+ {
+ this.OnTrainEndDateChanging(value);
+ this.SendPropertyChanging();
+ this._TrainEndDate = value;
+ this.SendPropertyChanged("TrainEndDate");
+ this.OnTrainEndDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainContent", DbType="NVarChar(2000)")]
+ public string TrainContent
+ {
+ get
+ {
+ return this._TrainContent;
+ }
+ set
+ {
+ if ((this._TrainContent != value))
+ {
+ this.OnTrainContentChanging(value);
+ this.SendPropertyChanging();
+ this._TrainContent = value;
+ this.SendPropertyChanged("TrainContent");
+ this.OnTrainContentChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainDescript", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string TrainDescript
+ {
+ get
+ {
+ return this._TrainDescript;
+ }
+ set
+ {
+ if ((this._TrainDescript != value))
+ {
+ this.OnTrainDescriptChanging(value);
+ this.SendPropertyChanging();
+ this._TrainDescript = value;
+ this.SendPropertyChanged("TrainDescript");
+ this.OnTrainDescriptChanged();
+ }
+ }
+ }
+
+ 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.Bo_Sheng_Train")]
+ public partial class Bo_Sheng_Train : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private string _DeleteUser;
+
+ private System.Nullable _DeleteDate;
+
+ private string _DeleteTag;
+
+ private string _RecordName;
+
+ private string _TrainType;
+
+ private string _PaperMode;
+
+ private string _TrainMode;
+
+ private string _TrainPrincipal;
+
+ private System.Nullable _TrainStartDate;
+
+ private System.Nullable _TrainEndDate;
+
+ private string _TrainContent;
+
+ private string _TrainDescript;
+
+ private string _TrainPeriod;
+
+ private System.Nullable _PersonCount;
+
+ private System.Nullable _PassedCount;
+
+ private string _CoverImg;
+
+ private string _DemandID;
+
+ private System.Nullable _CourseCount;
+
+ private string _CourseDuration;
+
+ private string _Source;
+
+ private string _Description;
+
+ private string _DeviceNo;
+
+ private string _OwnerDepartId;
+
+ private System.Nullable _UploadTime;
+
+ private string _OwnerDeptName;
+
+ private string _TrainDepart;
+
+ private System.Nullable _CreateDate;
+
+ private string _CreateUser;
+
+ private System.Nullable _OperDate;
+
+ private string _OperUser;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnDeleteUserChanging(string value);
+ partial void OnDeleteUserChanged();
+ partial void OnDeleteDateChanging(System.Nullable value);
+ partial void OnDeleteDateChanged();
+ partial void OnDeleteTagChanging(string value);
+ partial void OnDeleteTagChanged();
+ partial void OnRecordNameChanging(string value);
+ partial void OnRecordNameChanged();
+ partial void OnTrainTypeChanging(string value);
+ partial void OnTrainTypeChanged();
+ partial void OnPaperModeChanging(string value);
+ partial void OnPaperModeChanged();
+ partial void OnTrainModeChanging(string value);
+ partial void OnTrainModeChanged();
+ partial void OnTrainPrincipalChanging(string value);
+ partial void OnTrainPrincipalChanged();
+ partial void OnTrainStartDateChanging(System.Nullable value);
+ partial void OnTrainStartDateChanged();
+ partial void OnTrainEndDateChanging(System.Nullable value);
+ partial void OnTrainEndDateChanged();
+ partial void OnTrainContentChanging(string value);
+ partial void OnTrainContentChanged();
+ partial void OnTrainDescriptChanging(string value);
+ partial void OnTrainDescriptChanged();
+ partial void OnTrainPeriodChanging(string value);
+ partial void OnTrainPeriodChanged();
+ partial void OnPersonCountChanging(System.Nullable value);
+ partial void OnPersonCountChanged();
+ partial void OnPassedCountChanging(System.Nullable value);
+ partial void OnPassedCountChanged();
+ partial void OnCoverImgChanging(string value);
+ partial void OnCoverImgChanged();
+ partial void OnDemandIDChanging(string value);
+ partial void OnDemandIDChanged();
+ partial void OnCourseCountChanging(System.Nullable value);
+ partial void OnCourseCountChanged();
+ partial void OnCourseDurationChanging(string value);
+ partial void OnCourseDurationChanged();
+ partial void OnSourceChanging(string value);
+ partial void OnSourceChanged();
+ partial void OnDescriptionChanging(string value);
+ partial void OnDescriptionChanged();
+ partial void OnDeviceNoChanging(string value);
+ partial void OnDeviceNoChanged();
+ partial void OnOwnerDepartIdChanging(string value);
+ partial void OnOwnerDepartIdChanged();
+ partial void OnUploadTimeChanging(System.Nullable value);
+ partial void OnUploadTimeChanged();
+ partial void OnOwnerDeptNameChanging(string value);
+ partial void OnOwnerDeptNameChanged();
+ partial void OnTrainDepartChanging(string value);
+ partial void OnTrainDepartChanged();
+ partial void OnCreateDateChanging(System.Nullable value);
+ partial void OnCreateDateChanged();
+ partial void OnCreateUserChanging(string value);
+ partial void OnCreateUserChanged();
+ partial void OnOperDateChanging(System.Nullable value);
+ partial void OnOperDateChanged();
+ partial void OnOperUserChanging(string value);
+ partial void OnOperUserChanged();
+ #endregion
+
+ public Bo_Sheng_Train()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteUser", DbType="NVarChar(50)")]
+ public string DeleteUser
+ {
+ get
+ {
+ return this._DeleteUser;
+ }
+ set
+ {
+ if ((this._DeleteUser != value))
+ {
+ this.OnDeleteUserChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteUser = value;
+ this.SendPropertyChanged("DeleteUser");
+ this.OnDeleteUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteDate", DbType="DateTime")]
+ public System.Nullable DeleteDate
+ {
+ get
+ {
+ return this._DeleteDate;
+ }
+ set
+ {
+ if ((this._DeleteDate != value))
+ {
+ this.OnDeleteDateChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteDate = value;
+ this.SendPropertyChanged("DeleteDate");
+ this.OnDeleteDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteTag", DbType="NVarChar(50)")]
+ public string DeleteTag
+ {
+ get
+ {
+ return this._DeleteTag;
+ }
+ set
+ {
+ if ((this._DeleteTag != value))
+ {
+ this.OnDeleteTagChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteTag = value;
+ this.SendPropertyChanged("DeleteTag");
+ this.OnDeleteTagChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordName", DbType="NVarChar(500)")]
+ public string RecordName
+ {
+ get
+ {
+ return this._RecordName;
+ }
+ set
+ {
+ if ((this._RecordName != value))
+ {
+ this.OnRecordNameChanging(value);
+ this.SendPropertyChanging();
+ this._RecordName = value;
+ this.SendPropertyChanged("RecordName");
+ this.OnRecordNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainType", DbType="NVarChar(50)")]
+ public string TrainType
+ {
+ get
+ {
+ return this._TrainType;
+ }
+ set
+ {
+ if ((this._TrainType != value))
+ {
+ this.OnTrainTypeChanging(value);
+ this.SendPropertyChanging();
+ this._TrainType = value;
+ this.SendPropertyChanged("TrainType");
+ this.OnTrainTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PaperMode", DbType="NVarChar(50)")]
+ public string PaperMode
+ {
+ get
+ {
+ return this._PaperMode;
+ }
+ set
+ {
+ if ((this._PaperMode != value))
+ {
+ this.OnPaperModeChanging(value);
+ this.SendPropertyChanging();
+ this._PaperMode = value;
+ this.SendPropertyChanged("PaperMode");
+ this.OnPaperModeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainMode", DbType="NVarChar(50)")]
+ public string TrainMode
+ {
+ get
+ {
+ return this._TrainMode;
+ }
+ set
+ {
+ if ((this._TrainMode != value))
+ {
+ this.OnTrainModeChanging(value);
+ this.SendPropertyChanging();
+ this._TrainMode = value;
+ this.SendPropertyChanged("TrainMode");
+ this.OnTrainModeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPrincipal", DbType="NVarChar(50)")]
+ public string TrainPrincipal
+ {
+ get
+ {
+ return this._TrainPrincipal;
+ }
+ set
+ {
+ if ((this._TrainPrincipal != value))
+ {
+ this.OnTrainPrincipalChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPrincipal = value;
+ this.SendPropertyChanged("TrainPrincipal");
+ this.OnTrainPrincipalChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainStartDate", DbType="DateTime")]
+ public System.Nullable TrainStartDate
+ {
+ get
+ {
+ return this._TrainStartDate;
+ }
+ set
+ {
+ if ((this._TrainStartDate != value))
+ {
+ this.OnTrainStartDateChanging(value);
+ this.SendPropertyChanging();
+ this._TrainStartDate = value;
+ this.SendPropertyChanged("TrainStartDate");
+ this.OnTrainStartDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainEndDate", DbType="DateTime")]
+ public System.Nullable TrainEndDate
+ {
+ get
+ {
+ return this._TrainEndDate;
+ }
+ set
+ {
+ if ((this._TrainEndDate != value))
+ {
+ this.OnTrainEndDateChanging(value);
+ this.SendPropertyChanging();
+ this._TrainEndDate = value;
+ this.SendPropertyChanged("TrainEndDate");
+ this.OnTrainEndDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainContent", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string TrainContent
+ {
+ get
+ {
+ return this._TrainContent;
+ }
+ set
+ {
+ if ((this._TrainContent != value))
+ {
+ this.OnTrainContentChanging(value);
+ this.SendPropertyChanging();
+ this._TrainContent = value;
+ this.SendPropertyChanged("TrainContent");
+ this.OnTrainContentChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainDescript", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string TrainDescript
+ {
+ get
+ {
+ return this._TrainDescript;
+ }
+ set
+ {
+ if ((this._TrainDescript != value))
+ {
+ this.OnTrainDescriptChanging(value);
+ this.SendPropertyChanging();
+ this._TrainDescript = value;
+ this.SendPropertyChanged("TrainDescript");
+ this.OnTrainDescriptChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPeriod", DbType="NVarChar(50)")]
+ public string TrainPeriod
+ {
+ get
+ {
+ return this._TrainPeriod;
+ }
+ set
+ {
+ if ((this._TrainPeriod != value))
+ {
+ this.OnTrainPeriodChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPeriod = value;
+ this.SendPropertyChanged("TrainPeriod");
+ this.OnTrainPeriodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonCount", DbType="Int")]
+ public System.Nullable PersonCount
+ {
+ get
+ {
+ return this._PersonCount;
+ }
+ set
+ {
+ if ((this._PersonCount != value))
+ {
+ this.OnPersonCountChanging(value);
+ this.SendPropertyChanging();
+ this._PersonCount = value;
+ this.SendPropertyChanged("PersonCount");
+ this.OnPersonCountChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PassedCount", DbType="Int")]
+ public System.Nullable PassedCount
+ {
+ get
+ {
+ return this._PassedCount;
+ }
+ set
+ {
+ if ((this._PassedCount != value))
+ {
+ this.OnPassedCountChanging(value);
+ this.SendPropertyChanging();
+ this._PassedCount = value;
+ this.SendPropertyChanged("PassedCount");
+ this.OnPassedCountChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CoverImg", DbType="NVarChar(2000)")]
+ public string CoverImg
+ {
+ get
+ {
+ return this._CoverImg;
+ }
+ set
+ {
+ if ((this._CoverImg != value))
+ {
+ this.OnCoverImgChanging(value);
+ this.SendPropertyChanging();
+ this._CoverImg = value;
+ this.SendPropertyChanged("CoverImg");
+ this.OnCoverImgChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DemandID", DbType="NVarChar(50)")]
+ public string DemandID
+ {
+ get
+ {
+ return this._DemandID;
+ }
+ set
+ {
+ if ((this._DemandID != value))
+ {
+ this.OnDemandIDChanging(value);
+ this.SendPropertyChanging();
+ this._DemandID = value;
+ this.SendPropertyChanged("DemandID");
+ this.OnDemandIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CourseCount", DbType="Int")]
+ public System.Nullable CourseCount
+ {
+ get
+ {
+ return this._CourseCount;
+ }
+ set
+ {
+ if ((this._CourseCount != value))
+ {
+ this.OnCourseCountChanging(value);
+ this.SendPropertyChanging();
+ this._CourseCount = value;
+ this.SendPropertyChanged("CourseCount");
+ this.OnCourseCountChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CourseDuration", DbType="NVarChar(50)")]
+ public string CourseDuration
+ {
+ get
+ {
+ return this._CourseDuration;
+ }
+ set
+ {
+ if ((this._CourseDuration != value))
+ {
+ this.OnCourseDurationChanging(value);
+ this.SendPropertyChanging();
+ this._CourseDuration = value;
+ this.SendPropertyChanged("CourseDuration");
+ this.OnCourseDurationChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Source", DbType="NVarChar(50)")]
+ public string Source
+ {
+ get
+ {
+ return this._Source;
+ }
+ set
+ {
+ if ((this._Source != value))
+ {
+ this.OnSourceChanging(value);
+ this.SendPropertyChanging();
+ this._Source = value;
+ this.SendPropertyChanged("Source");
+ this.OnSourceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(500)")]
+ public string Description
+ {
+ get
+ {
+ return this._Description;
+ }
+ set
+ {
+ if ((this._Description != value))
+ {
+ this.OnDescriptionChanging(value);
+ this.SendPropertyChanging();
+ this._Description = value;
+ this.SendPropertyChanged("Description");
+ this.OnDescriptionChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceNo", DbType="NVarChar(50)")]
+ public string DeviceNo
+ {
+ get
+ {
+ return this._DeviceNo;
+ }
+ set
+ {
+ if ((this._DeviceNo != value))
+ {
+ this.OnDeviceNoChanging(value);
+ this.SendPropertyChanging();
+ this._DeviceNo = value;
+ this.SendPropertyChanged("DeviceNo");
+ this.OnDeviceNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerDepartId", DbType="NVarChar(50)")]
+ public string OwnerDepartId
+ {
+ get
+ {
+ return this._OwnerDepartId;
+ }
+ set
+ {
+ if ((this._OwnerDepartId != value))
+ {
+ this.OnOwnerDepartIdChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDepartId = value;
+ this.SendPropertyChanged("OwnerDepartId");
+ this.OnOwnerDepartIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadTime", DbType="DateTime")]
+ public System.Nullable UploadTime
+ {
+ get
+ {
+ return this._UploadTime;
+ }
+ set
+ {
+ if ((this._UploadTime != value))
+ {
+ this.OnUploadTimeChanging(value);
+ this.SendPropertyChanging();
+ this._UploadTime = value;
+ this.SendPropertyChanged("UploadTime");
+ this.OnUploadTimeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerDeptName", DbType="NVarChar(100)")]
+ public string OwnerDeptName
+ {
+ get
+ {
+ return this._OwnerDeptName;
+ }
+ set
+ {
+ if ((this._OwnerDeptName != value))
+ {
+ this.OnOwnerDeptNameChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDeptName = value;
+ this.SendPropertyChanged("OwnerDeptName");
+ this.OnOwnerDeptNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainDepart", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string TrainDepart
+ {
+ get
+ {
+ return this._TrainDepart;
+ }
+ set
+ {
+ if ((this._TrainDepart != value))
+ {
+ this.OnTrainDepartChanging(value);
+ this.SendPropertyChanging();
+ this._TrainDepart = value;
+ this.SendPropertyChanged("TrainDepart");
+ this.OnTrainDepartChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")]
+ public System.Nullable CreateDate
+ {
+ get
+ {
+ return this._CreateDate;
+ }
+ set
+ {
+ if ((this._CreateDate != value))
+ {
+ this.OnCreateDateChanging(value);
+ this.SendPropertyChanging();
+ this._CreateDate = value;
+ this.SendPropertyChanged("CreateDate");
+ this.OnCreateDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateUser", DbType="NVarChar(50)")]
+ public string CreateUser
+ {
+ get
+ {
+ return this._CreateUser;
+ }
+ set
+ {
+ if ((this._CreateUser != value))
+ {
+ this.OnCreateUserChanging(value);
+ this.SendPropertyChanging();
+ this._CreateUser = value;
+ this.SendPropertyChanged("CreateUser");
+ this.OnCreateUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperDate", DbType="DateTime")]
+ public System.Nullable OperDate
+ {
+ get
+ {
+ return this._OperDate;
+ }
+ set
+ {
+ if ((this._OperDate != value))
+ {
+ this.OnOperDateChanging(value);
+ this.SendPropertyChanging();
+ this._OperDate = value;
+ this.SendPropertyChanged("OperDate");
+ this.OnOperDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperUser", DbType="NVarChar(50)")]
+ public string OperUser
+ {
+ get
+ {
+ return this._OperUser;
+ }
+ set
+ {
+ if ((this._OperUser != value))
+ {
+ this.OnOperUserChanging(value);
+ this.SendPropertyChanging();
+ this._OperUser = value;
+ this.SendPropertyChanged("OperUser");
+ this.OnOperUserChanged();
+ }
+ }
+ }
+
+ 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.Bo_Sheng_TrainPerson")]
+ public partial class Bo_Sheng_TrainPerson : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private string _DeleteUser;
+
+ private System.Nullable _DeleteDate;
+
+ private string _DeleteTag;
+
+ private string _EmpName;
+
+ private string _IdentifyId;
+
+ private string _Photo;
+
+ private string _Station;
+
+ private string _Category;
+
+ private string _CategoryName;
+
+ private string _RecordId;
+
+ private string _SignName;
+
+ private string _DepartId;
+
+ private string _DepartName;
+
+ private System.Nullable _SignInDate;
+
+ private string _SignInType;
+
+ private string _TrainPeriod;
+
+ private string _State;
+
+ private System.Nullable _TotalScore;
+
+ private System.Nullable _PassScore;
+
+ private System.Nullable _Score;
+
+ private string _IsPass;
+
+ private string _GroupNo;
+
+ private string _ExamNo;
+
+ private System.Nullable _ExamCount;
+
+ private string _DeviceNo;
+
+ private string _OwnerDepartId;
+
+ private System.Nullable _UploadTime;
+
+ private string _Answers;
+
+ private System.Nullable _CreateDate;
+
+ private string _CreateUser;
+
+ private System.Nullable _OperDate;
+
+ private string _OperUser;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnDeleteUserChanging(string value);
+ partial void OnDeleteUserChanged();
+ partial void OnDeleteDateChanging(System.Nullable value);
+ partial void OnDeleteDateChanged();
+ partial void OnDeleteTagChanging(string value);
+ partial void OnDeleteTagChanged();
+ partial void OnEmpNameChanging(string value);
+ partial void OnEmpNameChanged();
+ partial void OnIdentifyIdChanging(string value);
+ partial void OnIdentifyIdChanged();
+ partial void OnPhotoChanging(string value);
+ partial void OnPhotoChanged();
+ partial void OnStationChanging(string value);
+ partial void OnStationChanged();
+ partial void OnCategoryChanging(string value);
+ partial void OnCategoryChanged();
+ partial void OnCategoryNameChanging(string value);
+ partial void OnCategoryNameChanged();
+ partial void OnRecordIdChanging(string value);
+ partial void OnRecordIdChanged();
+ partial void OnSignNameChanging(string value);
+ partial void OnSignNameChanged();
+ partial void OnDepartIdChanging(string value);
+ partial void OnDepartIdChanged();
+ partial void OnDepartNameChanging(string value);
+ partial void OnDepartNameChanged();
+ partial void OnSignInDateChanging(System.Nullable value);
+ partial void OnSignInDateChanged();
+ partial void OnSignInTypeChanging(string value);
+ partial void OnSignInTypeChanged();
+ partial void OnTrainPeriodChanging(string value);
+ partial void OnTrainPeriodChanged();
+ partial void OnStateChanging(string value);
+ partial void OnStateChanged();
+ partial void OnTotalScoreChanging(System.Nullable value);
+ partial void OnTotalScoreChanged();
+ partial void OnPassScoreChanging(System.Nullable value);
+ partial void OnPassScoreChanged();
+ partial void OnScoreChanging(System.Nullable value);
+ partial void OnScoreChanged();
+ partial void OnIsPassChanging(string value);
+ partial void OnIsPassChanged();
+ partial void OnGroupNoChanging(string value);
+ partial void OnGroupNoChanged();
+ partial void OnExamNoChanging(string value);
+ partial void OnExamNoChanged();
+ partial void OnExamCountChanging(System.Nullable value);
+ partial void OnExamCountChanged();
+ partial void OnDeviceNoChanging(string value);
+ partial void OnDeviceNoChanged();
+ partial void OnOwnerDepartIdChanging(string value);
+ partial void OnOwnerDepartIdChanged();
+ partial void OnUploadTimeChanging(System.Nullable value);
+ partial void OnUploadTimeChanged();
+ partial void OnAnswersChanging(string value);
+ partial void OnAnswersChanged();
+ partial void OnCreateDateChanging(System.Nullable value);
+ partial void OnCreateDateChanged();
+ partial void OnCreateUserChanging(string value);
+ partial void OnCreateUserChanged();
+ partial void OnOperDateChanging(System.Nullable value);
+ partial void OnOperDateChanged();
+ partial void OnOperUserChanging(string value);
+ partial void OnOperUserChanged();
+ #endregion
+
+ public Bo_Sheng_TrainPerson()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteUser", DbType="NVarChar(50)")]
+ public string DeleteUser
+ {
+ get
+ {
+ return this._DeleteUser;
+ }
+ set
+ {
+ if ((this._DeleteUser != value))
+ {
+ this.OnDeleteUserChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteUser = value;
+ this.SendPropertyChanged("DeleteUser");
+ this.OnDeleteUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteDate", DbType="DateTime")]
+ public System.Nullable DeleteDate
+ {
+ get
+ {
+ return this._DeleteDate;
+ }
+ set
+ {
+ if ((this._DeleteDate != value))
+ {
+ this.OnDeleteDateChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteDate = value;
+ this.SendPropertyChanged("DeleteDate");
+ this.OnDeleteDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeleteTag", DbType="NVarChar(50)")]
+ public string DeleteTag
+ {
+ get
+ {
+ return this._DeleteTag;
+ }
+ set
+ {
+ if ((this._DeleteTag != value))
+ {
+ this.OnDeleteTagChanging(value);
+ this.SendPropertyChanging();
+ this._DeleteTag = value;
+ this.SendPropertyChanged("DeleteTag");
+ this.OnDeleteTagChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmpName", DbType="NVarChar(100)")]
+ public string EmpName
+ {
+ get
+ {
+ return this._EmpName;
+ }
+ set
+ {
+ if ((this._EmpName != value))
+ {
+ this.OnEmpNameChanging(value);
+ this.SendPropertyChanging();
+ this._EmpName = value;
+ this.SendPropertyChanged("EmpName");
+ this.OnEmpNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdentifyId", DbType="NVarChar(50)")]
+ public string IdentifyId
+ {
+ get
+ {
+ return this._IdentifyId;
+ }
+ set
+ {
+ if ((this._IdentifyId != value))
+ {
+ this.OnIdentifyIdChanging(value);
+ this.SendPropertyChanging();
+ this._IdentifyId = value;
+ this.SendPropertyChanged("IdentifyId");
+ this.OnIdentifyIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Photo", DbType="NVarChar(500)")]
+ public string Photo
+ {
+ get
+ {
+ return this._Photo;
+ }
+ set
+ {
+ if ((this._Photo != value))
+ {
+ this.OnPhotoChanging(value);
+ this.SendPropertyChanging();
+ this._Photo = value;
+ this.SendPropertyChanged("Photo");
+ this.OnPhotoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Station", DbType="NVarChar(50)")]
+ public string Station
+ {
+ get
+ {
+ return this._Station;
+ }
+ set
+ {
+ if ((this._Station != value))
+ {
+ this.OnStationChanging(value);
+ this.SendPropertyChanging();
+ this._Station = value;
+ this.SendPropertyChanged("Station");
+ this.OnStationChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Category", DbType="NVarChar(50)")]
+ public string Category
+ {
+ get
+ {
+ return this._Category;
+ }
+ set
+ {
+ if ((this._Category != value))
+ {
+ this.OnCategoryChanging(value);
+ this.SendPropertyChanging();
+ this._Category = value;
+ this.SendPropertyChanged("Category");
+ this.OnCategoryChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CategoryName", DbType="NVarChar(50)")]
+ public string CategoryName
+ {
+ get
+ {
+ return this._CategoryName;
+ }
+ set
+ {
+ if ((this._CategoryName != value))
+ {
+ this.OnCategoryNameChanging(value);
+ this.SendPropertyChanging();
+ this._CategoryName = value;
+ this.SendPropertyChanged("CategoryName");
+ this.OnCategoryNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordId", DbType="NVarChar(50)")]
+ public string RecordId
+ {
+ get
+ {
+ return this._RecordId;
+ }
+ set
+ {
+ if ((this._RecordId != value))
+ {
+ this.OnRecordIdChanging(value);
+ this.SendPropertyChanging();
+ this._RecordId = value;
+ this.SendPropertyChanged("RecordId");
+ this.OnRecordIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SignName", DbType="NVarChar(500)")]
+ public string SignName
+ {
+ get
+ {
+ return this._SignName;
+ }
+ set
+ {
+ if ((this._SignName != value))
+ {
+ this.OnSignNameChanging(value);
+ this.SendPropertyChanging();
+ this._SignName = value;
+ this.SendPropertyChanged("SignName");
+ this.OnSignNameChanged();
+ }
+ }
+ }
+
+ [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="_DepartName", DbType="NVarChar(50)")]
+ public string DepartName
+ {
+ get
+ {
+ return this._DepartName;
+ }
+ set
+ {
+ if ((this._DepartName != value))
+ {
+ this.OnDepartNameChanging(value);
+ this.SendPropertyChanging();
+ this._DepartName = value;
+ this.SendPropertyChanged("DepartName");
+ this.OnDepartNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SignInDate", DbType="DateTime")]
+ public System.Nullable SignInDate
+ {
+ get
+ {
+ return this._SignInDate;
+ }
+ set
+ {
+ if ((this._SignInDate != value))
+ {
+ this.OnSignInDateChanging(value);
+ this.SendPropertyChanging();
+ this._SignInDate = value;
+ this.SendPropertyChanged("SignInDate");
+ this.OnSignInDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SignInType", DbType="NVarChar(50)")]
+ public string SignInType
+ {
+ get
+ {
+ return this._SignInType;
+ }
+ set
+ {
+ if ((this._SignInType != value))
+ {
+ this.OnSignInTypeChanging(value);
+ this.SendPropertyChanging();
+ this._SignInType = value;
+ this.SendPropertyChanged("SignInType");
+ this.OnSignInTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPeriod", DbType="NVarChar(50)")]
+ public string TrainPeriod
+ {
+ get
+ {
+ return this._TrainPeriod;
+ }
+ set
+ {
+ if ((this._TrainPeriod != value))
+ {
+ this.OnTrainPeriodChanging(value);
+ this.SendPropertyChanging();
+ this._TrainPeriod = value;
+ this.SendPropertyChanged("TrainPeriod");
+ this.OnTrainPeriodChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="NVarChar(50)")]
+ 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="_TotalScore", DbType="Decimal(18,2)")]
+ public System.Nullable TotalScore
+ {
+ get
+ {
+ return this._TotalScore;
+ }
+ set
+ {
+ if ((this._TotalScore != value))
+ {
+ this.OnTotalScoreChanging(value);
+ this.SendPropertyChanging();
+ this._TotalScore = value;
+ this.SendPropertyChanged("TotalScore");
+ this.OnTotalScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PassScore", DbType="Decimal(18,0)")]
+ public System.Nullable PassScore
+ {
+ get
+ {
+ return this._PassScore;
+ }
+ set
+ {
+ if ((this._PassScore != value))
+ {
+ this.OnPassScoreChanging(value);
+ this.SendPropertyChanging();
+ this._PassScore = value;
+ this.SendPropertyChanged("PassScore");
+ this.OnPassScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Score", DbType="Decimal(18,2)")]
+ public System.Nullable Score
+ {
+ get
+ {
+ return this._Score;
+ }
+ set
+ {
+ if ((this._Score != value))
+ {
+ this.OnScoreChanging(value);
+ this.SendPropertyChanging();
+ this._Score = value;
+ this.SendPropertyChanged("Score");
+ this.OnScoreChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPass", DbType="NVarChar(50)")]
+ public string IsPass
+ {
+ get
+ {
+ return this._IsPass;
+ }
+ set
+ {
+ if ((this._IsPass != value))
+ {
+ this.OnIsPassChanging(value);
+ this.SendPropertyChanging();
+ this._IsPass = value;
+ this.SendPropertyChanged("IsPass");
+ this.OnIsPassChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GroupNo", DbType="NVarChar(50)")]
+ public string GroupNo
+ {
+ get
+ {
+ return this._GroupNo;
+ }
+ set
+ {
+ if ((this._GroupNo != value))
+ {
+ this.OnGroupNoChanging(value);
+ this.SendPropertyChanging();
+ this._GroupNo = value;
+ this.SendPropertyChanged("GroupNo");
+ this.OnGroupNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamNo", DbType="NVarChar(50)")]
+ public string ExamNo
+ {
+ get
+ {
+ return this._ExamNo;
+ }
+ set
+ {
+ if ((this._ExamNo != value))
+ {
+ this.OnExamNoChanging(value);
+ this.SendPropertyChanging();
+ this._ExamNo = value;
+ this.SendPropertyChanged("ExamNo");
+ this.OnExamNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamCount", DbType="Int")]
+ public System.Nullable ExamCount
+ {
+ get
+ {
+ return this._ExamCount;
+ }
+ set
+ {
+ if ((this._ExamCount != value))
+ {
+ this.OnExamCountChanging(value);
+ this.SendPropertyChanging();
+ this._ExamCount = value;
+ this.SendPropertyChanged("ExamCount");
+ this.OnExamCountChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceNo", DbType="NVarChar(50)")]
+ public string DeviceNo
+ {
+ get
+ {
+ return this._DeviceNo;
+ }
+ set
+ {
+ if ((this._DeviceNo != value))
+ {
+ this.OnDeviceNoChanging(value);
+ this.SendPropertyChanging();
+ this._DeviceNo = value;
+ this.SendPropertyChanged("DeviceNo");
+ this.OnDeviceNoChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerDepartId", DbType="NVarChar(50)")]
+ public string OwnerDepartId
+ {
+ get
+ {
+ return this._OwnerDepartId;
+ }
+ set
+ {
+ if ((this._OwnerDepartId != value))
+ {
+ this.OnOwnerDepartIdChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDepartId = value;
+ this.SendPropertyChanged("OwnerDepartId");
+ this.OnOwnerDepartIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadTime", DbType="DateTime")]
+ public System.Nullable UploadTime
+ {
+ get
+ {
+ return this._UploadTime;
+ }
+ set
+ {
+ if ((this._UploadTime != value))
+ {
+ this.OnUploadTimeChanging(value);
+ this.SendPropertyChanging();
+ this._UploadTime = value;
+ this.SendPropertyChanged("UploadTime");
+ this.OnUploadTimeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Answers", DbType="NVarChar(2000)")]
+ public string Answers
+ {
+ get
+ {
+ return this._Answers;
+ }
+ set
+ {
+ if ((this._Answers != value))
+ {
+ this.OnAnswersChanging(value);
+ this.SendPropertyChanging();
+ this._Answers = value;
+ this.SendPropertyChanged("Answers");
+ this.OnAnswersChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")]
+ public System.Nullable CreateDate
+ {
+ get
+ {
+ return this._CreateDate;
+ }
+ set
+ {
+ if ((this._CreateDate != value))
+ {
+ this.OnCreateDateChanging(value);
+ this.SendPropertyChanging();
+ this._CreateDate = value;
+ this.SendPropertyChanged("CreateDate");
+ this.OnCreateDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateUser", DbType="NVarChar(50)")]
+ public string CreateUser
+ {
+ get
+ {
+ return this._CreateUser;
+ }
+ set
+ {
+ if ((this._CreateUser != value))
+ {
+ this.OnCreateUserChanging(value);
+ this.SendPropertyChanging();
+ this._CreateUser = value;
+ this.SendPropertyChanged("CreateUser");
+ this.OnCreateUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperDate", DbType="DateTime")]
+ public System.Nullable OperDate
+ {
+ get
+ {
+ return this._OperDate;
+ }
+ set
+ {
+ if ((this._OperDate != value))
+ {
+ this.OnOperDateChanging(value);
+ this.SendPropertyChanging();
+ this._OperDate = value;
+ this.SendPropertyChanged("OperDate");
+ this.OnOperDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperUser", DbType="NVarChar(50)")]
+ public string OperUser
+ {
+ get
+ {
+ return this._OperUser;
+ }
+ set
+ {
+ if ((this._OperUser != value))
+ {
+ this.OnOperUserChanging(value);
+ this.SendPropertyChanging();
+ this._OperUser = value;
+ this.SendPropertyChanged("OperUser");
+ this.OnOperUserChanged();
+ }
+ }
+ }
+
+ 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.Bo_Sheng_Unit")]
+ public partial class Bo_Sheng_Unit : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ID;
+
+ private string _ProjectId;
+
+ private string _ParentID;
+
+ private string _DepartCode;
+
+ private string _ParentCode;
+
+ private string _DepartName;
+
+ private string _DepartType;
+
+ private string _DepartShortName;
+
+ private string _DepartOrder;
+
+ private string _State;
+
+ private string _DepartSir;
+
+ private string _IsEpiboly;
+
+ private string _Phone;
+
+ private string _Charge;
+
+ private string _Remark;
+
+ private string _OwnerDeptID;
+
+ private System.Nullable _CreateDate;
+
+ private string _CreateUser;
+
+ private System.Nullable _OperDate;
+
+ private string _OperUser;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIDChanging(string value);
+ partial void OnIDChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnParentIDChanging(string value);
+ partial void OnParentIDChanged();
+ partial void OnDepartCodeChanging(string value);
+ partial void OnDepartCodeChanged();
+ partial void OnParentCodeChanging(string value);
+ partial void OnParentCodeChanged();
+ partial void OnDepartNameChanging(string value);
+ partial void OnDepartNameChanged();
+ partial void OnDepartTypeChanging(string value);
+ partial void OnDepartTypeChanged();
+ partial void OnDepartShortNameChanging(string value);
+ partial void OnDepartShortNameChanged();
+ partial void OnDepartOrderChanging(string value);
+ partial void OnDepartOrderChanged();
+ partial void OnStateChanging(string value);
+ partial void OnStateChanged();
+ partial void OnDepartSirChanging(string value);
+ partial void OnDepartSirChanged();
+ partial void OnIsEpibolyChanging(string value);
+ partial void OnIsEpibolyChanged();
+ partial void OnPhoneChanging(string value);
+ partial void OnPhoneChanged();
+ partial void OnChargeChanging(string value);
+ partial void OnChargeChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnOwnerDeptIDChanging(string value);
+ partial void OnOwnerDeptIDChanged();
+ partial void OnCreateDateChanging(System.Nullable value);
+ partial void OnCreateDateChanged();
+ partial void OnCreateUserChanging(string value);
+ partial void OnCreateUserChanged();
+ partial void OnOperDateChanging(System.Nullable value);
+ partial void OnOperDateChanged();
+ partial void OnOperUserChanging(string value);
+ partial void OnOperUserChanged();
+ #endregion
+
+ public Bo_Sheng_Unit()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ID
+ {
+ get
+ {
+ return this._ID;
+ }
+ set
+ {
+ if ((this._ID != value))
+ {
+ this.OnIDChanging(value);
+ this.SendPropertyChanging();
+ this._ID = value;
+ this.SendPropertyChanged("ID");
+ this.OnIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentID", DbType="NVarChar(50)")]
+ public string ParentID
+ {
+ get
+ {
+ return this._ParentID;
+ }
+ set
+ {
+ if ((this._ParentID != value))
+ {
+ this.OnParentIDChanging(value);
+ this.SendPropertyChanging();
+ this._ParentID = value;
+ this.SendPropertyChanged("ParentID");
+ this.OnParentIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartCode", DbType="NVarChar(50)")]
+ public string DepartCode
+ {
+ get
+ {
+ return this._DepartCode;
+ }
+ set
+ {
+ if ((this._DepartCode != value))
+ {
+ this.OnDepartCodeChanging(value);
+ this.SendPropertyChanging();
+ this._DepartCode = value;
+ this.SendPropertyChanged("DepartCode");
+ this.OnDepartCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentCode", DbType="NVarChar(50)")]
+ public string ParentCode
+ {
+ get
+ {
+ return this._ParentCode;
+ }
+ set
+ {
+ if ((this._ParentCode != value))
+ {
+ this.OnParentCodeChanging(value);
+ this.SendPropertyChanging();
+ this._ParentCode = value;
+ this.SendPropertyChanged("ParentCode");
+ this.OnParentCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartName", DbType="NVarChar(50)")]
+ public string DepartName
+ {
+ get
+ {
+ return this._DepartName;
+ }
+ set
+ {
+ if ((this._DepartName != value))
+ {
+ this.OnDepartNameChanging(value);
+ this.SendPropertyChanging();
+ this._DepartName = value;
+ this.SendPropertyChanged("DepartName");
+ this.OnDepartNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartType", DbType="NVarChar(50)")]
+ public string DepartType
+ {
+ get
+ {
+ return this._DepartType;
+ }
+ set
+ {
+ if ((this._DepartType != value))
+ {
+ this.OnDepartTypeChanging(value);
+ this.SendPropertyChanging();
+ this._DepartType = value;
+ this.SendPropertyChanged("DepartType");
+ this.OnDepartTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartShortName", DbType="NVarChar(50)")]
+ public string DepartShortName
+ {
+ get
+ {
+ return this._DepartShortName;
+ }
+ set
+ {
+ if ((this._DepartShortName != value))
+ {
+ this.OnDepartShortNameChanging(value);
+ this.SendPropertyChanging();
+ this._DepartShortName = value;
+ this.SendPropertyChanged("DepartShortName");
+ this.OnDepartShortNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartOrder", DbType="NVarChar(50)")]
+ public string DepartOrder
+ {
+ get
+ {
+ return this._DepartOrder;
+ }
+ set
+ {
+ if ((this._DepartOrder != value))
+ {
+ this.OnDepartOrderChanging(value);
+ this.SendPropertyChanging();
+ this._DepartOrder = value;
+ this.SendPropertyChanged("DepartOrder");
+ this.OnDepartOrderChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="NVarChar(50)")]
+ 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="_DepartSir", DbType="NVarChar(50)")]
+ public string DepartSir
+ {
+ get
+ {
+ return this._DepartSir;
+ }
+ set
+ {
+ if ((this._DepartSir != value))
+ {
+ this.OnDepartSirChanging(value);
+ this.SendPropertyChanging();
+ this._DepartSir = value;
+ this.SendPropertyChanged("DepartSir");
+ this.OnDepartSirChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEpiboly", DbType="NVarChar(50)")]
+ public string IsEpiboly
+ {
+ get
+ {
+ return this._IsEpiboly;
+ }
+ set
+ {
+ if ((this._IsEpiboly != value))
+ {
+ this.OnIsEpibolyChanging(value);
+ this.SendPropertyChanging();
+ this._IsEpiboly = value;
+ this.SendPropertyChanged("IsEpiboly");
+ this.OnIsEpibolyChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Phone", DbType="NVarChar(50)")]
+ public string Phone
+ {
+ get
+ {
+ return this._Phone;
+ }
+ set
+ {
+ if ((this._Phone != value))
+ {
+ this.OnPhoneChanging(value);
+ this.SendPropertyChanging();
+ this._Phone = value;
+ this.SendPropertyChanged("Phone");
+ this.OnPhoneChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Charge", DbType="NVarChar(50)")]
+ public string Charge
+ {
+ get
+ {
+ return this._Charge;
+ }
+ set
+ {
+ if ((this._Charge != value))
+ {
+ this.OnChargeChanging(value);
+ this.SendPropertyChanging();
+ this._Charge = value;
+ this.SendPropertyChanged("Charge");
+ this.OnChargeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(50)")]
+ 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="_OwnerDeptID", DbType="NVarChar(50)")]
+ public string OwnerDeptID
+ {
+ get
+ {
+ return this._OwnerDeptID;
+ }
+ set
+ {
+ if ((this._OwnerDeptID != value))
+ {
+ this.OnOwnerDeptIDChanging(value);
+ this.SendPropertyChanging();
+ this._OwnerDeptID = value;
+ this.SendPropertyChanged("OwnerDeptID");
+ this.OnOwnerDeptIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")]
+ public System.Nullable CreateDate
+ {
+ get
+ {
+ return this._CreateDate;
+ }
+ set
+ {
+ if ((this._CreateDate != value))
+ {
+ this.OnCreateDateChanging(value);
+ this.SendPropertyChanging();
+ this._CreateDate = value;
+ this.SendPropertyChanged("CreateDate");
+ this.OnCreateDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateUser", DbType="NVarChar(50)")]
+ public string CreateUser
+ {
+ get
+ {
+ return this._CreateUser;
+ }
+ set
+ {
+ if ((this._CreateUser != value))
+ {
+ this.OnCreateUserChanging(value);
+ this.SendPropertyChanging();
+ this._CreateUser = value;
+ this.SendPropertyChanged("CreateUser");
+ this.OnCreateUserChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperDate", DbType="DateTime")]
+ public System.Nullable OperDate
+ {
+ get
+ {
+ return this._OperDate;
+ }
+ set
+ {
+ if ((this._OperDate != value))
+ {
+ this.OnOperDateChanging(value);
+ this.SendPropertyChanging();
+ this._OperDate = value;
+ this.SendPropertyChanged("OperDate");
+ this.OnOperDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperUser", DbType="NVarChar(50)")]
+ public string OperUser
+ {
+ get
+ {
+ return this._OperUser;
+ }
+ set
+ {
+ if ((this._OperUser != value))
+ {
+ this.OnOperUserChanging(value);
+ this.SendPropertyChanging();
+ this._OperUser = value;
+ this.SendPropertyChanged("OperUser");
+ this.OnOperUserChanged();
+ }
+ }
+ }
+
+ 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.BS_Steel")]
public partial class BS_Steel : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -248184,7 +252961,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
public string Address
{
get
@@ -248248,7 +253025,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string WorkAreaName
{
get
@@ -263780,6 +268557,188 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_DataExchange")]
+ public partial class Sys_DataExchange : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private int _DataID;
+
+ private System.Nullable _GetTime;
+
+ private string _MessageText;
+
+ private string _FromSystem;
+
+ private string _ToSystem;
+
+ private System.Nullable _IsUpdate;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDataIDChanging(int value);
+ partial void OnDataIDChanged();
+ partial void OnGetTimeChanging(System.Nullable value);
+ partial void OnGetTimeChanged();
+ partial void OnMessageTextChanging(string value);
+ partial void OnMessageTextChanged();
+ partial void OnFromSystemChanging(string value);
+ partial void OnFromSystemChanged();
+ partial void OnToSystemChanging(string value);
+ partial void OnToSystemChanged();
+ partial void OnIsUpdateChanging(System.Nullable value);
+ partial void OnIsUpdateChanged();
+ #endregion
+
+ public Sys_DataExchange()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataID", DbType="Int NOT NULL", IsPrimaryKey=true)]
+ public int DataID
+ {
+ get
+ {
+ return this._DataID;
+ }
+ set
+ {
+ if ((this._DataID != value))
+ {
+ this.OnDataIDChanging(value);
+ this.SendPropertyChanging();
+ this._DataID = value;
+ this.SendPropertyChanged("DataID");
+ this.OnDataIDChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GetTime", DbType="DateTime")]
+ public System.Nullable GetTime
+ {
+ get
+ {
+ return this._GetTime;
+ }
+ set
+ {
+ if ((this._GetTime != value))
+ {
+ this.OnGetTimeChanging(value);
+ this.SendPropertyChanging();
+ this._GetTime = value;
+ this.SendPropertyChanged("GetTime");
+ this.OnGetTimeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MessageText", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string MessageText
+ {
+ get
+ {
+ return this._MessageText;
+ }
+ set
+ {
+ if ((this._MessageText != value))
+ {
+ this.OnMessageTextChanging(value);
+ this.SendPropertyChanging();
+ this._MessageText = value;
+ this.SendPropertyChanged("MessageText");
+ this.OnMessageTextChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FromSystem", DbType="NVarChar(50)")]
+ public string FromSystem
+ {
+ get
+ {
+ return this._FromSystem;
+ }
+ set
+ {
+ if ((this._FromSystem != value))
+ {
+ this.OnFromSystemChanging(value);
+ this.SendPropertyChanging();
+ this._FromSystem = value;
+ this.SendPropertyChanged("FromSystem");
+ this.OnFromSystemChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToSystem", DbType="NVarChar(50)")]
+ public string ToSystem
+ {
+ get
+ {
+ return this._ToSystem;
+ }
+ set
+ {
+ if ((this._ToSystem != value))
+ {
+ this.OnToSystemChanging(value);
+ this.SendPropertyChanging();
+ this._ToSystem = value;
+ this.SendPropertyChanged("ToSystem");
+ this.OnToSystemChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUpdate", DbType="Bit")]
+ public System.Nullable IsUpdate
+ {
+ get
+ {
+ return this._IsUpdate;
+ }
+ set
+ {
+ if ((this._IsUpdate != value))
+ {
+ this.OnIsUpdateChanging(value);
+ this.SendPropertyChanging();
+ this._IsUpdate = value;
+ this.SendPropertyChanged("IsUpdate");
+ this.OnIsUpdateChanged();
+ }
+ }
+ }
+
+ 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.Sys_ErrLogInfo")]
public partial class Sys_ErrLogInfo : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -286010,6 +290969,123 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.temp_tableSpaceInfo")]
+ public partial class Temp_tableSpaceInfo
+ {
+
+ private string _Name;
+
+ private string _Rows;
+
+ private string _Reserved;
+
+ private string _Data;
+
+ private string _Index_size;
+
+ private string _Unused;
+
+ public Temp_tableSpaceInfo()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="name", Storage="_Name", DbType="NVarChar(128)")]
+ public string Name
+ {
+ get
+ {
+ return this._Name;
+ }
+ set
+ {
+ if ((this._Name != value))
+ {
+ this._Name = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="rows", Storage="_Rows", DbType="Char(11)")]
+ public string Rows
+ {
+ get
+ {
+ return this._Rows;
+ }
+ set
+ {
+ if ((this._Rows != value))
+ {
+ this._Rows = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="reserved", Storage="_Reserved", DbType="VarChar(18)")]
+ public string Reserved
+ {
+ get
+ {
+ return this._Reserved;
+ }
+ set
+ {
+ if ((this._Reserved != value))
+ {
+ this._Reserved = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="data", Storage="_Data", DbType="VarChar(18)")]
+ public string Data
+ {
+ get
+ {
+ return this._Data;
+ }
+ set
+ {
+ if ((this._Data != value))
+ {
+ this._Data = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="index_size", Storage="_Index_size", DbType="VarChar(18)")]
+ public string Index_size
+ {
+ get
+ {
+ return this._Index_size;
+ }
+ set
+ {
+ if ((this._Index_size != value))
+ {
+ this._Index_size = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="unused", Storage="_Unused", DbType="VarChar(18)")]
+ public string Unused
+ {
+ get
+ {
+ return this._Unused;
+ }
+ set
+ {
+ if ((this._Unused != value))
+ {
+ this._Unused = value;
+ }
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Test_TestPlan")]
public partial class Test_TestPlan : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -329875,7 +334951,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
public string Address
{
get
@@ -329891,7 +334967,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string WorkAreaName
{
get
diff --git a/SGGL/WebAPI/Controllers/DoorServerController.cs b/SGGL/WebAPI/Controllers/DoorServerController.cs
index 29a5451f..26400e68 100644
--- a/SGGL/WebAPI/Controllers/DoorServerController.cs
+++ b/SGGL/WebAPI/Controllers/DoorServerController.cs
@@ -237,15 +237,24 @@ namespace WebAPI.Controllers
{
if (facerecord != null)
{
- var getFacerecord = db.T_d_facerecord.FirstOrDefault(x => x.ID == facerecord.ID && x.ProjectId == facerecord.ProjectId && x.RoleID == facerecord.RoleID);
+ string projectId = facerecord.ProjectId;
+ string personName = facerecord.EmployName;
+ var getPersonByIdCard = db.SitePerson_Person.Where(x => x.IdentityCard == facerecord.EmployNO).OrderByDescending(x => x.InTime).FirstOrDefault();
+ if (getPersonByIdCard != null)
+ {
+ personName = getPersonByIdCard.PersonName;
+ projectId = getPersonByIdCard.ProjectId;
+ }
+
+ var getFacerecord = db.T_d_facerecord.FirstOrDefault(x => x.ID == facerecord.ID && x.ProjectId == projectId && x.RoleID == facerecord.RoleID);
if (getFacerecord == null)
{
Model.T_d_facerecord newFacerecord = new Model.T_d_facerecord()
{
NewID = SQLHelper.GetNewID(),
- ProjectId = facerecord.ProjectId,
+ ProjectId = projectId,
ID = facerecord.ID,
- EmployName = facerecord.EmployName,
+ EmployName =personName,
DepartmentID = facerecord.DepartmentID,
DepartName = facerecord.DepartName,
AreaID = facerecord.AreaID,
@@ -275,7 +284,7 @@ namespace WebAPI.Controllers
{
isIn = 1;
}
- APIPersonService.getPersonInOut(facerecord.ProjectId, facerecord.EmployNO, isIn, facerecord.DateTimeRecord.Value);
+ APIPersonService.getPersonInOut(projectId, facerecord.EmployNO, isIn, facerecord.DateTimeRecord.Value);
}
}
}