| <#-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <script language="JavaScript" type="text/javascript"> |
| function paginateOrderList(viewSize, viewIndex) { |
| document.paginationForm.viewSize.value = viewSize; |
| document.paginationForm.viewIndex.value = viewIndex; |
| document.paginationForm.submit(); |
| } |
| </script> |
| |
| <div class="screenlet"> |
| <div class="screenlet-title-bar"> |
| <ul> |
| <li class="h3">${uiLabelMap.ProductPicklistManage}</li> |
| <#if (picklistInfoList?has_content && 0 < picklistInfoList?size)> |
| <#if (picklistCount > highIndex)> |
| <li><a href="javascript:paginateOrderList('${viewSize}', '${viewIndex+1}')">${uiLabelMap.CommonNext}</a></li> |
| <#else> |
| <li><span class="disabled">${uiLabelMap.CommonNext}</span></li> |
| </#if> |
| <#if (picklistCount > 0)> |
| <li><span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${picklistCount}</span></li> |
| </#if> |
| <#if (viewIndex > 0)> |
| <li><a href="javascript:paginateOrderList('${viewSize}', '${viewIndex-1}')">${uiLabelMap.CommonPrevious}</a></li> |
| <#else> |
| <li><span class="disabled">${uiLabelMap.CommonPrevious}</span></li> |
| </#if> |
| </#if> |
| </ul> |
| <br class="clear"/> |
| </div> |
| <form name="paginationForm" method="post" action="<@ofbizUrl>PicklistManage</@ofbizUrl>"> |
| <input type="hidden" name="viewSize" value="${viewSize}"/> |
| <input type="hidden" name="viewIndex" value="${viewIndex}"/> |
| <input type="hidden" name="facilityId" value="${facilityId}"/> |
| </form> |
| <div class="screenlet-body"> |
| <#if picklistInfoList?has_content> |
| <#list picklistInfoList as picklistInfo> |
| <#assign picklist = picklistInfo.picklist> |
| |
| <#-- Picklist --> |
| <div> |
| <span class="label">${uiLabelMap.ProductPickList}</span> ${picklist.picklistId} |
| <span class="label">${uiLabelMap.CommonDate}</span> ${picklist.picklistDate} |
| <form method="post" action="<@ofbizUrl>updatePicklist</@ofbizUrl>" style="display: inline;"> |
| <input type="hidden" name="facilityId" value="${facilityId}"/> |
| <input type="hidden" name="picklistId" value="${picklist.picklistId}"/> |
| <select name="statusId"> |
| <option value="${picklistInfo.statusItem.statusId}" selected>${picklistInfo.statusItem.get("description",locale)}</option> |
| <option value="${picklistInfo.statusItem.statusId}">---</option> |
| <#list picklistInfo.statusValidChangeToDetailList as statusValidChangeToDetail> |
| <option value="${statusValidChangeToDetail.get("statusIdTo", locale)}">${statusValidChangeToDetail.get("description", locale)} (${statusValidChangeToDetail.get("transitionName", locale)})</option> |
| </#list> |
| </select> |
| <input type="submit" value="${uiLabelMap.CommonUpdate}" class="smallSubmit"/> |
| </form> |
| <span class="label">${uiLabelMap.ProductCreatedModifiedBy}</span> ${picklist.createdByUserLogin}/${picklist.lastModifiedByUserLogin} |
| <a href="<@ofbizUrl>PicklistReport.pdf?picklistId=${picklist.picklistId}</@ofbizUrl>" target="_blank" class="buttontext">${uiLabelMap.ProductPick}/${uiLabelMap.ProductPacking} ${uiLabelMap.CommonReports}</a> |
| <hr /> |
| </div> |
| <#if picklistInfo.shipmentMethodType?has_content> |
| <div style="margin-left: 15px;"> |
| <span class="label">${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentMethodType}</span> ${picklistInfo.shipmentMethodType.description?default(picklistInfo.shipmentMethodType.shipmentMethodTypeId)} |
| </div> |
| </#if> |
| |
| <#-- PicklistRole --> |
| <#list picklistInfo.picklistRoleInfoList! as picklistRoleInfo> |
| <div style="margin-left: 15px;"> |
| <span class="label">${uiLabelMap.PartyParty}</span> ${picklistRoleInfo.partyNameView.firstName!} ${picklistRoleInfo.partyNameView.middleName!} ${picklistRoleInfo.partyNameView.lastName!} ${picklistRoleInfo.partyNameView.groupName!} |
| <span class="label">${uiLabelMap.PartyRole}</span> ${picklistRoleInfo.roleType.description} |
| <span class="label">${uiLabelMap.CommonFrom}</span> ${picklistRoleInfo.picklistRole.fromDate} |
| <#if picklistRoleInfo.picklistRole.thruDate??><span class="label">${uiLabelMap.CommonThru}</span> ${picklistRoleInfo.picklistRole.thruDate}</#if> |
| </div> |
| </#list> |
| <div style="margin-left: 15px;"> |
| <span class="label">${uiLabelMap.ProductAssignPicker}</span> |
| <form method="post" action="<@ofbizUrl>createPicklistRole</@ofbizUrl>" style="display: inline;"> |
| <input type="hidden" name="facilityId" value="${facilityId}"/> |
| <input type="hidden" name="picklistId" value="${picklist.picklistId}"/> |
| <input type="hidden" name="roleTypeId" value="PICKER"/> |
| <select name="partyId"> |
| <#list partyRoleAndPartyDetailList as partyRoleAndPartyDetail> |
| <option value="${partyRoleAndPartyDetail.partyId}">${partyRoleAndPartyDetail.firstName!} ${partyRoleAndPartyDetail.middleName!} ${partyRoleAndPartyDetail.lastName!} ${partyRoleAndPartyDetail.groupName!} [${partyRoleAndPartyDetail.partyId}]</option> |
| </#list> |
| </select> |
| <input type="submit" value="${uiLabelMap.CommonAdd}" class="smallSubmit"/> |
| </form> |
| </div> |
| |
| <#-- PicklistStatusHistory --> |
| <#list picklistInfo.picklistStatusHistoryInfoList! as picklistStatusHistoryInfo> |
| <div style="margin-left: 15px;"> |
| <span class="label">${uiLabelMap.CommonStatus}</span> ${uiLabelMap.CommonChange} ${uiLabelMap.CommonFrom} ${picklistStatusHistoryInfo.statusItem.get("description",locale)} |
| ${uiLabelMap.CommonTo} ${picklistStatusHistoryInfo.statusItemTo.description} |
| ${uiLabelMap.CommonOn} ${picklistStatusHistoryInfo.picklistStatusHistory.changeDate} |
| ${uiLabelMap.CommonBy} ${picklistStatusHistoryInfo.picklistStatusHistory.changeUserLoginId} |
| </div> |
| </#list> |
| <hr /> |
| <#-- PicklistBin --> |
| <#list picklistInfo.picklistBinInfoList! as picklistBinInfo> |
| <#assign isBinComplete = Static["org.apache.ofbiz.shipment.picklist.PickListServices"].isBinComplete(delegator, picklistBinInfo.picklistBin.picklistBinId)/> |
| <#if (!isBinComplete)> |
| <div style="margin-left: 15px;"> |
| <span class="label">${uiLabelMap.ProductBinNum}</span> ${picklistBinInfo.picklistBin.binLocationNumber} (${picklistBinInfo.picklistBin.picklistBinId}) |
| <#if picklistBinInfo.primaryOrderHeader??><span class="label">${uiLabelMap.ProductPrimaryOrderId}</span> ${picklistBinInfo.primaryOrderHeader.orderId}</#if> |
| <#if picklistBinInfo.primaryOrderItemShipGroup??><span class="label">${uiLabelMap.ProductPrimaryShipGroupSeqId}</span> ${picklistBinInfo.primaryOrderItemShipGroup.shipGroupSeqId}</#if> |
| <#if !picklistBinInfo.picklistItemInfoList?has_content><a href="javascript:document.DeletePicklistBin_${picklistInfo_index}_${picklistBinInfo_index}.submit()" class="buttontext">${uiLabelMap.CommonDelete}</a></#if> |
| <form name="DeletePicklistBin_${picklistInfo_index}_${picklistBinInfo_index}" method="post" action="<@ofbizUrl>deletePicklistBin</@ofbizUrl>"> |
| <input type="hidden" name="picklistBinId" value="${picklistBinInfo.picklistBin.picklistBinId}"/> |
| <input type="hidden" name="facilityId" value="${facilityId!}"/> |
| </form> |
| </div> |
| <div style="margin-left: 30px;"> |
| <span class="label">${uiLabelMap.CommonUpdate} ${uiLabelMap.ProductBinNum}</span> |
| <form method="post" action="<@ofbizUrl>updatePicklistBin</@ofbizUrl>" style="display: inline;"> |
| <input type="hidden" name="facilityId" value="${facilityId}"/> |
| <input type="hidden" name="picklistBinId" value="${picklistBinInfo.picklistBin.picklistBinId}"/> |
| <span class="label">${uiLabelMap.ProductLocation} ${uiLabelMap.CommonNbr}</span> |
| <input type"text" size="2" name="binLocationNumber" value="${picklistBinInfo.picklistBin.binLocationNumber}"/> |
| <span class="label">${uiLabelMap.PageTitlePickList}</span> |
| <select name="picklistId"> |
| <#list picklistActiveList as picklistActive> |
| <#assign picklistActiveStatusItem = picklistActive.getRelatedOne("StatusItem", true)> |
| <option value="${picklistActive.picklistId}"<#if picklistActive.picklistId == picklist.picklistId> selected="selected"</#if>>${picklistActive.picklistId} [${uiLabelMap.CommonDate}:${picklistActive.picklistDate},${uiLabelMap.CommonStatus}:${picklistActiveStatusItem.get("description",locale)}]</option> |
| </#list> |
| </select> |
| <input type="submit" value="${uiLabelMap.CommonUpdate}" class="smallSubmit"/> |
| </form> |
| </div> |
| <#if picklistBinInfo.picklistItemInfoList?has_content> |
| <div style="margin-left: 30px;"> |
| <table class="basic-table" cellspacing="0"> |
| <tr class="header-row"> |
| <td>${uiLabelMap.ProductOrderId}</td> |
| <td>${uiLabelMap.ProductOrderShipGroupId}</td> |
| <td>${uiLabelMap.ProductOrderItem}</td> |
| <td>${uiLabelMap.ProductProduct}</td> |
| <td>${uiLabelMap.ProductInventoryItem}</td> |
| <td>${uiLabelMap.ProductLocation}</td> |
| <td>${uiLabelMap.ProductQuantity}</td> |
| <td> </td> |
| </tr> |
| <#assign alt_row = false> |
| <#list picklistBinInfo.picklistItemInfoList! as picklistItemInfo> |
| <#assign picklistItem = picklistItemInfo.picklistItem> |
| <#assign inventoryItemAndLocation = picklistItemInfo.inventoryItemAndLocation> |
| <tr valign="middle"<#if alt_row> class="alternate-row"</#if>> |
| <td>${picklistItem.orderId}</td> |
| <td>${picklistItem.shipGroupSeqId}</td> |
| <td>${picklistItem.orderItemSeqId}</td> |
| <td>${picklistItemInfo.orderItem.productId}<#if picklistItemInfo.orderItem.productId != inventoryItemAndLocation.productId> [${inventoryItemAndLocation.productId}]</#if></td> |
| <td>${inventoryItemAndLocation.inventoryItemId}</td> |
| <td>${inventoryItemAndLocation.areaId!}-${inventoryItemAndLocation.aisleId!}-${inventoryItemAndLocation.sectionId!}-${inventoryItemAndLocation.levelId!}-${inventoryItemAndLocation.positionId!}</td> |
| <td>${picklistItem.quantity}</td> |
| <#if !picklistItemInfo.itemIssuanceList?has_content> |
| <td> |
| <form name="deletePicklistItem_${picklist.picklistId}_${picklistItem.orderId}_${picklistItemInfo_index}" method="post" action="<@ofbizUrl>deletePicklistItem</@ofbizUrl>"> |
| <input type="hidden" name="picklistBinId" value="${picklistItemInfo.picklistItem.picklistBinId}"/> |
| <input type="hidden" name="orderId" value= "${picklistItemInfo.picklistItem.orderId}"/> |
| <input type="hidden" name="orderItemSeqId" value="${picklistItemInfo.picklistItem.orderItemSeqId}"/> |
| <input type="hidden" name="shipGroupSeqId" value="${picklistItemInfo.picklistItem.shipGroupSeqId}"/> |
| <input type="hidden" name="inventoryItemId" value="${picklistItemInfo.picklistItem.inventoryItemId}"/> |
| <input type="hidden" name="facilityId" value="${facilityId!}"/> |
| <a href='javascript:document.deletePicklistItem_${picklist.picklistId}_${picklistItem.orderId}_${picklistItemInfo_index}.submit()' class='buttontext'> ${uiLabelMap.CommonDelete} </a> |
| </form> |
| </td> |
| </#if> |
| <td> |
| <#-- picklistItem.orderItemShipGrpInvRes (do we want to display any of this info?) --> |
| <#-- picklistItemInfo.itemIssuanceList --> |
| <#list picklistItemInfo.itemIssuanceList! as itemIssuance> |
| <b>${uiLabelMap.ProductIssue} ${uiLabelMap.CommonTo} ${uiLabelMap.ProductShipmentItemSeqId}:</b> ${itemIssuance.shipmentId}:${itemIssuance.shipmentItemSeqId} |
| <b>${uiLabelMap.ProductQuantity}:</b> ${itemIssuance.quantity} |
| <b>${uiLabelMap.CommonDate}: </b> ${itemIssuance.issuedDateTime} |
| </#list> |
| </td> |
| </tr> |
| <#-- toggle the row color --> |
| <#assign alt_row = !alt_row> |
| </#list> |
| </table> |
| </div> |
| <#if picklistBinInfo.productStore.managedByLot?? && picklistBinInfo.productStore.managedByLot = "Y"> |
| <div style="margin-left: 30px;"> |
| <table class="basic-table" cellspacing="0"> |
| <tr class="header-row" |
| <td>${uiLabelMap.ProductOrderId}</td> |
| <td>${uiLabelMap.ProductOrderShipGroupId}</td> |
| <td>${uiLabelMap.ProductOrderItem}</td> |
| <td>${uiLabelMap.ProductProduct}</td> |
| <td>${uiLabelMap.ProductInventoryItem}</td> |
| <td>${uiLabelMap.ProductLotId}</td> |
| <td>${uiLabelMap.ProductQuantity}</td> |
| <td> </td> |
| </tr> |
| <#assign alt_row = false> |
| <#list picklistBinInfo.picklistItemInfoList! as picklistItemInfo> |
| <#assign picklistItem = picklistItemInfo.picklistItem> |
| <#assign inventoryItemAndLocation = picklistItemInfo.inventoryItemAndLocation> |
| <#if !picklistItemInfo.product.lotIdFilledIn?has_content || picklistItemInfo.product.lotIdFilledIn != "Forbidden"> |
| <form name="editPicklistItem_${picklist.picklistId}_${picklistItem.orderId}_${picklistItemInfo_index}" method="post" action="<@ofbizUrl>editPicklistItem</@ofbizUrl>"> |
| <tr valign="middle"<#if alt_row> class="alternate-row"</#if>> |
| <td>${picklistItem.orderId}</td> |
| <td>${picklistItem.shipGroupSeqId}</td> |
| <td>${picklistItem.orderItemSeqId}</td> |
| <td>${picklistItemInfo.orderItem.productId}<#if picklistItemInfo.orderItem.productId != inventoryItemAndLocation.productId> [${inventoryItemAndLocation.productId}]</#if></td> |
| <td>${inventoryItemAndLocation.inventoryItemId}</td> |
| <td><input type="text" name="lotId" <#if inventoryItemAndLocation.lotId?has_content>value="${inventoryItemAndLocation.lotId}"</#if> /></td> |
| <td><input type="text" name="quantity" value="${picklistItem.quantity}" /></td> |
| <td> |
| <input type="hidden" name="picklistBinId" value="${picklistItemInfo.picklistItem.picklistBinId}"/> |
| <input type="hidden" name="orderId" value= "${picklistItemInfo.picklistItem.orderId}"/> |
| <input type="hidden" name="orderItemSeqId" value="${picklistItemInfo.picklistItem.orderItemSeqId}"/> |
| <input type="hidden" name="shipGroupSeqId" value="${picklistItemInfo.picklistItem.shipGroupSeqId}"/> |
| <input type="hidden" name="inventoryItemId" value="${picklistItemInfo.picklistItem.inventoryItemId}"/> |
| <input type="hidden" name="facilityId" value="${facilityId!}"/> |
| <input type="hidden" name="productId" value="${picklistItemInfo.orderItem.productId}" /> |
| <#if inventoryItemAndLocation.lotId?has_content> |
| <input type="hidden" name="oldLotId" value="${inventoryItemAndLocation.lotId}" /> |
| </#if> |
| <a href='javascript:document.editPicklistItem_${picklist.picklistId}_${picklistItem.orderId}_${picklistItemInfo_index}.submit()' class='buttontext'> ${uiLabelMap.CommonEdit} </a> |
| </td> |
| </tr> |
| </form> |
| <#-- toggle the row color --> |
| <#assign alt_row = !alt_row> |
| </#if> |
| </#list> |
| </table> |
| </div> |
| </#if> |
| </#if> |
| </#if> |
| </#list> |
| <#if picklistInfo_has_next> |
| <hr /> |
| </#if> |
| </#list> |
| <#else> |
| <h3>${uiLabelMap.ProductNoPicksStarted}.</h3> |
| </#if> |
| </div> |
| </div> |