コード例 #1
0
        private IUFCard _BuilderControl_Card1(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card1", false, "FunctionBar", true, true, "2", "", "925602a0-a0fe-4e90-8628-d8f18877e337");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 610, 25, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 11, 1, 0, 0, 0, 0, 10, 0);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 0, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(60, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(30, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("True")), });
            this.Card1 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.BtnClose = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnClose", true, true, 80, 20, 10, 0, 1, 1, "100", "", this.Model.ElementID, "", false, "020a5365-8f12-4970-b8df-17ce3ae60a68", "020a5365-8f12-4970-b8df-17ce3ae60a68", "cfd220b2-5b20-409a-abb7-7fa3520a88e5");



            UIControlBuilder.BuilderUFControl(this.BtnClose, "2");


            this.BtnOk = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnOk", true, true, 80, 20, 8, 0, 1, 1, "100", "", this.Model.ElementID, "", false, "82330bf1-36f4-411d-808f-be064fef2b78", "", "82330bf1-36f4-411d-808f-be064fef2b78");



            UIControlBuilder.BuilderUFControl(this.BtnOk, "1");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #2
0
        private IUFCard _BuilderControl_Card1(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card1", false, "none", true, true, "0", "", "200c23fb-3c3d-4dd2-b66b-1b2211e3e42a");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 170, 20, 2, 0, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 3, 1, 0, 0, 0, 0, 0, 0);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 0, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("False")), });
            this.Card1 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.ConfirmButton = UIControlBuilder.BuilderUFButton(_UFCard, true, "ConfirmButton", true, true, 80, 20, 0, 0, 1, 1, "100", "O", this.Model.ElementID, "", false, "626ebf9b-f65a-4dd5-8f32-96f84919878c", "626ebf9b-f65a-4dd5-8f32-96f84919878c", "7743bf7a-8d05-47a2-bd3a-4d335128915b");



            UIControlBuilder.BuilderUFControl(this.ConfirmButton, "3");


            this.CancelButton = UIControlBuilder.BuilderUFButton(_UFCard, true, "CancelButton", true, true, 80, 20, 2, 0, 1, 1, "100", "C", this.Model.ElementID, "", false, "020a5365-8f12-4970-b8df-17ce3ae60a68", "020a5365-8f12-4970-b8df-17ce3ae60a68", "e7319bda-9d71-4b6e-92dc-547cb0b8513f");



            UIControlBuilder.BuilderUFControl(this.CancelButton, "4");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #3
0
        private IUFCard _BuilderControl_Card6(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card6", false, "FunctionBar", true, true, "0", "", "5c0f90e1-525d-4e16-b587-b531f6b8ecab");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 560, 20, 0, 3, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 3, 1, 0, 0, 0, 0, 0, 0);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 0, new GridColumnDef[] { new GridColumnDef(360, bool.Parse("False")), new GridColumnDef(30, bool.Parse("False")), new GridColumnDef(170, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("False")), });
            this.Card6 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            _BuilderControl_CardForRefQueryCase(_UFCard);


            UIControlBuilder.BuilderUFControl(this.CardForRefQueryCase, "0");



            _BuilderControl_Card1(_UFCard);


            UIControlBuilder.BuilderUFControl(this.Card1, "0");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #4
0
        /// <summary>
        /// UI界面布局,添加按钮控件
        /// </summary>
        /// <param name="Part"></param>
        /// <param name="args"></param>
        public override void AfterInit(IPart Part, EventArgs args)
        {
            base.AfterInit(Part, args);
            iPart = Part;
            // 采购(PO)变更单按钮
            IUFButton btnPOModify = new UFWebButtonAdapter();

            btnPOModify.Text         = "采购交期重排";
            btnPOModify.ID           = "btnPOModify";
            btnPOModify.AutoPostBack = true;
            btnPOModify.ToolTip      = "采购交期重排";
            btnPOModify.Visible      = true;
            btnPOModify.Width        = System.Web.UI.WebControls.Unit.Pixel(100);
            // 委外采购(WPO)变更单按钮
            IUFButton btnWPOModify = new UFWebButtonAdapter();

            btnWPOModify.Text         = "委外交期重排";
            btnWPOModify.ID           = "btnWPOModify";
            btnWPOModify.AutoPostBack = true;
            btnWPOModify.ToolTip      = "委外交期重排";
            btnWPOModify.Visible      = true;
            btnWPOModify.Width        = System.Web.UI.WebControls.Unit.Pixel(100);

            // 将按钮加入到按钮栏
            IUFCard iCard = (IUFCard)Part.GetUFControlByName(Part.TopLevelContainer, "Card0");

            iCard.Controls.Add(btnPOModify);
            CommonFunction.Layout(iCard, btnPOModify, 6, 0);
            btnPOModify.Click += new EventHandler(BtnPOModify_Click);

            // 将按钮加入到按钮栏
            iCard.Controls.Add(btnWPOModify);
            CommonFunction.Layout(iCard, btnWPOModify, 8, 0);
            btnWPOModify.Click += new EventHandler(BtnWPOModify_Click);
        }
コード例 #5
0
        public override void AfterInit(IPart Part, EventArgs e)
        {
            base.AfterInit(Part, e);
            uiPart = Part;

            IUFButton btnCustSubmit = new UFWebButtonAdapter();

            btnCustSubmit.Text         = "提交流程";
            btnCustSubmit.ToolTip      = "提交流程";
            btnCustSubmit.ID           = "btnCustSubmit";
            btnCustSubmit.AutoPostBack = true;
            btnCustSubmit.Visible      = true;
            btnCustSubmit.Enabled      = false;

            //OA流程按钮
            IUFButton btnOAFlow = new UFWebButtonAdapter();

            btnOAFlow.Text         = "查看流程";
            btnOAFlow.ToolTip      = "查看流程";
            btnOAFlow.ID           = "btnOAFlow";
            btnOAFlow.AutoPostBack = true;
            btnOAFlow.Visible      = true;
            btnOAFlow.Enabled      = false;


            IUFCard card = (IUFCard)Part.GetUFControlByName(Part.TopLevelContainer, "Card4");

            card.Controls.Add(btnCustSubmit);
            CommonFunction.Layout(card, btnCustSubmit, 14, 0);
            btnOAFlow.Click += btnCustSubmit_Click;

            card.Controls.Add(btnOAFlow);
            CommonFunction.Layout(card, btnOAFlow, 12, 0);
            btnOAFlow.Click += btnOAFlow_Click;
        }
コード例 #6
0
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card0", false, "FunctionBar", true, true, "3", "", "225fea37-8cd4-42ef-9df6-16b4fdc06b58");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 17, 1, 0, 5, 10, 3, 10, 2);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 5, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(120, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(74, bool.Parse("True")), new GridColumnDef(117, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(120, bool.Parse("True")), new GridColumnDef(1, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("True")), });
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.Label0 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label0", "", "True", "True", "Right", 80, 20, 4, 0, 1, 1, "100", "7fb97e0d-d794-43d8-9b10-4ea28a2d6bd3", "61e98302-3cc9-41c7-bed1-41504117637a");



            UIControlBuilder.BuilderUFControl(this.Label0, "2");


            this.DDLCase = UIControlBuilder.BuilderDropDownList(_UFCard, "DDLCase", "", true, true, true, "Left", 0, 60, 0, 120, 20, 6, 0, 1, 1, "100", true, false, "", "", "60c2ef1d-b73a-41ae-9737-0716d98f163e");
            UIControlBuilder.BuilderUIFieldBindingControl(this, this.DDLCase, "False", "", null, null, "");
            EnumControlsMap.Add(this.DDLCase, _UFCard);
            this.DDLCase.ContentChanged += new EventHandler(DDLCase_TextChanged);
            this.DDLCase.AutoPostBack    = true;



            UIControlBuilder.BuilderUFControl(this.DDLCase, "3");


            this.OnLookCase = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnLookCase", true, true, 80, 20, 0, 0, 1, 1, "100", "", this.Model.ElementID, "OnLookCase", false, "d865afc4-e738-4328-82a8-c756f9c045b7", "d865afc4-e738-4328-82a8-c756f9c045b7", "1f030d84-c2fd-4bcf-bf98-2016fa0bc860");



            UIControlBuilder.BuilderUFControl(this.OnLookCase, "1");


            this.btnSaveCurrentQueryCase = UIControlBuilder.BuilderUFButton(_UFCard, true, "btnSaveCurrentQueryCase", true, true, 80, 20, 8, 0, 1, 1, "100", "", this.Model.ElementID, "btnSaveCurrentQueryCase", false, "ee3db4ba-0940-4da1-86f9-7473dc2e9526", "ee3db4ba-0940-4da1-86f9-7473dc2e9526", "fd27ce39-cfd2-4866-aaae-d652e3124e77");



            UIControlBuilder.BuilderUFControl(this.btnSaveCurrentQueryCase, "4");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #7
0
        public void CreateButton(UFSoft.UBF.UI.IView.IPart ipart)
        {
            //按钮属性
            btnAllot.Text         = "销售业务员分配";
            btnAllot.ID           = "btnAllot";
            btnAllot.Visible      = true;
            btnAllot.AutoPostBack = true;

            //设定按钮位置
            IUFCard card = (IUFCard)part.GetUFControlByName(ipart.TopLevelContainer, "Card0");

            card.Controls.Add(btnAllot);
            CommonFunctionExtend.Layout(card, btnAllot, 6, 0);
            //按钮事件
            btnAllot.Click += new EventHandler(btnAllot_Click);
        }
コード例 #8
0
        public override void AfterInit(IPart Part, EventArgs e)
        {
            base.AfterInit(Part, e);
            uiPart = Part;
            IUFButton btnForPlugIn = new UFWebButtonAdapter();

            btnForPlugIn.Text         = "OA请款流程";
            btnForPlugIn.ToolTip      = "OA请款流程";
            btnForPlugIn.ID           = "btnForPlugIn";
            btnForPlugIn.AutoPostBack = true;
            btnForPlugIn.Visible      = true;

            IUFCard card = (IUFCard)Part.GetUFControlByName(Part.TopLevelContainer, "Card0");

            card.Controls.Add(btnForPlugIn);
            CommonFunction.Layout(card, btnForPlugIn, 16, 0);
            btnForPlugIn.Click += btnPlugIn_Click;
        }
コード例 #9
0
        //public override

        //在试算页面创建按钮“检查按钮”
        public void CreateButton(UFSoft.UBF.UI.IView.IPart ipart)
        {
            //按钮属性
            btnItemSubTable.Text         = "料品子表";
            btnItemSubTable.ID           = "btnAllot";
            btnItemSubTable.Visible      = true;
            btnItemSubTable.AutoPostBack = true;

            //设定按钮位置
            IUFCard card = (IUFCard)part.GetUFControlByName(ipart.TopLevelContainer, "Card0");

            card.Controls.Add(btnItemSubTable);

            CommonFunctionExtend.Layout(card, btnItemSubTable, 8, 0);
            // CommonFunction.Layout(card, btnBind, 10, 0);

            //按钮事件
            btnItemSubTable.Click += new EventHandler(btnItemSubTable_Click);
        }
コード例 #10
0
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card0", false, "FunctionBar", true, true, "3", "", "9b1135f8-7ee0-4e19-a723-86e7dbfb10c8");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 17, 1, 0, 5, 10, 3, 10, 2);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 5, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(114, bool.Parse("True")), new GridColumnDef(117, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(120, bool.Parse("True")), new GridColumnDef(1, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("True")), });
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.Label0 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label0", "", "True", "True", "Right", 80, 20, 13, 0, 1, 1, "100", "7fb97e0d-d794-43d8-9b10-4ea28a2d6bd3", "422ca402-43e3-4d35-bcf7-72c0c5b6af64");



            UIControlBuilder.BuilderUFControl(this.Label0, "2");


            this.DDLCase = UIControlBuilder.BuilderDropDownList(_UFCard, "DDLCase", "", true, true, true, "Left", 0, 60, 0, 120, 20, 15, 0, 1, 1, "100", true, false, "", "", "c7d03547-4861-43ad-b13e-d0e93b7de842");
            UIControlBuilder.BuilderUIFieldBindingControl(this, this.DDLCase, "False", "", null, null, "");
            EnumControlsMap.Add(this.DDLCase, _UFCard);
            this.DDLCase.ContentChanged += new EventHandler(DDLCase_TextChanged);
            this.DDLCase.AutoPostBack    = true;



            UIControlBuilder.BuilderUFControl(this.DDLCase, "3");


            this.OnLookCase = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnLookCase", true, true, 80, 20, 0, 0, 1, 1, "100", "", this.Model.ElementID, "OnLookCase", false, "1a0b73c4-9add-4dfa-9c23-45505075c7a1", "1a0b73c4-9add-4dfa-9c23-45505075c7a1", "7a847b62-5747-42db-abed-e41fb6130a76");



            UIControlBuilder.BuilderUFControl(this.OnLookCase, "1");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #11
0
        private IUFCard _BuilderControl_CardForRefQueryCase(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "CardForRefQueryCase", false, "none", true, true, "0", "", "019d35a9-001f-4b5a-8a25-514ccfbda659");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 360, 20, 0, 0, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 6, 1, 0, 0, 0, 0, 0, 0);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 0, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(150, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("False")), });
            this.CardForRefQueryCase = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.QryButton = UIControlBuilder.BuilderUFButton(_UFCard, true, "QryButton", true, true, 80, 20, 0, 0, 1, 1, "100", "", this.Model.ElementID, "", false, "3664768b-36ca-44ab-9583-8d85fb432e43", "3664768b-36ca-44ab-9583-8d85fb432e43", "043c1981-7284-4454-8ddc-45ce0e4ad280");



            UIControlBuilder.BuilderUFControl(this.QryButton, "1");


            this.lbCase = UIControlBuilder.BuilderUFLabel(_UFCard, "lbCase", "", "True", "True", "Right", 80, 20, 3, 0, 1, 1, "100", "7fb97e0d-d794-43d8-9b10-4ea28a2d6bd3", "6da10b4e-e203-4ba8-9f16-5d21c2e0f86c");



            UIControlBuilder.BuilderUFControl(this.lbCase, "1");


            this.DDLCase = UIControlBuilder.BuilderDropDownList(_UFCard, "DDLCase", "", true, true, true, "Left", 0, 60, 0, 150, 20, 5, 0, 1, 1, "100", true, false, "", "", "19b57966-9a98-4a96-af80-3714b283af1e");
            UIControlBuilder.BuilderUIFieldBindingControl(this, this.DDLCase, "False", "", null, null, "");
            EnumControlsMap.Add(this.DDLCase, _UFCard);
            this.DDLCase.ContentChanged += new EventHandler(DDLCase_TextChanged);
            this.DDLCase.AutoPostBack    = true;



            UIControlBuilder.BuilderUFControl(this.DDLCase, "2");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #12
