提交代码
This commit is contained in:
@@ -1925,6 +1925,38 @@
|
||||
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
|
||||
return responeData.code;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 督查人员推送
|
||||
|
||||
public static int PushInspectionBrigadeUser()
|
||||
{
|
||||
|
||||
string baseurl = "/api/InspectionBrigade/SaveInspectionBrigadeUser";
|
||||
var CollCropCode = BLL.CommonService.GetIsThisUnit()?.CollCropCode;
|
||||
var userList = from x in Funs.DB.Person_Persons
|
||||
where x.IsInspectionBrigade == true
|
||||
select new Model.InspectionBrigadeUserItem()
|
||||
{
|
||||
|
||||
UserId = x.PersonId,
|
||||
UserName = x.PersonName,
|
||||
Sex = x.Sex,
|
||||
Account = x.Account,
|
||||
Password = x.Password,
|
||||
IdentityCard = x.IdentityCard,
|
||||
Telephone = x.Telephone,
|
||||
CollCropCode = CollCropCode
|
||||
|
||||
};
|
||||
|
||||
var resultJsonReport = JsonConvert.SerializeObject(userList.ToList());
|
||||
resultJsonReport = "{\"InspectionBrigadeUserItems\":" + resultJsonReport.Replace("}{", ",") + "}";
|
||||
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
|
||||
return responeData.code;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user