修改质量验收穿透数据统计
This commit is contained in:
@@ -1330,5 +1330,68 @@ namespace FineUIPro.Web
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static ListItem[] GetCheckAcceptTypeList()
|
||||
{
|
||||
ListItem[] list = new ListItem[5];
|
||||
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");
|
||||
return list;
|
||||
}
|
||||
|
||||
public static string GetCheckAcceptTypeId(string CheckAcceptType)
|
||||
{
|
||||
string id = string.Empty;
|
||||
if (!string.IsNullOrEmpty(CheckAcceptType))
|
||||
{
|
||||
var item = GetCheckAcceptTypeList().FirstOrDefault(x=>x.Text== CheckAcceptType);
|
||||
if (item != null)
|
||||
{
|
||||
id = item.Value;
|
||||
}
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
public static ListItem[] GetSubItemTypeList()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
public static string GetSubItemTypeId(string SubItemType)
|
||||
{
|
||||
string id = string.Empty;
|
||||
if (!string.IsNullOrEmpty(SubItemType))
|
||||
{
|
||||
var item = GetSubItemTypeList().FirstOrDefault(x => x.Text == SubItemType);
|
||||
if (item != null)
|
||||
{
|
||||
id = item.Value;
|
||||
}
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
public static string GetSubItemTypeText(string SubItemType)
|
||||
{
|
||||
string id = string.Empty;
|
||||
if (!string.IsNullOrEmpty(SubItemType))
|
||||
{
|
||||
var item = GetSubItemTypeList().FirstOrDefault(x => x.Value == SubItemType);
|
||||
if (item != null)
|
||||
{
|
||||
id = item.Text;
|
||||
}
|
||||
}
|
||||
return id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user