示例#1
0
        void GanttView_HeaderHourChanged(object sender, GanttColumnHeaderEventArgs args)
        {
            string key     = args.Time.ToString(_gantt.DateKeyPattern);
            string caption = _gantt.GetJobChgHourCntFormat(args.Time);

            args.ColumnHeader.AddColumn(new XtraSheetHelper.SfColumn(key, caption, _gantt.DefaultColumnWidth, true, false));
        }
示例#2
0
        void GanttView_HeaderDone(object sender, GanttColumnHeaderEventArgs e)
        {
            var colHeader = e.ColumnHeader;

            //colHeader.AddColumn(new XtraSheetHelper.SfColumn(ColName.MaskChangeCnt, 70));

            colHeader.AddColumn(new XtraSheetHelper.SfColumn(ColName.RunQtySum, 70));

            colHeader.AddColumn(new XtraSheetHelper.SfColumn(ColName.TotalRun, 82));

            this.ganttSizeControl.LeftExceptCount = this._gantt.FixedColCount;
            this.ganttSizeControl.TopExceptCount  = this._gantt.FixedRowCount;

            this.ganttSizeControl.RightExceptCount = 3;
        }
示例#3
0
        void GanttView_HeaderDone(object sender, GanttColumnHeaderEventArgs e)
        {
            var colHeader = e.ColumnHeader;

            colHeader.AddColumn(new XtraSheetHelper.SfColumn(Constants.COLUMN_QTY, 60)
            {
                HAlign = SpreadsheetHorizontalAlignment.Right
            });
            colHeader.AddColumn(new XtraSheetHelper.SfColumn(Constants.COLUMN_TOTAL, 80)
            {
                HAlign = SpreadsheetHorizontalAlignment.Right
            });

            this.ganttSizeControl.LeftExceptCount  = this.gantt.FixedColCount;
            this.ganttSizeControl.TopExceptCount   = this.gantt.FixedRowCount;
            this.ganttSizeControl.RightExceptCount = 3;
        }
示例#4
0
        void GanttView_HeaderShiftChanged(object sender, GanttColumnHeaderEventArgs args)
        {
            var startColName = args.Time.ToString(_gantt.DateKeyPattern);
            var endColName   = args.Time.AddHours(ShopCalendar.ShiftHours - 1).ToString(_gantt.DateKeyPattern);

            if (this.StartDate.ShiftStartTimeOfDayT() == args.Time)
            {
                startColName = this.StartDate.ToString(_gantt.DateKeyPattern);
            }
            else if (this.EndDate.ShiftStartTimeOfDayT() == args.Time)
            {
                endColName = this.EndDate.ToString(_gantt.DateKeyPattern);
            }

            args.ColumnHeader.AddGroupColumn(
                new XtraSheetHelper.SfGroupColumn(_gantt.GetJobChgShiftCntFormat(args.Time), startColName, endColName)
                );
        }
示例#5
0
        void GanttView_HeaderDone(object sender, GanttColumnHeaderEventArgs e)
        {
            var colHeader = e.ColumnHeader;

            colHeader.AddColumn(new XtraSheetHelper.SfColumn(ColName.LoadRate, 60));
            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.LoadRate, loadRateString, 60));

            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.ChangRage, chgRateString, 60));

            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.TIQtySum, 60));

            colHeader.AddColumn(new XtraSheetHelper.SfColumn(ColName.RunQty, 60));
            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.TOQtySum, 60));

            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.TITotal, 80));
            //colHeader.AddColumn(new SfGridHelper.SfColumn(ColName.TOTotal, 80));

            this.ganttSizeControl1.LeftExceptCount  = this._gantt.FixedColCount;
            this.ganttSizeControl1.RightExceptCount = 2;
            this.ganttSizeControl1.TopExceptCount   = this._gantt.FixedRowCount;
        }