private static void UpdateSeason(GXBandDescriptor season, object[] value)
 {
     season.DayOfMonth = Convert.ToByte(value[0]);
     season.Month      = Convert.ToByte(value[1]);
     UpdateInterval(season.WorkingDayIntervals, (byte[])value[2]);
     UpdateInterval(season.SaturdayIntervals, (byte[])value[3]);
     UpdateInterval(season.HolidayIntervals, (byte[])value[4]);
 }
 private static void GetSeason(GXBandDescriptor season, GXByteBuffer data)
 {
     GXCommon.SetData(null, data, DataType.UInt8, season.DayOfMonth);
     GXCommon.SetData(null, data, DataType.UInt8, season.Month);
     GetInterval(season.WorkingDayIntervals, data);
     GetInterval(season.SaturdayIntervals, data);
     GetInterval(season.HolidayIntervals, data);
 }
Пример #3
0
 private static void UpdateSeason(GXBandDescriptor season, List <object> value)
 {
     if (value != null)
     {
         season.DayOfMonth = Convert.ToByte(value[0]);
         season.Month      = Convert.ToByte(value[1]);
         UpdateIntervals(season.WorkingDayIntervals, (List <object>)value[2]);
         UpdateIntervals(season.SaturdayIntervals, (List <object>)value[3]);
         UpdateIntervals(season.HolidayIntervals, (List <object>)value[4]);
     }
 }
Пример #4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GXTariffPlan()
 {
     WinterSeason = new GXBandDescriptor();
     SummerSeason = new GXBandDescriptor();
 }