diff --git a/DataBase/版本日志/SGGLDB_WH_2024-05-22-wq.sql b/DataBase/版本日志/SGGLDB_WH_2024-05-22-wq.sql
index 81ea6225..22597002 100644
--- a/DataBase/版本日志/SGGLDB_WH_2024-05-22-wq.sql
+++ b/DataBase/版本日志/SGGLDB_WH_2024-05-22-wq.sql
@@ -26,6 +26,6 @@ CREATE TABLE dbo.Division_SubProjects(
CONSTRAINT [PK_Division_SubProjects] PRIMARY KEY CLUSTERED
(
[DivisionId] ASC
-)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_WH_2024-05-23-bwj.sql b/DataBase/版本日志/SGGLDB_WH_2024-05-23-bwj.sql
new file mode 100644
index 00000000..1269914b
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-05-23-bwj.sql
@@ -0,0 +1,31 @@
+
+insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('193BB4A7-B5F2-4A01-8E98-8010D073CA7A','4E0030F6-EF5E-40A6-939F-C29BC4D7CEE1','',1)
+go
+
+--ȥʹò˵
+update Sys_Menu set IsUsed=0 where MenuId='27DE7248-C4FF-4288-BBAC-11CB8741AD67' --ר֤嵥
+update Sys_Menu set IsUsed=0 where MenuId='F910062E-98B0-486F-A8BD-D5B0035F808F'--֪ͨ
+update Sys_Menu set IsUsed=0 where MenuId='F057C207-4549-48AE-B838-A1920E5709D8' --ϵ
+update Sys_Menu set IsUsed=0 where MenuId='06958288-96F4-4291-909A-FFC2FC76814D'--ΥԱ¼
+update Sys_Menu set IsUsed=0 where MenuId='3EF6E488-21D2-47BB-AA33-4FB0E9FED606' --¼ӦԤ
+update Sys_Menu set IsUsed=0 where MenuId='E1BBA25B-DAE5-4CFF-B72A-6C6044917D2B'--Ŀĵ
+update Sys_Menu set IsUsed=0 where SuperMenu='E1BBA25B-DAE5-4CFF-B72A-6C6044917D2B'
+update Sys_Menu set IsUsed=0 where SuperMenu='4EBDBF0A-53FC-4B86-BE6E-D6C16985A613'
+update Sys_Menu set IsUsed=0 where MenuId='B2DA78EF-EECA-4AF4-9FAC-ECCFF1D6E459' --¼
+go
+
+update License_HSETechnical set TechnicalManId = (select userName from sys_user where UserId = TechnicalManId)
+go
+update License_HSETechnical set PartTechnicalManIds = (STUFF(( SELECT ',' + UserName FROM Sys_User
+where PATINDEX('%,' + RTRIM(Sys_User.UserId) + ',%',',' + License_HSETechnical.PartTechnicalManIds + ',')>0
+ORDER BY PATINDEX('%,' + RTRIM(License_HSETechnical.HSETechnicalId) + ',%',',' + License_HSETechnical.PartTechnicalManIds + ',')
+FOR XML PATH('')), 1, 1,''))
+go
+
+update Sys_Menu set IsUsed=0 where MenuId='D5DD5EBD-A5F2-4A43-BA4C-E9A242B43684' --HSE
+go
+--HSEݲ밲ȫ쵼С
+--insert into Meeting_SafetyLeaderGroupMeeting(SafetyLeaderGroupMeetingId,ProjectId,SafetyLeaderGroupMeetingCode,SafetyLeaderGroupMeetingName,SafetyLeaderGroupMeetingDate,CompileMan,SafetyLeaderGroupMeetingContents,CompileDate,States,AttentPersonNum,MeetingHours,MeetingHostMan,AttentPerson,MeetingPlace,UnitId,MeetingHostManId,AttentPersonIds)
+--select MonthMeetingId,ProjectId,MonthMeetingCode,MonthMeetingName,MonthMeetingDate,CompileMan,MonthMeetingContents,CompileDate,States,AttentPersonNum,MeetingHours,MeetingHostMan,AttentPerson,MeetingPlace,UnitId,MeetingHostManId,AttentPersonIds from Meeting_MonthMeeting
+--go
diff --git a/SGGL/BLL/BoSheng/BOSHENGService.cs b/SGGL/BLL/BoSheng/BOSHENGService.cs
index 302d6d13..c782cfe5 100644
--- a/SGGL/BLL/BoSheng/BOSHENGService.cs
+++ b/SGGL/BLL/BoSheng/BOSHENGService.cs
@@ -1,4 +1,5 @@
using FineUIPro;
+using Model;
using System;
using System.Collections;
using System.Linq;
@@ -22,7 +23,7 @@ namespace BLL
///
/// 定义变量
///
- private static IQueryable getUnits = from x in db.Bo_Sheng_Unit
+ private static IQueryable getUnits = from x in db.Bo_Sheng_Unit
where (x.DeleteTag == "False" || x.DeleteTag == null)
select x;
@@ -173,7 +174,7 @@ namespace BLL
IsOutName = x.IsOut == "1" ? "是" : "否",
x.LeaveDate,
x.IsBlackList,
- IsBlackListName =x.IsBlackList == "1" ? "是" : "否",
+ IsBlackListName = x.IsBlackList == "1" ? "是" : "否",
x.AgreementId,
x.HasInsurance,
x.DeviceNumber,
@@ -184,6 +185,7 @@ namespace BLL
x.UploadTime,
};
}
+
#endregion
#region 获取培训记录列表
@@ -238,7 +240,7 @@ namespace BLL
x.RecordName,
x.TrainType,
x.PaperMode,
- PaperModeName = x.PaperMode=="0"? "使用原卷" : "重新出卷",
+ PaperModeName = x.PaperMode == "0" ? "使用原卷" : "重新出卷",
x.TrainMode,
x.TrainPrincipal,
x.TrainStartDate,
@@ -291,7 +293,7 @@ namespace BLL
/// 页码
/// 每页数量
///
- public static IEnumerable getTrainPersonListData(string projectId,string departName, string name, string identifyID, Grid Grid1)
+ 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))
@@ -335,7 +337,7 @@ namespace BLL
x.SignInType,
x.TrainPeriod,
x.State,
- StateName= x.State=="0"? "正常" : "补签",
+ StateName = x.State == "0" ? "正常" : "补签",
x.TotalScore,
x.PassScore,
x.Score,
@@ -369,8 +371,8 @@ namespace BLL
///
/// 定义变量
///
- private static IQueryable getExams = from x in db.Bo_Sheng_Exam
- where (x.DeleteTag == "False" || x.DeleteTag == null)
+ private static IQueryable getExams = from x in db.Bo_Sheng_Exam
+ where (x.DeleteTag == "False" || x.DeleteTag == null)
select x;
///
@@ -379,7 +381,7 @@ namespace BLL
/// 页码
/// 每页数量
///
- public static IEnumerable getExamListData(string projectId, string qsnCode,string qsnContent, Grid Grid1)
+ public static IEnumerable getExamListData(string projectId, string qsnCode, string qsnContent, Grid Grid1)
{
IQueryable getDataList = getExams.Where(x => x.ProjectId == projectId);
@@ -414,7 +416,7 @@ namespace BLL
x.QsnFileName,
x.QsnAnswer,
x.QsnCategory,
- QsnCategoryName= x.QsnCategory=="3"? "图片题" : (x.QsnCategory == "2"? "多媒体题" : "文字题"),
+ QsnCategoryName = x.QsnCategory == "3" ? "图片题" : (x.QsnCategory == "2" ? "多媒体题" : "文字题"),
x.QsnKind,
QsnKindName = x.QsnKind == "3" ? "判断" : (x.QsnCategory == "2" ? "多选" : "单选"),
x.QsnImportant,
@@ -439,8 +441,8 @@ namespace BLL
///
/// 定义变量
///
- private static IQueryable getPersonTrainRecords = from x in db.Bo_Sheng_PersonTrainRecord
- where (x.DeleteTag == "False" || x.DeleteTag == null)
+ private static IQueryable getPersonTrainRecords = from x in db.Bo_Sheng_PersonTrainRecord
+ where (x.DeleteTag == "False" || x.DeleteTag == null)
select x;
///
@@ -508,5 +510,49 @@ namespace BLL
};
}
#endregion
+
+ ///
+ /// 根据主键获取博晟人员信息
+ ///
+ ///
+ ///
+ public static Model.Bo_Sheng_Person GetBoPersonById(string id)
+ {
+ return Funs.DB.Bo_Sheng_Person.FirstOrDefault(e => e.ID == id);
+ }
+
+ ///
+ /// 修改博晟人员信息
+ ///
+ ///
+ ///
+ public static void UpdateBoPerson(Bo_Sheng_Person person)
+ {
+ Model.Bo_Sheng_Person newPerson = Funs.DB.Bo_Sheng_Person.FirstOrDefault(e => e.ID == person.ID);
+ if (newPerson != null)
+ {
+ newPerson.Name = person.Name;
+ newPerson.DepartName = person.DepartName;
+ newPerson.IdentifyID = person.IdentifyID;
+ newPerson.Sex = person.Sex;
+ newPerson.BirthDay = person.BirthDay;
+ newPerson.Station = person.Station;
+ newPerson.Address = person.Address;
+ newPerson.Police = person.Police;
+ newPerson.ValidPeriodStart = person.ValidPeriodStart;
+ newPerson.ValidPeriodEnd = person.ValidPeriodEnd;
+ newPerson.Telephone = person.Telephone;
+ newPerson.JobNumber = person.JobNumber;
+ newPerson.NewAddress = person.NewAddress;
+ newPerson.RegisterDate = person.RegisterDate;
+ newPerson.CategoryLevel = person.CategoryLevel;
+ newPerson.EntranceDate = person.EntranceDate;
+ newPerson.LeaveDate = person.LeaveDate;
+ newPerson.IsOut = person.IsOut;
+ newPerson.IsBlackList = person.IsBlackList;
+ newPerson.UploadTime = person.UploadTime;
+ Funs.DB.SubmitChanges();
+ }
+ }
}
}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index f1bc27e2..35d4ddf2 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -2637,6 +2637,13 @@ namespace BLL
+ #endregion
+
+ #region 博晟培训考试
+ ///
+ /// 人员信息
+ ///
+ public const string BoPersonMenuId = "4E0030F6-EF5E-40A6-939F-C29BC4D7CEE1";
#endregion
#endregion
diff --git a/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx
index 3981bd7b..954102cd 100644
--- a/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx
+++ b/SGGL/FineUIPro.Web/BoSheng/BoPerson.aspx
@@ -18,7 +18,7 @@
runat="server" BoxFlex="1" DataKeyNames="ID" AllowPaging="true"
IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange"
DataIDField="ID" AllowSorting="true" SortField="Name" EnableTextSelection="True"
- SortDirection="ASC" EnableColumnLines="true" OnSort="Grid1_Sort">
+ SortDirection="ASC" EnableColumnLines="true" OnSort="Grid1_Sort" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
@@ -109,7 +109,10 @@
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm:ss" HeaderText="上传时间"
HeaderTextAlign="Center" TextAlign="Center">
-
+
+
+
+
@@ -121,7 +124,28 @@
-
+
+
+
+
+