Example #1
0
        private void RetornarPersonaSeleccionada()
        {
            if (gvPersona.RowCount == 0)
            {
                XtraMessageBox.Show("No ha seleccionado un registro.", "AtenciĆ³n", MessageBoxButtons.OK,
                                    MessageBoxIcon.Exclamation);
                return;
            }

            PersonaSel   = (VwPersona)gvPersona.GetFocusedRow();
            DialogResult = DialogResult.OK;
        }
Example #2
0
        private void btnNuevoRegistro_Click(object sender, EventArgs e)
        {
            BaseMntFrm personaMntFrm = new BaseMntFrm(0, TipoMantenimiento.Nuevo, null, null);

            personaMntFrm.ShowDialog();

            if (personaMntFrm.DialogResult != DialogResult.OK || personaMntFrm.IdEntidadMnt <= 0)
            {
                return;
            }

            PersonaSel   = Service.GetVwPersona(personaMntFrm.IdEntidadMnt);
            DialogResult = DialogResult.OK;
        }
Example #3
0
        private void iIdpersona_EditValueChanged(object sender, EventArgs e)
        {
            var idPersona = iIdpersona.EditValue;

            if (idPersona != null)
            {
                VwPersona vWpersonaSel = Service.GetVwPersona(((int)idPersona));
                if (vWpersonaSel != null)
                {
                    //Cargar datos a controles
                    beSocioNegocio.Text = vWpersonaSel.Razonsocial.Trim();
                }
            }
        }
Example #4
0
        private void iIdpersonaconyugue_EditValueChanged(object sender, EventArgs e)
        {
            var idpersonaconyugue = iIdpersonaconyugue.EditValue;

            if (idpersonaconyugue != null)
            {
                VwPersona vwPersona = Service.GetVwPersona((int)idpersonaconyugue);
                if (vwPersona != null)
                {
                    bePersonaConyugue.Text    = vwPersona.Razonsocial;
                    rNroDocConyugue.EditValue = string.Format("{0} {1}", vwPersona.Abreviaturadocentidad, vwPersona.Nrodocentidad);
                    rSexoConyugue.EditValue   = vwPersona.Sexo;
                }
            }
        }
Example #5
0
        private void iIdpersona_EditValueChanged(object sender, EventArgs e)
        {
            var idPersona = iIdpersona.EditValue;

            if (idPersona == null || (int)idPersona <= 0)
            {
                return;
            }

            VwPersona personaSel = Service.GetVwPersona(((int)idPersona));

            if (personaSel != null)
            {
                //Cargar datos a controles
                bePersona.Text             = personaSel.Razonsocial.Trim();
                iIdpersona.EditValue       = personaSel.Idpersona;
                rNroDocPersona.EditValue   = string.Format("{0} {1}", personaSel.Abreviaturadocentidad2, personaSel.Nrodocentidad2);
                rDireccionfiscal.EditValue = string.Format("{0} {1}", personaSel.Direccionfiscal, personaSel.Nombreubigeo);
            }
        }
Example #6
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     PersonaSel   = null;
     DialogResult = DialogResult.Cancel;
 }