public EnhancementSelectionList(IEnhancementRepository erepo, SystemRegistration sreg, string mod,
                                        IEnhancementRegistrationReposity errepo) : this()
        {
            srk.Cst_Code = sreg.Syr_Cst_Code;
            srk.Sys_Code = sreg.Syr_Sys_Code;
            srk.Ver_Code = sreg.Syr_Ver_Code;
            Mod_Code     = mod;

            foreach (var m in erepo.Enhancements.Where(r => r.Enh_Sys_Code == sreg.Syr_Sys_Code &&
                                                       r.Enh_Mod_Code == mod))
            {
                enhancement_list.Add(m);
                if (errepo.EnhancementRegistrations.Any(r => r.Enr_Cst_Code == sreg.Syr_Cst_Code &&
                                                        r.Enr_Sys_Code == sreg.Syr_Sys_Code &&
                                                        r.Enr_Ver_Code == sreg.Syr_Ver_Code &&
                                                        r.Enr_Mod_Code == mod))
                {
                    selection_list.Add(true);
                }
                else
                {
                    selection_list.Add(false);
                }
            }
        }
Exemple #2
0
 public EnhancementController(IEnhancementRepository repo,
                              ISystemRepository sys_repo,
                              IModuleRepository mod_repo)
 {
     repository     = repo;
     sys_repository = sys_repo;
     mod_repository = mod_repo;
 }
Exemple #3
0
 public SystemRegistrationController(ISystemRegistrationRepository srrepo,
                                     IModuleRegistrationRepository mrrepo,
                                     IEnhancementRegistrationReposity errepo,
                                     ISystemRepository srepo,
                                     IModuleRepository mrepo,
                                     IVersionRepository vrepo,
                                     ICustomerRepository crepo,
                                     IEnhancementRepository erepo)
 {
     sys_reg_repository = srrepo;
     mod_reg_repository = mrrepo;
     enh_reg_repository = errepo;
     sys_repo           = srepo;
     mod_repo           = mrepo;
     ver_repo           = vrepo;
     cst_repo           = crepo;
     enh_repo           = erepo;
 }
 public SelectedEnhancements(IEnhancementRegistrationReposity repo, IEnhancementRepository erepo)
 {
     repository = repo;
     enh_repo   = erepo;
 }
Exemple #5
0
 public EnhancementController(IEnhancementRepository enhancementRepository)
 {
     _enhancementRepository = enhancementRepository;
 }