예제 #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();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.accountItemSvc = new AccountItemSvc();

            string mode = Request.QueryString["mode"] as string;

            if (string.IsNullOrEmpty(mode))
            {
                mode = "list";
            }

            if (!this.IsPostBack)
            {
                switch (mode)
                {
                case "list":
                    //list init
                    this.init();
                    break;

                case "edit":
                    this.edit_init();
                    break;
                }
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
 public AccountItemController() : base()
 {
     this.accountItemSvc = new AccountItemSvc();
 }