private void DealTuiHuo(bool isArgee) { RefundApplyInfo dataById = SinGooCMS.BLL.RefundApply.GetDataById(base.OpID); dataById.AdminRemark = WebUtils.GetString(this.bz.Text); dataById.Status = (isArgee ? 1 : -1); if (base.Action.Equals(ActionType.Modify.ToString())) { if (SinGooCMS.BLL.RefundApply.Update(dataById)) { PageBase.log.AddEvent(base.LoginAccount.AccountName, string.Concat(new string[] { isArgee ? "同意" : "拒绝", "订单[", dataById.OrderNo, "]的商品[", dataById.ProductName, "]退货申请" })); base.Response.Redirect(string.Concat(new object[] { "RefundApply.aspx?CatalogID=", base.CurrentCatalogID, "&Module=", base.CurrentModuleCode, "&action=View" })); } else { base.ShowMsg("Thao tác thất bại"); } } }
protected void lnk_Delete_Click(object sender, System.EventArgs e) { if (!base.IsAuthorizedOp(ActionType.Delete.ToString())) { base.ShowAjaxMsg(this.UpdatePanel1, "Không có thẩm quyền"); } else { int @int = WebUtils.GetInt((sender as LinkButton).CommandArgument); RefundApplyInfo dataById = SinGooCMS.BLL.RefundApply.GetDataById(@int); if (dataById == null) { base.ShowAjaxMsg(this.UpdatePanel1, "Những thông tin này không được tìm thấy, các dữ liệu không tồn tại hoặc đã bị xóa"); } else if (SinGooCMS.BLL.RefundApply.Delete(@int)) { this.BindData(); PageBase.log.AddEvent(base.LoginAccount.AccountName, string.Concat(new string[] { "删除订单[", dataById.OrderNo, "]的商品[", dataById.ProductName, "]退货申请" })); base.ShowAjaxMsg(this.UpdatePanel1, "Thao tác thành công"); } else { base.ShowAjaxMsg(this.UpdatePanel1, "Thao tác thất bại"); } } }
public static int Add(RefundApplyInfo entity) { int result; if (entity == null) { result = 0; } else { result = BizBase.dbo.InsertModel <RefundApplyInfo>(entity); } return(result); }
protected void Page_Load(object sender, System.EventArgs e) { if (!base.IsPostBack) { this.apply = SinGooCMS.BLL.RefundApply.GetDataById(base.OpID); if (this.apply != null) { this.bz.Text = this.apply.AdminRemark; if (this.apply.Status != 0) { this.btnok.Visible = false; this.btncancel.Visible = false; } } } }
/// <summary> /// 申请仅退款 /// </summary> /// <param name="refoundApplyInfo"></param> public void ApplyRefund(RefundApplyInfo refoundApplyInfo) { refoundApplyInfo.CheckNotNull(nameof(refoundApplyInfo)); ApplyEvent(new ApplyRefundedEvent(refoundApplyInfo)); }
private void Handle(ApplyReturnAndRefundedEvent evnt) { _refundApplyInfo = evnt.RefundApplyInfo; _status = StoreOrderStatus.ReturnAndRefund; }
public ApplyReturnAndRefundedEvent(RefundApplyInfo refundApplyInfo) { RefundApplyInfo = refundApplyInfo; }
public static bool Update(RefundApplyInfo entity) { return(entity != null && BizBase.dbo.UpdateModel <RefundApplyInfo>(entity)); }