public override void CloneFrom(NCasObject obj) { OrderBizData newObject = obj as OrderBizData; this.almProtocol = newObject.almProtocol; this.allDestinationFlag = newObject.allDestinationFlag; this.orderGroupFlag = newObject.orderGroupFlag; this.orderDistFlag = newObject.orderDistFlag; this.orderTermFlag = newObject.orderTermFlag; this.selectedDisasterBroadKind = newObject.selectedDisasterBroadKind; this.lastOrderKind = newObject.lastOrderKind; this.isLocal = newObject.isLocal; this.isEnd = newObject.isEnd; this.ttsOrderFlag = newObject.ttsOrderFlag; this.selectedStoredMessage = newObject.selectedStoredMessage; this.storedMessageRepeatCount = newObject.storedMessageRepeatCount; this.selectedTtsMessage = newObject.selectedTtsMessage; this.groupName = newObject.groupName; this.sendBuff = newObject.sendBuff; }
/// <summary> /// 단일 TV자막 정보 가져오기 /// </summary> /// <param name="provCode">시도 Code</param> /// <param name="tvCaptionMode">TV자막 모드</param> /// <param name="defineOrderKind">경보 모드</param> /// <returns></returns> public static TVCaptionData GetTvCaptionData(int provCode, NCasDefineCaption tvCaptionMode, NCasDefineOrderKind defineOrderKind) { TVCaptionContent rstTvCaptionData = new TVCaptionContent(); TVCaptionData rstTvCaption = new TVCaptionData(); foreach (TVCaptionContent content in lstTvCaptionContent.LstTVCaptionContent) { if (content.ProvCode == provCode) { rstTvCaptionData = content; break; } } foreach (TVCaptionData tvCaption in rstTvCaptionData.TVCaptionData) { if (tvCaption.TvCaptionMode == tvCaptionMode) { if (tvCaption.OrderKind == defineOrderKind) { rstTvCaption = tvCaption; break; } } } return(rstTvCaption); }