Example #1
0
        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));
        }
Example #2
0
        //
        // 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));
        }
Example #3
0
        //
        // 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));
        }
Example #4
0
        //
        // 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));
        }
Example #5
0
        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));
        }
Example #6
0
        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));
        }
Example #7
0
        //
        // 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));
        }
Example #8
0
        //
        // GET: /StockMoveBill/GenMoveBillNo/

        public ActionResult GenMoveBillNo()
        {
            var moveBillNo = MoveBillMasterService.GenMoveBillNo(this.User.Identity.Name.ToString());

            return(Json(moveBillNo, "text", JsonRequestBehavior.AllowGet));
        }