Example #1
0
        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);
            }
        }
Example #2
0
 protected IEnumerable <MergeField> FindProcessOfGenerationTextMergeFields()
 {
     return(AnnexMergeFields.Where(mf => !string.IsNullOrWhiteSpace(mf.FieldName.OuterTypeName) &&
                                   mf.FieldName.OuterTypeName.Equals(PoGtext)));
 }
Example #3
0
 protected IEnumerable <MergeField> FindSiteOfExportMergeFields()
 {
     return(AnnexMergeFields.Where(mf => !string.IsNullOrWhiteSpace(mf.FieldName.OuterTypeName) &&
                                   mf.FieldName.OuterTypeName.Equals(SiteOfExport)));
 }