安全不符合项清单
This commit is contained in:
@@ -91,16 +91,16 @@ namespace BLL
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 教材库下拉框
|
||||
/// 问题分类明细项下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="workPostId">职务Id</param>
|
||||
/// <param name="classifyId">分类Id</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitClassifyItemDownList(FineUIPro.DropDownList dropName, string workPostId, bool isShowPlease)
|
||||
public static void InitClassifyItemDownList(FineUIPro.DropDownList dropName, string classifyId, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "ClassifyItemId";
|
||||
dropName.DataTextField = "ClassifyItemName";
|
||||
dropName.DataSource = GetClassifyItemList(workPostId);
|
||||
dropName.DataSource = GetClassifyItemList(classifyId);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
|
||||
@@ -85,12 +85,12 @@ namespace BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 类型下拉框(末级)
|
||||
/// 类型下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitClassifyIsEndDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
public static void InitClassifyDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "ClassifyId";
|
||||
dropName.DataTextField = "ClassifyName";
|
||||
|
||||
@@ -95,16 +95,16 @@ namespace BLL
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 教材库下拉框
|
||||
/// 问题性质明细下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="workPostId">职务Id</param>
|
||||
/// <param name="natureId">性质Id</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitNatureItemDownList(FineUIPro.DropDownList dropName, string workPostId, bool isShowPlease)
|
||||
public static void InitNatureItemDownList(FineUIPro.DropDownList dropName, string natureId, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "NatureItemId";
|
||||
dropName.DataTextField = "NatureItemName";
|
||||
dropName.DataSource = GetNatureItemList(workPostId);
|
||||
dropName.DataTextField = "NatureItemContent";
|
||||
dropName.DataSource = GetNatureItemList(natureId);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
@@ -115,14 +115,14 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 获取下拉项
|
||||
/// </summary>
|
||||
/// <param name="classifyId"></param>
|
||||
/// <param name="natureId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_SafetyProblemNatureItem> GetNatureItemList(string classifyId)
|
||||
public static List<Model.Base_SafetyProblemNatureItem> GetNatureItemList(string natureId)
|
||||
{
|
||||
var lst = (from x in Funs.DB.Base_SafetyProblemNatureItem orderby x.NatureItemCode select x).ToList();
|
||||
if (!string.IsNullOrWhiteSpace(classifyId))
|
||||
if (!string.IsNullOrWhiteSpace(natureId))
|
||||
{
|
||||
lst = lst.Where(x => x.NatureId == classifyId).ToList();
|
||||
lst = lst.Where(x => x.NatureId == natureId).ToList();
|
||||
}
|
||||
return lst;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace BLL
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitNatureIsEndDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
public static void InitNatureDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "NatureId";
|
||||
dropName.DataTextField = "NatureName";
|
||||
|
||||
Reference in New Issue
Block a user