Trendsic Platform Service

<back to all web services

ApplyAssemblyRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/Rfp/{RfpDocumentUID}/Estimate/Jobs/{TaskSeq}/assembly
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 ApplyAssemblyRequest
            Public Overridable Property RfpDocumentUID As Guid
            Public Overridable Property TaskSeq As Integer
            Public Overridable Property TemplateUID As Guid
        End Class

        Public Partial Class ApplyAssemblyResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property TaskSeq As Integer
            Public Overridable Property TemplateUID As Guid?
            Public Overridable Property TemplateName As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property Unit As String
            Public Overridable Property Resourcing As TaskResourcing
            Public Overridable Property Job As EstimateJobResult
            Public Overridable Property Headline As String
        End Class

        Public Partial Class EstimateCrewLineResult
            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 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
            Public Overridable Property PremiumApplied As Boolean
            Public Overridable Property HasOt As Boolean
            Public Overridable Property NeedsRate As Boolean
        End Class

        Public Partial Class EstimateEquipmentLineResult
            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 RentalExplain As String
            Public Overridable Property UsageDays As Decimal
            Public Overridable Property BilledDays As Decimal
        End Class

        Public Partial Class EstimateJobResult
            Public Overridable Property Seq As Integer
            Public Overridable Property DependsOn As List(Of Integer) = New List(Of Integer)
            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 WorkPackage As WorkPackageView
            Public Overridable Property Crew As List(Of EstimateCrewLineResult) = New List(Of EstimateCrewLineResult)
            Public Overridable Property Equipment As List(Of EstimateEquipmentLineResult) = New List(Of EstimateEquipmentLineResult)
            Public Overridable Property Materials As List(Of EstimateMaterialLineResult) = New List(Of EstimateMaterialLineResult)
            Public Overridable Property Subcontracts As List(Of EstimateSubcontractLine) = New List(Of EstimateSubcontractLine)
            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 PricingRuleId As String
            Public Overridable Property PricingBandP25 As Decimal?
            Public Overridable Property PricingBandP75 As Decimal?
            Public Overridable Property PricingBandN As Integer?
            Public Overridable Property PricingBandLabel As String
            Public Overridable Property BenchmarkUnitPrice As Decimal?
            Public Overridable Property BenchmarkRateMin As Decimal?
            Public Overridable Property BenchmarkRateMax As Decimal?
            Public Overridable Property BenchmarkSampleSize As Integer?
            Public Overridable Property BenchmarkP25 As Decimal?
            Public Overridable Property BenchmarkP75 As Decimal?
            Public Overridable Property BenchmarkBasis As String
            Public Overridable Property UnitPriceOverride As Decimal?
            Public Overridable Property OverrideBasis As String
            Public Overridable Property ReferencePrice As Decimal?
            Public Overridable Property ReferenceRangeMin As Decimal?
            Public Overridable Property ReferenceRangeMax As Decimal?
            Public Overridable Property ReferenceN As Integer?
            Public Overridable Property ReferenceDate As Date?
            Public Overridable Property ReferenceBasis As String
            Public Overridable Property ReferenceUrl As String
        End Class

        Public Partial Class EstimateMaterialLineResult
            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
        End Class

        Public Partial Class EstimateSubcontractLine
            Public Overridable Property Vendor As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property Scope As String
        End Class

        Public Partial Class ResourcedEquipment
            Public Overridable Property EquipmentID As Integer
            Public Overridable Property EquipmentName As String
            Public Overridable Property MakeModel As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property DurationDays As Double?
            Public Overridable Property Utilization As Double?
            Public Overridable Property FixedDays As Double?
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property SuggestedEquipmentID As Integer
            Public Overridable Property SuggestedEquipmentName As String
        End Class

        Public Partial Class ResourcedMaterial
            Public Overridable Property MaterialID As Integer
            Public Overridable Property MaterialName As String
            Public Overridable Property MakeModel As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property QuantityPerUnit As Double?
            Public Overridable Property Unit As String
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property SuggestedMaterialID As Integer
            Public Overridable Property SuggestedMaterialName As String
        End Class

        Public Partial Class ResourcedPosition
            Public Overridable Property PositionTag As String
            Public Overridable Property Hours As Double?
            Public Overridable Property CrewSize As Double?
            Public Overridable Property Utilization As Double?
            Public Overridable Property FixedDays As Double?
            Public Overridable Property Headcount As Integer?
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property ContactID As Integer?
        End Class

        Public Partial Class TaskResourcing
            Public Overridable Property Positions As List(Of ResourcedPosition) = New List(Of ResourcedPosition)
            Public Overridable Property Equipment As List(Of ResourcedEquipment) = New List(Of ResourcedEquipment)
            Public Overridable Property Materials As List(Of ResourcedMaterial) = New List(Of ResourcedMaterial)
            Public Overridable Property ResourcedForQuantity As Double?
            Public Overridable Property ProductionRatePerDay As Double?
            Public Overridable Property FixedDays As Double?
        End Class
    End Namespace
