提交代码
This commit is contained in:
parent
7108e96152
commit
2e1c911889
|
@ -357,10 +357,27 @@ namespace BLL
|
|||
/// <param name="supTypeId"></param>
|
||||
/// <param name="checkType">1-checkType;2-专项检查;3-综合检查</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.ResourcesItem> getCheckItemSetListBySupCheckItemId(string supTypeId, string checkType)
|
||||
public static List<Model.ResourcesItem> getCheckItemSetListBySupCheckItemId(string supTypeId, string checkType,string supName="")
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(supName))
|
||||
{
|
||||
var getDataLists = from x in db.Technique_CheckItemSet
|
||||
where x.CheckType == checkType && (x.SupCheckItem == supTypeId || (supTypeId == null && x.SupCheckItem == "0"))
|
||||
&& x.CheckItemName.Contains(supName)
|
||||
orderby x.SortIndex
|
||||
select new Model.ResourcesItem
|
||||
{
|
||||
ResourcesId = x.CheckItemSetId,
|
||||
ResourcesCode = x.MapCode,
|
||||
ResourcesName = x.CheckItemName,
|
||||
SupResourcesId = x.SupCheckItem,
|
||||
IsEndLever = x.IsEndLever,
|
||||
};
|
||||
return getDataLists.ToList();
|
||||
}
|
||||
else {
|
||||
var getDataLists = from x in db.Technique_CheckItemSet
|
||||
where x.CheckType == checkType && (x.SupCheckItem == supTypeId || (supTypeId == null && x.SupCheckItem == "0"))
|
||||
orderby x.SortIndex
|
||||
|
@ -374,6 +391,9 @@ namespace BLL
|
|||
};
|
||||
return getDataLists.ToList();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue