<apex:page Controller="ArriveGsDetailsController" showHeader="true" tabStyle="ArriveGoodsMain__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 ProSaleJs() {
    blockme();
    ProSale();
}

window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
</script>
<style>
</style>
    <apex:form id="allForm">
        <apex:actionFunction name="ProSale" action="{!ProSale}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()">
        <apex:param name="firstParam" assignTo="{!sortKey}" value="" />
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
                 <!--<table>
                        <tr>
                            <td><div id="ErrorName" style="color: red;font-weight: bold;">{!alertMessage}</div>
                            </td>
                        </tr>
                </table>-->
                <apex:outputPanel id="message">
                    <apex:pageMessages />
                 </apex:outputPanel>
            <apex:pageBlock id="allBlock" title="到货">
            <apex:pageBlock id="newBlock">
                <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"></td>
                        <td><apex:commandButton onclick="ProSaleJs();" value="出库" rerender="dummy" style="width:180px" disabled="{!arrivetoorder}"/></td>
                        <td/>
                    </tr>
                </table>
            </apex:pageBlock>
            <apex:pageBlock title="到货订单信息">
            <table>
                <colgroup>
                    <col width="200"/>
                    <col width="200"/>
                    <col width="200"/>
                    <col width="200"/>
                </colgroup>
                <tr>
                    <td align="right">到货订单名称：</td>
                    <td align="left"><apex:outputField value="{!coc.Name}"/></td>
                    <td align="right">本次入库产品金额：</td>
                    <td align="left"><apex:outputField value="{!coc.Arrive_total_amount__c}"/></td>
                </tr>
                <tr>
                    <td align="right">消耗品订单名称：</td>
                    <td align="left"><apex:outputField value="{!coc.Arrive_Order__c}"/></td>
                    <td align="right"></td>
                    <td align="left"></td>
                </tr>
            </table>
                </apex:pageBlock>
               
<!--==============20160310====INSERT_CODE_END===========================================-->
                 <!-- <apex:pageblocksection columns="1" title="在库商品库存一览" id="ConsumableorderdetailsSection"> -->
                 <apex:pageBlock title="在库商品库存一览">
                    <table class="list"  border="0" cellpadding="0" cellspacing="0" id="tableId" >
                        <colgroup>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="160px"/>
                            <col width="200px"/>
                        </colgroup>

                        <tr class="headerRow">
                            <th width="16%">消耗品名称</th>
                            <th width="16%">规格</th>
                            <th width="16%">CFDA状态</th>
                            <th width="16%">注册证编码号</th>
                            <th width="16%">注册证效期</th>
                            <th width="20%">使用期限</th>
                            <th width="20%">BarCode</th>
                            <th width="20%">采购单价</th>
                        </tr>
                        <apex:repeat value="{!consumableorderdetailsRecordsview}" var="records" id="ConsumableorderdetailsTableOuter" >
                            <apex:repeat value="{!records}" var="item" id="ConsumableorderdetailsTable">
                                <tr class="dataRow">
                                    <td> {!item.esd.Consumable_Product__r.Name__c} </td>
                                    <td> {!item.packing_list} </td>
                                    <td> {!item.Prod.SFDA_Status__c} </td>
                                    <td> {!item.approbation_No} </td>
                                    <td> {!item.expiration_DateStr} </td>
                                    <td> {!item.Sterilization_limitStr} </td>
                                    <td> {!item.esd.Bar_Code__c} </td>
                                    <td> {!item.esd.Intra_Trade_List_RMB__c} </td>
                                </tr>
                            </apex:repeat>
                        </apex:repeat>
                    </table>

                    <!-- <apex:pageblocktable value="{!ConsumableorderdetailsRecords}" var="records" id="ConsumableorderdetailsTable"> -->
                    <!--     <apex:column width="100">
                             <apex:facet name="header"><a href="#" onclick="SortLimited('0');return false;" style="text-decoration: underline;">消耗品明细名称</a>{!sortOrder[0]}</apex:facet>
                             <apex:outputField value="{!records.esd.Name}"/>
                         </apex:column>
                         <apex:column width="100">
                             <apex:facet name="header">消耗品明细名称</apex:facet>
                             <apex:outputField value="{!records.esd.Name}"/>
                         </apex:column>-->
                         <!-- <apex:column width="200">
                             <apex:facet name="header">消耗品名称</apex:facet>
                             <apex:outputField value="{!records.esd.Consumable_Product__r.Name__c}"/>
                         </apex:column>
                         <apex:column width="80" style="text-align: right;">
                             <apex:facet name="header">规格</apex:facet>
                             <apex:outputText value="{!records.packing_list}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">CFDA状态</apex:facet>
                             <apex:outputField value="{!records.Prod.SFDA_Status__c}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">注册证编码号</apex:facet>
                             <apex:outputText value="{!records.approbation_No}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">注册证效期</apex:facet>
                             <apex:outputText value="{0, date, yyyy/MM/dd}">
                                <apex:param value="{!records.expiration_Date}" />
                            </apex:outputText>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">使用期限</apex:facet>
                             <apex:outputField value="{!records.esd.Sterilization_limit__c}"/>
                         </apex:column>
                         <apex:column width="80">
                             <apex:facet name="header">BarCode</apex:facet>
                             <apex:outputField value="{!records.esd.Bar_Code__c}"/>
                         </apex:column>
                         <apex:column width="80" style="text-align: right;">
                             <apex:facet name="header">采购单价</apex:facet>
                             <apex:outputField value="{!records.esd.Intra_Trade_List_RMB__c}"/>
                         </apex:column>
                    </apex:pageblocktable> -->
<!--                     <script>
                        setDisabled();
                    </script>
 -->                <!-- </apex:pageblocksection> -->
                </apex:pageBlock>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
</apex:page>