Exemplo n.º 1
0
 protected void btnAgree_Click(object sender, EventArgs e)
 {
     try
     {
         decimal applyformId;
         if (decimal.TryParse(Request.QueryString["id"], out applyformId))
         {
             CheckPNR();
             RefundOrScrapApplyform      applyform = ApplyformQueryService.QueryRefundOrScrapApplyform(applyformId);
             IEnumerable <RefundFeeView> feeInfos  = CollectFeeInfo();
             if (!feeInfos.Any())
             {
                 throw new Exception("费率输入不正确!");
             }
             string pnr  = txtPNR.Text.Trim();
             string bpnr = txtBPNR.Text.Trim();
             var    refundProcessView = new RefundProcessView
             {
                 NewPNR = new PNRPair(pnr, bpnr),
                 Items  = feeInfos
             };
             ApplyformProcessService.AgreeRefundOrScrapByProvider(applyformId, refundProcessView, CurrentUser.UserName, CurrentUser.Name);
             ReleaseLock(applyformId);
             RegisterScript(this, "alert('同意退废票成功');location.href='/OrderModule/Provide/ChangeProcessList.aspx'");
         }
     }
     catch (Exception ex)
     {
         ShowExceptionMessage(ex, "同意退/废票");
     }
 }
Exemplo n.º 2
0
 protected void btnAgree_Click(object sender, EventArgs e)
 {
     try
     {
         decimal applyformId;
         if (decimal.TryParse(Request.QueryString["id"], out applyformId))
         {
             CheckPNR();
             RefundOrScrapApplyform applyform = ApplyformQueryService.QueryRefundOrScrapApplyform(applyformId);
             string pnr  = txtPNR.Text.Trim();
             string bpnr = txtBPNR.Text.Trim();
             var    refundProcessView = new RefundProcessView
             {
                 NewPNR = new PNRPair(pnr, bpnr)
             };
             ApplyformProcessService.AgreeRefundOrScrapByProvider(applyformId, refundProcessView, CurrentUser.UserName, CurrentUser.Name);
             ReleaseLock(applyformId);
             RegisterScript(this, "alert('同意退废票成功');location.href='" + ReturnUrl + "'");
         }
     }
     catch (Exception ex)
     {
         ShowExceptionMessage(ex, "同意废票");
     }
 }