Пример #1
0
 public CodeController(CodeRules rules, CodeRepository repos, MerlinReadContext readContext, MerlinReadStore readStore)
 {
     this.rules       = rules;
     this.repos       = repos;
     this.readContext = readContext;
     this.readStore   = readStore;
 }
Пример #2
0
 public LayoutController(LayoutRules rules, MerlinReadContext readContext, LayoutService service, MerlinReadStore readStore, LayoutRepository layoutRepository)
 {
     this.rules            = rules;
     this.service          = service;
     this.readContext      = readContext;
     this.readStore        = readStore;
     this.layoutRepository = layoutRepository;
 }
Пример #3
0
 public SmartGoalsController(
     MerlinReadStore readStore,
     MerlinReadContext readContext,
     SmartGoalsRepository smartGoalsRepository,
     IUsernameProvider usernameProvider
     )
 {
     this.readStore        = readStore;
     this.readContext      = readContext;
     this.repos            = smartGoalsRepository;
     this.usernameProvider = usernameProvider;
 }
Пример #4
0
 public OutbreakController(MerlinReadStore readStore, MerlinReadContext readContext, OutbreakRules rules, OutbreakService service, LayoutRepository layoutRepository, AuthenticationService authenticationService, IConfiguration config, EpicomRepository epicomRepository, OutbreakRepository outbreakEventsRepository)
 {
     this.readStore             = readStore;
     this.readContext           = readContext;
     this.rules                 = rules;
     this.service               = service;
     this.layoutRepository      = layoutRepository;
     this.authenticationService = authenticationService;
     this.config                = config;
     this.epicomRepository      = epicomRepository;
     this.outbreakRepository    = outbreakEventsRepository;
 }
Пример #5
0
 public SurveyController(
     MerlinReadContext readContext,
     LayoutRepository layoutRepository,
     SurveyService service,
     SurveyRules rules,
     SurveyAnswerRules answerRules,
     MerlinReadStore readStore,
     SurveyAnswerRepository surveyAnswerRepository)
 {
     this.readContext            = readContext;
     this.layoutRepository       = layoutRepository;
     this.service                = service;
     this.rules                  = rules;
     this.answerRules            = answerRules;
     this.readStore              = readStore;
     this.surveyAnswerRepository = surveyAnswerRepository;
 }
Пример #6
0
 public AddressController(MerlinReadStore readStore)
 {
     this.readStore = readStore;
 }
Пример #7
0
 public OutbreakRepository(MerlinReadStore readStore, MerlinReadContext readContext)
 {
     this.readStore   = readStore;
     this.readContext = readContext;
 }
Пример #8
0
        private async Task <IEnumerable <DropdownCode> > GetCodesDropdownAsync(string codeType, MerlinReadStore db)
        {
            string sql =
                @"SELECT   CD_VALUE Code, DS_DESC Description 
                FROM     dbo.CODES 
                WHERE    CD_TYPE = @type
                AND      (DT_EXPIRED > CURRENT_TIMESTAMP OR DT_EXPIRED IS NULL)
                AND      DS_DESC NOT IN (' ','NOT AVAILABLE')
                ORDER BY ID_SEQUENCE, DS_DESC";

            return(await db.QueryAsync <DropdownCode>(sql, new
            {
                type = codeType
            }));
        }
Пример #9
0
 public CodeRepository(MerlinReadStore db)
 {
     this.db = db;
 }
Пример #10
0
 public EpicomRepository(MerlinReadStore readStore, MerlinReadContext readContext, IConfiguration config)
 {
     this.readStore   = readStore;
     this.readContext = readContext;
     this.config      = config;
 }
Пример #11
0
 public CaseController(MerlinReadStore readStore, MerlinReadContext readContext)
 {
     this.readStore   = readStore;
     this.readContext = readContext;
 }
Пример #12
0
 public DataServices(MerlinReadStore readStore)
 {
     this.readStore  = readStore;
     keyColumnLookup = new Dictionary <string, IEnumerable <string> >();
 }
Пример #13
0
 public SmartGoalsRepository(MerlinReadStore readStore)
 {
     this.readStore = readStore;
 }
Пример #14
0
 public DbSequenceGenerator(MerlinReadStore db)
 {
     this.db = db;
 }