Ejemplo n.º 1
0
 private void Init()
 {
     _doneStatuses       = new ObservableCollection <DoneStatus>();
     _meetingTasks       = new ObservableCollection <SpecialTask>();
     _sourceFileSettings = new SourceFileSettings();
     _name = string.Empty;
 }
Ejemplo n.º 2
0
 private void Init()
 {
     _doneStatuses = new ObservableCollection<DoneStatus>();
     _meetingTasks = new ObservableCollection<SpecialTask>();
     _sourceFileSettings = new SourceFileSettings();
     _name = string.Empty;
 }
Ejemplo n.º 3
0
        private WorkLogDataRow ImportRow(ExcelRow excelRow, SourceFileSettings settings)
        {
            WorkLogDataRow row = new WorkLogDataRow();
            CellRange cells = excelRow.Cells;

            row.Key = GetStringValue(cells, settings.KeyField.Position - 1);
            row.Title = GetStringValue(cells, settings.TitleField.Position - 1);
            row.Assignee = GetStringValue(cells, settings.AssigneeField.Position - 1);
            row.Status = GetStringValue(cells, settings.StatusField.Position - 1);
            row.WorkDateStr = GetStringValue(cells, settings.DateField.Position - 1);
            row.UserName = GetStringValue(cells, settings.UserNameField.Position - 1);
            row.Url = GetStringValue(cells, settings.UrlField.Position - 1);

            if (settings.EstimationField.IsUseStoryPointsFromMainPosition)
            {
                row.OriginalEstimateHours = GetStringValue(cells, settings.EstimationField.AlternatePosition - 1);
                row.OriginalEstimateStoryPoints = GetStringValue(cells, settings.EstimationField.Position - 1);
            }
            else
            {
                row.OriginalEstimateHours = GetStringValue(cells, settings.EstimationField.Position - 1);
                row.OriginalEstimateStoryPoints = "0";
            }
            row.OriginalEstimateHours = RemoveSymbol(row.OriginalEstimateHours, 'h');
            row.OriginalEstimateStoryPoints = RemoveSymbol(row.OriginalEstimateStoryPoints, 'h');

            row.TimeSpent = RemoveSymbol(GetStringValue(cells, settings.TimeSpentField.Position - 1), 'h');

            return row;
        }