コード例 #1
0
        protected void Cargar_grilla()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            dt.Clear();
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK1 + ".P_CARGAR_RESULTADO_PARAMETROS");
            CnnFalp.ParametroBD("PIN_TIPO", cod_parametros, DbType.Int64, ParameterDirection.Input);
            dt.Load(CnnFalp.ExecuteReader());

            if (dt.Rows.Count > 0)
            {
                /*  txtmsg.Visible = false;
                 * txtmsg.Text = "";*/
                grilla_parametros.AutoGenerateColumns = false;
                grilla_parametros.DataSource          = dt;
                agregarimagen();
            }
            else
            {
                //no trajo datos
            }

            CnnFalp.Cerrar();
        }
コード例 #2
0
        protected void Cargar_grilla_turnos()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            dt_turnos.Clear();
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_LISTADOS_TURNOS");

            dt_turnos.Load(CnnFalp.ExecuteReader());

            if (dt_turnos.Rows.Count > 0)
            {
                grilla_turnos.AutoGenerateColumns = false;
                grilla_turnos.DataSource          = dt_turnos;
                ocultar_grilla_turnos();
                agrupar_celdas_menu();
                agregarimagen();
            }
            else
            {
                //no trajo datos
                // txtmsg.Text = "";
            }

            CnnFalp.Cerrar();
            //ocultar_grilla_menu();
        }
コード例 #3
0
        protected void Cargar_Folios(string prestaciones, int tipo)
        {
            dt_folio.Clear();
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_FOLIOS");
            CnnFalp.ParametroBD("PIN_CPLAN_ID", v_id_plan, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_CODIGO", prestaciones, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_TIPOPREVISION", v_cod_prevision, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_PREVISION", v_cod_institucion, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_PLAN_PREVISION", v_cod_plan_prevision, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_SIGMA", 0, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_PROMEDIO", 0, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_EXCLUIR", 0, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_LIMITE", tipo, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_CALCULO", 0, DbType.Int64, ParameterDirection.Input);


            dt_folio.Load(CnnFalp.ExecuteReader());
            if (Validar_dt(dt_folio))
            {
                dt_folio.Clear();
            }
            int cont = dt_folio.Rows.Count;

            CnnFalp.Cerrar();
        }
コード例 #4
0
        void Cargar_grilla_menu()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            dt_pedido_paciente.Clear();
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".LISTADO_IMPRIMIR_VALE");
            CnnFalp.ParametroBD("PIN_COD_TIPO_MENU", cod_tipo_comida, DbType.Int32, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_NOMBRE", txtnombre.Text, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_ESTADO", cod_estado, DbType.Int32, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_SERVICIOS", cod_servicio, DbType.Int32, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_FECHA", txtfecha.Text, DbType.String, ParameterDirection.Input);


            dt_pedido_paciente.Load(CnnFalp.ExecuteReader());

            if (dt_pedido_paciente.Rows.Count > 0)
            {
                grilla_pedidos.AutoGenerateColumns = false;
                grilla_pedidos.DataSource          = dt_pedido_paciente;
                ocultar_grilla_pedidos();
            }
            else
            {
            }

            CnnFalp.Cerrar();
            //   agrupar_celdas_menu();
            //ocultar_grilla_menu();
        }
コード例 #5
0
        protected void Cargar_grilla()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            dt_alimentos.Clear();
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_ALIMENTOS_AG");
            CnnFalp.ParametroBD("PIN_TIPO_COMIDA", cod_tipo_comida, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_ESTADO", cod_estado, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_FECHA", txtfecha.Text, DbType.String, ParameterDirection.Input);
            dt_alimentos.Load(CnnFalp.ExecuteReader());

            if (dt_alimentos.Rows.Count > 0)
            {
                grilla_alimentos.AutoGenerateColumns = false;
                grilla_alimentos.DataSource          = dt_alimentos;
            }
            else
            {
                //no trajo datos
                // txtmsg.Text = "";
            }

            CnnFalp.Cerrar();
            //ocultar_grilla_menu();
        }
