Example #1
0
 protected void AddNewSystemRoleWindowPanel_BeforeHide(object sender, DirectEventArgs e)
 {
     NewSystemRole_RoleTypeCombobox.Select(0);
     NewSystemRole_UserSipAccount.Clear();
     NewSystemRole_SitesList.Value    = null;
     NewSystemRole_StatusMessage.Text = string.Empty;
 }
Example #2
0
        protected void NewSystemRole_UserSipAccount_BeforeQuery(object sender, DirectEventArgs e)
        {
            string searchTerm = string.Empty;
            List <LyncBillingBase.DataModels.User> matchedUsers;

            if (NewSystemRole_UserSipAccount.Value != null && NewSystemRole_UserSipAccount.Value.ToString().Length > 3)
            {
                searchTerm = NewSystemRole_UserSipAccount.Value.ToString();

                matchedUsers = Global.DATABASE.Users.GetBySearchTerm(searchTerm);

                NewSystemRole_UserSipAccount.GetStore().DataSource = matchedUsers;
                NewSystemRole_UserSipAccount.GetStore().DataBind();
            }
        }