コード例 #1
0
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, true, true, true, true, true, true, 20, false, false);

            UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "2");
            CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 792, 421, 2, 0, 2, 2, "100");
            InitViewBindingContainer(this, _UFGrid, null, "", "", null, 20, "");
            ((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy = UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
            _UFGrid.AllowSelectAllPage = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData      = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData = false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);
        }
コード例 #2
0
        private void _BuilderControl_DataGrid(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid", UFSoft.UBF.UI.ControlModel.EditStatus.Browse, true, true, true, true, true, true, 13, false, false);

            UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "2");
            CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 560, 318, 0, 2, 1, 1, "100");
            InitViewBindingContainer(this, _UFGrid, this.Model.cRef, "cRef", "", null, 13, "料品");
            ((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy = UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
            _UFGrid.AllowSelectAllPage = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData      = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData = false;
            this.DataGrid = _UFGrid;
            container.Controls.Add(_UFGrid);



            IUFDataGridColumn column;
            GridColumn        gridColumn;

            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "ID0", "NumberColumnModel", "", 0, this.Model.cRef.Fields["ID"] /*ID*/, "ID", true, false, true, false, false, true, 7, 80, "8", true, false, "", "f9d8c89d-f290-466b-b132-ec0aab3bb6cb", "f9d8c89d-f290-466b-b132-ec0aab3bb6cb", "698e902a-18d8-49b3-9fed-e93e7ef14ec4");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.FixedPoint, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            if (this.UseQueryCase && UFIDA.UBF.Query.CommonService.RefQueryHelper.QueryCaseExist(this.Action, null))
            {
                return;
            }

            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "Code0", "TextBoxColumnModel", "", 0, this.Model.cRef.Fields["Code"] /*Code*/, "Code", false, true, true, false, false, true, 0, 120, "5", true, false, "", "62ab4f5f-286b-48e9-84d2-0febe8bf5df8", "62ab4f5f-286b-48e9-84d2-0febe8bf5df8", "a209cf31-d45d-492e-bb11-8936dda943cb");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "5");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "Name0", "TextBoxColumnModel", "", 0, this.Model.cRef.Fields["Name"] /*Name*/, "Name", false, true, true, false, false, true, 0, 180, "5", true, false, "", "5d447b98-8787-42fc-ac0f-c1688bd44e2e", "5d447b98-8787-42fc-ac0f-c1688bd44e2e", "a48690fd-db32-4c0a-aebb-67a749664729");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "5");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "SPECS0", "TextBoxColumnModel", "", 0, this.Model.cRef.Fields["SPECS"] /*SPECS*/, "SPECS", false, true, true, false, false, true, 0, 120, "5", true, false, "", "559f0f3d-1fa7-4a3f-b4f3-8a39467eda4e", "559f0f3d-1fa7-4a3f-b4f3-8a39467eda4e", "79d6e7ab-5b6c-481c-acee-155928e52479");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "5");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "DescFlexField_PrivateDescSeg10", "TextBoxColumnModel", "", 0, this.Model.cRef.Fields["DescFlexField_PrivateDescSeg1"] /*DescFlexField_PrivateDescSeg1*/, "DescFlexField_PrivateDescSeg1", false, true, true, false, false, true, 0, 100, "5", true, false, "", "83b01abb-048f-4a49-ba4b-e99d5828d922", "83b01abb-048f-4a49-ba4b-e99d5828d922", "bf881f15-8ee8-49ce-bd0a-4e58ca7f2763");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "5");
        }
