高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<apex:page controller="summonsPDFController" showHeader="false" sidebar="false" renderAs="pdf" action="{!init}" applyHtmlTag="false">
<html>
    <head>
        <style>
        @page {
            size: A4 portrait;
            margin: 5mm 12mm 5mm 12mm;
/*             @bottom-center { */
/*                 content: counter(page) " / " counter(pages); */
/*             } */
        }
        table {border-collapse: collapse;}
/*         td {padding: 0px 0px 0px 0px;} */
        td.title {text-align: center; font-weight: bold; background-color: #BDBDBD;}
        td.middle {text-align: center; font-size:120%; font-weight: bold;}
        td.label {padding-left: 10px;}
        </style>
    </head>
    <body style="font-family: Arial Unicode MS;">
        <table width="100%" border="0">
            <tr>
                <td width="12%">
                </td>
                <td style="text-align: center;"><span style="font-size: 12pt;">出货指示单</span></td>
                <td width="12%" style="text-align: right; vertical-align: bottom; font-size: 10pt;">
                    <span style="position:absolute;margin-left:550px;">打印日期:</span>
                    <apex:outputText value="{0, date, yyyyMMdd}">
                        <apex:param value="{!TODAY()}" />
                    </apex:outputText>
                </td>
            </tr>
        </table>
        <div style="height:3px;"></div>
        <table width="100%" border="1" cellspacing="2" style="font-size: 8pt;">
            <tr>
                <td>
                    <table width="100%" border="1" cellspacing="0">
                        <tr>
                            <td width="20%" class="label" height="23px">指示单编码</td>
                            <td width="30%" class="middle">{!coc.Name}</td>
                            <td width="20%" class="label" style="vertical-align: middle;">出库指示日</td>
                            <td width="30%" class="middle" style="vertical-align: middle;"><apex:outputField id="OutDate" value="{!coc.Order_date__c}"/></td>
                        </tr>
                        <tr>
                            <td class="label" height="23px">出货元</td>
                            <td class="middle">{!coc.Dealer_Info__r.Name}</td>
                            <td class="label" height="23px">医院</td>
                            <td class="middle">{!coc.Order_ForHospital__r.Name}</td>
                        </tr>
                        <tr >
                            <td class="label" colspan="1" height="23px">经销商</td>
                            <td class="middle">{!coc.Order_Dealer_Info__c}</td>
                            <td class="label" colspan="1" height="23px">科室</td>
                            <td class="middle">{!coc.Order_ForCustomerText__c}</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="border-top-color: white;">
                    <table width="100%"  cellspacing="0">
                        <tr>
                            <td  class="title" width="30%">消耗品名称</td>
                            <td  class="title" width="25%">产品型号</td>
                            <td  class="title" width="15%">消費期限</td>
                            <td  class="title" width="15%">出货数量</td>
                            <td  class="title" width="15%">单位</td>
                        </tr>
                             <apex:repeat value="{!ConsumableorderdetailsRecords}" var="records">
                           <tr >
                            <td style="font-size: 10pt;text-align: center;"><c:PDFWbr targetStr="{!records.Prod.Name__c}"/></td>
                            <td style="font-size: 10pt;text-align: center;"><c:PDFWbr targetStr="{!records.Prod.Asset_Model_No__c}"/></td>
                            <td style="text-align: center; font-size: 10pt;">
                                <apex:outputText value="{0, date, yyyy/MM/dd}">
                                    <apex:param value="{!records.guaranteeperiod}" />
                                </apex:outputText>
                            </td>
                            <td style="text-align:right; font-size: 10pt;">
                                 <apex:outputField id="consumablesCount" value="{!records.esd.Shipment_Count__c}"/>
                            </td>
                            <td style="text-align:right; font-size: 10pt;">
                                <apex:outputField id="consumablesBox_Piece" value="{!records.esd.Box_Piece__c}"/>
                            </td>
                        </tr>
                        </apex:repeat>
                    </table>
                </td>
            </tr>
        </table>
        <br/>
    </body>
</html>
</apex:page>