public ActionResult Create(MoveBillMaster moveBillMaster) { bool bResult = MoveBillMasterService.Add(moveBillMaster, this.User.Identity.Name.ToString()); string msg = bResult ? "新增成功" : "新增失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /StockMoveBill/moveBillMasterSettle/ public ActionResult MoveBillMasterSettle(string billNo) { string strResult = string.Empty; bool bResult = MoveBillMasterService.Settle(billNo, out strResult); string msg = bResult ? "结单成功" : "结单失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /StockMoveBill/AntiTrial/ public ActionResult AntiTrial(string BillNo) { string strResult = string.Empty; bool bResult = MoveBillMasterService.AntiTrial(BillNo, out strResult); string msg = bResult ? "反审成功" : "反审失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
// // POST: /StockMoveBill/Audit/ public ActionResult Audit(string BillNo) { string strResult = string.Empty; bool bResult = MoveBillMasterService.Audit(BillNo, this.User.Identity.Name.ToString(), out strResult); string msg = bResult ? "审核成功" : "审核失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(MoveBillMaster moveBillMaster) { string strResult = string.Empty; bool bResult = MoveBillMasterService.Save(moveBillMaster, out strResult); string msg = bResult ? "修改成功" : "修改失败"; return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet)); }
public ActionResult GeneratePalletTag(string billNo) { string strResult = string.Empty; Result result = new Result(); result.IsSuccess = MoveBillMasterService.GeneratePalletTag(billNo, ref strResult); result.Message = result.IsSuccess ? "BC类烟自动组盘成功" : "BC类烟自动组盘失败"; return(Json(result, "text", JsonRequestBehavior.AllowGet)); }
// // GET: /MoveBillMaster/Details/ public ActionResult Details(int page, int rows, FormCollection collection) { string BillNo = collection["BillNo"] ?? ""; string WareHouseCode = collection["WareHouseCode"] ?? ""; string beginDate = collection["beginDate"] ?? ""; string endDate = collection["endDate"] ?? ""; string OperatePersonCode = collection["OperatePersonCode"] ?? ""; string Status = collection["Status"] ?? ""; string IsActive = collection["IsActive"] ?? ""; var moveBillMaster = MoveBillMasterService.GetDetails(page, rows, BillNo, WareHouseCode, beginDate, endDate, OperatePersonCode, Status, IsActive); return(Json(moveBillMaster, "text", JsonRequestBehavior.AllowGet)); }
// // GET: /StockMoveBill/GenMoveBillNo/ public ActionResult GenMoveBillNo() { var moveBillNo = MoveBillMasterService.GenMoveBillNo(this.User.Identity.Name.ToString()); return(Json(moveBillNo, "text", JsonRequestBehavior.AllowGet)); }