Пример #1
0
        /// <summary>
        /// 添加表头复选框
        /// </summary>
        private void AddHeadCheckbox(TableRowBuilder rowBuilder)
        {
            var headColumnBuilder = new TableHeadColumnBuilder();

            headColumnBuilder.AddCheckBox(_config.Id);
            rowBuilder.AppendContent(headColumnBuilder);
        }
Пример #2
0
 /// <summary>
 /// 添加标题列表
 /// </summary>
 private void AddHeadTitles(TableRowBuilder rowBuilder)
 {
     foreach (var title in _config.Titles)
     {
         var headColumnBuilder = new TableHeadColumnBuilder();
         headColumnBuilder.Title(title);
         rowBuilder.AppendContent(headColumnBuilder);
     }
 }
Пример #3
0
 /// <summary>
 /// 添加标题列
 /// </summary>
 private void AddHeadColumns(TableRowBuilder rowBuilder)
 {
     foreach (var column in _config.Columns)
     {
         var headColumnBuilder = new TableHeadColumnBuilder();
         headColumnBuilder.Title(column.Title);
         headColumnBuilder.AddSort(column.GetSortKey());
         rowBuilder.AppendContent(headColumnBuilder);
     }
 }
Пример #4
0
        /// <summary>
        /// 添加表头复选框
        /// </summary>
        private void AddHeadCheckbox(TableRowBuilder rowBuilder)
        {
            if (_config.AutoCreateHeadCheckbox == false)
            {
                return;
            }
            var headColumnBuilder = new TableHeadColumnBuilder();

            headColumnBuilder.AddCheckBox(_config.Id);
            rowBuilder.AppendContent(headColumnBuilder);
        }
Пример #5
0
 /// <summary>
 /// 添加标题列
 /// </summary>
 private void AddHeadColumns(TableRowBuilder rowBuilder)
 {
     foreach (var column in _config.Columns)
     {
         var headColumnBuilder = new TableHeadColumnBuilder();
         if (column.IsCheckbox)
         {
             headColumnBuilder.AddCheckBox(_config.Id);
         }
         else
         {
             headColumnBuilder.Title(column.Title);
             headColumnBuilder.AddSort(column.GetSortKey());
         }
         rowBuilder.AppendContent(headColumnBuilder);
     }
 }