Ejemplo n.º 1
0
    /// <summary>
    /// Write a sowing report to summary file.
    /// </summary>
    void WriteSowReport(SowPlant2Type Sow)
    {
        Console.WriteLine("Crop Sow");

        Console.WriteLine("   ------------------------------------------------");
        Console.WriteLine("   cultivar                   = " + Sow.Cultivar);
        Phenology.WriteSummary();
        Grain.WriteCultivarInfo();
        Console.WriteLine("   ------------------------------------------------\n\n");

        Root.WriteSummary();

        Console.WriteLine(string.Format("    Crop factor for bounding water use is set to {0,5:F1} times eo.", EOCropFactor));

        Console.WriteLine("");
        Console.WriteLine("                 Crop Sowing Data");
        Console.WriteLine("    ------------------------------------------------");
        Console.WriteLine("    Sowing  Depth Plants Spacing Skip  Skip  Cultivar");
        Console.WriteLine("    Day no   mm     m^2     mm   row   plant name");
        Console.WriteLine("    ------------------------------------------------");

        Console.WriteLine(string.Format("   {0,7:D}{1,7:F1}{2,7:F1}{3,7:F1}{4,6:F1}{5,6:F1} {6}", new object[]
                                        { Today.DayOfYear,
                                          Sow.Depth,
                                          Sow.Population,
                                          Sow.RowSpacing,
                                          Sow.SkipRow,
                                          Sow.SkipPlant,
                                          Sow.Cultivar }));
        Console.WriteLine("    ------------------------------------------------\n");
    }