代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
@@ -47,7 +46,7 @@ namespace FineUIPro.Web.Person
|
||||
private void BindGrid()
|
||||
{
|
||||
var getData = Person_PersonsService.getListData(this.drpUnit.SelectedValue, this.drpDepart.SelectedValue, this.drpProject.SelectedValue,
|
||||
this.txtPersonName.Text.Trim(), this.txtIdCard.Text.Trim(), this.drpIsPost.SelectedValue, this.drpPersonType.SelectedValue, this.txtAccount.Text.Trim(),null, Grid1);
|
||||
this.txtPersonName.Text.Trim(), this.txtIdCard.Text.Trim(), this.drpIsPost.SelectedValue, this.drpPersonType.SelectedValue, this.txtAccount.Text.Trim(), null, Grid1);
|
||||
Grid1.RecordCount = Person_PersonsService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
@@ -253,8 +252,8 @@ namespace FineUIPro.Web.Person
|
||||
{
|
||||
int countRecod = 0;
|
||||
int pCountRecod = 0;
|
||||
string info=string.Empty;
|
||||
var getPerson = (from x in Funs.DB.Person_Persons
|
||||
string info = string.Empty;
|
||||
var getPerson = (from x in Funs.DB.Person_Persons
|
||||
where x.IdentityCard != null && x.IdentityCard.Length > 1 && !x.Birthday.HasValue && x.IsCardNoOK.Value
|
||||
select x).Take(1000);
|
||||
foreach (var item in getPerson)
|
||||
@@ -265,18 +264,18 @@ namespace FineUIPro.Web.Person
|
||||
string qrUrl = BLL.CreateQRCodeService.CreateCode_Simple("person$" + item.IdentityCard);
|
||||
item.QRCodeAttachUrl = ("~/" + qrUrl);
|
||||
}
|
||||
|
||||
|
||||
DateTime? birth = IDCardValid.getBirthByIDCard(item.IdentityCard);
|
||||
if (birth.HasValue)
|
||||
{
|
||||
item.Birthday = birth.Value;
|
||||
}
|
||||
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
countRecod++;
|
||||
}
|
||||
info = "操作完成,共处理人员按身份证设置年龄" + countRecod.ToString() + "条。";
|
||||
|
||||
|
||||
//var getPPersons = (from x in Funs.DB.SitePerson_Person
|
||||
// join y in Funs.DB.Person_Persons on x.PersonId equals y.PersonId
|
||||
// where x.States == Const.ProjectPersonStates_1 && y.CurrentProjectId == null
|
||||
|
||||
Reference in New Issue
Block a user