Пример #1
0
        private void _BuilderControl_Toolbar1(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar1 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "77c42d55-dac8-4a02-9c8a-5d1ae4f16402");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "OnDelete";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "6934b1b3-dd6b-47a3-8966-a981e99a608e");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutPut);
            this.BtnOutPut.UIModel = this.Model.ElementID;
            this.BtnOutPut.Action  = "OnOutPut";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "566b8601-450c-42bb-9a61-546afcb9eb81");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "OnPrint";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #2
0
        private void _BuilderControl_Toolbar1(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar1 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "5962bf17-4ea0-49b0-823c-03c83fabe345");

            UIControlBuilder.SetButtonAccessKey(this.BtnNew);
            this.BtnNew.UIModel = this.Model.ElementID;
            this.BtnNew.Action  = "OnNew";
            this.BtnDelete      = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "2a6084cb-d0f5-487f-ba43-f07f2ac930ec");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "OnDelete";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "e7f264e4-dd61-4360-ba0c-91d4ab1abb2c");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutPut);
            this.BtnOutPut.UIModel = this.Model.ElementID;
            this.BtnOutPut.Action  = "OnOutPut";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "4dc7e8fe-33eb-4c0c-b49b-4d9783021559");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "OnPrint";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #3
0
        private void _BuilderControl_Toolbar1(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar1 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "bfa439b8-a9aa-4ba4-861f-960d19ef3d0e");

            UIControlBuilder.SetButtonAccessKey(this.BtnNew);
            this.BtnNew.UIModel = this.Model.ElementID;
            this.BtnNew.Action  = "OnNew";
            this.BtnDelete      = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "51201568-2ce9-4759-bb00-1767b0ad8b4c");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "OnDelete";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "c6aeeba1-8358-4a34-b5c8-275f17f12187");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutPut);
            this.BtnOutPut.UIModel = this.Model.ElementID;
            this.BtnOutPut.Action  = "OnOutPut";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "55e4aa2b-8614-4de5-b025-d8aa5a489a30");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "OnPrint";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
        private void _BuilderControl_Toolbar1(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar1 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "31306c54-d12d-4873-b5b3-2933fbe84e1a");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "OnDelete";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "42589f9d-f68a-40d2-b4bb-bb059cc0bd4b");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutPut);
            this.BtnOutPut.UIModel = this.Model.ElementID;
            this.BtnOutPut.Action  = "OnOutPut";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "383d4c96-4740-4a43-87b4-b9a212d9b76f");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "OnPrint";
            this.BtnPrintBarCode  = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrintBarCode", "True", "True", 69, 28, "6", "", true, false, "0feb9305-b5bd-4132-a8ee-d507b1293287", "0feb9305-b5bd-4132-a8ee-d507b1293287", "fd578968-447f-45f2-ae24-ef3d87503bfe");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrintBarCode);
            this.BtnPrintBarCode.UIModel = this.Model.ElementID;
            this.BtnPrintBarCode.Action  = "OnPrintBarCode";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #5
0
        private void _BuilderControl_Toolbar1(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar1", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar1 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnNew = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNew", "True", "True", 35, 28, "1", "N", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "bbce8ad3-43b8-4ad1-a1a5-fe7d065d4c4e");

            UIControlBuilder.SetButtonAccessKey(this.BtnNew);
            this.BtnNew.UIModel = this.Model.ElementID;
            this.BtnNew.Action  = "OnNew";
            this.BtnDelete      = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "2", "R", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "289163d1-2961-4791-be19-72d865a80ff7");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "OnDelete";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutPut = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutPut", "True", "True", 35, 28, "4", "O", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "bea9082e-adc8-479b-85d6-cfdb3b85d2ce");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutPut);
            this.BtnOutPut.UIModel = this.Model.ElementID;
            this.BtnOutPut.Action  = "OnOutPut";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "5", "P", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "8b059c92-9e27-4a28-a11b-b89dd66fa29b");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "OnPrint";
            this.BtnPrintBarCode  = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrintBarCode", "True", "True", 67, 28, "6", "", true, false, "89db7a96-a3be-4063-ad5b-7a5f8f260978", "89db7a96-a3be-4063-ad5b-7a5f8f260978", "27e9b564-e6b5-41db-ac78-5df15d986ccd");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrintBarCode);
            this.BtnPrintBarCode.UIModel = this.Model.ElementID;
            this.BtnPrintBarCode.Action  = "OnPrintBarCode";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #6
