Пример #1
0
 public void SetFields(FleetStatusRow fsr, string key)
 {
     Key              = key;
     TotalFleet       = fsr.TotalFleetPercent.ToString(NumberFormat);
     Cu               = fsr.CuPercent.ToString(NumberFormat);
     Ha               = fsr.HaPercent.ToString(NumberFormat);
     Hl               = fsr.HlPercent.ToString(NumberFormat);
     Ll               = fsr.LlPercent.ToString(NumberFormat);
     Nc               = fsr.NcPercent.ToString(NumberFormat);
     Pl               = fsr.PlPercent.ToString(NumberFormat);
     Tc               = fsr.TcPercent.ToString(NumberFormat);
     Sv               = fsr.SvPercent.ToString(NumberFormat);
     Ws               = fsr.WsPercent.ToString(NumberFormat);
     OperationalFleet = fsr.OperationalFleetPercent.ToString(NumberFormat);
     Bd               = fsr.BdPercent.ToString(NumberFormat);
     Mm               = fsr.MmPercent.ToString(NumberFormat);
     Tw               = fsr.TwPercent.ToString(NumberFormat);
     Tb               = fsr.TbPercent.ToString(NumberFormat);
     Fs               = fsr.FsPercent.ToString(NumberFormat);
     Rl               = fsr.RlPercent.ToString(NumberFormat);
     Rp               = fsr.RpPercent.ToString(NumberFormat);
     Tn               = fsr.TnPercent.ToString(NumberFormat);
     AvailableFleet   = fsr.AvailableFleetPercent.ToString(NumberFormat);
     Idle             = fsr.IdlePercent.ToString(NumberFormat);
     Su               = fsr.SuPercent.ToString(NumberFormat);
     Overdue          = fsr.OverduePercent.ToString(NumberFormat);
     OnRent           = fsr.OnRentPercent.ToString(NumberFormat);
 }
Пример #2
0
 public FleetStatusGridPercentRow(FleetStatusRow fsr, bool dateAsKey = true, bool hourlyDate = false)
 {
     SetFields(fsr, dateAsKey ? hourlyDate ? fsr.Day.ToString("dd/MM/yyyy HH:mm") : fsr.Day.ToShortDateString() : fsr.Key);
 }