public SSRSProject(IRPT RPT, ECMTConfig Config) : base(RPT, Config) { this.BaseURL = Config.RPTConfig.SSRSWebPortal; this.Resource = @"api/v1.0/catalogitems"; this.TargetProject_SLN_Dir = Config.ECTargetRootDir + Config.RPTConfig.RPTTargetProjectDir + this.rpt.Name + @"\"; this.TargetProject_RDLandPROJandRDS_Dir = this.TargetProject_SLN_Dir + this.rpt.Name + @"\"; this.RPTRDLDir = this.TargetProject_RDLandPROJandRDS_Dir; this.EnvStr = Config.EpicorAppServer; this.ProjTemplatePath = Config.RPTConfig.SSRSProjectTemplateDir; this.ProjTemplateSharedDataSourcePath = Config.RPTConfig.SSRSSharedDataSourceTemplateDir; //.rptproj and .rds this.RPTProjPath = this.TargetProject_RDLandPROJandRDS_Dir + rpt.Name + this.ProjectFileTypeDictionary[VSProjectFileType.SSRSProj]; //.csproj this.SDSPath = this.TargetProject_RDLandPROJandRDS_Dir + rpt.Name + this.ProjectFileTypeDictionary[VSProjectFileType.SSRSReportDataSource]; //.rds this.ReportDatabase = Config.RPTConfig.SSRSEpicorReportDatabase; this.ReportingServerHost = Config.RPTConfig.SSRSReportingServerHost; this.ProjectBuildTargetServerURL = @"http://" + this.ReportingServerHost + @"/reportserver"; this.AutoOpenProj = Config.AutoOpen && Config.RPTConfig.RPTAutoOpen; }
public void Open(IRPT RPT, ECMTConfig Config) { if (RPT is Crystal) { throw new NotImplementedException(); } else if (RPT is BT) { throw new NotImplementedException(); } else if (RPT is SSRS) { new SSRSProject(RPT, Config).Build(); } else { throw new Exception("BPMType Not Recognized"); } }
public RPTProject(IRPT RPT, ECMTConfig Config) { this.rpt = RPT; }