0
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card0", false, "FunctionBar", true, true, "3", "", "d79838fd-251e-4c64-96c8-6271823f1d85");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 17, 1, 0, 5, 10, 3, 10, 2);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 5, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(114, bool.Parse("True")), new GridColumnDef(117, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(120, bool.Parse("True")), new GridColumnDef(1, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("True")), });
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.Label0 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label0", "", "True", "True", "Right", 80, 20, 13, 0, 1, 1, "100", "7fb97e0d-d794-43d8-9b10-4ea28a2d6bd3", "eec8bc9a-9b0b-40be-a6b5-487c6620453a");



            UIControlBuilder.BuilderUFControl(this.Label0, "2");


            this.DDLCase = UIControlBuilder.BuilderDropDownList(_UFCard, "DDLCase", "", true, true, true, "Left", 0, 60, 0, 120, 20, 15, 0, 1, 1, "100", true, false, "", "", "dcbf4056-cfbc-49a3-9811-e59e3c20acd4");
            UIControlBuilder.BuilderUIFieldBindingControl(this, this.DDLCase, "False", "", null, null, "");
            EnumControlsMap.Add(this.DDLCase, _UFCard);
            this.DDLCase.ContentChanged += new EventHandler(DDLCase_TextChanged);
            this.DDLCase.AutoPostBack    = true;



            UIControlBuilder.BuilderUFControl(this.DDLCase, "3");


            this.OnLookCase = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnLookCase", true, true, 80, 20, 0, 0, 1, 1, "100", "", this.Model.ElementID, "OnLookCase", false, "ec992ce7-5a2c-4b1e-9a8a-24dd4419374e", "ec992ce7-5a2c-4b1e-9a8a-24dd4419374e", "918cda91-55ae-4646-b515-5c034e60c0be");



            UIControlBuilder.BuilderUFControl(this.OnLookCase, "1");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #13
