Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
        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];
        }
Esempio n. 3
0
 protected override void Initialize(RequestContext requestContext)
 {
     base.Initialize(requestContext);
     servicesType = new ServicesTypeServices();
 }