[open-ils-commits] r9613 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/acq/financial
templates/oils/default/acq/financial
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 15 10:06:13 EDT 2008
Author: erickson
Date: 2008-05-15 10:06:11 -0400 (Thu, 15 May 2008)
New Revision: 9613
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_provider.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_provider.html
Log:
added a default list of vendor order record data types. changed data type entry from textbox to combobox
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_provider.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_provider.js 2008-05-15 02:32:16 UTC (rev 9612)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_provider.js 2008-05-15 14:06:11 UTC (rev 9613)
@@ -1,6 +1,7 @@
dojo.require("dijit.Dialog");
dojo.require('dijit.layout.TabContainer');
dojo.require('dijit.layout.ContentPane');
+dojo.require('dijit.form.FilteringSelect');
dojo.require('dojox.grid.Grid');
dojo.require("fieldmapper.OrgUtils");
dojo.require('openils.acq.Provider');
@@ -76,6 +77,13 @@
);
}
+function setORDesc() {
+ var code = dijit.byId('oils-acq-provider-or-code');
+ var desc = dijit.byId('oils-acq-provider-or-desc');
+ desc.setValue(code.getDisplayedValue());
+}
+
+
dojo.addOnLoad(fetchProvider);
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_provider.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_provider.html 2008-05-15 02:32:16 UTC (rev 9612)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_provider.html 2008-05-15 14:06:11 UTC (rev 9613)
@@ -33,14 +33,31 @@
<div dojoType="dijit.form.DropDownButton">
<span>${('Create Order Record Field')}</span>
<div dojoType="dijit.TooltipDialog" execute="createOrderRecordField(arguments[0]);">
+ <script type='dojo/connect' event='onOpen'>setORDesc();</script>
<table class='dijitTooltipTable'>
<tr>
<td><label for="code">${_('Code:')} </label></td>
- <td><input dojoType='dijit.form.TextBox' name='code'></input></td>
+ <td>
+ <!--
+ <select id='oils-acq-provider-or-code' name="code" dojoType="dijit.form.FilteringSelect">
+ -->
+ <select id='oils-acq-provider-or-code' name="code" dojoType="dijit.form.ComboBox">
+ <script type='dojo/connect' event='onChange'>setORDesc();</script>
+ <option value='fund_code'>Fund Code</option>
+ <option value='shelving_location'>Shelving Location</option>
+ <option value='quantity'>Quantity</option>
+ <option value='order_date'>Order Date</option>
+ <option value='volume_count'>Volume Count </option>
+ <option value='currency_type'>Currency Type</option>
+ <option value='internal_notes'>Internal Notes </option>
+ <option value='vendor_notes'>Vendor Notes</option>
+ <option value='estimated_price'>Estimated Price</option>
+ </select>
+ </td>
</tr>
<tr>
<td><label for="description">${_('Description:')} </label></td>
- <td><input dojoType="dijit.form.TextBox" name="description"> </input></td>
+ <td><input id='oils-acq-provider-or-desc' dojoType="dijit.form.TextBox" name="description"> </input></td>
</tr>
<tr>
<td><label for="amount">${_('XPath:')} </label></td>
More information about the open-ils-commits
mailing list