Beispiel #1
0
        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();
        }
Beispiel #3
0
 public ProcessController() : base()
 {
     this.procSvc = new ProcessSvc();
 }