Exemplo n.º 1
0
        public EmployeeViewModel()
        {
            event_aggregator       = ServiceLocator.Current.GetInstance <IEventAggregator>();
            service_factory        = ServiceLocator.Current.GetInstance <IServiceFactory>();
            address_postal_service = ServiceLocator.Current.GetInstance <IStateListService>();

            BindCommands();
            GetStateList();
        }
        public EmployeeViewModel()
        {
            event_aggregator       = Unity.Container.Resolve <IEventAggregator>();
            service_factory        = Unity.Container.Resolve <IServiceFactory>();
            address_postal_service = Unity.Container.Resolve <IStateListService>();

            BindCommands();
            GetStateList();
        }
        public CompanyViewModel(IEventAggregator event_aggtr, IServiceFactory service_fctry, IRegionManager region_manager, IStateListService address_postal_serv)
        {
            event_aggregator       = event_aggtr;
            service_factory        = service_fctry;
            _regionManager         = region_manager;
            address_postal_service = address_postal_serv;

            _currentCoObject = CurrentCompany as Client.Entities.Company;

            BindCommands();
            GetStateList();
            GetEmployeeList();
            MapObjectToProps(_currentCoObject);
            //GetAttributeList();
            RegisterApplicationCommands();
            event_aggregator.GetEvent <CompanyLoadedEvent>().Publish("Company data loaded sucessfully");
            InvalidateCommands();
        }
        public AccountViewModel(IEventAggregator event_aggtr, IServiceFactory service_fctry,
                                IRegionManager regionManager, IProductListService product_svc, IStateListService address_postal_serv,
                                IReportService reportService, IAccountEntityService account_entity_svc)
        {
            event_aggregator       = event_aggtr;
            service_factory        = service_fctry;
            region_manager         = regionManager;
            product_service        = product_svc;
            address_postal_service = address_postal_serv;
            report_service         = reportService;
            account_entity_service = account_entity_svc;

            GetProductList();
            GetStateList();
            BindCommands();
            InitNewAccount();
            //Account.PropertyChanged += Context_PropertyChanged;
            RegisterApplicationCommands();
            //ApplicationCommands.DeleteAccountCommand.RegisterCommand(DeleteAccountCommand);
            event_aggregator.GetEvent <AccountLoadedEvent>().Publish(string.Empty);
        }
Exemplo n.º 5
0
 public VehicleAllotmentController(IUserMasterService userMasterService,
                                   IModelMasterService modelsMasterService,
                                   IVarientMasterService varientMasterService,
                                   IDesignationMasterService designationMasterService,
                                   IStateListService stateListService,
                                   IVehiclesMasterService vehicleMasterService,
                                   ICustomerService customerService,
                                   IVehicleAllotmentService vehicleAllotmentService,
                                   IBranchMasterService branchMasterService,
                                   ICoDealerMasterService coDealerMasterService)
 {
     _userMasterService        = userMasterService;
     _modelsMasterService      = modelsMasterService;
     _varientMasterService     = varientMasterService;
     _designationMasterService = designationMasterService;
     _stateListService         = stateListService;
     _vehicleMasterService     = vehicleMasterService;
     _customerService          = customerService;
     _vehicleAllotmentService  = vehicleAllotmentService;
     _branchMasterService      = branchMasterService;
     _coDealerMasterService    = coDealerMasterService;
 }
Exemplo n.º 6
0
 public GenerateQuotationController(IUserMasterService userMasterService,
                                    IModelMasterService modelsMasterService,
                                    IWebHostEnvironment hostingEnvironment,
                                    IViewToStringRendererService viewToStringRendererService,
                                    IVarientMasterService varientMasterService,
                                    IDesignationMasterService designationMasterService,
                                    IStateListService stateListService,
                                    ICustomerService customerService,
                                    IQuotationManagerService quotationManagerService,
                                    IColourMasterService colourMasterService,
                                    IPriceListMasterService priceListMasterService)
 {
     _userMasterService           = userMasterService;
     _modelsMasterService         = modelsMasterService;
     _hostingEnvironment          = hostingEnvironment;
     _viewToStringRendererService = viewToStringRendererService;
     _varientMasterService        = varientMasterService;
     _designationMasterService    = designationMasterService;
     _stateListService            = stateListService;
     _customerService             = customerService;
     _quotationManagerService     = quotationManagerService;
     _colourMasterService         = colourMasterService;
     _priceListMasterService      = priceListMasterService;
 }
Exemplo n.º 7
0
 public CoDealerMasterController(IStateListService stateListService,
                                 ICoDealerMasterService coDealerMasterService)
 {
     _stateListService      = stateListService;
     _coDealerMasterService = coDealerMasterService;
 }
Exemplo n.º 8
0
 public CustomerMasterController(ICustomerService customerService,
                                 IStateListService stateListService)
 {
     _customerService  = customerService;
     _stateListService = stateListService;
 }