12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Web.UI;
- namespace Ant.Frame
- {
- public class SelectControl
- {
- BaseControl cs = null;
- Control control = new Control();
- //根据条件返回相应的对象
- public SelectControl(ControlType type, Control con)
- {
- switch (type)
- {
- //case ControlType.Ext:
- // cs = new ExtControl(con); break;
- case ControlType.Net:
- cs = new NetControl(con); break;
- default:
- cs = new NetControl(con); break;
- }
- control = con;
- }
- public void SetResult(List<object> enty, string lbl)
- {
- cs.SetterControl(enty, lbl);
- }
- public T GetResult<T>(T enty, string lbl)
- {
- return cs.GetterControl<T>(enty, lbl);
- }
- }
- }
|