public Column GetById(ColumnId id)
        {
            var parameters = GetDefaultParameters();

            parameters[HttpParameters.ColumnId] = id.ToString();

            return(SendRequest <Column>(HttpFunctions.ColumnReads.GetColumnById, parameters));
        }
Beispiel #2
0
        public void Delete(ColumnId tableId)
        {
            var parameters = GetDefaultParameters();

            parameters[HttpParameters.ColumnId] = tableId.ToString();

            SendRequest(HttpFunctions.ColumnEdits.DeleteColumn, parameters);
        }
Beispiel #3
0
        public void Edit(ColumnId oldColumnId, Column newColumn)
        {
            var parameters = GetDefaultParameters();

            parameters[HttpParameters.ColumnId] = oldColumnId.ToString();

            SendRequest(HttpFunctions.ColumnEdits.EditColumn, parameters, newColumn.ToJson());
        }
Beispiel #4
0
        public Task[] GetFromColumn(BoardId boardId, ColumnId columnId)
        {
            var parameters = GetDefaultParameters();

            parameters[HttpParameters.TaskBoardId]  = boardId.ToString();
            parameters[HttpParameters.TaskColumnId] = columnId.ToString();

            return(SendRequest <Task[]>(HttpFunctions.TaskReads.GetTasksFromColumn, parameters));
        }
 protected override void ValidatedRender(TextWriter writer, int startRange, int endRange)
 {
     writer.Write("<div class=\"baseIL\" id=\"");
     writer.Write("divVLVIL");
     writer.Write("\">");
     this.DataSource.MoveToItem(startRange);
     while (this.DataSource.CurrentItem <= endRange)
     {
         writer.Write("<div class=\"listItemRow");
         this.RenderItemRowStyle(writer);
         writer.Write("\"");
         base.RenderItemTooltip(writer);
         writer.Write(" id=\"");
         writer.Write(base.IsForVirtualListView ? "vr" : "us");
         writer.Write("\">");
         writer.Write("<div class=\"cData\"");
         ItemList2.RenderRowId(writer, this.DataSource.GetItemId());
         this.RenderItemMetaDataExpandos(writer);
         writer.Write("></div>");
         for (int i = 0; i < this.ViewDescriptor.ColumnCount; i++)
         {
             ColumnId column = this.ViewDescriptor.GetColumn(i);
             writer.Write("<div class=\"listColumn ");
             writer.Write(this.ColumnClassPrefix);
             writer.Write(column.ToString());
             writer.Write("\"");
             this.RenderTableCellAttributes(writer, column);
             if (column == ColumnId.FlagDueDate || column == ColumnId.ContactFlagDueDate || column == ColumnId.TaskFlag)
             {
                 writer.Write(" id=");
                 writer.Write("divFlg");
             }
             if (column == ColumnId.Categories || column == ColumnId.ContactCategories)
             {
                 writer.Write(" id=");
                 writer.Write("divCat");
             }
             writer.Write(">");
             base.RenderColumn(writer, column, false);
             writer.Write("</div>");
         }
         base.RenderSelectionImage(writer);
         base.RenderRowDivider(writer);
         writer.Write("</div>");
         this.DataSource.MoveNext();
     }
     writer.Write("</div>");
 }
Beispiel #6
0
        private Dictionary <string, string> CreateParametersForUsingFilters(string header, string description, string branch, State?state, Priority?priority, UserId developerId, UserId reviewerId, ColumnId columnId, BoardId boardId)
        {
            var parameters = GetDefaultParameters();

            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskHeader, header);
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskDescription, description);
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskBranch, branch);
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskState, state?.ToString());
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskPriority, priority?.ToString());
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskDeveloperId, developerId?.ToString());
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskReviewerId, reviewerId?.ToString());
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskColumnId, columnId?.ToString());
            AddParameterIfNotNullOrEmpty(parameters, HttpParameters.TaskBoardId, boardId?.ToString());

            return(parameters);
        }