コード例 #3
0
        private void _BuilderControl_DataGrid3(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid3", UFSoft.UBF.UI.ControlModel.EditStatus.Browse, false, false, false, false, false, false, -1, false, false);

            UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "0");
            CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 600, 416, 0, 0, 1, 1, "100");
            InitViewBindingContainer(this, _UFGrid, this.Model.ViewLogViewer, "ViewLogViewer", "", null, -1, "");
            ((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy = UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
            _UFGrid.AllowSelectAllPage = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData      = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData = false;
            this.DataGrid3 = _UFGrid;
            container.Controls.Add(_UFGrid);



            IUFDataGridColumn column;
            GridColumn        gridColumn;

            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "ID1", "NumberColumnModel", "", 0, this.Model.ViewLogViewer.Fields["ID"] /*ID*/, "ID", true, false, true, false, false, false, 7, 100, "", true, false, "", "bc226b54-44e4-4265-8bd7-21fc88490da1", "bc226b54-44e4-4265-8bd7-21fc88490da1", "686903d0-e928-4929-aa29-5c61200cd0b7");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "SysVersion1", "NumberColumnModel", "", 0, this.Model.ViewLogViewer.Fields["SysVersion"] /*SysVersion*/, "SysVersion", false, false, true, false, false, false, 7, 100, "", true, false, "", "effe9c94-95d7-483a-be7c-844857178557", "effe9c94-95d7-483a-be7c-844857178557", "558a9e88-2d81-4b3a-b115-d40926650a7d");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "FileName1", "TextBoxColumnModel", "", 0, this.Model.ViewLogViewer.Fields["FileName"] /*FileName*/, "FileName", false, true, false, false, false, true, 0, 135, "50", true, false, "", "037797a1-e033-4b0d-8c0c-42733ce362da", "037797a1-e033-4b0d-8c0c-42733ce362da", "a907b24d-80e6-4cb6-b5a0-27ce590d0c94");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "Modified1", "DatePickerColumnModel", "", 0, this.Model.ViewLogViewer.Fields["Modified"] /*Modified*/, "Modified", false, true, false, false, false, true, 5, 150, "17", true, false, "2005-1-1 00:00:00", "e8fa5a04-0f81-4ec2-a6fa-7a8f09e79347", "e8fa5a04-0f81-4ec2-a6fa-7a8f09e79347", "7d3203b5-91a2-4f53-a7c2-460ba031c6c1");

            ((IUFDatePickerColumn)column).DateTimeType   = DateTimeType.DateTime;
            ((IUFDatePickerColumn)column).DateTimeFormat = CurrentState._I18N._DateTimeFormatInfo;


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "FileSize0", "TextBoxColumnModel", "", 0, this.Model.ViewLogViewer.Fields["FileSize"] /*FileSize*/, "FileSize", false, true, true, false, false, true, 0, 100, "50", true, false, "", "c75b1eb8-f2f0-4bdb-9a80-f986e7a7de4d", "c75b1eb8-f2f0-4bdb-9a80-f986e7a7de4d", "13c3af3d-0c81-4222-91ba-f0783d281a0a");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "IsHave0", "CheckBoxColumnModel", "", 0, this.Model.ViewLogViewer.Fields["IsHave"] /*IsHave*/, "IsHave", false, true, true, false, false, true, 22, 85, "1", true, false, "", "a19ebb2a-080a-45c0-b8b1-cdc81eec7c34", "a19ebb2a-080a-45c0-b8b1-cdc81eec7c34", "74566742-76fb-41d6-b52c-9f2a77d6d337");
        }
コード例 #4
0
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Browse, true, true, true, true, true, true, 18, true, false);

            UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "1");
            CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 972, 421, 0, 0, 2, 2, "100");
            InitViewBindingContainer(this, _UFGrid, null, "", "", null, 18, "");
            ((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy = UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
            _UFGrid.AllowSelectAllPage = true;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData      = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData = false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);
            //Grid所有页全选事件
            ((UFWebDataGridAdapter)this.DataGrid1).GridSelectAllPageHandler +=
                new GridSelectAllPageDelegate(UFIDA.U9.UI.PDHelper.PDListHelper.UFGridDataGrid_GridSelectAllPageDelegate);
        }
