public MainFormAdmin(Klientas klientas) { InitializeComponent(); this.klientas = klientas; transportRepos = new TransportRepository(); markesRepository = new Markes(); }
public void FillData() { BasicRepository _basic = new BasicRepository(); BasicContants.StoredProcedure = "GetGender"; Genders = _basic.Get(); GenderList = Genders.ToGenderSelectListItems(GenderID); BasicContants.StoredProcedure = "GetStudentType"; Students = _basic.Get(); StudentList = Students.ToStudentTypeSelectListItems(StudentTypeID); SectionsRepository _section = new SectionsRepository(); BasicContants.StoredProcedure = "GetFullSectionName"; Sections = _section.Get(); SectionList = Sections.ToSectionSelectListItems(SectionID); ParentRepository _parent = new ParentRepository(); Parents = _parent.Get(); ParentList = Parents.ToParentSelectListItems(ParentID); TransportRepository _transport = new TransportRepository(); Transports = _transport.Get(); TransportList = Transports.ToTransportSelectListItems(TransportID); }
public TransportAddForm(Action <ITransport> setTransport) { InitializeComponent(); this.setTransport = setTransport; transportRepository = TransportRepository.GetInstance(); LoadTransports(); }
public TransportManagerForm(Form form) { InitializeComponent(); ProductsReponseTabConfigure(); mainFrom = form; transportRepository = TransportRepository.GetInstance(); UpdateTransports(); }
private void RepositoryConfigure(string connectionString) { ProductRepository.Configure(connectionString); ContractRepository.Configure(connectionString); TransportRepository.Configure(connectionString); CompanyRepository.Configure(connectionString); ResponseProductRepository.Configure(connectionString); }
public AdminDraudimasForm(Klientas klientas) { InitializeComponent(); this.klientas = klientas; draudTiekRep = new DraudimoTiekRepository(); draudimasRep = new DraudimasRepository(); transRep = new TransportRepository(); }
public AdminLokacijaForm(Klientas klientas) { InitializeComponent(); this.klientas = klientas; transLokRep = new LokacijaRepository(); klientoLokRep = new KlientoLokacijaRepository(); transRep = new TransportRepository(); klientoRep = new UsersRepository(); }
public AdminTestingScreen(Klientas klientas) { InitializeComponent(); this.klientas = klientas; transTestRep = new TransTestRepository(); transportRep = new TransportRepository(); galimiTestRep = new GalimiTestaiRepository(); pakrovimasRep = new PakrovimasRepository(); }
public AdminNuomaForm(Klientas klientas) { InitializeComponent(); this.klientas = klientas; nuomaRep = new NuomaRepository(); transRep = new TransportRepository(); usersRep = new UsersRepository(); rezRep = new RezervacijaRepository(); transLokRep = new LokacijaRepository(); }
public UnitOfWork(DBContext db) { Products = new ProductRepository(db); Categories = new CategoryRepository(db); Users = new UserRepository(db); Transports = new TransportRepository(db); Payments = new PaymentRepository(db); Orders = new OrderRepository(db); Settings = new SettingRepository(db); }
public UnitOfWork(DbContext context) { _context = context; DestinationRepository = new DestinationRepository(_context); ProductRepository = new ProductRepository(_context); OrderRepository = new OrderRepository(_context); TransportRepository = new TransportRepository(_context); DeliveryTypeRepository = new DeliveryTypeRepository(_context); TransportTypeRepository = new TransportTypeRepository(_context); OrderStatusRepository = new OrderStatusRepository(_context); }
public EventConsumer( TransportRepository storeTransportService, ILogger <EventConsumer> logger ) { if (storeTransportService is null) { throw new ArgumentNullException(nameof(storeTransportService)); } if (logger is null) { throw new ArgumentNullException(nameof(logger)); } _transportRepository = storeTransportService; _logger = logger; }
public UnitOfWork(PlutoContext context) { _ILog = Log.GetInstance; _context = context; AppUsers = new UserRepository(context); Students = new StudentRepository(context); PaymentHistories = new PaymentHistoryRepository(context); Payments = new PaymentRepository(context); studentclasses = new StudentClassRepository(context); departments = new DepartmentRepository(context); regions = new RegionRepository(context); studentstatuses = new StudentStatusRepository(context); employees = new EmployeeRepository(context); employeedocuments = new EmployeeDocumentRepository(context); payrollamounts = new PayrollAmountRepository(context); employeecategories = new EmployeeCategoryRepository(context); employeelevelsofeducation = new EmployeeLevelOfEducationRepository(context); payrollrates = new PayrollRateRepository(context); taxrates = new TaxRateRepository(context); ssnitrates = new SSNITRateRepository(context); studentsubjects = new StudentSubjectRepository(context); payrollallowances = new PayrollAllowancesRepository(context); employeetypes = new EmployeeTypeRepository(context); employeeloanhistories = new EmployeeLoanHistoryRepository(context); employeeloans = new EmployeeLoanRepository(context); exams = new ExamRepository(context); marks = new MarkRepository(context); externalhelper = new ExternalHelperRepository(context); hostels = new HostelRepository(context); libraries = new LibraryRepository(context); transports = new TransportRepository(context); expenses = new ExpenseRepository(context); expensecategories = new ExpenseCategoryRepository(context); incomes = new IncomeRepository(context); incomecategories = new IncomeCategoryRepository(context); books = new BookRepository(context); booktypes = new BookTypeRepository(context); rooms = new RoomRepository(context); payrolldates = new PayrollDateRepository(context); allowances = new AllowanceRepository(context); }
//test deneme public TransportController(TransportRepository TransportRepository) : base(TransportRepository) { }