2023-02-16 焊接修改
This commit is contained in:
@@ -268,7 +268,17 @@ namespace BLL
|
||||
return q;
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Model.Base_Unit> GetAllUnit()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var q = (from x in db.Base_Unit
|
||||
|
||||
orderby x.UnitCode
|
||||
select x).Distinct().ToList();
|
||||
return q;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据项目Id获取单位名称下拉选择项
|
||||
/// </summary>
|
||||
@@ -558,7 +568,17 @@ namespace BLL
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
public static void GetALLUnit(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "UnitId";
|
||||
dropName.DataTextField = "UnitName";
|
||||
dropName.DataSource = GetAllUnit();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 单位表下拉框
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user