protected string showStepState(string checkinfo, decimal recid) { WFRECheckInfo ck = new WFRECheckInfo(recid, checkinfo); if (!string.IsNullOrEmpty(ck.CheckingSteps)) { string[] aaa = StringHelper.GetStringArray(ck.CheckingSteps, '|'); string ids = ""; for (int i = 0; i < aaa.Length; i++) { string[] arr = aaa[i].Split(':'); string[] bs = StringHelper.GetStringArray(arr[2], ','); for (int j = 0; j < bs.Length; j++) { string[] a = bs[j].Split('_'); ids += a[1] + ","; } } if (!string.IsNullOrEmpty(ids)) { ids = ids.Substring(0, ids.Length - 1); } return(ids); } return(""); }
protected string showStatus(string status, string checkinfo, decimal recid) { WFRECheckInfo ck = new WFRECheckInfo(recid, checkinfo); string statusName = WFEnum.GetRecStatus(status); if (status == WFEnum.RecStatus.NoAccept.ToString("d") || status == WFEnum.RecStatus.Checking.ToString("d")) { int stepid = ck.GetLastCheckedStepID(); if (ck.IsReChecking(stepid)) { status = WFEnum.RecStatus.ReCheck.ToString("d"); statusName = "重审中"; } } try { if (status == WFEnum.RecStatus.Accepted.ToString("d") || status == WFEnum.RecStatus.NoAccept.ToString("d") || status == WFEnum.RecStatus.Stoped.ToString("d")) { return("<td class='sta" + status + "'>" + statusName + "</td>");//<td>" + ck.ShowLastCkInfo() + "</td>"; } if (!string.IsNullOrEmpty(ck.CheckingSteps)) { string str = "<td class='sta" + status + "'><a>" + statusName + "</a>"; str += "</td>"; return(str); } else { if (!string.IsNullOrEmpty(ck.LastCheckInfo)) { return("<td><font color='red'>" + ck.GetLastStepState() + "</font></td>");//<td>" + ck.ShowLastCkInfo() + "</td>"; } else { return("<td><font color='red'>未提交审批</font></td>");//<td> </td>"; } } } catch { return("<td class='sta" + status + "'>获取状态异常</td>");//<td> </td>"; } }
protected string showStepState(string checkinfo, decimal recid) { WFRECheckInfo ck = new WFRECheckInfo(recid, checkinfo); if (!string.IsNullOrEmpty(ck.CheckingSteps)) { string[] aaa = StringHelper.GetStringArray(ck.CheckingSteps, '|'); string ids = ""; for (int i = 0; i < aaa.Length; i++) { string[] arr = aaa[i].Split(':'); string[] bs = StringHelper.GetStringArray(arr[2], ','); for (int j = 0; j < bs.Length; j++) { string[] a = bs[j].Split('_'); ids += a[1] + ","; } } if (!string.IsNullOrEmpty(ids)) ids = ids.Substring(0, ids.Length - 1); return ids; } return ""; }
protected string showStatus(string status, string checkinfo, decimal recid) { WFRECheckInfo ck = new WFRECheckInfo(recid, checkinfo); string statusName = WFEnum.GetRecStatus(status); if (status == WFEnum.RecStatus.NoAccept.ToString("d") || status == WFEnum.RecStatus.Checking.ToString("d")) { int stepid = ck.GetLastCheckedStepID(); if (ck.IsReChecking(stepid)) { status = WFEnum.RecStatus.ReCheck.ToString("d"); statusName = "������"; } } try { if (status == WFEnum.RecStatus.Accepted.ToString("d") || status == WFEnum.RecStatus.NoAccept.ToString("d") || status == WFEnum.RecStatus.Stoped.ToString("d")) { return "<td class='sta" + status + "'>" + statusName + "</td>";//<td>" + ck.ShowLastCkInfo() + "</td>"; } if (!string.IsNullOrEmpty(ck.CheckingSteps)) { string str = "<td class='sta" + status + "'><a>" + statusName + "</a>"; str += "</td>"; return str; } else { if (!string.IsNullOrEmpty(ck.LastCheckInfo)) { return "<td><font color='red'>" + ck.GetLastStepState() + "</font></td>";//<td>" + ck.ShowLastCkInfo() + "</td>"; } else { return "<td><font color='red'>δ�ύ����</font></td>";//<td> </td>"; } } } catch { return "<td class='sta" + status + "'>��ȡ״̬�쳣</td>";//<td> </td>"; } }