username@email.com
2022-01-26 0023766f0d4379858c2450eac5d0b56f5983deaa
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
@model DTO.TChallengeletterDTO
@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> challengecomplaintShouquandaibiaoDTOs = Model.complaintShouquandaibiaoDTOs;
 
    List<TChallengeItemDTO> challengeItemDTOs = Model.challengeItemDTOs;
 
    int PrintNum = Model.PrintNum.HasValue? Model.PrintNum.Value:0;
}
@{
    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" type="text/javascript"></script>
    <script language="javascript" src="~/js/jquery.wordexport.js" 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-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                    <style type="text/css">
                        table {
                            width: 595px;
                            font-size: 16pt;
                            font-family: 'FangSong';
                            background: #fff;
                            line-height: 1.5;
                        }
 
                        span {
                            font-size: 15pt;
                            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:29.3px;text-align:center">质疑函(正本)</td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-family:'SimHei';">一、质疑供应商基本信息</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">质疑供应商:<span style="width:460px;">@Model.GysName</span></td>
                            </tr>
                            <tr>
                                <td width="60%" align="left">地址:<span style="width:290px;font-size:13pt;">@Model.GysAddress</span></td>
                                <td width="40%" align="left">邮编:<span style="width:160px;">@Model.GysPostcode</span></td>
                            </tr>
                            <tr>
                                <td align="left">联系人:<span style="width:265px;">@Model.GysContacts </span></td>
                                <td align="left">联系电话:<span style="width:120px;">@Model.GysPhone </span></td>
                            </tr>
                            @for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++)
                            {
 
                                <tr>
                                    <td colspan="2" align="left">授权代表@(i!=0?(i+""):""):<span style="width:480px;">@challengecomplaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">联系电话@(i!=0?(i+""):""):<span style="width:480px;">@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
                                </tr>
                                <tr>
                                    <td align="left">地址@(i!=0?(i+""):""):<span style="width:290px;font-size:13pt;">@challengecomplaintShouquandaibiaoDTOs[i].Dizhi </span></td>
                                    <td align="left">邮编@(i!=0?(i+""):""):<span style="width:160px;">@challengecomplaintShouquandaibiaoDTOs[i].Youbian </span></td>
                                </tr>
                            }
                            <tr>
                                <td colspan="2" style="font-family:'SimHei';">二、质疑项目基本情况</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">质疑项目的名称:<span style="width:415px;font-size:13pt;">@Model.XmName </span></td>
                            </tr>
                            <tr>
                                <td align="left">质疑项目的编号:<span style="width:180px;">@Model.XmCode </span></td>
                                <td align="left">包号:<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:395px;">@Model.DocumentsDateName </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-family:'SimHei';">三、质疑事项具体内容</td>
                            </tr>
 
 
                            @{
                                @for (int i = 0; i < challengeItemDTOs.Count; i++)
                                {
                                    if (challengeItemDTOs.Count == 1)
                                    {
                                        <tr>
                                            <td colspan="2">
                                                质疑事项:<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据:@Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                            </td>
                                        </tr>
 
                                        @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
                                            if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
 
                                            }
 
 
                                        }
 
 
 
                                    }
                                    else
                                    {
                                        <tr>
                                            <td colspan="2">
                                                质疑事项@((i + 1) + ""):<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据@((i + 1) + ""): @Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                            </td>
                                        </tr>
 
                                        @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
 
 
                                            if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
 
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
 
                                            }
                                        }
 
 
                                    }
 
                                }
                            }
                            <tr>
                                <td colspan="2" style="font-family:'SimHei';">四、与质疑事项相关的质疑请求</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">日期:</td>
                            </tr>
                        </table>
                    </div>
 
 
 
                </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">
        var pt = document.getElementById("page1").innerHTML;
        pt =  pt.replace("质疑函(正本)","质疑函(副本)");
        var a=  @PrintNum;
        if (a > 0) {
            for (var i = 0; i < a; i++) {
                $('#content').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
        }
 
 
            function printWin() {
                var oWin = window.open("", "_blank");
                var pt = document.getElementById("content").innerHTML;
 
                oWin.document.write(pt);
                oWin.focus();
                oWin.document.close();
                oWin.print();
                oWin.close();
                return false;
            }
 
 
        function daochuword() {
            $("#content").wordExport("质疑函@(Html.Raw(Model.GysName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
        }
 
 
 
 
 
 
    </script>
    </body>
</html>