Example #1
0
        protected void ddlgroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlgroup.SelectedItem.Text != "Select Group")
            {
                holidaysPanel.Visible = false;
                btnSave.Visible       = false;
                ddlSensor.Visible     = false;

                GvdAllScheduling.Visible = false;
                ddlObject.Visible        = true;
                List <ObjectModel> li = OBJ.GetObjectsByGroupId(Convert.ToInt32(ddlgroup.SelectedValue));
                var list2             = li.Select(o => new { o.Name, o.ObjectID }).Distinct();
                BindingClass.BindDropDown(ddlObject, list2, "Name", "ObjectID", "Select Object");
            }
            else
            {
                holidaysPanel.Visible    = false;
                btnSave.Visible          = false;
                ddlSensor.Visible        = false;
                GvdAllScheduling.Visible = false;
                ddlObject.Items.Clear();
                ddlDays.Items.Add("Select Days");
                ddlDays.Items.Clear();
                ddlListItemDays();
                ddlObject.Items.Insert(0, new ListItem("Select Object", "0"));
            }
            allowStaticMethods("staticMethod();");
        }
Example #2
0
 public void ddlGroupBind(int clientID)
 {
     try
     {
         List <GroupIDName> list = cobj.getGroupList(clientID);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlGroup, list, "Name", "GroupID", "Select Branch");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #3
0
 public void ddlLoginBind(int clientID)
 {
     try
     {
         List <LoginIDName> list = cobj.getLoginList(clientID);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlLogin, list, "Name", "LoginID", "Select User");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #4
0
 public void BindddlSensor()
 {
     try{
         List <ObjectSensorModel> li = OBJ.GetSensorByObjectId(Convert.ToInt32(ddlObject.SelectedValue));
         if (li != null)
         {
             var list2 = li.Select(o => new { o.Name, o.ObjectSensorId }).Distinct();
             BindingClass.BindDropDown(ddlSensor, list2, "Name", "ObjectSensorId", "ALL Routes");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #5
0
 public void ddlFeatureBind(int loginID)
 {
     try
     {
         List <FeatureIDName> list = obj.getNAFeatureByLogin(loginID);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlFeature, list, "Name", "FeatureID", "Select Feature");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #6
0
 public void ddlObjectBind(int clientID)
 {
     try
     {
         List <ObjectIDName> list = cobj.getObjectListByClient(clientID);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlObject, list, "Name", "ObjectID", "Select Device");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #7
0
 protected void ddlObjectbind(int GroupId)
 {
     try{
         List <ObjectModel> li = OBJ.GetObjectsByGroupId(GroupId);
         if (li != null)
         {
             var list2 = li.Select(o => new { o.Name, o.ObjectID }).Distinct();
             BindingClass.BindDropDown(ddlObject, list2, "Name", "ObjectID", "Select Object");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #8
0
 public void ddlClientbind()
 {
     try
     {
         List <ClientModel> li = CL.GetClient();
         if (li != null)
         {
             var list = li.Select(o => new { o.Name, o.ClientID }).Distinct();
             BindingClass.BindDropDown(ddlclient, list, "Name", "ClientID", "Select Client");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
        public void ddlobject(int GroupId)
        {
            List <ObjectModel> li = OBJ.GetObjectsByGroupId(GroupId);

            if (li != null)
            {
                var list = li.Select(o => new { o.Name, o.ObjectID });
                BindingClass.BindDropDown(ddlObject, list, "Name", "ObjectID", "Select Device");
            }
            else
            {
                BindingClass.ClearDropDown(ddlObject, "Select Device");
            }
        }
        public void ddlgroup(int ClientId)
        {
            List <GroupModel> li = GS.GetGroupByClientId(ClientId);

            if (li != null)
            {
                var list = li.Select(o => new { o.Name, o.GroupID });
                BindingClass.BindDropDown(ddlGroup, list, "Name", "GroupID", "Select Branch");
            }
            else
            {
                BindingClass.ClearDropDown(ddlGroup, "Select Branch");
            }
        }
        public void ddlclient()
        {
            List <ClientModel> li = CS.GetClient();

            if (li != null)
            {
                var list = li.Select(o => new { o.Name, o.ClientID });
                BindingClass.BindDropDown(ddlClient, list, "Name", "ClientID", "Select Client");
            }
            else
            {
                BindingClass.ClearDropDown(ddlClient, "Select Client");
            }
        }
Example #12
0
        public void ddlObjsensorbind(int ObjectId)
        {
            List <EventConfigurationLocationModel> li = ECS.GetObjectSensorsByObjId(ObjectId);

            if (li != null)
            {
                var list = li.Select(o => new { o.Location, o.objectsensorId });
                BindingClass.BindDropDown(ddlObjSensor, list, "Location", "objectsensorId", "Select Location");
            }
            else
            {
                BindingClass.ClearDropDown(ddlObjSensor, "Select Location");
            }
        }
Example #13
0
 public void ddlGroupbind(int ClientId)
 {
     try
     {
         List <GroupModel> li = GS.GetGroupByClientId(ClientId);
         if (li != null)
         {
             var list2 = li.Select(o => new { o.Name, o.GroupID }).Distinct();
             BindingClass.BindDropDown(ddlgroup, list2, "Name", "GroupID", "Select Group");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #14
0
 public void ddlClientBind()
 {
     try
     {
         List <ClientIDName> list = cobj.getClientList();
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlClient, list, "Name", "ClientID", "Select Client");
             BindingClass.ClearDropDown(ddlGroup, "Select Branch");
             BindingClass.ClearDropDown(ddlObject, "Select Device");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #15
0
 public void ddlGroupbind(int ClientId)
 {
     try
     {
         List <GroupIDName> li = objC.getGroupList(ClientId);
         if (li.Count > 0)
         {
             BindingClass.BindDropDown(ddlgroup, li, "Name", "GroupID", "Select Branch");
         }
         else
         {
             BindingClass.ClearDropDown(ddlgroup, "Select Branch");
         }
     }
     catch (Exception) { }
     //{ Alert = AlertsClass.ErrorWentWrong; AlertScriptManager(Alert); }
 }
Example #16
0
 protected void ddlGroupbind(int ClientId)
 {
     try
     {
         List <GroupIDName> list = cobj.getGroupList(ClientId);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlGroup, list, "Name", "GroupID", "Select Branch");
         }
         else
         {
             BindingClass.ClearDropDown(ddlGroup, "Select Branch");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #17
0
 public void ddlCategoryBind()
 {
     try
     {
         List <CategoryIDName> list = comObj.getCategoryIDName();
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlcategory, list, "Category", "CategoryID", "Select Category");
         }
         else
         {
             BindingClass.ClearDropDown(ddlcategory, "Select Category");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #18
0
 public void ddlObjectBind()
 {
     try
     {
         List <ObjectIDName> list = cobj.getObjectListByClient(Convert.ToInt32(ddlClient.SelectedValue));
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlObject, list, "Name", "ObjectID", "Select Device");
         }
         else
         {
             BindingClass.ClearDropDown(ddlObject, "Select Device");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #19
0
 public void ddlObjectbind(int groupId)
 {
     try
     {
         List <ObjectListDashboard> list = cObj.getObjectList(groupId);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlobject, list, "Name", "ObjectID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlobject, "Select");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #20
0
 public void ddlClientbind()
 {
     try
     {
         List <ClientIDName> list = cObj.getClientList();
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlclient, list, "Name", "ClientID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlclient, "Select");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #21
0
 protected void ddlObjectbind(int GroupId)
 {
     try
     {
         List <ObjectListDashboard> list = objC.getObjectList(GroupId);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlObject, list, "Name", "ObjectID", "Select Device");
         }
         else
         {
             BindingClass.ClearDropDown(ddlObject, "Select Device");
         }
     }
     catch (Exception) { }
     //{ Alert = AlertsClass.ErrorWentWrong; AlertScriptManager(Alert); }
 }
 public void ddlObjectSensorbind(int objectId)
 {
     try
     {
         List <ObjectSensorIDName> list = cObj.getRelaySensorByObject(objectId, "Serial");
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlobjectSensor, list, "Name", "ObjectSensorID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlobjectSensor, "Select");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
 public void ddlGroupbind(int clientId)
 {
     try
     {
         List <GroupIDName> list = cObj.getGroupList(clientId);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlgroup, list, "Name", "GroupID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlgroup, "Select");
         }
     }
     catch (Exception)
     { alert = AlertsClass.ErrorWentWrong; alertScriptManager(alert); }
 }
 public void ddlClientbind()
 {
     try
     {
         List <ClientIDName> list = cObj.getClientList();
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlclient, list, "Name", "ClientID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlclient, "Select");
         }
     }
     catch (Exception)
     { alert = AlertsClass.ErrorWentWrong; alertScriptManager(alert); }
 }
 public void ddlobject(int GroupId)
 {
     try
     {
         List <ObjectModel> li = OBJ.GetObjectsByGroupId(GroupId);
         if (li != null)
         {
             var list = li.Select(o => new { o.Name, o.ObjectID });
             BindingClass.BindDropDown(ddlObject, list, "Name", "ObjectID", "Select Device");
         }
         else
         {
             BindingClass.ClearDropDown(ddlObject, "Select Device");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #26
0
        public void ddlNAsensorBind()
        {
            try
            {
                List <SensorIDSourceID> list = obj.getNASensorListByObject(Convert.ToInt32(ddlObject.SelectedValue));
                if (list.Count > 0)
                {
                    BindingClass.BindDropDown(ddlSensor, list, "SourceID", "SensorID", "Select Sensor");
                }
                else
                {
                    BindingClass.ClearDropDown(ddlObject, "Select Device");
                }
            }

            catch (Exception)
            { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
        }
 protected void ddlGroupbind(int ClientId)
 {
     try
     {
         List <GroupModel> li = GS.GetGroupByClientId(ClientId);
         if (li != null)
         {
             var list = li.Select(o => new { o.Name, o.GroupID });
             BindingClass.BindDropDown(ddlgroup, list, "Name", "GroupID", "Select Branch");
         }
         else
         {
             BindingClass.ClearDropDown(ddlgroup, "Select Branch");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Example #28
0
        public void ddlSensorBind()
        {
            try
            {
                List <SensorIDSourceID> list = comObj.getSensorIDSourceID();
                if (list.Count > 0)
                {
                    BindingClass.BindDropDown(ddlSensor, list, "SourceID", "SensorID", "Select Sensor");
                }
                else
                {
                    BindingClass.ClearDropDown(ddlObject, "Select Device");
                }
            }

            catch (Exception)
            { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
        }
 public void ddlObjectbind(int groupId)
 {
     try
     {
         List <ObjectListDashboard> list = cObj.getObjectList(groupId);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlobject, list, "Name", "ObjectID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlobject, "Select");
         }
         allowStaticMethods();
     }
     catch (Exception)
     { alert = AlertsClass.ErrorWentWrong; alertScriptManager(alert); }
 }
 public void ddlObjectSensorbind(int objectId)
 {
     try
     {
         List <ObjectSensorIDName> list = cObj.getBasicSensorByObject(objectId, 7);
         if (list.Count > 0)
         {
             BindingClass.BindDropDown(ddlobjectSensor, list, "Name", "ObjectSensorID", "Select");
         }
         else
         {
             BindingClass.ClearDropDown(ddlobjectSensor, "Select");
         }
         allowStaticMethods();
     }
     catch (Exception)
     { alert = AlertsClass.ErrorWentWrong; alertScriptManager(alert); }
 }