Skip to content

Instantly share code, notes, and snippets.

@vanrysss
Created July 21, 2014 19:02
Show Gist options
  • Save vanrysss/8a3634f99e029338368d to your computer and use it in GitHub Desktop.
Save vanrysss/8a3634f99e029338368d to your computer and use it in GitHub Desktop.
<apex:page controller="IntegratedOrdersReportController" docType="html-5.0">
<apex:pageBlock title="Integrated Orders Report">
<div align="right">
<apex:outputLink value="{!$Page.IntegratedOrdersExcelExport}" >Export Details
<apex:param name="startDate"
value="{!startDate}"
assignTo="{!startDate}"/>
<apex:param name="endDate"
value="{!endDate}"
assignTo="{!endDate}"/>
</apex:outputLink>
</div>
<apex:form >
<pageBlockSectionItem>
<apex:outputLabel value="Start Date: "/>
<apex:input type="date" value="{!startDate}" label="Start Date: "/>
</pageBlockSectionItem>
<pageBlockSectionItem>
<apex:outputLabel value="End Date: "/>
<apex:input type="date" value="{!endDate}" label="End Date: "/>
</pageBlockSectionItem>
<apex:commandButton value="Compute" action="{!computeOrders}" reRender="orderTable" />
</apex:form>
<apex:pageBlockTable value="{!mergedOrders}" var="order" id="orderTable">
<apex:column value="{!order.orderNumber}" headerValue="Order Number"/>
<apex:column value="{!order.shippedDate}" headerValue="Shipped Date"/>
<apex:column value="{!order.quantityInIDS}" headerValue="Quantity In IDS"/>
<apex:column value="{!order.quantityInSFDC}" headerValue="Quantity In SDFC"/>
<apex:column value="{!order.dateInSFDC}" headerValue="Date In SFDC"/>
<apex:column value="{!order.id}" headerValue="Id"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment