示例#1
0
        protected void doSection()
        {
            if (inSection)
            {
                switch (section)
                {
                case "accord-versement":
                    AccordVersementConfig paccord = new AccordVersementConfig();
                    paccord.accordVersement        = sectionName;
                    paccord.SAE_Serveur            = SAE_Serveur;
                    paccord.TransferIdPrefix       = TransferIdPrefix;
                    paccord.SAE_ProfilArchivage    = SAE_ProfilArchivage;
                    paccord.TransferringAgencyId   = TransferringAgencyId;
                    paccord.TransferringAgencyName = TransferringAgencyName;
                    paccord.TransferringAgencyDesc = TransferringAgencyDesc;
                    paccord.ArchivalAgencyId       = ArchivalAgencyId;
                    paccord.ArchivalAgencyName     = ArchivalAgencyName;
                    paccord.ArchivalAgencyDesc     = ArchivalAgencyDesc;
                    accordVersementConfigList.Add(paccord);
                    break;

                case "profile-control":
                    ProfileControlConfig pcontrol = new ProfileControlConfig();
                    pcontrol.nomJob      = sectionName;
                    pcontrol.traceFile   = traceFile;
                    pcontrol.profileFile = profileFile;
                    pcontrol.dataFile    = dataFile;
                    profilecontrolList.Add(pcontrol);
                    break;

                case "data-control":
                    DataControlConfig dcontrol = new DataControlConfig();
                    dcontrol.nomJob      = sectionName;
                    dcontrol.traceFile   = traceFile;
                    dcontrol.profileFile = profileFile;
                    dcontrol.dataFile    = dataFile;
                    datacontrolList.Add(dcontrol);
                    break;

                case "generator":
                    GeneratorConfig generator = new GeneratorConfig();
                    generator.nomJob          = sectionName;
                    generator.traceFile       = traceFile;
                    generator.accordVersement = accordVersement;
                    generator.dataFile        = dataFile;
                    generator.repDocuments    = repDocuments;
                    generator.baseURI         = baseURI;
                    generator.bordereauFile   = bordereauFile;
                    generatorList.Add(generator);
                    break;
                }
            }
        }
示例#2
0
 protected void doSection()
 {
     if (inSection) {
         switch (section) {
             case "accord-versement":
                 AccordVersementConfig paccord = new AccordVersementConfig();
                 paccord.accordVersement = sectionName;
                 paccord.SAE_Serveur = SAE_Serveur;
                 paccord.TransferIdPrefix = TransferIdPrefix;
                 paccord.SAE_ProfilArchivage = SAE_ProfilArchivage;
                 paccord.TransferringAgencyId = TransferringAgencyId;
                 paccord.TransferringAgencyName = TransferringAgencyName;
                 paccord.TransferringAgencyDesc = TransferringAgencyDesc;
                 paccord.ArchivalAgencyId = ArchivalAgencyId;
                 paccord.ArchivalAgencyName = ArchivalAgencyName;
                 paccord.ArchivalAgencyDesc = ArchivalAgencyDesc;
                 accordVersementConfigList.Add(paccord);
                 break;
             case "profile-control":
                 ProfileControlConfig pcontrol = new ProfileControlConfig();
                 pcontrol.nomJob = sectionName;
                 pcontrol.traceFile = traceFile;
                 pcontrol.profileFile = profileFile;
                 profilecontrolList.Add(pcontrol);
                 break;
             case "data-control":
                 DataControlConfig dcontrol = new DataControlConfig();
                 dcontrol.nomJob = sectionName;
                 dcontrol.traceFile = traceFile;
                 dcontrol.profileFile = profileFile;
                 dcontrol.dataFile = dataFile;
                 datacontrolList.Add(dcontrol);
                 break;
             case "generator":
                 GeneratorConfig generator = new GeneratorConfig();
                 generator.nomJob = sectionName;
                 generator.traceFile = traceFile;
                 generator.accordVersement = accordVersement;
                 generator.dataFile = dataFile;
                 generator.repDocuments = repDocuments;
                 generator.baseURI = baseURI;
                 generator.bordereauFile = bordereauFile;
                 generatorList.Add(generator);
                 break;
         }
     }
 }