Ejemplo n.º 1
0
        private static void GetCSharpFormGlobalsRec(_FG_WebForm fG_WebForm, EbControlContainer _container, WebformData _formdata)
        {
            SingleTable Table = _formdata.MultipleTables.ContainsKey(_container.TableName) ? _formdata.MultipleTables[_container.TableName] : new SingleTable();

            if (_container is EbDataGrid)
            {
                _FG_DataGrid fG_DataGrid = new _FG_DataGrid(_container as EbDataGrid, Table);
                fG_WebForm.DataGrids.Add(fG_DataGrid);
            }
            else if (_container is EbReview)
            {
                fG_WebForm.Review = new _FG_Review(_container as EbReview, Table);
            }
            else
            {
                foreach (EbControl _control in _container.Controls)
                {
                    if (_control is EbControlContainer)
                    {
                        GetCSharpFormGlobalsRec(fG_WebForm, _control as EbControlContainer, _formdata);
                    }
                    else
                    {
                        object data = null;
                        if (_formdata.MultipleTables.ContainsKey(_container.TableName) && _formdata.MultipleTables[_container.TableName].Count > 0)
                        {
                            data = _formdata.MultipleTables[_container.TableName][0][_control.Name];
                        }
                        fG_WebForm.FlatCtrls.Controls.Add(new _FG_Control(_control, data));
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public static _FG_WebForm GetCSharpFormGlobals(EbWebForm _this, WebformData _formdata)
        {
            _FG_WebForm fG_WebForm = new _FG_WebForm();

            GetCSharpFormGlobalsRec(fG_WebForm, _this, _formdata);
            return(fG_WebForm);
        }
Ejemplo n.º 3
0
 public _FG_Root(_FG_WebForm fG_WebForm, EbWebForm ebWebForm, Service service)
 {
     this.form   = fG_WebForm;
     this.user   = ebWebForm.UserObj;
     this.system = new _FG_System(ebWebForm, service);
 }
Ejemplo n.º 4
0
 public _FG_Root(_FG_WebForm fG_WebForm)
 {
     this.form = fG_WebForm;
 }