1、系统菜单调整;
2、系统看板UI调整; 3、事故事件功能 4、其他
This commit is contained in:
@@ -414,7 +414,36 @@ namespace BLL
|
||||
return code;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前单位下分公司拉选项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Unit> GetMainAndSubUnitList()
|
||||
{
|
||||
//return (from x in Funs.DB.Base_Unit where x.IsThisUnit == true || x.IsBranch == true orderby x.IsThisUnit descending select x).ToList();
|
||||
return (from x in Funs.DB.Base_Unit where x.IsBranch == true select x).ToList();
|
||||
}
|
||||
|
||||
#region 单位表下拉框
|
||||
|
||||
/// <summary>
|
||||
/// 获取分公司表下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitBranchUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "UnitId";
|
||||
dropName.DataTextField = "UnitName";
|
||||
dropName.DataSource = BLL.UnitService.GetMainAndSubUnitList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 单位表下拉框
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user