From 426237c51683ff0255150dc1c4b4d6cae13957b4 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 8 Aug 2008 16:19:01 +0000 Subject: [PATCH] could not get jubgrid to display anything. basically started over by copying lineitem search into place and editing to make it look like receiving. git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10316 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../ui_js/oils/default/acq/receiving/process.js | 9 ++- .../oils/default/acq/receiving/process.html | 84 +++++++++------------- 2 files changed, 39 insertions(+), 54 deletions(-) diff --git a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/receiving/process.js b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/receiving/process.js index 2f1dd7f9f9..7d7aa320d1 100644 --- a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/receiving/process.js +++ b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/receiving/process.js @@ -13,12 +13,12 @@ dojo.require('openils.widget.OrgUnitFilteringSelect'); var lineitems = []; function drawForm() { - new openils.User().buildPermOrgSelector('VIEW_PURCHASE_ORDER', orderingAgencySelector); + new openils.User().buildPermOrgSelector('VIEW_PURCHASE_ORDER', orderingAgencySelect); } -dojo.addOnLoad(drawForm); var liReceived; function doSearch(values) { + var search = { attr_values : [values.identifier], po_agencies : (values.ordering_agency) ? [values.ordering_agency] : null, @@ -48,8 +48,7 @@ function handleResult(r) { function viewList() { dojo.style('searchProgress', 'visibility', 'hidden'); - dojo.style('oils-acq-li-recv-grid', 'visibility', 'visible'); - dojo.style('oils-acq-li-recv-grid', 'display', 'block'); + dojo.style('oils-acq-recv-grid', 'visibility', 'visible'); var store = new dojo.data.ItemFileWriteStore( {data:jub.toStoreData(lineitems, null, {virtualFields:['estimated_price', 'actual_price']})}); @@ -58,5 +57,5 @@ function viewList() { JUBGrid.populate(liGrid, model, lineitems); } - +dojo.addOnLoad(drawForm); diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/receiving/process.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/receiving/process.html index 722ce5c68c..21584b3601 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/receiving/process.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/receiving/process.html @@ -1,60 +1,46 @@ # -*- coding: utf-8 -*- - <%inherit file='base.html'/> -<%namespace file='../../common/jubgrid.html' name='jubgrid'/> - -<%def name="block_js()"> - ${parent.block_js()} - - <%def name="page_title()">${_('Receiving')} +<%namespace file='../../common/jubgrid.html' name='jubgrid'/> <%def name="block_content()"> -
-
-

Receiving Processing

-
-
- - - - - - - - - - - - - -
- -
- - - -
${_("Search")}
-
-
- -
- + +

Receiving Processing


+
+
+ + + + + + + + + + + + + +
+ +
+ +
${_("Search")}
+
-
-
- ${jubgrid.jubgrid('oils-acq-recv', 'liGrid')} -
+
+ +
+ ${jubgrid.jubgrid('oils-acq-recv', 'liGrid')}
-
+ -- 2.11.0