Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.99 KB | None | 0 0
  1. <apex:page standardController="gii__SalesOrder__c" extensions="AddSalesOrderLinesCon" sidebar="true" tabStyle="gii__SalesOrder__c">
  2. <apex:stylesheet value="{!URLFOR($Resource.SalesOrderQuoteWizardResource, 'css/core.css')}"/>
  3. <style>
  4. table, td, th {
  5. vertical-align:top;
  6. }
  7. th {
  8. font-weight: bold;
  9. }
  10. table.prodsearchpanel td {
  11. padding-top:10px;
  12. vertical-align:center;
  13. }
  14. table.onlyavailprodpanel td {
  15. padding-top:0px;
  16. }
  17. .left {
  18. text-align:left;
  19. }
  20. .right {
  21. text-align:right;
  22. }
  23. .top {
  24. vertical-align:top;
  25. }
  26. .detailtdborder {
  27. border-right: 1px solid black;
  28. white-space:nowrap;
  29. }
  30. .nowrap {
  31. white-space:nowrap;
  32. }
  33. .optionheader {
  34. width:150px;
  35. }
  36. .cropselect {
  37. height:26px;
  38. }
  39. .relmatselect {
  40. height:22px;
  41. width:72px;
  42. }
  43. .searchButton {
  44. width:100px;
  45. }
  46. .searchpanel {
  47. margin-left:5%;
  48. }
  49. .flowButtonPanel {
  50. float:right;
  51. }
  52. .tempexcludeclass {
  53. color:red!important;
  54. }
  55. .acronymheader {
  56. background-color:#F2F2F2;
  57. font-weight:bold;
  58. }
  59. .cancelBtnCss
  60. {
  61. background: transparent none;
  62. border: 0 none;
  63. color: #015ba7;
  64. font-weight: normal;
  65. font-size: .9em;
  66. margin-left: 7px;
  67. border: none !important;
  68. }
  69.  
  70. .cancelBtnCss
  71. {
  72. background: transparent none;
  73. border: 0 none;
  74. color: #015ba7;
  75. font-weight: normal;
  76. font-size: .9em;
  77. margin-left: 7px;
  78. border: none !important;
  79. }
  80.  
  81. .flowButtonPanel {
  82. float:right;
  83. }
  84.  
  85. </style>
  86.  
  87. <apex:sectionHeader title="{!$Label.AddLinesFromForecast}" subTitle="{!gii__SalesOrder__c.Name}"/>
  88. <!--<apex:pageBlock >
  89. <apex:pageBlockSection >
  90. <apex:outputField value="{!gii__SalesOrder__c.Name}"/>
  91. <apex:outputField value="{!gii__SalesOrder__c.gii__Account__c}"/>
  92. <apex:outputField value="{!gii__SalesOrder__c.gii__Warehouse__c}" />
  93. <apex:outputField value="{!gii__SalesOrder__c.Sales_Year__c}" />
  94. </apex:pageBlockSection>
  95. </apex:pageBlock> -->
  96. <!--<apex:pageBlock >
  97. <apex:pageBlockTable var="prod" value="{!products}">
  98. <apex:column value="{!prod.gii__ProductStyle__c}"/>
  99. <apex:column value="{!prod.Name}"/>
  100. <apex:column value="{!prod.gii__ProductCode__c}"/>
  101. <apex:column value="{!ProductToForecastMap[prod.Id]}" headerValue="forecast"/>
  102. <apex:column value="{!ProductToAvailableMap[prod.Id]}" headerValue="Available In Inventory"/>
  103. </apex:pageBlockTable>
  104. </apex:pageBlock>
  105. -->
  106.  
  107. <apex:form >
  108.  
  109. <apex:pageBlock >
  110. <!--<c:HeaderComponent id="headerComp" accountID="{!sorder.gii__Account__c}" accountName="{!sorder.gii__Account__r.Name}"
  111. isPrimaryPhToDisplay="true" isEmailToDisplay="true"
  112. phoneNumber="{!sorder.gii__Account__r.Phone}" email="{!sorder.gii__Account__r.owner.email}" seedsYearLabel="Sales Year: " seedsYearValue="{!sorder.Sales_Year__r.Name}"
  113. /> -->
  114. <c:WizardChevron id="Wizard_Chevron" Total_positions="{!strTotalPositions}"
  115. Default_Position="{!strDefaultHighlightPosition}" Highlight_position="{!strHighlightPosition}"
  116. Map_Position_Name="{!mapPositionAttributes}"/>
  117.  
  118. <apex:pageBlockButtons location="bottom" >
  119. <div class="flowButtonPanel">
  120. <apex:commandButton action="{!previousPage}" value="{!$Label.Previous_Button}"/>
  121. <apex:commandButton action="{!SaveProducts}" value="{!$Label.Next_buttton}"/>
  122. <apex:commandLink action="{!Cancel}" value="{!$Label.Cancel_button}" styleClass="cancelBtnCss" />
  123. </div>
  124. </apex:pageBlockButtons>
  125.  
  126. <apex:pageBlockSection title="{!$Label.Search_Title}" collapsible="false" >
  127. <apex:pageBlockSection columns="3">
  128. <apex:outputLabel value="{!$Label.Product_Name_Search}"></apex:outputLabel>
  129. <apex:inputText value="{!searchtext}" />
  130. <apex:commandButton value="{!$Label.Search_button}" action="{!getProducts}" reRender="productdata"/>
  131. </apex:pageBlockSection>
  132.  
  133. </apex:pageBlockSection>
  134.  
  135.  
  136. <apex:pageBlockSection columns="1" title="{!$Label.TableTitle_Products_From_Forecast}" collapsible="true" id="productdata" rendered="{!IF(productStyleWrapperList.size>0,'true','false')}">
  137. <center>
  138. <apex:outputPanel layout="block" styleClass="pSearchShowMore" id="otpNav" >
  139. <apex:image url="/img/search_prevarrow_disabled.gif" styleClass="prevArrow" rendered="{!NOT(Con.HasPrevious)}"/>
  140. <apex:image url="/img/search_prevarrow.gif" title="Previous Page" styleClass="prevArrow" rendered="{!Con.HasPrevious}"/>
  141. <apex:commandLink action="{!Previous}" title="Previous Page" value="Previous Page" rendered="{!HasPrevious}" reRender="productdata"/>
  142. <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!NOT(HasPrevious)}">Previous Page</apex:outputPanel>
  143. &nbsp;({!IF(PageNumber == 0,1,(PageNumber * PageSize)+1)}-{!IF(CountTotalRecords != null && CountTotalRecords < PageSize,CountTotalRecords,((PageNumber+1) * PageSize))})&nbsp;
  144. <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!NOT(HasNext)}" >Next Page</apex:outputPanel>
  145. <apex:commandLink title="Next Page" value="Next Page" rendered="{!HasNext}" action="{!Next}" reRender="productdata"/>&nbsp;
  146. <apex:image url="/img/search_nextarrow.gif" title="Next Page" styleClass="nextArrow" rendered="{!Con.HasNext}"/>
  147. <apex:image url="/img/search_nextarrow_disabled.gif" rendered="{!NOT(Con.HasNext)}"/>
  148. </apex:outputPanel>
  149. </center>
  150. <br/>
  151. <apex:outputPanel >
  152. <table style="width:100%;border-collapse:collapse;" class="list" >
  153. <thead class="rich-table-thead">
  154. <tr style="width:100%;" class="headerRow">
  155. <th class="headerRow" scope="col">{!$Label.Header_Product_Style}</th>
  156. <th class="headerRow" scope="col">{!$Label.Header_Allocation_Quantity}</th>
  157. <th class="headerRow" scope="col">{!$Label.Header_Product_Name}</th>
  158. <th class="headerRow" scope="col">{!$Label.Header_Product_Code}</th>
  159. <th class="headerRow" scope="col">{!$Label.Header_Forecast}</th>
  160. <th class="headerRow" scope="col">{!$Label.Header_Available_In_Inventory}</th>
  161. <th class="headerRow" scope="col">{!$Label.Header_Order_Quantity}</th>
  162. <th class="headerRow" scope="col">{!$Label.Header_Unit_Price}</th>
  163. <th class="headerRow" scope="col">{!$Label.Header_Unit_Amount_Off}</th>
  164. <th class="headerRow" scope="col">{!$Label.Header_Discount_Percent}</th>
  165. <th class="headerRow" scope="col">{!$Label.Header_Pricing_Overridden_Reason}</th>
  166. <th class="headerRow" scope="col">{!$Label.Header_Selling_Unit_of_Measure}</th>
  167. </tr>
  168. </thead>
  169.  
  170. <apex:repeat value="{!productStyleWrapperList}" var="prods">
  171. <tr class="dataRow">
  172. <td class="acronymheader dataCell">
  173. <apex:outputText value="{!prods.productStyle}"></apex:outputText>
  174. </td>
  175. <td class="acronymheader dataCell" align="right">
  176. <apex:outputText value="{!productStyleQtyMap[prods.productStyleId]}"></apex:outputText>
  177. </td>
  178. <td class="acronymheader dataCell">
  179. </td>
  180. <td class="acronymheader dataCell">
  181. </td>
  182. <td class="acronymheader dataCell">
  183. </td>
  184. <td class="acronymheader dataCell">
  185. </td>
  186. <td class="acronymheader dataCell">
  187. </td>
  188. <td class="acronymheader dataCell">
  189. </td>
  190. <td class="acronymheader dataCell">
  191. </td>
  192. <td class="acronymheader dataCell">
  193. </td>
  194. <td class="acronymheader dataCell">
  195. </td>
  196. <td class="acronymheader dataCell">
  197. </td>
  198. </tr>
  199. <apex:repeat value="{!prods.productList}" var="prod">
  200. <tr class="dataRow">
  201. <td class="dataCell">
  202. </td>
  203. <td class="dataCell">
  204. </td>
  205. <td class="dataCell">
  206. <apex:outputField value="{!Prod.sol.gii__Product__c}"></apex:outputField>
  207. </td>
  208. <td class="dataCell">
  209. <apex:outputText value="{!Prod.ProductCode}"></apex:outputText>
  210. </td>
  211. <td class="dataCell" align="right">
  212. <apex:outputText value="{!Prod.forecast}"></apex:outputText>
  213. </td>
  214. <td class="dataCell" align="right">
  215. <apex:outputText value="{!ProductToAvailableMap[Prod.Id]}"></apex:outputText>
  216. </td>
  217. <td class="dataCell">
  218. <apex:inputField value="{!Prod.sol.gii__OrderQuantity__c}"></apex:inputField>
  219. </td>
  220. <td class="dataCell">
  221. <apex:inputField value="{!Prod.sol.gii__UnitPrice__c}"></apex:inputField>
  222. </td>
  223. <td class="dataCell">
  224. <apex:inputField value="{!Prod.sol.gii__UnitAmountOff__c}"></apex:inputField>
  225. </td>
  226. <td class="dataCell">
  227. <apex:inputField value="{!Prod.sol.gii__DiscountPercent__c}"></apex:inputField>
  228. </td>
  229. <td class="dataCell">
  230. <apex:inputField value="{!Prod.sol.gii__PricingOverriddenReason__c}"></apex:inputField>
  231. </td>
  232. <td class="dataCell">
  233. <apex:OutputText value="{!Prod.sellingUnitOfMeasure}"></apex:OutputText>
  234. </td>
  235. </tr>
  236. </apex:repeat>
  237. </apex:repeat>
  238. </table>
  239. </apex:outputPanel>
  240. </apex:pageBlockSection>
  241. <apex:pageMessage summary="Account has no contacts" severity="info" rendered="{!IF(productStyleWrapperList.size>0,'false','true')}" />
  242. </apex:pageBlock>
  243. </apex:form>
  244. <!--<apex:pageBlock >
  245. <apex:pageBlockTable var="prod" value="{!productLineWrapperList}">
  246. <apex:column value="{!prod.productStyle}" headerValue="Product style"/>
  247. <apex:column value="{!prod.Name}" headerValue="Product Name"/>
  248. <apex:column value="{!prod.ProductCode}" headerValue="Product Code"/>
  249. <apex:column value="{!prod.forecast}" headerValue="Forecast"/>
  250. <apex:column value="{!prod.AvailableInInventory}" headerValue="Available In Inventory"/>
  251. <apex:column headerValue="Order Quantity">
  252. <apex:inputField/>
  253. </apex:column>
  254. </apex:pageBlockTable>
  255. </apex:pageBlock> -->
  256.  
  257. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement