public void Init(IDBQuery dbHelper, ILoginUser loginUser) { _dbHelper = dbHelper; _loginUser = loginUser; _pm = new ParameterModel(dbHelper); _scm = new StationConfigModel(_dbHelper); _dmm = new DictManageModel(dbHelper); _departmentMatchModel = new DepartmentMatchModel(dbHelper); _depRoomModel = new DepRoomModel(dbHelper); _depDeviceModel = new DepDeviceModel(dbHelper); _storageModel = new StorageModel(dbHelper); }
public void Init(IDBQuery dbHelper, ILoginUser loginUser) { _dbHelper = dbHelper; _loginUser = loginUser; _DepRoomModel = new DepRoomModel(_dbHelper); _DepDeviceModel = new DepDeviceModel(_dbHelper); _departmentMatchModel = new DepartmentMatchModel(dbHelper); _deviceKindModel = new DeviceKindModel(dbHelper); if (_dbHelper != null) { InitCbo(); } }