/// <summary> /// 数据源列值改变 /// </summary> /// <param name="sender"></param> /// <param name="args"></param> protected void UCDataSourceOnColumnChanged(Object sender, DataColumnChangeEventArgs args) { if (args.Column.ColumnName == "SelectFlag")//选择列值改变的情况下绑定选择项 { UCFabBaseSelectCtl ucfbsc = UCFindSelectCtl(); if (ucfbsc != null) { m_UCDataSource.AcceptChanges(); DataTable dt = UCSelectDataSource;//实际是重新执行已选数据 if (radgViewType.SelectedIndex == 0) { ucfbsc.UCAct();//后续如果选择项是多模式的情况下将重新处理调用 } } } }
/// <summary> /// 已选控件 /// </summary> void UCActSelect() { int colCount = UCFabParamSet.GetIntValueByID(6002);//码单显示横向模式列数 if (colCount <= 0) { colCount = 10; } //加载结果展示控件BEGIN panGroupTopLeft.Controls.Clear(); UCFabBaseSelectCtl ucfbsc = CreateFabSelectControl(); ucfbsc.UCDataSource = UCSelectDataSource; ucfbsc.UCColumnCount = colCount;// 10; ucfbsc.UCFabSelect_CancelOne += new UCFabSelectCancel(ucSelect_CancelOne); ucfbsc.Dock = DockStyle.Fill; panGroupTopLeft.Controls.Add(ucfbsc); ucfbsc.UCAct(); //加载结果展示控件END }