Ejemplo n.º 1
0
 void DumpClocksItemSection()
 {
     for (int i = 0; i < listClocksItemSection.Count; ++i)
     {
         ClocksItem data = listClocksItemSection[i];
         if (data.clock_enable != 0)
         {
             GuLog.Info("<><SilenceTimeData>type:" + data.clock_type + "   enable:" + data.clock_enable + "    begin:" + data.clock_hour + ":" + data.clock_min + "    days:" + data.clock_weekdays);
         }
     }
 }
Ejemplo n.º 2
0
        private void AddClockItem(SilenceTimeSection section, int dayIndex, bool bBegin)
        {
            ClocksItem newClocksItem = new ClocksItem
            {
                id             = section.id,
                clock_type     = section.GetSectionTypeKey() + (bBegin ? "_begin" : "_end"),
                clock_hour     = bBegin ? section.beginHour : section.endHour,
                clock_min      = bBegin ? section.beginMinute : section.endMinute,
                clock_enable   = section.isOn ? 1 : 0,
                clock_weekdays = (dayIndex).ToString(),
                x_child_sn     = mLocalChildInfoAgent.getChildSN()
            };

            listClocksItemSection.Add(newClocksItem);
        }