Exemplo n.º 1
0
        /// <summary>
        /// 上新时间管理页面
        /// </summary>
        /// <returns></returns>
        public ActionResult NewDateManage(string brandNo = "B0626")
        {
            SwfsFlagShipNewArrivalProductService service = new SwfsFlagShipNewArrivalProductService();
            SwfsFlagShipGloalConfig Config = service.NewDateManageBrandNo(brandNo);

            return(View(Config));
        }
Exemplo n.º 2
0
        //最新上架管理页面
        public ActionResult NewShelfList(string startDate, string endDate, string pageIndex, int pageSize = 20, string brandNo = "B0626")
        {
            pageIndex = pageIndex == null || pageIndex == "" ? "1" : pageIndex;
            int count = 0;
            //NewShelfBrandProductService service = new NewShelfBrandProductService();
            //int count = 0;
            //Dictionary<string, List<ProductInfoNew>> dic = service.SelectNewBrandWeekDaysProduct(Convert.ToInt32(pageIndex), pageSize, brandNo, startDate, endDate, out count);
            //dic.Add("aaa_bbb", new List<ProductInfoNew>());
            SwfsFlagShipNewArrivalProductService service = new SwfsFlagShipNewArrivalProductService();
            SwfsFlagShipGloalConfig config = service.NewDateManageBrandNo(brandNo);

            ViewBag.DetailTime = config == null ? "" : config.ConfigTime;
            startDate          = startDate == null ? "" : startDate;
            endDate            = endDate == null ? "" : endDate;
            List <NewShelfListModel> list = service.SelectNewShelfList(brandNo, startDate, endDate, Convert.ToInt32(pageIndex), pageSize, out count);

            ViewBag.page       = pageIndex;
            ViewBag.pageSize   = pageSize;
            ViewBag.totalCount = count;
            ViewBag.brandNo    = brandNo;
            string[] valuearrt    = new string[] { "1", "2", "3", "4", "5", "6", "0" };
            string   disabledDays = "";

            if (config != null)
            {
                foreach (var item in valuearrt)
                {
                    if (!config.ConfigValue.Contains(item))
                    {
                        disabledDays += item + ",";
                    }
                }
            }
            else
            {
                ViewBag.type = "请先进行上架时间设置";
            }
            ViewBag.disabledDays = disabledDays;

            return(View(list));
        }