675 lines
22 KiB
C#
675 lines
22 KiB
C#
namespace BLL
|
||
{
|
||
using System;
|
||
using System.Collections;
|
||
using System.Diagnostics.CodeAnalysis;
|
||
using System.Globalization;
|
||
using System.Linq;
|
||
using System.Data.Linq;
|
||
using System.Web.Security;
|
||
using System.Web.UI.WebControls;
|
||
using Model;
|
||
using BLL;
|
||
using System.Collections.Generic;
|
||
|
||
/// <summary>
|
||
/// 自定义下拉框通用类
|
||
/// </summary>
|
||
public static class DropListService
|
||
{
|
||
#region 公共平台
|
||
#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
|
||
|
||
|
||
#region 单位查询下拉框
|
||
/// <summary>
|
||
/// 单位查询下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] UnitSearchList()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("单位代码", BLL.Const.UnitCode);
|
||
list[1] = new ListItem("单位名称", BLL.Const.UnitName);
|
||
return list;
|
||
}
|
||
#endregion
|
||
|
||
#region 单位类型下拉框
|
||
/// <summary>
|
||
/// 单位类型下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] UnitTypeSearchList()
|
||
{
|
||
ListItem[] list = new ListItem[8];
|
||
list[0] = new ListItem("业主", BLL.Const.UnitType_1);
|
||
list[1] = new ListItem("监理", BLL.Const.UnitType_2);
|
||
list[2] = new ListItem("总包", BLL.Const.UnitType_3);
|
||
list[3] = new ListItem("施工", BLL.Const.UnitType_4);
|
||
list[4] = new ListItem("质检", BLL.Const.UnitType_5);
|
||
list[5] = new ListItem("理化", BLL.Const.UnitType_6);
|
||
list[6] = new ListItem("热处理", BLL.Const.UnitType_7);
|
||
list[7] = new ListItem("检测", BLL.Const.UnitType_8);
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 本部单位类型下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] UnitTypeSubSearchList()
|
||
{
|
||
ListItem[] list = new ListItem[5];
|
||
list[0] = new ListItem("施工", BLL.Const.UnitType_4);
|
||
list[1] = new ListItem("质检", BLL.Const.UnitType_5);
|
||
list[2] = new ListItem("理化", BLL.Const.UnitType_6);
|
||
list[3] = new ListItem("热处理", BLL.Const.UnitType_7);
|
||
list[4] = new ListItem("检测", BLL.Const.UnitType_8);
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 外部单位类型下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] UnitTypeNotSubSearchList()
|
||
{
|
||
ListItem[] list = new ListItem[3];
|
||
list[0] = new ListItem("业主", BLL.Const.UnitType_1);
|
||
list[1] = new ListItem("监理", BLL.Const.UnitType_2);
|
||
list[2] = new ListItem("总包", BLL.Const.UnitType_3);
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 检测状态列表
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] CheckStatesList()
|
||
{
|
||
ListItem[] list = new ListItem[4];
|
||
list[0] = new ListItem("待检测 ", "1");
|
||
list[1] = new ListItem("检测合格 ", "2");
|
||
list[2] = new ListItem("待重检 ", "3");
|
||
list[3] = new ListItem("待返修 ", "4");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 检测状态列表(压力容器)
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] PvCheckStatesList()
|
||
{
|
||
ListItem[] list = new ListItem[4];
|
||
list[0] = new ListItem("待检测", "1");
|
||
list[1] = new ListItem("检测合格", "2");
|
||
list[2] = new ListItem("待重拍", "3");
|
||
list[3] = new ListItem("待返修", "4");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊接状态列表
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] WeldedStatesList()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("已焊接", "1");
|
||
list[1] = new ListItem("未焊接", "2");
|
||
return list;
|
||
}
|
||
#endregion
|
||
|
||
#region 部门查询下拉框
|
||
/// <summary>
|
||
/// 部门查询下拉框
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] DepartSearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[2];
|
||
lis[0] = new ListItem("部门编号", BLL.Const.DepartCode);
|
||
lis[1] = new ListItem("部门名称", BLL.Const.DepartName);
|
||
return lis;
|
||
}
|
||
#endregion
|
||
|
||
#region 装置下拉框
|
||
/// <summary>
|
||
/// 装置
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] InstallationSearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[1];
|
||
lis[0] = new ListItem("装置名称", "InstallationName");
|
||
return lis;
|
||
}
|
||
#endregion
|
||
|
||
/// <summary>
|
||
/// WBS控制点
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static List<Model.HandleStep> CQMS_WBSControlPointList()
|
||
{
|
||
List<Model.HandleStep> lis = new List<Model.HandleStep>();
|
||
Model.HandleStep l1 = new HandleStep();
|
||
l1.Id = "A级";
|
||
l1.Name = "A级";
|
||
lis.Add(l1);
|
||
Model.HandleStep l2 = new HandleStep();
|
||
l2.Id = "AH级";
|
||
l2.Name = "AH级";
|
||
lis.Add(l2);
|
||
Model.HandleStep l3 = new HandleStep();
|
||
l3.Id = "B级";
|
||
l3.Name = "B级";
|
||
lis.Add(l3);
|
||
Model.HandleStep l4 = new HandleStep();
|
||
l4.Id = "BH级";
|
||
l4.Name = "BH级";
|
||
lis.Add(l4);
|
||
Model.HandleStep l5 = new HandleStep();
|
||
l5.Id = "C级";
|
||
l5.Name = "C级";
|
||
lis.Add(l5);
|
||
Model.HandleStep l6 = new HandleStep();
|
||
l6.Id = "H级";
|
||
l6.Name = "H级";
|
||
lis.Add(l6);
|
||
return lis;
|
||
}
|
||
|
||
#region 工作区域下拉框
|
||
/// <summary>
|
||
/// 工作区域
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] SearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[1];
|
||
lis[0] = new ListItem("区域编号", "WorkAreaCode");
|
||
return lis;
|
||
}
|
||
#endregion
|
||
|
||
#region 标准规范清单排序下拉框
|
||
/// <summary>
|
||
/// 标准规范清单排序下拉框
|
||
/// </summary>
|
||
/// <returns>标准规范清单信息</returns>
|
||
public static ListItem[] Resource_StandardSearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[3];
|
||
lis[0] = new ListItem("标准名称", BLL.Const.StandardName);
|
||
lis[1] = new ListItem("标准级别", BLL.Const.StandardGrade);
|
||
lis[2] = new ListItem("标准号", BLL.Const.StandardNo);
|
||
return lis;
|
||
}
|
||
#endregion
|
||
|
||
#region 法律法规清单排序下拉框
|
||
/// <summary>
|
||
/// 法律法规清单排序下拉框
|
||
/// </summary>
|
||
/// <returns>法律法规清单信息</returns>
|
||
public static ListItem[] Resource_LawRegulationSearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[1];
|
||
lis[0] = new ListItem("法律法规名称", BLL.Const.LawRegulationName);
|
||
return lis;
|
||
}
|
||
#endregion
|
||
#endregion
|
||
|
||
#region HJGL 焊接管理常量下拉框
|
||
#region 本部基础信息
|
||
/// <summary>
|
||
/// 组件
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_ComponentsSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("组件代号", BLL.Const.HJGL_COM_Code);
|
||
list[1] = new ListItem("组件名称", BLL.Const.HJGL_COM_Name);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊材代号
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_ConsumablesSearchList()
|
||
{
|
||
ListItem[] lis = new ListItem[1];
|
||
lis[0] = new ListItem("焊材代号", BLL.Const.HJGL_ConsumablesCode);
|
||
return lis;
|
||
}
|
||
|
||
/// <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;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 外径代号
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_ControlSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[1];
|
||
list[0] = new ListItem("公称直径", BLL.Const.HJGL_BST_DN);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 探伤比例
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_DetectionSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("探伤比例代号", BLL.Const.HJGL_NDTRCode);
|
||
list[1] = new ListItem("探伤比例名称", BLL.Const.HJGL_NDTRName);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 坡口
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_GrooveSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("坡口代号", BLL.Const.HJGL_JST_Code);
|
||
list[1] = new ListItem("坡口名称", BLL.Const.HJGL_JST_Name);
|
||
|
||
return list;
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 材质
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_MaterialSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[3];
|
||
list[0] = new ListItem("材质代号", BLL.Const.HJGL_STE_Code);
|
||
list[1] = new ListItem("材质名称", BLL.Const.HJGL_STE_Name);
|
||
list[2] = new ListItem("钢材类型", BLL.Const.HJGL_STE_SteType);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 材质
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_MaterialNameSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[1];
|
||
list[0] = new ListItem("材质名称", "STE_Name");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 查询钢材类型下拉列表值
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_GetSteTypeList()
|
||
{
|
||
ListItem[] list = new ListItem[5];
|
||
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("其他", "其他");
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 介质
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_MediumSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("介质代号", BLL.Const.HJGL_SER_Code);
|
||
list[1] = new ListItem("介质描述", BLL.Const.HJGL_SER_Name);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 查询的下来列表值
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_PipingClassSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("等级代号", BLL.Const.HJGL_PipingClassCode);
|
||
list[1] = new ListItem("等级名称", BLL.Const.HJGL_PipingClassName);
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 试压
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_PressureSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("试压代号", BLL.Const.HJGL_TPT_Code);
|
||
list[1] = new ListItem("试压名称", BLL.Const.HJGL_TPT_TypeName);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 探伤类型
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_TestingSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("探伤类型代号", BLL.Const.HJGL_TestingCode);
|
||
list[1] = new ListItem("探伤类型名称", BLL.Const.HJGL_TestingType);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊法
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_WeldingMethodSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("焊法代码", BLL.Const.HJGL_WME_Code);
|
||
list[1] = new ListItem("焊法名称", BLL.Const.HJGL_WME_Name);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊缝类型
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_WeldSearchItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("焊缝类型代号", BLL.Const.HJGL_JOTY_Code);
|
||
list[1] = new ListItem("焊缝类型名称", BLL.Const.HJGL_JOTY_Name);
|
||
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊缝类型:所属焊缝下拉选择
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_DrpJOTY_GroupItem()
|
||
{
|
||
ListItem[] lis = new ListItem[3];
|
||
lis[0] = new ListItem("对接焊缝", "1");
|
||
lis[1] = new ListItem("角焊缝", "2");
|
||
lis[2] = new ListItem("支管连接焊缝", "3");
|
||
return lis;
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 管道类别
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_PipeLineClassItem()
|
||
{
|
||
ListItem[] list = new ListItem[8];
|
||
list[0] = new ListItem("GA1", "GA1");
|
||
list[1] = new ListItem("GA2", "GA2");
|
||
list[2] = new ListItem("GC1", "GC1");
|
||
list[3] = new ListItem("GC2", "GC2");
|
||
list[4] = new ListItem("GC3", "GC3");
|
||
list[5] = new ListItem("GCD", "GCD");
|
||
list[6] = new ListItem("GD2", "GD2");
|
||
list[7] = new ListItem("/", "/");
|
||
return list;
|
||
}
|
||
|
||
#endregion
|
||
|
||
#region 现场焊接
|
||
/// <summary>
|
||
/// 合格等级
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_NDTClassItem()
|
||
{
|
||
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;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 委托情况
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_TrustFlagItem()
|
||
{
|
||
ListItem[] list = new ListItem[7];
|
||
list[0] = new ListItem("未下委托", "00");
|
||
list[1] = new ListItem("一次委托,未审核", "01");
|
||
list[2] = new ListItem("一次委托,已审核", "02");
|
||
list[3] = new ListItem("二次委托,未审核", "11");
|
||
list[4] = new ListItem("二次委托,已审核", "12");
|
||
list[5] = new ListItem("三次委托,未审核", "21");
|
||
list[6] = new ListItem("三次委托,已审核", "22");
|
||
return list;
|
||
}
|
||
/// <summary>
|
||
/// 探伤标志
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_CheckFlagItem()
|
||
{
|
||
ListItem[] list = new ListItem[7];
|
||
list[0] = new ListItem("未检测", "00");
|
||
list[1] = new ListItem("一次检测,未审核", "01");
|
||
list[2] = new ListItem("一次检测,已审核", "02");
|
||
list[3] = new ListItem("二次检测,未审核", "11");
|
||
list[4] = new ListItem("二次检测,已审核", "12");
|
||
list[5] = new ListItem("三次检测,未审核", "21");
|
||
list[6] = new ListItem("三次检测,已审核", "22");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊接区域
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_WLO_CODEItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("现场安装", "F");
|
||
list[1] = new ListItem("预制", "S");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊口属性
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_JointAttributeItem()
|
||
{
|
||
ListItem[] list = new ListItem[2];
|
||
list[0] = new ListItem("活动", "活动");
|
||
list[1] = new ListItem("固定", "固定");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊口状态
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_JointStatusItem()
|
||
{
|
||
ListItem[] list = new ListItem[4];
|
||
list[0] = new ListItem("正常", "100");
|
||
list[1] = new ListItem("扩透", "102");
|
||
list[2] = new ListItem("点口", "101");
|
||
list[3] = new ListItem("已切除", "104");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 检测设备
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] TestingEquipmentListItem()
|
||
{
|
||
ListItem[] lis = new ListItem[3];
|
||
lis[0] = new ListItem("分Se75", "1");
|
||
lis[1] = new ListItem("lr192", "2");
|
||
lis[2] = new ListItem("射线机", "3");
|
||
return lis;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊接位置
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_JOT_LocationItem()
|
||
{
|
||
ListItem[] list = new ListItem[11];
|
||
list[0] = new ListItem("1G", "1G");
|
||
list[1] = new ListItem("2G", "2G");
|
||
list[2] = new ListItem("3G", "3G");
|
||
list[3] = new ListItem("4G", "4G");
|
||
list[4] = new ListItem("5G", "5G");
|
||
list[5] = new ListItem("6G", "6G");
|
||
list[6] = new ListItem("1F", "1F");
|
||
list[7] = new ListItem("2F", "2F");
|
||
list[8] = new ListItem("2FR", "2FR");
|
||
list[9] = new ListItem("4F", "4F");
|
||
list[10] = new ListItem("5F", "5F");
|
||
return list;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 合格等级
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_Joty_LevelItem()
|
||
{
|
||
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_Pipe_OutListItem()
|
||
{
|
||
ListItem[] lis = new ListItem[2];
|
||
lis[0] = new ListItem("压力管道安装工程开工告知书压力管道特性表", "1");
|
||
lis[1] = new ListItem("压力管道安装基本情况及压力试验专项监检报告、泄漏性试验汇总表", "2");
|
||
return lis;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 焊工证打印类型下拉选择
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_Welder_PrintTypeItem()
|
||
{
|
||
ListItem[] lis = new ListItem[2];
|
||
lis[0] = new ListItem("炼化公司", "1");
|
||
lis[1] = new ListItem("三带使用", "2");
|
||
return lis;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 试压包打印类型
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] HJGL_TP_PrintListItem()
|
||
{
|
||
ListItem[] lis = new ListItem[2];
|
||
lis[0] = new ListItem("管道吹扫清洗检验记录", "1");
|
||
lis[1] = new ListItem("管道系统耐压试验条件确认与试验记录(一)", "2");
|
||
return lis;
|
||
}
|
||
|
||
#endregion
|
||
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public static ListItem[] OrderTimeList()
|
||
{
|
||
ListItem[] lis = new ListItem[15];
|
||
//DateTime dd = Convert.ToDateTime("7:00").AddDays(1);
|
||
DateTime? dd = null;
|
||
for (int i = 0; i < 14; i++)
|
||
{
|
||
string text = "";
|
||
if (i == 0)
|
||
{
|
||
dd = Convert.ToDateTime("7:00");
|
||
}
|
||
else
|
||
{
|
||
dd = dd.Value.AddHours(1);
|
||
|
||
}
|
||
text = dd.Value.Hour.ToString() + ":" + dd.Value.Minute.ToString("00") + " - " + dd.Value.AddHours(1).Hour.ToString() + ":" + dd.Value.AddHours(1).Minute.ToString("00");
|
||
lis[i] = new ListItem(text, text);
|
||
}
|
||
return lis;
|
||
}
|
||
|
||
|
||
}
|
||
}
|