Example #1
0
        /// <summary>
        /// 车辆计划报表
        /// </summary>
        /// <returns></returns>
        public ActionResult OrderDeliverPlanReport(int carrierid = -1, string begindate = "", string enddate = "", int p = 1)
        {
            // 默认当月
            if (string.IsNullOrEmpty(begindate) || string.IsNullOrEmpty(enddate))
            {
                DateTime dt = DateTime.Now;
                begindate = dt.Year + "-" + dt.Month + "-" + "01";
                enddate   = DateTime.Now.ToString("yyyy-MM-dd");
            }
            List <OrderDeliverPlanEntity> mList = null;

            int       count = OrderDeliverPlanService.GetOrderDeliverPlanCount(carrierid, begindate, enddate);
            PagerInfo pager = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = PAGESIZE;
            pager.SumCount  = count;
            pager.URL       = "OrderDeliverPlanReport";

            mList = OrderDeliverPlanService.GetOrderDeliverPlanInfoByRule(carrierid, begindate, enddate, pager);
            //默认承运商
            ViewBag.Carrier    = CarrierService.GetCarrierByRule("", 1);//只显示使用中的数据
            ViewBag.reportList = mList;
            ViewBag.carrierid  = carrierid;
            ViewBag.BeginDate  = begindate;
            ViewBag.EndDate    = enddate;
            ViewBag.Pager      = pager;
            return(View());
        }
Example #2
0
        public ActionResult Edit(string cid)
        {
            //省份
            ViewBag.Province = BaseDataService.GetAllProvince();
            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据

            //收货方类型
            ViewBag.ReceiverList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "Reveiver00" && t.Status == 1).ToList();
            if (!string.IsNullOrEmpty(cid))
            {
                ReceiverEntity entity = ReceiverService.GetReceiverEntityById(cid.ToLong(0));
                entity.Url       = UrlPar;
                ViewBag.Receiver = entity;
            }
            else
            {
                ViewBag.Receiver = new ReceiverEntity();
            }

            return(View());
        }
Example #3
0
 public BaseController()
 {
     inventoryService = new InventoryService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     deliveryService = new DeliveryService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     storeService = new StoreService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     employeeService = new EmployeeService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     mapRuleService = new MapRuleService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     carrierService = new CarrierService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     fileDataService = new FileDataService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
     epacketService = new EpacketService()
     {
         CurrentEmployee = GetCurrentEmployee()
     };
 }
Example #4
0
        public ActionResult Edit(string cid)
        {
            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //门店
            ViewBag.Goods = GoodsService.GetGoodsByRule("", 1);          //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据
            //温度
            ViewBag.TemList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "TM00" && t.Status == 1).ToList();
            //收货方类型
            ViewBag.ReceiverList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "Reveiver00" && t.Status == 1).ToList();
            //收货方
            ViewBag.DeliverList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "DeliverModel00" && t.Status == 1).ToList();
            if (!string.IsNullOrEmpty(cid))
            {
                ViewBag.PriceSet = PriceSetService.GetPriceSetEntityById(cid.ToLong(0));
            }
            else
            {
                ViewBag.PriceSet = new PriceSetEntity();
            }

            return(View());
        }
Example #5
0
        public ActionResult Index(string name, string mcode, int status = -1, int p = 1)
        {
            List <CarrierEntity> mList = null;

            int count = CarrierService.GetCarrierCount("", "", status);

            PagerInfo pager = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = PAGESIZE;
            pager.SumCount  = count;
            pager.URL       = "/Carrier";


            ViewBag.CarrierModel = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "Carrier00" && t.Status == 1).ToList();
            if (!string.IsNullOrEmpty(name) || status > -1 || !string.IsNullOrEmpty(mcode))
            {
                mList = CarrierService.GetCarrierInfoByRule(name, mcode, status, pager);
            }
            else
            {
                mList = CarrierService.GetCarrierInfoPager(pager);
            }
            ViewBag.Name      = name ?? "";
            ViewBag.Status    = status;
            ViewBag.ModelCode = mcode;
            ViewBag.Carrier   = mList;
            ViewBag.Pager     = pager;
            return(View());
        }
Example #6
0
        public CarrierService BuildFromRow(DataRow row)
        {
            var returnRecord = CarrierService.BuildCarrierServiceFromRow(row);

            returnRecord = this.BuildExtraFromRow <CarrierService>(returnRecord, row);
            return(returnRecord);
        }
Example #7
0
        /// <summary>
        /// 承运商信息模糊查询
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public JsonResult GetCarrierByName(string name = "", bool contactBlackCarrier = true)
        {
            List <CarrierEntity> outList = new List <CarrierEntity>();
            List <CarrierEntity> list    = CarrierService.GetCarrierAll(contactBlackCarrier);

            if (list != null && list.Count > 0)
            {
                if (!string.IsNullOrEmpty(name))
                {
                    var v = from d in list where d.CarrierName.Contains(name) select d;

                    if (v != null)
                    {
                        foreach (var k in v)
                        {
                            CarrierEntity model = new CarrierEntity();
                            model.CarrierID   = k.CarrierID;
                            model.CarrierName = k.CarrierName;
                            outList.Add(model);
                        }
                    }
                }
                else
                {
                    foreach (CarrierEntity entity in list)
                    {
                        outList.Add(entity);
                    }
                }
            }

            return(Json(outList));
        }
Example #8
0
 public void Modify(CarrierEntity Carrier)
 {
     if (Carrier != null)
     {
         Carrier.OperatorID = CurrentUser.UserID;
     }
     CarrierService.ModifyCarrier(Carrier);
     Response.Redirect("/Carrier/");
 }
Example #9
0
 public Carriers()
 {
     cs = new CarrierService();
     InitializeComponent();
     dataGridView1.DataSource            = cs.Load();
     dataGridView1.AllowUserToAddRows    = false;
     dataGridView1.AllowUserToDeleteRows = false;
     dataGridView1.EditMode = DataGridViewEditMode.EditProgrammatically;
 }
Example #10
0
        /// <summary>
        /// 订单出库  查询未出库订单
        /// </summary>
        /// <param name="carrierid"></param>
        /// <param name="storageid"></param>
        /// <param name="customerid"></param>
        /// <param name="status"></param>
        /// <param name="p"></param>
        /// <returns></returns>
        public ActionResult OrderOut(int carrierid    = 0, int storageid   = 0, int customerid = 0, int status     = -1, string orderno = "",
                                     string begindate = "", string enddate = "", string orderOutStatus = "", int p = 1, int pageSize    = 20)
        {
            List <OrderEntity> mList = null;

            orderOutStatus = !string.IsNullOrEmpty(orderOutStatus) ? orderOutStatus : "F";//默认未出库订单

            // 默认当月
            if (string.IsNullOrEmpty(begindate) || string.IsNullOrEmpty(enddate))
            {
                DateTime dt = DateTime.Now;
                begindate = dt.Year + "-" + dt.Month + "-" + "01";
                enddate   = DateTime.Now.ToString("yyyy-MM-dd");
            }
            //查询未出库 已安排运输计划订单
            int count = OrderService.GetOrderCount("", carrierid, storageid, customerid, status, -1, -1, "", orderno, begindate, enddate, -1, "", "", orderOutStatus, "T", " AND OrderType!='YSDDB'");

            PagerInfo pager = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = pageSize;
            pager.SumCount  = count;
            pager.URL       = "OrderOut";


            //if (status > -1 || carrierid > 0 || storageid > 0 || customerid > 0 || !string.IsNullOrEmpty(orderno) || !string.IsNullOrEmpty(begindate) || !string.IsNullOrEmpty(enddate))
            //{
            mList = OrderService.GetOrderInfoByRule(pager, "", carrierid, storageid, customerid, status, -1, -1, "", orderno, begindate, enddate, -1, "", "", orderOutStatus, "T", " AND OrderType!='YSDDB'");
            //}
            //else
            //{
            //    mList = OrderService.GetOrderInfoPager(pager);
            //}
            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //门店
            ViewBag.Goods = GoodsService.GetGoodsByRule("", 1);          //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据

            ViewBag.UserID         = CurrentUser != null?CurrentUser.UserID:-1;
            ViewBag.Status         = status;
            ViewBag.carrierid      = carrierid;
            ViewBag.customerid     = customerid;
            ViewBag.storageid      = storageid;
            ViewBag.OrderList      = mList;
            ViewBag.PageSize       = pageSize;
            ViewBag.BeginDate      = begindate;
            ViewBag.OrderNo        = orderno;
            ViewBag.EndDate        = enddate;
            ViewBag.orderOutStatus = orderOutStatus;
            ViewBag.Pager          = pager;
            return(View());
        }
        public UcCarrierService(CarrierService carrierService) : this()
        {
            _activeCarrierService = carrierService;
            if (_activeCarrierService.Id > 0)
            {
                FillData(_activeCarrierService);
            }

            TitleTextEdit.Focus();
        }
 public CarsAndDriversController(CarrierService carrierService,
                                 ApplicationDbContext dbContext,
                                 ILogger <CarsAndDriversController> logger,
                                 FileUploadService fileUploadService)
 {
     _carrierService    = carrierService;
     _dbContext         = dbContext;
     _logger            = logger;
     _fileUploadService = fileUploadService;
 }
