private void InitControls(FaProcessStepEnum value) { if (value != FaProcessStepEnum.Start) { JieyueYuanyin.Disabled = true; foreach (object control in FaReportDetailsControl.Controls) { var textBox = control as TextBox; if (textBox != null) { textBox.Enabled = false; } } } }
/// <summary> /// 根据流程实际进度做界面显示(去除Step值判断) /// </summary> private void InitStepOn() { List <TaskEntity> list = EDoc2ProcessManager.GetTaskData(IncidentId); TaskEntity endItem = list.FirstOrDefault(i => i.Status == "已完成" && i.StepName == "结束"); if (endItem != null) { Page.Title = FaProcessSteppService.GetStepText(FaProcessStepEnum.Complete); Step2.AddCssClass("on"); return; } TaskEntity cItem = list.FirstOrDefault(i => i.Status == "激活"); if (cItem != null) { FaProcessStepEnum stepEnum = FaProcessSteppService.GetStepVal(cItem.StepName); switch (stepEnum) { case FaProcessStepEnum.Start: Step0.AddCssClass("on"); break; case FaProcessStepEnum.FaLeader: Step1.AddCssClass("on"); break; case FaProcessStepEnum.FaDirector: Step2.AddCssClass("on"); break; case FaProcessStepEnum.Complete: Step3.AddCssClass("on"); break; } Page.Title = FaProcessSteppService.GetStepText(stepEnum); } else { Page.Title = FaProcessSteppService.GetStepText(FaProcessStepEnum.Start); Step0.AddCssClass("on"); } }
public static string GetStepText(FaProcessStepEnum value) { string stepText = ""; switch (value) { case FaProcessStepEnum.Start: stepText = "流程发起"; break; case FaProcessStepEnum.FaLeader: stepText = "审批"; break; case FaProcessStepEnum.FaDirector: stepText = "档案管理员审批"; break; case FaProcessStepEnum.Complete: stepText = "已完成"; break; } return(stepText); }