From e08ceaa08030d5d150281514bb17effceb3b8dcd Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Sat, 20 Sep 2014 13:00:32 +0000 Subject: [PATCH] [OFBIZ-5778] Add pagination to picklists screen. This simple change helps when we have big list of picklist. Thanks Arun Patidar for load tests, reporting issue and providing fix. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626436 13f79535-47bb-0310-9956-ffa450edef68 --- .../shipment/picklist/PicklistServices.xml | 24 +++++++++++++++++ .../product/servicedef/services_picklist.xml | 5 ++++ .../facility/facility/PicklistManage.ftl | 27 +++++++++++++++++++ .../widget/facility/FacilityScreens.xml | 2 ++ 4 files changed, 58 insertions(+) diff --git a/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml b/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml index 2c311c855b..d0a7dded56 100644 --- a/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml +++ b/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml @@ -1213,6 +1213,8 @@ under the License. + + @@ -1220,14 +1222,36 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + diff --git a/applications/product/servicedef/services_picklist.xml b/applications/product/servicedef/services_picklist.xml index eebe01815e..1bd85ff1c9 100644 --- a/applications/product/servicedef/services_picklist.xml +++ b/applications/product/servicedef/services_picklist.xml @@ -79,6 +79,11 @@ under the License. location="component://product/script/org/ofbiz/shipment/picklist/PicklistServices.xml" invoke="getPicklistDisplayInfo"> Create Picklist From Orders + + + + + diff --git a/applications/product/webapp/facility/facility/PicklistManage.ftl b/applications/product/webapp/facility/facility/PicklistManage.ftl index 9fd9f29182..ea19e70739 100644 --- a/applications/product/webapp/facility/facility/PicklistManage.ftl +++ b/applications/product/webapp/facility/facility/PicklistManage.ftl @@ -16,14 +16,41 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> +
  • ${uiLabelMap.ProductPicklistManage}
  • + <#if (picklistInfoList?has_content && 0 < picklistInfoList?size)> + <#if (picklistCount > highIndex)> +
  • ${uiLabelMap.CommonNext}
  • + <#else> +
  • ${uiLabelMap.CommonNext}
  • + + <#if (picklistCount > 0)> +
  • ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${picklistCount}
  • + + <#if (viewIndex > 0)> +
  • ${uiLabelMap.CommonPrevious}
  • + <#else> +
  • ${uiLabelMap.CommonPrevious}
  • + +

+
+ + + +
<#if picklistInfoList?has_content> <#list picklistInfoList as picklistInfo> diff --git a/applications/product/widget/facility/FacilityScreens.xml b/applications/product/widget/facility/FacilityScreens.xml index 96126c1812..51a219241a 100644 --- a/applications/product/widget/facility/FacilityScreens.xml +++ b/applications/product/widget/facility/FacilityScreens.xml @@ -1247,6 +1247,8 @@ under the License. + +