예제 #1
0
 private bool WXPaidAfter(wy_wx_pay Order)
 { //根据订单ID
     try
     {
         _log.LogInformation($"支付成功,更新类型:{CommonFiled.FeeTypeName(Order.FEE_TYPES)}");
         //更新缴费记录表,如果为自主缴费记录,支付成功后,重新生成新数据
         //如果类型为物业费 // recoreId 不为空,证明为提醒订单,需要修改record表中的数据
         if (Order != null && (!string.IsNullOrEmpty(Order.RECORD_ID)) && Order.RECORD_ID != SelfPayOrder)
         {
             return(PropertyCost(Order));
         }
         //如果类型为水费,
         if (CommonFiled.EnumFeeTypes(Order.FEE_TYPES) == FeeTypes.Water)
         {
             return(WaterCost(Order));
         }
         //如果类型为电费
         if (CommonFiled.EnumFeeTypes(Order.FEE_TYPES) == FeeTypes.Electricity)
         {
             return(ElectricityCost(Order));
         }
         return(true);
     }
     catch (Exception ex)
     {
         _log.LogError(ex, "微信支付成功后逻辑处理错误:[OrderID]:" + Order.ORDER_ID);
         return(false);
     }
 }
예제 #2
0
        //[Authorize(Roles ="Admin")]
        public ActionResult OrderDetail(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                Exception("没有查询到单据信息");
            }
            wy_wx_pay Model = this._order.GetWxOrderDetail(id);

            ViewBag.Type     = CommonFiled.FeeTypeName(Model.FEE_TYPES);
            ViewBag.MoneyNum = Convert.ToDouble((Model.TOTAL_FEE / 100.00));
            return(View(Model));
        }
예제 #3
0
        /// <summary>
        /// 新单据界面
        /// </summary>
        /// <returns></returns>
        public ActionResult Receipt(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                Exception("没有查询到单据信息");
            }
            wy_wx_pay Model = this._order.GetWxOrderDetail(id);

            ViewBag.Type     = CommonFiled.FeeTypeName(Model.FEE_TYPES);
            ViewBag.MoneyNum = Convert.ToDouble((Model.TOTAL_FEE / 100.00)).ToString("0.00");
            ViewBag.PayTime  = Model.PAY_TIME.HasValue ? Model.PAY_TIME.Value.ToString("yyyy/MM/dd") : "xxxx/xx/xx";
            //ViewBag.EffectiveTime = Model.
            ViewBag.Payee = CommonFiled.MchName(Model.FEE_TYPES);
            return(View(Model));
        }