public void GvdBindHolidayscheduling(int GroupID) { List <HolidaySchedulingModel> li = HSS.GetHolidaySchedulingByGroupId(GroupID); BindingClass.GridViewBind(GvdSHolidayscheduling, li); allowStaticMethods("staticMethod();"); }
public void GvdBind_Consumption(int ObjectId, DateTime StartDate, DateTime EndDate) { if (StartDate.Date == DateTime.Now.Date) { List <CurrentDTReportModel> li = new List <CurrentDTReportModel>(); lblCConsmName.Text = ""; lblCConsmName.Text = ddlObject.SelectedItem.Text; List <ReportModel> li_current = RS.GetConsumptionReport(ObjectId, "Current"); if (li_current != null) { List <ReportModel> li_voltage = RS.GetConsumptionReport(ObjectId, "Voltage"); for (int i = 0; i < li_current.Count; i++) { CurrentDTReportModel obj = new CurrentDTReportModel(); obj.Name = li_current[i].Name; obj.Current = li_current[i].Value; obj.Voltage = li_voltage[i].Value; obj.Power = (li_current[i].Value * li_voltage[i].Value) / 1000; li.Add(obj); } } BindingClass.GridViewBind(gvdCurrentConsump, li); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myCurrentConsumptionModal", "$('#myCurrentConsumptionModal').modal(); gvdtempete('#gvdCurrentConsump');loadGraphConsumption();", true); } else { lblname.Text = ""; lblname.Text = ddlObject.SelectedItem.Text; List <SwitchesReportConsumptionModel> li = obj.getConsumptionByDT(ObjectId, StartDate, EndDate); BindingClass.GridViewBind(Gvdconsumptionreport, li); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModal", "$('#myModal').modal(); gvdtempete('#Gvdconsumptionreport');", true); } }
public void gvdBind_Consumption(int ObjectId, DateTime StartDate, DateTime EndDate) { if (StartDate.Date == DateTime.Now.Date) { List <DTReportModel> li = new List <DTReportModel>(); List <SwitchesReportDayModel> li_current = obj.getConsumptionToday(ObjectId, "Current"); if (li_current.Count > 0) { List <SwitchesReportDayModel> li_voltage = obj.getConsumptionToday(ObjectId, "Voltage"); for (int i = 0; i < li_current.Count; i++) { DTReportModel model = new DTReportModel(); model.Name = li_current[i].Name; model.Current = li_current[i].Value; model.Voltage = li_voltage[i].Value; model.Power = string.Format("{0:0.00}", (li_current[i].Value * li_voltage[i].Value) / 1000); li.Add(model); } } BindingClass.GridViewBind(Gvdconsumptionreport, li); } else { List <SwitchesReportConsumptionModel> li = obj.getConsumptionByDT(ObjectId, StartDate, EndDate); BindingClass.GridViewBind(Gvdconsumptionreport, li); } Gvdconsumptionreport.Visible = true; }
public void BindgridView() { try { List <CategoryModel> list = obj.getCategory(); BindingClass.GridViewBind(GVDCategory, list); } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void BindgridView() { try { List <SensorModel> li = SNS.GetSensors(); BindingClass.GridViewBind(sensorGrid, li); } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gridBind() { try { List <ObjectMaintenanceModel> list = obj.getObjectMaintenanceByObject(Convert.ToInt32(ddlObject.SelectedValue)); BindingClass.GridViewBind(gvdObjectMnt, list); gvdObjectMnt.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gridBind(int objectId) { try { List <EventConfigurationModel> list = obj.getEventConfigByObject(Convert.ToInt32(ddlObject.SelectedValue)); BindingClass.GridViewBind(gvdEventConfig, list); gvdEventConfig.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void GridBind() { try { List <ObjectModelDLL> li = obj.getObjectList(Convert.ToInt32(ddlClient.SelectedValue)); BindingClass.GridViewBind(gvdObject, li); gvdObject.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gridBind(int ClientID) { try { List <GetLoginModel> list = obj.getLoginByClient(ClientID); BindingClass.GridViewBind(GvdUser, list); GvdUser.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gridBind(int LoginID) { try { List <LoginFeatureModel> list = obj.getFeatureByLogin(LoginID); BindingClass.GridViewBind(gvdLoginFeature, list); gvdLoginFeature.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gridBind() { try { List <ClientModel> list = obj.getClient(); if (list.Count > 0) { BindingClass.GridViewBind(GvdClient, list); } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
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); } }
public void gridBind() { try { if (ddlClient.SelectedValue != "0") { List <GetGroupModel> list = obj.getGroupList(Convert.ToInt32(ddlClient.SelectedValue)); BindingClass.GridViewBind(gvdGroup, list); gvdGroup.Visible = true; } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void GvdBind_Temperature() { string calender = txtdtrange.Text; string[] cal = calender.Split('-'); string StrStartdate = cal[0]; string StrEnddate = cal[1]; DateTime Startdate = Convert.ToDateTime(StrStartdate); DateTime Enddate = Convert.ToDateTime(StrEnddate); lblname3.Text = ""; lblname3.Text = ddlObject.SelectedItem.Text; List <sp_SMSLOGTEMPModel> li = SPS.GetSMSLOGBy(Convert.ToInt32(ddlObject.SelectedValue), 1109, Startdate, Enddate); BindingClass.GridViewBind(gvdTemperature, li); }
public void GvdBind_Controlling(int ObjectId, DateTime StartDate, DateTime EndDate) { if (StartDate.Date == DateTime.Now.Date) { List <SwitchesReportControllingModel> Li = SRS.GetCurrentdateSwitchesReportControling(ObjectId); lblname2.Text = ""; lblname2.Text = ddlObject.SelectedItem.Text; BindingClass.GridViewBind(gv_ControllingReport, Li); } else { List <SwitchesReportControllingModel> Li = obj.getControllingByDT(ObjectId, StartDate, EndDate); lblname2.Text = ""; lblname2.Text = ddlObject.SelectedItem.Text; BindingClass.GridViewBind(gv_ControllingReport, Li); } }
public void gridBind() { try { if (ddlLogin.SelectedValue != "0") { List <LoginGroupModel> list = obj.getLoginGroupByLogin(Convert.ToInt32(ddlLogin.SelectedValue)); BindingClass.GridViewBind(gvdLoginGroup, list); gvdLoginGroup.Visible = true; } else { gvdLoginGroup.Visible = false; } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
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 gridBind(string type) { try { List <ConfigurationModel> list = new List <ConfigurationModel>(); if (type == "Reports") { list = obj.getFeatureList(-1); } if (type == "Configuration") { list = obj.getFeatureList(0); } BindingClass.GridViewBind(gvdFeatures, list); gvdFeatures.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void gvdBind_Controlling(int ObjectId, DateTime StartDate, DateTime EndDate) { try { if (StartDate.Date == DateTime.Now.Date) { List <SwitchesReportControllingModel> Li = obj.getControllingToday(ObjectId); BindingClass.GridViewBind(gvdcontrollingReport, Li); gvdcontrollingReport.Visible = true; } else { List <SwitchesReportControllingModel> Li = obj.getControllingByDT(ObjectId, StartDate, EndDate); BindingClass.GridViewBind(gvdcontrollingReport, Li); gvdcontrollingReport.Visible = true; } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void Gridbind(int ObjectId) { try { List <TavlIntegrationModel> li = OBJ.GetTavlStatusByObjectId(ObjectId); BindingClass.GridViewBind(gvdTavlIntegration, li); gvdTavlIntegration.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void Gridbind(int ObjectId) { try { List <AttendanceIntegrationModel> li = DashBLL.getActiveAttendanceByObj(ObjectId); BindingClass.GridViewBind(gvdAttendanceIntegration, li); gvdAttendanceIntegration.Visible = true; } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }