小程序接口修改
This commit is contained in:
@@ -99,9 +99,9 @@ namespace BLL
|
||||
CheckTime = string.Format("{0:yyyy-MM-dd}", x.CheckTime),
|
||||
DaySummary = x.DaySummary,
|
||||
PartInUnitIds = x.PartInUnits,
|
||||
PartInUnitNames = UnitService.getUnitNamesUnitIds(x.PartInUnits),
|
||||
PartInUnitNames = UnitService.getUnitNamesUnitIdsForApi (x.PartInUnits),
|
||||
PartInPersonIds = x.PartInPersonIds,
|
||||
PartInPersonNames = UserService.getUserNamesUserIds(x.PartInPersonIds),
|
||||
PartInPersonNames = UserService.getUserNamesUserIdsForApi(x.PartInPersonIds),
|
||||
PartInPersonNames2 = x.PartInPersonNames,
|
||||
CompileManId = x.CompileMan,
|
||||
CompileManName = db.Sys_User.First(u => u.UserId == x.CompileMan).UserName,
|
||||
@@ -159,7 +159,7 @@ namespace BLL
|
||||
DaySummary = System.Web.HttpUtility.HtmlEncode(newItem.DaySummary),
|
||||
PartInUnits = newItem.PartInUnitIds,
|
||||
PartInPersonIds = newItem.PartInPersonIds,
|
||||
PartInPersons = UserService.getUserNamesUserIds(newItem.PartInPersonIds),
|
||||
PartInPersons = UserService.getUserNamesUserIdsForApi(newItem.PartInPersonIds),
|
||||
PartInPersonNames = newItem.PartInPersonNames2,
|
||||
CompileMan = newItem.CompileManId,
|
||||
States = Const.State_0,
|
||||
@@ -194,22 +194,22 @@ namespace BLL
|
||||
db.Check_CheckSpecial.InsertOnSubmit(newCheckSpecial);
|
||||
db.SubmitChanges();
|
||||
////增加一条编码记录
|
||||
BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(BLL.Const.ProjectCheckSpecialMenuId, newCheckSpecial.ProjectId, null, newCheckSpecial.CheckSpecialId, newCheckSpecial.CheckTime);
|
||||
BLL.CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(BLL.Const.ProjectCheckSpecialMenuId, newCheckSpecial.ProjectId, null, newCheckSpecial.CheckSpecialId, newCheckSpecial.CheckTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
Check_CheckSpecialService.UpdateCheckSpecial(newCheckSpecial);
|
||||
Check_CheckSpecialService.UpdateCheckSpecialForApi(newCheckSpecial);
|
||||
//// 删除专项检查明细项
|
||||
Check_CheckSpecialDetailService.DeleteCheckSpecialDetails(newCheckSpecial.CheckSpecialId);
|
||||
Check_CheckSpecialDetailService.DeleteCheckSpecialDetailsForApi(newCheckSpecial.CheckSpecialId);
|
||||
}
|
||||
////保存附件
|
||||
if (!string.IsNullOrEmpty(newItem.AttachUrl1))
|
||||
{
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(newItem.AttachUrl1, 10, null), newItem.AttachUrl1, Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
UploadFileService.SaveAttachUrlForApi(UploadFileService.GetSourceByAttachUrl(newItem.AttachUrl1, 10, null), newItem.AttachUrl1, Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
}
|
||||
else
|
||||
{
|
||||
CommonService.DeleteAttachFileById(Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
CommonService.DeleteAttachFileByIdForApi(Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
}
|
||||
|
||||
///// 新增检查项
|
||||
@@ -227,7 +227,7 @@ namespace BLL
|
||||
if (getC == null)
|
||||
{
|
||||
newCheckSpecial.States = Const.State_2;
|
||||
Check_CheckSpecialService.UpdateCheckSpecial(newCheckSpecial);
|
||||
Check_CheckSpecialService.UpdateCheckSpecialForApi(newCheckSpecial);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -235,7 +235,7 @@ namespace BLL
|
||||
var detailLists = db.Check_CheckSpecialDetail.Where(x => x.CheckSpecialId == newCheckSpecial.CheckSpecialId && x.CompleteStatus == false);
|
||||
if (detailLists.Count() > 0)
|
||||
{
|
||||
message = Check_CheckSpecialService.IssueRectification(detailLists.ToList(), newCheckSpecial);
|
||||
message = Check_CheckSpecialService.IssueRectificationForApi(detailLists.ToList(), newCheckSpecial);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user