0
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container, "Card0", false, "FunctionBar", true, true, "3", "", "09d465be-7210-4271-a298-30dd8252ab81");

            CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 17, 1, 0, 5, 10, 3, 10, 2);
            InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, "");
            UIControlBuilder.BuildContainerGridLayout(_UFCard, 5, new GridColumnDef[] { new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(10, bool.Parse("True")), new GridColumnDef(80, bool.Parse("True")), new GridColumnDef(114, bool.Parse("True")), new GridColumnDef(117, bool.Parse("False")), new GridColumnDef(80, bool.Parse("False")), new GridColumnDef(10, bool.Parse("False")), new GridColumnDef(120, bool.Parse("True")), new GridColumnDef(1, bool.Parse("False")), }, new GridRowDef[] { new GridRowDef(20, bool.Parse("True")), });
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件,增加到此容器



            this.Label0 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label0", "", "True", "True", "Right", 80, 20, 13, 0, 1, 1, "100", "7fb97e0d-d794-43d8-9b10-4ea28a2d6bd3", "8c5198cc-5eac-4274-b6e8-ce84f7788e96");



            UIControlBuilder.BuilderUFControl(this.Label0, "2");


            this.DDLCase = UIControlBuilder.BuilderDropDownList(_UFCard, "DDLCase", "", true, true, true, "Left", 0, 60, 0, 120, 20, 15, 0, 1, 1, "100", true, false, "", "", "dfc6492f-3980-431d-8d35-745e0a1852ac");
            UIControlBuilder.BuilderUIFieldBindingControl(this, this.DDLCase, "False", "", null, null, "");
            EnumControlsMap.Add(this.DDLCase, _UFCard);
            this.DDLCase.ContentChanged += new EventHandler(DDLCase_TextChanged);
            this.DDLCase.AutoPostBack    = true;



            UIControlBuilder.BuilderUFControl(this.DDLCase, "3");


            this.OnLookCase = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnLookCase", true, true, 80, 20, 0, 0, 1, 1, "100", "", this.Model.ElementID, "OnLookCase", false, "00139537-114d-4f4d-96cf-439440da9da5", "00139537-114d-4f4d-96cf-439440da9da5", "fc9dcf74-89af-498b-889a-08a6e20d3655");



            UIControlBuilder.BuilderUFControl(this.OnLookCase, "1");



            container.Controls.Add(_UFCard);
            return(_UFCard);
        }
