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);
            }
        }
Exemplo n.º 2
0
 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");
     }
 }
Exemplo n.º 3
0
 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()); }
 }
Exemplo n.º 4
0
 public void hideControls()
 {
     BindingClass.ClearGridView(gvdcontrollingReport);
     gvdcontrollingReport.Visible = false;
     //btngraph.Visible = false;
 }
 public void hideControls()
 {
     BindingClass.ClearGridView(Gvdconsumptionreport);
     Gvdconsumptionreport.Visible = false;
     //btngraph.Visible = false;
 }