//修改主单 // POST: /StockOutBill/Edit/ public ActionResult Edit(OutBillMaster outBillMaster) { string errorInfo = string.Empty; bool bResult = OutBillMasterService.Save(outBillMaster, out errorInfo); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet)); }
//新增主单 // POST: /StockOutBill/Create/ public ActionResult Create(OutBillMaster outBillMaster) { string errorInfo = string.Empty; bool bResult = OutBillMasterService.Add(outBillMaster, this.User.Identity.Name.ToString(), out errorInfo); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet)); }
//主单结单 // POST: /StockOutBill/outBillMasterSettle/ public ActionResult outBillMasterSettle(string BillNo) { string errorInfo = string.Empty; bool bResult = OutBillMasterService.Settle(BillNo, out errorInfo); string msg = bResult ? "结单成功" : "结单失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet)); }
//主单审核 // POST: /StockOutBill/outBillMasterAudit/ public ActionResult outBillMasterAudit(string BillNo) { string errorInfo = string.Empty; bool bResult = OutBillMasterService.Audit(BillNo, this.User.Identity.Name.ToString(), out errorInfo); string msg = bResult ? "审核成功" : "审核失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet)); }
//查询主单 // GET: /StockOutBill/Details/ public ActionResult Details(int page, int rows, FormCollection collection) { string BillNo = collection["BillNo"] ?? ""; string beginDate = collection["beginDate"] ?? ""; string endDate = collection["endDate"] ?? ""; string OperatePersonCode = collection["OperatePersonCode"] ?? ""; string Status = collection["Status"] ?? ""; string IsActive = collection["IsActive"] ?? ""; var outBillMaster = OutBillMasterService.GetDetails(page, rows, BillNo, beginDate, endDate, OperatePersonCode, Status, IsActive); return(Json(outBillMaster, "text", JsonRequestBehavior.AllowGet)); }
//生成单号 // GET: /StockOutBill/GenInBillNo/ public ActionResult GenInBillNo() { var outBillNo = OutBillMasterService.GenInBillNo(this.User.Identity.Name.ToString()); return(Json(outBillNo, "text", JsonRequestBehavior.AllowGet)); }