Esempio n. 1
0
 /// <summary>
 /// Método necesario para admitir el Diseñador, no se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.DbConnection        = new System.Data.OleDb.OleDbConnection();
     this.DbDataAdapter       = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.dataSetAlumnos1     = new Listado_Morosos.DataSetAlumnos();
     ((System.ComponentModel.ISupportInitialize)(this.dataSetAlumnos1)).BeginInit();
     //
     // DbConnection
     //
     this.DbConnection.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // DbDataAdapter
     //
     this.DbDataAdapter.SelectCommand = this.oleDbSelectCommand1;
     this.DbDataAdapter.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "T_Alumnos", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("FECHA_CORTE", "FECHA_CORTE"),
             new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
             new System.Data.Common.DataColumnMapping("CARRERA", "CARRERA"),
             new System.Data.Common.DataColumnMapping("RUT", "RUT"),
             new System.Data.Common.DataColumnMapping("NOMBRE", "NOMBRE")
         })
     });
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS FECHA_CORTE, \'\' AS SEDE_TDESC, \'\' AS CARRERA, \'\' AS RUT, \'\' AS NOMBR" +
                                            "E FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.DbConnection;
     //
     // dataSetAlumnos1
     //
     this.dataSetAlumnos1.DataSetName = "DataSetAlumnos";
     this.dataSetAlumnos1.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.dataSetAlumnos1.Namespace   = "http://www.tempuri.org/DataSetAlumnos.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSetAlumnos1)).EndInit();
 }
Esempio n. 2
0
 /// <summary>
 /// M�todo necesario para admitir el Dise�ador, no se puede modificar
 /// el contenido del m�todo con el editor de c�digo.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.DbConnection = new System.Data.OleDb.OleDbConnection();
     this.DbDataAdapter = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.dataSetAlumnos1 = new Listado_Morosos.DataSetAlumnos();
     ((System.ComponentModel.ISupportInitialize)(this.dataSetAlumnos1)).BeginInit();
     //
     // DbConnection
     //
     this.DbConnection.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // DbDataAdapter
     //
     this.DbDataAdapter.SelectCommand = this.oleDbSelectCommand1;
     this.DbDataAdapter.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                             new System.Data.Common.DataTableMapping("Table", "T_Alumnos", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("FECHA_CORTE", "FECHA_CORTE"),
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("CARRERA", "CARRERA"),
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("RUT", "RUT"),
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("NOMBRE", "NOMBRE")})});
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS FECHA_CORTE, \'\' AS SEDE_TDESC, \'\' AS CARRERA, \'\' AS RUT, \'\' AS NOMBR" +
         "E FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.DbConnection;
     //
     // dataSetAlumnos1
     //
     this.dataSetAlumnos1.DataSetName = "DataSetAlumnos";
     this.dataSetAlumnos1.Locale = new System.Globalization.CultureInfo("es-CL");
     this.dataSetAlumnos1.Namespace = "http://www.tempuri.org/DataSetAlumnos.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSetAlumnos1)).EndInit();
 }