protected override void CreateBody(IList <IHtmlContent <TPostModel, TModel> > textBoxes)
        {
            textBoxes.Add(new LabeledTextBox <TPostModel, TModel>(Resources.LoginName, o => o.LoginName));
            textBoxes.Add(new LabeledTextBox <TPostModel, TModel>(Resources.DisplayName, o => o.DisplayName));
            textBoxes.Add(new LabeledTextBox <TPostModel, TModel>(Resources.Description, o => o.Description));
            var roleDropDown = new AdvancedDropDown <TPostModel, TModel>(o => o.UserRole, Resources.UserRole, new MethodCall("core.addOption"));

            textBoxes.Add(roleDropDown);
            textBoxes.Add(new LabeledTextBox <TPostModel, TModel>(Resources.Password, o => o.Password, null, TextBoxTypeEnum.Password));
        }
Exemplo n.º 2
0
        protected override void CreateSearchFilter(IList <BaseGridFilter> searchFilter)
        {
            var dropDown = new BooleanGridFilter <T>(o => o.IsLocked, Resources.ForbiddenStatus, tooltip: Resources.ForbiddenStatus);

            dropDown.AddOption(true, Resources.Normal);
            dropDown.AddOption(false, Resources.Forbidden);

            searchFilter.Add(new TextGridFilter <T>(o => o.DisplayName, Resources.DisplayName, Resources.DisplayName));
            searchFilter.Add(new TextGridFilter <T>(o => o.LoginName, Resources.LoginName, Resources.LoginName));
            searchFilter.Add(new DateTimeGridFilter <T>(o => o.StartCreateTime, Resources.StartCreateTime, Resources.StartCreateTime));
            searchFilter.Add(new DateTimeGridFilter <T>(o => o.EndCreateTime, Resources.EndCreateTime, Resources.EndCreateTime));
            searchFilter.Add(dropDown);
            searchFilter.Add(AdvancedDropDown.RoleAdvancedDropDown <T>(o => o.RoleId));
            searchFilter.Add(AdvancedDropDown.UserAdvancedDropDown <T>(o => o.Id));
            searchFilter.Add(AdvancedDropDown.MenuAdvancedDropDown <T>(o => o.Id));
        }