修改接口
This commit is contained in:
@@ -62,36 +62,42 @@ namespace BLL
|
||||
string type = string.Empty;
|
||||
if (CheckItem != null)
|
||||
{
|
||||
Model.Check_ProjectCheckItemDetail detail = BLL.Check_ProjectCheckItemDetailService.GetCheckItemDetailById(CheckItem.ToString());
|
||||
//Model.Check_ProjectCheckItemDetail detail = BLL.Check_ProjectCheckItemDetailService.GetCheckItemDetailById(CheckItem.ToString());
|
||||
|
||||
//修改为项目安全检查项
|
||||
Model.Technique_CheckItemSet detail = Funs.DB.Technique_CheckItemSet.FirstOrDefault(x => x.CheckItemSetId == CheckItem.ToString());
|
||||
|
||||
if (detail != null)
|
||||
{
|
||||
Model.Check_ProjectCheckItemSet item = BLL.Check_ProjectCheckItemSetService.GetCheckItemSetById(detail.CheckItemSetId);
|
||||
if (item != null)
|
||||
{
|
||||
if (item.SupCheckItem == "0")
|
||||
{
|
||||
type = item.CheckItemName;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = BLL.Check_ProjectCheckItemSetService.GetCheckItemNameBySupCheckItem(item.SupCheckItem);
|
||||
}
|
||||
}
|
||||
type = detail.CheckItemName;
|
||||
//Model.Check_ProjectCheckItemSet item = BLL.Check_ProjectCheckItemSetService.GetCheckItemSetById(detail.CheckItemSetId);
|
||||
//if (item != null)
|
||||
//{
|
||||
// if (item.SupCheckItem == "0")
|
||||
// {
|
||||
// type = item.CheckItemName;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// type = BLL.Check_ProjectCheckItemSetService.GetCheckItemNameBySupCheckItem(item.SupCheckItem);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.Check_ProjectCheckItemSet item = BLL.Check_ProjectCheckItemSetService.GetCheckItemSetById(CheckItem.ToString());
|
||||
if (item != null)
|
||||
{
|
||||
if (item.SupCheckItem == "0")
|
||||
{
|
||||
type = item.CheckItemName;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = BLL.Check_ProjectCheckItemSetService.GetCheckItemNameBySupCheckItem(item.SupCheckItem);
|
||||
}
|
||||
}
|
||||
type = "季节性/节假日检查(无类型)";
|
||||
//Model.Check_ProjectCheckItemSet item = BLL.Check_ProjectCheckItemSetService.GetCheckItemSetById(CheckItem.ToString());
|
||||
//if (item != null)
|
||||
//{
|
||||
// if (item.SupCheckItem == "0")
|
||||
// {
|
||||
// type = item.CheckItemName;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// type = BLL.Check_ProjectCheckItemSetService.GetCheckItemNameBySupCheckItem(item.SupCheckItem);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user