protected void Llenar_GRILLA() { DB_EXT_SegSemanalTotales data = new DB_EXT_SegSemanalTotales(); GVEnvioSem.DataSource = data.DB_Desplegar_SEG_SEMANAL_TOTAL(Convert.ToInt32(LblIdReg.Text), Convert.ToInt32(LblIdCamp.Text), LblPrograma.Text, "TOTALES"); GVEnvioSem.DataBind(); }
protected void Llenar_GRILLA() { DB_EXT_SegSemanalTotales data = new DB_EXT_SegSemanalTotales(); GVOrgSup.DataSource = data.DB_Desplegar_SEG_SEMANAL_TOTAL(Convert.ToInt32(DDLRegional.SelectedValue), Convert.ToInt32(DDLCamp.SelectedValue), DDLProg.SelectedValue, "ORG_SUP"); GVOrgSup.DataBind(); }
protected void Graficar() { DB_EXT_SegSemanalTotales data = new DB_EXT_SegSemanalTotales(); DataTable dt = new DataTable(); dt = data.DB_Desplegar_SEG_SEMANAL_TOTAL(Convert.ToInt32(DDLRegional.SelectedValue), Convert.ToInt32(DDLCamp.SelectedValue), DDLProg.SelectedValue, "TOTALES"); string[] fases = { "GERMINACION EMERGENCIA", "PLANTULA", "MACOLLAMIENTO", "EMBUCHE", "ESPIGAZON", "FLORACION", "LLENADO GRANO", "MADURACION" }; string jose = GVEnvioSem.Rows[0].Cells[12].Text; decimal[] valor = { Convert.ToDecimal(dt.Rows[0][8].ToString()), Convert.ToDecimal(dt.Rows[0][9].ToString()), Convert.ToDecimal(dt.Rows[0][10].ToString()), Convert.ToDecimal(dt.Rows[0][11].ToString()), Convert.ToDecimal(dt.Rows[0][12].ToString()), Convert.ToDecimal(dt.Rows[0][13].ToString()), Convert.ToDecimal(dt.Rows[0][14].ToString()), Convert.ToDecimal(dt.Rows[0][15].ToString()) }; Chart1.Series["Series1"].Points.DataBindXY(fases, valor); }