From a9f0cd7fba544a45d6707a1ee220e56d6eb2d898 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Tue, 23 Dec 2025 20:33:12 +0800 Subject: [PATCH] 11 --- DataBase/版本日志/SGGLDB_V2025-12-23-002.sql | 36 + DataBase/版本日志/SGGLDB_V2025-12-23.sql | 2 + SGGL/BLL/BLL.csproj | 2 + SGGL/BLL/Common/Const.cs | 4 + SGGL/BLL/OpenService/YunMouService.cs | 416 +++++++ SGGL/BLL/ProjectData/ProjectDeviceService.cs | 87 ++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 10 +- SGGL/FineUIPro.Web/Global.asax.cs | 1 + .../HSSE/SitePerson/DateManage.aspx | 107 ++ .../HSSE/SitePerson/DateManage.aspx.cs | 112 ++ .../SitePerson/DateManage.aspx.designer.cs | 188 +++ .../HSSE/SitePerson/PersonInfo.aspx | 3 + .../HSSE/SitePerson/PersonInfo.aspx.cs | 37 +- .../SitePerson/PersonInfo.aspx.designer.cs | 77 +- .../HSSE/SitePerson/PersonList.aspx | 7 +- .../HSSE/SitePerson/PersonList.aspx.cs | 29 + .../SitePerson/PersonList.aspx.designer.cs | 18 +- .../ProjectData/ProjectDevicesEdit.aspx.cs | 5 +- .../ProjectData/ProjectSysSet.aspx.cs | 3 +- SGGL/Microsoft.PowerShell_profile.ps1 | 0 SGGL/Model/Model.cs | 1106 ++++++++++++++--- 21 files changed, 2015 insertions(+), 235 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2025-12-23-002.sql create mode 100644 DataBase/版本日志/SGGLDB_V2025-12-23.sql create mode 100644 SGGL/BLL/OpenService/YunMouService.cs create mode 100644 SGGL/BLL/ProjectData/ProjectDeviceService.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx create mode 100644 SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.cs create mode 100644 SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.designer.cs create mode 100644 SGGL/Microsoft.PowerShell_profile.ps1 diff --git a/DataBase/版本日志/SGGLDB_V2025-12-23-002.sql b/DataBase/版本日志/SGGLDB_V2025-12-23-002.sql new file mode 100644 index 00000000..234f8b4b --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2025-12-23-002.sql @@ -0,0 +1,36 @@ +INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'5B302FF3-A6E4-4305-A0C0-64CA7377777A', N'ʱ', NULL, N'HSSE/SitePerson/DateManage.aspx', '9', N'0', N'Menu_SMZGL', '0', '1', '1'); +INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'1CFF6CE1-52F4-41F4-A40F-1DB4DB353974', N'5B302FF3-A6E4-4305-A0C0-64CA7377777A', N'', '1'); +INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'46F5F687-D838-4D7E-A7D0-F0262BFC9F04', N'5B302FF3-A6E4-4305-A0C0-64CA7377777A', N'ɾ', '3'); +INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'CEC8EAE8-A691-496A-BE4B-AFD9C8BD6FAD', N'5B302FF3-A6E4-4305-A0C0-64CA7377777A', N'', '4'); +INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'DF01EF57-7D20-4E1D-AE6C-CC65798D5830', N'5B302FF3-A6E4-4305-A0C0-64CA7377777A', N'޸', '2'); + + +CREATE TABLE [dbo].[Kqgl_DateManage]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [AmStartTime1] [time](7) NULL, + [AmStartTime2] [time](7) NULL, + [AmEndTime1] [time](7) NULL, + [AmEndTime2] [time](7) NULL, + [PmStartTime1] [time](7) NULL, + [PmStartTime2] [time](7) NULL, + [PmEndTime1] [time](7) NULL, + [PmEndTime2] [time](7) NULL, + [LateTime] [int] NULL, + [LeaveTime] [int] NULL, + [EquipmentCode] [nvarchar](500) NULL, + CONSTRAINT [PK_Kqgl_DateManage] 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 + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ٵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Kqgl_DateManage', @level2type=N'COLUMN',@level2name=N'LateTime' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Kqgl_DateManage', @level2type=N'COLUMN',@level2name=N'LeaveTime' +GO + + diff --git a/DataBase/版本日志/SGGLDB_V2025-12-23.sql b/DataBase/版本日志/SGGLDB_V2025-12-23.sql new file mode 100644 index 00000000..3b602ae5 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2025-12-23.sql @@ -0,0 +1,2 @@ +Alter TABLE [dbo].[Person_Persons] +add [YunMouState] [nvarchar](50) NULL \ No newline at end of file diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 7f6a19fa..72a496c3 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -602,6 +602,7 @@ + @@ -672,6 +673,7 @@ + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 8a64bef8..7ad3c8af 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -2048,6 +2048,10 @@ namespace BLL /// public const string DayReportMenuId = "8F15D3BE-BE21-4A6F-AD5C-2BBECEE46149"; + /// + /// 考勤时间管理 + /// + public const string Menu_KqglDateManger = "5B302FF3-A6E4-4305-A0C0-64CA7377777A"; /// /// 人工时月报 /// diff --git a/SGGL/BLL/OpenService/YunMouService.cs b/SGGL/BLL/OpenService/YunMouService.cs new file mode 100644 index 00000000..98a1f3d9 --- /dev/null +++ b/SGGL/BLL/OpenService/YunMouService.cs @@ -0,0 +1,416 @@ +using BLL.Common; +using Newtonsoft.Json; +using System; +using System.Linq; +using System.Timers; + +namespace BLL +{ + public class YunMouService + { + + #region 启动监视器 系统启动5分钟 + /// + /// 监视组件 + /// + private static Timer messageTimer; + private static string token; + private static string consumerId; + /// + /// 启动监视器,不一定能成功,根据系统设置决定对监视器执行的操作 系统启动5分钟 + /// + public static void StartMonitor() + { + token = YunMouHelper.getToken(); + consumerId = YunMouHelper.addConsumer(token); + + if (messageTimer != null) + { + messageTimer.Stop(); + messageTimer.Dispose(); + messageTimer = null; + } + + messageTimer = new Timer + { + AutoReset = true + }; + messageTimer.Elapsed += new ElapsedEventHandler(InProcess); + messageTimer.Interval = 4000 * 60;// 10分钟 + messageTimer.Start(); + } + + /// + /// 流程确认 定时执行 系统启动5分钟 + /// + /// Timer组件 + /// 事件参数 + private static void InProcess(object sender, ElapsedEventArgs e) + { + //自动调用 + DoSynchDataNew(); + } + #endregion + + /// + /// 手动调用 + /// + public static void manualOperation(string tokenSd, string consumerIdSd) + { + DoSynchData(tokenSd, consumerIdSd); + } + + /// + /// + /// + public static void DoSynchData(string tokenSd = "", string consumerIdSd = "") + { + try + { + if (string.IsNullOrEmpty(token)) + { + token = tokenSd; + } + + if (string.IsNullOrEmpty(consumerId)) + { + consumerId = consumerIdSd; + } + ////获取token + //token = YunMouHelper.getToken(); + ////创建消费者消费者如果5分钟未调用拉取消息接口将被删除。 + //consumerId = YunMouHelper.addConsumer(token); + + LogService.AddLog(token + ";" + consumerId, "调用消息队列参数"); + string content = YunMouHelper.consumerMessage(consumerId, token); + //调用消息队列第一次 + LogService.AddLog(content, "调用消息队列1"); + var j2 = JsonConvert.DeserializeObject(content); + + //消费者首次拉取消息时需要与消息通道建立连接,此次调用实际拉到消息列表为空, + //再次调用即可拉取到消息,30秒内必须再次调用拉取消息接口,否则将断开与消息通道的连接。 + //因此拉取间隔需要在30秒以内,否则每次拉到的消息是空的 + if (j2.data.Count > 0) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + for (int i = 0; i < j2.data.Count; i++) + { + var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString()); + if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo))) + { + string deviceSerial = Convert.ToString(msg.deviceSerial); + string employeeNo = Convert.ToString(msg.employeeNo); + DateTime dateTime = Convert.ToDateTime(Convert.ToString(msg.dateTime)); + var devices = Funs.DB.Project_Devices.FirstOrDefault(x => x.DeviceSerial == deviceSerial); + Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut + { + ProjectId = devices.ProjectId, + IdentityCard = employeeNo, + IsIn = true, + ChangeTime = dateTime, + InOutWay = Const.InOutWay_1, + }; + InsertInOut(newInOut); + } + + } + } + } + else + { + //修改 如果为空循环调用最多5次 + for (int y = 0; y < 5; y++) + { + //如果为空再调一次 + content = YunMouHelper.consumerMessage(consumerId, token); + //调用消息队列第二次 + LogService.AddLog(content, "调用消息队列" + (y + 2).ToString()); + j2 = JsonConvert.DeserializeObject(content); + if (j2.data.Count > 0) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + for (int i = 0; i < j2.data.Count; i++) + { + var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString()); + if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo))) + { + string deviceSerial = Convert.ToString(msg.deviceSerial); + string employeeNo = Convert.ToString(msg.employeeNo); + DateTime dateTime = Convert.ToDateTime(Convert.ToString(msg.dateTime)); + + var devices = Funs.DB.Project_Devices.FirstOrDefault(x => x.DeviceSerial == deviceSerial); + //身份证号时 + if (employeeNo.Length == 18) + { + Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut + { + ProjectId = devices.ProjectId, + IdentityCard = employeeNo, + IsIn = true, + ChangeTime = dateTime, + InOutWay = Const.InOutWay_1, + }; + InsertInOut(newInOut); + + } + } + + } + //提交偏移量 + var msgOffset = YunMouHelper.offsets(consumerId, token); + } + //有值跳出循环 + break; + } + } + } + } + catch (Exception ex) + { + var erro = ex.Message; + LogService.AddLog(ex.Message, "调用消息队列"); + } + } + + public static void DoSynchDataNew() + { + try + { + ////获取token + //token = YunMouHelper.getToken(); + ////创建消费者消费者如果5分钟未调用拉取消息接口将被删除。 + //consumerId = YunMouHelper.addConsumer(token); + + LogService.AddLog(token + ";" + consumerId, "调用消息队列参数"); + string content = YunMouHelper.consumerMessage(consumerId, token); + //调用消息队列第一次 + LogService.AddLog(content, "调用消息队列1"); + var j2 = JsonConvert.DeserializeObject(content); + + //消费者首次拉取消息时需要与消息通道建立连接,此次调用实际拉到消息列表为空, + //再次调用即可拉取到消息,30秒内必须再次调用拉取消息接口,否则将断开与消息通道的连接。 + //因此拉取间隔需要在30秒以内,否则每次拉到的消息是空的 + if (j2.data.Count > 0) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + for (int i = 0; i < j2.data.Count; i++) + { + var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString()); + if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo))) + { + string deviceSerial = Convert.ToString(msg.deviceSerial); + string employeeNo = Convert.ToString(msg.employeeNo); + DateTime dateTime = Convert.ToDateTime(Convert.ToString(msg.dateTime)); + var devices = db.Project_Devices.FirstOrDefault(x => x.DeviceSerial == deviceSerial); + Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut + { + ProjectId = devices.ProjectId, + IdentityCard = employeeNo, + IsIn = true, + ChangeTime = dateTime, + InOutWay = Const.InOutWay_1, + }; + InsertInOut(newInOut); + } + + } + } + } + else + { + //修改 如果为空循环调用最多5次 + for (int y = 0; y < 5; y++) + { + //如果为空再调一次 + content = YunMouHelper.consumerMessage(consumerId, token); + //调用消息队列第二次 + LogService.AddLog(content, "调用消息队列" + (y + 2).ToString()); + j2 = JsonConvert.DeserializeObject(content); + if (j2.data.Count > 0) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + for (int i = 0; i < j2.data.Count; i++) + { + var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString()); + if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo))) + { + string deviceSerial = Convert.ToString(msg.deviceSerial); + string employeeNo = Convert.ToString(msg.employeeNo); + DateTime dateTime = Convert.ToDateTime(Convert.ToString(msg.dateTime)); + + var devices = Funs.DB.Project_Devices.FirstOrDefault(x => x.DeviceSerial == deviceSerial); + //身份证号时 + if (employeeNo.Length == 18) + { + Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut + { + ProjectId = devices.ProjectId, + IdentityCard = employeeNo, + IsIn = true, + ChangeTime = dateTime, + InOutWay = Const.InOutWay_1, + }; + InsertInOut(newInOut); + + } + } + + } + //提交偏移量 + var msgOffset = YunMouHelper.offsets(consumerId, token); + } + //有值跳出循环 + break; + } + } + } + } + catch (Exception ex) + { + var erro = ex.Message; + LogService.AddLog(ex.Message, "调用消息队列"); + } + } + + #region 根据考勤时间进入考勤 + public static void InsertInOut(Model.SitePerson_PersonInOut model) + { + //考勤时间配置不为空的情况 + var Kqgl_DateManageModel = Funs.DB.Kqgl_DateManage.FirstOrDefault(x => x.ProjectId == model.ProjectId); + if (Kqgl_DateManageModel != null) + { + var changeTime = Convert.ToDateTime(model.ChangeTime); + var nowTime = TimeSpan.Parse(changeTime.ToString("HH:mm:ss"));//当前时间的时分秒 + #region 根据规则判断是进门还是出门 + TimeSpan AmStartTime1 = TimeSpan.Parse(Kqgl_DateManageModel.AmStartTime1.ToString()); + TimeSpan AmStartTime2 = TimeSpan.Parse(Kqgl_DateManageModel.AmStartTime2.ToString()); + + TimeSpan AmEndTime1 = TimeSpan.Parse(Kqgl_DateManageModel.AmEndTime1.ToString()); + TimeSpan AmEndTime2 = TimeSpan.Parse(Kqgl_DateManageModel.AmEndTime2.ToString()); + + TimeSpan PmStartTime1 = TimeSpan.Parse(Kqgl_DateManageModel.PmStartTime1.ToString()); + TimeSpan PmStartTime2 = TimeSpan.Parse(Kqgl_DateManageModel.PmStartTime2.ToString()); + + TimeSpan PmEndTime1 = TimeSpan.Parse(Kqgl_DateManageModel.PmEndTime1.ToString()); + TimeSpan PmEndTime2 = TimeSpan.Parse(Kqgl_DateManageModel.PmEndTime2.ToString()); + + TimeSpan time1 = new TimeSpan(0, Convert.ToInt32(Kqgl_DateManageModel.LateTime), 0); + TimeSpan time2 = new TimeSpan(0, Convert.ToInt32(Kqgl_DateManageModel.LeaveTime), 0); + //允许迟到x分钟 + AmStartTime2 = AmStartTime2.Add(time2); + PmStartTime2 = PmStartTime2.Add(time2); + + //允许早退x分钟 + AmEndTime1 = AmEndTime1.Add(-time1); + PmEndTime1 = PmEndTime1.Add(-time1); + + var personModel = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == model.IdentityCard && x.ProjectId == model.ProjectId); + if (personModel != null) + { + //状态:0上午上班 1上午下班 2下午上班 3下午下班 + var state = ""; + //如果是在进场时间内 + if (nowTime >= AmStartTime1 && nowTime <= AmStartTime2) + { + model.IsIn = true; + state = "0"; + } + if (nowTime >= PmStartTime1 && nowTime <= PmStartTime2) + { + model.IsIn = true; + state = "2"; + } + if (nowTime >= AmEndTime1 && nowTime <= AmEndTime2) + { + model.IsIn = false; + state = "1"; + } + if (nowTime >= PmEndTime1 && nowTime <= PmEndTime2) + { + model.IsIn = false; + state = "3"; + } + Model.SGGLDB db = Funs.DB; + #region 这个人该时间点内有数据的话,就删掉(上班打卡时间取最早不删除,下班取最晚,删除早的) + var objTime1 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + AmStartTime1.ToString()); + var objTime2 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + AmStartTime2.ToString()); + + var objTime3 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + AmEndTime1.ToString()); + var objTime4 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + AmEndTime2.ToString()); + + var objTime5 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + PmStartTime1.ToString()); + var objTime6 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + PmStartTime2.ToString()); + + var objTime7 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + PmEndTime1.ToString()); + var objTime8 = Convert.ToDateTime(Convert.ToDateTime(changeTime).ToString("yyyy-MM-dd") + " " + PmEndTime2.ToString()); + + //1.上午上班 + var result1 = db.SitePerson_PersonInOut.Where(x => x.ProjectId == model.ProjectId && x.IdentityCard == personModel.IdentityCard && + x.ChangeTime >= objTime1 && x.ChangeTime <= objTime2 + ).ToList(); + //2.上午下班 + var result2 = db.SitePerson_PersonInOut.Where(x => x.ProjectId == model.ProjectId && x.IdentityCard == personModel.IdentityCard && + x.ChangeTime >= objTime3 && x.ChangeTime <= objTime4 + ).ToList(); + //3.下午上班 + var result3 = db.SitePerson_PersonInOut.Where(x => x.ProjectId == model.ProjectId && x.IdentityCard == personModel.IdentityCard && + x.ChangeTime >= objTime5 && x.ChangeTime <= objTime6 + ).ToList(); + //4.下午下班 + var result4 = db.SitePerson_PersonInOut.Where(x => x.ProjectId == model.ProjectId && x.IdentityCard == personModel.IdentityCard && + x.ChangeTime >= objTime7 && x.ChangeTime <= objTime8 + ).ToList(); + + //上班打卡时间取最早,下班取最晚 + if (result1.Count > 0 && state == "0") + { + //db.SitePerson_PersonInOut.DeleteAllOnSubmit(result1); + //db.SubmitChanges(); + } + else if (result1.Count == 0 && state == "0") + { + PersonInOutService.AddPersonInOut(model); + } + if (result2.Count > 0 && state == "1") + { + db.SitePerson_PersonInOut.DeleteAllOnSubmit(result2); + db.SubmitChanges(); + PersonInOutService.AddPersonInOut(model); + } + else if (result2.Count == 0 && state == "1") + { + PersonInOutService.AddPersonInOut(model); + } + if (result3.Count > 0 && state == "2") + { + //db.SitePerson_PersonInOut.DeleteAllOnSubmit(result3); + //db.SubmitChanges(); + } + else if (result3.Count == 0 && state == "2") + { + PersonInOutService.AddPersonInOut(model); + } + if (result4.Count > 0 && state == "3") + { + db.SitePerson_PersonInOut.DeleteAllOnSubmit(result4); + db.SubmitChanges(); + PersonInOutService.AddPersonInOut(model); + } + else if (result4.Count == 0 && state == "3") + { + PersonInOutService.AddPersonInOut(model); + } + #endregion + } + + #endregion + } + + } + #endregion + } +} diff --git a/SGGL/BLL/ProjectData/ProjectDeviceService.cs b/SGGL/BLL/ProjectData/ProjectDeviceService.cs new file mode 100644 index 00000000..96cc1141 --- /dev/null +++ b/SGGL/BLL/ProjectData/ProjectDeviceService.cs @@ -0,0 +1,87 @@ +namespace BLL +{ + using System.Collections.Generic; + using System.Linq; + using Model; + + public static class ProjectDeviceService + { + public static Model.SGGLDB db = Funs.DB; + + /// + ///获取项目单位信息 + /// + /// + public static Model.Project_Devices GetProjectDeviceById(string deviceId) + { + return Funs.DB.Project_Devices.FirstOrDefault(e => e.DeviceId == deviceId); + } + + + /// + /// 增加项目设备信息 + /// + /// + public static void AddProjectDevice(Project_Devices projectDevices) + { + SGGLDB db = Funs.DB; + Project_Devices newProjectUnit = new Project_Devices + { + DeviceId = SQLHelper.GetNewID(typeof(Model.Project_Devices)), + ProjectId = projectDevices.ProjectId, + DeviceName = projectDevices.DeviceName, + DeviceSerial = projectDevices.DeviceSerial, + CreateDate = projectDevices.CreateDate, + Address = projectDevices.Address, + IsInOut = projectDevices.IsInOut, + ValidateCode = projectDevices.ValidateCode, + YunMouDeviceId = projectDevices.YunMouDeviceId, + YunMouPermission = projectDevices.YunMouPermission, + }; + db.Project_Devices.InsertOnSubmit(newProjectUnit); + db.SubmitChanges(); + } + + /// + ///修改项目设备信息 + /// + /// + public static void UpdateProjectDevice(Model.Project_Devices devices) + { + Model.SGGLDB db = Funs.DB; + Model.Project_Devices newDevices = db.Project_Devices.FirstOrDefault(e => e.DeviceId == devices.DeviceId); + if (newDevices != null) + { + newDevices.ProjectId = devices.ProjectId; + newDevices.DeviceName = devices.DeviceName; + newDevices.DeviceSerial = devices.DeviceSerial; + newDevices.CreateDate = devices.CreateDate; + newDevices.Address = devices.Address; + newDevices.IsInOut = devices.IsInOut; + newDevices.ValidateCode = devices.ValidateCode; + newDevices.YunMouPermission = devices.YunMouPermission; + newDevices.YunMouDeviceId = devices.YunMouDeviceId; + db.SubmitChanges(); + } + } + + /// + /// 根据项目单位Id删除一个项目单位信息 + /// + /// + public static void DeleteProjectDeviceById(string deviceId) + { + Model.SGGLDB db = Funs.DB; + Model.Project_Devices devices = db.Project_Devices.FirstOrDefault(e => e.DeviceId == deviceId); + if (devices != null) + { + db.Project_Devices.DeleteOnSubmit(devices); + db.SubmitChanges(); + } + } + + + + + } +} diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 83aff9e3..c68fe42c 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1982,6 +1982,7 @@ + @@ -13577,6 +13578,13 @@ SafetyOrganizationEdit.aspx + + DateManage.aspx + ASPXCodeBehind + + + DateManage.aspx + DayReport.aspx ASPXCodeBehind @@ -16854,7 +16862,7 @@ - + diff --git a/SGGL/FineUIPro.Web/Global.asax.cs b/SGGL/FineUIPro.Web/Global.asax.cs index dc8e23be..fcdc7c02 100644 --- a/SGGL/FineUIPro.Web/Global.asax.cs +++ b/SGGL/FineUIPro.Web/Global.asax.cs @@ -64,6 +64,7 @@ { BLL.MonitorService.StartMonitor(); BLL.MonitorService.StartMonitorEve(); + BLL.YunMouService.StartMonitor(); //BLL.MonitorService.StartPersonQuarterCheck(); QuartzServices.Init(); } diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx new file mode 100644 index 00000000..c4bea2b7 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx @@ -0,0 +1,107 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DateManage.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.DateManage" %> + + + + + + + 考勤时间管理 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.cs new file mode 100644 index 00000000..cfbe063d --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using BLL; + +namespace FineUIPro.Web.HSSE.SitePerson +{ + public partial class DateManage : PageBase + { + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + + public Model.SGGLDB db = Funs.DB; + + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + ProjectId = CurrUser.LoginProjectId; + GetButtonPower(); + var result = db.Kqgl_DateManage.FirstOrDefault(x => x.ProjectId == ProjectId); + if (result!=null) + { + txtAmStartTime1.Text = result.AmStartTime1.ToString(); + txtAmStartTime2.Text = result.AmStartTime2.ToString(); + txtAmEndTime1.Text = result.AmEndTime1.ToString(); + txtAmEndTime2.Text = result.AmEndTime2.ToString(); + txtPmStartTime1.Text = result.PmStartTime1.ToString(); + txtPmStartTime2.Text = result.PmStartTime2.ToString(); + txtPmEndTime1.Text = result.PmEndTime1.ToString(); + txtPmEndTime2.Text = result.PmEndTime2.ToString(); + txtLateTime.Text = result.LateTime.ToString(); + txtLeaveTime.Text = result.LeaveTime.ToString(); + txtEquipmentCode.Text = result.EquipmentCode; + } + } + } + + void GetButtonPower() + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.Menu_KqglDateManger, Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + + protected void btnSave_Click(object sender, EventArgs e) { + var result = db.Kqgl_DateManage.FirstOrDefault(x => x.ProjectId == ProjectId); + if (result==null) + { + Model.Kqgl_DateManage model = new Model.Kqgl_DateManage() + { + ProjectId=ProjectId, + Id = Guid.NewGuid().ToString(), + + AmStartTime2 = TimeSpan.Parse(txtAmStartTime2.Text), + + AmEndTime1 = TimeSpan.Parse(txtAmEndTime1.Text), + AmEndTime2 = TimeSpan.Parse(txtAmEndTime2.Text), + + PmStartTime1 = TimeSpan.Parse(txtPmStartTime1.Text), + PmStartTime2 = TimeSpan.Parse(txtPmStartTime2.Text), + + PmEndTime1 = TimeSpan.Parse(txtPmEndTime1.Text), + PmEndTime2 = TimeSpan.Parse(txtPmEndTime2.Text), + + LateTime = Convert.ToInt32(txtLateTime.Text), + LeaveTime = Convert.ToInt32(txtLeaveTime.Text), + EquipmentCode= txtEquipmentCode.Text.Trim() + }; + model.AmStartTime1 = TimeSpan.Parse(txtAmStartTime1.Text); + db.Kqgl_DateManage.InsertOnSubmit(model); + db.SubmitChanges(); + } + else + { + var model = db.Kqgl_DateManage.FirstOrDefault(x => x.Id == result.Id) ; + + + model.AmStartTime2 = TimeSpan.Parse(txtAmStartTime2.Text); + + model.AmEndTime1 = TimeSpan.Parse(txtAmEndTime1.Text); + model.AmEndTime2 = TimeSpan.Parse(txtAmEndTime2.Text); + + model.PmStartTime1 = TimeSpan.Parse(txtPmStartTime1.Text); + model.PmStartTime2 = TimeSpan.Parse(txtPmStartTime2.Text); + + model.PmEndTime1 = TimeSpan.Parse(txtPmEndTime1.Text); + model.PmEndTime2 = TimeSpan.Parse(txtPmEndTime2.Text); + + model.LateTime = Convert.ToInt32(txtLateTime.Text); + model.LeaveTime = Convert.ToInt32(txtLeaveTime.Text); + + model.AmStartTime1 = TimeSpan.Parse(txtAmStartTime1.Text); + model.EquipmentCode = txtEquipmentCode.Text.Trim(); + db.SubmitChanges(); + } + Alert.ShowInTop("编辑成功!", MessageBoxIcon.Success); + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.designer.cs new file mode 100644 index 00000000..3318e4a5 --- /dev/null +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/DateManage.aspx.designer.cs @@ -0,0 +1,188 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.HSSE.SitePerson +{ + + + public partial class DateManage + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// RegionPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RegionPanel RegionPanel1; + + /// + /// Region2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Region Region2; + + /// + /// GroupPanel0 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel0; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtAmStartTime1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtAmStartTime1; + + /// + /// txtAmStartTime2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtAmStartTime2; + + /// + /// txtAmEndTime1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtAmEndTime1; + + /// + /// txtAmEndTime2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtAmEndTime2; + + /// + /// txtPmStartTime1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPmStartTime1; + + /// + /// txtPmStartTime2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPmStartTime2; + + /// + /// txtPmEndTime1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPmEndTime1; + + /// + /// txtPmEndTime2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPmEndTime2; + + /// + /// txtLateTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLateTime; + + /// + /// txtLeaveTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtLeaveTime; + + /// + /// txtEquipmentCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtEquipmentCode; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + } +} diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx index 0350b8ea..7a6418c2 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx @@ -36,6 +36,9 @@ + + diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.cs index 5009dbfc..2cdfcfa0 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.cs @@ -1,5 +1,7 @@ -using BLL; +using Apache.NMS.ActiveMQ.Commands; +using BLL; using System; +using BLL.Common; using System.Linq; using System.Text; using AspNet = System.Web.UI.WebControls; @@ -8,6 +10,28 @@ namespace FineUIPro.Web.HSSE.SitePerson { public partial class PersonInfo : PageBase { + public string consumerIdR + { + get + { + return (string)ViewState["consumerIdR"]; + } + set + { + ViewState["consumerIdR"] = value; + } + } + public string tokenR + { + get + { + return (string)ViewState["tokenR"]; + } + set + { + ViewState["tokenR"] = value; + } + } #region 加载页面 /// /// 加载页面 @@ -18,6 +42,12 @@ namespace FineUIPro.Web.HSSE.SitePerson { if (!IsPostBack) { + ////获取token + tokenR = YunMouHelper.getToken(); + ////创建消费者消费者如果5分钟未调用拉取消息接口将被删除。 + consumerIdR = YunMouHelper.addConsumer(tokenR); + + ////权限按钮方法 this.GetButtonPower(); btnNew.OnClientClick = Window1.GetShowReference("PersonInfoEdit.aspx") + "return false;"; @@ -369,6 +399,11 @@ namespace FineUIPro.Web.HSSE.SitePerson } Alert.ShowInTop("写入考勤" + count.ToString() + "条。", MessageBoxIcon.Success); + } //云眸同步 + protected void btnYunMou_Click(object sender, EventArgs e) + { + YunMouService.manualOperation(tokenR, consumerIdR); + BindGrid(); } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.designer.cs index 5adb8b0f..6b54b1eb 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonInfo.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HSSE.SitePerson { - - - public partial class PersonInfo { - +namespace FineUIPro.Web.HSSE.SitePerson +{ + + + public partial class PersonInfo + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// rbInOutWay 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList rbInOutWay; - + /// /// drpUnit 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; - + /// /// txtStartDate 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStartDate; - + /// /// txtEndDate 控件。 /// @@ -92,7 +94,16 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndDate; - + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + /// /// btnNew 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnImport 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// Toolbar1 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtPersonName 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPersonName; - + /// /// txtIdCard 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtIdCard; - + /// /// btSearch 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btSearch; - + /// /// btnOut 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// btnInRealName 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnInRealName; - + /// /// btnPersonOut 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPersonOut; - + /// /// labNumber 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label labNumber; - + /// /// lblIdentityCard 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblIdentityCard; - + /// /// lblIntoOut 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblIntoOut; - + /// /// lblInOutWayName 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblInOutWayName; - + /// /// ToolbarSeparator1 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuDelete 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx index 433821fe..fdc92fb6 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx @@ -105,6 +105,9 @@ + + + @@ -140,11 +143,11 @@ FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm:ss" HeaderText="上报集团时间" HeaderTextAlign="Center" TextAlign="Center"> - + <%-- - + --%>