Ejemplo n.º 1
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Title";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Subject";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Repeat Intervals";
            ColumnHeaderList.Add(columnHeader);

/*            columnHeader = new ColumnHeader();
 *          columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
 *          columnHeader.Text = "Amount";
 *          ColumnHeaderList.Add(columnHeader);*/

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "ATA";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Part. No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "M.F.";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Amount";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Card Number";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Work Area";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Revision";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Page No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Flight No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Route";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Discrepancies";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "TSN/CSN";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Work Type";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Remarks";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "ATA";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Ref No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Compliance";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Overdue/Remain";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Work Type";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[6]);
            columnHeader.Text  = "Approximate Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[7]);
            columnHeader.Text  = "MH";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[8]);
            columnHeader.Text  = "Cost (USD)";
            ColumnHeaderList.Add(columnHeader);

            if (ItemsListView.Columns.Count == 0)
            {
                ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "ATA";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Part. No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Serial No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Pos. No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "M.F.";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[6]);
            columnHeader.Text  = "Inst. date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[7]);
            columnHeader.Text  = "Compliance";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[8]);
            columnHeader.Text  = "Next";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Item #";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Initial Documents";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Inspection Document";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Required Inspection";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Repeat Interval";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[6]);
            columnHeader.Text  = "Last";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[7]);
            columnHeader.Text  = "Next";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[8]);
            columnHeader.Text  = "Remain";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 9
0
        internal void ParseWorkSheet()
        {
            var headerTableFound = false;
            var usedRange        = WorkSheet.GetUsedRange();

            ColumnsCount = usedRange.RightColumnIndex - usedRange.LeftColumnIndex;

            for (var rowIndex = usedRange.TopRowIndex; rowIndex < usedRange.BottomRowIndex; rowIndex++)
            {
                AddNewRow();
                for (var columnIndex = usedRange.LeftColumnIndex; columnIndex <= usedRange.RightColumnIndex; columnIndex++)
                {
                    CurrentRowInfo.AddCell(WorkSheet.Cells[rowIndex, columnIndex]);
                }

                if (headerTableFound || !GetStatisticForRow())
                {
                    continue;
                }

                headerTableFound = true;
                for (var headerColumnIndex = usedRange.LeftColumnIndex; headerColumnIndex <= usedRange.RightColumnIndex; headerColumnIndex++)
                {
                    if (WorkSheet.Cells[rowIndex, headerColumnIndex].Value.Type != CellValueType.Text)
                    {
                        continue;
                    }
                    var cellValue   = WorkSheet.Cells[rowIndex, headerColumnIndex].Value.ToString().ToLower();
                    var columnRange = new Thickness {
                        Left = headerColumnIndex, Top = usedRange.TopRowIndex, Right = headerColumnIndex, Bottom = usedRange.BottomRowIndex
                    };

                    var pattern = new Regex("[:_,.\\*/\n]|[ ]{2,}");
                    cellValue = pattern.Replace(cellValue, " ");

                    var columnHeaderValue = new ColumnHeaderValue {
                        HeaderTableRowIndex = rowIndex, Caption = cellValue, RangeInWorksheet = columnRange
                    };

                    if (ColumnHeaderList.Exists(c => c.Caption == columnHeaderValue.Caption))
                    {
                        continue;
                    }
                    CompareWithGoodColumns(columnHeaderValue);
                    ColumnHeaderList.Add(columnHeaderValue);
                }
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Name";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Job cards";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "SB/Sl No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "EO No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "AD No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Subject/Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Date of  Perform";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Stamp PPCD";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[6]);
            columnHeader.Text  = "Work Package";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[7]);
            columnHeader.Text  = "Remarks";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 12
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader = new ColumnHeader();

            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[0]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[1]);
            columnHeader.Text  = "Flight No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[2]);
            columnHeader.Text  = "Direction";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[3]);
            columnHeader.Text  = "Reference";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[4]);
            columnHeader.Text  = "Page No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[5]);
            columnHeader.Text  = "Flight Time";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[6]);
            columnHeader.Text  = "Per Month";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * headerWidth[7]);
            columnHeader.Text  = "AC TFT";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "#";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Check";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "TSN/CSN";
            ColumnHeaderList.Add(columnHeader);

