Author: apatel
Date: Fri Nov 30 00:45:54 2007 New Revision: 599739 URL: http://svn.apache.org/viewvc?rev=599739&view=rev Log: Vikas, thanks for providing implementation for Add lookup buttons to the "search" forms for accounting transactions and accounting transactions entries. Modified: ofbiz/trunk/applications/accounting/widget/GlForms.xml ofbiz/trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml Modified: ofbiz/trunk/applications/accounting/widget/GlForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlForms.xml?rev=599739&r1=599738&r2=599739&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/GlForms.xml (original) +++ ofbiz/trunk/applications/accounting/widget/GlForms.xml Fri Nov 30 00:45:54 2007 @@ -51,14 +51,12 @@ <option description="${uiLabelMap.CommonYes}" key="Y"/> </drop-down> </field> - <field name="partyId" title="${uiLabelMap.PartyPartyId}"> - <lookup target-form-name="LookupPartyName" size="20" maxlength="20"/> - </field> - <field name="invoiceId"><text size="20" maxlength="20"/></field> - <field name="paymentId"><text size="20" maxlength="20"/></field> - <field name="produtId"><text size="20" maxlength="20"/></field> - <field name="workEffortId"><text size="20" maxlength="20"/></field> - <field name="shipmentId"><text size="20" maxlength="20"/></field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPartyName" size="20" maxlength="20"/></field> + <field name="invoiceId"><lookup target-form-name="LookupInvoice" size="20" maxlength="20"/></field> + <field name="paymentId"><lookup target-form-name="LookupPayment" size="20" maxlength="20"/></field> + <field name="produtId"><lookup target-form-name="LookupProduct" size="20" maxlength="20"/></field> + <field name="workEffortId"><lookup target-form-name="LookupWorkEffort" size="20" maxlength="20"/></field> + <field name="shipmentId"><lookup target-form-name="LookupShipment" size="20" maxlength="20"/></field> <field name="fromDate"><date-time/></field> <field name="thruDate"><date-time/></field> <field name="performSearch"><hidden value="Y"/></field> @@ -202,11 +200,11 @@ <field name="partyId" title="${uiLabelMap.PartyPartyId}"> <lookup target-form-name="LookupPartyName" size="20" maxlength="20"/> </field> - <field name="invoiceId"><text size="20" maxlength="20"/></field> - <field name="paymentId"><text size="20" maxlength="20"/></field> - <field name="produtId"><text size="20" maxlength="20"/></field> - <field name="workEffortId"><text size="20" maxlength="20"/></field> - <field name="shipmentId"><text size="20" maxlength="20"/></field> + <field name="invoiceId"><lookup target-form-name="LookupInvoice" size="20" maxlength="20"/></field> + <field name="paymentId"><lookup target-form-name="LookupPayment" size="20" maxlength="20"/></field> + <field name="produtId"><lookup target-form-name="LookupProduct" size="20" maxlength="20"/></field> + <field name="workEffortId"><lookup target-form-name="LookupWorkEffort" size="20" maxlength="20"/></field> + <field name="shipmentId"><lookup target-form-name="LookupShipment" size="20" maxlength="20"/></field> <field name="fromDate"><date-time/></field> <field name="thruDate"><date-time/></field> <field name="performSearch"><hidden value="Y"/></field> Modified: ofbiz/trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml?rev=599739&r1=599738&r2=599739&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml (original) +++ ofbiz/trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml Fri Nov 30 00:45:54 2007 @@ -91,4 +91,41 @@ </field> </form> + <form name="lookupShipment" type="single" target="LookupShipment"> + <field position="1" name="shipmentId"><text-find/></field> + <field position="1" name="shipmentTypeId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="ShipmentType"/> + </drop-down> + </field> + <field position="2" name="statusId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="StatusItem"> + <entity-constraint name="statusTypeId" operator="equals" value="SHIPMENT_STATUS"/> + </entity-options> + </drop-down> + </field> + <field position="1" name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><text-find/></field> + <field position="1" name="partyIdTo" title="${uiLabelMap.PartyPartyTo}"><text-find/></field> + <field position="1" name="Datefrom" title="${uiLabelMap.CommonFromDate}"><date-time/></field> + <field position="2" name="DateThru" title="${uiLabelMap.CommonThruDate}"><date-time/></field> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="submitButton" title="${uiLabelMap.CommonLookup}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <form name="listShipment" list-name="listIt" title="" type="list" paginate-target="LookupShipment"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="Shipment"/> + </service> + </actions> + <field name="shipmentId" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${shipmentId}" target="javascript:set_value('${shipmentId}')"/> + </field> + <field name="shipmentTypeId"><display-entity entity-name="ShipmentType"/></field> + <field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field> + <field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${lastName}[${partyId}]"/></field> + <field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${lastName}[${partyId}]"/></field> + </form> + </forms> Modified: ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml?rev=599739&r1=599738&r2=599739&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml Fri Nov 30 00:45:54 2007 @@ -68,4 +68,26 @@ </widgets> </section> </screen> + + <screen name="LookupShipment"> + <section> + <actions> + <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> + <set field="title" value="${uiLabelMap.ProductLookupShipment}"/> + <set field="queryString" from-field="result.queryString"/> + <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> + <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/> + </actions> + <widgets> + <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="lookupShipment" location="component://product/webapp/facility/lookup/FieldLookupForms.xml" /> + <include-form name="listShipment" location="component://product/webapp/facility/lookup/FieldLookupForms.xml" /> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + </screens> |
Free forum by Nabble | Edit this page |