public void gvdBind(int ObjectSensorID, DateTime StartDate, DateTime EndDate, double min, double max) { List <IndividualSensorModel> Li = obj.getIndividualSensorReport(ObjectSensorID, StartDate, EndDate, min, max); if (Li.Count > 0) { BindingClass.GridViewBind(gvdReport, Li); } else { BindingClass.ClearGridView(gvdReport); } }
protected void ddlobject_SelectedIndexChanged(object sender, EventArgs e) { if (ddlobject.SelectedValue != "0") { int val = Convert.ToInt32(ddlobject.SelectedValue); ddlObjectSensorbind(val); BindingClass.ClearGridView(gvdReport); } else { BindingClass.ClearGridView(gvdReport); BindingClass.ClearDropDown(ddlobjectSensor, "Select"); } }
public void gvdBind(int ObjectSensorID, DateTime StartDate, DateTime EndDate, double min, double max) { try { List <IndividualSensorModel> Li = obj.getIndividualSensorReport(ObjectSensorID, StartDate, EndDate, min, max); if (Li.Count > 0) { BindingClass.GridViewBind(gvdReport, Li); btngraph.Visible = true; } else { BindingClass.ClearGridView(gvdReport); } gvdReport.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void hideControls() { BindingClass.ClearGridView(gvdcontrollingReport); gvdcontrollingReport.Visible = false; //btngraph.Visible = false; }
public void hideControls() { BindingClass.ClearGridView(Gvdconsumptionreport); Gvdconsumptionreport.Visible = false; //btngraph.Visible = false; }