264 lines
10 KiB
C#
264 lines
10 KiB
C#
namespace BLL
|
||
{
|
||
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[] GetSystemList(string lan)
|
||
{
|
||
ListItem[] item = new ListItem[4];
|
||
if (lan == "zh")
|
||
{
|
||
item[0] = new ListItem("综合平台", BLL.Const.System_1);
|
||
item[1] = new ListItem("公共信息", BLL.Const.System_2);
|
||
item[2] = new ListItem("现场管道安装", BLL.Const.System_3);
|
||
item[3] = new ListItem("快捷菜单", BLL.Const.System_4);
|
||
}
|
||
else
|
||
{
|
||
item[0] = new ListItem("Integrated Platform", BLL.Const.System_1);
|
||
item[1] = new ListItem("Public Information", BLL.Const.System_2);
|
||
item[2] = new ListItem("Welding Process", BLL.Const.System_3);
|
||
item[3] = new ListItem("My Shortcut", BLL.Const.System_4);
|
||
}
|
||
return item;
|
||
}
|
||
|
||
public static ListItem[] GetResultsList(string flag)
|
||
{
|
||
if (flag == "1")
|
||
{
|
||
ListItem[] item = new ListItem[3];
|
||
item[0] = new ListItem("警告", "警告");
|
||
item[1] = new ListItem("焊工证剪角", "焊工证剪角");
|
||
item[2] = new ListItem("停工培训", "停工培训");
|
||
return item;
|
||
}
|
||
else if (flag == "2")
|
||
{
|
||
ListItem[] item = new ListItem[3];
|
||
item[0] = new ListItem("焊工证剪角", "焊工证剪角");
|
||
item[1] = new ListItem("停工培训", "停工培训");
|
||
item[2] = new ListItem("销卡", "销卡");
|
||
return item;
|
||
}
|
||
else if (flag == "3")
|
||
{
|
||
ListItem[] item = new ListItem[2];
|
||
item[0] = new ListItem("发整改通知单", "发整改通知单");
|
||
item[1] = new ListItem("取消焊工资质", "取消焊工资质");
|
||
return item;
|
||
}
|
||
|
||
else
|
||
{
|
||
return null;
|
||
}
|
||
}
|
||
|
||
#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
|
||
|
||
#endregion
|
||
|
||
#region HJGL 焊接管理常量下拉框
|
||
#region 本部基础信息
|
||
/// <summary>
|
||
/// 焊条/焊丝
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_ConsumablesTypeList()
|
||
{
|
||
ListItem[] lis = new ListItem[2];
|
||
lis[0] = new ListItem("焊丝", "1");
|
||
lis[1] = new ListItem("焊条", "2");
|
||
return lis;
|
||
}
|
||
|
||
public static ListItem[] AcceptLevelList()
|
||
{
|
||
ListItem[] list = new ListItem[5];
|
||
list[0] = new ListItem("Ⅰ", "Ⅰ");
|
||
list[1] = new ListItem("Ⅱ", "Ⅱ");
|
||
list[2] = new ListItem("Ⅲ", "Ⅲ");
|
||
list[3] = new ListItem("Ⅳ", "Ⅳ");
|
||
list[4] = new ListItem("Ⅴ", "Ⅴ");
|
||
return list;
|
||
}
|
||
#endregion
|
||
|
||
/// <summary>
|
||
/// 查询钢材类型下拉列表值
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_GetSteTypeList(string lan)
|
||
{
|
||
ListItem[] list = new ListItem[23];
|
||
if (lan == "zh-CN")
|
||
{
|
||
|
||
list[0] = new ListItem("碳钢", "1");
|
||
list[1] = new ListItem("不锈钢", "2");
|
||
list[2] = new ListItem("铬钼钢", "3");
|
||
list[3] = new ListItem("低合金钢", "4");
|
||
list[4] = new ListItem("镍合金钢", "5");
|
||
list[5] = new ListItem("钛合金钢", "6");
|
||
|
||
list[6] = new ListItem("纯铜", "7");
|
||
list[7] = new ListItem("铜锌合金、铜锌锡合金", "8");
|
||
list[8] = new ListItem("铜硅合金", "9");
|
||
list[9] = new ListItem("铜镍合金", "10");
|
||
list[10] = new ListItem("铜铝合金", "11");
|
||
|
||
list[11] = new ListItem("纯镍", "12");
|
||
list[12] = new ListItem("镍铜合金", "13");
|
||
list[13] = new ListItem("镍铬铁合金、镍铬钼合金", "14");
|
||
list[14] = new ListItem("镍钼铁合金", "15");
|
||
list[15] = new ListItem("镍铁铬合金", "16");
|
||
|
||
list[16] = new ListItem("纯铝,铝锰合金", "17");
|
||
list[17] = new ListItem("铝镁合金(Mg≤4%)", "18");
|
||
list[18] = new ListItem("铝镁硅合金", "19");
|
||
list[19] = new ListItem("铝镁合金(Mg>4%)", "20");
|
||
|
||
list[20] = new ListItem("低强纯钛、钛钯合金", "21");
|
||
list[21] = new ListItem("高强纯钛、钛钼镍合金", "22");
|
||
|
||
list[22] = new ListItem("其他", "23");
|
||
}
|
||
else
|
||
{
|
||
list[0] = new ListItem("Carbon Steel", "1");
|
||
list[1] = new ListItem("Stainless Steel", "2");
|
||
list[2] = new ListItem("Chromium Molybdenum Steel", "3");
|
||
list[3] = new ListItem("Low Alloy Steel", "4");
|
||
list[4] = new ListItem("Nickel Alloy Steel", "5");
|
||
list[5] = new ListItem("Titanium Alloy Steel", "6");
|
||
|
||
list[6] = new ListItem("Pure Copper", "7");
|
||
list[7] = new ListItem("Copper-Zinc, Copper-Zinc-Tin", "8");
|
||
list[8] = new ListItem("Copper-Silicon", "9");
|
||
list[9] = new ListItem("Copper-Nickel", "10");
|
||
list[10] = new ListItem("Copper-Aluminum", "11");
|
||
|
||
list[11] = new ListItem("Pure Nickel", "12");
|
||
list[12] = new ListItem("Nickel-Copper", "13");
|
||
list[13] = new ListItem("Nickel-Chromium-Iron, Nickel-Chromium-Molybdenum", "14");
|
||
list[14] = new ListItem("Nickel-Molybdenum-Iron", "15");
|
||
list[15] = new ListItem("Nickel-Iron-Chromium", "16");
|
||
|
||
list[16] = new ListItem("Pure-Aluminum, Aluminum-Manganese", "17");
|
||
list[17] = new ListItem("Aluminum-Magnesium(Mg≤4%)", "18");
|
||
list[18] = new ListItem("Aluminum-Magnesium-Silicon", "19");
|
||
list[19] = new ListItem("Aluminum-Magnesium(Mg>4%)", "20");
|
||
|
||
list[20] = new ListItem("Low Strength Pure Titanium And Titanium-Palladium", "21");
|
||
list[21] = new ListItem("High Strength Pure Titanium And Titanium-Molybdenum-Nickel", "22");
|
||
|
||
list[22] = new ListItem("Others Steel", "23");
|
||
}
|
||
return list;
|
||
}
|
||
|
||
// 材质类型
|
||
public static ListItem[] MaterialTypeList()
|
||
{
|
||
ListItem[] list = new ListItem[21];
|
||
list[0] = new ListItem("低碳钢(FeⅠ)", "FeⅠ");
|
||
list[1] = new ListItem("低合金钢(FeⅡ)", "FeⅡ");
|
||
list[2] = new ListItem("Cr≥5%铬钼钢、铁素体钢、马氏体钢(FeⅢ)", "FeⅢ");
|
||
list[3] = new ListItem("奥氏体钢、奥氏体与铁素体双相钢(FeⅣ)", "FeⅣ");
|
||
|
||
list[4] = new ListItem("纯铜(CuⅠ)", "CuⅠ");
|
||
list[5] = new ListItem("铜锌合金、铜锌锡合金(CuⅡ)", "CuⅡ");
|
||
list[6] = new ListItem("铜硅合金(CuⅢ)", "CuⅢ");
|
||
list[7] = new ListItem("铜镍合金(CuⅣ)", "CuⅣ");
|
||
list[8] = new ListItem("铜铝合金(CuⅤ)", "CuⅤ");
|
||
|
||
list[9] = new ListItem("纯镍(NiⅠ)", "NiⅠ");
|
||
list[10] = new ListItem("镍铜合金(NiⅡ)", "NiⅡ");
|
||
list[11] = new ListItem("镍铬铁合金、镍铬钼合金(NiⅢ)", "NiⅢ");
|
||
list[12] = new ListItem("镍钼铁合金(NiⅣ)", "NiⅣ");
|
||
list[13] = new ListItem("镍铁铬合金(NiⅤ)", "NiⅤ");
|
||
|
||
list[14] = new ListItem("纯铝,铝锰合金(AIⅠ)", "AIⅠ");
|
||
list[15] = new ListItem("铝镁合金(Mg≤4%)(AIⅡ)", "AIⅡ");
|
||
list[16] = new ListItem("铝镁硅合金(AIⅢ)", "AIⅢ");
|
||
list[17] = new ListItem("铝镁合金(Mg>4%)(AIⅣ)", "AIⅣ");
|
||
|
||
list[18] = new ListItem("低强纯钛、钛钯合金(TiⅠ)", "TiⅠ");
|
||
list[19] = new ListItem("高强纯钛、钛钼镍合金(TiⅡ)", "TiⅡ");
|
||
|
||
list[20] = new ListItem("其他", "其他");
|
||
|
||
return list;
|
||
}
|
||
|
||
public static ListItem[] WeldTypeGroup()
|
||
{
|
||
ListItem[] lis = new ListItem[3];
|
||
lis[0] = new ListItem("对接焊缝", "对接焊缝");
|
||
lis[1] = new ListItem("角焊缝", "角焊缝");
|
||
lis[2] = new ListItem("支管连接焊缝", "支管连接焊缝");
|
||
return lis;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 探伤类型对应系统下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_GetTestintTypeList()
|
||
{
|
||
ListItem[] list = new ListItem[5];
|
||
list[0] = new ListItem("射线检测", "射线检测");
|
||
list[1] = new ListItem("磁粉检测", "磁粉检测");
|
||
list[2] = new ListItem("渗透检测", "渗透检测");
|
||
list[3] = new ListItem("超声波检测", "超声波检测");
|
||
list[4] = new ListItem("光谱检测", "光谱检测");
|
||
return list;
|
||
}
|
||
|
||
#region 现场焊接
|
||
|
||
/// <summary>
|
||
/// 焊口属性
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_JointAttributeItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("活动S", "活动S");
|
||
list[1] = new ListItem("固定F", "固定F");
|
||
return list;
|
||
}
|
||
#endregion
|
||
|
||
#endregion
|
||
|
||
|
||
}
|
||
}
|