提交代码
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -39,6 +40,7 @@ namespace BLL
|
||||
DateZ = constructionRisk.DateZ,
|
||||
DateWeek = constructionRisk.DateWeek,
|
||||
ConstructionContent = constructionRisk.ConstructionContent,
|
||||
ConstructionContentId = constructionRisk.ConstructionContentId,
|
||||
States = constructionRisk.States,
|
||||
RefLicense = constructionRisk.RefLicense,
|
||||
LicenseDes = constructionRisk.LicenseDes,
|
||||
@@ -129,6 +131,7 @@ namespace BLL
|
||||
newHazardList.DateZ = hazardList.DateZ;
|
||||
newHazardList.DateWeek = hazardList.DateWeek;
|
||||
newHazardList.ConstructionContent = hazardList.ConstructionContent;
|
||||
newHazardList.ConstructionContentId = hazardList.ConstructionContentId;
|
||||
newHazardList.States = hazardList.States;
|
||||
newHazardList.RefLicense = hazardList.RefLicense;
|
||||
newHazardList.LicenseDes = hazardList.LicenseDes;
|
||||
@@ -165,5 +168,102 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取风险等级下拉项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] RiskLevelList()
|
||||
{
|
||||
ListItem[] lis = new ListItem[4];
|
||||
lis[0] = new ListItem("低风险", "低风险");
|
||||
lis[1] = new ListItem("一般风险", "一般风险");
|
||||
lis[2] = new ListItem("较大风险", "较大风险");
|
||||
lis[3] = new ListItem("重大风险", "重大风险");
|
||||
return lis;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取风险等级下拉项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] RiskLevelList2()
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("较大风险", "较大风险");
|
||||
lis[1] = new ListItem("重大风险", "重大风险");
|
||||
return lis;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据状态选择下一步办理类型
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetDHandleTypeByState(string state)
|
||||
{
|
||||
if (state == Const.ConstructionRisk_Compile || state == Const.ConstructionRisk_ReCompile) //无是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[1];
|
||||
lis[0] = new ListItem("总包施工经理审核", Const.ConstructionRisk_Audit1);
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.ConstructionRisk_Audit1)//有是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("总包安全经理审核", Const.ConstructionRisk_Audit2);//是 加载
|
||||
lis[1] = new ListItem("重新编制", Const.ConstructionRisk_ReCompile);//否加载
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.ConstructionRisk_Audit2)//有是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("审核完成", Const.ConstructionRisk_Audit3);//是 加载
|
||||
lis[1] = new ListItem("重新编制", Const.ConstructionRisk_ReCompile);//否加载
|
||||
return lis;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 把状态转换代号为文字形式
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <returns></returns>
|
||||
public static string ConvertState(object state)
|
||||
{
|
||||
if (state != null)
|
||||
{
|
||||
if (state.ToString() == BLL.Const.ConstructionRisk_ReCompile)
|
||||
{
|
||||
return "重新编制";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.ConstructionRisk_Compile)
|
||||
{
|
||||
return "编制";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.ConstructionRisk_Audit1)
|
||||
{
|
||||
return "总包施工经理审核";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.ConstructionRisk_Audit2)
|
||||
{
|
||||
return "总包安全经理审核";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.ConstructionRisk_Audit3)
|
||||
{
|
||||
return "实施中";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.ConstructionRisk_Complete)
|
||||
{
|
||||
return "完成";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user