Ejemplo n.º 1
0
        }     // End Sub InvestigateStichtag

        public static void AlterRaiffeisenReports(string strPath)
        {
            List <string> lsReports = GetAllReports(strPath);

            List <string> lsExclude = new List <string>();

            for (int i = 0; i < lsExclude.Count; ++i)
            {
                lsExclude[i] = lsExclude[i].ToLower();
            } // Next i


            foreach (string strFileName in lsReports)
            {
                //if (!lsExclude.Contains(System.IO.Path.GetFileNameWithoutExtension(strFileName).ToLower())) continue;

                //ReportServerTools.PrintStichtag(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_standort", "Standort / Site / Sito / Site");
                //ReportServerTools.ChangeParameterPrompt(strFileName, "Standort", "Standort / Site / Sito / Site"); // Raiffeisen


                //ReportServerTools.ChangeStichtag(strFileName);
                //ReportServerTools.CopyBack(strFileName);

                //ReportServerTools.AddMandant(strFileName);
                //ReportServerTools.CopyBack(strFileName);

                //ReportServerTools.AddProc(strFileName);
                //ReportServerTools.CopyBack(strFileName);


                //ReportServerTools.AddReportName(strFileName);
                //ReportServerTools.CopyBack(strFileName);
                //ReportServerTools.AddCustomParameter(strFileName,"first","");

                //ReportServerTools.AddGroups(strFileName);
                //ReportServerTools.CopyBack(strFileName);

                //ReportServerTools.AddSprache(strFileName);
                //ReportServerTools.CopyBack(strFileName);
            } // Next strFileName
        }     // End Sub AlterRaiffeisenReports
Ejemplo n.º 2
0
        } // End Function GetAllReports

        public static void AlterReports(string strPath)
        {
            List <string> lsReports = GetAllReports(strPath);


            List <string> lsExclude = new List <string>();

            lsExclude.Add("AL_Anlageblatt");
            lsExclude.Add("AL_Anlagenkosten");
            lsExclude.Add("AL_Kostenuebersicht");
            lsExclude.Add("AP_Arbeitsplatzuebersicht_ML");
            lsExclude.Add("BL_Belegung_ML");
            lsExclude.Add("BO_History");
            lsExclude.Add("FM_BelegungNachMieter_ML");
            lsExclude.Add("FM_FlaecheNachBodenbelag_ML");
            lsExclude.Add("FM_FlaecheNachEnergiebezug");
            lsExclude.Add("FM_FlaecheNachMietertrag");
            lsExclude.Add("FM_FlaecheNachNutzungsart");
            lsExclude.Add("FM_FlaecheNachSIA");
            lsExclude.Add("FM_MietertragNachMieter_ML");
            lsExclude.Add("FM_NutzungsartenDIN_277_SNB_ML");
            lsExclude.Add("FM_NutzungsartenDIN_277_Wincasa_ML");
            lsExclude.Add("FM_NutzungsartenSIA_ML");
            lsExclude.Add("GM_Gebaeudebasisdaten_ML");
            lsExclude.Add("GM_Gebaeudestammdaten_ML");
            lsExclude.Add("KU_Kunstinventar_ML");
            lsExclude.Add("REM_Raumliste_Reinigung_ML");
            lsExclude.Add("RM_Arbeitsplatzbelegung");
            lsExclude.Add("TM_Aufgabenplanungsuebersicht_ML");
            lsExclude.Add("TM_Aufgabenuebersicht_ML");
            lsExclude.Add("TM_Aufgabenuebersicht_SNB_ML");
            lsExclude.Add("TM_Auftrag_ML");
            lsExclude.Add("TM_Reinigungsuebersicht_ML");
            lsExclude.Add("UPS_Budgetuebersicht_ML");


            for (int i = 0; i < lsExclude.Count; ++i)
            {
                lsExclude[i] = lsExclude[i].ToLower();
            } // Next i


            foreach (string strFileName in lsReports)
            {
                //if (!lsExclude.Contains(System.IO.Path.GetFileNameWithoutExtension(strFileName).ToLower())) continue;

                //ReportServerTools.CopyToSaveDirectory(strFileName);


                // ReportServerTools.PrintStichtag(strFileName);
                ReportServerTools.ChangeStichtag(strFileName);
                ReportServerTools.CopyBack(strFileName);


                ReportServerTools.ChangeParameterPrompt(strFileName, "in_standortkategorie", "Standortkategorie / Catégorie site / Categoria sito / Site category");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_standort", "Liegenschaft / Immeuble / Patrimonio immobiliare / Estate");
                //ReportServerTools.ChangeParameterPrompt(strFileName, "in_standort", "Standort / Site / Sito / Site");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_gebaeude", "Gebäude / Bâtiment / Edificio / Building");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_geschoss", "Geschoss / Étage / Piano / Floor");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_trakt", "Trakt / Aile / Ala / Wing");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_haus", "Haus / Maison / Casa / House");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_raum", "Raum / Pièce / Stanza / Room");
                ReportServerTools.CopyBack(strFileName);

                ReportServerTools.ChangeParameterPrompt(strFileName, "in_stichtag", "Stichtag / Jour de référence / Giorno di riferimento / Reporting date");
                ReportServerTools.CopyBack(strFileName);



                // Here
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_mietertrag", "Mindestertrag Mindestertrag / Rendement minimum / Rendimento minimo / Minimum yield"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_jahr", "Jahr / Année / Anno / Year"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_stichjahr", "Jahr / Année / Anno / Year"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_budgetjahr", "Budgetjahr / Année Budgétaire / Esercizio Finanziario / Budget Year"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_jahr_von", "Jahr von / Année de / Anno di / Year from"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_jahr_bis", "Jahr bis / Année à / Anno a / Year to"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_objekt", "Objekt / Objet / Oggetto / Object"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_status", "Status / Statut / Stato / Status"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_prioritaet", "Priorität / Priorité / Priorità / Priority"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_termin_von", "Termin von / A partir de / A partire dalla / Date from"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_termin_bis", "Termin bis / Jusqu'au / Fino al / Date to"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_verantwortlich", "Verantwortlich / Responsable / Responsabile / Responsible"); ReportServerTools.CopyBack(strFileName);
                ReportServerTools.ChangeParameterPrompt(strFileName, "in_nutzungsart", "Nutzungsart / Type d'utilisation / Tipo di utilizzo / Usage type"); ReportServerTools.CopyBack(strFileName);


                // ReportServerTools.PrintProc(strFileName);
                // ReportServerTools.PrintMandant(strFileName);
            } // Next strFileName
        }     // End Sub InvestigateStichtag