Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:page standardController="gii__SalesOrder__c" extensions="AddSalesOrderLinesCon" sidebar="true" tabStyle="gii__SalesOrder__c">
- <apex:stylesheet value="{!URLFOR($Resource.SalesOrderQuoteWizardResource, 'css/core.css')}"/>
- <style>
- table, td, th {
- vertical-align:top;
- }
- th {
- font-weight: bold;
- }
- table.prodsearchpanel td {
- padding-top:10px;
- vertical-align:center;
- }
- table.onlyavailprodpanel td {
- padding-top:0px;
- }
- .left {
- text-align:left;
- }
- .right {
- text-align:right;
- }
- .top {
- vertical-align:top;
- }
- .detailtdborder {
- border-right: 1px solid black;
- white-space:nowrap;
- }
- .nowrap {
- white-space:nowrap;
- }
- .optionheader {
- width:150px;
- }
- .cropselect {
- height:26px;
- }
- .relmatselect {
- height:22px;
- width:72px;
- }
- .searchButton {
- width:100px;
- }
- .searchpanel {
- margin-left:5%;
- }
- .flowButtonPanel {
- float:right;
- }
- .tempexcludeclass {
- color:red!important;
- }
- .acronymheader {
- background-color:#F2F2F2;
- font-weight:bold;
- }
- .cancelBtnCss
- {
- background: transparent none;
- border: 0 none;
- color: #015ba7;
- font-weight: normal;
- font-size: .9em;
- margin-left: 7px;
- border: none !important;
- }
- .cancelBtnCss
- {
- background: transparent none;
- border: 0 none;
- color: #015ba7;
- font-weight: normal;
- font-size: .9em;
- margin-left: 7px;
- border: none !important;
- }
- .flowButtonPanel {
- float:right;
- }
- </style>
- <apex:sectionHeader title="{!$Label.AddLinesFromForecast}" subTitle="{!gii__SalesOrder__c.Name}"/>
- <!--<apex:pageBlock >
- <apex:pageBlockSection >
- <apex:outputField value="{!gii__SalesOrder__c.Name}"/>
- <apex:outputField value="{!gii__SalesOrder__c.gii__Account__c}"/>
- <apex:outputField value="{!gii__SalesOrder__c.gii__Warehouse__c}" />
- <apex:outputField value="{!gii__SalesOrder__c.Sales_Year__c}" />
- </apex:pageBlockSection>
- </apex:pageBlock> -->
- <!--<apex:pageBlock >
- <apex:pageBlockTable var="prod" value="{!products}">
- <apex:column value="{!prod.gii__ProductStyle__c}"/>
- <apex:column value="{!prod.Name}"/>
- <apex:column value="{!prod.gii__ProductCode__c}"/>
- <apex:column value="{!ProductToForecastMap[prod.Id]}" headerValue="forecast"/>
- <apex:column value="{!ProductToAvailableMap[prod.Id]}" headerValue="Available In Inventory"/>
- </apex:pageBlockTable>
- </apex:pageBlock>
- -->
- <apex:form >
- <apex:pageBlock >
- <!--<c:HeaderComponent id="headerComp" accountID="{!sorder.gii__Account__c}" accountName="{!sorder.gii__Account__r.Name}"
- isPrimaryPhToDisplay="true" isEmailToDisplay="true"
- phoneNumber="{!sorder.gii__Account__r.Phone}" email="{!sorder.gii__Account__r.owner.email}" seedsYearLabel="Sales Year: " seedsYearValue="{!sorder.Sales_Year__r.Name}"
- /> -->
- <c:WizardChevron id="Wizard_Chevron" Total_positions="{!strTotalPositions}"
- Default_Position="{!strDefaultHighlightPosition}" Highlight_position="{!strHighlightPosition}"
- Map_Position_Name="{!mapPositionAttributes}"/>
- <apex:pageBlockButtons location="bottom" >
- <div class="flowButtonPanel">
- <apex:commandButton action="{!previousPage}" value="{!$Label.Previous_Button}"/>
- <apex:commandButton action="{!SaveProducts}" value="{!$Label.Next_buttton}"/>
- <apex:commandLink action="{!Cancel}" value="{!$Label.Cancel_button}" styleClass="cancelBtnCss" />
- </div>
- </apex:pageBlockButtons>
- <apex:pageBlockSection title="{!$Label.Search_Title}" collapsible="false" >
- <apex:pageBlockSection columns="3">
- <apex:outputLabel value="{!$Label.Product_Name_Search}"></apex:outputLabel>
- <apex:inputText value="{!searchtext}" />
- <apex:commandButton value="{!$Label.Search_button}" action="{!getProducts}" reRender="productdata"/>
- </apex:pageBlockSection>
- </apex:pageBlockSection>
- <apex:pageBlockSection columns="1" title="{!$Label.TableTitle_Products_From_Forecast}" collapsible="true" id="productdata" rendered="{!IF(productStyleWrapperList.size>0,'true','false')}">
- <center>
- <apex:outputPanel layout="block" styleClass="pSearchShowMore" id="otpNav" >
- <apex:image url="/img/search_prevarrow_disabled.gif" styleClass="prevArrow" rendered="{!NOT(Con.HasPrevious)}"/>
- <apex:image url="/img/search_prevarrow.gif" title="Previous Page" styleClass="prevArrow" rendered="{!Con.HasPrevious}"/>
- <apex:commandLink action="{!Previous}" title="Previous Page" value="Previous Page" rendered="{!HasPrevious}" reRender="productdata"/>
- <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!NOT(HasPrevious)}">Previous Page</apex:outputPanel>
- ({!IF(PageNumber == 0,1,(PageNumber * PageSize)+1)}-{!IF(CountTotalRecords != null && CountTotalRecords < PageSize,CountTotalRecords,((PageNumber+1) * PageSize))})
- <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!NOT(HasNext)}" >Next Page</apex:outputPanel>
- <apex:commandLink title="Next Page" value="Next Page" rendered="{!HasNext}" action="{!Next}" reRender="productdata"/>
- <apex:image url="/img/search_nextarrow.gif" title="Next Page" styleClass="nextArrow" rendered="{!Con.HasNext}"/>
- <apex:image url="/img/search_nextarrow_disabled.gif" rendered="{!NOT(Con.HasNext)}"/>
- </apex:outputPanel>
- </center>
- <br/>
- <apex:outputPanel >
- <table style="width:100%;border-collapse:collapse;" class="list" >
- <thead class="rich-table-thead">
- <tr style="width:100%;" class="headerRow">
- <th class="headerRow" scope="col">{!$Label.Header_Product_Style}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Allocation_Quantity}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Product_Name}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Product_Code}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Forecast}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Available_In_Inventory}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Order_Quantity}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Unit_Price}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Unit_Amount_Off}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Discount_Percent}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Pricing_Overridden_Reason}</th>
- <th class="headerRow" scope="col">{!$Label.Header_Selling_Unit_of_Measure}</th>
- </tr>
- </thead>
- <apex:repeat value="{!productStyleWrapperList}" var="prods">
- <tr class="dataRow">
- <td class="acronymheader dataCell">
- <apex:outputText value="{!prods.productStyle}"></apex:outputText>
- </td>
- <td class="acronymheader dataCell" align="right">
- <apex:outputText value="{!productStyleQtyMap[prods.productStyleId]}"></apex:outputText>
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- <td class="acronymheader dataCell">
- </td>
- </tr>
- <apex:repeat value="{!prods.productList}" var="prod">
- <tr class="dataRow">
- <td class="dataCell">
- </td>
- <td class="dataCell">
- </td>
- <td class="dataCell">
- <apex:outputField value="{!Prod.sol.gii__Product__c}"></apex:outputField>
- </td>
- <td class="dataCell">
- <apex:outputText value="{!Prod.ProductCode}"></apex:outputText>
- </td>
- <td class="dataCell" align="right">
- <apex:outputText value="{!Prod.forecast}"></apex:outputText>
- </td>
- <td class="dataCell" align="right">
- <apex:outputText value="{!ProductToAvailableMap[Prod.Id]}"></apex:outputText>
- </td>
- <td class="dataCell">
- <apex:inputField value="{!Prod.sol.gii__OrderQuantity__c}"></apex:inputField>
- </td>
- <td class="dataCell">
- <apex:inputField value="{!Prod.sol.gii__UnitPrice__c}"></apex:inputField>
- </td>
- <td class="dataCell">
- <apex:inputField value="{!Prod.sol.gii__UnitAmountOff__c}"></apex:inputField>
- </td>
- <td class="dataCell">
- <apex:inputField value="{!Prod.sol.gii__DiscountPercent__c}"></apex:inputField>
- </td>
- <td class="dataCell">
- <apex:inputField value="{!Prod.sol.gii__PricingOverriddenReason__c}"></apex:inputField>
- </td>
- <td class="dataCell">
- <apex:OutputText value="{!Prod.sellingUnitOfMeasure}"></apex:OutputText>
- </td>
- </tr>
- </apex:repeat>
- </apex:repeat>
- </table>
- </apex:outputPanel>
- </apex:pageBlockSection>
- <apex:pageMessage summary="Account has no contacts" severity="info" rendered="{!IF(productStyleWrapperList.size>0,'false','true')}" />
- </apex:pageBlock>
- </apex:form>
- <!--<apex:pageBlock >
- <apex:pageBlockTable var="prod" value="{!productLineWrapperList}">
- <apex:column value="{!prod.productStyle}" headerValue="Product style"/>
- <apex:column value="{!prod.Name}" headerValue="Product Name"/>
- <apex:column value="{!prod.ProductCode}" headerValue="Product Code"/>
- <apex:column value="{!prod.forecast}" headerValue="Forecast"/>
- <apex:column value="{!prod.AvailableInInventory}" headerValue="Available In Inventory"/>
- <apex:column headerValue="Order Quantity">
- <apex:inputField/>
- </apex:column>
- </apex:pageBlockTable>
- </apex:pageBlock> -->
- </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement