Пример #1
0
        public override EpgSearchKeyInfoS getItem(SqlDataReader reader0, ref int i0)
        {
            EpgSearchKeyInfoS keyInfo1 = new EpgSearchKeyInfoS()
            {
                ID              = (long)reader0[i0++],
                lastUpdate      = (DateTime)reader0[i0++],
                andKey          = (string)reader0[i0++],
                caseFlag        = convertBool2Byte(reader0, ref i0),
                keyDisabledFlag = convertBool2Byte(reader0, ref i0),
                notKey          = (string)reader0[i0++],
                regExpFlag      = convertBool2Byte(reader0, ref i0),
                titleOnlyFlag   = convertBool2Byte(reader0, ref i0),
                contentList     = DB_EpgEventInfo.getEpgContentData(reader0, ref i0),
                dateList        = getEpgSearchDateInfo(reader0, ref i0),
                serviceList     = convertByte2Long(reader0, ref i0),
                videoList       = convertByte2UShort(reader0, ref i0),
                audioList       = convertByte2UShort(reader0, ref i0),
                aimaiFlag       = convertBool2Byte(reader0, ref i0),
                notContetFlag   = convertBool2Byte(reader0, ref i0),
                notDateFlag     = convertBool2Byte(reader0, ref i0),
                freeCAFlag      = convertBool2Byte(reader0, ref i0),
                chkRecEnd       = convertBool2Byte(reader0, ref i0),
                chkRecDay       = (ushort)(int)reader0[i0++],
                chkRecNoService = convertBool2Byte(reader0, ref i0),
                chkDurationMin  = (ushort)(int)reader0[i0++],
                chkDurationMax  = (ushort)(int)reader0[i0++],
            };

            return(keyInfo1);
        }
Пример #2
0
        protected override Dictionary <string, string> getFieldNameValues(EpgSearchKeyInfoS item0)
        {
            Dictionary <string, string> dict1 = new Dictionary <string, string>();

            dict1.Add(COLUMN_lastUpdate, q(item0.lastUpdate.ToString(timeStampStrFormat)));
            dict1.Add(COLUMN_andKey, createTextValue(item0.andKey));
            dict1.Add(COLUMN_caseFlag, item0.caseFlag.ToString());
            dict1.Add(COLUMN_keyDisabledFlag, item0.keyDisabledFlag.ToString());
            dict1.Add(COLUMN_notKey, createTextValue(item0.notKey));
            dict1.Add(COLUMN_regExpFlag, item0.regExpFlag.ToString());
            dict1.Add(COLUMN_titleOnlyFlag, item0.titleOnlyFlag.ToString());
            dict1.Add(COLUMN_serviceList, "0x" + getByteString(item0.serviceList));
            dict1.Add(COLUMN_videoList, "0x" + getByteString(item0.videoList));
            dict1.Add(COLUMN_audioList, "0x" + getByteString(item0.audioList));
            dict1.Add(COLUMN_aimaiFlag, item0.aimaiFlag.ToString());
            dict1.Add(COLUMN_notContetFlag, item0.notContetFlag.ToString());
            dict1.Add(COLUMN_notDateFlag, item0.notDateFlag.ToString());
            dict1.Add(COLUMN_freeCAFlag, item0.freeCAFlag.ToString());
            dict1.Add(COLUMN_chkRecEnd, item0.chkRecEnd.ToString());
            dict1.Add(COLUMN_chkRecDay, item0.chkRecDay.ToString());
            dict1.Add(COLUMN_chkRecNoService, item0.chkRecNoService.ToString());
            dict1.Add(COLUMN_chkDurationMin, item0.chkDurationMin.ToString());
            dict1.Add(COLUMN_chkDurationMax, item0.chkDurationMax.ToString());
            DB_EpgEventInfo.addEpgContentData(ref dict1, COLUMN_contentList, item0.contentList);
            {
                StringBuilder sb1 = new StringBuilder();
                foreach (EpgSearchDateInfo item1 in item0.dateList)
                {
                    if (sb1.Length == 0)
                    {
                        sb1.Append("0x");
                    }
                    sb1.Append(item1.startDayOfWeek.ToString("X2"));
                    sb1.Append(getByteString(item1.startHour));
                    sb1.Append(getByteString(item1.startMin));
                    sb1.Append(item1.endDayOfWeek.ToString("X2"));
                    sb1.Append(getByteString(item1.endHour));
                    sb1.Append(getByteString(item1.endMin));
                }
                if (sb1.Length == 0)
                {
                    sb1.Append(0);
                }
                dict1.Add(COLUMN_dateList, sb1.ToString());
            }

            return(dict1);
        }
Пример #3
0
 public DB_RecLog()
 {
     db_EpgEventInfo = new DB_EpgEventInfo(this);
 }
Пример #4
0
 public DB_SearchLog()
 {
     _db_EpgEventInfo    = new DB_EpgEventInfo();
     _db_SearchLogResult = new DB_SearchLogResult(_db_RecLog);
 }
Пример #5
0
 public DB_SearchLogResult(DB_RecLog db_RecLog0)
 {
     _db_RecLog       = db_RecLog0;
     _db_EpgEventInfo = new DB_EpgEventInfo(this);
 }