This commit is contained in:
parent
cc2bccfe64
commit
e237c55a5d
|
|
@ -1,5 +1,7 @@
|
|||
using BLL;
|
||||
using BLL.Common;
|
||||
using FastReport.Cloud.OAuth;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
|
@ -754,6 +756,7 @@ Where ProjectId=@ProjectId ";
|
|||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId);
|
||||
|
||||
var res1 = YunMouHelper.addPerson(person.IdentityCard, person.PersonName, string.IsNullOrEmpty(person.Telephone) ? "" : person.Telephone, person.PhotoUrl, token);
|
||||
var res3 = YunMouHelper.updatePerson(person.IdentityCard, person.PersonName, string.IsNullOrEmpty(person.Telephone) ? "" : person.Telephone, person.PhotoUrl, token);
|
||||
var res2 = YunMouHelper.addPersonsToGroups(project.YunMouGroupId, new string[] { person.IdentityCard }, token);
|
||||
person.YunMouState = "已经同步";
|
||||
Funs.DB.SubmitChanges();
|
||||
|
|
@ -766,5 +769,12 @@ Where ProjectId=@ProjectId ";
|
|||
ShowNotify("请选择用户", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
protected void btnUpToYunMou_Click(object sender, EventArgs e)
|
||||
{
|
||||
var sitePerson = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == Grid1.SelectedRowID);
|
||||
var person = Funs.DB.Person_Persons.FirstOrDefault(x => x.IdentityCard == sitePerson.IdentityCard);
|
||||
var token = YunMouHelper.getToken();
|
||||
var res3 = YunMouHelper.updatePerson(person.IdentityCard, person.PersonName, string.IsNullOrEmpty(person.Telephone) ? "" : person.Telephone, person.PhotoUrl, token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -656,6 +656,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
imgPhoto1.ImageUrl = url + fileName;
|
||||
// 清空文件上传组件
|
||||
filePhoto.Reset();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in New Issue