Exemple #1
0
 private MergeField FindFirstMergeFieldInAnnexTable()
 {
     return
         (AnnexMergeFields.Single(
              mf => mf.FieldName.OuterTypeName.Equals(TypeName, StringComparison.InvariantCultureIgnoreCase) &&
              mf.FieldName.InnerTypeName.Equals("Order",
                                                StringComparison.InvariantCultureIgnoreCase)));
 }
Exemple #2
0
 protected MergeField FindFirstMergeFieldInAnnexTable()
 {
     return
         (AnnexMergeFields.Single(
              mf => mf.FieldName.OuterTypeName.Equals(TypeName, StringComparison.InvariantCultureIgnoreCase) &&
              mf.FieldName.InnerTypeName.Equals("RegistrationNumber",
                                                StringComparison.InvariantCultureIgnoreCase)));
 }
Exemple #3
0
        protected void RemoveAnnex()
        {
            var field = AnnexMergeFields.Single(
                mf => mf.FieldName.InnerTypeName != null && mf.FieldName.InnerTypeName.Equals("Order"));

            var table = field.Run.Ancestors <Table>().First().Ancestors <Table>().First();

            table.Remove();
        }
Exemple #4
0
        protected void RemoveSiteOfGenerationTable()
        {
            MergeField f = AnnexMergeFields.Single(
                mf => mf.FieldName.OuterTypeName.Equals("SiteOfExport", StringComparison.InvariantCultureIgnoreCase) &&
                mf.FieldName.InnerTypeName.Equals("RegistrationNumber",
                                                  StringComparison.InvariantCultureIgnoreCase));

            f.Run.Ancestors <Table>().First().Remove();
        }
Exemple #5
0
        private MergeField FindFirstMergeFieldInTable(string id)
        {
            var mergeField = AnnexMergeFields.Single(
                mf => mf.FieldName.OuterTypeName.Equals(id, StringComparison.InvariantCultureIgnoreCase) &&
                mf.FieldName.InnerTypeName.Equals("Name",
                                                  StringComparison.InvariantCultureIgnoreCase));

            return(mergeField);
        }
Exemple #6
0
 protected MergeField FindAnnexNumberMergeField()
 {
     return(AnnexMergeFields.Single(
                mf => mf.FieldName.InnerTypeName != null && mf.FieldName.InnerTypeName.Equals("AnnexNumber")));
 }