コード例 #1
0
        //新增线路调度
        // POST: /SortOrderDispatch/Create/
        public ActionResult Create(string SortingLineCode, string DeliverLineCodes, string orderDate)
        {
            bool   bResult = SortOrderDispatchService.Add(SortingLineCode, DeliverLineCodes, orderDate);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult Create(InBillMaster inBillMaster)
        {
            bool   bResult = InBillMasterService.Add(inBillMaster, this.User.Identity.Name.ToString());
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
ファイル: ProductController.cs プロジェクト: tw0r2/wms_rfid
        public ActionResult Create(Product product)
        {
            bool   bResult = ProductService.Add(product);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        public ActionResult InBillDetailCreate(InBillDetail inBillDetail)
        {
            bool   bResult = InBillDetailService.Add(inBillDetail);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #5
0
        //
        // POST: /InBillMaster/Audit/
        public ActionResult Audit(string BillNo)
        {
            bool   bResult = InBillMasterService.Audit(BillNo, this.User.Identity.Name.ToString());
            string msg     = bResult ? "审核成功" : "审核失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #6
0
        public ActionResult Delete(string demployeeId)
        {
            bool   bResult = EmployeeService.Delete(demployeeId);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #7
0
        //删除主单
        // POST: /CheckBill/Delete/
        public ActionResult Delete(string BillNo)
        {
            bool   bResult = CheckBillMasterService.Delete(BillNo);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #8
0
        public ActionResult DeleteRoleUser(string roleUserIdStr)
        {
            bool   bResult = RoleService.DeleteRoleUser(roleUserIdStr);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #9
0
ファイル: FunctionController.cs プロジェクト: tw0r2/wms_rfid
        public ActionResult Create(string id, string FunctionName, string ControlName, string IndicateImage)
        {
            bool   bResult = FunctionService.Add(id, FunctionName, ControlName, IndicateImage);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #10
0
        public ActionResult Create(string ROLE_NAME, string MEMO, bool IS_LOCK)
        {
            bool   bResult = RoleService.Add(ROLE_NAME, MEMO, IS_LOCK);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #11
0
        public ActionResult Edit(string ROLE_ID, string ROLE_NAME, string MEMO, bool IS_LOCK)
        {
            bool   bResult = RoleService.Save(ROLE_ID, ROLE_NAME, MEMO, IS_LOCK);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #12
0
        public ActionResult AddRoleUser(string ROLE_ID, string userIDstr)
        {
            bool   bResult = RoleService.AddRoleUser(ROLE_ID, userIDstr);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #13
0
        //
        // POST: /SortOrderDispatch/Delete/
        public ActionResult Delete(string id)
        {
            bool   bResult = SortOrderDispatchService.Delete(id);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #14
0
        //
        // POST: /SortOrderDispatch/Edit/
        public ActionResult Edit(SortOrderDispatch sortDisoatch)
        {
            bool   bResult = SortOrderDispatchService.Save(sortDisoatch);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #15
0
        public ActionResult Create(Employee employee)
        {
            bool   bResult = EmployeeService.Add(employee);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #16
0
ファイル: ShelfController.cs プロジェクト: radtek/HNXC_WMS
        public ActionResult ShelfCreate(CMD_SHELF shelf)
        {
            bool   bResult = ShelfService.Add(shelf);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #17
0
        //
        // POST: /Department/Edit/5

        public ActionResult Edit(Employee employee)
        {
            bool   bResult = EmployeeService.Save(employee);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #18
0
ファイル: ShelfController.cs プロジェクト: radtek/HNXC_WMS
        //编辑货架表
        // GET: /Shelf/Edit/
        public ActionResult Edit(CMD_SHELF shelf)
        {
            bool   bResult = ShelfService.Save(shelf);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #19
0
        public ActionResult AreaCreate(Area area)
        {
            bool   bResult = AreaService.Add(area);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #20
0
        public ActionResult WareCreate(CMD_WAREHOUSE warehouse)
        {
            bool   bResult = WarehouseService.Add(warehouse);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #21
0
        public ActionResult Edit(Product product)
        {
            bool   bResult = ProductService.Save(product);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #22
0
        //编辑仓库表
        // GET: /Warehouse/Edit/
        public ActionResult Edit(CMD_WAREHOUSE warehouse)
        {
            bool   bResult = WarehouseService.Save(warehouse);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #23
0
        public ActionResult InBillDetailDelete(string ID)
        {
            bool   bResult = InBillDetailService.Delete(ID);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #24
0
        //GO: /StockCheckTask/Operate/
        public ActionResult Operate(string id, string status)
        {
            string strResult = string.Empty;
            string operater  = string.Empty;
            string msg       = string.Empty;

            if (status == "1")
            {
                operater = this.User.Identity.Name.ToString();
            }
            if (status == "0")
            {
                operater = "";
            }
            bool bResult = CheckBillDetailService.EditDetail(id, status, operater, out strResult);

            if (status == "0")
            {
                msg = bResult ? "取消成功" : "取消失败";
            }
            if (status == "1")
            {
                msg = bResult ? "申请成功" : "申请失败";
            }
            if (status == "2")
            {
                msg = bResult ? "操作成功" : "操作失败";
            }
            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #25
0
        //
        // POST: /InBillMaster/AntiTria/
        public ActionResult AntiTrial(string BillNo)
        {
            bool   bResult = InBillMasterService.AntiTrial(BillNo);
            string msg     = bResult ? "反审成功" : "反审失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #26
0
        //
        // GET: /DailyBalance/DoDailyBalance/
        public ActionResult DoDailyBalance(string warehouseCode, string settleDate)
        {
            DownBusinessSystemsDailyBalanceBll dbll = new DownBusinessSystemsDailyBalanceBll();

            dbll.DownDayEndInfo(settleDate);
            string errorInfo = string.Empty;
            bool   bResult   = DailyBalanceService.DoDailyBalance(warehouseCode, settleDate, ref errorInfo);
            string msg       = bResult ? "日结成功!" : "日结失败!";

            //if (bResult)
            //{
            //    if (!CellService.uploadCell())
            //    {
            //        msg = msg + "上报仓储属性表失败!";
            //    }
            //    if (!StorageService.uploadStorage())
            //    {
            //        msg = msg + "上报库存表失败!";
            //    }
            //    if (!StorageService.uploadBusiStorage())
            //    {
            //        msg = msg + "上报业务库存表失败!";
            //    }
            //    if (!InBillMasterService.uploadInBill())
            //    {
            //        msg = msg + "上报入库信息失败!";
            //    }
            //    if (!OutBillMasterService.uploadOutBill())
            //    {
            //        msg = msg + "上报出库信息失败!";
            //    }
            //    upload.InsertSynchro();
            //}
            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #27
0
        public ActionResult Edit(InBillMaster inBillMaster)
        {
            bool   bResult = InBillMasterService.Save(inBillMaster);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #28
0
        public ActionResult Create(Supplier supplier)
        {
            bool   bResult = SupplierService.Add(supplier);
            string msg     = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #29
0
ファイル: ProductController.cs プロジェクト: tw0r2/wms_rfid
        public ActionResult Delete(string ProductCode)
        {
            bool   bResult = ProductService.Delete(ProductCode);
            string msg     = bResult ? "删除成功" : "删除失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
コード例 #30
0
ファイル: SystemController.cs プロジェクト: windygu/wms_rfid
        public ActionResult Edit(string systemId, string systemName, string description, bool status)
        {
            bool   bResult = SystemService.Save(systemId, systemName, description, status);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }