protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); currentUser = (User)Session[AccountController.USER_SESSION_ID]; _shipmentServices = new ShipmentServicesImpl(); _supplierServices = new SupplierSerivecs(); ViewData["CountryList"] = new SelectList(_supplierServices.GetAllCountry(), "Id", "CountryName"); }
public CRMStatusProccessJob() { crmService = new CRMService(); crmCustomerService = new CRMCustomerService(); statusService = new CRMStatusService(); shipmentServices = new ShipmentServicesImpl(); usersServices = new UsersServicesImpl(); }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); shipmentServices = new ShipmentServicesImpl(); productServices = new ProductServices(); warehouseSevices = new WareHouseServices(); stockReceivingService = new StockReceivingService(); salesServices = new SalesServices(); usersServices = new UsersServicesImpl(); servicesType = new ServicesTypeServices(); if (!Helpers.AllowTrading) { throw new HttpException("You are not authorized to access this page"); } }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); customerServices = new CustomerServices(); carrierService = new CarrierService(); areaService = new AreaService(); agentService = new AgentService(); countryService = new CountryService(); unitService = new UnitService(); province = new ProvinceService(); shipmentServices = new ShipmentServicesImpl(); crmService = new CRMService(); ViewData["CountryList"] = new SelectList(Countries, "Id", "CountryName"); sessageStaus = string.Empty; }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); _freightService = new FreightServicesImpl(); _shipmentService = new ShipmentServicesImpl(); carrierService = new CarrierService(); agentService = new AgentService(); areaService = new AreaService(); servicesType = new ServicesTypeServices(); ViewData["CountryList"] = new SelectList(agentService.GetAllCountry(), "Id", "CountryName"); ViewData["AirlineList"] = carrierService.GetAll(x => x.Type == CarrierType.AirLine.ToString()); ViewData["CarrierList"] = carrierService.GetAll(x => x.Type == CarrierType.ShippingLine.ToString()); ViewData["AgentList"] = agentService.GetAll(); List <String> List1 = new List <String>(); ViewData["AreaListDep"] = new SelectList(List1); ViewData["AreaListDes"] = new SelectList(List1); ViewData["ServiceList"] = Services; User1 = (User)Session[AccountController.USER_SESSION_ID]; }