Blame view

applications/order/widget/ordermgr/OrderEntryForms.xml 13 KB
c16038356   Anchit Jindal   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
  -->
  <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
      <form name="FindRequirements" type="single" target="RequirementsForSupplier" title=""
          default-title-style="tableheadtext">
          <field name="showList"><hidden value="Y"/></field>
          <field name="requirementId"><text-find/></field>
          <field name="partyId" title="${uiLabelMap.PartySupplier}"><lookup target-form-name="LookupPartyName"/></field>
          <field name="productId" title="${uiLabelMap.ProductProductId}"><lookup target-form-name="LookupProduct"/></field>
          <field name="requirementByDate"><date-find type="date"/></field>
          <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
      </form>
      <form name="RequirementsList" type="multi" use-row-submit="true" target="addRequirementsToCart" title="" list-name="requirementsForSupplier"
          default-title-style="tableheadtext"
          paginate-target="RequirementsForSupplier">
          <actions>
              <service service-name="prepareFind" result-map="resultConditions">
                  <field-map field-name="inputFields" from-field="requestParameters"/>
                  <field-map field-name="entityName" from-field="entityName"/>
              </service>
              <service service-name="getRequirementsForSupplier" result-map="result" result-map-list="requirementsForSupplier">
                  <!--<field-map field-name="orderByList" from-field="resultConditions.orderByList"/>-->
                  <field-map field-name="requirementConditions" from-field="resultConditions.entityConditionList"/>
                  <field-map field-name="partyId" from-field="parameters.partyId"/>
              </service>
          </actions>
          <field name="requirementId"><display/></field>
          <field name="productId"><hidden value="${productId}"/></field>
          <field name="productId">
              <display-entity entity-name="Product" key-field-name="productId" description="${productId} - ${internalName}"/>
          </field>
  
          <field name="requiredByDate"><display/></field>
          <field name="quantity"><text/></field>
          <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><check/></field>
          <field name="submitButton" widget-style="smallSubmit"><submit/></field>
      </form>
      <form name="FindQuotes" target="FindQuoteForCart" title="" type="single"
          header-row-style="header-row" default-table-style="basic-table">
          <auto-fields-entity entity-name="Quote" default-field-type="find"/>
          <field name="quoteId" title="${uiLabelMap.OrderOrderQuoteId}"></field>
          <field name="quoteTypeId" title="${uiLabelMap.OrderOrderQuoteTypeId}">
              <drop-down allow-empty="true">
                  <entity-options description="${description}" entity-name="QuoteType" key-field-name="quoteTypeId"/>
              </drop-down>
          </field>
          <field name="partyId" title="${uiLabelMap.PartyPartyId}">
              <lookup target-form-name="LookupPartyName"/>
          </field>
          <field name="issueDate" title="${uiLabelMap.OrderOrderQuoteIssueDate}"></field>
          <field name="statusId"><hidden/></field>
          <field name="currencyUomId"><hidden/></field>
          <field name="validFromDate"><hidden/></field>
          <field name="validThruDate"><hidden/></field>
          <field name="description"><hidden/></field>
          <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit">
              <submit button-type="button"/>
          </field>
      </form>
      <form name="ListQuotes" list-name="listIt" target="" title="" type="list"
          default-title-style="tableheadtext"
          paginate-target="FindQuoteForCart">
            <actions>
            <set field="entityName" value="Quote"/>
            <service service-name="performFind" result-map="result" result-map-list="listIt">
              <field-map field-name="inputFields" from-field="requestParameters"/>
              <field-map field-name="entityName" from-field="entityName"/>
              <field-map field-name="viewIndex" from-field="viewIndex"/>
              <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
          </actions>
          <auto-fields-entity entity-name="Quote" default-field-type="display"/>
  
          <field name="quoteId" title="${uiLabelMap.OrderOrderQuoteId}" widget-style="buttontext">
              <hyperlink also-hidden="false" description="${quoteId}" target="loadCartFromQuote">
                  <parameter param-name="quoteId"/>
              </hyperlink>
          </field>
          <field name="quoteTypeId" title="${uiLabelMap.OrderOrderQuoteTypeId}">
              <display-entity entity-name="QuoteType"/>
          </field>
          <field name="partyId" title="${uiLabelMap.PartyPartyId}"></field>
          <field name="description" title="${uiLabelMap.CommonDescription}"></field>
          <field name="issueDate" title="${uiLabelMap.OrderOrderQuoteIssueDate}"></field>
          <field name="validFromDate" title="${uiLabelMap.CommonValidFromDate}"></field>
          <field name="validThruDate" title="${uiLabelMap.CommonValidThruDate}"></field>
          <field name="statusId"><hidden/></field>
          <field name="currencyUomId"><hidden/></field>
      </form>
      <form name="ViewShoppingLists" type="list" list-name="customershoppinglists" target=""
          default-title-style="tableheadtext">
          <field name="listName" title="${uiLabelMap.PageTitleShoppingList}"><display/></field>
          <field name="shoppingListTypeId" title="${uiLabelMap.OrderListType}">
              <display-entity entity-name="ShoppingListType"/>
          </field>
          <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
          <field name="addFromList" title=" " widget-style="buttontext">
              <hyperlink target="addFromShoppingList" description="${uiLabelMap.OrderToAddSelectedItemsToShoppingList}" also-hidden="false">
                  <parameter param-name="shoppingListId"/>
              </hyperlink>
          </field>
          <field name="addAllFromList" title=" " widget-style="buttontext">
              <hyperlink target="addAllFromShoppingList" description="${uiLabelMap.OrderQuickAdd}" also-hidden="false">
                  <parameter param-name="shoppingListId"/>
              </hyperlink>
          </field>
      </form>
      <form name="AddFromShoppingList" type="list" list-name="shoppinglistitems" target=""
          default-title-style="tableheadtext">
          <auto-fields-entity entity-name="ShoppingListItem" default-field-type="display"/>
          <field name="productId" title="${uiLabelMap.ProductProduct}">
              <display-entity entity-name="Product" description="${productId} - ${description}"/>
          </field>
          <field name="addToCart" title=" " widget-style="buttontext">
              <hyperlink target="additem/editShoppingList" description="${uiLabelMap.CommonAdd} ${quantity} ${uiLabelMap.OrderAddQntToOrder}" also-hidden="false">
                  <parameter param-name="shoppingListId"/>
                  <parameter param-name="shoppingListItemSeqId"/>
                  <parameter param-name="add_product_id" from-field="productId"/>
                  <parameter param-name="quantity"/>
                  <parameter param-name="configId"/>
              </hyperlink>
          </field>
      </form>
      <form name="AddFromShoppingListAll" type="single" target="">
          <field name="addAllFromList" title=" " widget-style="buttontext">
              <hyperlink target="addAllFromShoppingList" description="${uiLabelMap.OrderQuickAdd}" also-hidden="false">
                  <parameter param-name="shoppingListId"/>
              </hyperlink>
          </field>
          <field name="returnToOrderEntry" title=" " widget-style="buttontext">
              <hyperlink target="orderentry" description="${uiLabelMap.OrderOrderReturn}" also-hidden="false"/>
          </field>
      </form>
  
      <form name="LookupBulkAddProducts" type="multi" use-row-submit="true" list-name="productList" title="" target="BulkAddProducts"
          odd-row-style="alternate-row" default-table-style="basic-table hover-bar" paginate-target="LookupBulkAddProducts">
          <row-actions>
              <entity-one entity-name="Product" value-field="product" auto-field-map="true"/>
              <set field=""/>
              <set field="hasAmount" value="${groovy:product.getString('requireAmount')?:'N'}"/>
          </row-actions>
          <field name="productId"  title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
              <hyperlink description="${productId}" target="/catalog/control/EditProductInventoryItems" target-type="inter-app">
                  <parameter param-name="productId"/>
              </hyperlink>
          </field>
          <field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
          <field name="internalName"><display/></field>
          <field name="quantity" title="${uiLabelMap.OrderQuantity}">
              <text size="5" maxlength="10"/>
          </field>
          <field use-when="${groovy: 'Y'.equals(context.hasAmount)}"  name="amount" title="${uiLabelMap.OrderAmount}" >
              <text size="5" maxlength="10"/>
          </field>
          <field use-when="${groovy: 'N'.equals(context.hasAmount)}"  name="amount" title="${uiLabelMap.OrderAmount}" widget-style="disabled">
              <text size="5" maxlength="10" disabled="true"/>
          </field>        
          <field name="itemDesiredDeliveryDate" title="${uiLabelMap.OrderDesiredDeliveryDate}">
              <date-time/>
          </field>
          <field name="submitButton" title="${uiLabelMap.OrderAddToOrder}" widget-style="smallSubmit">
              <submit/>
          </field>
      </form>
      <form name="LookupBulkAddSupplierProducts" type="multi" use-row-submit="true" list-name="productList" title="" target="BulkAddProducts"
          odd-row-style="alternate-row" default-table-style="basic-table hover-bar" paginate-target="LookupBulkAddSupplierProducts" view-size="5">
          <field name="productId" widget-style="buttontext">
              <hyperlink description="${productId}" target="/catalog/control/EditProductInventoryItems" target-type="inter-app">
                  <parameter param-name="productId"/>
              </hyperlink>
          </field>
          <field name="supplierProductId"><display/></field>
          <field name="supplierProductName"><display/></field>
          <field name="internalName"><display/></field>
          <field name="lastPrice"><display/></field>
          <field name="minimumOrderQuantity"><display/></field>
          <field name="minimumStock"><display/></field>
          <field name="qohAtp" title="${uiLabelMap.ProductAtpQoh}"><display/></field>
          <field name="quantityOnOrder"><display/></field>
          <field name="quantity" title="${uiLabelMap.OrderQuantity}">
              <text size="5" maxlength="10"/>
          </field>
          <field name="itemDesiredDeliveryDate" title="${uiLabelMap.OrderDesiredDeliveryDate}">
              <date-time/>
          </field>
          <field name="submitButton" title="${uiLabelMap.OrderAddToOrder}" widget-style="smallSubmit">
              <submit/>
          </field>
      </form>
      <form name="LookupAssociatedProducts" type="multi" use-row-submit="true" list-name="productList" title="" target="BulkAddProducts"
          paginate-target="LookupAssociatedProducts" default-title-style="tableheadtext" default-widget-style="inputBox">
          <field name="productId"  title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
              <hyperlink description="${productId}" target="/catalog/control/EditProductInventoryItems?productId=${productId}" target-type="inter-app"/>
          </field>
          <field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
          <field name="internalName"><display/></field>
          <field name="quantity" title="${uiLabelMap.OrderQuantity}">
              <text size="5" maxlength="10"/>
          </field>
          <field name="amount" title="${uiLabelMap.OrderAmount}">
              <text size="5" maxlength="10"/>
          </field>
          <field name="itemDesiredDeliveryDate" title="${uiLabelMap.OrderDesiredDeliveryDate}">
              <date-time/>
          </field>
          <field name="submitButton" title="${uiLabelMap.OrderAddToOrder}" widget-style="smallSubmit">
              <submit/>
          </field>
      </form>
  
  </forms>