Exemple #1
0
            public override DataTable Clone()
            {
                RouteDataTable cln = ((RouteDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
Exemple #2
0
 internal void InitVars()
 {
     this.tableRoute = ((RouteDataTable)(this.Tables["Route"]));
     if ((this.tableRoute != null))
     {
         this.tableRoute.InitVars();
     }
 }
Exemple #3
0
        private void PrintBody(Application application, RouteDataTable routeTable, out int currentExcelRow)
        {
            currentExcelRow = 2;

            foreach (RouteRow row in routeTable.Rows)
            {
                PrintRoute(application, ref currentExcelRow, row);
            }
        }
Exemple #4
0
 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);
 }
Exemple #5
0
 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);
 }
Exemple #6
0
 internal void InitVars(bool initTable)
 {
     this.tableRoute = ((RouteDataTable)(base.Tables["Route"]));
     if ((initTable == true))
     {
         if ((this.tableRoute != null))
         {
             this.tableRoute.InitVars();
         }
     }
 }
Exemple #7
0
        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;//Отображение приложения
        }
Exemple #8
0
 internal void InitVars()
 {
     this.tableRoute = ((RouteDataTable)(this.Tables["Route"]));
     if ((this.tableRoute != null)) {
         this.tableRoute.InitVars();
     }
 }
Exemple #9
0
 internal RouteRow(DataRowBuilder rb)
     : base(rb)
 {
     this.tableRoute = ((RouteDataTable)(this.Table));
 }
Exemple #10
0
 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);
 }
Exemple #11
0
 internal RouteRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tableRoute = ((RouteDataTable)(this.Table));
 }
Exemple #12
0
 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);
 }
Exemple #13
0
 internal void InitVars(bool initTable) {
     this.tableRoute = ((RouteDataTable)(base.Tables["Route"]));
     if ((initTable == true)) {
         if ((this.tableRoute != null)) {
             this.tableRoute.InitVars();
         }
     }
 }
Exemple #14
0
 public Task Report(RouteDataTable routeTable)
 {
     return(Task.Run(() => BuildReport(routeTable)));
 }