This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Autor: Joel Fernandez | |
| Ejercicio: Implementacion de una Pila usando Clases | |
| IDE: Codeblocks | |
| Web: http://codebotic.blogspot.com | |
| */ | |
| #include<iostream> | |
| #include<cstdlib> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1.- configurar variables locales | |
| $ git config --global user.name "tu_usuario" | |
| $ git config --global user.email tu@email.com | |
| /* | |
| Generar clave ssh : | |
| ssh-keygen | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void txtNumero_KeyPress(object sender, KeyPressEventArgs e) | |
| { | |
| if (e.KeyChar != (char)44 && e.KeyChar != (char)46 && !Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8 && e.KeyChar != (char)47) | |
| { | |
| e.Handled = true; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void LlenarComboMotivos() | |
| { | |
| try | |
| { | |
| //this.cbMotivo.Items.Clear(); | |
| this.cbMotivo.DataSource = null; | |
| OracleDataAdapter daEmp = new OracleDataAdapter("select IDMOT, MOTNUM||' : '||MOT AS MOT, MOTNUM, FECREG, USENAM, HOSTNAME from SIA_MOTIVOS order by MOTNUM asc", cls_DatosLolcli.cadenaconexion); | |
| DataSet dsEmp = new DataSet("SIA_MOTIVOS"); | |
| daEmp.Fill(dsEmp, "SIA_MOTIVOS"); | |
| DataTable dtEmp = dsEmp.Tables["SIA_MOTIVOS"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| { | |
| ReportDocument objReporte = new ReportDocument(); | |
| objReporte.Load(Application.StartupPath.ToString() + "\\Crystal Report\\rptRecalculo.rpt"); | |
| OracleConnection _conexion = new OracleConnection(cls_DatosOracle.cadenaconexion); | |
| OracleDataAdapter _comando = new OracleDataAdapter(string.Format(@"SELECT PRFNUM AS PREFACTURA, | |
| USUARIO, | |
| NOMBRECOMPLETO, | |
| REGRECALCULO, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void LlenarComboConvenios() | |
| { | |
| //Llenar combo | |
| //this.cbxConvenios.Items.Clear(); | |
| this.cbxConvenios.DataSource = null; | |
| cls_ConveniosDAO oConveniosDAO = new cls_ConveniosDAO(); | |
| List<cls_Convenios> ListaConvenios = new List<cls_Convenios>(); | |
| ListaConvenios = oConveniosDAO.ListarTodos(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static UIMedicos_Convenios frmConvenios; | |
| public static UIMedicos_Convenios CreateInstante(System.Windows.Forms.Form FormParent) | |
| { | |
| if (frmConvenios == null || frmConvenios.IsDisposed) | |
| { | |
| frmConvenios = new UIMedicos_Convenios(); | |
| } | |
| frmConvenios.BringToFront(); | |
| frmConvenios.MdiParent = FormParent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public List<cls_Convenios_Detalle> Buscar(int idConvenio) | |
| { | |
| SqlConnection _conexion = new SqlConnection(cls_Datos.cadenaconexion); | |
| SqlCommand _comando = new SqlCommand("PA_Convenios_Detalle", _conexion) { CommandType = CommandType.StoredProcedure }; | |
| _comando.Parameters.AddWithValue("@idConvenio", SqlDbType.Int).Value = idConvenio; | |
| _comando.Parameters.AddWithValue("@Tipo", SqlDbType.Int).Value = 1; | |
| List<cls_Convenios_Detalle> ListaConvenioDetalle = new List<cls_Convenios_Detalle>(); | |
| try | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public Boolean Insertar(cls_Convenios_Detalle oConveniosDetalle) | |
| { | |
| SqlConnection _conexion = new SqlConnection(cls_Datos.cadenaconexion); | |
| SqlCommand _comando = new SqlCommand("PA_Convenios_Detalle", _conexion) { CommandType = CommandType.StoredProcedure }; | |
| _comando.Parameters.AddWithValue("@IdConvenio", SqlDbType.VarChar).Value = oConveniosDetalle.IdConvenio; | |
| _comando.Parameters.AddWithValue("@IdAseguradora", SqlDbType.VarChar).Value = oConveniosDetalle.IdAseguradora; | |
| _comando.Parameters.AddWithValue("@Fecreg", SqlDbType.DateTime).Value = oConveniosDetalle.Fecreg; | |
| _comando.Parameters.AddWithValue("@Fecmov", SqlDbType.DateTime).Value = oConveniosDetalle.Fecmov; | |
| _comando.Parameters.AddWithValue("@Hostname", SqlDbType.VarChar).Value = oConveniosDetalle.Hostname; | |
| _comando.Parameters.AddWithValue("@Tipo", SqlDbType.Int).Value = 2; |