Example #13
0
        public CarrierService Insert(CarrierService record)
        {
            DataRow row = this.dataSet.ttblcarrier_service.Newttblcarrier_serviceRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblcarrier_service.Addttblcarrier_serviceRow((pdscarrier_serviceDataSet.ttblcarrier_serviceRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblcarrier_service.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcarrier_service.Rows[0]) : null);
        }
Example #14
0
        /// <summary>
        /// 利润分析表
        /// </summary>
        /// <param name="carrierid">承运商ID</param>
        /// <param name="storageid">仓库ID</param>
        /// <param name="customerid">客户ID</param>
        /// <param name="receivername">收货方</param>
        /// <param name="ordertype">订单类型</param>
        /// <param name="orderno">订单编号</param>
        /// <param name="begindate">订单开始时间</param>
        /// <param name="enddate">订单结束时间</param>
        /// <param name="p"></param>
        /// <returns></returns>
        public ActionResult ProfitReport(int carrierid    = 0, int storageid   = 0, int customerid    = 0, string receivername = "",
                                         string ordertype = "", string orderno = "", string begindate = "", string enddate     = "", int p = 1)
        {
            // 默认当月
            if (string.IsNullOrEmpty(begindate) || string.IsNullOrEmpty(enddate))
            {
                DateTime dt = DateTime.Now;
                begindate = dt.Year + "-" + dt.Month + "-" + "01";
                enddate   = DateTime.Now.ToString("yyyy-MM-dd");
            }

            List <OrderEntity> mList   = null;
            OrderFeeInfo       feeinfo = ReportService.GetOrderCount("", carrierid, storageid, customerid, -1, -1, -1, ordertype, orderno, begindate, enddate, -1);
            int       count            = feeinfo.count;
            PagerInfo pager            = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = PAGESIZE;
            pager.SumCount  = count;
            pager.URL       = "ProfitReport";

            mList = ReportService.GetOrderInfoByRule(pager, "", carrierid, storageid, customerid, -1, -1, -1, ordertype, orderno, begindate, enddate, -1);

            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据
            //订单类型
            List <BaseDataEntity> orderTypeList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "OrderTypeList").ToList();

            ReEntity report = ReportService.CreateReportList(mList);

            report.TotalAllPayAmount     = feeinfo.TotalAllPayAmount;
            report.TotalllReceiverAmount = feeinfo.TotalllReceiverAmount;
            ViewBag.Report = report;



            ViewBag.GUID          = System.Guid.NewGuid().ToString();
            ViewBag.carrierid     = carrierid;
            ViewBag.storageid     = storageid;
            ViewBag.customerid    = customerid;
            ViewBag.OrderType     = ordertype;
            ViewBag.BeginDate     = begindate;
            ViewBag.EndDate       = enddate;
            ViewBag.orderTypeList = orderTypeList;
            ViewBag.ReceiverName  = receivername;
            //存入缓存
            Cache.Add(ViewBag.GUID, report.reportList);
            ViewBag.Pager = pager;
            return(View());
        }