0
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar2", true, true, "1", 992, 28, 0, 0, 1, 1, "100");

            this.Toolbar2 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 28, "1", "", true, false, "8288c5a3-3b19-48d3-b139-f7018d2782ee", "8288c5a3-3b19-48d3-b139-f7018d2782ee", "f3eb5df3-cf99-48e4-99b6-42a5014dd772");

            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action  = "";
            this.BtnCancel       = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 28, "2", "", true, false, "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "aa687d7d-d1a0-47ec-98aa-b333b2df5491");

            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action  = "";
            this.BtnAdd            = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 28, "3", "", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "2ba8ddf8-775e-4f02-a9ac-3a954139a0c6");

            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action  = "";
            this.BtnDelete      = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28, "4", "", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "b8397855-4c4d-421e-87bf-2895560cfa0b");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnCopy = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCopy", "True", "True", 35, 28, "6", "", true, false, "be9f8d20-e484-464b-9818-a2c1b599b967", "be9f8d20-e484-464b-9818-a2c1b599b967", "0c608f62-a7a3-485b-a122-0fe1750ad57d");

            UIControlBuilder.SetButtonAccessKey(this.BtnCopy);
            this.BtnCopy.UIModel = this.Model.ElementID;
            this.BtnCopy.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "True", "True", 35, 28, "8", "", true, false, "c42c0f21-2fd7-49b2-ac54-62f811747b18", "c42c0f21-2fd7-49b2-ac54-62f811747b18", "cd219a51-a1df-42c0-99ed-62bf97427907");

            UIControlBuilder.SetButtonAccessKey(this.BtnSubmit);
            this.BtnSubmit.UIModel = this.Model.ElementID;
            this.BtnSubmit.Action  = "";
            this.BtnApprove        = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "True", "True", 35, 28, "9", "", true, false, "eb678a04-c7e1-44f1-b175-8f90f9903862", "eb678a04-c7e1-44f1-b175-8f90f9903862", "ac038b56-3f6c-4209-918c-f00e028de6ec");

            UIControlBuilder.SetButtonAccessKey(this.BtnApprove);
            this.BtnApprove.UIModel = this.Model.ElementID;
            this.BtnApprove.Action  = "";
            this.BtnUndoApprove     = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnUndoApprove", "True", "True", 35, 28, "10", "", true, false, "ae796775-bce3-4aed-89a9-20eaa4648a67", "ae796775-bce3-4aed-89a9-20eaa4648a67", "a2f66cf5-3436-4355-b045-98e7ca5195c4");

            UIControlBuilder.SetButtonAccessKey(this.BtnUndoApprove);
            this.BtnUndoApprove.UIModel = this.Model.ElementID;
            this.BtnUndoApprove.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 28, "12", "", true, false, "27621430-7bc7-4c0e-979e-f0108439d13e", "27621430-7bc7-4c0e-979e-f0108439d13e", "7bd2180d-dd91-429b-9716-e70bdc0b7a80");

            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action  = "";
            this.BtnList         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 28, "13", "", true, false, "c639596b-5a8c-4fc1-88bb-a3d670cda992", "c639596b-5a8c-4fc1-88bb-a3d670cda992", "203baf00-7443-48a8-a23b-186c40916358");

            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 28, "15", "", true, false, "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "7991fcca-d32b-4506-8540-2ae485974a84");

            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action  = "";
            this.BtnPrevPage          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 28, "16", "", true, false, "5ed368d8-7616-4696-b671-3f1c895f3b43", "5ed368d8-7616-4696-b671-3f1c895f3b43", "54a2f262-865d-4b6f-90c7-a14a44cd32e6");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action  = "";
            this.BtnNextPage         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 28, "17", "", true, false, "36afec41-957c-493a-97a4-eddb136af5b4", "36afec41-957c-493a-97a4-eddb136af5b4", "975a2c4a-41f3-458b-86de-a620873bc6e5");

            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action  = "";
            this.BtnLastPage         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 28, "18", "", true, false, "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "7c489916-cb53-4814-8c80-b5cecfb81446");

            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnAttachment = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAttachment", "True", "True", 35, 28, "20", "", true, false, "92ccef79-ad54-438c-a16e-20a4fd407b97", "92ccef79-ad54-438c-a16e-20a4fd407b97", "ba2acf74-9a61-48f7-801a-b0dbab519440");

            UIControlBuilder.SetButtonAccessKey(this.BtnAttachment);
            this.BtnAttachment.UIModel = this.Model.ElementID;
            this.BtnAttachment.Action  = "";
            this.BtnFlow = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFlow", "True", "True", 35, 28, "21", "", true, false, "e222698c-ae3c-470a-8053-1b69905c510a", "e222698c-ae3c-470a-8053-1b69905c510a", "1c92e2c5-664c-40da-b712-5deff4a4c2a4");

            UIControlBuilder.SetButtonAccessKey(this.BtnFlow);
            this.BtnFlow.UIModel = this.Model.ElementID;
            this.BtnFlow.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 28, "23", "", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "91b7970d-6dff-4ccd-9c6b-75629c54e1b2");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action  = "";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28, "24", "", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "749d4b1f-a332-4e43-acae-a5081b0ad30a");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #7
