日期:2014-05-18 浏览次数:20610 次
/// <summary> /// 计划审核中 /// </summary> /// <param name="source"></param> /// <param name="e"></param> protected void rptEpAudit_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataRowView drv = (DataRowView)e.Item.DataItem; if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { //当前审核级别 int ep_state = CDataConvert.ConToValue<int>(drv["EP_STATE"].ToString()); //当前审核状态 //审核按钮 LinkButton lbAudit = (LinkButton)e.Item.FindControl("lbAudit"); string hideEpId = ((HiddenField)e.Item.FindControl("hideEpId")).Value; //审核中 if (CommonStatus.GetProStatus(CommonStatus.ProjectStatus.Auditting) == ep_state) { CEntityEP_AUDI_PROCESS epPro = (m_epAudProBus.GetEpAudiProByEpIdAndType(hideEpId, CommonStatus.GetProStatus(CommonStatus.ProjectStatus.Auditting)).Value as CTEntitiesEP_AUDI_PROCESS)[0]; if (epPro != null && epPro.PRO_USERID == CurrentUser.USERID) { lbAudit.Visible = true; //审核按钮显示 lbAudit.CommandArgument = epPro.PRO_ID; //Repeater 控件显示 rptEpAudit.Visible = true; } else { // Repeater 控件隐藏 rptEpAudit.Visible =false; } } } }