Exemplo n.º 1
0
 public void ClearControls()
 {
     try
     {
         List <object> li = new List <object>();
         BindingClass.ClearDropDown(ddlclient, "Select Client");
         BindingClass.ClearDropDown(ddlgroup, "Select Group");
         BindingClass.RepeaterViewBind(rptObject, li);
         BindingClass.RepeaterViewBind(rptTracker, li);
         BindingClass.RepeaterViewBind(rptAttendance, li);
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }
Exemplo n.º 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()); }
 }
Exemplo n.º 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()); }
 }