Example #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.adpDetalle          = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.conexion            = new System.Data.OleDb.OleDbConnection();
     this.ds                  = new imp_traspaso_cuotas.DataSet1();
     this.adpEncabezado       = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
     ((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit();
     //
     // adpDetalle
     //
     this.adpDetalle.SelectCommand = this.oleDbSelectCommand1;
     this.adpDetalle.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "DETALLE", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("TING_TDESC", "TING_TDESC"),
             new System.Data.Common.DataColumnMapping("DING_NDOCTO", "DING_NDOCTO"),
             new System.Data.Common.DataColumnMapping("DING_FDOCTO", "DING_FDOCTO"),
             new System.Data.Common.DataColumnMapping("DING_MDOCTO", "DING_MDOCTO"),
             new System.Data.Common.DataColumnMapping("INGR_NCORR", "INGR_NCORR"),
             new System.Data.Common.DataColumnMapping("TING_CCOD", "TING_CCOD"),
             new System.Data.Common.DataColumnMapping("EXPR1", "EXPR1")
         })
     });
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS TING_TDESC, \'\' AS DING_NDOCTO, \'\' AS DING_FDOCTO, \'\' AS DING_MDOCTO," +
                                            " \'\' AS INGR_NCORR, \'\' AS TING_CCOD, \'\' AS EXPR1, \'\' AS COMP_NDOCTO, \'\' AS DCOM_N" +
                                            "COMPROMISO, \'\' AS INST_CCOD, \'\' AS TCOM_CCOD";
     this.oleDbSelectCommand1.Connection = this.conexion;
     //
     // conexion
     //
     this.conexion.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // ds
     //
     this.ds.DataSetName = "DataSet1";
     this.ds.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.ds.Namespace   = "http://www.tempuri.org/DataSet1.xsd";
     //
     // adpEncabezado
     //
     this.adpEncabezado.SelectCommand = this.oleDbSelectCommand2;
     this.adpEncabezado.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "ENCABEZADO", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("CCAR_NCORR", "CCAR_NCORR"),
             new System.Data.Common.DataColumnMapping("CARRERA_ORIGEN", "CARRERA_ORIGEN"),
             new System.Data.Common.DataColumnMapping("CARRERA_DESTINO", "CARRERA_DESTINO"),
             new System.Data.Common.DataColumnMapping("RUT", "RUT"),
             new System.Data.Common.DataColumnMapping("NOMBRE", "NOMBRE"),
             new System.Data.Common.DataColumnMapping("CCAR_FCAMBIO", "CCAR_FCAMBIO"),
             new System.Data.Common.DataColumnMapping("NOMBRE_APODERADO", "NOMBRE_APODERADO"),
             new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
             new System.Data.Common.DataColumnMapping("STRFECHA", "STRFECHA"),
             new System.Data.Common.DataColumnMapping("SEDE_CCOD", "SEDE_CCOD")
         })
     });
     //
     // oleDbSelectCommand2
     //
     this.oleDbSelectCommand2.CommandText = "SELECT \'\' AS CCAR_NCORR, \'\' AS CARRERA_ORIGEN, \'\' AS CARRERA_DESTINO, \'\' AS RUT, " +
                                            "\'\' AS NOMBRE, \'\' AS CCAR_FCAMBIO, \'\' AS NOMBRE_APODERADO, \'\' AS SEDE_TDESC, \'\' A" +
                                            "S STRFECHA, \'\' AS SEDE_CCOD";
     this.oleDbSelectCommand2.Connection = this.conexion;
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.ds)).EndInit();
 }
Example #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.adpDetalle = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.conexion = new System.Data.OleDb.OleDbConnection();
     this.ds = new imp_traspaso_cuotas.DataSet1();
     this.adpEncabezado = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
     ((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit();
     //
     // adpDetalle
     //
     this.adpDetalle.SelectCommand = this.oleDbSelectCommand1;
     this.adpDetalle.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                          new System.Data.Common.DataTableMapping("Table", "DETALLE", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("TING_TDESC", "TING_TDESC"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("DING_NDOCTO", "DING_NDOCTO"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("DING_FDOCTO", "DING_FDOCTO"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("DING_MDOCTO", "DING_MDOCTO"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("INGR_NCORR", "INGR_NCORR"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("TING_CCOD", "TING_CCOD"),
                                                                                                                                                                                                     new System.Data.Common.DataColumnMapping("EXPR1", "EXPR1")})});
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS TING_TDESC, \'\' AS DING_NDOCTO, \'\' AS DING_FDOCTO, \'\' AS DING_MDOCTO," +
         " \'\' AS INGR_NCORR, \'\' AS TING_CCOD, \'\' AS EXPR1, \'\' AS COMP_NDOCTO, \'\' AS DCOM_N" +
         "COMPROMISO, \'\' AS INST_CCOD, \'\' AS TCOM_CCOD";
     this.oleDbSelectCommand1.Connection = this.conexion;
     //
     // conexion
     //
     this.conexion.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // ds
     //
     this.ds.DataSetName = "DataSet1";
     this.ds.Locale = new System.Globalization.CultureInfo("es-CL");
     this.ds.Namespace = "http://www.tempuri.org/DataSet1.xsd";
     //
     // adpEncabezado
     //
     this.adpEncabezado.SelectCommand = this.oleDbSelectCommand2;
     this.adpEncabezado.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                             new System.Data.Common.DataTableMapping("Table", "ENCABEZADO", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("CCAR_NCORR", "CCAR_NCORR"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("CARRERA_ORIGEN", "CARRERA_ORIGEN"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("CARRERA_DESTINO", "CARRERA_DESTINO"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("RUT", "RUT"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("NOMBRE", "NOMBRE"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("CCAR_FCAMBIO", "CCAR_FCAMBIO"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("NOMBRE_APODERADO", "NOMBRE_APODERADO"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("STRFECHA", "STRFECHA"),
                                                                                                                                                                                                           new System.Data.Common.DataColumnMapping("SEDE_CCOD", "SEDE_CCOD")})});
     //
     // oleDbSelectCommand2
     //
     this.oleDbSelectCommand2.CommandText = "SELECT \'\' AS CCAR_NCORR, \'\' AS CARRERA_ORIGEN, \'\' AS CARRERA_DESTINO, \'\' AS RUT, " +
         "\'\' AS NOMBRE, \'\' AS CCAR_FCAMBIO, \'\' AS NOMBRE_APODERADO, \'\' AS SEDE_TDESC, \'\' A" +
         "S STRFECHA, \'\' AS SEDE_CCOD";
     this.oleDbSelectCommand2.Connection = this.conexion;
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.ds)).EndInit();
 }