Exemplo n.º 1
0
 public DoctorService(IDoctorRepository doctorRepository, IPrescriptionRepository prescriptionRepository, IMedicineRepository medicineRepository, DtoMapper mapper)
 {
     _doctorRepository       = doctorRepository;
     _prescriptionRepository = prescriptionRepository;
     _medicineRepository     = medicineRepository;
     _mapper = mapper;
 }
Exemplo n.º 2
0
 public CartForm(ICartRepositoty cartRepos, IMedicineRepository medRepos, ICosmeticRepository cosRepos)
 {
     this.cartRepos = cartRepos;
     this.medRepos  = medRepos;
     this.cosRepos  = cosRepos;
     InitializeComponent();
 }
Exemplo n.º 3
0
 public DoctorManager(IDoctorRepository doctorRepository, IPrescriptionRepository prescriptionRepository, IMedicineRepository medicineRepository, DtoMapper mapper)
 {
     this.doctorRepository       = doctorRepository;
     this.prescriptionRepository = prescriptionRepository;
     this.medicineRepository     = medicineRepository;
     this.mapper = mapper;
 }
Exemplo n.º 4
0
 private void Clear_Table(DataGridView dataGridView)
 {
     dataGridView.DataSource = null;
     dataGridView.Rows.Clear();
     medRepos = prov.GetFactory().GetMedicineRepository();
     cosRepos = prov.GetFactory().GetCosmeticRepository();
 }
Exemplo n.º 5
0
 public DoctorManager(IDoctorRepository doctorRepository, IPrescriptionRepository prescriptionRepository, IMedicineRepository medicineRepository, DTOMappers DTOMappers)
 {
     _doctorRepository       = doctorRepository;
     _prescriptionRepository = prescriptionRepository;
     _medicineRepository     = medicineRepository;
     _DTOMappers             = DTOMappers;
 }
Exemplo n.º 6
0
 public PharmacyFacadeImplementation(IMedicineRepository medicineRepo, ISupplierRepository supplierRepo, IMedicinePriceCalculator medicinePriceCalc, IPharmacyFactor factor, IEmailSender emailSender)
 {
     this.medicineRepo      = medicineRepo;
     this.supplierRepo      = supplierRepo;
     this.medicinePriceCalc = medicinePriceCalc;
     this.factor            = factor;
     this.emailSender       = emailSender;
 }
Exemplo n.º 7
0
        private string GetMedicineDetail(IMedicineRepository service, ViewMedicineViewModel model)
        {
            var _service = new MedicineService(service);

            var fullName = (_service.GetMedicineDetails(model).FullName);

            return(fullName);
        }
Exemplo n.º 8
0
 public PrescriptionController(IPrescriptionRepository _prescriptionRepository, ISessionStateManger _sessionStateManger, IMedicineRepository _medicineRepository, IAppointmentRepository _appointmentRepository, IDoctorRepository _doctorRepository)
 {
     sessionStateManger     = _sessionStateManger;
     prescriptionRepository = _prescriptionRepository;
     medicineRepository     = _medicineRepository;
     appointmentRepository  = _appointmentRepository;
     doctorRepository       = _doctorRepository;
 }
Exemplo n.º 9
0
 public MedicineService(ILogger <UserService> logger, IUserMapper userMapper,
                        IMedicineRepository medicineRepository,
                        IMedicineMapper medicineMapper)
 {
     _logger             = logger;
     _medicineRepository = medicineRepository;
     _medicineMapper     = medicineMapper;
 }
 public ProcedureController(IMapper mapper,
                            IProcedureRepository procedureRepository,
                            IMedicineRepository medicineRepository)
 {
     _mapper = mapper;
     _procedureRepository = procedureRepository;
     _medicineRepository  = medicineRepository;
 }
Exemplo n.º 11
0
        public PrescriptionPresenter(IMedicineRepository repository, IBillRepository billRepository, IPrescriptionRepository prescriptionRepository, IPrescriptionView view)
        {
            _medicineRepository     = repository;
            _billRepository         = billRepository;
            _prescriptionRepository = prescriptionRepository;
            _view = view;

            DisplayMedicineDataGridView();
        }
Exemplo n.º 12
0
 public DoctorManager(IDoctorRepository doctorRepository,
                      IMedicineRepository medicineRepository,
                      IPrescriptionRepository prescriptionRepository,
                      DTOMapper doctorsMapper)
 {
     mDoctorRepository       = doctorRepository;
     mMedicineRepository     = medicineRepository;
     mPrescriptionRepository = prescriptionRepository;
     mDTOMapper = doctorsMapper;
 }
Exemplo n.º 13
0
 public DoctorManager(IDoctorRepository doctorRepository,
                      IPrescriptionRepository prescriptionRepository,
                      IMedicineRepository medicineRepository,
                      DtoMapper dtoMapper)
 {
     _DoctorRepository       = doctorRepository;
     _PrescriptionRepository = prescriptionRepository;
     _MedicineRepository     = medicineRepository;
     _DtoMapper = dtoMapper;
 }
Exemplo n.º 14
0
 public DoctorMenager(IDoctorRepository doctorRepository,
                      IMedicineRepository medicineRepository,
                      IPrescriptionRepository prescriptionRepository,
                      DtoMapper dtoMapper)
 {
     mDoctorRepository       = doctorRepository;
     mMedicineRepository     = medicineRepository;
     mPrescriptionRepository = prescriptionRepository;
     mDtoMapper = dtoMapper;
 }
 public MedicineBackgroundJob(
     IEthereumService ethereumService,
     IMedicineRepository medicineBatchRepository,
     IOptions <EthereumSettings> options
     )
 {
     this.ethereumService         = ethereumService;
     this.medicineBatchRepository = medicineBatchRepository;
     MedicineAbi = options.Value.MedicineAbi;
 }
