| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Estimate/Subcontracts |
|---|
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 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 EstimateSubcontractAddRequest
Public Overridable Property RfpDocumentUID As Guid
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 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 EstimateSubcontractAddRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/{RfpDocumentUID}/Estimate/Subcontracts HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EstimateSubcontractAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Amount>0</Amount>
<RfpDocumentUID>00000000-0000-0000-0000-000000000000</RfpDocumentUID>
<Scope>String</Scope>
<TaskSeq>0</TaskSeq>
<Vendor>String</Vendor>
</EstimateSubcontractAddRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EstimateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<View>
<BidDueDate>String</BidDueDate>
<CanApprove>false</CanApprove>
<CanSeePay>false</CanSeePay>
<ClientName>String</ClientName>
<Indicative>
<BenchmarkCount>0</BenchmarkCount>
<BenchmarkTotal>0</BenchmarkTotal>
<BottomUpCount>0</BottomUpCount>
<BottomUpTotal>0</BottomUpTotal>
<FloorTotal>0</FloorTotal>
<IndicativeTotal>0</IndicativeTotal>
<Lines>
<IndicativeLine>
<ItemNo>String</ItemNo>
<LineTotal>0</LineTotal>
<Name>String</Name>
<Quantity>0</Quantity>
<Seq>0</Seq>
<Source>String</Source>
<Unit>String</Unit>
<UnitPrice>0</UnitPrice>
</IndicativeLine>
</Lines>
<Note>String</Note>
<UncoveredCount>0</UncoveredCount>
<UncoveredFloorTotal>0</UncoveredFloorTotal>
</Indicative>
<Jobs>
<EstimateJobView>
<BenchmarkUnitPrice>0</BenchmarkUnitPrice>
<Category>String</Category>
<Crew>
<EstimateCrewLineView>
<Chip>String</Chip>
<Cost>0</Cost>
<FringeCost>0</FringeCost>
<HasOt>false</HasOt>
<Hours>0</Hours>
<NeedsRate>false</NeedsRate>
<OtCost>0</OtCost>
<OtHours>0</OtHours>
<PremiumApplied>false</PremiumApplied>
<RateKey>String</RateKey>
<Role>String</Role>
<Rrop>0</Rrop>
<StCost>0</StCost>
<StHours>0</StHours>
</EstimateCrewLineView>
</Crew>
<CrewCost>0</CrewCost>
<CrewPremiumApplied>false</CrewPremiumApplied>
<Days>0</Days>
<Direct>0</Direct>
<EffectiveProdPerDay>0</EffectiveProdPerDay>
<Equipment>
<EstimateEquipmentLineView>
<AvailabilityLabel>String</AvailabilityLabel>
<AvailableFrom>0001-01-01T00:00:00</AvailableFrom>
<BilledDays>0</BilledDays>
<Chip>String</Chip>
<Cost>0</Cost>
<FreedFromProject>String</FreedFromProject>
<IsAvailabilityTracked>false</IsAvailabilityTracked>
<IsOwned>false</IsOwned>
<MobCost>0</MobCost>
<Name>String</Name>
<NeedsRate>false</NeedsRate>
<Quantity>0</Quantity>
<Rate>0</Rate>
<RateKey>String</RateKey>
<RentalExplain>String</RentalExplain>
<UsageDays>0</UsageDays>
</EstimateEquipmentLineView>
</Equipment>
<EquipmentCost>0</EquipmentCost>
<FringeCost>0</FringeCost>
<HoursPerDay>0</HoursPerDay>
<IsNight>false</IsNight>
<ItemNo>String</ItemNo>
<MaterialCost>0</MaterialCost>
<Materials>
<EstimateMaterialLineView>
<Chip>String</Chip>
<Cost>0</Cost>
<Name>String</Name>
<NeedsRate>false</NeedsRate>
<Quantity>0</Quantity>
<Rate>0</Rate>
<RateKey>String</RateKey>
<Unit>String</Unit>
</EstimateMaterialLineView>
</Materials>
<Name>String</Name>
<OtFraction>0</OtFraction>
<PatternCode>String</PatternCode>
<PricingBasis>String</PricingBasis>
<Quantity>0</Quantity>
<Seq>0</Seq>
<SourceRef>String</SourceRef>
<SubcontractCost>0</SubcontractCost>
<Subcontracts>
<EstimateSubcontractView>
<Amount>0</Amount>
<EstimateSubcontractID>0</EstimateSubcontractID>
<Scope>String</Scope>
<TaskSeq>0</TaskSeq>
<Vendor>String</Vendor>
</EstimateSubcontractView>
</Subcontracts>
<Unit>String</Unit>
<WeeklyHours>0</WeeklyHours>
<WorkPackage>
<Constraints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</Constraints>
<Dod>
<RfpWorkPackageService.DodItemView>
<Checked>false</Checked>
<Key>String</Key>
<Source>String</Source>
<Text>String</Text>
</RfpWorkPackageService.DodItemView>
</Dod>
<HasPackage>false</HasPackage>
<HoldPoints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</HoldPoints>
<LimitsOfWork>String</LimitsOfWork>
<Provenance>String</Provenance>
<RedraftNote>String</RedraftNote>
<SafetyNote>String</SafetyNote>
<Scope>String</Scope>
<SpecBook>String</SpecBook>
<SpecRefs>
<RfpWorkPackageService.SpecRefView>
<Section>String</Section>
<Title>String</Title>
<Url>String</Url>
</RfpWorkPackageService.SpecRefView>
</SpecRefs>
<UserEdited>false</UserEdited>
</WorkPackage>
<Workdays>0</Workdays>
</EstimateJobView>
</Jobs>
<NeedsRateCount>0</NeedsRateCount>
<NeedsRateKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</NeedsRateKeys>
<NeedsReviewCount>0</NeedsReviewCount>
<ProjectName>String</ProjectName>
<ProjectType>String</ProjectType>
<ReviewItems>
<EstimateReviewItemView>
<Reason>String</Reason>
<Status>String</Status>
<TaskName>String</TaskName>
<TaskSeq>0</TaskSeq>
</EstimateReviewItemView>
</ReviewItems>
<RfpDocumentID>0</RfpDocumentID>
<Schedule>
<BidScheduleLine>
<BenchmarkDeltaPct>0</BenchmarkDeltaPct>
<BenchmarkFlagged>false</BenchmarkFlagged>
<Description>String</Description>
<Extension>0</Extension>
<ItemNo>String</ItemNo>
<PricingBasis>String</PricingBasis>
<Quantity>0</Quantity>
<Unit>String</Unit>
<UnitPrice>0</UnitPrice>
</BidScheduleLine>
</Schedule>
<ScheduleTotal>0</ScheduleTotal>
<Settings>
<AppliedStartDate>0001-01-01T00:00:00</AppliedStartDate>
<BondPct>0</BondPct>
<ContingencyPct>0</ContingencyPct>
<DeadlineDate>0001-01-01T00:00:00</DeadlineDate>
<Holidays xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:dateTime>0001-01-01T00:00:00</d4p1:dateTime>
</Holidays>
<HoursPerDay>0</HoursPerDay>
<OhpPct>0</OhpPct>
<RfpEstimateID>0</RfpEstimateID>
<StartDate>0001-01-01T00:00:00</StartDate>
<WeatherPct>0</WeatherPct>
<WorkdaysPerWeek>0</WorkdaysPerWeek>
</Settings>
<Summary>
<BidTotal>0</BidTotal>
<BondAmount>0</BondAmount>
<BondPct>0</BondPct>
<ContingencyAmount>0</ContingencyAmount>
<ContingencyPct>0</ContingencyPct>
<Direct>0</Direct>
<LoadFactor>0</LoadFactor>
<MarginPct>0</MarginPct>
<OhpAmount>0</OhpAmount>
<OhpPct>0</OhpPct>
</Summary>
<Timing>
<CalendarDays>0</CalendarDays>
<Deadline>0001-01-01T00:00:00</Deadline>
<Feasible>false</Feasible>
<Finish>0001-01-01T00:00:00</Finish>
<TotalWorkdays>0</TotalWorkdays>
</Timing>
<Variance>
<AggregateDeltaPct>0</AggregateDeltaPct>
<CoverageValuePct>0</CoverageValuePct>
<CriticalCount>0</CriticalCount>
<FlooredCount>0</FlooredCount>
<ItemsBenchmarked>0</ItemsBenchmarked>
<ItemsTotal>0</ItemsTotal>
<Lines>
<EstimateVarianceLine>
<BenchmarkUnitPrice>0</BenchmarkUnitPrice>
<DeltaPct>0</DeltaPct>
<IsFloor>false</IsFloor>
<ItemNo>String</ItemNo>
<MarketTotal>0</MarketTotal>
<Name>String</Name>
<Note>String</Note>
<OurTotal>0</OurTotal>
<OurUnitPrice>0</OurUnitPrice>
<OutsideRange>false</OutsideRange>
<Quantity>0</Quantity>
<RateMax>0</RateMax>
<RateMin>0</RateMin>
<SampleSize>0</SampleSize>
<Seq>0</Seq>
<Severity>String</Severity>
<Unit>String</Unit>
</EstimateVarianceLine>
</Lines>
<MarketTotal>0</MarketTotal>
<Note>String</Note>
<OursTotal>0</OursTotal>
<OutlierCount>0</OutlierCount>
<WatchCount>0</WatchCount>
</Variance>
</View>
</EstimateResponse>