protected void BindRoleDetailsGridView(long RoleID)
 {
     try
     {
         CustomProfile profile = CustomProfile.GetProfile();
         //List<SP_GetDataToBindRoleMaster_Result> sessionList = new List<SP_GetDataToBindRoleMaster_Result>();Comment by vishal
         List <SP_GWCGetDataToBindRoleMaster_Result>      sessionList       = new List <SP_GWCGetDataToBindRoleMaster_Result>();
         BrilliantWMS.RoleMasterService.iRoleMasterClient roleMasterService = new BrilliantWMS.RoleMasterService.iRoleMasterClient();
         // sessionList = roleMasterService.GetDataToBindRoleMasterDetailsByRoleID(RoleID, profile.Personal.CompanyID, profile.DBConnection._constr).ToList();Comment by vishal
         sessionList = roleMasterService.GetGWCDataToBindRoleMasterDetailsByRoleID(RoleID, profile.Personal.CompanyID, profile.DBConnection._constr).ToList();// Added by vishal
         //GridRoleConfiguration.GroupBy = "DisplayModuleName,DisplayPhaseName";Comment by vishal
         GridRoleConfiguration.ShowHeader = true;
         GridRoleConfiguration.DataSource = sessionList;
         GridRoleConfiguration.DataBind();
         Session.Add("sessionRoleList", sessionList);
         roleMasterService.Close();
         //TabContainerRoleMaster.ActiveTabIndex = 1;
         //TabPanelRoleDetails.Visible = true;
     }
     catch (System.Exception ex)
     {
         Login.Profile.ErrorHandling(ex, this, "Role Master", "BindRoleDetailsGridView");
     }
     finally
     {
     }
 }
 protected void clear()
 {
     hdnRoleID.Value  = "0";
     txtRoleName.Text = "";
     // txtSequence.Text = "";
     ddlDeartment.SelectedIndex   = -1;
     ddlDesignation.SelectedIndex = -1;
     ddlcompany.SelectedIndex     = -1;
     ddlUserType.SelectedIndex    = -1;
     rbtnNo.Checked  = false;
     rbtnYes.Checked = true;
     GridRoleConfiguration.DataSource = null;
     GridRoleConfiguration.DataBind();
     Session["sessionRoleList"] = null;
 }