Trendsic Platform Service

<back to all web services

EstimateCalendarPutRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
PUT,OPTIONS/v1/Rfp/{RfpDocumentUID}/Estimate/Calendar
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class BidScheduleLine
            Public Overridable Property ItemNo As String
            Public Overridable Property Description As String
            Public Overridable Property Unit As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property UnitPrice As Decimal
            Public Overridable Property Extension As Decimal
            Public Overridable Property PricingBasis As String
            Public Overridable Property BenchmarkDeltaPct As Decimal?
            Public Overridable Property BenchmarkFlagged As Boolean
        End Class

        Public Partial Class EstimateCalendarPutRequest
            Public Overridable Property RfpDocumentUID As Guid
            Public Overridable Property StartDate As Date?
            Public Overridable Property DeadlineDate As Date?
            Public Overridable Property WorkdaysPerWeek As Integer?
            Public Overridable Property HoursPerDay As Decimal?
            Public Overridable Property WeatherPct As Decimal?
            Public Overridable Property Holidays As List(Of Date) = New List(Of Date)
        End Class

        Public Partial Class EstimateCrewLineView
            Public Overridable Property Role As String
            Public Overridable Property Hours As Decimal
            Public Overridable Property StHours As Decimal
            Public Overridable Property OtHours As Decimal
            Public Overridable Property HasOt As Boolean
            Public Overridable Property PremiumApplied As Boolean
            Public Overridable Property NeedsRate As Boolean
            Public Overridable Property RateKey As String
            Public Overridable Property Chip As String
            Public Overridable Property Rrop As Decimal?
            Public Overridable Property StCost As Decimal?
            Public Overridable Property OtCost As Decimal?
            Public Overridable Property Cost As Decimal?
            Public Overridable Property FringeCost As Decimal?
        End Class

        Public Partial Class EstimateEquipmentLineView
            Public Overridable Property Name As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property Rate As Decimal?
            Public Overridable Property NeedsRate As Boolean
            Public Overridable Property MobCost As Decimal
            Public Overridable Property Cost As Decimal
            Public Overridable Property IsAvailabilityTracked As Boolean
            Public Overridable Property IsOwned As Boolean
            Public Overridable Property AvailabilityLabel As String
            Public Overridable Property FreedFromProject As String
            Public Overridable Property AvailableFrom As Date?
            Public Overridable Property RateKey As String
            Public Overridable Property Chip As String
            Public Overridable Property RentalExplain As String
            Public Overridable Property UsageDays As Decimal
            Public Overridable Property BilledDays As Decimal
        End Class

        Public Partial Class EstimateJobView
            Public Overridable Property Seq As Integer
            Public Overridable Property WorkPackage As WorkPackageView
            Public Overridable Property ItemNo As String
            Public Overridable Property Name As String
            Public Overridable Property Category As String
            Public Overridable Property SourceRef As String
            Public Overridable Property Unit As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property PatternCode As String
            Public Overridable Property Workdays As Integer
            Public Overridable Property HoursPerDay As Decimal
            Public Overridable Property IsNight As Boolean
            Public Overridable Property WeeklyHours As Decimal
            Public Overridable Property OtFraction As Decimal
            Public Overridable Property Days As Decimal
            Public Overridable Property EffectiveProdPerDay As Decimal?
            Public Overridable Property CrewPremiumApplied As Boolean
            Public Overridable Property CrewCost As Decimal
            Public Overridable Property FringeCost As Decimal
            Public Overridable Property EquipmentCost As Decimal
            Public Overridable Property MaterialCost As Decimal
            Public Overridable Property SubcontractCost As Decimal
            Public Overridable Property Direct As Decimal
            Public Overridable Property PricingBasis As String
            Public Overridable Property BenchmarkUnitPrice As Decimal?
            Public Overridable Property Crew As List(Of EstimateCrewLineView) = New List(Of EstimateCrewLineView)
            Public Overridable Property Equipment As List(Of EstimateEquipmentLineView) = New List(Of EstimateEquipmentLineView)
            Public Overridable Property Materials As List(Of EstimateMaterialLineView) = New List(Of EstimateMaterialLineView)
            Public Overridable Property Subcontracts As List(Of EstimateSubcontractView) = New List(Of EstimateSubcontractView)
        End Class

        Public Partial Class EstimateMaterialLineView
            Public Overridable Property Name As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property Unit As String
            Public Overridable Property Rate As Decimal?
            Public Overridable Property NeedsRate As Boolean
            Public Overridable Property Cost As Decimal
            Public Overridable Property RateKey As String
            Public Overridable Property Chip As String
        End Class

        Public Partial Class EstimateResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property View As EstimatingView
        End Class

        Public Partial Class EstimateReviewItemView
            Public Overridable Property TaskSeq As Integer
            Public Overridable Property TaskName As String
            Public Overridable Property Reason As String
            Public Overridable Property Status As String
        End Class

        Public Partial Class EstimateSettingsView
            Public Overridable Property RfpEstimateID As Integer
            Public Overridable Property StartDate As Date?
            Public Overridable Property DeadlineDate As Date?
            Public Overridable Property WorkdaysPerWeek As Integer
            Public Overridable Property HoursPerDay As Decimal
            Public Overridable Property WeatherPct As Decimal
            Public Overridable Property OhpPct As Decimal
            Public Overridable Property ContingencyPct As Decimal
            Public Overridable Property BondPct As Decimal
            Public Overridable Property Holidays As List(Of Date) = New List(Of Date)
            Public Overridable Property AppliedStartDate As Date?
        End Class

        Public Partial Class EstimateSubcontractView
            Public Overridable Property EstimateSubcontractID As Integer
            Public Overridable Property TaskSeq As Integer
            Public Overridable Property Vendor As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property Scope As String
        End Class

        Public Partial Class EstimateSummaryView
            Public Overridable Property Direct As Decimal
            Public Overridable Property OhpPct As Decimal
            Public Overridable Property OhpAmount As Decimal
            Public Overridable Property BondPct As Decimal
            Public Overridable Property BondAmount As Decimal
            Public Overridable Property ContingencyPct As Decimal
            Public Overridable Property ContingencyAmount As Decimal
            Public Overridable Property BidTotal As Decimal
            Public Overridable Property LoadFactor As Decimal
            Public Overridable Property MarginPct As Decimal
        End Class

        Public Partial Class EstimateTimingView
            Public Overridable Property TotalWorkdays As Decimal
            Public Overridable Property CalendarDays As Integer
            Public Overridable Property Finish As Date
            Public Overridable Property Feasible As Boolean
            Public Overridable Property Deadline As Date?
        End Class

        Public Partial Class EstimateVarianceLine
            Public Overridable Property Seq As Integer
            Public Overridable Property ItemNo As String
            Public Overridable Property Name As String
            Public Overridable Property Unit As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property OurUnitPrice As Decimal
            Public Overridable Property OurTotal As Decimal
            Public Overridable Property BenchmarkUnitPrice As Decimal
            Public Overridable Property MarketTotal As Decimal
            Public Overridable Property DeltaPct As Decimal
            Public Overridable Property RateMin As Decimal?
            Public Overridable Property RateMax As Decimal?
            Public Overridable Property SampleSize As Integer?
            Public Overridable Property OutsideRange As Boolean?
            Public Overridable Property IsFloor As Boolean
            Public Overridable Property Severity As String
            Public Overridable Property Note As String
        End Class

        Public Partial Class EstimateVarianceView
            Public Overridable Property Lines As List(Of EstimateVarianceLine) = New List(Of EstimateVarianceLine)
            Public Overridable Property ItemsTotal As Integer
            Public Overridable Property ItemsBenchmarked As Integer
            Public Overridable Property CoverageValuePct As Decimal
            Public Overridable Property OursTotal As Decimal
            Public Overridable Property MarketTotal As Decimal
            Public Overridable Property AggregateDeltaPct As Decimal?
            Public Overridable Property FlooredCount As Integer
            Public Overridable Property WatchCount As Integer
            Public Overridable Property OutlierCount As Integer
            Public Overridable Property CriticalCount As Integer
            Public Overridable Property Note As String
        End Class

        Public Partial Class EstimatingView
            Public Overridable Property RfpDocumentID As Integer
            Public Overridable Property ProjectName As String
            Public Overridable Property ClientName As String
            Public Overridable Property BidDueDate As String
            Public Overridable Property ProjectType As String
            Public Overridable Property Settings As EstimateSettingsView
            Public Overridable Property Jobs As List(Of EstimateJobView) = New List(Of EstimateJobView)
            Public Overridable Property Schedule As List(Of BidScheduleLine) = New List(Of BidScheduleLine)
            Public Overridable Property ScheduleTotal As Decimal
            Public Overridable Property Variance As EstimateVarianceView
            Public Overridable Property Indicative As IndicativeBidView
            Public Overridable Property Summary As EstimateSummaryView
            Public Overridable Property Timing As EstimateTimingView
            Public Overridable Property NeedsRateCount As Integer
            Public Overridable Property NeedsRateKeys As List(Of String) = New List(Of String)
            Public Overridable Property ReviewItems As List(Of EstimateReviewItemView) = New List(Of EstimateReviewItemView)
            Public Overridable Property NeedsReviewCount As Integer
            Public Overridable Property CanApprove As Boolean
            Public Overridable Property CanSeePay As Boolean
        End Class

        Public Partial Class IndicativeBidView
            Public Overridable Property Lines As List(Of IndicativeLine) = New List(Of IndicativeLine)
            Public Overridable Property BottomUpCount As Integer
            Public Overridable Property BottomUpTotal As Decimal
            Public Overridable Property BenchmarkCount As Integer
            Public Overridable Property BenchmarkTotal As Decimal
            Public Overridable Property UncoveredCount As Integer
            Public Overridable Property UncoveredFloorTotal As Decimal
            Public Overridable Property IndicativeTotal As Decimal
            Public Overridable Property FloorTotal As Decimal
            Public Overridable Property Note As String
        End Class

        Public Partial Class IndicativeLine
            Public Overridable Property Seq As Integer
            Public Overridable Property ItemNo As String
            Public Overridable Property Name As String
            Public Overridable Property Unit As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property Source As String
            Public Overridable Property UnitPrice As Decimal
            Public Overridable Property LineTotal As Decimal
        End Class
    End Namespace
