20241201 承包商及供应商质量事件报告
This commit is contained in:
@@ -126,5 +126,32 @@ namespace BLL
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取中文承包商列表下拉项
|
||||
/// </summary>
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitCNDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "ContractorId";
|
||||
dropName.DataTextField = "ContractorCN";
|
||||
dropName.DataSource = GetContractorCNList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取承包商列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Contractor> GetContractorCNList()
|
||||
{
|
||||
return (from x in Funs.DB.Base_Contractor orderby x.ContractorCN select x).ToList();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -177,5 +177,15 @@ namespace BLL
|
||||
{
|
||||
return (from x in Funs.DB.Base_Depart where x.DepartCode.Contains("/") || x.DepartCode == "NA" || x.DepartCode.ToLower() == "none" orderby x.DepartCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据部门领导获取部门信息
|
||||
/// </summary>
|
||||
/// <param name="departLeader"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Base_Depart GetDepartByLeader(string departLeader)
|
||||
{
|
||||
return Funs.DB.Base_Depart.FirstOrDefault(e => e.DepartLeader == departLeader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user