Esempio n. 1
0
        public void Create(PrepayRefundVM request, EventHandler <RestClientEventArgs <object> > callback)
        {
            BalanceRefundInfo entity = request.ConvertVM <PrepayRefundVM, BalanceRefundInfo>();

            entity.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/InvoiceService/BalanceRefund/Create";

            GetRestClient(ConstValue.DomainName_Invoice).Create(relativeUrl, entity, callback);
        }
Esempio n. 2
0
        private void btnPrepayToBankAccount_Click(object sender, RoutedEventArgs e)
        {
            if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_PrepayToBank))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert(ResCustomerScoreInfo.rigthMsg_NoRight_PrepayToBank);
                return;
            }
            ScoreVM        vm   = this.DataContext as ScoreVM;
            PrepayRefundVM prvm = new PrepayRefundVM();

            prvm.CustomerSysNo   = vm.CustomerSysNo;
            prvm.CustomerName    = vm.CustomerName;
            prvm.ReturnPrepayAmt = vm.ValidPrepayAmt;
            UCPrepayRefund uc = new UCPrepayRefund(prvm);

            uc.Dialog = CPApplication.Current.CurrentPage.Context.Window.ShowDialog(ResCustomerScoreInfo.title_CreateRefund, uc, (obj, args) =>
            {
                if (args.DialogResult == Newegg.Oversea.Silverlight.Controls.Components.DialogResultType.OK)
                {
                    vm.ValidPrepayAmt = 0;
                    this.DataContext  = vm;
                }
            });
        }
Esempio n. 3
0
 public UCPrepayRefund(PrepayRefundVM vm)
 {
     _refundVM = vm;
     InitializeComponent();
 }