79 lines
2.2 KiB
C#
79 lines
2.2 KiB
C#
using BLL.CQMS.Comprehensive;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace FineUIPro.Web.CQMS.Comprehensive
|
|
{
|
|
public partial class DesignDetailsApprove : PageBase
|
|
{
|
|
#region 加载
|
|
/// <summary>
|
|
/// 加载页面
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
|
|
|
|
string DesignDetailsId = Request.Params["Id"];
|
|
var list = DesignDetailsApproveService.GetProjectQualityList(DesignDetailsId);
|
|
gvApprove.DataSource = list;
|
|
gvApprove.DataBind();
|
|
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
public static string ConvertAgree(object IsAgree)
|
|
{
|
|
if (IsAgree != null)
|
|
{
|
|
if (IsAgree.ToString().Contains("True"))
|
|
{
|
|
return "同意";
|
|
}
|
|
else if (IsAgree.ToString().Contains("False"))
|
|
{
|
|
return "不同意";
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public static string ConvertState(object state)
|
|
{
|
|
if (state != null)
|
|
{
|
|
if (state.ToString().Trim() == BLL.Const.Comprehensive_ReCompile)
|
|
{
|
|
return "重报";
|
|
}
|
|
else if (state.ToString().Trim().Trim() == BLL.Const.Comprehensive_ReJect)
|
|
{
|
|
return "驳回";
|
|
}
|
|
else if (state.ToString().Trim() == BLL.Const.Comprehensive_Compile)
|
|
{
|
|
return "编制";
|
|
}
|
|
else if (state.ToString().Trim() == BLL.Const.Comprehensive_Audit)
|
|
{
|
|
return "待审批";
|
|
}
|
|
else if (state.ToString().Trim() == BLL.Const.Comprehensive_Complete)
|
|
{
|
|
return "审批完成";
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
}
|
|
} |