private void  Modificar_MUESTRA(int numero)
        {
            DB_EXT_DesignacionProd mus = new DB_EXT_DesignacionProd();
            DataTable dt = new DataTable();

            dt = mus.DB_Desplegar_MUESTRA(Convert.ToInt32(LblIdCamp.Text), Convert.ToInt32(LblIdReg.Text), LblProg.Text, "MUESTRA");
            EXT_MuestraSeguimiento m = new EXT_MuestraSeguimiento();

            m.Id_Muestra   = Convert.ToInt32(dt.Rows[0][9].ToString());
            m.Num_Org      = Convert.ToInt32(dt.Rows[0][3].ToString());
            m.Num_Prod     = Convert.ToInt32(dt.Rows[0][4].ToString());
            m.Num_Muestra  = Convert.ToInt32(dt.Rows[0][5].ToString());
            m.Num_Tecnicos = Convert.ToInt32(dt.Rows[0][6].ToString()) + numero;
            mus.DB_Modificar_MUESTRA(m);
        }
Exemple #2
0
        protected void Desplegar_MUESTRAS_REGISTRADAS()
        {
            DB_EXT_DesignacionProd mus = new DB_EXT_DesignacionProd();

            GVMuestras.DataSource = mus.DB_Desplegar_MUESTRA(Convert.ToInt32(DDLCamp.SelectedValue), Convert.ToInt32(DDLRegional.SelectedValue), DDLPrograma.SelectedValue, "MUESTRA");
            GVMuestras.DataBind();
            if (GVMuestras.Rows.Count > 0)
            {
                ImgFormula.Visible  = false;
                BtnCalcular.Enabled = false;
                LblTexto1.Visible   = false;
            }
            else
            {
                BtnCalcular.Enabled = true;
                ImgFormula.Visible  = true;
                LblTexto1.Visible   = true;
            }
        }