高章伟
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<apex:page controller="CampaignBTPDFController" showHeader="false" renderAs="pdf"  sidebar="false"  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: separate; border-color: black;}
/*         td {padding: 0px 0px 0px 0px;} */
        /*td.title {text-align: center; font-weight: bold; background-color: #BDBDBD;}*/
        /*SWAG-BHW3Y9 update by vivek 20200108 start*/
        /*td.middle {text-align: left; font-weight: bold; border-color: black;}
        td.label {padding-right: 10px; border-color: black; text-align: right;}*/
        .middle {text-align: left; font-weight: bold; border-color: black;}
        .label {padding-right: 10px; border-color: black; text-align: right;}
        /*SWAG-BHW3Y9 update by vivek 20200108 end*/
    </style>
    </head>
    <body style="font-family: Arial Unicode MS;" >
    <apex:outputPanel id="message">
        <apex:pageMessages />
     </apex:outputPanel>
        <table width="650" align="center" cellspacing="0">
            <tr>
                <td>
                    <table width="650" border="0">
                        <tr>
                            <td colspan="4" style="text-align: center; font-size: 16pt; font-weight: bold;">会议报告</td>
                        </tr>
                        <tr><td colspan="4" height="40px"></td></tr>
                        <tr>
                            <td class="label">编制日期:</td>
                            <td class="middle"><apex:outputText value="{0, date, yyyy年MM月dd日}">
                                    <apex:param value="{!campaignRecords.cn.createddate}" />
                                </apex:outputText></td>
                            <td class="label">报告书状态:</td>
                            <td class="middle">{!campaignRecords.cn.report_Status__c}</td>
                        </tr>
                        <tr>
                            <td class="label">报告部门:</td>
                            <td class="middle">{!campaignRecords.cn.Owner.Category5__c}&nbsp;&nbsp;{!campaignRecords.cn.Owner.Category6__c}</td>
                            <td class="label">报告者:</td>
                            <td class="middle">{!campaignRecords.cn.OwnerName__c}</td>
                        </tr>
                        <tr><td colspan="4" height="20px"></td></tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="650" border="1"  cellspacing="0" style="table-layout: fixed;">
                        <tr>
                            <td class="label" width= "100">活动名称:</td>
                            <td class="middle" width= "550">
                                <c:PDFWbr targetStr="{!campaignRecords.cn.Name2__c}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">召开时间:</td>
                            <td class="middle">
                                <apex:outputText value="{0, date, yyyy年MM月dd日}">
                                    <apex:param value="{!campaignRecords.cn.StartDate}" />
                                </apex:outputText> 至
                                <apex:outputText value="{0, date, yyyy年MM月dd日}">
                                    <apex:param value="{!campaignRecords.cn.EndDate}" />
                                </apex:outputText>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">会议地点:</td>
                            <td class="middle">
                                <apex:outputField value="{!campaignRecords.cn.State_Master__r.Name}"/>
                                <apex:outputField value="{!campaignRecords.cn.City_Master__r.Name}"/>
                                <apex:outputField value="{!campaignRecords.cn.Town__c}"/>
                                <apex:outputField value="{!campaignRecords.cn.WorkshopPlace__c}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">会议类型:</td>
                            <td class="middle">
                                <apex:outputField value="{!campaignRecords.cn.Meeting_Type__c}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">参加人数:</td>
                            <!-- SWAG-BF39A8 原 value 为 total_participants__c start-->
                            <td class="middle"><apex:outputField value="{!campaignRecords.cn.Convening_Participants_Num__c}"/></td>
                            <!-- SWAG-BF39A8 end  -->
                        </tr>
                        <tr>
                            <td class="label">活动目的:</td>
                            <td class="middle" style="word-wrap: break-word;word-break: break-all;min-height: 100px;">
                            <div style="text-align: left;word-break: break-all;" id="Purpose_div" >
                                <!-- <apex:outputText value="{!campaignRecords.businessPurpose}" escape="false" /> -->
                                <!-- <apex:column breakBefore="true" colspan="2" headerValue="Hint" style="border-size:0px;border-color:#fff;" >
                                    <div id="{!campaignRecords.cn.BusinessPurpose__c}" class="hider" style="border-size:0px;border-color:#fff;">
                                       <apex:outputText value="{!campaignRecords.cn.BusinessPurpose__c}" escape="false" />
                                    </div>
                                </apex:column> -->
 
                            <c:PDFWbr targetStr="{!campaignRecords.businessPurpose}"/>
                            </div>
                            </td>
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- <div style="display:{!IF(businessPurposeTwoList!=null,'block','none')};"> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                        <tr>
                            <!-- <apex:outputLabel rendered="{!(c.size==1)}" > -->
                            <td class="label"><c:PDFWbr targetStr="{!$ObjectType.campaign.fields.BusinessPurpose_det__c.label}"/>:</td>
                            <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                            <!-- <td class="middle" style="word-wrap: break-word; text-align: center; word-break: break-all;min-height: 200px;">
                            <apex:outputField value="{!campaignRecords.cn.BusinessPurpose_det__c}" />
                            </td> -->
 
                            <td class="middle" style="word-wrap: break-word; text-align: center; word-break: break-all;min-height: 200px;">
                                
                                <table class="htmlDetailElementTable" width="550" border="0" cellpadding="0" cellspacing="0">
                                    <tbody>
                                        <apex:variable value="{!0}" var="cnt" />
                                        <apex:repeat value="{!businessPurposeTwoList}" var="bpt">
                                        <tr>
                                            <td class="middle" >
                                                <apex:outputPanel rendered="{!(bpt.busImgStyleL !='')}">
                                                <img alt="用户添加的图片" src="{!bpt.busImgSrcL}" style="{!bpt.busImgStyleL}" ></img>
                                                </apex:outputPanel>
                                            <!-- </td>
 
                                            <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;"> -->
                                                <apex:outputPanel rendered="{!(bpt.busImgStyleL =='')}">
                                                <apex:outputField value="{!bpt.cn.BusinessPurpose_det__c}"/>
                                                
                                                </apex:outputPanel>
                                            </td>
                                            <!-- <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;">
                                                <apex:outputPanel rendered="{!(bpt.busImgSrc !='')}">
                                                <img alt="用户添加的图片" src="{!bpt.busImgSrc}" style="{!bpt.busImgStyle}" ></img>
                                                </apex:outputPanel>
                                            </td> -->
                                        </tr>
                                            <apex:variable value="{!cnt + 1}" var="cnt" />
                                        </apex:repeat>
                                        
                                    </tbody>
                                </table>
                                
                            </td>
                            <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- </div> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                        <tr>
                            <td class="label">会议日程概要:</td>
                            <td class="middle" style="word-wrap: break-word;word-break: break-all;min-height: 100px;">
                            <div style="text-align: left;" id="Society_div">
                            <!-- <apex:outputText value="{!campaignRecords.Society_Hold_Place}" escape="false" /> -->
                            <c:PDFWbr targetStr="{!campaignRecords.Society_Hold_Place}"/>
                            </div>
                           </td>
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- <div style="display:{!IF(businessHoldTwoList!=null,'block','none')};"> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                        <tr>
                            <td class="label"><c:PDFWbr targetStr="{!$ObjectType.campaign.fields.Society_Hold_Place_det__c.label}"/>:</td>
                            <td class="middle" style="word-wrap: break-word; text-align: center; word-break: break-all;min-height: 200px;">
                                <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                            <!-- <apex:outputField value="{!campaignRecords.cn.Society_Hold_Place_det__c}"/> -->
 
                            
                            <table class="htmlDetailElementTable" align="center" width="550" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <apex:variable value="{!0}" var="cnt" />
                                    <apex:repeat value="{!businessHoldTwoList}" var="bpt">
                                    <tr>
                                        <td class="middle" >
                                            <apex:outputPanel rendered="{!(bpt.busImgStyleL !='')}">
                                                <img alt="用户添加的图片" src="{!bpt.busImgSrcL}" style="{!bpt.busImgStyleL}" ></img>
                                            </apex:outputPanel>
                                        <!-- </td>
 
                                        <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;"> -->
                                            <apex:outputPanel rendered="{!(bpt.busImgStyleL =='')}">
                                                <apex:outputField value="{!bpt.cn.BusinessPurpose_det__c}"/>
                                            </apex:outputPanel>
                                        </td>
                                        <!-- <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;">
                                            <apex:outputPanel rendered="{!(bpt.busImgSrc !='')}">
                                            <img alt="用户添加的图片" src="{!bpt.busImgSrc}" style="{!bpt.busImgStyle}" ></img>
                                            </apex:outputPanel>
                                        </td> -->
                                    </tr>
                                        <apex:variable value="{!cnt + 1}" var="cnt" />
                                    </apex:repeat>
                                    
                                </tbody>
                            </table>
                            </td>
                            <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                            
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- </div> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                        <tr>
                            <td class="label">活动成果:</td>
                            <td class="middle" style="word-wrap: break-word;word-break: break-all;min-height: 100px;">
                            <div style="text-align: left;" id="BusinessResult_div">
                            <!-- <apex:outputText value="{!campaignRecords.BusinessResult}" escape="false" /> -->
                            <c:PDFWbr targetStr="{!campaignRecords.BusinessResult}"/>
                            </div>
                            </td>
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- <div style="display:{!IF(businessResultTwoList!=null,'block','none')};"> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                        <tr>
                            <td class="label"><c:PDFWbr targetStr="{!$ObjectType.campaign.fields.BusinessResult_det__c.label}"/>:</td>
                            <td class="middle" style="word-wrap: break-word; text-align: center; word-break: break-all;min-height: 200px;">
                            <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                            <!-- <apex:outputField value="{!campaignRecords.cn.BusinessResult_det__c}"/> -->
 
                            
                            <table class="htmlDetailElementTable" width="550" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <apex:variable value="{!0}" var="cnt" />
                                    <apex:repeat value="{!businessResultTwoList}" var="bpt">
                                    <tr>
                                        <td class="middle" >
                                            <apex:outputPanel rendered="{!(bpt.busImgStyleL !='')}">
                                                <img alt="用户添加的图片" src="{!bpt.busImgSrcL}" style="{!bpt.busImgStyleL}" ></img>
                                            </apex:outputPanel>
                                        <!-- </td>
                                        <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;"> -->
                                            <apex:outputPanel rendered="{!(bpt.busImgStyleL =='')}">
                                                <apex:outputField value="{!bpt.cn.BusinessPurpose_det__c}"/>
                                            </apex:outputPanel>
                                        </td>
                                        <!-- <td style="word-wrap: break-word; text-align: center; word-break: break-all; min-height: 200px; width: 50%;">
                                            <apex:outputPanel rendered="{!(bpt.busImgSrc !='')}">
                                            <img alt="用户添加的图片" src="{!bpt.busImgSrc}" style="{!bpt.busImgStyle}" ></img>
                                            </apex:outputPanel>
                                        </td>
 -->                                    </tr>
                                        <apex:variable value="{!cnt + 1}" var="cnt" />
                                    </apex:repeat>
                                    
                                </tbody>
                            </table>
                            
                            <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                            </td>
                        </tr>
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 start -->
                        <!-- </div> -->
                        <!-- SWAG-BHW3Y9 update by vivek 20200108 end -->
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
</apex:page>