Esempio n. 1
0
        public String GetTextView(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("Id:                      ").Append(Id)
                               .Append(i).Append("CreatedAt:               ").Append(CreatedAt)
                               .Append(i).Append("UpdatedAt:               ").Append(UpdatedAt)
                               .Append(i).Append("Status:                  ").Append(Status)
                               .Append(i).Append("WorkType:                ").Append(WorkType)
                               .Append(i).Append("WorkSubtype:             ").Append(WorkSubtype)
                               .Append(i).Append("Id_WorkType:             ").Append(Id_WorkType)
                               .Append(i).Append("GroupableType:           ").Append(GroupableType)
                               .Append(i).Append("Id_Groupable:            ").Append(Id_Groupable)
                               .Append(i).Append("Season:                  ").Append(Season)
                               .Append(i).Append("PlannedStartDate:        ").Append(PlannedStartDate)
                               .Append(i).Append("PlannedEndDate:          ").Append(PlannedEndDate)
                               .Append(i).Append("AdditionalInfo:          ").Append(AdditionalInfo)
                               .Append(i).Append("Description:             ").Append(Description)
                               .Append(i).Append("PlannedWaterRate:        ").Append(PlannedWaterRate.F("0.00 l/ha"))
                               .Append(i).Append("PlannedRowsSpacing:      ").Append(PlannedRowsSpacing.F("0.00 cm"))
                               .Append(i).Append("PlannedPlantSpacing:     ").Append(PlannedPlantSpacing.F("0.00 cm"))
                               .Append(i).Append("PlannedDepth:            ").Append(PlannedDepth.F("0.00 cm"))
                               .Append(i).Append("PlannedSpeed:            ").Append(PlannedSpeed.F("0.00 km/h"))
                               .Append(i).Append("Id_ResponsiblePerson:    ").Append(Id_ResponsiblePerson);

            return(sb.ToString());
        }
Esempio n. 2
0
        public String GetTextView(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            String        i2 = HttpClientHelper.Indent(indentLevel + 1);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("Id:                                    ").Append(Id)
                               .Append(i).Append("Id_External:                           ").Append(Id_External)
                               .Append(i).Append("CreatedAt:                             ").Append(CreatedAt)
                               .Append(i).Append("UpdatedAt:                             ").Append(UpdatedAt)
                               .Append(i).Append("Id_Field:                              ").Append(Id_Field)
                               .Append(i).Append("Id_AgriWorkPlan:                       ").Append(Id_AgriWorkPlan)
                               .Append(i).Append("[Obsolete] OperationType:              ").Append(OperationType)
                               .Append(i).Append("[Obsolete] OperationSubtype:           ").Append(OperationSubtype)
                               .Append(i).Append("Id_WorkType:                           ").Append(Id_WorkType)
                               .Append(i).Append("OperationNumber:                       ").Append(OperationNumber)
                               .Append(i).Append("PlannedArea:                           ").Append(PlannedArea.F("0.00 ha"))
                               .Append(i).Append("CompletedArea:                         ").Append(CompletedArea.F("0.00"))
                               .Append(i).Append("HarvestedWeight:                       ").Append(HarvestedWeight.F("0.00"))
                               .Append(i).Append("Status:                                ").Append(Status)
                               .Append(i).Append("PlannedStartDate:                      ").Append(PlannedStartDate)
                               .Append(i).Append("PlannedEndDate:                        ").Append(PlannedEndDate)
                               .Append(i).Append("CompletedDate:                         ").Append(CompletedDate)
                               .Append(i).Append("CompletedDatetime:                     ").Append(CompletedDatetime)
                               .Append(i).Append("Season:                                ").Append(Season)
                               .Append(i).Append("PlannedWaterRate:                      ").Append(PlannedWaterRate.F("0.00 l/ha"))
                               .Append(i).Append("FactWaterRate:                         ").Append(FactWaterRate.F("0.00 l/ha"))
                               .Append(i).Append("PlannedRowSpacing:                     ").Append(PlannedRowSpacing.F("0.00 cm"))
                               .Append(i).Append("PlannedDepth:                          ").Append(PlannedDepth.F("0.00 cm"))
                               .Append(i).Append("PlannedSpeed                           ").Append(PlannedSpeed.F("0.00 km/h"))
                               .Append(i).Append("CompletedPercents:                     ").Append(CompletedPercents.F("0.00"))
                               .Append(i).Append("PartiallyCompleted:                    ").Append(PartiallyCompleted)
                               .Append(i).Append("PartiallyCompletedManuallyDefinedArea: ").Append(PartiallyCompletedManuallyDefinedArea.F("0.00 ha"))
                               .Append(i).Append("CoveredArea:                           ").Append(CoveredArea.F("0.00"))
                               .Append(i).Append("CoveredAreaByTrack:                    ").Append(CoveredAreaByTrack.F("0.00"))
                               .Append(i).Append("MachineWorkArea:                       ").Append(MachineWorkArea.F("0.00"))
                               .Append(i).Append("FuelConsumption:                       ").Append(FuelConsumption.F("0.00 l"))
                               .Append(i).Append("FuelConsumptionPerHa:                  ").Append(FuelConsumptionPerHa.F("0.00 l/ha"))
                               .Append(i).Append("AdditionalInfo:                        ").Append(AdditionalInfo)
                               .Append(i).Append("Description:                           ").Append(Description)
                               .Append(i).Append("Ids_ApplicationMixItems:               ")
                               .Append(i).Append("{");
            Int32 itemNo = 0;

            foreach (CO_ApplicationMixItem applicationMixItemId in ApplicationMixItems)
            {
                sb.Append(i2).Append("item #: ").Append(++itemNo).Append(i2).AppendLine(applicationMixItemId.GetTextView(indentLevel + 1));
            }
            sb
            .Append(i).Append("}")
            .Append(i).Append("Ids_MachineTasks:                     ")
            .Append(i).Append("{");
            itemNo = 0;
            if (Ids_MachineTasks != null && Ids_MachineTasks.Count > 0)
            {
                foreach (Int32 machineTaskId in Ids_MachineTasks)
                {
                    sb.Append(i2).Append("item #: ").Append(++itemNo).Append(i2).AppendLine(machineTaskId.ToString());
                }
            }
            sb
            .Append(i).Append("}")
            .Append(i).Append("ActualStartDatetime:                     ").Append(ActualStartDatetime)
            .Append(i).Append("CustomName:                              ").Append(CustomName)
            .Append(i).Append("Id_FieldShape:                           ").Append(Id_FieldShape)
            .Append(i).Append("LockedToEdit:                            ").Append(LockedToEdit)
            .Append(i).Append("PlannedPlantSpacing:                     ").Append(PlannedPlantSpacing.F("0.00"));
            return(sb.ToString());
        }