Пример #1
0
        public ActionResult PostDeliveryCompany(int pageindex = 1)
        {
            DeliveryCompanyCriteria deliveryCompanyCriteria = new DeliveryCompanyCriteria();

            TryUpdateModel(deliveryCompanyCriteria);
            int UserType = UserContext.Current.AccountType == 1 ? 0 : UserContext.Current.Id; //如果管理后台的类型是所有权限就传0,否则传管理后台id
            var dcList   = new DeliveryCompanyProvider().Get(deliveryCompanyCriteria);        //获取物流公司

            return(PartialView("_DeliveryCompanyList", dcList));
        }
Пример #2
0
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <returns></returns>
        public ActionResult DeliveryCompany()
        {
            int UserType = UserContext.Current.AccountType == 1 ? 0 : UserContext.Current.Id;//如果管理后台的类型是所有权限就传0,否则传管理后台id

            DeliveryCompanyCriteria deliveryCompanyCriteria = new DeliveryCompanyCriteria();

            TryUpdateModel(deliveryCompanyCriteria);
            var dcList = new DeliveryCompanyProvider().Get(deliveryCompanyCriteria);//获取物流公司

            return(View(dcList));
        }