コード例 #5
0
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Browse, true, true, true, true, true, true, 18, false, false);

            UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "1");
            CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 971, 448, 0, 0, 1, 2, "100");
            InitViewBindingContainer(this, _UFGrid, this.Model.QueryResultView, "QueryResultView", "", null, 18, "");
            ((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy = UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
            _UFGrid.AllowSelectAllPage = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData      = false;
            ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData = false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);



            IUFDataGridColumn column;
            GridColumn        gridColumn;

            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "ID0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["ID"] /*ID*/, "ID", true, false, true, false, false, false, 7, 100, "", true, false, "", "bd23db22-cec0-4810-892d-56c5a8a5c48e", "bd23db22-cec0-4810-892d-56c5a8a5c48e", "e0aeda4f-90c2-417d-88cc-ed12ae9bc767");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "ItemCode0", "TextBoxColumnModel", "", 0, this.Model.QueryResultView.Fields["ItemCode"] /*ItemCode*/, "ItemCode", false, true, true, false, false, true, 0, 200, "50", true, false, "", "04608a9a-4967-43b7-bbc8-a50dc4b07445", "04608a9a-4967-43b7-bbc8-a50dc4b07445", "e2be7bf3-1ad0-4f33-b513-1732d3f82764");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "ItemName0", "TextBoxColumnModel", "", 0, this.Model.QueryResultView.Fields["ItemName"] /*ItemName*/, "ItemName", false, true, true, false, false, true, 0, 100, "50", true, false, "", "91e031ef-341d-403a-bc51-e9c777dbf70d", "91e031ef-341d-403a-bc51-e9c777dbf70d", "10fd88ac-1df1-4096-8557-d9f2efd9ad23");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "Wh0", "TextBoxColumnModel", "", 0, this.Model.QueryResultView.Fields["Wh"] /*Wh*/, "Wh", false, true, true, false, false, true, 0, 100, "50", true, false, "", "ac8283b3-01f5-41dd-8746-c510a51571af", "ac8283b3-01f5-41dd-8746-c510a51571af", "0cf67924-4bd6-4cc4-a7dd-2648c30401da");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "Lot0", "TextBoxColumnModel", "", 0, this.Model.QueryResultView.Fields["Lot"] /*Lot*/, "Lot", false, true, true, false, false, true, 0, 150, "50", true, false, "", "d80bd22e-9afc-4026-a057-fe9b62eea3f1", "d80bd22e-9afc-4026-a057-fe9b62eea3f1", "782fd3c8-4001-4bbb-a4d7-0f3ff3dc6e91");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "SegLength0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["SegLength"] /*SegLength*/, "SegLength", false, true, true, false, false, true, 2, 100, "10.0", true, false, "", "ddaf03b4-3ad0-4bcb-908b-e7a8bdef0506", "ddaf03b4-3ad0-4bcb-908b-e7a8bdef0506", "e25a81cc-a089-41b3-9cf6-cbcf67839516");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "StoreQty0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["StoreQty"] /*StoreQty*/, "StoreQty", false, true, true, false, false, true, 8, 100, "18.0", true, false, "", "18766b44-b2a2-49c3-97e0-a04ec0bf188f", "18766b44-b2a2-49c3-97e0-a04ec0bf188f", "106be3e7-44ed-4c61-9b51-31ca598604cd");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, this.Model.QueryResultView.FieldUOM_Precision /*UOM_Precision*/, this.Model.QueryResultView.FieldUOM_RoundValue /*UOM_RoundValue*/, this.Model.QueryResultView.FieldUOM_RoundType /*UOM_RoundType*/, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "UOM0", "TextBoxColumnModel", "", 0, this.Model.QueryResultView.Fields["UOM"] /*UOM*/, "UOM", false, true, true, false, false, true, 0, 100, "50", true, false, "", "d1656cf6-0ddb-47a8-948f-ef57d35245c7", "d1656cf6-0ddb-47a8-948f-ef57d35245c7", "64fe8041-37a2-485d-8726-6231018545c5");

            GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column, "", TextAlign.Left, false, "", false, "1", "1", "50");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "UOM_RoundValue0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["UOM_RoundValue"] /*UOM_RoundValue*/, "UOM_RoundValue", false, false, true, false, false, true, 2, 100, "10.0", true, false, "", "1980cbcd-8670-4b36-93f0-d4c7d2b35b92", "1980cbcd-8670-4b36-93f0-d4c7d2b35b92", "4bf15325-9e36-4b06-915b-ee62277439db");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "UOM_RoundType0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["UOM_RoundType"] /*UOM_RoundType*/, "UOM_RoundType", false, false, true, false, false, true, 2, 100, "10.0", true, false, "", "a9128ff4-706d-4d37-b343-2962451eff33", "a9128ff4-706d-4d37-b343-2962451eff33", "fe891fb4-5a1b-4042-ab54-c98d0fd43db6");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");


            column = GridControlBuilder.GridColumnBuilder(_UFGrid, "UOM_Precision0", "NumberColumnModel", "", 0, this.Model.QueryResultView.Fields["UOM_Precision"] /*UOM_Precision*/, "UOM_Precision", false, false, true, false, false, true, 2, 100, "10.0", true, false, "", "440f9ef3-6b40-46ce-8963-bf783cb18899", "440f9ef3-6b40-46ce-8963-bf783cb18899", "fed5f14f-f2f2-43e8-bd20-f4648ecd16d8");
            GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
                                                       , true, "", false, "1", "1");
        }