Пример #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.DataAdapter         = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.dataSet11           = new Portada_libro.DataSet1();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     //
     // DbConnection
     //
     this.DbConnection.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // DataAdapter
     //
     this.DataAdapter.SelectCommand = this.oleDbSelectCommand1;
     this.DataAdapter.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "T_Datos", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("DUAS_TDESC", "DUAS_TDESC"),
             new System.Data.Common.DataColumnMapping("PERI_TDESC", "PERI_TDESC"),
             new System.Data.Common.DataColumnMapping("PROFESOR", "PROFESOR"),
             new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
             new System.Data.Common.DataColumnMapping("ORN_TDESC", "ORN_TDESC"),
             new System.Data.Common.DataColumnMapping("CARR_TDESC", "CARR_TDESC"),
             new System.Data.Common.DataColumnMapping("ASIG_CCOD", "ASIG_CCOD"),
             new System.Data.Common.DataColumnMapping("ASIG_TDESC", "ASIG_TDESC"),
             new System.Data.Common.DataColumnMapping("ASIG_NHORAS", "ASIG_NHORAS"),
             new System.Data.Common.DataColumnMapping("SECC_TDESC", "SECC_TDESC"),
             new System.Data.Common.DataColumnMapping("AYUDANTE", "AYUDANTE")
         })
     });
     this.DataAdapter.RowUpdated += new System.Data.OleDb.OleDbRowUpdatedEventHandler(this.oleDbDataAdapter1_RowUpdated);
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS DUAS_TDESC, \'\' AS PERI_TDESC, \'\' AS PROFESOR, \'\' AS SEDE_TDESC, \'\' A" +
                                            "S ORN_TDESC, \'\' AS CARR_TDESC, \'\' AS ASIG_CCOD, \'\' AS ASIG_TDESC, \'\' AS ASIG_NHO" +
                                            "RAS, \'\' AS SECC_TDESC, \'\' AS AYUDANTE FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.DbConnection;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName = "DataSet1";
     this.dataSet11.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.dataSet11.Namespace   = "http://www.tempuri.org/DataSet1.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
 }
Пример #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.DataAdapter = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.dataSet11 = new Portada_libro.DataSet1();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     //
     // DbConnection
     //
     this.DbConnection.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // DataAdapter
     //
     this.DataAdapter.SelectCommand = this.oleDbSelectCommand1;
     this.DataAdapter.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                           new System.Data.Common.DataTableMapping("Table", "T_Datos", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("DUAS_TDESC", "DUAS_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("PERI_TDESC", "PERI_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("PROFESOR", "PROFESOR"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("ORN_TDESC", "ORN_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("CARR_TDESC", "CARR_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("ASIG_CCOD", "ASIG_CCOD"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("ASIG_TDESC", "ASIG_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("ASIG_NHORAS", "ASIG_NHORAS"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("SECC_TDESC", "SECC_TDESC"),
                                                                                                                                                                                                      new System.Data.Common.DataColumnMapping("AYUDANTE", "AYUDANTE")})});
     this.DataAdapter.RowUpdated += new System.Data.OleDb.OleDbRowUpdatedEventHandler(this.oleDbDataAdapter1_RowUpdated);
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS DUAS_TDESC, \'\' AS PERI_TDESC, \'\' AS PROFESOR, \'\' AS SEDE_TDESC, \'\' A" +
         "S ORN_TDESC, \'\' AS CARR_TDESC, \'\' AS ASIG_CCOD, \'\' AS ASIG_TDESC, \'\' AS ASIG_NHO" +
         "RAS, \'\' AS SECC_TDESC, \'\' AS AYUDANTE FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.DbConnection;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName = "DataSet1";
     this.dataSet11.Locale = new System.Globalization.CultureInfo("es-CL");
     this.dataSet11.Namespace = "http://www.tempuri.org/DataSet1.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
 }