public UCEnergySubsidyDetails(int soSysNo, string viewType)
 {
     InitializeComponent();
     this.SOSysNo  = soSysNo;
     this.ViewType = viewType;
     facade        = new RefundAdjustFacade(CPApplication.Current.CurrentPage);
     this.gridBasicInfo.DataContext = vm = new EnergySubsidyVM();
     vm.ViewType  = this.ViewType;
     vm.SOSysNo   = this.SOSysNo;
     this.Loaded += new RoutedEventHandler(UCEnergySubsidyDetails_Loaded);
 }
示例#2
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     CheckRights();
     facade           = new RefundAdjustFacade(this);
     this.DataContext = filter = new RefundAdjustQueryFilter();
     IsUrl            = false;
     BindComboxData();
     if (SysNo != null && SysNo != 0)
     {
         filter.SysNo       = SysNo.ToString();
         this.txtSysNo.Text = filter.SysNo;
         IsUrl = true;
         DataGrid_ResultList.Bind();
     }
 }
示例#3
0
        void UCRefundAdjustMaintain_Loaded(object sender, RoutedEventArgs e)
        {
            facade = new RefundAdjustFacade(CPApplication.Current.CurrentPage);
            BindComboxData();
            switch (maintainVM.Action)
            {
            case "Create":
            {
                this.spVisbale.Visibility  = System.Windows.Visibility.Collapsed;
                maintainVM.SOSysNo         = maintainVM.Note = maintainVM.CashAmt = string.Empty;
                maintainVM.AdjustOrderType = RefundAdjustType.ShippingAdjust;
                maintainVM.RefundPayType   = RefundPayType.PrepayRefund;
            }
            break;

            default:
            {
                this.spVisbale.Visibility = System.Windows.Visibility.Visible;
                maintainVM.CashAmt        = this.Text_CashAmount.Text;
                maintainVM.RequestID      = this.RefundVM.RequestID;
                maintainVM.RefundPayType  = this.RefundVM.RefundPayType;
                maintainVM.SOSysNo        = this.RefundVM.SOSysNo.ToString();
                maintainVM.CustomerID     = this.RefundVM.CustomerID;
                maintainVM.CashAmt        = this.RefundVM.CashAmt.ToString();
                maintainVM.Note           = this.RefundVM.Note;
                maintainVM.Status         = this.RefundVM.Status;

                //银行信息
                maintainVM.BankName       = this.RefundVM.BankName;
                maintainVM.BranchBankName = this.RefundVM.BranchBankName;
                maintainVM.CardNo         = this.RefundVM.CardNumber;
                maintainVM.CardOwnerName  = this.RefundVM.CardOwnerName;
                break;
            }
            }
            this.DataContext = maintainVM;
            SwitchControlEnable(maintainVM.Action);
        }