Beispiel #1
0
        public void DataBind(string tableID)
        {
            CodeBuilderService service = ServiceHelper.GetCodeBuilderService();

            if (string.IsNullOrEmpty(tableID))
            {
                DataTable dt = service.GetTableDataTable(Global.GetCurrentProjectID());
                this.filterCheckList.DataBind(dt, "TableName");
            }
            else
            {
                TableEntity table = service.GetTableById(tableID);
                this.filterCheckList.AddItem(table.TableName, true);
            }
        }
Beispiel #2
0
        public override void BindData()
        {
            DataTable columns1 = service.GetColumnDataTable(this.RecordID);
            DataTable columns2 = columns1.Copy();

            DataBind.BindCombox(this.cboDataKey, columns1, "Field");
            DataBind.BindCombox(this.cboSortName, columns2, "Field");
            TableEntity entity = service.GetTableById(this.RecordID);

            txtTableName.Text   = entity.TableName;
            txtAttr.Text        = entity.Attr;
            txtRemark.Text      = entity.Remark;
            cboDataKey.Text     = entity.DataKey;
            cboDataKeyType.Text = entity.DataKeyType.ToString();
            cboSortMode.Text    = entity.DefaultSortMode.ToString();
            cboSortName.Text    = entity.DefaultSortName;
        }
Beispiel #3
0
        private void ColumnEdit_Load(object sender, EventArgs e)
        {
            this.Table = service.GetTableById(this.TableID);

            colEditorType.DataSource = Enum.GetNames(typeof(WSH.Common.EditorType));

            colDataType.DataSource = Enum.GetNames(typeof(DataType));

            colAlign.DataSource = Enum.GetNames(typeof(WSH.Common.AlignType));

            IList <DataItem> items = config.Get("FormatString");

            items.Insert(0, new Options.Common.DataItem()
            {
                Text = "", Value = ""
            });;
            colFormatString.DataSource    = items;
            colFormatString.DisplayMember = "Text";

            BindGrid();
        }