/// <summary> /// 関連設計情報(チェックリスト、マスタ参照)を取得する /// </summary> private void getDesignInfoList() { //認識結果データに参照するチェックリストIDを抽出する List <string> clIdList = this.ocrEditList.Select(x => x.ClId).Distinct().ToList(); using (IDataAccessComponent access = DenshowDataAccessInterface.DataAccessFactory.GetDataAccess()) { // チェックリストビューの取得 var checklistDtoList = access.GetChecklistViewDao().GetList(clIdList); this.checklistInfoList = new List <ChecklistInfo>(); foreach (ChecklistViewDto chkinfoDto in checklistDtoList) { ChecklistInfo chkinfo = new ChecklistInfo(); Utility.CopyProperty(chkinfoDto, chkinfo); this.checklistInfoList.Add(chkinfo); } //マスタ参照情報を取得する List <MasterReferenceDesignDto> masterRefDtoList = access.GetMasterReferenceDesignDao().GetList(clIdList); this.masterReferenceList = new List <MasterReference>(); foreach (MasterReferenceDesignDto masterDto in masterRefDtoList) { MasterReference entity = new MasterReference(); Utility.CopyProperty(masterDto, entity); this.masterReferenceList.Add(entity); } } }
/// <inheritdoc /> protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (MasterReference.IsNullOrWhiteSpace()) { throw new PropertyNotSetException(nameof(MasterReference)); } element.Add(new XAttribute("master-reference", MasterReference)); if (Id.HasValue()) { element.Add(new XAttribute("id", Id)); } }