Exemple #1
0
        public override void OKExecute()
        {
            try
            {
                if (IsSearch == null)
                {
                    VMHelp.ShowMessage("未查询", false);
                    return;
                }
                if (!(bool)IsSearch || !Check())
                {
                    return;
                }



                Request08 refundRequest = new Request08();
                refundRequest.BusinessCode = Tools.PublicData.Refund;
                refundRequest.BankCode     = VMHelp.BankCode;
                refundRequest.PaymentID    = CurrentObj.PaymentID;
                refundRequest.RefundAmount = CurrentObj.RefundAmount;
                refundRequest.RefundInstr  = CurrentObj.RefundInstr;
                response = SendMessage <Response08>(refundRequest, VMHelp.PointCode, VMHelp.UserCode);
                if (response.ReturnCode != Tools.PublicData.ResponseSuccess)
                {
                    VMHelp.ShowMessage(Tools.HelpClass.Current.MsgDIC[response.ReturnCode], false); return;
                }
                //if (response.ReturnCode == Tools.PublicData.DepositSuccess && !VMHelp.AskMessage("付款凭证已经完成支付,是否存数据库?"))
                //{
                //    return;
                //}
                if (!DayBalanceAndRefundAndState())
                {
                    VMHelp.ShowMessage("操作失败,原因:" + "\r\n 1、数据库中无今日余额  \r\n 2、今日余额更新失败 \r\n 3、存款或支付表状态更新失败", false);
                    return;
                }
                this.Models.Add(CurrentObj);
                VMHelp.ShowMessage(true);
                windowClose();
            }
            catch (Exception e)
            {
                SendExcetpion(e);
            }
        }
Exemple #2
0
 public object Any(Request08 request)
 {
     return(new Request08Response {
         Result = "Hello, {0}!".Fmt(request.Name)
     });
 }
Exemple #3
0
 public object Any(Request08 request)
 {
     return new Request08Response { Result = "Hello, {0}!".Fmt(request.Name) };
 }