username@email.com
2024-07-08 3cf9d2b6664bf83216c25d33f3f2890de6f25443
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
@model DTO.TComplaintletterDTO
@using DTO;
@using zhengcaioa.Models;
@{
 
 
 
    List<SysCodeDtl> request_info = ViewData["request_info"] as List<SysCodeDtl>; //质疑请求
    List<SysCodeDtl> question = ViewData["question"] as List<SysCodeDtl>; //质疑事项
    List<SysCodeDtl> law = ViewData["law"] as List<SysCodeDtl>; //法律依据
 
    List<TComplaintShouquandaibiaoDTO> complaintShouquandaibiaoDTOs = Model.complaintShouquandaibiaoDTOs;
 
    List<TComplaintRespondentDTO> complaintRespondentDTOs = Model.complaintRespondentDTOs;
 
    List<TComplaintGongyingshangDTO> complaintGongyingshangDTOs = Model.complaintGongyingshangDTOs;
 
 
    List<TChallengeRequestInfoDTO> challengeRequestInfoDTOs = Model.challengeRequestInfoDTOs;
 
    List<TComplaintItemDTO> complaintItemDTOs = Model.complaintItemDTOs;
 
    int PrintNum = Model.PrintNum.HasValue ? Model.PrintNum.Value : 0;
 
 
    ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //营业执照
    List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
    if (yinyezhizhao.DataList != null)
    {
        yinyezhizhaosssss = yinyezhizhao.DataList;
    }
 
    ResultDataEntity<SysAttachmentDTO> shenfenzheng = ViewBag.shenfenzheng as ResultDataEntity<SysAttachmentDTO>; //法人身份证
    List<SysAttachmentDTO> shenfenzhengsssss = new List<SysAttachmentDTO>();
    if (shenfenzheng.DataList != null)
    {
        shenfenzhengsssss = shenfenzheng.DataList;
    }
 
    CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //客户
 
}
@{
    Layout = null;
}
 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <title>@(SiteConfig.SiteName)</title>
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/css/font-awesome.min.css" rel="stylesheet">
    <link href="~/css/animate.min.css" rel="stylesheet">
 
    @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
    @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
    @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
    <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
 
 
 
    <!-- jqgrid-->
    @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
    <script src="~/js/bootstrap.min.js"></script>
    @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
 
    <!--容器-->
    @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
    @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
    <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
 
    <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
    <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
    <script src="~/js/TUJS.js"></script>
    <script language="javascript" src="~/js/fileSaver.js?v=2" type="text/javascript"></script>
    <script language="javascript" src="~/js/jquery.wordexport.js?v=2" type="text/javascript"></script>
