コード例 #1
0
        private void AddCheckBoxFilter(string AnItemName)
        {
            TIndividualFilterFindPanel iffp;

            CheckBox chkAny = new CheckBox();

            chkAny.Name = "chk" + AnItemName;
            chkAny.Text = AnItemName;

            iffp = new TIndividualFilterFindPanel(
                null,
                TCloneFilterFindControl.ShallowClone <CheckBox>(chkAny, TFilterPanelControls.FILTER_NAME_SUFFIX),
                null,
                "bit",
                "HasManualFilter");
            FFilterAndFindObject.FilterPanelControls.FStandardFilterPanels.Add(iffp);
        }
コード例 #2
0
        private void CreateFilterFindPanelsManual()
        {
            Label lblDescription = new Label();

            lblDescription.Name = "lblDescription";
            lblDescription.Text = "Description";

            TextBox txtDescription = new TextBox();

            txtDescription.Name = "txtDescription";

            TIndividualFilterFindPanel iffp = new TIndividualFilterFindPanel(
                TCloneFilterFindControl.ShallowClone <Label>(lblDescription, TFilterPanelControls.FILTER_NAME_SUFFIX),
                TCloneFilterFindControl.ShallowClone <TextBox>(txtDescription, TFilterPanelControls.FILTER_NAME_SUFFIX),
                "Parent_a_account_code_short_desc_c",
                "varchar",
                String.Empty);

            FFilterAndFindObject.FilterPanelControls.FStandardFilterPanels.Add(iffp);
        }