<apex:page Controller="OverdueStockController" showHeader="true" tabStyle="InventoryView__tab" sidebar="true" id="allPage" action="{!init}" title="过期库存销存">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}" />
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}" />
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}" />
|
<script>
|
function searchProductJs() {
|
blockme();
|
searchorderBean();
|
}
|
|
function saveJs() {
|
blockme();
|
save();
|
}
|
|
function checkAll() {
|
var productCount = j$(escapeVfId('allPage:allForm:allBlock:overdueSection:overdueCnt')).value();
|
if (j$(escapeVfId('checker')).attr('checked') == 'checked') {
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:overdueSection:overdueTable:' + i + ':RowCheckbox')).attr('checked',true);
|
}
|
} else {
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:overdueSection:overdueTable:' + i + ':RowCheckbox')).attr('checked',false);
|
}
|
}
|
}
|
|
</script>
|
|
<apex:form id="allForm">
|
<apex:actionFunction name="searchorderBean"
|
action="{!searchorderBean}" rerender="overdueSection,overdueSection1,message" onComplete="unblockUI();">
|
</apex:actionFunction>
|
<apex:actionFunction name="save" action="{!save}"
|
rerender="overdueSection,overdueSection1,message"
|
onComplete="unblockUI();">
|
</apex:actionFunction>
|
<apex:outputPanel id="allPanel">
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<apex:pageBlock title="过期销存" id="allBlock">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton onclick="saveJs();" value="销存确认" rerender="dummy" style="width: 150px;" />
|
</apex:pageBlockButtons>
|
<apex:pageBlock id="searchBlock">
|
<table>
|
<colgroup>
|
<col width="160px" />
|
<col width="100px" />
|
<col width="10px" />
|
<col width="70px" />
|
<col width="100px" />
|
<col width="10px" />
|
<col width="90px" />
|
<col width="100px" />
|
<col width="10px" />
|
<col width="85px" />
|
<col width="100px" />
|
<col width="10px" />
|
<col width="70px" />
|
<col width="100px" />
|
</colgroup>
|
<tr>
|
<td align="right">Barcode</td>
|
<td><apex:inputTextarea value="{!barcode}" style="width:600px" /></td>
|
<td />
|
<td align="right"></td>
|
<td><apex:commandButton value="BarCode录入" style="width: 150px;"
|
onclick="searchProductJs(); return false;" /></td>
|
<td />
|
</tr>
|
<tr>
|
<td></td>
|
</tr>
|
</table>
|
</apex:pageBlock>
|
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<apex:pageBlock title="过期库存一览" id="overdueSection">
|
<input type="hidden" id="allPage:allForm:allBlock:overdueSection:overdueCnt" value="{!pageRecordsSize}" />
|
<table class="list" cellpadding="0" cellspacing="0" >
|
<tr class="headerRow">
|
<th width="20"><input type='checkbox' onClick='checkAll()' id='checker'/>是否销存</th>
|
<th>消耗品名称</th>
|
<th>单位</th>
|
<th>过期数量</th>
|
<th>销存数量</th>
|
</tr>
|
<apex:repeat value="{!codPageRecords}" var="m" id="overdueTable">
|
<tr class="dataRow">
|
<td>
|
<apex:inputCheckbox value="{!m.check}" id="RowCheckbox" styleClass="proRowCheckbox"/>
|
</td>
|
<td Class="dataCell">{!m.prodname}</td>
|
<td class="dataCell">{!m.boxPiece}</td>
|
<td class="dataCell" style="text-align: center;">{!m.overlimitCount}</td>
|
<td class="dataCell" style="text-align: center;">{!m.pandian}</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
</apex:pageBlock>
|
<!-- 销存产品详情 -->
|
<apex:pageBlock id="overdueSection1" title="销存明细">
|
<apex:pageblocktable value="{!overduePageRecords}" var="records" id="overdueTable1">
|
<apex:column width="80">
|
<apex:facet name="header">消耗品名称</apex:facet>
|
<apex:outputField value="{!records.Prod.Name__c}"/>
|
</apex:column>
|
<apex:column width="80">
|
<apex:facet name="header">单位</apex:facet>
|
<apex:outputField value="{!records.orderdetails2.Box_Piece__c}" />
|
</apex:column>
|
<apex:column width="80">
|
<apex:facet name="header">BarCode</apex:facet>
|
<apex:outputField value="{!records.orderdetails2.Bar_Code__c}"/>
|
</apex:column>
|
<apex:column width="80">
|
<apex:facet name="header">使用期限</apex:facet>
|
<apex:outputField value="{!records.orderdetails2.Sterilization_limit__c}" />
|
</apex:column>
|
<apex:column width="80">
|
<apex:facet name="header">销存原因</apex:facet>
|
<apex:outputText value="{!records.DiffReason}" />
|
</apex:column>
|
</apex:pageblocktable>
|
</apex:pageBlock>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
</apex:page>
|