Пример #1
0
        public FFilter()
        {
            InvokeMethod = new InvokeMethod(typeof(FilterController), new Dictionary <TypeExecute, string>()
            {
                { TypeExecute.InsertOrUpdate, "Save" },
                { TypeExecute.Remove, "RemoveId" },
                { TypeExecute.FindId, "FindId" },
                { TypeExecute.Search, "Search" },
                { TypeExecute.SearchAll, "ListFilter" }
            }, typeof(Filter));

            ObjectControl = new List <Filter>();

            InitializeComponent();

            QueryId.ObjetoApp     = new InvokeMethod(typeof(QueryController), TypeExecute.SearchAll, "ListQuery", typeof(Query));
            QueryId.DisplayMember = "Code";
            QueryId.ValueMember   = "Id";
            QueryId.FormType      = typeof(FQuery);

            TypeComponent.SetEnumItems <TypeFilterComponent>(TypeFilterComponent.TextBox);

            DefaultTypeFilter.SetEnumItems <TypeFilter>(TypeFilter.Equal);

            InactiveFilters.ObjetoApp       = new InvokeMethod(typeof(InactiveFiltersController), TypeExecute.Search, "InactiveFiltersSearch", typeof(InactiveFilters));
            InactiveFilters.ScreenSecondary = true;
            InactiveFilters.IsDependecyUkey = true;
            InactiveFilters.FormType        = typeof(FInactiveFilters);

            ImageSource = Properties.Resources.icon_filter;
        }
Пример #2
0
        public FPermission()
        {
            Module        = "Painel de Controle";
            ObjectControl = new List <Permission>();

            InvokeMethod = new InvokeMethod(typeof(PermissionController), new Dictionary <TypeExecute, string>()
            {
                { TypeExecute.InsertOrUpdate, "Save" },
                { TypeExecute.Remove, "RemoveId" },
                { TypeExecute.FindId, "FindId" },
                { TypeExecute.Search, "Search" },
                { TypeExecute.SearchAll, "ListPermission" }
            }, typeof(Permission));

            InitializeComponent();
            TypeComponent.SetEnumItems <TypeComponent>(Core.Domain.EnumBase.TypeComponent.Screen);
        }