Author: sichen
Date: Wed Nov 22 10:39:57 2006 New Revision: 478277 URL: http://svn.apache.org/viewvc?view=rev&rev=478277 Log: OFBIZ-468: Small forms to create cust requests in party view page. Modified: incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl Modified: incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh?view=diff&rev=478277&r1=478276&r2=478277 ============================================================================== --- incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh (original) +++ incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh Wed Nov 22 10:39:57 2006 @@ -96,6 +96,8 @@ context.put("nowStr", UtilDateTime.nowTimestamp().toString()); +context.put("custRequestTypes", delegator.findAllCache("CustRequestType")); + // call the getOrderedSummaryInformation service to get the sub-total of valid orders in last X months monthsToInclude = new Integer(12); Modified: incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?view=diff&rev=478277&r1=478276&r2=478277 ============================================================================== --- incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original) +++ incubator/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Wed Nov 22 10:39:57 2006 @@ -506,6 +506,14 @@ <response name="error" type="view" value="AddPartyNote"/> </request-map> + <request-map uri="createCustRequest"> + <security https="true" auth="true"/> + <event type="service" invoke="createCustRequest"/> + <response name="success" type="request-redirect" value="viewprofile"/> + <response name="error" type="request-redirect" value="viewprofile"/> + </request-map> + + <!-- ContactList request mappings --> <request-map uri="ListPartyContactLists"><security https="true" auth="true"/><response name="success" type="view" value="ListPartyContactLists"/></request-map> <request-map uri="createContactListParty"> Modified: incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl?view=diff&rev=478277&r1=478276&r2=478277 ============================================================================== --- incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl (original) +++ incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/viewprofile.ftl Wed Nov 22 10:39:57 2006 @@ -230,6 +230,22 @@ </#if> <div class="tabletext">(${uiLabelMap.CommonUpdated}: ${partyContactMech.fromDate.toString()})</div> <#if partyContactMech.thruDate?has_content><div class="tabletext"><b>${uiLabelMap.PartyContactEffectiveThru}: ${partyContactMech.thruDate.toString()}</b></div></#if> + <#-- create cust request --> + <#if custRequestTypes?exists> + <div> + <form name="createCustRequestForm" action="<@ofbizUrl>createCustRequest</@ofbizUrl>" method="POST"> + <input type="hidden" name="partyId" value="${party.partyId}"/> + <input type="hidden" name="fromPartyId" value="${party.partyId}"/> + <input type="hidden" name="fulfillContactMechId" value="${contactMech.contactMechId}"/> + <select name="custRequestTypeId" class="inputBox"> + <#list custRequestTypes as type> + <option value="${type.custRequestTypeId}">${type.get("description", locale)}</option> + </#list> + </select> + <input type="submit" class="smallSubmit" value="${uiLabelMap.PartyCreateNewCustRequest}"/> + </form> + </div> + </#if> </td> <td align="center" valign="top" nowrap width="1%"><div class="tabletext"><b>(${partyContactMech.allowSolicitation?if_exists})</b></div></td> <td width="5"> </td> |
Free forum by Nabble | Edit this page |