Example #15
0
        public CarrierService GetByRowId(string rowId, string fldList)
        {
            var            row            = this.GetRowByRowId(rowId, fldList);
            CarrierService carrierService = null;

            if (row != null)
            {
                carrierService = this.BuildFromRow(row);
            }
            return(carrierService);
        }
 public ClaimsController(ApplicationDbContext context, CarrierService carrierService, ILogger <ClaimsController> logger,
                         ClaimService claimService,
                         IConfiguration configuration
                         )
 {
     _context        = context;
     _carrierService = carrierService;
     _logger         = logger;
     _claimService   = claimService;
     _configuration  = configuration;
 }
Example #17
0
        public void SetUp()
        {
            var repository      = new CarrierRepository(Context);
            var repositoryEmpty = new CarrierRepository(ContextEmpty);

            var service      = new CarrierService(repository, Mapper);
            var serviceEmpty = new CarrierService(repositoryEmpty, Mapper);

            _carriersController      = new CarriersController(service);
            _carriersControllerEmpty = new CarriersController(serviceEmpty);
        }
Example #18
0
        protected CarrierService Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var            row            = this.dataSet.ttblcarrier_service.AsEnumerable().SingleOrDefault();
            CarrierService carrierService = null;

            if (row != null)
            {
                carrierService = this.BuildFromRow(row);
            }
            return(carrierService);
        }