0
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container, "Toolbar2", true, true, "1", 992, 1, 0, 0, 1, 1, "100");

            this.Toolbar2 = _Toolbar;

            ///foreach Toolbar下的所有控件,增加到此容器
            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 1, "1", "", true, false, "8288c5a3-3b19-48d3-b139-f7018d2782ee", "8288c5a3-3b19-48d3-b139-f7018d2782ee", "d86cccd9-8b5b-4de6-97dc-bc64557ebe27");

            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action  = "SaveClick";
            this.BtnCancel       = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 1, "2", "", true, false, "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "f35cb480-9e8f-4689-aaac-3e9fc9a0c65e", "779bc51b-fd26-41de-bd7b-0b956032e792");

            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action  = "CancelClick";
            this.BtnAdd            = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 1, "3", "", true, false, "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "19478b02-d2a9-4d7e-b7af-00070c61ff2d", "3945e867-f214-4bd1-aee2-59aeb42da2ff");

            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action  = "NewClick";
            this.BtnDelete      = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 1, "4", "", true, false, "0467218f-229b-4954-b2d4-3c5976467f76", "0467218f-229b-4954-b2d4-3c5976467f76", "e2f9f0f3-1154-4312-8d4b-b711c368ae8a");

            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action  = "DeleteClick";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnCopy = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCopy", "True", "True", 35, 1, "6", "", true, false, "be9f8d20-e484-464b-9818-a2c1b599b967", "be9f8d20-e484-464b-9818-a2c1b599b967", "6f2df9ed-c5f9-4c48-bf13-054697738eb8");

            UIControlBuilder.SetButtonAccessKey(this.BtnCopy);
            this.BtnCopy.UIModel = this.Model.ElementID;
            this.BtnCopy.Action  = "CopyClick";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "True", "True", 35, 1, "8", "", true, false, "c42c0f21-2fd7-49b2-ac54-62f811747b18", "c42c0f21-2fd7-49b2-ac54-62f811747b18", "81976b13-589c-4fdc-9b81-a362a796ce70");

            UIControlBuilder.SetButtonAccessKey(this.BtnSubmit);
            this.BtnSubmit.UIModel = this.Model.ElementID;
            this.BtnSubmit.Action  = "SubmitClick";
            this.BtnApprove        = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "True", "True", 35, 1, "9", "", true, false, "eb678a04-c7e1-44f1-b175-8f90f9903862", "eb678a04-c7e1-44f1-b175-8f90f9903862", "4f113b30-f1e1-44ae-81a9-1d335ca562e7");

            UIControlBuilder.SetButtonAccessKey(this.BtnApprove);
            this.BtnApprove.UIModel = this.Model.ElementID;
            this.BtnApprove.Action  = "ApproveClick";
            this.BtnUndoApprove     = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnUndoApprove", "True", "True", 35, 1, "10", "", true, false, "ae796775-bce3-4aed-89a9-20eaa4648a67", "ae796775-bce3-4aed-89a9-20eaa4648a67", "6b1a2c14-7e6a-4c9b-9ef7-2ec73fad6e46");

            UIControlBuilder.SetButtonAccessKey(this.BtnUndoApprove);
            this.BtnUndoApprove.UIModel = this.Model.ElementID;
            this.BtnUndoApprove.Action  = "";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 1, "12", "", true, false, "27621430-7bc7-4c0e-979e-f0108439d13e", "27621430-7bc7-4c0e-979e-f0108439d13e", "3fd37917-5541-498b-a027-0dd63261cddc");

            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action  = "FindClick";
            this.BtnList         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 1, "13", "", true, false, "c639596b-5a8c-4fc1-88bb-a3d670cda992", "c639596b-5a8c-4fc1-88bb-a3d670cda992", "5a2505df-2cee-40c4-9d5a-24e9291dfdb5");

            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action  = "ListClick";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 1, "15", "", true, false, "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "f229e163-fcd1-4f6a-a645-df86c0efd8ec", "6f7f4784-6ea9-4ae8-b754-55fe0bb87dc4");

            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action  = "FirstPage";
            this.BtnPrevPage          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 1, "16", "", true, false, "5ed368d8-7616-4696-b671-3f1c895f3b43", "5ed368d8-7616-4696-b671-3f1c895f3b43", "fd023a07-eab9-4b2d-b994-ddc924690b80");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action  = "PrevPage";
            this.BtnNextPage         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 1, "17", "", true, false, "36afec41-957c-493a-97a4-eddb136af5b4", "36afec41-957c-493a-97a4-eddb136af5b4", "f08e52c2-b50c-4f51-922e-edc4038fce20");

            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action  = "NextPage";
            this.BtnLastPage         = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 1, "18", "", true, false, "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "dc4a37d1-35de-4016-81dd-582aef3cdeb0", "c4e77041-7e74-4fc7-ab94-df893b033d35");

            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action  = "LastPage";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnAttachment = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAttachment", "True", "True", 35, 1, "20", "", true, false, "92ccef79-ad54-438c-a16e-20a4fd407b97", "92ccef79-ad54-438c-a16e-20a4fd407b97", "1b9f07d6-fb3e-45fa-94b8-86d00fb1cc0c");

            UIControlBuilder.SetButtonAccessKey(this.BtnAttachment);
            this.BtnAttachment.UIModel = this.Model.ElementID;
            this.BtnAttachment.Action  = "AttachmentClick";
            this.BtnFlow = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFlow", "True", "True", 35, 1, "21", "", true, false, "e222698c-ae3c-470a-8053-1b69905c510a", "e222698c-ae3c-470a-8053-1b69905c510a", "09d1961e-7f63-4cbd-aeac-add0078cc6fb");

            UIControlBuilder.SetButtonAccessKey(this.BtnFlow);
            this.BtnFlow.UIModel = this.Model.ElementID;
            this.BtnFlow.Action  = "FlowClick";
            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 1, "23", "", true, false, "688fd549-5a92-49cc-8072-6d5377f6409a", "688fd549-5a92-49cc-8072-6d5377f6409a", "a7992695-04f7-499d-aa13-3d1ebb2768b9");

            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action  = "OutputClick";
            this.BtnPrint          = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 1, "24", "", true, false, "27b5c615-cde5-458c-be74-833317249568", "27b5c615-cde5-458c-be74-833317249568", "5f77c777-79ec-4ebb-98bd-8cd87b58728b");

            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action  = "PrintClick";


            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }
