protected void MergeToMainDocument(int annexNumber) { var properties = PropertyHelper.GetPropertiesForViewModel(typeof(WasteCompositionViewModel)); foreach (var field in CorrespondingMergeFields) { MergeFieldDataMapper.BindCorrespondingField(field, new WasteCompositionViewModel(data, annexNumber), properties); } var nonTableAnnexMergeFields = AnnexMergeFields.Where(f => !(f.FieldName.ToString().Contains("Parameters") || f.FieldName.ToString().Contains("Constituents"))); foreach (var annexMergeField in nonTableAnnexMergeFields) { MergeFieldDataMapper.BindCorrespondingField(annexMergeField, data, properties); } }
protected IEnumerable <MergeField> FindProcessOfGenerationTextMergeFields() { return(AnnexMergeFields.Where(mf => !string.IsNullOrWhiteSpace(mf.FieldName.OuterTypeName) && mf.FieldName.OuterTypeName.Equals(PoGtext))); }
protected IEnumerable <MergeField> FindSiteOfExportMergeFields() { return(AnnexMergeFields.Where(mf => !string.IsNullOrWhiteSpace(mf.FieldName.OuterTypeName) && mf.FieldName.OuterTypeName.Equals(SiteOfExport))); }