Exemple #1
0
        private void CargarEncabezado()
        {
            CLS_InventarioCiego sel = new CLS_InventarioCiego();

            sel.InventarioCiegoFolio = Convert.ToInt32(txtFolio.Text);
            sel.MtdSeleccionarFolio();
            if (sel.Exito)
            {
                if (sel.Datos.Rows.Count > 0)
                {
                    dtFecha.DateTime = Convert.ToDateTime(sel.Datos.Rows[0]["InventarioCiegoFecha"].ToString());
                    lblEstatus.Text  = sel.Datos.Rows[0]["InventarioCiegoEstatus"].ToString();
                }
            }
        }
Exemple #2
0
        private void CargarEncabezado()
        {
            CLS_InventarioCiego sel = new CLS_InventarioCiego();

            sel.InventarioCiegoFolio = Convert.ToInt32(txtFolio.Text);
            sel.MtdSeleccionarFolio();
            if (sel.Exito)
            {
                if (sel.Datos.Rows.Count > 0)
                {
                    dtFecha.DateTime = Convert.ToDateTime(sel.Datos.Rows[0]["InventarioCiegoFecha"].ToString());
                    lblEstatus.Text  = sel.Datos.Rows[0]["InventarioCiegoEstatus"].ToString();
                    if (lblEstatus.Text == "Finalizado")
                    {
                        gridColumn7.OptionsColumn.AllowEdit = false;
                    }
                    else
                    {
                        gridColumn7.OptionsColumn.AllowEdit = true;
                    }
                }
            }
        }