End Namespace

VB.NET EstimateCalendarPutRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /v1/Rfp/{RfpDocumentUID}/Estimate/Calendar HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"RfpDocumentUID":"00000000000000000000000000000000","StartDate":"0001-01-01T00:00:00.0000000","DeadlineDate":"0001-01-01T00:00:00.0000000","WorkdaysPerWeek":0,"HoursPerDay":0,"WeatherPct":0,"Holidays":["0001-01-01T00:00:00.0000000"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"View":{"RfpDocumentID":0,"ProjectName":"String","ClientName":"String","BidDueDate":"String","ProjectType":"String","Settings":{"RfpEstimateID":0,"StartDate":"0001-01-01T00:00:00.0000000","DeadlineDate":"0001-01-01T00:00:00.0000000","WorkdaysPerWeek":0,"HoursPerDay":0,"WeatherPct":0,"OhpPct":0,"ContingencyPct":0,"BondPct":0,"Holidays":["0001-01-01T00:00:00.0000000"],"AppliedStartDate":"0001-01-01T00:00:00.0000000"},"Jobs":[{"Seq":0,"WorkPackage":{"HasPackage":false,"Scope":"String","LimitsOfWork":"String","SpecRefs":[{"Section":"String","Title":"String","Url":"String"}],"Constraints":["String"],"HoldPoints":["String"],"Dod":[{"Key":"String","Text":"String","Checked":false,"Source":"String"}],"SafetyNote":"String","Provenance":"String","SpecBook":"String","UserEdited":false,"RedraftNote":"String"},"ItemNo":"String","Name":"String","Category":"String","SourceRef":"String","Unit":"String","Quantity":0,"PatternCode":"String","Workdays":0,"HoursPerDay":0,"IsNight":false,"WeeklyHours":0,"OtFraction":0,"Days":0,"EffectiveProdPerDay":0,"CrewPremiumApplied":false,"CrewCost":0,"FringeCost":0,"EquipmentCost":0,"MaterialCost":0,"SubcontractCost":0,"Direct":0,"PricingBasis":"String","BenchmarkUnitPrice":0,"Crew":[{"Role":"String","Hours":0,"StHours":0,"OtHours":0,"HasOt":false,"PremiumApplied":false,"NeedsRate":false,"RateKey":"String","Chip":"String","Rrop":0,"StCost":0,"OtCost":0,"Cost":0,"FringeCost":0}],"Equipment":[{"Name":"String","Quantity":0,"Rate":0,"NeedsRate":false,"MobCost":0,"Cost":0,"IsAvailabilityTracked":false,"IsOwned":false,"AvailabilityLabel":"String","FreedFromProject":"String","AvailableFrom":"0001-01-01T00:00:00.0000000","RateKey":"String","Chip":"String","RentalExplain":"String","UsageDays":0,"BilledDays":0}],"Materials":[{"Name":"String","Quantity":0,"Unit":"String","Rate":0,"NeedsRate":false,"Cost":0,"RateKey":"String","Chip":"String"}],"Subcontracts":[{"EstimateSubcontractID":0,"TaskSeq":0,"Vendor":"String","Amount":0,"Scope":"String"}]}],"Schedule":[{"ItemNo":"String","Description":"String","Unit":"String","Quantity":0,"UnitPrice":0,"Extension":0,"PricingBasis":"String","BenchmarkDeltaPct":0,"BenchmarkFlagged":false}],"ScheduleTotal":0,"Variance":{"Lines":[{"Seq":0,"ItemNo":"String","Name":"String","Unit":"String","Quantity":0,"OurUnitPrice":0,"OurTotal":0,"BenchmarkUnitPrice":0,"MarketTotal":0,"DeltaPct":0,"RateMin":0,"RateMax":0,"SampleSize":0,"OutsideRange":false,"IsFloor":false,"Severity":"String","Note":"String"}],"ItemsTotal":0,"ItemsBenchmarked":0,"CoverageValuePct":0,"OursTotal":0,"MarketTotal":0,"AggregateDeltaPct":0,"FlooredCount":0,"WatchCount":0,"OutlierCount":0,"CriticalCount":0,"Note":"String"},"Indicative":{"Lines":[{"Seq":0,"ItemNo":"String","Name":"String","Unit":"String","Quantity":0,"Source":"String","UnitPrice":0,"LineTotal":0}],"BottomUpCount":0,"BottomUpTotal":0,"BenchmarkCount":0,"BenchmarkTotal":0,"UncoveredCount":0,"UncoveredFloorTotal":0,"IndicativeTotal":0,"FloorTotal":0,"Note":"String"},"Summary":{"Direct":0,"OhpPct":0,"OhpAmount":0,"BondPct":0,"BondAmount":0,"ContingencyPct":0,"ContingencyAmount":0,"BidTotal":0,"LoadFactor":0,"MarginPct":0},"Timing":{"TotalWorkdays":0,"CalendarDays":0,"Finish":"0001-01-01T00:00:00.0000000","Feasible":false,"Deadline":"0001-01-01T00:00:00.0000000"},"NeedsRateCount":0,"NeedsRateKeys":["String"],"ReviewItems":[{"TaskSeq":0,"TaskName":"String","Reason":"String","Status":"String"}],"NeedsReviewCount":0,"CanApprove":false,"CanSeePay":false}}