コード例 #6
0
 public void Cargar_grilla()
 {
     dt_historial.Clear();
     if (CnnFalp.Estado == ConnectionState.Closed)
     {
         CnnFalp.Abrir();
     }
     CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_PRESUPUESTO_HISTORIAL");
     CnnFalp.ParametroBD("PIN_CORRETATIVO", 0, DbType.Int64, ParameterDirection.Input);
     CnnFalp.ParametroBD("PIN_PRES_CPLAN_ID", v_id_plan, DbType.Int64, ParameterDirection.Input);
     dt_historial.Load(CnnFalp.ExecuteReader());
     grilla_historial.DataSource = dt_historial;
 }
コード例 #7
0
 public void Cargar_grilla()
 {
     dt_cama.Clear();
     if (CnnFalp.Estado == ConnectionState.Closed)
     {
         CnnFalp.Abrir();
     }
     CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_DIAS_CAMA");
     dt_cama.Load(CnnFalp.ExecuteReader());
     grilla_prestaciones_adicionales.DataSource = dt_cama;
     Ordenar_columna();
     dt_cama.Clear();
 }
コード例 #8
0
        private void Frm_Visor_Etapas_Load(object sender, EventArgs e)
        {
            if (!(CnnFalp != null))
            {
                ExeConfigurationFileMap FileMap = new ExeConfigurationFileMap();
                FileMap.ExeConfigFilename = Application.StartupPath + @"\..\WF.config";
                Config = ConfigurationManager.OpenMappedExeConfiguration(FileMap, ConfigurationUserLevel.None);

                CnnFalp = new ConectarFalp(Config.AppSettings.Settings["dbServer"].Value, //ConfigurationManager.AppSettings["dbServer"],
                                           Config.AppSettings.Settings["dbUser"].Value,   //ConfigurationManager.AppSettings["dbUser"],
                                           Config.AppSettings.Settings["dbPass"].Value,   //ConfigurationManager.AppSettings["dbPass"],
                                           ConectarFalp.TipoBase.Oracle);

                if (CnnFalp.Estado == ConnectionState.Closed)
                {
                    CnnFalp.Abrir();                                           // abre la conexion
                }
                Conexion[0] = Config.AppSettings.Settings["dbServer"].Value;
                Conexion[1] = Config.AppSettings.Settings["dbUser"].Value;
                Conexion[2] = Config.AppSettings.Settings["dbPass"].Value;

                this.Text = this.Text + " [Versión: " + Application.ProductVersion + "] [Conectado: " + Conexion[0] + "]";
            }
            Db_Usuario = "SICI";
            Cargar_gilla();
        }
コード例 #9
0
        void conectar()
        {
            if (!(CnnFalp != null))
            {
                ExeConfigurationFileMap FileMap = new ExeConfigurationFileMap();
                FileMap.ExeConfigFilename = Application.StartupPath + @"\..\WF.config";
                Config = ConfigurationManager.OpenMappedExeConfiguration(FileMap, ConfigurationUserLevel.None);

                CnnFalp = new ConectarFalp(Config.AppSettings.Settings["dbServer"].Value, //ConfigurationManager.AppSettings["dbServer"],
                                           Config.AppSettings.Settings["dbUser"].Value,   //ConfigurationManager.AppSettings["dbUser"],
                                           Config.AppSettings.Settings["dbPass"].Value,   //ConfigurationManager.AppSettings["dbPass"],
                                           ConectarFalp.TipoBase.Oracle);

                if (CnnFalp.Estado == ConnectionState.Closed)
                {
                    CnnFalp.Abrir();                                           // abre la conexion
                }
                Conexion[0] = Config.AppSettings.Settings["dbServer"].Value;
                Conexion[1] = Config.AppSettings.Settings["dbUser"].Value;
                Conexion[2] = Config.AppSettings.Settings["dbPass"].Value;
            }



            // this.Text = this.Text + " [Versión: " + Application.ProductVersion + "] [Conectado: " + Conexion[0] + "]";
            //User = ValidaMenu.LeeUsuarioMenu();
            User            = "******";
            LblUsuario.Text = "Usuario: " + User;
            //LblUsuario.Text = "Usuario: " + User;
        }