コード例 #14
0
        /// <summary>
        /// UI界面布局,添加按钮控件
        /// </summary>
        /// <param name="Part"></param>
        /// <param name="args"></param>
        public override void AfterInit(IPart Part, EventArgs args)
        {
            base.AfterInit(Part, args);
            iPart = Part;
            // 增加备料预留量查询按钮
            IUFButton btnCalWPOQuota = new UFWebButtonAdapter();

            btnCalWPOQuota.Text         = "比例分配";
            btnCalWPOQuota.ID           = "btnCalWPOQuota";
            btnCalWPOQuota.AutoPostBack = true;
            btnCalWPOQuota.ToolTip      = "比列分配";
            btnCalWPOQuota.Visible      = true;

            // 将按钮加入到按钮栏
            IUFCard iCard = (IUFCard)Part.GetUFControlByName(Part.TopLevelContainer, "Card0");

            iCard.Controls.Add(btnCalWPOQuota);
            CommonFunction.Layout(iCard, btnCalWPOQuota, 4, 0);
            btnCalWPOQuota.Click += new EventHandler(BtnCalWPOQuota_Click);
        }
コード例 #15
0
        /// <summary>
        /// UI界面布局,添加按钮控件
        /// </summary>
        /// <param name="Part"></param>
        /// <param name="args"></param>
        public override void AfterInit(IPart Part, EventArgs args)
        {
            base.AfterInit(Part, args);
            iPart = Part;
            // 增加备料预留量查询按钮
            IUFButton btnTryCalcList2 = new UFWebButtonAdapter();

            btnTryCalcList2.Text         = "比例试算";
            btnTryCalcList2.ID           = "btnTryCalc2";
            btnTryCalcList2.AutoPostBack = true;
            btnTryCalcList2.ToolTip      = "比例试算";
            btnTryCalcList2.Visible      = true;

            // 将按钮加入到按钮栏
            IUFCard iCard = (IUFCard)Part.GetUFControlByName(Part.TopLevelContainer, "Card1");

            iCard.Controls.Add(btnTryCalcList2);
            CommonFunction.Layout(iCard, btnTryCalcList2, 5, 0);
            btnTryCalcList2.Click += new EventHandler(BtnTryCalcList2_Click);
        }