protected void ddlclient_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (ddlclient.SelectedValue != "0")
         {
             ddlgroup.Visible = true;
             int _sltdval = Convert.ToInt32(ddlclient.SelectedValue);
             sessionId.Text = _sltdval.ToString();
             int val = Convert.ToInt32(_sltdval);
             ddlGroupbind(val);
             if (Session["admin"] != null)
             {
                 allowStaticMethods("GetAlertsByClient('" + val + "'); setInterval(function () {$(GetAlertsByClient('" + val + "'))}, 60000); $('#tblnotify').empty(); $('#imgnotify').show();ddlselect2('.ddlSelect');");
             }
         }
         else
         {
             BindingClass.ClearDropDown(ddlgroup, "Select Branch");
             allowStaticMethods("ddlselect2('.ddlSelect')");
         }
         BindingClass.ClearRepeaterView(rptObject);
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Exemple #2
0
 public void configRptBindByLoginID(int LoginID)
 {
     try
     {
         List <FeatureConfigurationModel> list = obj.getFeatureListByLogin(LoginID, 0);
         if (list.Count > 0)
         {
             BindingClass.RepeaterViewBind(rptConfiguration, list);
         }
         else
         {
             BindingClass.ClearRepeaterView(rptConfiguration);
             BindingClass.CallScriptManager(this.Page, this.GetType(), "toastr.error('No Configuration panel assigned to " + Session["DisplayName"] + "!', 'N/A',{positionClass:'toast-bottom-right'});");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Exemple #3
0
 public void configRptBind()
 {
     try
     {
         List <ConfigurationModel> list = obj.getConfigurationList(0);
         if (list.Count > 0)
         {
             BindingClass.RepeaterViewBind(rptConfiguration, list);
         }
         else
         {
             BindingClass.ClearRepeaterView(rptConfiguration);
             BindingClass.CallScriptManager(this.Page, this.GetType(), "toastr.error('No Configuration panel Found!', 'N/A',{positionClass:'toast-bottom-right'});");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Exemple #4
0
 public void bindRepeater()
 {
     try
     {
         List <ConfigurationModel> list = obj.getConfigurationList(-1);
         if (list.Count > 0)
         {
             rptReports.DataSource = list;
             rptReports.DataBind();
         }
         else
         {
             BindingClass.ClearRepeaterView(rptReports);
             BindingClass.CallScriptManager(this.Page, this.GetType(), "toastr.error('No Report assigned to " + Session["DisplayName"] + "!', 'N/A',{positionClass:'toast-bottom-right'});");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
 protected void ddlgroup_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (ddlgroup.SelectedValue != "0")
         {
             Timer1.Enabled    = true;
             rptObject.Visible = true;
             var _sltdval = ddlgroup.SelectedValue;
             int val      = Convert.ToInt32(_sltdval);
             BindObjectRepeater(val);
         }
         else
         {
             BindingClass.ClearRepeaterView(rptObject);
         }
         allowStaticMethods("ddlselect2('.ddlSelect');");
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }