liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<apex:page controller="InventoryController" cache="true"  contentType="application/vnd.ms-excel#{!fileName}.xls">
    <apex:pageblock title="导出结果">
        <table class="list" border="0" cellpadding="0" cellspacing="0" >
            <apex:repeat value="{!pandiandetailsListShow}" var="records" id="csvOuter" >
                <apex:repeat value="{!records}" var="m" id="csv">
                    <tr class="dataRow">
                        <td Class="dataCell">{!m.Consumable_Product__r.Name__c}</td>
                        <td class="dataCell">{!m.Box_Piece__c}</td>
                        <td class="dataCell">{!m.Bar_Code__c}</td>
                        <td class="dataCell">{!m.Lose_reason__c}</td>
                    </tr>
                </apex:repeat>
            </apex:repeat>
        </table>
        <!-- <apex:pageblocktable value="{!consumableorderdetailsRecordserrordummy}" var="records">
            <apex:column value="{!records.Prod.Name__c}"/>
            <apex:column value="{!records.orderdetails2.Box_Piece__c}"/>
            <apex:column value="{!records.orderdetails2.Bar_Code__c}"/>
            <apex:column value="{!records.orderdetails2.Lose_reason__c}"/>
        </apex:pageblocktable> -->
    </apex:pageblock>
</apex:page>