protected void Page_Load(object sender, EventArgs e) { this.actSvc = new AccountItemSvc(); this.procSvc = new ProcessSvc(); //2016/05/30 Stephen Add 目前只有廠商請款會顯示出來,現在一律都不顯示付款群組 this.lb_paymentGroup.Visible = false; string procSerialNumber = Page.Request.QueryString["p"] as string; if (string.IsNullOrEmpty(procSerialNumber)) { this.lt_alert.Text = UtilitySvc.alertMsg("參數錯誤,查無此表單"); return; } AccountItemViewModel.CostApplyFormInstanceResult costRet = this.actSvc.getCostApplyFormInstanceResult(procSerialNumber); ProcessViewModel.ProcessHistoryListResult procRet = this.procSvc.getProcessHistoryByProcessSerialNumber(procSerialNumber); if (!costRet.success) { this.lt_alert.Text = UtilitySvc.alertMsg("參數錯誤,查無此表單"); return; } this.ins = costRet.instance; this.procHistoryIns = procRet; this.init(); }
protected void Page_Load(object sender, EventArgs e) { this.actSvc = new AccountItemSvc(); this.procSvc = new ProcessSvc(); string procSerialNumber = Page.Request.QueryString["p"] as string; if (string.IsNullOrEmpty(procSerialNumber)) { this.lt_alert.Text = UtilitySvc.alertMsg("參數錯誤,查無此表單"); return; } AccountItemViewModel.OutsideApplyFormInstanceResult outsideRet = this.actSvc.getOutsideApplyFormInstanceResult(procSerialNumber); ProcessViewModel.ProcessHistoryListResult procRet = this.procSvc.getProcessHistoryByProcessSerialNumber(procSerialNumber); if (!outsideRet.success) { this.lt_alert.Text = UtilitySvc.alertMsg("參數錯誤,查無此表單"); return; } this.ins = outsideRet.instance; this.procHistoryIns = procRet; this.init(); }
public ProcessViewModel.ProcessHistoryListResult getProcessHistoryByProcessSerialNumber(string serialNumber) { ProcessViewModel.ProcessHistoryListResult ret = new ProcessViewModel.ProcessHistoryListResult(); try { var list = this.procDao.getProcessHistoryByProcessSerialNumber(serialNumber); list = list.OrderBy(x => x.completedTime).ToList(); //用簽核完成時間正向排序 ret.list = list; ret.success = true; ret.resultCode = "200"; } catch (Exception ex) { ret.success = false; ret.resultCode = "500"; ret.resultException = ex.ToString(); } return(ret); }