End Namespace

VB.NET ApplyAssemblyRequest DTOs

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

HTTP + XML

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

POST /v1/Rfp/{RfpDocumentUID}/Estimate/Jobs/{TaskSeq}/assembly HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ApplyAssemblyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <RfpDocumentUID>00000000-0000-0000-0000-000000000000</RfpDocumentUID>
  <TaskSeq>0</TaskSeq>
  <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
</ApplyAssemblyRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ApplyAssemblyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Headline>String</Headline>
  <Job>
    <BenchmarkBasis>String</BenchmarkBasis>
    <BenchmarkP25>0</BenchmarkP25>
    <BenchmarkP75>0</BenchmarkP75>
    <BenchmarkRateMax>0</BenchmarkRateMax>
    <BenchmarkRateMin>0</BenchmarkRateMin>
    <BenchmarkSampleSize>0</BenchmarkSampleSize>
    <BenchmarkUnitPrice>0</BenchmarkUnitPrice>
    <Category>String</Category>
    <Crew>
      <EstimateCrewLineResult>
        <Cost>0</Cost>
        <FringeCost>0</FringeCost>
        <HasOt>false</HasOt>
        <Hours>0</Hours>
        <NeedsRate>false</NeedsRate>
        <OtCost>0</OtCost>
        <OtHours>0</OtHours>
        <PremiumApplied>false</PremiumApplied>
        <Role>String</Role>
        <Rrop>0</Rrop>
        <StCost>0</StCost>
        <StHours>0</StHours>
      </EstimateCrewLineResult>
    </Crew>
    <CrewCost>0</CrewCost>
    <CrewPremiumApplied>false</CrewPremiumApplied>
    <Days>0</Days>
    <DependsOn xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </DependsOn>
    <Direct>0</Direct>
    <EffectiveProdPerDay>0</EffectiveProdPerDay>
    <Equipment>
      <EstimateEquipmentLineResult>
        <AvailabilityLabel>String</AvailabilityLabel>
        <AvailableFrom>0001-01-01T00:00:00</AvailableFrom>
        <BilledDays>0</BilledDays>
        <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>
      </EstimateEquipmentLineResult>
    </Equipment>
    <EquipmentCost>0</EquipmentCost>
    <FringeCost>0</FringeCost>
    <HoursPerDay>0</HoursPerDay>
    <IsNight>false</IsNight>
    <ItemNo>String</ItemNo>
    <MaterialCost>0</MaterialCost>
    <Materials>
      <EstimateMaterialLineResult>
        <Cost>0</Cost>
        <Name>String</Name>
        <NeedsRate>false</NeedsRate>
        <Quantity>0</Quantity>
        <Rate>0</Rate>
        <RateKey>String</RateKey>
        <Unit>String</Unit>
      </EstimateMaterialLineResult>
    </Materials>
    <Name>String</Name>
    <OtFraction>0</OtFraction>
    <OverrideBasis>String</OverrideBasis>
    <PatternCode>String</PatternCode>
    <PricingBandLabel>String</PricingBandLabel>
    <PricingBandN>0</PricingBandN>
    <PricingBandP25>0</PricingBandP25>
    <PricingBandP75>0</PricingBandP75>
    <PricingBasis>String</PricingBasis>
    <PricingRuleId>String</PricingRuleId>
    <Quantity>0</Quantity>
    <ReferenceBasis>String</ReferenceBasis>
    <ReferenceDate>0001-01-01T00:00:00</ReferenceDate>
    <ReferenceN>0</ReferenceN>
    <ReferencePrice>0</ReferencePrice>
    <ReferenceRangeMax>0</ReferenceRangeMax>
    <ReferenceRangeMin>0</ReferenceRangeMin>
    <ReferenceUrl>String</ReferenceUrl>
    <Seq>0</Seq>
    <SourceRef>String</SourceRef>
    <SubcontractCost>0</SubcontractCost>
    <Subcontracts>
      <EstimateSubcontractLine>
        <Amount>0</Amount>
        <Scope>String</Scope>
        <Vendor>String</Vendor>
      </EstimateSubcontractLine>
    </Subcontracts>
    <Unit>String</Unit>
    <UnitPriceOverride>0</UnitPriceOverride>
    <WeeklyHours>0</WeeklyHours>
    <WorkPackage>
      <Constraints xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1: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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1: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>
  </Job>
  <Quantity>0</Quantity>
  <Resourcing>
    <Equipment>
      <ResourcedEquipment>
        <DurationDays>0</DurationDays>
        <EquipmentID>0</EquipmentID>
        <EquipmentName>String</EquipmentName>
        <FixedDays>0</FixedDays>
        <IsInCatalog>false</IsInCatalog>
        <MakeModel>String</MakeModel>
        <Notes>String</Notes>
        <Quantity>0</Quantity>
        <SourceReference>String</SourceReference>
        <SuggestedEquipmentID>0</SuggestedEquipmentID>
        <SuggestedEquipmentName>String</SuggestedEquipmentName>
        <Utilization>0</Utilization>
      </ResourcedEquipment>
    </Equipment>
    <FixedDays>0</FixedDays>
    <Materials>
      <ResourcedMaterial>
        <IsInCatalog>false</IsInCatalog>
        <MakeModel>String</MakeModel>
        <MaterialID>0</MaterialID>
        <MaterialName>String</MaterialName>
        <Notes>String</Notes>
        <Quantity>0</Quantity>
        <QuantityPerUnit>0</QuantityPerUnit>
        <SourceReference>String</SourceReference>
        <SuggestedMaterialID>0</SuggestedMaterialID>
        <SuggestedMaterialName>String</SuggestedMaterialName>
        <Unit>String</Unit>
      </ResourcedMaterial>
    </Materials>
    <Positions>
      <ResourcedPosition>
        <ContactID>0</ContactID>
        <CrewSize>0</CrewSize>
        <FixedDays>0</FixedDays>
        <Headcount>0</Headcount>
        <Hours>0</Hours>
        <IsInCatalog>false</IsInCatalog>
        <Notes>String</Notes>
        <PositionTag>String</PositionTag>
        <SourceReference>String</SourceReference>
        <Utilization>0</Utilization>
      </ResourcedPosition>
    </Positions>
    <ProductionRatePerDay>0</ProductionRatePerDay>
    <ResourcedForQuantity>0</ResourcedForQuantity>
  </Resourcing>
  <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>
  <TaskSeq>0</TaskSeq>
  <TemplateName>String</TemplateName>
  <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
  <Unit>String</Unit>
</ApplyAssemblyResponse>