public void Prepare(lib.Entity.DbBase db, DataTable tb, string repFile, string LastSqlQuery) { this.db = db; this.Table = tb; this.ReportFile = repFile; this.LastSqlQuery = LastSqlQuery; }
public void DbExecuteReport(string FileName, string OutputFileName) { lib.Entity.DbBase db = lib.Entity.CreateConnection.Create(getSwrDbType(DbCurrent.dbType), DbCurrent.ConnectionString); GenerateReport.Prepare(db, LastTable, ReportFile, LastSqlQuery); GenerateReport.ExecuteFile(FileName, OutputFileName); }
public void DbGenerateReport(string ReportTitle, bool StyleDetail, int ReportStyleIndex, string[] Fields, string[] Counters) { lib.Entity.DbBase db = lib.Entity.CreateConnection.Create(getSwrDbType(DbCurrent.dbType), DbCurrent.ConnectionString); GenerateReport.Prepare(db, LastTable, ReportFile, LastSqlQuery); GenerateReport.Execute(ReportTitle, StyleDetail, ReportStyleIndex, Fields, Counters); }