20210826
This commit is contained in:
parent
21b3fd1b44
commit
d21c25aabb
|
@ -165,6 +165,7 @@
|
|||
<Compile Include="Common\CodeRecordsService.cs" />
|
||||
<Compile Include="Common\CommonService.cs" />
|
||||
<Compile Include="Common\CreateQRCodeService.cs" />
|
||||
<Compile Include="Common\IDCardValid.cs" />
|
||||
<Compile Include="Common\PrinterDocService.cs" />
|
||||
<Compile Include="Common\ProjectDataFlowSetService.cs" />
|
||||
<Compile Include="Common\UploadFileService.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
|
||||
{
|
||||
/// <summary>
|
||||
/// 验证身份证号码
|
||||
/// </summary>
|
||||
/// <param name="Id">身份证号码</param>
|
||||
/// <returns>验证成功为True,否则为False</returns>
|
||||
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 身份证号码验证
|
||||
/// <summary>
|
||||
/// 验证15位身份证号
|
||||
/// </summary>
|
||||
/// <param name="Id">身份证号</param>
|
||||
/// <returns>验证成功为True,否则为False</returns>
|
||||
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标准
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证18位身份证号
|
||||
/// </summary>
|
||||
/// <param name="Id">身份证号</param>
|
||||
/// <returns>验证成功为True,否则为False</returns>
|
||||
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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1 +1,340 @@
|
|||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型: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
|
||||
|
||||
|
|
|
@ -90,8 +90,7 @@
|
|||
<f:CheckBox runat="server" ID="ckIdCardInfoNotOK" Label="信息不全" LabelAlign="right" LabelWidth="80px"
|
||||
AutoPostBack="true" OnCheckedChanged="TextBox_TextChanged">
|
||||
</f:CheckBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnPersonOut" ToolTip="批量出场" Icon="UserGo" runat="server" Hidden="true" OnClick="btnPersonOut_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" ToolTip="导入" Icon="ApplicationGet" Hidden="true" runat="server"
|
||||
|
@ -118,11 +117,14 @@
|
|||
<f:RenderField HeaderText="单位名称" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="tfI" HeaderText="身份证号" Width="170px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<f:RenderField HeaderText="身份证号" ColumnID="IdentityCard" DataField="IdentityCard" SortField="UnitName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="170px">
|
||||
</f:RenderField>
|
||||
<%-- <f:TemplateField ColumnID="tfI" HeaderText="身份证号" Width="170px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbI" runat="server" Text=' <%# Bind("IdentityCard") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</f:TemplateField>--%>
|
||||
<f:RenderField HeaderText="班组" ColumnID="TeamGroupName" DataField="TeamGroupName" SortField="TeamGroupName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
|
|
|
@ -169,7 +169,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
private void BindGrid()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
{
|
||||
string unitId = string.Empty;
|
||||
if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
|
||||
{
|
||||
|
@ -186,6 +186,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
Grid1.RecordCount = PersonService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
string idCard = Grid1.Rows[i].Values[3].ToString();
|
||||
if (!IDCardValid.CheckIDCard(idCard))
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "Red";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
@ -255,15 +255,6 @@ namespace FineUIPro.Web.HSSE.SitePerson {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPhoto;
|
||||
|
||||
/// <summary>
|
||||
/// lbI 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbI;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<f:DropDownList ID="drpIdcardType" runat="server" Label="证件类型" LabelWidth="110px" LabelAlign="Right" Required="True" ShowRedStar="True" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtIdentityCard" runat="server" Label="证件号码" MaxLength="50" LabelAlign="Right" LabelWidth="110px"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Required="true" ShowRedStar="true">
|
||||
Required="true" ShowRedStar="true" OnBlur="txtIdentityCard_TextChanged" EnableBlurEvent="true">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtIdcardStartDate" runat="server" Label="证件开始日期" LabelAlign="Right" LabelWidth="110px" Hidden="true">
|
||||
</f:DatePicker>
|
||||
|
|
|
@ -880,5 +880,25 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
this.drpProvinceCode.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtIdentityCard_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtIdentityCard.Text))
|
||||
{
|
||||
string idCard = this.txtIdentityCard.Text.Trim();
|
||||
var q2 = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IdentityCard == idCard && (x.PersonId != this.PersonId || (this.PersonId == null && x.PersonId != null)));
|
||||
if (q2 != null)
|
||||
{
|
||||
ShowNotify("输入的身份证号码已存在!", MessageBoxIcon.Warning);
|
||||
}
|
||||
if (this.drpIdcardType.SelectedValue == "SHENFEN_ZHENGJIAN")
|
||||
{
|
||||
if (!IDCardValid.CheckIDCard(idCard))
|
||||
{
|
||||
ShowNotify("输入的身份证号码有误!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -83,6 +83,18 @@
|
|||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbxx"></f:Label>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAllPushData" Icon="DatabaseAdd" runat="server" Text="上报所有人员" ToolTip="单条循环推送(100条)"
|
||||
OnClick="btnAllPushData_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnUpdate" Icon="DatabaseAdd" runat="server" Text="更新所有人员" ToolTip="单条循环推送(100条)"
|
||||
OnClick="btnUpdate_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -191,5 +191,41 @@ namespace FineUIPro.Web.ZHGL.RealName {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDataProcess;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// lbxx 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbxx;
|
||||
|
||||
/// <summary>
|
||||
/// btnAllPushData 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAllPushData;
|
||||
|
||||
/// <summary>
|
||||
/// btnUpdate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnUpdate;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue