Beispiel #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("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("Name:                  ").Append(Name)
                               .Append(i).Append("CustomName:            ").Append(CustomName)
                               .Append(i).Append("Model:                 ").Append(Model)
                               .Append(i).Append("Manufacturer:          ").Append(Manufacturer)
                               .Append(i).Append("Year:                  ").Append(Year)
                               .Append(i).Append("RegistrationNumber:    ").Append(RegistrationNumber)
                               .Append(i).Append("InventoryNumber:       ").Append(InventoryNumber)
                               .Append(i).Append("Id_MachineGroup:       ").Append(Id_MachineGroup)
                               .Append(i).Append("MachineType:           ").Append(MachineType)
                               .Append(i).Append("MachineSubtype:        ").Append(MachineSubtype)
                               .Append(i).Append("Id_Avatar:             ").Append(Id_Avatar)
                               .Append(i).Append("SerialNumberOfChassis: ").Append(SerialNumberOfChassis)
                               .Append(i).Append("SerialNumberOfEngine:  ").Append(SerialNumberOfEngine)
                               .Append(i).Append("EnginePower:           ").Append(EnginePower.F("0.00"))
                               .Append(i).Append("FuelType:              ").Append(FuelType)
                               .Append(i).Append("FuelTankSize:          ").Append(FuelTankSize.F("0.00"))
                               .Append(i).Append("FuelConsumptionNorm:   ").Append(FuelConsumptionNorm.F("0.00"))
                               .Append(i).Append("LegalCompany:          ").Append(LegalCompany)
                               .Append(i).Append("Description:           ").Append(Description)
                               .Append(i).Append("Id_DefaultImplement:   ").Append(Id_DefaultImplement)
                               .Append(i).Append("Additional_1:          ").Append(Additional_1)
                               .Append(i).Append("Additional_2:          ").Append(Additional_2)
                               .Append(i).Append("AdditionalInfo:        ").Append(AdditionalInfo);

            return(sb.ToString());
        }
Beispiel #2
0
        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());
        }