public DrugController(IDrugService drugService, IGroupDrugService groupDrugService, IProducerService producerService, IMapper mapper)
 {
     _drugService      = drugService;
     _groupDrugService = groupDrugService;
     _producerService  = producerService;
     _mapper           = mapper;
 }
示例#2
0
 public LiquidationController(IReceiptLiquidationService receiptLiquidationService, IDetailReceiptLiquidationService detailReceiptLiquidationService, IMapper mapper, IDrugService drugService, IUserService userService)
 {
     _receiptLiquidationService       = receiptLiquidationService;
     _detailReceiptLiquidationService = detailReceiptLiquidationService;
     _mapper      = mapper;
     _drugService = drugService;
     _userService = userService;
 }
示例#3
0
 public ExportDrugController(IReceiptExportService receiptExportService, IDetailReceiptExportService detailReceiptExportService, IMapper mapper, IDrugService drugService, IUserService userService, IClientService clientService)
 {
     _receiptExportService       = receiptExportService;
     _detailReceiptExportService = detailReceiptExportService;
     _mapper        = mapper;
     _drugService   = drugService;
     _userService   = userService;
     _clientService = clientService;
 }
 public DrugReportController(IAdapterContext adapterContext,
                             IDrugService drugService,
                             IPharmacySystemService pharmacySystemService,
                             IPushNotificationService pushNotificationService)
 {
     _adapterContext          = adapterContext;
     _drugService             = drugService;
     _pharmacySystemService   = pharmacySystemService;
     _pushNotificationService = pushNotificationService;
 }
示例#5
0
 public DrugVendorController(
     IDrugVendorService drugVendorService,
     IDrugService drugService,
     ISystemLogService systemLogService) : base(systemLogService)
 {
     drugVendorService.InitialiseIValidationDictionary
         (new ModelStateWrapper(this.ModelState));
     IService     = drugVendorService;
     _drugService = drugService;
 }
示例#6
0
 public ImportDrug(IDrugService drugService, IGroupDrugService groupDrugService, IProducerService producerService, IMapper mapper, IUserService userService, SignInManager <IdentityUser> signInManager, UserManager <IdentityUser> userManager, IReceiptImportService receiptImportService, IDetailReceiptImportService detailReceiptImportService)
 {
     _drugService                = drugService;
     _groupDrugService           = groupDrugService;
     _producerService            = producerService;
     _mapper                     = mapper;
     _userService                = userService;
     _signInManager              = signInManager;
     _userManager                = userManager;
     _receiptImportService       = receiptImportService;
     _detailReceiptImportService = detailReceiptImportService;
 }
示例#7
0
 public PrescriptionController(IPrescriptionService PrescriptionService,
                               IDrugService DrugService,
                               IPatientService PatientService,
                               UserManager <IdentityUser> UserManager,
                               IAppUserService AppUserService,
                               IAppAuthorisationService AppAuthorisationService,
                               IUserOrgRoleService UserOrgRoleService
                               ) : base(UserManager, AppUserService, AppAuthorisationService, UserOrgRoleService)
 {
     _prescriptionService = PrescriptionService;
     _drugService         = DrugService;
     _patientService      = PatientService;
 }
 public ItemController(
     IDrugService drugService,
     IDrugSettingService drugSettingService,
     IDrugCostService drugCostService,
     IDrugAppearanceService drugAppearanceService,
     ICodeFileService codeFileService,
     ISystemLogService systemLogService) : base(systemLogService)
 {
     _modelState = new ModelStateWrapper(ModelState);
     drugService.InitialiseIValidationDictionary(_modelState);
     drugSettingService.InitialiseIValidationDictionary(_modelState);
     drugCostService.InitialiseIValidationDictionary(_modelState);
     drugAppearanceService.InitialiseIValidationDictionary(_modelState);
     codeFileService.InitialiseIValidationDictionary(_modelState);
     _drugService           = drugService;
     _drugSettingService    = drugSettingService;
     _drugCostService       = drugCostService;
     _drugAppearanceService = drugAppearanceService;
     _codeFileService       = codeFileService;
 }