Пример #8
0
        /// <summary>
        /// 创建按钮
        /// </summary>
        private void CreateButton(UFIDA.U9.SCM.SM.SOUIModel.StandardSOMainUIFormWebPart aa)
        {
            #region 在操作按钮下添加按钮
            //获取操作下拉按钮
            UFSoft.UBF.UI.ControlModel.IUFDropDownButton dpCustQuery = (UFSoft.UBF.UI.ControlModel.IUFDropDownButton) this.part.GetUFControlByName(this.part.TopLevelContainer, "DDBtnOperation");
            //生成佣金
            BtnBrokerage              = new UFWebMenuAdapter();
            BtnBrokerage.Text         = "整单佣金生成";
            BtnBrokerage.ID           = "BtnBrokerage";
            BtnBrokerage.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnBrokerage_ItemClick);
            BtnBrokerage.AutoPostBack = true;

            //生成折扣
            BtnDiscount              = new UFWebMenuAdapter();
            BtnDiscount.Text         = "整单折扣生成";
            BtnDiscount.ID           = "BtnDiscount";
            BtnDiscount.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnDiscount_ItemClick);
            BtnDiscount.AutoPostBack = true;

            BtnSOBom              = new UFWebMenuAdapter();
            BtnSOBom.Text         = "整单BOM生成";
            BtnSOBom.ID           = "BtnSOBom";
            BtnSOBom.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnSOBom_ItemClick);
            BtnSOBom.AutoPostBack = true;

            BtnSubItemConfirm              = new UFWebMenuAdapter();
            BtnSubItemConfirm.Text         = "整单包材确认";
            BtnSubItemConfirm.ID           = "BtnSubItemConfirm";
            BtnSubItemConfirm.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnSubItemConfirm_ItemClick);
            BtnSubItemConfirm.AutoPostBack = true;

            BtnSubItemCancel              = new UFWebMenuAdapter();
            BtnSubItemCancel.Text         = "整单包材取消确认";
            BtnSubItemCancel.ID           = "BtnSubItemCancel";
            BtnSubItemCancel.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnSubItemCancel_ItemClick);
            BtnSubItemCancel.AutoPostBack = true;

            BtnCreateBroAndDis              = new UFWebMenuAdapter();
            BtnCreateBroAndDis.Text         = "一键创建订单折扣&佣金";
            BtnCreateBroAndDis.ID           = "BtnCreateBroAndDis";
            BtnCreateBroAndDis.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnCreateBroAndDis_ItemClick);
            BtnCreateBroAndDis.AutoPostBack = true;

            dpCustQuery.MenuItems.Add(BtnBrokerage);
            dpCustQuery.MenuItems.Add(BtnDiscount);
            dpCustQuery.MenuItems.Add(BtnSOBom);

            dpCustQuery.MenuItems.Add(BtnSubItemConfirm);
            dpCustQuery.MenuItems.Add(BtnSubItemCancel);
            dpCustQuery.MenuItems.Add(BtnCreateBroAndDis);

            #endregion

            #region 自定义订单明细下拉按钮
            UFSoft.UBF.UI.ControlModel.IUFDropDownButton dpSODetail = new UFWebDropDownButtonAdapter();
            dpSODetail.Text = "订单明细";
            dpSODetail.ID   = "dpSODetail";

            IUFMenu BtnDiscountDetail = new UFWebMenuAdapter();
            BtnDiscountDetail.Text         = "订单折扣";
            BtnDiscountDetail.ID           = "BtnDiscountDetail";
            BtnDiscountDetail.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnDiscountDetail_ItemClick);
            BtnDiscountDetail.AutoPostBack = true;

            //订单佣金
            IUFMenu BtnOrderBrokerage = new UFWebMenuAdapter();
            BtnOrderBrokerage.Text         = "订单佣金";
            BtnOrderBrokerage.ID           = "BtnOrderBrokerage";
            BtnOrderBrokerage.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnOrderBrokerage_ItemClick);
            BtnOrderBrokerage.AutoPostBack = true;

            //订单费用
            IUFMenu BtnFeeAmount = new UFWebMenuAdapter();
            BtnFeeAmount.Text         = "订单费用";
            BtnFeeAmount.ID           = "BtnFeeAmount";
            BtnFeeAmount.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnFeeAmount_ItemClick);
            BtnFeeAmount.AutoPostBack = true;

            //订单Bom
            IUFMenu BtnOrderBom = new UFWebMenuAdapter();
            BtnOrderBom.Text         = "随单Bom";
            BtnOrderBom.ID           = "BtnOrderBom";
            BtnOrderBom.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnOrderBom_ItemClick);
            BtnOrderBom.AutoPostBack = true;

            IUFMenu BtnAssessType = new UFWebMenuAdapter();
            BtnAssessType.Text         = "评估类型";
            BtnAssessType.ID           = "BtnAssessType";
            BtnAssessType.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnAssessType_ItemClick);
            BtnAssessType.AutoPostBack = true;

            IUFMenu BtnForecast = new UFWebMenuAdapter();
            BtnForecast.Text         = "预测订单";
            BtnForecast.ID           = "BtnForecast";
            BtnForecast.ItemClick   += new UFSoft.UBF.UI.WebControls.MenuItemHandle(BtnForecast_ItemClick);
            BtnForecast.AutoPostBack = true;

            dpSODetail.MenuItems.Add(BtnOrderBrokerage);
            dpSODetail.MenuItems.Add(BtnFeeAmount);
            dpSODetail.MenuItems.Add(BtnOrderBom);
            dpSODetail.MenuItems.Add(BtnDiscountDetail);
            dpSODetail.MenuItems.Add(BtnAssessType);
            dpSODetail.MenuItems.Add(BtnForecast);

            IUFCard card = (IUFCard)part.GetUFControlByName(part.TopLevelContainer, "Card0");
            card.Controls.Add(dpSODetail);
            CommonFunctionExtend.Layout(card, dpSODetail, 18, 0);
            #endregion

            #region 在工具栏加按钮
            IUFToolbar _Toolbar = (IUFToolbar)part.GetUFControlByName(part.TopLevelContainer, "Toolbar1");

            btnPrints = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "btnPrints", "True", "True", 70, 28, "7", "", true, false, "36BA88E0-FC28-402e-B9BA-3745A6771687", "36BA88E0-FC28-402e-B9BA-3745A6771687", "9307E981-85AA-4f19-ADB7-340D159F4A01");
            UIControlBuilder.SetButtonAccessKey(btnPrints);
            btnPrints.UIModel = part.Model.ElementID;
            btnPrints.Action  = "";
            btnPrints.Text    = "唛头打印";
            ((UFWebToolbarAdapter)_Toolbar).Items.Add(btnPrints as System.Web.UI.WebControls.WebControl);
            btnPrints.Click += new EventHandler(CustomerItemPrint_Click);
            #endregion
        }