高章伟
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<apex:page controller="ConsumptionPDFController" 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); */
/*             } */
        }
        .bottomTable{
            width:200px;
            height:50px;
            position:relative;
            margin-top:400px;
            margin-left:550px;
        }
        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%">
                    <table width="100%" border="1" cellspacing="0" style="border-color: red;">
                        <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;">OLYMPUS</td></tr>
                        <tr>
                            <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >CONFIDENTIAL</td>
                            <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">&#12953;</td>
                        </tr>
                    </table>
                </td>
                <td style="text-align: center;"><span style="font-size: 20pt;">纳品书</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 value="{!coc.Consumable_pdf_insert_day__c}" id="Checkbox"/></td>
                        </tr>
                        <tr>
                            <td class="label" height="23px">客户名</td>
                            <td class="middle">{!coc.ShipmentAccount__c}</td>
                            <td class="label" height="23px">经销商(录入)</td>
                            <td class="middle">{!coc.Order_ForDealerText__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="20%">产品型号</td>
                            <td  class="title" width="10%">BarCode</td>
                            <td  class="title" width="10%">有効期限</td>
                            <td  class="title" width="10%">订货数量</td>
                            <td  class="title" width="10%">单位</td> 
                            <td  class="title" width="10%">单价(元)</td>
                            <td  class="title" width="10%">piece</td> 
                        </tr>
                            <apex:outputPanel id="allPanel_test" >
                            <apex:pageBlock id="Editable_test">
                            <apex:pageblocksection columns="1"  id="ConsumableorderdetailsSection_test">
                            <tr ><apex:pageblocktable value="{!ConsumableorderdetailsRecords}" var="records" id="ConsumableorderdetailsTable_test">
                             
                            <td height="60px"><apex:column width="14%" style="font-size:14px;text-indent: 10%;border-style:ridge;height:40px;">
                            <apex:outputField value="{!records.Prod.Name__c}"/> 
                            </apex:column></td>
                            <td height="60px"><apex:column width="10%" style="font-size:14px;text-indent: 10%; height:40px;border-style: ridge;">
                                <apex:outputField value="{!records.esd.Asset_Model_No__c}"/> 
                            </apex:column></td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;" >
                                <apex:outputField value="{!records.esd.Bar_Code__c}"/>
                            </apex:column>
                            </td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;" >
                                <apex:outputField value="{!records.esd.Guarantee_period_for_products__c}"/>
                            </apex:column>
                            </td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;text-align: right;" >
                                <apex:outputField value="{!records.esd.Consumable_count__c}"/>
                            </apex:column>
                            </td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;" >
                                <apex:outputField value="{!records.esd.Box_Piece__c}"/>
                            </apex:column>
                            </td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;" >
                                <apex:outputField id="consumablesCount" value="{!records.esd.Intra_Trade_List_RMB__c}"/>
                            </apex:column>
                            </td>
                            <td height="60px">
                            <apex:column width="5%" style="font-size:14px;text-indent: 10%;height:40px;border-style: ridge;text-align: right;" >
                                <apex:outputField id="detailsPiece" value="{!records.esd.Order_details_Piece__c}"/>
                            </apex:column>
                            </td>
 
                            </apex:pageblocktable>
                        </tr>    
                        </apex:pageblocksection>
                        </apex:pageBlock>
                        </apex:outputPanel>
                    </table>
                </td>
            </tr>
        </table>
      
      
         <br/> 
        <table class="bottomTable">
            <tr>
                <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(盖章)
                </td>
            </tr>
            <tr height="60px">
                <td height="60px">
                
                </td>
            </tr>
             <tr>
                <td>
                    &nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日
                </td>
             </tr>
        </table>
 
    </body>-->
</html>
 
</apex:page>