示例#9
0
 public CompanyQuery(ICompanyService companyService, IDrugService drugService)
 {
     Name = "Query";
     Field <PageInfoType>(
         "paginatedCompany",
         arguments: new QueryArguments(
             new QueryArgument <NonNullGraphType <IntGraphType> > {
         Name = "page", Description = "page of the list"
     },
             new QueryArgument <NonNullGraphType <IntGraphType> > {
         Name = "size", Description = "size of the list returned"
     },
             new QueryArgument <StringGraphType> {
         Name = "q", Description = "filter by name"
     }
             ),
         resolve: context => companyService.GetCompanysAsync(context.GetArgument <int>("page"), context.GetArgument <int>("size"), context.GetArgument <string>("q"))
         );
     Field <CompanyType>(
         "company",
         arguments: new QueryArguments(
             new QueryArgument <NonNullGraphType <StringGraphType> > {
         Name = "id", Description = "id of the company"
     }
             ),
         resolve: context => companyService.GetCompanyByIdAsync(context.GetArgument <int>("id"))
         );
     Field <ListGraphType <DrugType> >(
         "allDrug",
         resolve: context => drugService.GetDrugsAsync()
         );
     Field <DrugType>(
         "drug",
         arguments: new QueryArguments(
             new QueryArgument <NonNullGraphType <StringGraphType> > {
         Name = "id", Description = "id of the drug"
     }
             ),
         resolve: context => drugService.GetDrugByIdAsync(context.GetArgument <int>("id"))
         );
 }
示例#10
0
 public DoctorDrugService(IDrugService decoratedDrug) : base(decoratedDrug)
 {
 }
 public FormAddRequestDrug(IDrugService service)
 {
     InitializeComponent();
     this.serviceDrug = service;
 }
示例#12
0
 public DrugsApiController(IDrugService drugService)
 {
     _drugService = drugService;
     _log4net     = log4net.LogManager.GetLogger(typeof(DrugsApiController));
 }
示例#13
0
 public TenderController(ITenderService tenderService, IDrugService drugService)
 {
     _tenderService = tenderService;
     _drugService   = drugService;
 }
 public WeeklyDrugsViewComponent(IDrugService drugService)
 {
     this.drugService = drugService;
 }
示例#15
0
 public ConfigureController(IDrugService DrugService)
 {
     _drugService = DrugService;
 }
 public DrugServiceController(IDrugService drugService, IDrugConsumptionService drugConsumptionService)
 {
     _drugService           = drugService;
     _drugConsuptionService = drugConsumptionService;
 }
 public DrugProcurementController(IDrugService drugService, IAdapterContext adapterContext, IPharmacySystemService pharmacySystemService)
 {
     _drugService           = drugService;
     _adapterContext        = adapterContext;
     _pharmacySystemService = pharmacySystemService;
 }
示例#18
0
 public DecoratedDrugService(IDrugService iDrugService)
 {
     this.drugServiceReference = iDrugService;
 }
示例#19
0
 public HomeController(IDrugService drugService)
 {
     this.drugService = drugService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DrugsController"/> class.
 /// </summary>
 /// <param name="service">The drug service.</param>
 public DrugsController(IDrugService service)
 {
     this.service = service;
 }
 public NotificationService(IDrugService drugService, IBusinessDayService businessDayService)
 {
     this.drugService        = drugService;
     this.businessDayService = businessDayService;
 }
示例#22
0
 public DrugController(IDrugService service)
 {
     _drugService = service;
 }
示例#23
0
 public ManagerDrugService(IDrugService decoratedDrug) : base(decoratedDrug)
 {
 }
 public DrugsController(IDrugService drugService, IDrugTypeService drugTypeService, IDrugInRoomService drugInRoomService)
 {
     _drugService       = drugService;
     _drugTypeService   = drugTypeService;
     _drugInRoomService = drugInRoomService;
 }
示例#25
0
 public FormDrug(IDrugService service)
 {
     InitializeComponent();
     this.service = service;
 }
示例#26
0
 public DrugsWithLessSideEffectsViewComponent(IDrugService drugService)
 {
     this.drugService = drugService;
 }
 public DrugsApiController(IDrugService drugService)
 {
     _drugService = drugService;
 }
示例#28
0
 public DrugInRoomService(IDrugInRoomRepository drugInRoomRepository, IDrugService drugService)
 {
     _drugInRoomRepository = drugInRoomRepository;
     _drugService          = drugService;
 }