升级
This commit is contained in:
@@ -1562,7 +1562,39 @@ namespace BLL
|
||||
return list;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据单位Id获取用户下拉选项【单位本部在职人员】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Sys_User> GetIsOfficeUserListByUnitId(string unitId)
|
||||
{
|
||||
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
|
||||
{
|
||||
List<Model.Sys_User> list = new List<Model.Sys_User>();
|
||||
list = (from x in db.Sys_User
|
||||
where x.UnitId == unitId && x.IsOffice == true && x.IsPost == true
|
||||
orderby x.UserName
|
||||
select x).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitIsOfficeUserUnitIdDropDownList(FineUIPro.DropDownList dropName, string unitId, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "UserId";
|
||||
dropName.DataTextField = "UserName";
|
||||
dropName.DataSource = BLL.UserService.GetIsOfficeUserListByUnitId(unitId);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户下拉框
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user