数据穿透新增页面
This commit is contained in:
@@ -848,5 +848,28 @@ namespace BLL
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
public static void InitNoThisAllUnitDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "UnitId";
|
||||
dropName.DataTextField = "UnitName";
|
||||
dropName.DataSource = GetNoThisAllUnitList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取除本单位外的所有单位名称下拉选择项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Unit> GetNoThisAllUnitList()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var q = (from x in db.Base_Unit where x.UnitId != Const.UnitId_CD orderby x.UnitCode select x).ToList();
|
||||
return q;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,15 @@ namespace BLL
|
||||
{
|
||||
return Funs.DB.Sys_User.FirstOrDefault(e => e.UserId == userId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户信息
|
||||
/// </summary>
|
||||
/// <param name="userId">用户Id</param>
|
||||
/// <returns>用户信息</returns>
|
||||
public static Model.Sys_User GetUserByIdentityCard(string identityCard)
|
||||
{
|
||||
return Funs.DB.Sys_User.FirstOrDefault(e => e.IdentityCard == identityCard);
|
||||
}
|
||||
/// <summary>
|
||||
///根据用户名获取用户信息
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user