Example #1
0
        public ActionResult MoveinAdd(int?id)
        {
            var list = ListToSelect(WarehouseService.GetList().Select(o => new SelectListItem()
            {
                Value = o.StoreId, Text = o.Title
            }), emptyTitle: "请选择");

            ViewBag.outshops = list.Where(o => o.Value != Sys.CurrentUser.StoreId).ToList();
            ViewBag.inshops  = list.Where(o => o.Value == Sys.CurrentUser.StoreId).ToList();

            var obj = new Logic.Entity.HouseMove();

            if (id.HasValue)
            {
                obj = STHouseMoveService.FindById(id);
            }
            return(View(obj.IsNullThrow()));
        }
Example #2
0
        public ActionResult MoveOutDelivery(int?id)  //, string supplierId
        {
            var list = ListToSelect(WarehouseService.GetList().Select(o => new SelectListItem()
            {
                Value = o.StoreId, Text = o.Title
            }), emptyTitle: "请选择");

            ViewBag.outshops = list.Where(o => o.Value == Sys.CurrentUser.StoreId).ToList();
            ViewBag.inshops  = list.Where(o => o.Value != Sys.CurrentUser.StoreId).ToList();

            var obj = new Logic.Entity.HouseMove();

            if (id.HasValue)
            {
                obj = STHouseMoveService.FindById(id);
            }
            int    count   = 0;
            object footer  = null;
            var    details = STHouseMoveService.LoadDetailList(obj.MoveId, out count, ref footer);

            ViewData["Updated"]     = details.ToJson();
            Session["orderdetails"] = details;
            return(View(obj.IsNullThrow()));
        }