提交代码
This commit is contained in:
@@ -104,7 +104,30 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetCNProfessionalItem()
|
||||
{
|
||||
var q = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId orderby x.SortIndex select x).ToList();
|
||||
var q = (from x in Funs.DB.Base_CNProfessional
|
||||
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||
&& x.CNProfessionalId != BLL.Const.CNProfessionalHSEId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
ListItem[] list = new ListItem[q.Count()];
|
||||
for (int i = 0; i < q.Count(); i++)
|
||||
{
|
||||
list[i] = new ListItem(q[i].ProfessionalName ?? "", q[i].CNProfessionalId);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 资料收发文专用
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetCNProfessionalDocItem()
|
||||
{
|
||||
var q = (from x in Funs.DB.Base_CNProfessional
|
||||
where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
//var q = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId orderby x.SortIndex select x).ToList();
|
||||
ListItem[] list = new ListItem[q.Count()];
|
||||
for (int i = 0; i < q.Count(); i++)
|
||||
{
|
||||
@@ -142,5 +165,17 @@ namespace BLL
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public static void InitCNProfessionalDocDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Value";
|
||||
dropName.DataTextField = "Text";
|
||||
dropName.DataSource = GetCNProfessionalDocItem();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user