Exemplo n.º 16
0
        public AppFormAdmin()
        {
            prov     = new FactoryProvider();
            medRepos = prov.GetFactory().GetMedicineRepository();
            cosRepos = prov.GetFactory().GetCosmeticRepository();

            InitializeComponent();
            //
            Load_Med_Columns();
            Load_Cos_Columns();
        }
Exemplo n.º 17
0
 public AppFormUser()
 {
     factory   = new FlyweightFactory();
     prov      = new FactoryProvider();
     medRepos  = prov.GetFactory().GetMedicineRepository();
     cosRepos  = prov.GetFactory().GetCosmeticRepository();
     cartRepos = prov.GetFactory().GetCartRepository();
     InitializeComponent();
     //
     Load_Med_Columns();
     Load_Cos_Columns();
 }
Exemplo n.º 18
0
 public AdminForm(clinicEntities clinicEntities)
 {
     _clinicEntities       = clinicEntities;
     _medicineRepository   = new MedicineRepository(_clinicEntities);
     _serviceRepository    = new ServiceRepository(_clinicEntities);
     _permissionRepository = new PermissionRepository(_clinicEntities);
     _accountRepository    = new AccountRepository(_clinicEntities);
     _billRepository       = new BillRepository(_clinicEntities);
     _staffRepository      = new StaffRepository(_clinicEntities, _permissionRepository, _accountRepository);
     _statisticRepository  = new StatisticRepository(_clinicEntities);
     _presenter            = new AdminPresenter(this, _medicineRepository, _staffRepository, _serviceRepository, _billRepository, _statisticRepository);
     InitializeComponent();
 }
Exemplo n.º 19
0
 public AdminPresenter(IAdminView view, IMedicineRepository medicineRepository
                       , IStaffRepository staffRepository, IServiceRepository serviceRepository
                       , IBillRepository billRepository,
                       IStatisticRepository statisticRepository
                       )
 {
     _view = view;
     _medicineRepository  = medicineRepository;
     _staffRepository     = staffRepository;
     _serviceRepository   = serviceRepository;
     _billRepository      = billRepository;
     _statisticRepository = statisticRepository;
 }
        private void Dispose(bool diposing)
        {
            if (!diposing)
            {
                return;
            }

            // dispose all unmanaged code here
            if (m_MedicineRepository != null)
            {
                m_MedicineRepository.Dispose();
                m_MedicineRepository = null;
            }
        }
Exemplo n.º 21
0
 public AdminService(DataContext context,
                     IUserrRepository userRep,
                     IDoctorRepository drRep,
                     ICompanyRepository companyRep,
                     IMedicineRepository medicineRep,
                     IFileRepository fileRep,
                     IRoleRepository roleRep)
 {
     _userRep     = userRep;
     _drRep       = drRep;
     _companyRep  = companyRep;
     _medicineRep = medicineRep;
     _fileRep     = fileRep;
     _roleRep     = roleRep;
     _context     = context;
 }
Exemplo n.º 22
0
 public InventoryStatisticsRepository(ICSVStream <StatsInventory> stream, ISequencer <long> sequencer, IMedicineRepository medicineRepository, IInventoryItemRepository inventoryItemRepository) : base(ENTITY_NAME, stream, sequencer, new LongIdGeneratorStrategy <StatsInventory>())
 {
     _inventoryItemRepository = inventoryItemRepository;
     _medicineRepository      = medicineRepository;
 }
Exemplo n.º 23
0
 public MedicineService(IMedicineRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 24
0
 private MedicineMapper()
 {
     this.medicines = new Dictionary<int,Medicine>();
     //this.repository = new MedicineRepository(MedicineRepository.DSOURCE.XML);
     this.repository = new MedicineRepository(new XmlDataSource());
 }
 //public MedicineManager() : base(new MedicineRepository())
 //{
 //    _repository = new MedicineRepository();
 //}
 public MedicineManager(IMedicineRepository repository) : base(repository)
 {
     _repository = repository;
 }
Exemplo n.º 26
0
 public FormService(IServiceRepository serviceRepository, IMedicineRepository medicineRepository)
 {
     _repository         = serviceRepository;
     _medicineRepository = medicineRepository;
     InitializeComponent();
 }
Exemplo n.º 27
0
 public MedicineController(IMedicineRepository repo)
 {
     _repo = repo;
 }
 public PrescriptionsController(IPrescriptionRepository prescriptionRepository, IMedicineRepository medicineRepository)
 {
     _prescriptionRepository = prescriptionRepository;
     _medicineRepository     = medicineRepository;
 }
Exemplo n.º 29
0
 private IMedicineEngine GenerateMedicineEngine(IMedicineRepository repo)
 {
     return(new MedicineEngine(repo));
 }
 public MedicineService(IMedicineRepository medicineRepository)
 {
     _medicineRepository = medicineRepository;
 }
 public PrescriptionRepository(ICSVStream <Prescription> stream, ISequencer <long> sequencer, IDoctorRepository doctorRepository, IMedicineRepository medicineRepository) : base(ENTITY_NAME, stream, sequencer, new LongIdGeneratorStrategy <Prescription>())
 {
     _doctorRepository   = doctorRepository;
     _medicineRepository = medicineRepository;
 }