Пример #1
0
        private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
        {
            Limpiar();
            MFPersExperiencia Frm = new MFPersExperiencia();
            Element           el  = GGCPersLiq.TableControl.Table.CurrentElement;

            if (el != null)
            {
                if (el is GridRecord)
                {
                    DataRowView drv = (el as Record).GetData() as DataRowView;
                    lblItem.Text      = drv[1].ToString(); //show column 2
                    txtNombres.Text   = drv[2].ToString();
                    txtTelefono1.Text = drv[3].ToString();
                    txtTelefono2.Text = drv[4].ToString();
                    txtMail.Text      = drv[5].ToString();
                }
            }
            //bloqueo
            WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones();
            WSLic.Url  = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx";
            DSDevuelve = WSLic.DevuelveAntiguedadEmpresaLic(mdlGenerales.Conexion, txtRuc);
            DTMain     = DSDevuelve.Tables[0];
            int Horas = 0;

            foreach (DataRow row in DTMain.Rows)
            {
                Horas = int.Parse(row[0].ToString());
            }
            Bloquear(Horas, mdlGenerales.STRUsuario);
        }
Пример #2
0
        private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
        {
            Limpiar();
            Element el = GGCPersLiq.TableControl.Table.CurrentElement;

            if (el != null)
            {
                if (el is GridRecord)
                {
                    DataRowView drv = (el as Record).GetData() as DataRowView;
                    txtRuc.Text         = drv[1].ToString(); //show column 2
                    txtNRP.Text         = drv[2].ToString(); //show column 2
                    txtRazonSocial.Text = drv[3].ToString(); //show column 2
                    txtCapacidad.Text   = drv[4].ToString(); //show column 2
                    if (drv[5].ToString() != "")
                    {
                        dptFechaCreacion.Value = Convert.ToDateTime(drv[5].ToString());
                    }
                    txtDireccion.Text     = drv[10].ToString(); //show column 2
                    txtTelefono1.Text     = drv[11].ToString(); //show column 2
                    txtTelefono2.Text     = drv[12].ToString(); //show column 2
                    txtEmail.Text         = drv[13].ToString(); //show column 2
                    txtArchivo.Text       = drv[14].ToString(); //show column 2
                    txtObservaciones.Text = drv[16].ToString(); //show column 2
                    if (drv[17].ToString() == "1")
                    {
                        chkPendiente.Checked = true;
                    }
                    else
                    {
                        chkPendiente.Checked = false;
                    }
                    txtRepresentante.Text = drv[18].ToString();
                }
            }
            //bloqueo
            WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones();
            WSLic.Url  = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx";
            DSDevuelve = WSLic.DevuelveAntiguedadEmpresaLic(mdlGenerales.Conexion, txtRuc.Text.ToString());
            DTMain     = DSDevuelve.Tables[0];
            int Horas = 0;

            foreach (DataRow row in DTMain.Rows)
            {
                Horas = int.Parse(row[0].ToString());
            }
            Bloquear(Horas, mdlGenerales.STRUsuario);
        }