{!{@tech.ebp.oqm.baseStation.service.mongo.StorageBlockService storageBlockService}!} {!{@java.util.List expiredList}!} {!{@java.util.List expiredWarnList}!} {#include webui/mainWebPageTemplate navbar="full" showTitle=true title='Overview' page='overview'} {#styleSheets} {/styleSheets} {#pageStyle} .buttonCell{ border: 1px solid black; height: 50px; width: 50px; } {/pageStyle} {#pageContent}

{itemCollectionStats.get("size").asLong()} types of items stored in over {storageCollectionStats.get("size").asLong()} storage blocks

{#if parentBlocks.get("hasPages").asBoolean()}
{#paginationButtons searchFormId="overviewParentBlocksTreeForm" searchResults=parentBlocks /} {/if}
{#storageBlock/blockTree parentBlocks=parentBlocks rootPrefix=rootPrefix}{/storageBlock/blockTree}
{! TODO:: swap to stored search !}

Stored Items Close to expiring:

{#if expiryWarnResults.get("empty").asBoolean()}

Nothing close to expiring!

{#else} {#if expiryWarnResults.get("hasPages").asBoolean()}
{/if} {#search/itemStored/searchResults searchResults=expiryWarnResults actionType='full' searchFormId="" showType=true showItem=true showStorage=true rootPrefix=rootPrefix /}
{/if}
{! TODO:: swap to stored search !}

Expired Stored Items:

{#if expiredResults.get("empty").asBoolean()}

Nothing expired!

{#else} {#if expiredResults.get("hasPages").asBoolean()}
{/if} {#search/itemStored/searchResults searchResults=expiredResults actionType='full' showType=true showItem=true showStorage=true searchFormId="overviewExpiredSearchForm" rootPrefix=rootPrefix /}
{/if}

Items with Low Stock:

{#if lowStockResults.get("empty").asBoolean()}

No stock is low!

{#else} {#if lowStockResults.get("hasPages").asBoolean()}
{/if} {#search/item/itemSearchResults searchResults=lowStockResults actionType='view' searchFormId="overviewLowStockSearchForm" rootPrefix=rootPrefix /}
{/if}
{/pageContent} {#modals} {#objView/itemViewModal currency=currency rootPrefix=rootPrefix} {#footerButtons} {/footerButtons} {/objView/itemViewModal} {#itemAddEditModal allUnitMap=allUnitMap allCategorySearchResults=allCategorySearchResults currency=currency rootPrefix=rootPrefix extSearchMethods=extSearchMethods /} {#search/storage/searchSelectModal otherModalId="addEditItemModal" rootPrefix=rootPrefix /} {#search/image/imageSearchSelectModal otherModalId="addEditItemModal" rootPrefix=rootPrefix /} {#search/item/itemSearchSelectModal rootPrefix=rootPrefix allCategorySearchResults=allCategorySearchResults /} {#search/itemStored/itemStoredSearchSelectModal rootPrefix=rootPrefix /} {#itemStored/itemStoredViewModal rootPrefix=rootPrefix /} {#itemStored/itemStoredEditModal rootPrefix=rootPrefix /} {#itemStored/transaction/allTransactionModals /} {#CodeScannerModal /} {#fileAttachment/FileAttachmentSearchSelectModal otherModalId="addEditItemModal" /} {#fileAttachment/FileAttachmentViewModal otherModalId='itemViewModal' /} {#object/idGenerator/searchSelectModal rootPrefix=rootPrefix /} {/modals} {#scripts} {/scripts} {#pageScript} {/pageScript} {/include}