示例#1
0
 protected override void Initialize(RequestContext requestContext)
 {
     base.Initialize(requestContext);
     productServices       = new ProductServices();
     warehouseSevices      = new WareHouseServices();
     stockReceivingService = new StockReceivingService();
     supplierServices      = new SupplierSerivecs();
     customerServices      = new CustomerServices();
     if (!Helpers.AllowTrading)
     {
         throw new HttpException("You are not authorized to access this page");
     }
 }
示例#2
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");
     }
 }