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; }
public SensorManager(ISensorRepository sensorRepository, IZoneRepository zoneRepository, IScheduleRepository scheduleRepository, ISwitchRepository switchRepository) { this.sensorRepository = sensorRepository; this.zoneRepository = zoneRepository; this.switchRepository = switchRepository; this.scheduleRepository = scheduleRepository; }
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 }; }
public void AddSubsystem(ISwitchRepository switchRepo) { switchRepos.Add(switchRepo.SubsystemName, (ISwitchRepository <TIn, TOut>)switchRepo); }
public SwitchService(ISwitchRepository switchRepository, IScheduleRepository scheduleRepository, ISwitchEventRepository switchEventRepository) { _switchRepository = switchRepository; _scheduleRepository = scheduleRepository; _switchEventRepository = switchEventRepository; }
public SwitchManager(ISwitchRepository switchRepository, ISensorRepository sensorRepository) { this.switchRepository = switchRepository; this.sensorRepository = sensorRepository; }