From d21c25aabbe275147974df45c143303997376546 Mon Sep 17 00:00:00 2001 From: Frane Date: Thu, 26 Aug 2021 11:26:04 +0800 Subject: [PATCH] 20210826 --- SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Common/IDCardValid.cs | 103 ++++++ SGGL/BLL/HSSE/SitePerson/PersonService.cs | 1 - SGGL/BLL/ZHGL/RealName/SynchroSetService.cs | 1 + SGGL/FineUIPro.Web/ErrLog.txt | 341 +++++++++++++++++- .../HSSE/SitePerson/PersonList.aspx | 10 +- .../HSSE/SitePerson/PersonList.aspx.cs | 10 +- .../SitePerson/PersonList.aspx.designer.cs | 9 - .../HSSE/SitePerson/PersonListEdit.aspx | 2 +- .../HSSE/SitePerson/PersonListEdit.aspx.cs | 20 + .../ZHGL/RealName/SynchroSet.aspx | 12 + .../ZHGL/RealName/SynchroSet.aspx.cs | 78 ++++ .../ZHGL/RealName/SynchroSet.aspx.designer.cs | 36 ++ 13 files changed, 607 insertions(+), 17 deletions(-) create mode 100644 SGGL/BLL/Common/IDCardValid.cs diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 98ab9914..115270e6 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -165,6 +165,7 @@ + diff --git a/SGGL/BLL/Common/IDCardValid.cs b/SGGL/BLL/Common/IDCardValid.cs new file mode 100644 index 00000000..4cab797c --- /dev/null +++ b/SGGL/BLL/Common/IDCardValid.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Web.UI.WebControls; +using Model; + +namespace BLL +{ + public static class IDCardValid + { + /// + /// 验证身份证号码 + /// + /// 身份证号码 + /// 验证成功为True,否则为False + public static bool CheckIDCard(string Id) + { + if (Id.Length == 18) + { + bool check = CheckIDCard18(Id); + return check; + } + else if (Id.Length == 15) + { + bool check = CheckIDCard15(Id); + return check; + } + else + { + return false; + } + } + + #region 身份证号码验证 + /// + /// 验证15位身份证号 + /// + /// 身份证号 + /// 验证成功为True,否则为False + private static bool CheckIDCard18(string Id) + { + long n = 0; + if (long.TryParse(Id.Remove(17), out n) == false || n < Math.Pow(10, 16) || long.TryParse(Id.Replace('x', '0').Replace('X', '0'), out n) == false) + { + return false;//数字验证 + } + string address = "11x22x35x44x53x12x23x36x45x54x13x31x37x46x61x14x32x41x50x62x15x33x42x51x63x21x34x43x52x64x65x71x81x82x91"; + if (address.IndexOf(Id.Remove(2)) == -1) + { + return false;//省份验证 + } + string birth = Id.Substring(6, 8).Insert(6, "-").Insert(4, "-"); + DateTime time = new DateTime(); + if (DateTime.TryParse(birth, out time) == false) + { + return false;//生日验证 + } + string[] arrVarifyCode = ("1,0,x,9,8,7,6,5,4,3,2").Split(','); + string[] Wi = ("7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2").Split(','); + char[] Ai = Id.Remove(17).ToCharArray(); + int sum = 0; + for (int i = 0; i < 17; i++) + { + sum += int.Parse(Wi[i]) * int.Parse(Ai[i].ToString()); + } + int y = -1; + Math.DivRem(sum, 11, out y); + if (arrVarifyCode[y] != Id.Substring(17, 1).ToLower()) + { + return false;//校验码验证 + } + return true;//符合GB11643-1999标准 + } + + /// + /// 验证18位身份证号 + /// + /// 身份证号 + /// 验证成功为True,否则为False + private static bool CheckIDCard15(string Id) + { + long n = 0; + if (long.TryParse(Id, out n) == false || n < Math.Pow(10, 14)) + { + return false;//数字验证 + } + string address = "11x22x35x44x53x12x23x36x45x54x13x31x37x46x61x14x32x41x50x62x15x33x42x51x63x21x34x43x52x64x65x71x81x82x91"; + if (address.IndexOf(Id.Remove(2)) == -1) + { + return false;//省份验证 + } + string birth = Id.Substring(6, 6).Insert(4, "-").Insert(2, "-"); + DateTime time = new DateTime(); + if (DateTime.TryParse(birth, out time) == false) + { + return false;//生日验证 + } + return true;//符合15位身份证标准 + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/BLL/HSSE/SitePerson/PersonService.cs b/SGGL/BLL/HSSE/SitePerson/PersonService.cs index 4c9e204f..886cde72 100644 --- a/SGGL/BLL/HSSE/SitePerson/PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/PersonService.cs @@ -94,7 +94,6 @@ namespace BLL return null; } - getPersonList = SortConditionHelper.SortingAndPaging(getPersonList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); return from x in getPersonList select new diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index f31758d3..f20c7262 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -1164,6 +1164,7 @@ namespace BLL && (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0 && v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue && (p.IdentityCard.Length == 15 || p.IdentityCard.Length == 18) + orderby x.ChangeTime descending select new { p.PersonId, diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 5f282702..2c690f54 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1 +1,340 @@ - \ No newline at end of file + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:36:43 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:36:43 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:36:45 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:36:45 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:36:46 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:36:46 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:53 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:53 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:55 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:55 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:56 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:56 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:57 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:57 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:58 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:58 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:37:59 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:37:59 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:38:02 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:38:02 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:38:03 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:38:03 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:38:18 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:38:18 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:38:19 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:38:19 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:38:20 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:38:20 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:39:17 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:39:17 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:39:18 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:39:18 + + +错误信息开始=====> +错误类型:HttpException +错误信息:找到多个具有相同 ID“ftpl_508df6b2-74db-452f-bb13-87fd221f0716_3”的控件。FindControl 要求控件具有唯一的 ID。 +错误堆栈: + 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) + 在 System.Web.UI.Page.FindControl(String id) + 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:08/26/2021 10:39:19 +出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx +IP地址:::1 +操作人员:JT + +出错时间:08/26/2021 10:39:19 + diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx index 869b1a61..63101eb3 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx @@ -90,8 +90,7 @@ - - + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs index 5792449c..87f776d2 100644 --- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs @@ -369,5 +369,83 @@ namespace FineUIPro.Web.ZHGL.RealName return; } } + + protected void btnAllPushData_Click(object sender, EventArgs e) + { + string message = string.Empty; + int count = 0; + string projectId = this.drpProject.SelectedValue; + string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId); + var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode); + if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode)) + { + var getIdentityCards = (from x in Funs.DB.SitePerson_Person + join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId + where x.ProjectId == projectId + && x.IdentityCard != null && (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18) + && v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0 + && !x.RealNameAddTime.HasValue + select x.IdentityCard).Take(100); + foreach (var item in getIdentityCards) + { + string mes = BLL.SynchroSetService.PushPersonsByIdentityCard(Const.BtnAdd, getRProjects.ProCode, item) ?? ""; + if (mes != "请求成功") + { + message += ("身份证号码" + item + "新增失败" + mes); + } + else + { + count++; + } + } + } + if (string.IsNullOrEmpty(message)) + { + ShowNotify("同步完成!" + count.ToString() + "条", MessageBoxIcon.Success); + } + else + { + Alert.ShowInParent("同步完成!" + count.ToString() + "条;" + message, MessageBoxIcon.Warning); + } + } + + protected void btnUpdate_Click(object sender, EventArgs e) + { + string message = string.Empty; + int count = 0; + string projectId = this.drpProject.SelectedValue; + string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId); + var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode); + if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode)) + { + var getIdentityCards = (from x in Funs.DB.SitePerson_Person + join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId + where x.ProjectId == projectId + && x.IdentityCard != null && (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18) + && v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0 + && !x.RealNameUpdateTime.HasValue + select x.IdentityCard).Take(100); + foreach (var item in getIdentityCards) + { + string mes = BLL.SynchroSetService.PushPersonsByIdentityCard(Const.BtnModify, getRProjects.ProCode, item) ?? ""; + if (mes != "请求成功") + { + message += ("身份证号码" + item + "更新失败" + mes); + } + else + { + count++; + } + } + } + if (string.IsNullOrEmpty(message)) + { + ShowNotify("同步完成!" + count.ToString() + "条", MessageBoxIcon.Success); + } + else + { + Alert.ShowInParent("同步完成!" + count.ToString() + "条;" + message, MessageBoxIcon.Warning); + } + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs index 0f043932..7ae8e489 100644 --- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs @@ -191,5 +191,41 @@ namespace FineUIPro.Web.ZHGL.RealName { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDataProcess; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// lbxx 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbxx; + + /// + /// btnAllPushData 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAllPushData; + + /// + /// btnUpdate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnUpdate; } }