using System; using System.Text; using System.Collections; using System.Xml; using System.Data; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Resources; using System.Reflection; using System.Globalization; using System.Threading; using Telerik.WebControls; using UFSoft.UBF.UI.WebControls; using UFSoft.UBF.UI.WebControls.InterActionComponenet; using UFSoft.UBF.Util.Log; using UFSoft.UBF.Util.Context; //using MagicAjax.UI.Controls; using UFSoft.UBF.Report.UI.ReportView.Web; using UFSoft.UBF.UI.WebControlAdapter; using UFSoft.UBF.UI.FormProcess; using UFSoft.UBF.UI.IView; using UFSoft.UBF.UI.Engine; using UFSoft.UBF.UI.Engine.Builder; using UFSoft.UBF.UI.Engine.Authorization; using UFSoft.UBF.UI.MD.Runtime; using UFSoft.UBF.UI.ActionProcess; using UFSoft.UBF.UI.ControlModel; using UFSoft.UBF.UI.Controls; using UFSoft.UBF.UI.WebControls.Association; using UFSoft.UBF.UI.WebControls.ClientCallBack; using System.Web.UI; using UFSoft.UBF.UI.UIFormPersonalization; using System.Collections.Specialized; /*********************************************************************************************** * Form ID:1d17c30a-3581-49f1-b0c4-5428b2772690 * Form Name:CustPrintReferenceRef * UIFactory Auto Generator ***********************************************************************************************/ namespace CustPrintReferenceRef { [FormRegister("UFIDA.U9.Cust.WC.CustPOSendMailUI","CustPrintReferenceRef.CustPrintReferenceRefWebPart", "UFIDA.U9.Cust.WC.CustPOSendMailUI.WebPart", "1d17c30a-3581-49f1-b0c4-5428b2772690","WebPart", "False", 580, 408)] ///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.WC.CustPOSendMailUI', 'CustPrintReferenceRef.CustPrintReferenceRefWebPart', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.WebPart', '1d17c30a-3581-49f1-b0c4-5428b2772690') /// public partial class CustPrintReferenceRefWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm { #region Page Controller/Code Behind private static readonly ILogger logger = LoggerManager.GetLogger(typeof(CustPrintReferenceRefWebPart)); private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName; //private string displayNamePostfix = "displayName"; #region 强类型化基类属性. public new CustPrintReferenceRefAction Action { get { return (CustPrintReferenceRefAction)base.Action; } set { base.Action = value; } } CustPrintReferenceRefModel _uimodel=null; public new CustPrintReferenceRefModel Model { get { if(_uimodel == null){ _uimodel = new CustPrintReferenceRefModel(); } return _uimodel; } set { _uimodel = value; } } protected override IUIModel UIModel{ get{ return this.Model; } set{ this.Model = value as CustPrintReferenceRefModel; } } #endregion public FormAdjust adjust; #region variable declaration IUFCard Card4; IUFLabel Label0; IUFFldDropDownList SelectList; IUFWizardControl WizardControl0; IUFLabel lblContinueCheckBox; IUFFldCheckBox ContinueCheckBox; IUFButton FindButton; IUFFldCheckBox CheckBox; IUFCard Card6; IUFCard CardForRefQueryCase; IUFButton QryButton; IUFLabel lbCase; IUFFldDropDownList DDLCase; IUFCard Card1; IUFButton ConfirmButton; IUFButton CancelButton; IUFDataGrid DataGrid; IUFRadioBoxList MatchTypeRadioBoxList; UpdatePanel updatePanel; HiddenField wpFindID; IUFContainer topLevelPanel; IUFSeparator SeparatorInFavorites; IUFButton BtnDefaultValues; #endregion #region constructor public CustPrintReferenceRefWebPart() { FormID = "1d17c30a-3581-49f1-b0c4-5428b2772690"; IsAutoSize = bool.Parse("False"); } #endregion //获取档案版型结果: #region eventBind and databind private void EventBind() { //事件绑定模板 //Button控件事件 this.FindButton.Click += new EventHandler(FindButton_Click); //Button控件事件 this.QryButton.Click += new EventHandler(QryButton_Click); //Button控件事件 this.ConfirmButton.Click += new EventHandler(ConfirmButton_Click); //Button控件事件 this.CancelButton.Click += new EventHandler(CancelButton_Click); //Grid控件事件 ((UFWebDataGridAdapter)this.DataGrid).RowDoubleClick += new GridRowDBClickedDelegate(DataGrid_GridRowDbClicked); //((UFWebDataGridAdapter)this.DataGrid).DBClickAutoPostBack = true; //Grid控件的分页事件 ((UFWebDataGridAdapter)this.DataGrid).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid_GridMakePageEventHandler); //Grid控件的客户化筛选,定位事件 ((UFWebDataGridAdapter)this.DataGrid).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid_GridCustomFilterHandler); AfterEventBind(); } #endregion #region override method protected override void OnLoad(EventArgs e) { base.OnLoad2(e); } protected override void OnLoadDataDo(EventArgs e) { adjust.ProcessAdjustBeforeOnLoad(this); if (UIEngineHelper.IsDataBind(PageStatus, this)) { if(this.Model==null){ this.Model = new CustPrintReferenceRefModel(); } OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{}); OnLoadData(this); this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这. } else { if(this.UseQueryCase){ UFIDA.UBF.Query.CommonService.RefQueryHelper.AfterOnLoad_Qry_DefaultImpl(this.Action); } //去除.已经移入到OnInit()中. //this.Model = (CustPrintReferenceRefModel)this.CurrentState[this.TaskId.ToString()]; } adjust.ProcessAdjustAfterOnLoadData(this); AfterOnLoad(); adjust.ProcessAdjustAfterOnLoad(this); } protected override void OnPreRender(EventArgs e) { base.OnPreRender2(e); } protected override void OnPreRenderDo(EventArgs e) { adjust.ProcessAdjustBeforeOnPreRender(this); base.OnPreRender(e); this.CurrentState[this.TaskId.ToString()] = this.Model; RegisterClearWebPartPadding(); UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this); if (IsDataBinding) //2006-9-7 可由开发人员控制 { BeforeUIModelBinding(); UFIDA.U9.UI.PDHelper.CommonReferenceHelper.LocateRecordFromFocusID(this, this.DataGrid); if(!Page.IsPostBack) { EnumTypeBinding.BindEnumControls(this); } UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this); adjust.ProcessAdjustBeforeDataBinding(this); if (this.IsOnlyDataBinding) { this.DataBinding(); } adjust.ProcessAdjustAfterDataBinding(this); if(this.UseQueryCase){ UFIDA.UBF.Query.CommonService.RefQueryHelper.AfterUIModelBinding_Qry_DefaultImpl(this.Action); } AfterUIModelBinding(); } adjust.ProcessAdjustAfterOnPreRender(this); } protected override void OnInit(EventArgs e) { base.OnInit2(e); } protected override void OnInitDo(EventArgs e) { this.Page.InitComplete += new EventHandler(Page_InitComplete); WebPartBuilder.InitWebPart(this); this.Action = new CustPrintReferenceRefAction(this); adjust = new FormAdjust(); CreateFormChildControls(); DialogNoPersonalization = true; if(!UseQueryCase){ CardForRefQueryCase.Visible=false; UFGrid sortGrid = this.GetUFControlByName(this.TopLevelContainer, "DataGrid") as UFGrid; if (sortGrid != null) sortGrid.ShowCustomFilterToolBar = false; } else { UFIDA.UBF.Query.CommonService.RefQueryHelper.AfterCreateChildControls_Qry_DefaultImpl(this.Action); UFIDA.U9.UI.PDHelper.PDFormMessage.ShowQryDialogForReference(this,this.QryButton); } } void Page_InitComplete(object sender, EventArgs e) { adjust.ProcessInit(this); } #endregion #endregion /// /// WebPart View /// #region view Create Contorls private void CreateFormChildControls() { IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"CustPrintReferenceRef",true,580,408); CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 4, 0, 5, 10, 5, 10, 5); InitViewBindingContainer(this, _panel, null, "", "", null, 1, ""); UIControlBuilder.BuildContainerGridLayout(_panel, 5,new GridColumnDef[]{new GridColumnDef(560,bool.Parse("True")),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("False")),new GridRowDef(318,bool.Parse("False")),new GridRowDef(20,bool.Parse("False")),}); //???还有用么? topLevelPanel = _panel; UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID); _BuilderControl_Card4(_panel); UIControlBuilder.BuilderUFControl(this.Card4, "1"); _BuilderControl_Card6(_panel); UIControlBuilder.BuilderUFControl(this.Card6, "0"); _BuilderControl_DataGrid(_panel); UIControlBuilder.BuilderUFControl(this.DataGrid, "2"); _BuilderControl_MatchTypeRadioBoxList(_panel); UIControlBuilder.BuilderUFControl(this.MatchTypeRadioBoxList, "6"); EventBind(); AfterCreateChildControls(); ((UFWebButtonAdapter)ConfirmButton).IsDefaultButton = true; } private IUFCard _BuilderControl_Card4(IUFContainer container) { IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card4",false,"none", true, true, "1","","11254696-7972-422f-bb3b-cf502e8b6047"); CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 560, 20, 0, 0, 1, 1, "100"); CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 11, 1, 0, 0, 0, 0, 0, 0); InitViewBindingContainer(this, _UFCard, null, "", "", null, 1, ""); UIControlBuilder.BuildContainerGridLayout(_UFCard, 0,new GridColumnDef[]{new GridColumnDef(45,bool.Parse("False")),new GridColumnDef(5,bool.Parse("False")),new GridColumnDef(120,bool.Parse("False")),new GridColumnDef(10,bool.Parse("False")),new GridColumnDef(180,bool.Parse("False")),new GridColumnDef(15,bool.Parse("False")),new GridColumnDef(80,bool.Parse("False")),new GridColumnDef(5,bool.Parse("False")),new GridColumnDef(30,bool.Parse("False")),new GridColumnDef(10,bool.Parse("False")),new GridColumnDef(60,bool.Parse("False")),},new GridRowDef[]{new GridRowDef(20,bool.Parse("False")),}); this.Card4 = _UFCard; ///foreach UFCard下的所有控件,增加到此容器 this.Label0 = UIControlBuilder.BuilderUFLabel(_UFCard, "Label0", "", "True", "True", "Right", 45, 20, 0, 0, 1, 1, "100","9bf97f14-74b9-4a4f-b2fc-d5bfb9c95e3a","72c9f2c1-ffd5-4b1e-9b56-eac4358348e6"); UIControlBuilder.BuilderUFControl(this.Label0, "0"); this.SelectList = UIControlBuilder.BuilderDropDownList(_UFCard, "SelectList", "", true, true, true, "Left", 0, 60, 0, 120, 20, 2, 0, 1, 1, "100",true,false,"","","95b9286b-270e-4b13-87bc-88f84803eb66"); UIControlBuilder.BuilderUIFieldBindingControl(this, this.SelectList, "False", "", null, null, ""); EnumControlsMap.Add(this.SelectList, _UFCard); UIControlBuilder.BuilderUFControl(this.SelectList, "1"); _BuilderControl_WizardControl0(_UFCard); UIControlBuilder.BuilderUFControl(this.WizardControl0, "2"); this.lblContinueCheckBox = UIControlBuilder.BuilderUFLabel(_UFCard, "lblContinueCheckBox", "", "False", "True", "Right", 80, 20, 6, 0, 1, 1, "100","0aead14b-b05a-4582-9aca-34da4f4bf7a0","798c152c-1547-4d00-a357-71a408fa4d76"); UIControlBuilder.BuilderUFControl(this.lblContinueCheckBox, "3"); this.ContinueCheckBox = UIControlBuilder.BuilderUFCheckbox(_UFCard, "ContinueCheckBox", false, true, "Left", 60, 0, 30, 20, 8, 0, 1, 1, "100",true,"lblContinueCheckBox","","65a040b0-885c-44b7-b401-1d095f8d4cbb"); UIControlBuilder.BuilderUIFieldBindingControl(this, this.ContinueCheckBox, "False", "", null, null, ""); UIControlBuilder.BuilderUFControl(this.ContinueCheckBox, "4"); this.FindButton = UIControlBuilder.BuilderUFButton(_UFCard, true, "FindButton", true, true, 60, 20, 10, 0, 1, 1, "100","R", this.Model.ElementID,"",false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","c8fd21aa-1056-4f22-a6b5-b8a98f6cce82"); UIControlBuilder.BuilderUFControl(this.FindButton, "4"); this.CheckBox = UIControlBuilder.BuilderUFCheckbox(_UFCard, "CheckBox", false, true, "Left", 60, 0, 30, 20, 0, 0, 1, 1, "100",false,"","","c2550e08-3e9d-4b56-bd0e-46174186fa13"); UIControlBuilder.BuilderUIFieldBindingControl(this, this.CheckBox, "False", "", null, null, ""); UIControlBuilder.BuilderUFControl(this.CheckBox, "5"); container.Controls.Add(_UFCard); return _UFCard; } private void _BuilderControl_WizardControl0(IUFContainer container) { IUFWizardControl _UFWizard = new UFWebWizardControlAdapter(); _UFWizard.ID = "WizardControl0"; UIControlBuilder.BuilderUFControl(_UFWizard, "True", "True", "2"); CommonBuilder.GridLayoutPropBuilder(container, _UFWizard, 180, 20, 4, 0, 1, 1, "100"); ///foreach _UFWizard下的所有控件,增加到此容器 this.WizardControl0 = _UFWizard; _UFWizard.SetWizardPageVisible(0); container.Controls.Add(_UFWizard); } private IUFCard _BuilderControl_Card6(IUFContainer container) { IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card6",false,"FunctionBar", true, true, "0","","89630b7a-544f-4630-97a8-d366f48efb12"); 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; } private IUFCard _BuilderControl_CardForRefQueryCase(IUFContainer container) { IUFCard _UFCard = UIControlBuilder.BuildCard(container,"CardForRefQueryCase",false,"none", true, true, "0","","9e75a782-4810-4471-a479-8ad49d3d5e02"); 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","146b22d6-2301-42f4-aab9-4dd6f2fdbe9f"); 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","28b561d7-594f-46d2-afa9-e096f9e97967"); 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,"","","378ec89c-962c-40de-8dba-a314f043fab1"); 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; } private IUFCard _BuilderControl_Card1(IUFContainer container) { IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card1",false,"none", true, true, "0","","d809c2c9-9465-4140-a4f8-2363486e66a4"); 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","cb4e438a-bb59-46a6-9661-3817c540ce81"); 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","f7416bad-0669-4a7b-b7a0-a59ae8ec5782"); UIControlBuilder.BuilderUFControl(this.CancelButton, "4"); container.Controls.Add(_UFCard); return _UFCard; } 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,"","15f1ae4b-2181-484e-a167-ec8b636dfd7d","15f1ae4b-2181-484e-a167-ec8b636dfd7d","b96f358f-c3c0-4019-9267-f60e9d32b388"); 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,"TemplateName0","TextBoxColumnModel", "", 0,this.Model.cRef.Fields["TemplateName"]/*TemplateName*/,"TemplateName", false, true, true, false, false, true, 0, 200, "5",true, false,"","07f616e9-79bd-4b28-878b-3fefe06d09fc","07f616e9-79bd-4b28-878b-3fefe06d09fc","69c4b760-6427-4301-91e1-4fab8164cec0"); GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","5") ; column = GridControlBuilder.GridColumnBuilder(_UFGrid,"IsDefault0","CheckBoxColumnModel", "", 0,this.Model.cRef.Fields["IsDefault"]/*IsDefault*/,"IsDefault", false, true, true, false, false, true, 22, 80, "0",true, false,"","6844fc13-b0cb-4160-a8a4-4d085db49205","6844fc13-b0cb-4160-a8a4-4d085db49205","955eeba5-902a-4a30-ad63-b952a82f3f71"); column = GridControlBuilder.GridColumnBuilder(_UFGrid,"TemplateID0","TextBoxColumnModel", "", 0,this.Model.cRef.Fields["TemplateID"]/*TemplateID*/,"TemplateID", false, false, true, false, false, true, 0, 80, "5",true, false,"","e1af8e4f-edc7-4bc7-a0ad-04ae4c598d83","e1af8e4f-edc7-4bc7-a0ad-04ae4c598d83","48896cc2-c776-416b-b9e2-53540581e9c7"); GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","5") ; } private void _BuilderControl_MatchTypeRadioBoxList(IUFContainer container) { IUFRadioBoxList _UFListControl = UIControlBuilder.BuildRadioBoxList(container,"MatchTypeRadioBoxList",true,true,"6",0,4,UFSoft.UBF.UI.ControlModel.LineOrientation.Horizontal); CommonBuilder.GridLayoutPropBuilder(container, _UFListControl, 560, 20, 0, 1, 1, 1, "100"); this.MatchTypeRadioBoxList = _UFListControl; ///foreach CheckBoxList和RadioBoxList下的所有子项 ListItem listItem = null ; listItem = UIControlBuilder.BuildListItem(container,"0", true,false,"130bc338-9958-4133-9b7f-9c185bc2455a","e45a9fa3-6aed-4ce6-a904-275fa3a3eb4b"); _UFListControl.Items.Add(listItem); listItem = UIControlBuilder.BuildListItem(container,"1", true,false,"49790074-95af-497d-ae37-16bb697f3ce6","a21b9c74-ed15-4b17-a070-72f6d0fe0773"); _UFListControl.Items.Add(listItem); listItem = UIControlBuilder.BuildListItem(container,"2", true,true,"517d6f15-ca0d-4e3b-aa58-3c85a5b2ae66","23b0d318-0d00-43f6-9833-ba8a1678f6dc"); _UFListControl.Items.Add(listItem); listItem = UIControlBuilder.BuildListItem(container,"3", true,false,"ea7795fe-8961-4c3f-8ed1-b5128be2cd75","5ec8de8a-8252-49dc-9368-6b05c7744525"); _UFListControl.Items.Add(listItem); } #endregion } }