public IActionResult RetailSalesAnalysis()
 {
     if (!_permissionService.Authorize("ViewRetailSalesAnalysis"))
     {
         return(View("_AccessDeniedView"));
     }
     ViewBag.Platforms = new SelectList(_commonService.GetDictionaryList(new List <DictionaryType>()
     {
         DictionaryType.Platform, DictionaryType.ThirdpartyOnlineSales, DictionaryType.Consignment
     }), "Id", "Value");
     ViewBag.WareHouses = new SelectList(_wareHouseService.GetAllWareHouseList(), "Id", "Name");
     return(View());
 }
Esempio n. 2
0
        public IActionResult AddSalesBill(int orderId = 0)
        {
            var result = _orderService.GetAllApprovalProcessList();
            List <ApprovalProcessModel> list = new List <ApprovalProcessModel>();

            foreach (var item in result)
            {
                list.Add(item.ToModel());
            }
            OrderModel orderModel = new OrderModel();

            if (orderId == 0)
            {
                orderModel.SerialNumber = CommonTools.GetSerialNumber("PF");
            }
            else
            {
                orderModel = _orderService.GetOrderById(orderId).ToModel();
            }
            orderModel.Customers            = _customerService.GetAllCustomerList();
            orderModel.WareHouses           = _wareHouseService.GetAllWareHouseList();
            orderModel.PriceType            = _commonService.GetBaseDictionaryList(DictionaryType.PriceType);
            orderModel.ApprovalProcessModel = list;
            orderModel.Delivery             = _orderService.GetAllDeliveryList();
            orderModel.PayTypes             = _commonService.GetBaseDictionaryList(DictionaryType.PayStyle);
            orderModel.PayMentTypes         = _commonService.GetBaseDictionaryList(DictionaryType.PayType);
            return(View(orderModel));
        }
Esempio n. 3
0
 /// <summary>
 /// 仓库区域管理
 /// </summary>
 /// <returns></returns>
 public IActionResult WareHouseArea()
 {
     ViewBag.WareHouses = _wareHouseService.GetAllWareHouseList();
     return(View());
 }
Esempio n. 4
0
        public IActionResult Index()
        {
            List <WareHouse> list = _wareHouseService.GetAllWareHouseList();

            return(View(list));
        }