public UCRefundBalanceMaintain(int refundSysNo, int refundBalanceSysNo, string action) { this.RefundSysNo = refundSysNo; this.RefundBalanceSysNo = refundBalanceSysNo; this.Action = action; MaintainVM = new RefundBalanceMaintainVM(); facade = new RefundBalanceFacade(CPApplication.Current.CurrentPage); InitializeComponent(); InitControls(); BuildValidate(); }
public override void OnPageLoad(object sender, EventArgs e) { facade = new RefundBalanceFacade(this); if (!string.IsNullOrEmpty(this.Request.Param)) { Text_RefundSysNo.Text = this.Request.Param; } BuildValidateCondition(); this.DataGrid_ResultList.Bind(); base.OnPageLoad(sender, e); Button_Create.IsEnabled = AuthMgr.HasFunctionPoint(AuthKeyConst.RMA_RefundBalance_Create); Button_Aduit.IsEnabled = AuthMgr.HasFunctionPoint(AuthKeyConst.RMA_RefundBalance_SubmitAudit); Button_Refund.IsEnabled = AuthMgr.HasFunctionPoint(AuthKeyConst.RMA_RefundBalance_Refund); Button_Void.IsEnabled = AuthMgr.HasFunctionPoint(AuthKeyConst.RMA_RefundBalance_Abandon); }