Example #19
0
        public void Delete(CarrierService record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblcarrier_service.Newttblcarrier_serviceRow();
                CarrierService.BuildMinimalRow(ref row, record);
                this.dataSet.ttblcarrier_service.Addttblcarrier_serviceRow((pdscarrier_serviceDataSet.ttblcarrier_serviceRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
        public HomeController(UserManager <ApplicationUser> userManager,
                              ApplicationDbContext dbContext,
                              IHostingEnvironment appEnvironment,
                              CarrierService carrierService,
                              IEmailSender emailSender
                              )

        {
            _userManager    = userManager;
            _dbContext      = dbContext;
            _appEnvironment = appEnvironment;
            _carrierService = carrierService;
            _emailSender    = emailSender;
        }
        private void AddItemButtonOnClick(object sender, RoutedEventArgs e)
        {
            var newCarrierService = new CarrierService();
            var newUc             = new UcCarrierService(newCarrierService);

            WindowService.OpenUserControlDialog(newUc);
            var carrierService = ApplicationDataStore.GetData <CarrierService>("CarrierService");

            if (carrierService != null)
            {
                _carrierServices.Add(carrierService);
            }
            CarrierServiceGridControl.RefreshData();
        }
Example #22
0
        public ActionResult Edit(string cid)
        {
            ViewBag.CarrierModel = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "Carrier00" && t.Status == 1).ToList();
            if (!string.IsNullOrEmpty(cid))
            {
                ViewBag.Carrier = CarrierService.GetCarrierEntityById(cid.ToLong(0));
            }
            else
            {
                ViewBag.Carrier = new CarrierEntity();
            }

            return(View());
        }
Example #23
0
        public CarrierService Update(CarrierService record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row != null)
            {
                this.UpdateToRow(ref row, record);
                this.ExtraUpdateToRow(ref row, record);
                this.SaveChanges();
                return(this.dataSet.ttblcarrier_service.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcarrier_service.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
        public CarrierServiceTests()
        {
            var mockRepository = new Mock <IRepository <Carrier, int> >();
            var mockUnitOfWork = new Mock <IUnitOfWork>();

            fakeCarriers = new List <Carrier>
            {
                new Carrier {
                    Id = 1, Name = "Carrier1", Phone = "380990112347", Address = "Some addr1", IBAN = "100023333113"
                },
                new Carrier {
                    Id = 5, Name = "Carrier5", Phone = "+380990136974", Address = "Some addr5", IBAN = "108233113"
                },
                new Carrier {
                    Id = 2, Name = "Carrier2", Phone = "+38(099)0136974", Address = "Some addr2", IBAN = "4655644242244"
                },
                new Carrier {
                    Id = 6, Name = "Carrier6", Phone = "0990136974", Address = "1", IBAN = "424252522424"
                }
            };

            carrierDto = new CarrierDto
            {
                Id      = 4,
                Name    = "Carrier4",
                Phone   = "+38(099)0136974",
                Address = "Some addr4",
                IBAN    = "44423333113"
            };

            mockRepository.Setup(m => m.GetAll())
            .Returns(fakeCarriers.AsQueryable);
            mockRepository.Setup(m => m.Get(It.IsAny <int>()))
            .Returns <int>(id => fakeCarriers.Single(t => t.Id == id));
            mockRepository.Setup(r => r.Create(It.IsAny <Carrier>()))
            .Callback <Carrier>(t => fakeCarriers.Add(carrier = t));
            mockRepository.Setup(r => r.Update(It.IsAny <Carrier>()))
            .Callback <Carrier>(t => carrier = t);
            mockRepository.Setup(x => x.Delete(It.IsAny <int>()))
            .Callback <int>(id => fakeCarriers.Remove(fakeCarriers.Single(t => t.Id == id)));

            mockUnitOfWork.Setup(m => m.Carriers).Returns(mockRepository.Object);

            carrierService = new CarrierService(mockUnitOfWork.Object);
        }
Example #25
0
 public ManagerController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <ManageController> logger,
     UrlEncoder urlEncoder,
     ApplicationDbContext dbContext,
     CarrierService carrierService,
     IMapper mapper
     )
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _emailSender    = emailSender;
     _logger         = logger;
     _urlEncoder     = urlEncoder;
     _dbContext      = dbContext;
     _carrierService = carrierService;
     _mapper         = mapper;
 }
Example #26
0
        public ActionResult Index(int carrierid = 0, int storageid = 0, int customerid = 0, int status = -1, int p = 1)
        {
            List <PriceSetEntity> mList = null;

            int count = PriceSetService.GetPriceSetCount("", carrierid, storageid, customerid, status);

            PagerInfo pager = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = PAGESIZE;
            pager.SumCount  = count;
            pager.URL       = "/PriceSet/";


            ViewBag.PriceSetModel = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "PriceSetCode" && t.Status == 1).ToList();
            if (status > -1 || carrierid > 0 || storageid > 0 || customerid > 0)
            {
                mList = PriceSetService.GetPriceSetInfoByRule("", carrierid, storageid, customerid, status, pager);
            }
            else
            {
                mList = PriceSetService.GetPriceSetInfoPager(pager);
            }
            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //门店
            ViewBag.Goods = GoodsService.GetGoodsByRule("", 1);          //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据

            ViewBag.Status     = status;
            ViewBag.carrierid  = carrierid;
            ViewBag.customerid = customerid;
            ViewBag.storageid  = storageid;
            ViewBag.PriceSet   = mList;
            ViewBag.Pager      = pager;
            return(View());
        }
Example #27
0
 public void UpdateToRow(ref DataRow row, CarrierService record)
 {
     CarrierService.UpdateRowFromCarrierService(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
Example #28
0
        /// <summary>
        /// 运输计划  查询已出库订单
        /// </summary>
        /// <param name="carrierid"></param>
        /// <param name="storageid"></param>
        /// <param name="customerid"></param>
        /// <param name="status"></param>
        /// <param name="p"></param>
        /// <returns></returns>
        public ActionResult OrderDeliveryPlan(int carrierid    = 0, int storageid   = 0, int customerid = 0, int status = -1, string orderno        = "",
                                              string begindate = "", string enddate = "", string deliveryStatus = "", string revicerids = "", int p = 1, int pageSize = 20)
        {
            List <OrderEntity> mList = null;

            deliveryStatus = !string.IsNullOrEmpty(deliveryStatus) ? deliveryStatus : "F";//默认未安排计划的订单
            // 默认当月
            if (string.IsNullOrEmpty(begindate) || string.IsNullOrEmpty(enddate))
            {
                DateTime dt = DateTime.Now;
                begindate = dt.Year + "-" + dt.Month + "-" + "01";
                enddate   = DateTime.Now.ToString("yyyy-MM-dd");
            }
            string orderOutStatus = "F";

            if (deliveryStatus.Equals("T"))//出库状态默认未出库  如果查询已安排配送 忽视订单是否出库
            {
                orderOutStatus = "";
            }

            //查询未出库 未安排运输计划订单  不包含入库单
            int       count = OrderService.GetOrderCount("", carrierid, storageid, customerid, status, -1, -1, "", orderno, begindate, enddate, -1, "", "", orderOutStatus, deliveryStatus, " AND OrderType!='RKD'", revicerids);
            PagerInfo pager = new PagerInfo();

            pager.PageIndex = p;
            pager.PageSize  = pageSize;
            pager.SumCount  = count;
            pager.URL       = "OrderDeliveryPlan";


            mList = OrderService.GetOrderInfoByRule(pager, "", carrierid, storageid, customerid, status, -1, -1, "", orderno, begindate, enddate, -1, "", "", orderOutStatus, deliveryStatus, " AND OrderType!='RKD'", revicerids);

            //默认承运商
            ViewBag.Carrier = CarrierService.GetCarrierByRule("", 1);    //只显示使用中的数据
            //默认仓库
            ViewBag.Storage = StorageService.GetStorageByRule("", 1);    //只显示使用中的数据
            //门店
            ViewBag.Goods = GoodsService.GetGoodsByRule("", 1);          //只显示使用中的数据
            //客户信息
            ViewBag.Customer = CustomerService.GetCustomerByRule("", 1); //只显示使用中的数据
            //温度
            ViewBag.TemList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "TM00" && t.Status == 1).ToList();
            //物流方式
            ViewBag.DeliverList = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "DeliverModel00" && t.Status == 1).ToList();

            ViewBag.CarModel = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "CarModel00" && t.Status == 1).ToList();

            ViewBag.Receiver = ReceiverService.GetReceiverByRule("", "", "", 1);

            //承运商类型
            ViewBag.CarrierModel   = BaseDataService.GetBaseDataAll().Where(t => t.PCode == "Carrier00" && t.Status == 1).ToList();
            ViewBag.UserID         = CurrentUser != null ? CurrentUser.UserID : -1;
            ViewBag.Status         = status;
            ViewBag.carrierid      = carrierid;
            ViewBag.customerid     = customerid;
            ViewBag.storageid      = storageid;
            ViewBag.OrderList      = mList;
            ViewBag.PageSize       = pageSize;
            ViewBag.BeginDate      = begindate;
            ViewBag.OrderNo        = orderno;
            ViewBag.EndDate        = enddate;
            ViewBag.deliveryStatus = deliveryStatus;
            ViewBag.Pager          = pager;
            ViewBag.Revicerids     = revicerids;
            return(View());
        }
 public DisplayInfoForCarrierController(ApplicationDbContext dbContext, CarrierService carrierService, ClaimService claimsService)
 {
     _dbContext      = dbContext;
     _carrierService = carrierService;
     _claimsService  = claimsService;
 }
Example #30
0
 public void Delete(CarrierService record)
 {
     this.adapter.Delete(record);
 }