Пример #1
0
 public CtrlBase(string id, EasyUICtrlPrepareData pData)
 {
     Id          = id;
     _dataOption = pData.DataOptions;
     _style      = pData.Style;
     _class      = pData.ClassNames;
     _attr       = pData.Attr;
 }
Пример #2
0
 public MultiTextBox(string id, EasyUICtrlPrepareData pData)
     : base(id, pData)
 {
     if (_dataOption.Count == 0)
     {
         _dataOption = DefaultValue.MultiTextBoxJson().JsonToDictionary();
     }
 }
Пример #3
0
        public static CtrlBase GetCtrl(string controlTypeName, string id, EasyUICtrlPrepareData prepareData)
        {
            CtrlBase ctrl = null;

            if (controlTypeName == ControlType.TextBox.ToString())
            {
                ctrl = new TextBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.MultiTextBox.ToString())
            {
                ctrl = new MultiTextBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.ComboBox.ToString())
            {
                ctrl = new ComboBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.PopupSelector.ToString())
            {
                ctrl = new PopupSelector(id, prepareData);
            }
            else if (controlTypeName == ControlType.DateBox.ToString())
            {
                ctrl = new DateBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.FileBox.ToString())
            {
                ctrl = new FileBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.MultiFileBox.ToString())
            {
                ctrl = new MultiFileBox(id, prepareData);
            }
            else if (controlTypeName == ControlType.SubDataGrid.ToString())
            {
                ctrl = new SubDataGrid(id, prepareData);
            }
            else
            {
                return(new CtrlBase(id, prepareData));
            }

            ctrl.Prepare();
            return(ctrl);
        }
Пример #4
0
 public DateBox(string id, EasyUICtrlPrepareData pData)
     : base(id, pData)
 {
 }
Пример #5
0
 public MultiFileBox(string id, EasyUICtrlPrepareData pData)
     : base(id, pData)
 {
 }
Пример #6
0
 public Button(string id, EasyUICtrlPrepareData pData, string title)
     : base(id, pData)
 {
     _title = title;
 }
Пример #7
0
 public SubDataGrid(string id, EasyUICtrlPrepareData pData)
     : base(id, pData)
 {
     //_colList = collist;
 }
Пример #8
0
 public DataGrid(string id, EasyUICtrlPrepareData pData, List <Dictionary <string, object> > collist)
     : base(id, pData)
 {
     _colList = collist;
 }
Пример #9
0
 public PopupSelector(string id, EasyUICtrlPrepareData pData)
     : base(id, pData)
 {
 }