示例#1
0
        void GanttView_BindBarAdded(object sender, GanttCellEventArgs args)
        {
            if (args.Bar.BarList == null)
            {
                return;
            }

            //foreach (Bar bar in args.Bar.BarList)
            //{
            //    this._rowsumti += bar.TOQty;
            //    this._rowsumto += bar.TOQty;

            //    this._rowRunHours += (bar.TkoutTime - bar.TkinTime).TotalHours;
            //    this._totalRunHours += _rowRunHours;
            //}

            _rowsumti += args.Bar.BarList.Sum(x => x.TOQty);
            _rowsumto += args.Bar.BarList.Sum(x => x.TOQty);

            double loadTime = args.Bar.BarList.Sum(x => (x.TkoutTime - x.TkinTime).TotalHours);

            this._rowRunHours   += loadTime;
            this._totalRunHours += loadTime;
            //args.Bar.CumulateQty(ref _rowsumti, ref _rowsumto);
        }
示例#2
0
        void GanttView_BindBarAdded(object sender, GanttCellEventArgs args)
        {
            args.Bar.CumulateQty(ref _rowsumti, ref _rowsumto);

            _rowsumJobChg += args.Bar.BarList.Where(x => x.State == EqpState.SETUP).Count();

            double loadTime = args.Bar.BarList.Where(x => x.State == EqpState.BUSY || x.State == EqpState.IDLERUN || x.State == EqpState.SETUP)
                              .Sum(x => (x.TkoutTime - x.TkinTime).TotalSeconds);

            _rowsumLoadTimeFrBar += loadTime;
        }
示例#3
0
 void GanttView_BindBarAdded(object sender, GanttCellEventArgs args)
 {
     args.Bar.CumulateQty(ref rowTIQty, ref rowTOQty);
 }