コード例 #10
0
ファイル: Form1.cs プロジェクト: proyectclinicos2018/GES_00M
        private void CargaPac()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }

            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + "P_EXTRAER_DAT_PAC");
            CnnFalp.ParametroBD("PIN_NUM_CASO", NCaso, DbType.Int64, ParameterDirection.Input);
            Tbl.Load(CnnFalp.ExecuteReader());

            CnnFalp.Cerrar();


            foreach (DataRow fila in Tbl.Rows)
            {
                v_correlativo       = Convert.ToInt64(fila["CORRELATIVO"].ToString());
                Txt_Ficha.Text      = fila["FICHA"].ToString();
                Txt_Tipo_Doc.Text   = fila["TIPO_DOC"].ToString();
                Txt_N_Doc.Text      = fila["NUMERO_DOC"].ToString();
                Txt_Nombre.Text     = fila["NOMBRE"].ToString();
                Txt_Paterno.Text    = fila["PATERNO"].ToString();
                Txt_Materno.Text    = fila["MATERNO"].ToString();
                Txt_Sexo.Text       = fila["SEXO"].ToString();
                Txt_FN.Text         = fila["FECHA_NAC"].ToString();;
                Txt_Edad.Text       = fila["EDAD"].ToString();
                Txt_ECivil.Text     = fila["ECIVIL"].ToString();
                txtinstitucion.Text = fila["NOM_INSTITUCION"].ToString();
                txtprevision.Text   = fila["NOM_PREVISION"].ToString();
                txtplan.Text        = fila["NOM_PLAN"].ToString();
            }
        }
コード例 #11
0
        public void Cargar_grilla_HM()
        {
            string cod = "";

            dt_hm.Clear();
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_DET_HM");
            CnnFalp.ParametroBD("PIN_CODIGO", v_cod_fonasa, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_TIPOPREVISION", v_cod_prevision, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_INSTITUCION", v_cod_institucion, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_PLANPREVISION", v_cod_plan_prevision, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_TIPOCALCULO", 1, DbType.String, ParameterDirection.Input);
            dt_hm.Load(CnnFalp.ExecuteReader());
            grilla_hm.DataSource = dt_hm;

            foreach (DataRow miRow1 in dt_hm.Rows)
            {
                cod = miRow1["COD_FONASA"].ToString().Trim();
            }
            if (cod == "0" || cod == "")
            {
                dt_hm.Clear();
            }

            if (dt_hm.Rows.Count == 0)
            {
                int cont = 1;
                foreach (DataRow miRow1 in dt_prestaciones.Rows)
                {
                    if (cont == 1)
                    {
                        txtcod_fonasa.Text = miRow1["COD_FONASA"].ToString();
                        buscar_factor();
                        txtcod_fonasa.Enabled = false;
                    }
                }
            }
        }
コード例 #12
0
        public void Cargar_grilla_IM()
        {
            dt_medyins.Clear();
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            //    CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_DET_IM");
            //   CnnFalp.ParametroBD("PIN_CPLAN_ID", v_id_plan, DbType.Int64, ParameterDirection.Input);
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_FAR_INS_DROG");
            CnnFalp.ParametroBD("PIN_FOLIOS", v_folios, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_COD_CONCEPTO", v_cod_concepto, DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_DESCRIPCION", txtdescripcion.Text, DbType.String, ParameterDirection.Input);
            dt_medyins.Load(CnnFalp.ExecuteReader());
            grilla_prestaciones.DataSource = dt_medyins;

            if (txtdescripcion.Text == "")
            {
                txttotal.Text = Total_ins().ToString("#,##0");
            }
        }
コード例 #13
0
 private void Cargar_gilla()
 {
     dt.Clear();
     if (CnnFalp.Estado == ConnectionState.Closed)
     {
         CnnFalp.Abrir();
     }
     CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + "P_CARGA_ETAPAS_PAC");
     CnnFalp.ParametroBD("PIN_NUM_CASO", caso, DbType.Int64, ParameterDirection.Input);
     dt.Load(CnnFalp.ExecuteReader());
     CnnFalp.Cerrar();
 }
コード例 #14
0
        void Cargar_grilla_fechas()
        {
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            dt_fechas.Clear();
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK1 + ".P_CARGAR_CONFIG_FECHAS");

            dt_fechas.Load(CnnFalp.ExecuteReader());

            if (dt_fechas.Rows.Count > 0)
            {
                grilla_fechas.AutoGenerateColumns = false;
                grilla_fechas.DataSource          = dt_fechas;
                ocultar_grilla();
                agregarimagen();
            }

            CnnFalp.Cerrar();
            //ocultar_grilla_menu();
        }
