public override DataTable Clone() { RouteDataTable cln = ((RouteDataTable)(base.Clone())); cln.InitVars(); return(cln); }
internal void InitVars() { this.tableRoute = ((RouteDataTable)(this.Tables["Route"])); if ((this.tableRoute != null)) { this.tableRoute.InitVars(); } }
private void PrintBody(Application application, RouteDataTable routeTable, out int currentExcelRow) { currentExcelRow = 2; foreach (RouteRow row in routeTable.Rows) { PrintRoute(application, ref currentExcelRow, row); } }
private void InitClass() { this.DataSetName = "Routes"; this.Prefix = ""; this.Namespace = "http://tempuri.org/Routes.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tableRoute = new RouteDataTable(); base.Tables.Add(this.tableRoute); }
private void InitClass() { this.DataSetName = "Routes"; this.Prefix = ""; this.Namespace = "http://tempuri.org/Routes.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableRoute = new RouteDataTable(); this.Tables.Add(this.tableRoute); }
internal void InitVars(bool initTable) { this.tableRoute = ((RouteDataTable)(base.Tables["Route"])); if ((initTable == true)) { if ((this.tableRoute != null)) { this.tableRoute.InitVars(); } } }
private void BuildReport(RouteDataTable routeTable) { int currentExcelRow; Excel.Application application = new Excel.Application(); application.SheetsInNewWorkbook = 1; //Количество листов в книге application.Workbooks.Add(Type.Missing); //Добавление новой книги PrintHeader(application); PrintBody(application, routeTable, out currentExcelRow); FormatTable(application, currentExcelRow); application.Visible = true;//Отображение приложения }
internal RouteRow(DataRowBuilder rb) : base(rb) { this.tableRoute = ((RouteDataTable)(this.Table)); }
public Task Report(RouteDataTable routeTable) { return(Task.Run(() => BuildReport(routeTable))); }