检查范围 删除 修改对应接口
检查内容 检查项目分类 检查计划
This commit is contained in:
parent
0060c70d73
commit
774b6fc01c
@ -181,7 +181,8 @@ namespace APT.BS.WebApi.Controllers.Api
|
|||||||
entity.Nav_ListCheckQuestion = null;
|
entity.Nav_ListCheckQuestion = null;
|
||||||
if (!string.IsNullOrEmpty(entity.StrCheckObject))
|
if (!string.IsNullOrEmpty(entity.StrCheckObject))
|
||||||
{
|
{
|
||||||
List<string> list = entity.StrCheckObject.Split('_', StringSplitOptions.RemoveEmptyEntries).ToList();
|
//List<string> list = entity.StrCheckObject.Split('_', StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||||
|
List<string> list = new List<string>() { ((int)BSMineTypeEnum.Mine).ToString() };
|
||||||
for (int i = 0; i < list.Count; i++)
|
for (int i = 0; i < list.Count; i++)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -208,6 +209,7 @@ namespace APT.BS.WebApi.Controllers.Api
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
entity.CHECKOBJECT = BSMineTypeEnum.Mine;
|
||||||
this.UnifiedCommit(() =>
|
this.UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
if (entity != null)
|
if (entity != null)
|
||||||
|
|||||||
@ -43,7 +43,17 @@ namespace APT.BS.WebApi.Controllers.Api
|
|||||||
|
|
||||||
if (listObj == null)
|
if (listObj == null)
|
||||||
{
|
{
|
||||||
throw new Exception("请完善检查范围!");
|
var checkCategory = GetEntity<T_BS_CHECK_PROJECT_CATEGORY_OBJECT>(e => e.CHECKOBJECT == BSMineTypeEnum.Mine && e.PROJECT_CATEGORY_ID == entity.ID);
|
||||||
|
if (checkCategory == null)
|
||||||
|
{
|
||||||
|
listObj = new List<T_BS_CHECK_PROJECT_CATEGORY_OBJECT>();
|
||||||
|
listObj.Add(new T_BS_CHECK_PROJECT_CATEGORY_OBJECT()
|
||||||
|
{
|
||||||
|
ORG_ID = entity.ORG_ID,
|
||||||
|
CHECKOBJECT = BSMineTypeEnum.Mine,
|
||||||
|
PROJECT_CATEGORY_ID = entity.ID,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var listCategoryType = entity.Nav_ListCategoryType;
|
var listCategoryType = entity.Nav_ListCategoryType;
|
||||||
entity.Nav_ListCategoryType = null;
|
entity.Nav_ListCategoryType = null;
|
||||||
@ -62,7 +72,7 @@ namespace APT.BS.WebApi.Controllers.Api
|
|||||||
{
|
{
|
||||||
if (entity != null)
|
if (entity != null)
|
||||||
UpdateEntityNoCommit(entity);
|
UpdateEntityNoCommit(entity);
|
||||||
if (listObj.Any())
|
if (listObj != null && listObj.Any())
|
||||||
BantchSaveEntityNoCommit(listObj);
|
BantchSaveEntityNoCommit(listObj);
|
||||||
if (listCategoryType.Any())
|
if (listCategoryType.Any())
|
||||||
BantchSaveEntityNoCommit(listCategoryType);
|
BantchSaveEntityNoCommit(listCategoryType);
|
||||||
|
|||||||
@ -81,13 +81,17 @@ namespace APT.BS.WebApi.Controllers.Api
|
|||||||
var ListSetDepObject = entity.Nav_ListSetDepObject;
|
var ListSetDepObject = entity.Nav_ListSetDepObject;
|
||||||
entity.Nav_ListSetDepObject = null;
|
entity.Nav_ListSetDepObject = null;
|
||||||
int rowIndex = 1;
|
int rowIndex = 1;
|
||||||
foreach (var item in ListSetDepObject)
|
if (ListSetDepObject != null && ListSetDepObject.Any())
|
||||||
{
|
{
|
||||||
if (!item.DEPARTMENT_ID.HasValue)
|
foreach (var item in ListSetDepObject)
|
||||||
{
|
{
|
||||||
throw new Exception("请设置部门,行:" + rowIndex + "!");
|
item.CHECKOBJECT = BSMineTypeEnum.Mine;
|
||||||
|
if (!item.DEPARTMENT_ID.HasValue)
|
||||||
|
{
|
||||||
|
throw new Exception("请设置部门,行:" + rowIndex + "!");
|
||||||
|
}
|
||||||
|
rowIndex++;
|
||||||
}
|
}
|
||||||
rowIndex++;
|
|
||||||
}
|
}
|
||||||
this.UnifiedCommit(() =>
|
this.UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user