コード例 #15
0
        private void Frm_Etapas_Load(object sender, EventArgs e)
        {
            if (!(CnnFalp != null))
            {
                ExeConfigurationFileMap FileMap = new ExeConfigurationFileMap();
                FileMap.ExeConfigFilename = Application.StartupPath + @"\..\WF.config";
                Config = ConfigurationManager.OpenMappedExeConfiguration(FileMap, ConfigurationUserLevel.None);

                CnnFalp = new ConectarFalp(Config.AppSettings.Settings["dbServer"].Value, //ConfigurationManager.AppSettings["dbServer"],
                                           Config.AppSettings.Settings["dbUser"].Value,   //ConfigurationManager.AppSettings["dbUser"],
                                           Config.AppSettings.Settings["dbPass"].Value,   //ConfigurationManager.AppSettings["dbPass"],
                                           ConectarFalp.TipoBase.Oracle);

                if (CnnFalp.Estado == ConnectionState.Closed)
                {
                    CnnFalp.Abrir();                                           // abre la conexion
                }
                Conexion[0] = Config.AppSettings.Settings["dbServer"].Value;
                Conexion[1] = Config.AppSettings.Settings["dbUser"].Value;
                Conexion[2] = Config.AppSettings.Settings["dbPass"].Value;

                this.Text = this.Text + " [Versión: " + Application.ProductVersion + "] [Conectado: " + Conexion[0] + "]";
            }
            Db_Usuario = "SICI";

            txtreclamo.Text     = reclamo.ToString();
            txtcaso.Text        = caso.ToString();
            txtpaciente.Text    = paciente;
            txtreclamo.Enabled  = false;
            txtcaso.Enabled     = false;
            txtpaciente.Enabled = false;

            Cargar_gilla();
            Validar_estados();
            int etapas_activas = Validar_Estado_sub_etapa();
            int v_etapas       = dt.Rows.Count;

            v_ac.Text = etapas_activas.ToString();
            v_c.Text  = v_etapas.ToString();
        }
コード例 #16
0
        protected void btn_confirmar_pedido(object sender, EventArgs e)
        {
            ConectarFalp conn = new  ConectarFalp(BD, User, Pass, ConectarFalp.TipoBase.Oracle);

            if (conn.Estado == ConnectionState.Closed)
            {
                conn.Abrir();
            }

            try
            {
                conn.IniciarTransaccion();

                guardar_detalle_tipo_comida();
                guardar_detalle_distribucion();
                guardar_detalle_alimentos();

                conn.ConfirmarTransaccion();
                conn.Cerrar();

                if (Convert.ToInt32(cod_alimento) > 0)
                {
                    string res1 = "Estimado Usuario, El pedido se registrado correctamente";
                    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup4('" + res1 + "');", true);
                }
                else
                {
                    string res1 = "Estimado Usuario, error al realizar pedido";
                    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup4('" + res1 + "');", true);
                }
            }
            catch (Exception ex)
            {
                string res1 = ex.ToString();
                ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup4('" + res1 + "');", true);
                conn.ReversarTransaccion();
            }
        }
コード例 #17
0
ファイル: Form1.cs プロジェクト: proyectclinicos2018/GES_00M
        private void Ges002M_Load(object sender, EventArgs e)
        {
            if (!(CnnFalp != null))
            {
                ExeConfigurationFileMap FileMap = new ExeConfigurationFileMap();
                FileMap.ExeConfigFilename = Application.StartupPath + @"\..\WF.config";
                Config = ConfigurationManager.OpenMappedExeConfiguration(FileMap, ConfigurationUserLevel.None);

                CnnFalp = new ConectarFalp(Config.AppSettings.Settings["dbServer"].Value, //ConfigurationManager.AppSettings["dbServer"],
                                           Config.AppSettings.Settings["dbUser"].Value,   //ConfigurationManager.AppSettings["dbUser"],
                                           Config.AppSettings.Settings["dbPass"].Value,   //ConfigurationManager.AppSettings["dbPass"],
                                           ConectarFalp.TipoBase.Oracle);

                if (CnnFalp.Estado == ConnectionState.Closed)
                {
                    CnnFalp.Abrir();                                           // abre la conexion
                }
                Conexion[0] = Config.AppSettings.Settings["dbServer"].Value;
                Conexion[1] = Config.AppSettings.Settings["dbUser"].Value;
                Conexion[2] = Config.AppSettings.Settings["dbPass"].Value;

                this.Text = this.Text + " [Versión: " + Application.ProductVersion + "] [Conectado: " + Conexion[0] + "]";
            }
            Db_Usuario      = "SICI";
            txtcaso.Text    = NCaso.ToString();
            txtreclamo.Text = Nreclamo.ToString();
            timer1.Start();

            if (estado == 4)
            {
                Lbl_Estado.Text = "CERRADO";
            }

            CargaPac();
            Cargar_historial_num_caso();
        }
