using System; namespace FineUIPro.Web.CQMS.Comprehensive { public partial class DataReceivingDocApprove : PageBase { #region 加载 /// /// 加载页面 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string DataReceivingDocId = Request.Params["Id"]; var list = BLL.DataReceivingDocApproveService.GetApproveListByDocId(DataReceivingDocId); gvApprove.DataSource = list; gvApprove.DataBind(); } } #endregion #region 格式化字符串 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 ""; } #endregion } }