Exemplo n.º 1
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 ModuleSelectionList(IModuleRepository mrepo, SystemRegistration sreg,
                            IModuleRegistrationRepository mrrepo) : this()
 {
     srk = sreg;
     foreach (var m in mrepo.Modules.Where(r => r.Mod_Sys_Code == sreg.Syr_Sys_Code))
     {
         module_list.Add(m);
         if (mrrepo.ModuleRegistrations.Any(r => r.Mor_Cst_Code == sreg.Syr_Cst_Code &&
                                            r.Mor_Sys_Code == sreg.Syr_Sys_Code &&
                                            r.Mor_Ver_Code == sreg.Syr_Ver_Code &&
                                            r.Mor_Mod_Code == m.Mod_Code))
         {
             selection_list.Add(true);
         }
         else
         {
             selection_list.Add(false);
         }
     }
 }
Exemplo n.º 3
0
 public SelectedModules(IModuleRegistrationRepository repo, IModuleRepository mrepo)
 {
     repository = repo;
     mod_repo   = mrepo;
 }