</head>
<body class="gray-bg" style="overflow:auto">
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <div class="row">
                <div id="content" style="overflow-x:hidden;  overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                    <style type="text/css" >
                        table {
                            width: 595px;
                            font-size: 14pt;
                            font-family: 'FangSong';
                            background: #fff;
                            line-height: 150%;
                        }
 
                        span {
                            font-size: 14pt;
                            display: inline;
                            /*  border-bottom: 1px dashed #111;*/
                        }
 
                        s22pan:after {
                            content: '';
                            display: inline;
                            width: 100%;
                            margin-top: -5px;
                            /* border-bottom: 1px dashed #111;*/
                        }
                    </style>
                    <div id="page1" style="page-break-after:always;">
                        <table border="0" align="center" cellpadding="3" cellspacing="0">
                            <tr>
                                <td colspan="2" style="font-size:21px; text-align: center "><b>投诉书(正本)</b></td>
                            </tr>
                            <tr>
                                <td colspan="2"><b>一、投诉相关主体基本信息</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">投诉人:<span style="width:460px;">@Model.TsrName</span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址:<span style="width:290px;">@Model.TsrAddress</span>  &nbsp; &nbsp;  @(string.IsNullOrEmpty(Model.TsrPostcode)?"":"邮编:")<span style="width:160px;">@Model.TsrPostcode</span></td>
 
                            </tr>
                            <tr>
                                <td colspan="2" align="left">法定代表人/主要负责人:<span style="width:460px;">@Model.TsrCorporation</span></td>
                            </tr>
                            <tr>
 
                                <td colspan="2" align="left">联系电话:<span style="width:460px;">@Model.TsrPhone </span></td>
                            </tr>
 
                            @for (int i = 0; i < complaintShouquandaibiaoDTOs.Count; i++)
                            {
 
                                <tr>
                                    <td colspan="2" align="left">授权代表@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">联系电话@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">地址@(i!=0?(i+""):""):<span style="width:290px;">@complaintShouquandaibiaoDTOs[i].Dizhi </span>&nbsp; &nbsp; @(string.IsNullOrEmpty(complaintShouquandaibiaoDTOs[i].Youbian)?"":"邮编:")@(i!=0?(i+""):"")<span style="width:160px;">@complaintShouquandaibiaoDTOs[i].Youbian </span></td>
                                </tr>
                            }
                            @for (int i = 0; i < complaintRespondentDTOs.Count; i++)
                            {
                                if (complaintRespondentDTOs.Count == 1)
                                {
                                    <tr>
                                        <td colspan="2" align="left">被投诉人:<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="left">地址:<span style="width:290px;">@complaintRespondentDTOs[i].Address </span>&nbsp; &nbsp; @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="50%">联系人:<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                        <td align="left" width="50%">联系电话:<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                                    </tr>
                                }
                                else
                                {
                                    <tr>
                                        <td colspan="2" align="left">被投诉人@(i+1):<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="left">地址@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Address </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="50%">联系人@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                        <td align="left" width="50%">联系电话@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                                    </tr>
                                }
 
 
                            }
                            @for (int i = 0; i < complaintGongyingshangDTOs.Count; i++)
                            {
                                if (complaintGongyingshangDTOs.Count == 1)
                                {
                                    <tr>
                                        <td colspan="2" align="left">相关供应商:<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="left">地址:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="50%">联系人:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left" width="50%">联系电话:<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                }
                                else
                                {
                                    <tr>
                                        <td colspan="2" align="left">相关供应商@(i+1):<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="left">地址@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="50%">联系人@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left" width="50%">联系电话@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                }
 
 
                            }
                            <tr>
                                <td colspan="2"><b>二、投诉项目基本情况</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购项目的名称:<span style="width:415px;">@Model.XmName </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购项目的编号:<span style="width:180px;">@Model.XmCode </span>&nbsp;&nbsp;包号:<span style="width:160px;">@Model.XmPackage </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购人名称:<span style="width:460px;">@Model.PurchaserName </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">代理机构名称:<span style="width:460px;">@Model.Agency </span></td>
                            </tr>
                            <tr>
                                <td align="left">采购文件公告:<span style="width:290px;">@Model.IsNoticeName </span></td>
                                <td align="left">公告期限:<span style="width:160px;">@Model.NoticeDateName </span></td>
                            </tr>
                            <tr>
                                <td align="left">采购结果公告:<span style="width:290px;">@Model.IsResultnoticeName </span></td>
                                <td align="left">公告期限:<span style="width:160px;">@Model.ResultnoticeDateName </span></td>
                            </tr>
                            <tr>
                                <td colspan="2"><b>三、质疑基本情况</b></td>
                            </tr>
                            <tr>
                                <td align="left" colspan="2">
                                    投诉人于<span>@(Model.ChallengeDateName)</span>,向<span>@(Model.Questioned)</span>提出质疑,质疑事项为:
                                    @if (string.IsNullOrEmpty(Model.SqdbId))
                                    {
                                        @Html.Raw("<span>                          </span>")
                                    }
                                    else
                                    {
                                        @Html.Raw("<span>" + @Model.SqdbId + "</span>")
                                    }
 
 
 
 
 
                                </td>
 
                            </tr>
                            <tr>
                                <td align="left" colspan="2"><span>@(Model.Respondent)</span>于<span>@(Model.RespondDateName)</span>,就质疑事项@(!string.IsNullOrEmpty(Model.RespondDateName)?"做出了答复":"没有在法定期限内做出答复" ) </td>
                            </tr>
 
                            <tr>
                                <td colspan="2"><b>四、投诉事项具体内容</b></td>
                            </tr>
 
                            @{
                                @for (int i = 0; i < complaintItemDTOs.Count; i++)
                                {
                                    if (complaintItemDTOs.Count == 1)
                                    {
                                        <tr>
                                            <td colspan="2">
                                                投诉事项:<span style="text-indent:10px">@(string.IsNullOrEmpty(complaintItemDTOs[i].Questionname)? complaintItemDTOs[i].QuestionName: complaintItemDTOs[i].Questionname)  </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据: @Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>")
                                            </td>
                                        </tr>
 
                                        <tr>
                                            <td colspan="2">
                                                法律依据:
                                                @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    var sssss = "";
                                                    if (j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j - 1].Classify3)
                                                    {
                                                        if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("【") >= 0)
                                                        {
                                                            sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("【"), "》");
                                                        }
                                                        else
                                                        {
                                                            sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "》";
                                                        }
                                                    }
 
                                                    if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
                                                    }
 
                                                }
 
                                            </td>
                                        </tr>
 
 
 
                                    }
                                    else
                                    {
                                        <tr>
                                            <td colspan="2">
                                                投诉事项@((i+1)+""):<span style="text-indent:10px">@(string.IsNullOrEmpty(complaintItemDTOs[i].Questionname)? complaintItemDTOs[i].QuestionName: complaintItemDTOs[i].Questionname) </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据:@Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>")
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                法律依据:
                                                @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    var sssss = "";
                                                    if (j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j - 1].Classify3)
                                                    {
                                                        if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("【") >= 0)
                                                        {
                                                            sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("【"), "》");
                                                        }
                                                        else
                                                        {
                                                            sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "》";
                                                        }
                                                    }
                                                    if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
                                                    }
 
                                                }
 
                                            </td>
                                        </tr>
 
                                    }
 
                                }
                            }
                            <tr>
                                <td colspan="2"><b>五、与投诉事项相关的投诉请求</b></td>
                            </tr>
                            @{
                                @for (int i = 0; i < challengeRequestInfoDTOs.Count; i++)
                                {
                                    if (challengeRequestInfoDTOs.Count == 1)
                                    {
                                        <tr>
                                            <td colspan="2">
                                                请求:<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeRequestInfoDTOs[i].RequestInfoname)? challengeRequestInfoDTOs[i].RequestInfoNameName: challengeRequestInfoDTOs[i].RequestInfoname) </span>
                                            </td>
                                        </tr>
 
 
 
 
 
 
                                    }
                                    else
                                    {
                                        <tr>
                                            <td colspan="2">
                                                请求@((i + 1) + ""):<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeRequestInfoDTOs[i].RequestInfoname)? challengeRequestInfoDTOs[i].RequestInfoNameName: challengeRequestInfoDTOs[i].RequestInfoname)  </span>
                                            </td>
                                        </tr>
 
 
 
 
 
                                    }
 
                                }
                            }
                            @*<tr>
                        <td colspan="2" align="left">请求:<span>@Model.RequestInfoName</span></td>
                    </tr>*@
                            @*<tr>
                        <td colspan="2" style="height:15px"></td>
                    </tr>*@
                            <tr>
                                <td align="left">签字(签章):</td>
                                <td align="left">公章:</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
 
 
 
                </div>
 
                <div id="zhuti">
                    @{
                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                        {
                            <div style="page-break-after:always;">
                                <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
 
                            </div>
                        }
 
 
                        for (int i = 0; i < shenfenzhengsssss.Count; i++)
                        {
                            <div style="page-break-after:always;">
                                <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
 
                            </div>
                        }
                    }
 
                    <div style="page-break-after:always;">
                        <table border="0" align="center" cellpadding="3" cellspacing="0">
                            <tr>
                                <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</td>
                            </tr>
 
                            <tr>
                                <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</td>
                            </tr>
                            <tr>
                                <td colspan="2" style="height:50px"></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right">川印文化集团股份有限公司(公章)</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
 
 
                </div>
 
 
                <div id="zhuti1">
                    @{
                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                        {
                            <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
 
                            <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
 
 
                        }
 
 
                        for (int i = 0; i < shenfenzhengsssss.Count; i++)
                        {
                            <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
 
                            <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
 
 
                        }
                    }
                    <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
 
                    <table border="0" align="center" cellpadding="3" cellspacing="0">
                        <tr>
                            <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</td>
                        </tr>
 
                        <tr>
                            <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height:50px"></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">川印文化集团股份有限公司(公章)</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                        </tr>
                    </table>
 
 
 
                </div>
 
 
 
               
            </div>
 
        </div>
        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
 
 
                <a class="btn btn-success" href="javascript:void(0)" onclick="printWin();" style="margin-left:4px; border-radius:4px;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">打印</span>
                </a>
 
                <a class="btn btn-success" href="javascript:void(0)" onclick="daochuword();" style="margin-left:4px; border-radius:4px;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">导出word</span>
                </a>
            </div>
        </div>
 
 
 
    </form>
    <script type="text/javascript">
        $('#zhuti').hide();
        $('#zhuti1').hide();
        
 
        function printWin() {
 
         var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="text" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
 
 
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
 
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
 
 
 
 
 
 
                    var pt = document.getElementById("page1").innerHTML;
 
                    var zhutiziliao = $('#zhutiziliao').val();
                    if (zhutiziliao == "0") {
                        $('#content').append(' <div id ="zhutilinshi"> </div >');
                        $('#zhutilinshi').append(document.getElementById("zhuti").innerHTML);
                    }
                    var a = parseInt($('#PrintNums').val());
 
 
 
                    pt = pt.replace("投诉书(正本)","投诉书(副本)");
        if (a > 0) {
            $('#content').append(' <div id ="fuben"> </div >');
            for (var i = 0; i < a; i++) {
                $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
 
            }
 
                var oWin = window.open("", "_blank");
                var pta = document.getElementById("content").innerHTML;
                    $('#fuben').remove();
                    $('#zhutilinshi').remove();
                oWin.document.write(pta);
                oWin.focus();
                oWin.document.close();
                oWin.print();
                    oWin.close();
                    layer.close(index);
 
                    return false;
 
                }
            })
 
 
 
 
 
 
 
 
 
            }
 
 
        function daochuword() {
             var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="text" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
 
 
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
 
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
 
 
                    
 
                    var pt = $('#page1').html();
                    var zhutiziliao = $('#zhutiziliao').val();
                     $('#content').append(' <div id ="zhutilinshi">  <style type="text/css" >'+
                         ' table {' +
                          'width: 595px;' +
                          'font-size: 14pt;' +
                         ' font-family: "FangSong";' +
                          'background: #fff;' +
                          ' line-height: 150%;' +
                          ' }' +
 
                          '  span {' +
                          ' font-size: 14pt;' +
                          'display: inline;' +
            
                          ' }' +
 
                          ' s22pan: after {' +
                         '    content: "";' +
                          '   display: inline;' +
                          '   width: 100%;' +
                          '  margin-top: -5px;' +
                          ' }' +
                '     </style >  </div >');
                
                    $('#zhutilinshi').append($('#page1').html());
                    if (zhutiziliao == "0") {
                     
                        $('#zhutilinshi').append($('#zhuti1').html());
 
                    }
                    var a = parseInt($('#PrintNums').val());
 
                    pt = pt.replace("投诉书(正本)","投诉书(副本)");
                    if (a > 0) {
                        for (var i = 0; i < a; i++) {
                            $('#zhutilinshi').append('  <br clear=all style="page-break-before:always" mce_style="page-break-before:always"> ' + pt + ' ');
 
                        }
 
                    }
                   // console.log(document.getElementById("zhutilinshi").innerHTML);
                     
 
 
                    $("#zhutilinshi").wordExport("投诉书@(Html.Raw(Model.TsrName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
                    $('#zhutilinshi').remove();
                    layer.close(index);
                    $('#zhuti1').hide();
 
                    return false;
 
                }
            })
 
        }
 
 
 
 
 
 
    </script>
</body>
</html>