public static void Write(TaskDocumentWriter taskWriter)
        {
            if (taskWriter.DataModel.Catalog.Prescriptions == null ||
                !taskWriter.DataModel.Catalog.Prescriptions.Any())
                return;

            var writer = new PrescriptionWriter(taskWriter);
            writer.WritePrescriptions();
        }
 public static void WriteSingle(TaskDocumentWriter taskWriter, Prescription prescription)
 {
     if (prescription == null)
         return;
     var rasterPrescription = prescription as RasterGridPrescription;
     if (rasterPrescription != null)
     {
         var writer = new PrescriptionWriter(taskWriter);
         writer.WritePrescription(rasterPrescription);
     }
 }
Exemple #3
0
        public static void Write(TaskDocumentWriter taskWriter)
        {
            if (taskWriter.DataModel.Catalog.Prescriptions == null ||
                !taskWriter.DataModel.Catalog.Prescriptions.Any())
            {
                return;
            }

            var writer = new PrescriptionWriter(taskWriter);

            writer.WritePrescriptions();
        }
Exemple #4
0
 private static void WriteMetaItems(TaskDocumentWriter writer)
 {
     AttachedFileWriter.Write(writer);
     CropWriter.Write(writer);
     CustomerWriter.Write(writer);
     FarmWriter.Write(writer);
     FieldWriter.Write(writer);
     ProductWriter.Write(writer);
     WorkerWriter.Write(writer);
     CommentWriter.Write(writer);
     PrescriptionWriter.Write(writer);
 }
Exemple #5
0
        public static void WriteSingle(TaskDocumentWriter taskWriter, Prescription prescription)
        {
            if (prescription == null)
            {
                return;
            }
            var rasterPrescription = prescription as RasterGridPrescription;

            if (rasterPrescription != null)
            {
                var writer = new PrescriptionWriter(taskWriter);
                writer.WritePrescription(rasterPrescription);
            }
        }