Esempio n. 1
0
        private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            try
            {
                Int32 docEntry = Convert.ToInt32(dgvDatos.Rows[e.Cell.Row.Index].Cells[(int)Columnas.Docnum].Value);

                SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                formulario.MdiParent     = this.MdiParent;
                formulario.txtFolio.Text = docEntry.ToString();
                var kea = new KeyPressEventArgs(Convert.ToChar(13));
                formulario.txtFolio_KeyPress(sender, kea);
                formulario.Show();
            }
            catch (Exception)
            {
            }
        }
Esempio n. 2
0
        private void dgvStock_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.Administrador
                    | ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.GerenteCompras
                    | ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.Zulma)
                {
                    Int32 docEntry = Convert.ToInt32(dgvStock.Rows[e.RowIndex].Cells[0].Value);

                    SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                    formulario.typeDocument  = "OC";
                    formulario.MdiParent     = this.MdiParent;
                    formulario.txtFolio.Text = docEntry.ToString();
                    var kea = new KeyPressEventArgs(Convert.ToChar(13));
                    formulario.txtFolio_KeyPress(sender, kea);
                    formulario.Show();
                }
            }
            catch (Exception)
            {
            }
        }