Ejemplo n.º 1
0
        public SwitchController(ISwitchRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.SwitchRepository = repository;
        }
Ejemplo n.º 2
0
        public SwitchController(ISwitchRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.SwitchRepository = repository;
        }
Ejemplo n.º 3
0
 public SensorManager(ISensorRepository sensorRepository,
                      IZoneRepository zoneRepository,
                      IScheduleRepository scheduleRepository,
                      ISwitchRepository switchRepository)
 {
     this.sensorRepository   = sensorRepository;
     this.zoneRepository     = zoneRepository;
     this.switchRepository   = switchRepository;
     this.scheduleRepository = scheduleRepository;
 }
Ejemplo n.º 4
0
        public SwitchController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.SwitchRepository = new MixERP.Net.Schemas.Config.Data.Switch
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Ejemplo n.º 5
0
        public SwitchController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.SwitchRepository = new MixERP.Net.Schemas.Config.Data.Switch
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Ejemplo n.º 6
0
 public void AddSubsystem(ISwitchRepository switchRepo)
 {
     switchRepos.Add(switchRepo.SubsystemName, (ISwitchRepository <TIn, TOut>)switchRepo);
 }
Ejemplo n.º 7
0
 public SwitchService(ISwitchRepository switchRepository, IScheduleRepository scheduleRepository, ISwitchEventRepository switchEventRepository)
 {
     _switchRepository      = switchRepository;
     _scheduleRepository    = scheduleRepository;
     _switchEventRepository = switchEventRepository;
 }
Ejemplo n.º 8
0
 public SwitchManager(ISwitchRepository switchRepository,
                      ISensorRepository sensorRepository)
 {
     this.switchRepository = switchRepository;
     this.sensorRepository = sensorRepository;
 }