/*
 *          columnHeader = new ColumnHeader();
 *          columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
 *          columnHeader.Text = "To be performed";
 *          ColumnHeaderList.Add(columnHeader);
 *
 *          columnHeader = new ColumnHeader();
 *          columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
 *          columnHeader.Text = "Remained";
 *          ColumnHeaderList.Add(columnHeader);*/

            columnHeader = new ColumnHeader();
            //columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[6]);
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Remarks";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Requirement";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Status";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Frequency";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Compliance";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Next";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "TLP No";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Reference";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Title";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Subject";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Compliance Deadline";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Title";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Status";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Author";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Remarks";
            ColumnHeaderList.Add(columnHeader);

            if (ItemsListView.Columns.Count == 0)
            {
                ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
            }
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeaderList.Clear();

            var columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.08f), Text = "First Name"
            };

            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.10f), Text = "Last Name"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.10f), Text = "Occupation"
            };
            ColumnHeaderList.Add(columnHeader);

            itemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Title";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Subject";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Status";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Repeat Intervals";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Compliance";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Next";
            ColumnHeaderList.Add(columnHeader);


            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "#";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Document Name";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "Description";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Issue Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Expiration Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Remarks";
            ColumnHeaderList.Add(columnHeader);


            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeader columnHeader;

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[0]);
            columnHeader.Text  = "Item Number";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[1]);
            columnHeader.Text  = "Card Title";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[2]);
            columnHeader.Text  = "TH";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[3]);
            columnHeader.Text  = "Repeat Interval";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[4]);
            columnHeader.Text  = "Last Date";
            ColumnHeaderList.Add(columnHeader);

            columnHeader       = new ColumnHeader();
            columnHeader.Width = (int)(ItemsListView.Width * HEADER_WIDTH[5]);
            columnHeader.Text  = "Next Date";
            ColumnHeaderList.Add(columnHeader);

            ItemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            itemsListView.Columns.Clear();
            ColumnHeaderList.Clear();

            ColumnHeader columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "ATA"
            };

            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Part. No"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.3f), Text = "Description"
            };
            ColumnHeaderList.Add(columnHeader);
            //4
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Serial No"
            };
            ColumnHeaderList.Add(columnHeader);
            //5
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Pos. No"
            };
            ColumnHeaderList.Add(columnHeader);
            //6
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.07f), Text = "M.P."
            };
            ColumnHeaderList.Add(columnHeader);
            //7
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Inst. date"
            };
            ColumnHeaderList.Add(columnHeader);
            //6
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.07f), Text = "Work Type"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Life limit/1st. Perf"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Rpt. int."
            };
            ColumnHeaderList.Add(columnHeader);

            //9
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.12f), Text = "Next"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.12f), Text = "Remain/Overdue"
            };
            ColumnHeaderList.Add(columnHeader);
            //11
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.12f), Text = "Last"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Warranty"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Kit"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "M.H."
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Cost(new)"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Cost overhaul"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Cost serviceable"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Remarks"
            };
            ColumnHeaderList.Add(columnHeader);
            //19
            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.12f), Text = "Hidden Remarks"
            };
            ColumnHeaderList.Add(columnHeader);

            itemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }
Ejemplo n.º 22
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeaderList.Clear();

            ColumnHeader columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.05f), Text = "ATA"
            };

            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Title"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Description"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Times"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Work Type"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Check"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Next"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Fst.Perf"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Rpt. Intv."
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Overdue/Remain"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Last"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Kit"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "MH"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Cost"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Total MH"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Total Cost",
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "X1"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Forecast Data"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "X2"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = (int)(itemsListView.Width * 0.1f), Text = "Signer"
            };
            ColumnHeaderList.Add(columnHeader);

            itemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
            itemsListView.Columns[3].AutoResize(ColumnHeaderAutoResizeStyle.None);
            itemsListView.Columns[3].Width = 10;
        }
Ejemplo n.º 23
0
        /// <summary>
        /// Устанавливает заголовки
        /// </summary>
        protected override void SetHeaders()
        {
            ColumnHeaderList.Clear();

            ColumnHeader columnHeader = new ColumnHeader {
                Width = 102, Text = "ATA"
            };

            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 160, Text = "Title"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Description"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Type"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Kit Required"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Fst.Perf"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Rpt. Intv."
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Overdue/Remain"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Check"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Work Type"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Next Perf. Date"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "MH"
            };
            ColumnHeaderList.Add(columnHeader);

            columnHeader = new ColumnHeader {
                Width = 80, Text = "Cost"
            };
            ColumnHeaderList.Add(columnHeader);

            itemsListView.Columns.AddRange(ColumnHeaderList.ToArray());
        }