/// <summary> /// 置为退款完成,前置条件:退款申请中订单,不包括货到付款订单 /// 如果是线上支付订单,需要调用接口完成退款操作(目前暂无接口) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAskRefund_Click(object sender, EventArgs e) { CommOrderBll obll = new CommOrderBll(); OrderChangeLogBll lbll = new OrderChangeLogBll(); CommOrderModel order = obll.GetModel(lblOrderId.Text); if (order != null && order.PayMethod != PayMethType.货到付款 && order.PayStatus == PayStatus.支付成功) { obll.ChangePayStatus(order.OrderId, PayStatus.退款申请中); lbll.Add(order.OrderId, txtActionRemark.Text.Trim(), PayStatus.退款申请中.ToString(), Context.User.Identity.Name); ShowOrderInfo(lblOrderId.Text); } }
/// <summary> /// 置为买家签收(物流),前置条件:订单已发货 /// 如果是货到付款订单,同时设置订单支付状态为已支付 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnCherrys_Click(object sender, EventArgs e) { CommOrderBll obll = new CommOrderBll(); OrderChangeLogBll lbll = new OrderChangeLogBll(); CommOrderModel order = obll.GetModel(lblOrderId.Text); if (order != null && order.OrderStatus == OrderStatus.已发货) { obll.ChangeOrderStatus(order.OrderId, OrderStatus.物流到货); lbll.Add(order.OrderId, txtActionRemark.Text.Trim(), OrderStatus.物流到货.ToString(), Context.User.Identity.Name); if (order.PayMethod == PayMethType.货到付款) { obll.ChangePayStatus(order.OrderId, PayStatus.支付成功); lbll.Add(order.OrderId, txtActionRemark.Text.Trim(), PayStatus.支付成功.ToString(), Context.User.Identity.Name); } ShowOrderInfo(lblOrderId.Text); } }