コード例 #18
0
        /* private void Cargar_Estadistica_Ejecutiva()
         * {
         *   dt_ejecutiva.Clear();
         *   if (CnnFalp.Estado == ConnectionState.Closed) CnnFalp.Abrir();
         *   CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGA_ESTADISTICA_EJECUTIVO");
         *   CnnFalp.ParametroBD("PIN_USUARIO", v_usuario.Text, DbType.String, ParameterDirection.Input);
         *   dt_ejecutiva.Load(CnnFalp.ExecuteReader());
         *   grilla_ejecutivo.DataSource = dt_ejecutiva;
         *   CnnFalp.Cerrar();
         * }*/

        private void Cargar_Planes_Tratamiento()
        {
            string fecha_desde = string.Empty;
            string fecha_hasta = string.Empty;

            if (ckbSFechas.Checked)
            {
                fecha_desde = "";
                fecha_hasta = "";
            }
            else
            {
                fecha_desde = txtdesde.Text;
                fecha_hasta = txthasta.Text;
            }

            dt_plan_tratamiento.Clear();
            if (CnnFalp.Estado == ConnectionState.Closed)
            {
                CnnFalp.Abrir();
            }
            CnnFalp.CrearCommand(CommandType.StoredProcedure, PCK + ".P_CARGAR_PLAN_TRATAMIENTO");
            CnnFalp.ParametroBD("PIN_ESTADO", Valor_por_defecto(txtestado.Tag), DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_FECHA_INICIO", fecha_desde, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_FECHA_TERMINO", fecha_hasta, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_NOMBRE", txtnombre.Text.ToUpper(), DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_NUM_PLAN", txtnum_plan.Text.Equals(string.Empty)? 0: Convert.ToInt64(txtnum_plan.Text), DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_NUM_PRESUPUESTO", txtnum_presupuesto.Text.Equals(string.Empty) ? 0 : Convert.ToInt64(txtnum_presupuesto.Text), DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_NUM_FICHA", txtnum_ficha.Text.Equals(string.Empty) ? 0 : Convert.ToInt64(txtnum_ficha.Text), DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_TIPO_DOC", Valor_por_defecto(txttipo_doc.Tag), DbType.Int64, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_RUT", txtnum_doc.Text, DbType.String, ParameterDirection.Input);
            CnnFalp.ParametroBD("PIN_DIV", txtdiv.Text, DbType.String, ParameterDirection.Input);

            dt_plan_tratamiento.Load(CnnFalp.ExecuteReader());
            grilla_plan.DataSource = dt_plan_tratamiento;
            Ordenar_columna();
            CnnFalp.Cerrar();
            int cont = Convert.ToInt32(dt_plan_tratamiento.Rows.Count);

            n_reg.Text = "N° Registro: " + cont;


            if (txtestado.Tag.ToString().Equals("1"))
            {
                this.grilla_plan.Columns["USUARIOS"].Visible = false;
            }
            else
            {
                this.grilla_plan.Columns["USUARIOS"].Visible = true;
            }

            if (txtestado.Tag.Equals(1) && txtnum_presupuesto.Text == "")
            {
                this.grilla_plan.Columns["H"].Visible = false;
            }
            else
            {
                this.grilla_plan.Columns["H"].Visible = true;
            }
            if (!txtestado.Tag.Equals(1))
            {
                this.grilla_plan.Columns["P"].Visible = false;
            }
            else
            {
                this.grilla_plan.Columns["P"].Visible = true;
            }
        }