65 lines
2.2 KiB
C#
65 lines
2.2 KiB
C#
namespace BLL
|
|
{
|
|
using System;
|
|
using System.Web.UI.WebControls;
|
|
using Model;
|
|
using BLL;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// 自定义下拉框通用类
|
|
/// </summary>
|
|
public static class DropListService
|
|
{
|
|
#region 公共平台
|
|
|
|
/// <summary>
|
|
/// 获取专业
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static ListItem[] GetDisciplineList(string lan)
|
|
{
|
|
ListItem[] item = new ListItem[13];
|
|
item[0] = new ListItem("项目经理 PM", "90");
|
|
item[1] = new ListItem("工艺 Process", "01");
|
|
item[2] = new ListItem("配管 Piping", "50");
|
|
item[3] = new ListItem("给排水 Plumbing", "30");
|
|
item[4] = new ListItem("自控 Instrument", "70");
|
|
item[5] = new ListItem("电气 Electrical", "60");
|
|
item[6] = new ListItem("电信 Telecomm.", "65");
|
|
item[7] = new ListItem("设备 Equipment", "40");
|
|
item[8] = new ListItem("建筑 Architectral", "20");
|
|
item[9] = new ListItem("结构 Structure", "70");
|
|
item[10] = new ListItem("总图 Master plan", "10");
|
|
item[11] = new ListItem("暖通 HVAC", "20");
|
|
item[12] = new ListItem("概算 Cost Eng.", "92");
|
|
return item;
|
|
}
|
|
|
|
#region 是否选择下拉框
|
|
/// <summary>
|
|
/// 是否选择下拉框
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static ListItem[] IsTrueOrFalseDrpList()
|
|
{
|
|
ListItem[] lis = new ListItem[2];
|
|
lis[0] = new ListItem("是", BLL.Const._True);
|
|
lis[1] = new ListItem("否", BLL.Const._False);
|
|
return lis;
|
|
}
|
|
#endregion
|
|
|
|
public static ListItem[] AccountDrpList(string workorder, string workorderOper, string netWork, string netWorkOper)
|
|
{
|
|
ListItem[] lis = new ListItem[2];
|
|
lis[0] = new ListItem(workorder + "-" + workorderOper, workorder + "-" + workorderOper);
|
|
lis[1] = new ListItem(netWork + "-" + netWorkOper, netWork + "-" + netWorkOper);
|
|
return lis;
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|