(OFBIZ-10492) Replace text/javascript with application/javascript in all the script tag git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68
188 lines
12 KiB
Plaintext
188 lines
12 KiB
Plaintext
<#--
|
|
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 type="application/javascript">
|
|
function quicklookup(func, locationelement, facilityelement, productelement) {
|
|
|
|
var productId = productelement.value;
|
|
if (productId.length == 0) {
|
|
alert("${StringUtil.wrapString(uiLabelMap.ProductFieldEmpty)}");
|
|
return;
|
|
}
|
|
var facilityId = facilityelement.value;
|
|
var request = "LookupProductInventoryLocation?productId=" + productId + "&facilityId=" + facilityId;
|
|
window[func](locationelement, request);
|
|
}
|
|
</script>
|
|
|
|
<div class="screenlet">
|
|
<div class="screenlet-title-bar">
|
|
<ul>
|
|
<li class="h3">${uiLabelMap.ProductStockMovesNeeded}</li>
|
|
<li><a href="<@ofbizUrl>PickMoveStockSimple?facilityId=${facilityId!}</@ofbizUrl>">${uiLabelMap.CommonPrint}</a></li>
|
|
</ul>
|
|
<br class="clear"/>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<form method="post" action="<@ofbizUrl>processPhysicalStockMove</@ofbizUrl>" name='selectAllForm' style='margin: 0;'>
|
|
<#-- general request fields -->
|
|
<input type="hidden" name="facilityId" value="${facilityId!}" />
|
|
<input type="hidden" name="_useRowSubmit" value="Y" />
|
|
<#assign rowCount = 0>
|
|
<table cellspacing="0" class="basic-table hover-bar">
|
|
<tr class="header-row">
|
|
<td>${uiLabelMap.ProductProductId}</td>
|
|
<td>${uiLabelMap.ProductProduct}</td>
|
|
<td>${uiLabelMap.ProductFromLocation}</td>
|
|
<td>${uiLabelMap.ProductQoh}</td>
|
|
<td>${uiLabelMap.ProductAtp}</td>
|
|
<td>${uiLabelMap.ProductToLocation}</td>
|
|
<td>${uiLabelMap.ProductQoh}</td>
|
|
<td>${uiLabelMap.ProductAtp}</td>
|
|
<td>${uiLabelMap.ProductMinimumStock}</td>
|
|
<td>${uiLabelMap.ProductMoveQuantity}</td>
|
|
<td>${uiLabelMap.CommonConfirm}</td>
|
|
<td align="right">
|
|
<label>${uiLabelMap.ProductSelectAll}
|
|
<input type="checkbox" name="selectAll" value="Y" class="selectAll" onclick="highlightAllRows(this, 'moveInfoId_tableRow_', 'selectAllForm');" /></label>
|
|
</td>
|
|
</tr>
|
|
<#if moveByOisgirInfoList?has_content || moveByPflInfoList?has_content>
|
|
<#assign alt_row = false>
|
|
<#list moveByOisgirInfoList! as moveByOisgirInfo>
|
|
<#assign product = moveByOisgirInfo.product>
|
|
<#assign facilityLocationFrom = moveByOisgirInfo.facilityLocationFrom>
|
|
<#assign facilityLocationTypeEnumFrom = (facilityLocationFrom.getRelatedOne("TypeEnumeration", true))!>
|
|
<#assign facilityLocationTo = moveByOisgirInfo.facilityLocationTo>
|
|
<#assign targetProductFacilityLocation = moveByOisgirInfo.targetProductFacilityLocation>
|
|
<#assign facilityLocationTypeEnumTo = (facilityLocationTo.getRelatedOne("TypeEnumeration", true))!>
|
|
<#assign totalQuantity = moveByOisgirInfo.totalQuantity>
|
|
<tr id="moveInfoId_tableRow_${rowCount}" valign="middle"<#if alt_row> class="alternate-row"</#if>>
|
|
<td>${product.productId}</td>
|
|
<td>${product.internalName!}</td>
|
|
<td>${facilityLocationFrom.areaId!}:${facilityLocationFrom.aisleId!}:${facilityLocationFrom.sectionId!}:${facilityLocationFrom.levelId!}:${facilityLocationFrom.positionId!}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</td>
|
|
<td>${moveByOisgirInfo.quantityOnHandTotalFrom!}</td>
|
|
<td>${moveByOisgirInfo.availableToPromiseTotalFrom!}</td>
|
|
<td>${facilityLocationTo.areaId!}:${facilityLocationTo.aisleId!}:${facilityLocationTo.sectionId!}:${facilityLocationTo.levelId!}:${facilityLocationTo.positionId!}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</td>
|
|
<td>${moveByOisgirInfo.quantityOnHandTotalTo!}</td>
|
|
<td>${moveByOisgirInfo.availableToPromiseTotalTo!}</td>
|
|
<td>${targetProductFacilityLocation.minimumStock!}</td>
|
|
<td>${targetProductFacilityLocation.moveQuantity!}</td>
|
|
<td align="right">
|
|
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId!}" />
|
|
<input type="hidden" name="facilityId_o_${rowCount}" value="${facilityId!}" />
|
|
<input type="hidden" name="locationSeqId_o_${rowCount}" value="${facilityLocationFrom.locationSeqId!}" />
|
|
<input type="hidden" name="targetLocationSeqId_o_${rowCount}" value="${facilityLocationTo.locationSeqId!}" />
|
|
<input type="text" name="quantityMoved_o_${rowCount}" size="6" value="${totalQuantity?string.number}" />
|
|
</td>
|
|
<td align="right">
|
|
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="highlightRow(this,'moveInfoId_tableRow_${rowCount}');" />
|
|
</td>
|
|
</tr>
|
|
<#assign rowCount = rowCount + 1>
|
|
<#-- toggle the row color -->
|
|
<#assign alt_row = !alt_row>
|
|
</#list>
|
|
<#list moveByPflInfoList! as moveByPflInfo>
|
|
<#assign product = moveByPflInfo.product>
|
|
<#assign facilityLocationFrom = moveByPflInfo.facilityLocationFrom>
|
|
<#assign facilityLocationTypeEnumFrom = (facilityLocationFrom.getRelatedOne("TypeEnumeration", true))!>
|
|
<#assign facilityLocationTo = moveByPflInfo.facilityLocationTo>
|
|
<#assign targetProductFacilityLocation = moveByPflInfo.targetProductFacilityLocation>
|
|
<#assign facilityLocationTypeEnumTo = (facilityLocationTo.getRelatedOne("TypeEnumeration", true))!>
|
|
<#assign totalQuantity = moveByPflInfo.totalQuantity>
|
|
<tr id="moveInfoId_tableRow_${rowCount}" valign="middle"<#if alt_row> class="alternate-row"</#if>>
|
|
<td>${product.productId}</td>
|
|
<td>${product.internalName!}</td>
|
|
<td>${facilityLocationFrom.areaId!}:${facilityLocationFrom.aisleId!}:${facilityLocationFrom.sectionId!}:${facilityLocationFrom.levelId!}:${facilityLocationFrom.positionId!}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</td>
|
|
<td>${moveByPflInfo.quantityOnHandTotalFrom!}</td>
|
|
<td>${moveByPflInfo.availableToPromiseTotalFrom!}</td>
|
|
<td>${facilityLocationTo.areaId!}:${facilityLocationTo.aisleId!}:${facilityLocationTo.sectionId!}:${facilityLocationTo.levelId!}:${facilityLocationTo.positionId!}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</td>
|
|
<td>${moveByPflInfo.quantityOnHandTotalTo!}</td>
|
|
<td>${moveByPflInfo.availableToPromiseTotalTo!}</td>
|
|
<td>${targetProductFacilityLocation.minimumStock!}</td>
|
|
<td>${targetProductFacilityLocation.moveQuantity!}</td>
|
|
<td align="right">
|
|
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId!}" />
|
|
<input type="hidden" name="facilityId_o_${rowCount}" value="${facilityId!}" />
|
|
<input type="hidden" name="locationSeqId_o_${rowCount}" value="${facilityLocationFrom.locationSeqId!}" />
|
|
<input type="hidden" name="targetLocationSeqId_o_${rowCount}" value="${facilityLocationTo.locationSeqId!}" />
|
|
<input type="text" name="quantityMoved_o_${rowCount}" size="6" value="${totalQuantity?string.number}" />
|
|
</td>
|
|
<td align="right">
|
|
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="highlightRow(this,'moveInfoId_tableRow_${rowCount}');" />
|
|
</td>
|
|
</tr>
|
|
<#assign rowCount = rowCount + 1>
|
|
</#list>
|
|
<tr>
|
|
<td colspan="13" align="right">
|
|
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductConfirmSelectedMoves}</a>
|
|
</td>
|
|
</tr>
|
|
<#else>
|
|
<tr><td colspan="13"><h3>${uiLabelMap.ProductNoStockMovesNeeded}.</h3></td></tr>
|
|
</#if>
|
|
<#assign messageCount = 0>
|
|
<#list pflWarningMessageList! as pflWarningMessage>
|
|
<#assign messageCount = messageCount + 1>
|
|
<tr><td colspan="13"><h3>${messageCount}:${pflWarningMessage}.</h3></td></tr>
|
|
</#list>
|
|
</table>
|
|
<input type="hidden" name="_rowCount" value="${rowCount}" />
|
|
</form>
|
|
</div>
|
|
<div class="screenlet-title-bar">
|
|
<ul>
|
|
<li class="h3">${uiLabelMap.ProductQuickStockMove}</li>
|
|
</ul>
|
|
<br class="clear"/>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<form method="post" action="<@ofbizUrl>processQuickStockMove</@ofbizUrl>" name='quickStockMove'>
|
|
<input type="hidden" name="facilityId" value="${facilityId!}" />
|
|
<table cellspacing="0" class="basic-table hover-bar">
|
|
<tr class="header-row">
|
|
<td>${uiLabelMap.ProductProduct}</td>
|
|
<td>${uiLabelMap.ProductFromLocation}</td>
|
|
<td>${uiLabelMap.ProductToLocation}</td>
|
|
<td>${uiLabelMap.ProductMoveQuantity}</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<@htmlTemplate.lookupField formName="quickStockMove" name="productId" id="productId" fieldFormName="LookupProduct"/>
|
|
</td>
|
|
<td>
|
|
<@htmlTemplate.lookupField formName="quickStockMove" name="locationSeqId" id="locationSeqId" fieldFormName="LookupFacilityLocation?facilityId=${facilityId}&locationTypeEnumId=FLT_PICKLOC"/>
|
|
</td>
|
|
<td>
|
|
<@htmlTemplate.lookupField formName="quickStockMove" name="targetLocationSeqId" id="targetLocationSeqId" fieldFormName="LookupFacilityLocation?facilityId=${facilityId}&locationTypeEnumId=FLT_PICKLOC"/>
|
|
</td>
|
|
<td><input type="text" name="quantityMoved" size="6" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="13" align="right">
|
|
<a href="javascript:document.quickStockMove.submit();" class="buttontext">${uiLabelMap.ProductQuickStockMove}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|