示例#1
0
 public void Clear()//METODO lIMPIAR
 {
     TxtCc.Clear();
     TxtPnombre.Clear();
     TxtSnombre.Clear();
     TxtPapellido.Clear();
     TxtSapellido.Clear();
     TxtTelefono.Clear();
     TxtCelular.Clear();
     TxtDireccion.Clear();
     TxtEmail.Clear();
     CmbSexo.SelectedItem = (null);
     DateNacimiento.ResetText();
     DateIngreso.ResetText();
     DateRetiro.ResetText();
     DateRetiro.Enabled = false;
     ChekFecha.Checked  = false;
     TxtObservaciones.Clear();
     CmbDisponibilidad.SelectedItem = (null);
     txtCargo.Clear();
     cbxContrato.Text = "";
     txtSalario.Clear();
     txtEps.Clear();
     txtCompensaciones.Clear();
     txtPensiones.Clear();
     txtARP.Clear();
     CkbActivo.Checked = true;
     TxtCc.Focus();
     BtnGuardar.Enabled   = true;
     BtnModificar.Enabled = false;
     Habilitar();
     TxtCc.Focus();
 }
示例#2
0
        private void LimpiaCajasTextoBox()
        {
            //CmbPuesto.SelectedIndex=0;
            //CmbEstatus.SelectedIndex = 0;
            TxtNomina.Clear();
            TxtId_Usuario.Clear();
            TxtNombres.Clear();
            TxtApMaterno.Clear();
            TxtApPaterno.Clear();
            TxtRFC.Clear();
            TxtCURP.Clear();
            TxtTelefono.Clear();
            TxtCelular.Clear();
            TxtEmail.Clear();

            TxtCalle.Clear();
            TxtNumInterno.Clear();
            TxtNumExterno.Clear();
            TxtEntreCalles.Clear();
            TxtColonia.Clear();
            TxtCodigoPostal.Clear();
            TxtEstado.Clear();
            TxtMunicipio.Clear();
            TxtPais.Clear();
            DtpFechaNacimiento.MaxDate = DateTime.Now.AddYears(-18);
            PtbxFotoPerfil.Image       = Properties.Resources.LgoEsferaBlancTrasp;

            CmbxPais.SelectedValue   = 0;
            CmbAreas.SelectedValue   = 0;
            CmbEstatus.SelectedValue = 0;
            CmbEmpresa.SelectedValue = 0;
        }
示例#3
0
 public void LimpiarCamposCliente()
 {
     TxtDescripcion.Clear();
     TxtMes.Clear();
     TxtAnio.Clear();
     TxtRecaudacion.Clear();
     TxtRecaudacion.Clear();
     TxtCelular.Clear();
 }
示例#4
0
 public void LimpiarCamposCliente()
 {
     TxtCedula.Clear();
     TxtNombre.Clear();
     TxtApellido.Clear();
     TxtTelefono.Clear();
     TxtTelefono.Clear();
     TxtCelular.Clear();
     TxtEmail.Clear();
 }
        //Metodo genérco de insercion de clientes. Con esto generamos un mantenedor de clientes (reutilizacion de codigo) ,y no caemos en redundancia de datos
        public bool CEDICSEM_INSERTA_CLIENTE()
        {
            bool   estado = false;
            String nombreProcedimiento = "[XIUX_CEDICSEM_INSERTA_CLIENTE]";

            SqlParameter[] parameter =
            {
                new SqlParameter("@CEDICSEM_C_CONNID",              GEN_Connid.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtNombre",           txtNombre.ToUpper()),
                new SqlParameter("@CEDICSEM_C_TxtTelefono1",        TxtTelefono1.ToUpper()),
                new SqlParameter("@CEDICSEM_C_TxtTelefono2",        TxtTelefono2.ToUpper()),
                new SqlParameter("@CEDICSEM_C_TxtCelular",          TxtCelular.ToUpper()),
                new SqlParameter("@CEDICSEM_C_TxtEmail",            TxtEmail.ToUpper()),
                new SqlParameter("@CEDICSEM_C_TxtDocumento",        TxtDocumento.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtNcontrato",        txtNcontrato.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtVigencia",         txtVigencia.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtCategorizacion",   txtCategorizacion.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtAsignado",         txtAsignado.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtTramo",            txtTramo.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtNCuota",           txtNCuota.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtEstadoCuota",      txtEstadoCuota.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtFechaEmision",     txtFechaEmision.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtFechaVencimiento", txtFechaVencimiento.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtBanco",            txtBanco.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtAporte",           txtAporte.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtAporteIGV",        txtAporteIGV.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtFpago",            txtFpago.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtdescuento",        txtdescuento.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtEmpresa",          txtEmpresa.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtcargo",            txtcargo.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtCodigoPlan",       txtCodigoPlan.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtNombrePlan",       txtNombrePlan.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtCodigoAsesor",     txtCodigoAsesor.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtNombreAsesor",     txtNombreAsesor.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtPreexistencias",   txtPreexistencias.ToUpper()),
                new SqlParameter("@CEDICSEM_C_txtRenovacion",       txtRenovacion.ToUpper())
            };
            try
            {
                estado = SqlHelper.executeProcedure(nombreProcedimiento, parameter);
                return(estado);
            }
            catch (Exception error)
            {
                // Extract some information from this exception, and then
                // throw it to the parent method.
                if (error.Source != null)
                {
                    Console.WriteLine("IOException source: {0}", error.Source);
                }
                return(estado);

                throw;
            }
        }
示例#6
0
 protected void Func_LimpiarControles()
 {
     TxtIdentificacion.Clear();
     TxtNombres.Clear();
     TxtCelular.Clear();
     TxtCorreo.Clear();
     TxtNCuenta.Clear();
     TxtSaldo.Clear();
     CbxTCuenta.SelectedIndex = 0;
     CbxEstado.SelectedIndex  = 0;
     DtgCuentas.DataSource    = null;
 }
示例#7
0
 public void Limpiar()
 {
     TxtDocumento.Clear();
     TxtNombres.Clear();
     TxtNombreContacto.Clear();
     TxtTelContacto.Clear();
     TxtApellidos.Clear();
     TxtCelular.Clear();
     TxtCorreo.Clear();
     TxtDireccion.Clear();
     TxtFijo.Clear();
     TxtTelContacto.Clear();
 }
示例#8
0
 public void Clear()//MÉTODO LIMPIAR
 {
     TxtCc.Clear();
     TxtNombre.Clear();
     TxtTelefono.Clear();
     TxtExt.Clear();
     TxtCelular.Clear();
     TxtFax.Clear();
     TxtDireccion.Clear();
     TxtEmail.Clear();
     TxtObservaciones.Clear();
     TxtContacto.Clear();
     CkbActivo.Checked = true;
     Habilitar();
     BtnModificar.Enabled = false;
     BtnGuardar.Enabled   = true;
     TxtCc.Focus();
 }