Ejemplo n.º 1
0
        public TableEntity(String tableName, Enums.TableType tableType)
        {
            this.tableName   = tableName;
            this.tableSchema = "SCHEMA";
            this.coords      = new GUICoordsEntity();
            this.tableType   = tableType;

            this.tableColumns.Add(new ColumnEntity("ID", "NUMBER", 12, true));
        }
Ejemplo n.º 2
0
        public TableEntity(Enums.TableType tableType)
        {
            this.tableName   = "TABLE_NEW" + new Random().Next(10, 99);
            this.tableSchema = "SCHEMA";
            this.tableName   = this.tableName.ToUpper().Trim();
            this.coords      = new GUICoordsEntity();
            this.tableType   = tableType;

            this.tableColumns.Add(new ColumnEntity("ID", "NUMBER", 12, true));
        }
Ejemplo n.º 3
0
        public TableControl(TableEntity tableEntity, Enums.TableType tableType, int posX, int posY)
        {
            if (tableEntity != null)
            {
                this.tableEntity = tableEntity;
            }
            else
            {
                this.tableEntity = new TableEntity(tableType);
            }

            switch (tableType)
            {
            case (Enums.TableType.Source_Table):
            {
                this.tableColor = Color.FromArgb(192, 57, 43);
                this.textColor  = Color.White;
                this.hoverColor = Color.FromArgb(231, 76, 60);
                break;
            };

            case (Enums.TableType.Extraction_Table):
            {
                this.tableColor = Color.FromArgb(44, 62, 80);
                this.textColor  = Color.White;
                this.hoverColor = Color.FromArgb(52, 73, 94);
                break;
            };

            case (Enums.TableType.Load_Table):
            {
                this.tableColor = Color.FromArgb(41, 128, 185);
                this.textColor  = Color.White;
                this.hoverColor = Color.FromArgb(52, 152, 219);
                break;
            };

            case (Enums.TableType.Destination_Table):
            {
                this.tableColor = Color.FromArgb(211, 84, 0);
                this.textColor  = Color.White;
                this.hoverColor = Color.FromArgb(230, 126, 34);
                break;
            };
            }

            //this.SetBounds(posX, posY, 100, 20);
        }
Ejemplo n.º 4
0
        private void _navigationBar_SwitchTableEventHandler(object sender, Enums.TableType args)
        {
            _tableType = args;
            switch (args)
            {
            case TableType.All:
                SetSelectedRows();
                break;

            case TableType.Selected:
                _selectedRowIdList = GetSelectedRows();
                CopyToSubGrid();
                break;
            }
            _navigationBar.ShowRecordInfo();
            _navigationBar.ShowCurrentRowInfo();
        }