20230918资质列表 加现场人员状态查询

This commit is contained in:
2023-09-18 09:27:45 +08:00
parent 5bb940a5cc
commit 9dc9075142
12 changed files with 360 additions and 300 deletions
+47 -2
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using BLL;
using System.Collections.Generic;
namespace BLL
{
@@ -40,6 +41,10 @@ namespace BLL
{
dropName.DataSource = HSSE_getCertificateType();
}
else if (groupId == Group_ProjectPersonStates)
{
dropName.DataSource = HSSE_getProjectPersonStates();
}
dropName.DataBind();
if (isShowPlease)
{
@@ -74,7 +79,10 @@ namespace BLL
{
rblName.DataSource = HSSE_getContractType();
}
else if (groupId == Group_ProjectPersonStates)
{
rblName.DataSource = HSSE_getProjectPersonStates();
}
rblName.DataBind();
if (!string.IsNullOrEmpty(selectValue))
{
@@ -105,6 +113,10 @@ namespace BLL
/// </summary>
public const string Group_PersonType = "PersonType";
/// <summary>
/// 项目人员状态 组id
/// </summary>
public const string Group_ProjectPersonStates = "ProjectPersonStates";
/// <summary>
/// 合同类型 组id
/// </summary>
public const string Group_ContractType = "ContractType";
@@ -330,6 +342,39 @@ namespace BLL
}
#endregion
#region
/// <summary>
/// 人员类型 名称
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static string HSSE_getProjectPersonStates(string value)
{
string name = string.Empty;
var getType = HSSE_getProjectPersonStates().FirstOrDefault(x => x.Value == value);
if (getType != null)
{
name = getType.Text;
}
return name;
}
/// <summary>
/// 人员类型
/// </summary>
/// <returns></returns>
public static ListItem[] HSSE_getProjectPersonStates()
{
ListItem[] list = new ListItem[4];
list[0] = new ListItem("在审", Const.ProjectPersonStates_0);
list[1] = new ListItem("在岗", Const.ProjectPersonStates_1);
list[2] = new ListItem("离岗", Const.ProjectPersonStates_2);
list[3] = new ListItem("打回", Const.ProjectPersonStates_R);
return list;
}
#endregion
#region
/// <summary>
/// 人员类型 名称