public ActionResult AjaxUpdateCustomerInvoice(string invoiceTitle) { CustomerInvoiceInfo customerInvoiceInfo = new CustomerInvoiceInfo() { CustomerSysNo = CurrUser.UserSysNo, InvoiceTitle = invoiceTitle }; CustomerFacade.UpdateCustomerInvoice(customerInvoiceInfo); return(Json(customerInvoiceInfo)); }
public ActionResult AjaxGetCustomerInvoice(CheckOutContext context) { if (context == null) { throw new BusinessException("无效的请求"); } var custInvoiceInfo = CustomerFacade.GetCustomerInvoiceInfo(CurrUser.UserSysNo); if (custInvoiceInfo == null) { custInvoiceInfo = new CustomerInvoiceInfo(); } custInvoiceInfo.NeedInvoice = (context.NeedInvoice == 1); return(PartialView("_CustomerInvoicePanel", custInvoiceInfo)); }
/// <summary> /// 新增或更新用户购物发票信息 /// </summary> /// <param name="customerInvoiceInfo"></param> public static void UpdateCustomerInvoice(CustomerInvoiceInfo customerInvoiceInfo) { CustomerDA.UpdateCustomerInvoiceInfo(customerInvoiceInfo); }