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()); }
public String GetTextView(Int32 indentLevel) { String i = HttpClientHelper.Indent(indentLevel); StringBuilder sb = new StringBuilder() .Append(i).Append("Id: ").Append(Id) .Append(i).Append("Id_External: ").Append(Id_External) .Append(i).Append("CreatedAt: ").Append(CreatedAt.F("yyyy.MM.dd HH:mm:ss")) .Append(i).Append("UpdatedAt: ").Append(UpdatedAt.F("yyyy.MM.dd HH:mm:ss")) .Append(i).Append("Description: ").Append(Description) .Append(i).Append("AdditionalInfo: ").Append(AdditionalInfo) .Append(i).Append("Id_Machine: ").Append(Id_Machine) .Append(i).Append("StartTime: ").Append(StartTime.F("yyyy.MM.dd HH:mm:ss")) .Append(i).Append("EndTime: ").Append(EndTime.F("yyyy.MM.dd HH:mm:ss")) .Append(i).Append("ActionType: ").Append(ActionType) .Append(i).Append("ActionSubtype: ").Append(ActionSubtype) .Append(i).Append("Id_WorkType: ").Append(Id_WorkType) .Append(i).Append("Id_Driver: ").Append(Id_Driver) .Append(i).Append("Id_Implement: ").Append(Id_Implement) .Append(i).Append("IsWorkForContractors: ").Append(IsWorkForContractors) .Append(i).Append("IsWorkForLandOwners: ").Append(IsWorkForLandOwners) .Append(i).Append("RealImplementWidth: ").Append(RealImplementWidth.F("0.00")) .Append(i).Append("TotalDistance: ").Append(TotalDistance.F("0.00")) .Append(i).Append("TotalDistanceByHours: ").Append(TotalDistanceByHours.F()) .Append(i).Append("WorkDistance: ").Append(WorkDistance.F("0.00")) .Append(i).Append("WorkDistanceByHours: ").Append(WorkDistanceByHours.F()) .Append(i).Append("WorkArea: ").Append(WorkArea.F("0.00")) .Append(i).Append("WorkAreaByHours: ").Append(WorkAreaByHours.F()) .Append(i).Append("CoveredArea: ").Append(CoveredArea.F("0.00")) .Append(i).Append("CoveredAreaHourly: ").Append(CoveredAreaByHours.F()) .Append(i).Append("WorkDuration: ").Append(WorkDuration) .Append(i).Append("WorkDurationHourly: ").Append(WorkDurationByHours.F()) .Append(i).Append("WorkTimetable: ").Append(WorkTimetable.F()) .Append(i).Append("Season: ").Append(Season) .Append(i).Append("Status: ").Append(Status) .Append(i).Append("StopsOnRoadTimetable: ").Append(StopsOnRoadTimetable.F()) .Append(i).Append("StopsOnRoadDuration: ").Append(StopsOnRoadDuration) .Append(i).Append("StopsOnRoadDurationHourly: ").Append(StopsOnRoadDurationHourly.F()) .Append(i).Append("MovementsOnRoadTimetable: ").Append(MovementsOnRoadTimetable.F()) .Append(i).Append("MovementsOnRoadDuration: ").Append(MovementsOnRoadDuration) .Append(i).Append("MovementsOnRoadDurationHourly: ").Append(MovementsOnRoadDurationHourly.F()) .Append(i).Append("TimeWithoutGpsData: ").Append(TimeWithoutGpsData) .Append(i).Append("TrackIntegrityCoef: ").Append(TrackIntegrityCoef); return(sb.ToString()); }