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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgMergerOrderEdit.aspx.cs" Inherits="CY.WebForm.Pages.business.AgMergerOrderEdit" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>合版施工单</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
         <link rel="stylesheet" type="text/css" href="../../Styles/base.css" />
    <script type="text/javascript">
      
        $(function () {
            $("input[name='PMS_PaperPositive']").blur(function () {
                var PMS_PaperCount = parseInt($("input[name='PMS_PaperCount']").val());
                var PMS_PaperPositive = parseInt($("input[name='PMS_PaperPositive']").val());
                var PMS_PaperConsume = parseInt($("input[name='PMS_PaperConsume']").val());
                if (PMS_PaperCount < PMS_PaperPositive) {
                    alertMsg("所填正数不能大于纸张数量");
                    $("input[name='PMS_PaperPositive']").val("0");
                } else {
                    var o_money = PMS_PaperCount - PMS_PaperPositive;
                    if (isNaN(o_money)) {
                        $("input[name='PMS_PaperConsume']").val("0");
                    } else {
                        $("input[name='PMS_PaperConsume']").val(o_money);
                    }
                }
            });
            $("input[name='PMS_PaperConsume']").blur(function () {
                var PMS_PaperCount = parseInt($("input[name='PMS_PaperCount']").val());
                var PMS_PaperPositive = parseInt($("input[name='PMS_PaperPositive']").val());
                var PMS_PaperConsume = parseInt($("input[name='PMS_PaperConsume']").val());
                if (PMS_PaperCount < (PMS_PaperConsume + PMS_PaperPositive)) {
                    alertMsg("所消耗数不能大于纸张数量");
                    $("input[name='PMS_PaperConsume']").val("0");
                } else {
                    var o_money = PMS_PaperCount - PMS_PaperConsume;
                    if (isNaN(o_money)) {
                        $("input[name='PMS_PaperPositive']").val("0");
                    } else {
                        $("input[name='PMS_PaperPositive']").val(o_money);
                    }
                }
            });
 
            $(".CTP_o").change(function () {
                $(".Film_o").val("");
                $(".PS_o").val("");
            });
            $(".Film_o").change(function () {
                $(".CTP_o").val("");
                $(".PS_o").val("");
            });
            $(".PS_o").change(function () {
                $(".Film_o").val("");
                $(".CTP_o").val("");
            });
 
            $("#PMS_PaperSource").change();
            $("#selPlateType").change();
 
 
            $(".xialap").hover(function () {
                $(this).find(".xialapb").show();
            }, function () {
                $(this).find(".xialapb").hide();
            });
 
            $(".xialapr").hover(function () {
                $(this).find(".xialapb").show();
                $(this).removeClass("xialapr").addClass("xialaprh");
            }, function () {
                $(this).removeClass("xialaprh").addClass("xialapr");
                $(this).find(".xialapb").hide();
            });
 
            $(".xialapr").click(function () {
                $(this).parent().parent().find("input").val($(this).text());
                $(".xialapb").hide();
            });
 
        });
    </script>
    <script type="text/javascript">
        function PaperSourceChange(sel) 
       {
           if ('来自仓库' != sel.value)
           {
               document.getElementById('StoreBtn').style.display = "none";
               document.getElementById('PMS_PaperName').style.display = "none";
               document.getElementById('selPaperName').style.display = "";
               document.getElementById('PMS_PaperSpecification').style.display = "none";
               document.getElementById('SelPaperSpec').style.display = "";
           }
           else 
           {
               document.getElementById('StoreBtn').style.display = "";
               document.getElementById('PMS_PaperName').style.display = "";
               document.getElementById('selPaperName').style.display = "none";
               document.getElementById('PMS_PaperSpecification').style.display = "";
               document.getElementById('SelPaperSpec').style.display = "none";
           }
       }
       function PlateChange(sel) 
       {
           if ('1' == sel.value) 
           {
               document.getElementById('BtnStorePlate').style.display = "";
               document.getElementById('PlateSpec').style.display = "";
               document.getElementById('selCTPSpec').style.display = "none";
               document.getElementById('selFilmSpec').style.display = "none";
               document.getElementById('lbCTPCount').style.display = "";
               document.getElementById('tdCTPCount').style.display = "";
           }
           else 
           {
               document.getElementById('BtnStorePlate').style.display = "none";
               document.getElementById('PlateSpec').style.display = "none";
               document.getElementById('lbCTPCount').style.display = "none";
               document.getElementById('tdCTPCount').style.display = "none";
               if ('0' == sel.value) {
                   document.getElementById('selCTPSpec').style.display = "";
                   document.getElementById('selFilmSpec').style.display = "none";
                   document.getElementById('tdBlank').colSpan = "6"
               }
               else 
               {
                   document.getElementById('selCTPSpec').style.display = "none";
                   document.getElementById('selFilmSpec').style.display = "";
                   document.getElementById('tdBlank').colSpan = "2";
               }
           }
           if ('2' == sel.value || '3' == sel.value) {
 
               document.getElementById('lbPSSpec').style.display = "";
               document.getElementById('tdPSSpec').style.display = "";
               document.getElementById('lbPSCount').style.display = "";
               document.getElementById('tdPsCount').style.display = "";
           }
           else 
           {
               document.getElementById('lbPSSpec').style.display = "none";
               document.getElementById('tdPSSpec').style.display = "none";
               document.getElementById('lbPSCount').style.display = "none";
               document.getElementById('tdPsCount').style.display = "none";
           }
       }
       function TrimChange(sel)
       {
           if ("不修切" == sel.value) 
           {
               document.getElementById('PrintSizeName').value = "";
           }   
        }
        /*
交易客户选中值发生改变
*/
        function custormerChange(sel) {
            if (window.isDataLoading) {
                return;
            }
            if (sel.value.indexOf('六开') >= 0) {
                document.getElementById('PlateSpec').value = '395*460';
                document.getElementById('PMS_ChromaticNumber').value = '1';
                document.getElementById('CTPCount').value = '1';
 
            } else if (sel.value.indexOf('四色') >= 0) {
                document.getElementById('PlateSpec').value = '770*1030';
                document.getElementById('PMS_ChromaticNumber').value = '4';
                document.getElementById('CTPCount').value = '4';
            } else if (sel.value.indexOf('八色') >= 0) {
                document.getElementById('PlateSpec').value = '790*1030';
                document.getElementById('PMS_ChromaticNumber').value = '4';
                document.getElementById('CTPCount').value = '4';
            } else if (sel.value.indexOf('黑白') >= 0) {
                document.getElementById('PlateSpec').value = '760*920';
                document.getElementById('PMS_ChromaticNumber').value = '1';
                document.getElementById('CTPCount').value = '2';
            } else if (sel.value.indexOf('轮转') >= 0) {
                document.getElementById('PlateSpec').value = '579*810';
                document.getElementById('PMS_ChromaticNumber').value = '1';
                document.getElementById('CTPCount').value = '2';
            } else {
                document.getElementById('CTPCount').value = '';
            }
 
           
           
        }
    </script>
</head>
<body>
    <form method="post" class="form2" runat="server">
    <table class="tableStyle" style="width: 98%; margin: 5px auto;" usehover="false" useclick="false">
        <tr>
            <th colspan="10">
                <b>基本信息</b>
            </th>
        </tr>
        <tr>
            <td class="ali03 w100px ">
                紧急情况:
            </td>
            <td>
                <select  id='selExigencyDegree' runat="server" datatextfield="Name" datavaluefield="MeanValue" keepdefaultstyle='true'>
                </select>
            </td>
            <td class="ali03 w100px ">
                施工单号:
            </td>
            <td>
                <span id="spanSpecialNum" runat="server"></span>
            </td>
            <td class="ali03 w100px ">
                印刷厂商:
            </td>
            <td>
                <select  id="selOutFirm" runat="server" keepdefaultstyle="true" class="Sreq" msg="请选择印刷厂商">
                    <option value="-1">本厂印刷</option>
                </select>
            </td>
            <td class="ali03 w100px ">
                制单人:
            </td>
            <td>
                <span id="spanSpecialOprator" runat="server"></span>
            </td>
            <td class="ali03 w100px ">
                制单时间:
            </td>
            <td>
                <span id="spanSpecialTime" runat="server"></span>
            </td>
        </tr>
    </table>
    <table class="tableStyle" style="width: 98%; margin: 5px auto;text-align: center;" usehover="false" useclick="false">
        <tr>
            <th colspan="7">
                <b>订单信息</b>
            </th>
        </tr>
        <tr>
            <th style="text-align: center;">
                订单号
            </th>
            <th style="text-align: center;">
                印件名称
            </th>
            <th style="text-align: center;">
                成品尺寸
            </th>
            <th style="text-align: center;">
                印刷数量
            </th>
            <th style="text-align: center;">
                修切要求
            </th>
            <th style="text-align: center;">
                包装要求
            </th>
            <th style="text-align: center;">
                后道及工艺要求
            </th>
        </tr>
        <asp:Repeater ID="RepClientList" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <span><%#Eval("SellerOrderId")%></span>
                        <input type="hidden" id="txtOrderId" name="txtOrderId" value="<%#Eval("Keyid")%>" />
                        <input type="hidden" id="txtOrderNum" name="txtOrderNum" value="<%#Eval("SellerOrderId")%>" />
                        <input type="hidden" id="txtDocumentName" name="txtDocumentName" value="<%#Eval("DocumentName")%>" />
                        <input type="hidden" id="txtOrderSize" name="txtOrderSize" value="<%#Eval("PrintSizeName")%>" />
                         <input type="hidden" id="txtCustomName" name="txtCustomName" value="<%#Eval("BuyerName")%>" />
                    </td>
                    <td>
                        <span><%#Eval("DocumentName")%></span>
                    </td>
                    <td>
                        <input type="text" name="PrintSizeName" class=" noJ" value="<%#Eval("PrintSizeName") %>"  id="PrintSizeName"/>
                    </td>
                    <td>
                        <input type="text" name="PO_Count" class=" w40px int" min="0" max="<%#Eval("OrderExtend.SurplusPrintNum")%>" value="<%#Eval("OrderExtend.SurplusPrintNum")%>"/>张
                    </td>
                    <td>
                        <select keepDefaultStyle="true" class=" w70px" name="PO_TrimRequire" onchange='TrimChange(this)'>
                            <option value="修切">修切</option>
                            <option value="不修切">不修切</option>
                        </select>
                    </td>
                    <td>
                        <select keepDefaultStyle="true" class=" w70px" name="PO_PackagRequire">
                            <option value="打包">打包</option>
                            <option value="打捆">打捆</option>
                            <option value="装纸箱">装纸箱</option>
                            <option value="不打包">不打包</option>
                        </select>
                    </td>
                    <td>
                        <%--<input type="text" name="PO_Requirement" class=" noJ" style="width: 300px;" value="<%#Eval("PrintDemandAfterWorksDemand") %>" />--%>
                        <input type="text" name="PO_Requirement" class=" noJ" maxlength="500" style="width: 405px;" value="<%#Eval("PrintDemandAfterWorksDemand")%>" />
                        <%--<%#Eval("m_InquiryCommonModel.PrintDemand")%><%#Eval("m_InquiryCommonModel.AfterWorksDemand")%>--%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="RepMergerEdit" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <span>
                        <input type="hidden" id="txtOrderNum" name="txtOrderNum" value="<%#Eval("PO_OrderNum")%>" />
                        <input type="hidden" id="txtDocumentName" name="txtDocumentName" value="<%#Eval("PO_Title")%>" />
                            <%#Eval("PO_OrderNum")%></span>
                    </td>
                    <td>
                        <span>
                            <%#Eval("PO_Title")%></span>
                    </td>
                    <td>
                        <input type="text" name="PrintSizeName" class=" noJ" value="<%#Eval("PO_Size") %>"  id="PrintSizeName"/>                     
                    </td>
                    <td>
                        <input type="text" name="PO_Count" class=" w40px int" min="0"  value="<%#Eval("PO_Count")%>"/>张
                    </td>
                    <td>
                         <select keepDefaultStyle="true" class=" w70px" name="PO_TrimRequire" onchange='TrimChange(this)'">
                            <option value="修切" <%#Eval("PO_TrimRequire").ToString()=="修切"?"selected":""%>>修切</option>
                            <option value="不修切" <%#Eval("PO_TrimRequire").ToString()=="不修切"?"selected":""%>>不修切</option>
                        </select>
                    </td>
                    <td>
                         <select keepDefaultStyle="true" class=" w70px" name="PO_PackagRequire" value="<%#Eval("PO_PackagRequire")%>">
                            <option value="打包" <%#Eval("PO_PackagRequire").ToString()=="打包"?"selected":""%>>打包</option>
                            <option value="打捆" <%#Eval("PO_PackagRequire").ToString()=="打捆"?"selected":""%>>打捆</option>
                            <option value="装纸箱" <%#Eval("PO_PackagRequire").ToString()=="装纸箱"?"selected":""%>>装纸箱</option>
                            <option value="不打包" <%#Eval("PO_PackagRequire").ToString()=="不打包"?"selected":""%>>不打包</option>                     
                        </select>
                    </td>
                    <td>
                        <input type="text" name="PO_Requirement" class=" noJ" style="width: 405px;" value="<%#Eval("PO_RequirementWork").ToString().Replace(",+-+,", ",")%>" />
 
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table class="tableStyle" style="width: 98%; margin: 5px auto;" usehover="false" useclick="false">
        <tr>
            <th colspan="10">
                <b>印刷信息</b>
            </th>
        </tr>
        <tbody>
            <tr>
                <td class="ali03 w70px ">
                    纸张来源:
                </td>
                <td>
                    <select keepDefaultStyle="true"  name="PMS_PaperSource" onchange='PaperSourceChange(this)' runat="server" id="PMS_PaperSource" style=" width:80px;">
                        <option value="来自仓库">来自仓库</option>
                        <option value="自带纸">自带纸</option>
                    </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;"><input type="button" class="Btn FromWarehouse" value="连接仓库" id="StoreBtn"  /></label><input type="hidden"  runat="server" name="PSF_PaperId" value="" id="PSF_PaperId1" /><input type="hidden"  runat="server" name="PMS_PaperCount1" value="" id="PMS_PaperCount1" />
                </td>
                <td class="ali03 w70px ">
                    纸张名称:
                </td>
                <td>
                    <input type="text" class="noJ " name="PMS_PaperName" style="width:80px" id="PMS_PaperName" runat = "server" />
                    <select keepDefaultStyle="true"  name="selPaperName" style=" display:none; width:80px" runat="server"  id="selPaperName" ></select>
                </td>
                <td class="ali03 w70px ">
                    纸张规格:
                </td>
                <td>
                    <input type="text" class="noJ " name="PMS_PaperSpecification" style="width:80px" id="PMS_PaperSpecification" runat = "server"/>
                    <select keepDefaultStyle="true"  name="SelPaperSpec" style=" display:none; width:80px"  runat="server"  id="SelPaperSpec"></select>
                </td>
                <td class="ali03 w70px ">
                    纸张数量:
                </td>
                <td colspan="3">
                    <input type="text" class="noJ w40px" name="PMS_PaperCount" runat="server" id="PMS_PaperCount" />张(其中正数<input type="text" class="noJ w40px" name="PMS_PaperPositive"  runat ="server" id = "PMS_PaperPositive"/>张,消耗<input type="text" class="noJ w40px" name="PMS_PaperConsume" runat = "server" id="PMS_PaperConsume" />张)
                </td>
            </tr>
            <tr>
              <td class="ali03 w70px ">
                    印刷机台:
                </td>
                <td>
                    <select keepDefaultStyle="true"  name="PMS_Machine" id="selPMS_Machine" runat="server" style=" width:80px;" onchange='custormerChange(this)'>
                        <option value="">请选择</option>
                        <option value="1开机">1开机</option>
                        <option value="2开机">2开机</option>
                        <option value="3开机">3开机</option>
                        <option value="4开机">4开机</option>
                        <option value="8开机">8开机</option>
                    </select>
                </td>
                <td class="ali03 w70px ">
                    印刷方式:
                </td>
                <td>
                    <select keepDefaultStyle="true"   name="PSF_Typesetting" id="PSF_Typesetting" runat = "server" style="width:80px">
                        <option value="自翻">自翻</option>
                        <option value="滚翻">滚翻</option>
                        <option value="扣板">扣板</option>
                        <option value="单面">单面</option>
                    </select>
                </td>
                <td class="ali03 w70px ">
                    是否修版:
                </td>
                <td>
                    <select keepDefaultStyle="true"  name="PMS_IsRevisedEdition" runat = "server" id="PMS_IsRevisedEdition" style="width:80px">
                        <option value="true">修版</option>
                        <option value="false" selected ="selected">不修版</option>
                    </select>
                </td>
                <td class="ali03 w70px ">
                    色样:
                </td>
                <td>
                    <select keepDefaultStyle="true"  id="PMS_IsColorSamples" name="PMS_IsColorSamples"  runat="server" style="width:80px">
                        <option selected="selected" value="">请选择</option>
                        <option value="无">无</option>
                        <option value="原样">原样</option>
                        <option value="数码样">数码样</option>
                        <option value="印刷样">印刷样</option>
                        <option value="照片比照">照片比照</option>
                        <option value="其他">其他</option>
                    </select>
                </td>
                <td class="ali03 w70px ">
                    色数:
                </td>
                <td>
                    <select keepDefaultStyle="true"  id="PMS_ChromaticNumber" name="PMS_ChromaticNumber" runat = "server" >
                        <option value="1">单色</option>
                        <option value="2">双色</option>
                        <option value="3">三色</option>
                        <option selected="selected" value="4">四色</option>
                        <option value="4+专">四+专</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="ali03 w70px " style="display:none;">
                   <%-- 版材类型:--%>
                </td>
                <td style="display:none;">
                     <select keepDefaultStyle="true"   name="selPlateType" onchange='PlateChange(this)' runat = "server" id="selPlateType" style=" width:80px;display:none;">
                        <option selected="selected" value="1">本厂CTP</option>
                        <option value="0">自带CTP</option>
                        <option value="2">自带菲林</option>
                        <option value="3">本厂菲林</option>
                    </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;display:none;"><input type="button" class="Btn FromWarehouseByBanCai" value="连接仓库" id="BtnStorePlate"  /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId2" />         
                </td>
                <td class="ali03 w70px ">
                   规格:
                </td>
                <td>
                     
                 <%--   <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec"  runat = "server"/>--%>
                    <%-- <select keepDefaultStyle="true"  name="CTPSpecName" id="PlateSpec"  runat="server" style="width:80px" >
 
                     </select> --%>
               
                    <div class="xialap">
                             <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec"  runat = "server"/>
                            <div class="xialapb" >
                                <%=xialapr %>
                              <%--  <div class="xialapr">500</div>
                                <div class="xialapr">1000</div>
                                <div class="xialapr">2000</div>  
                                <div class="xialapr">3000</div> 
                                <div class="xialapr">5000</div> 
                                <div class="xialapr">10000</div>--%>
                            </div>
                        </div>
                    
                    
                    <select keepDefaultStyle="true"  name="selCTPSpec"  runat="server" style="display:none;width:80px" id="selCTPSpec" runat = "server"></select> 
                    <select keepDefaultStyle="true"  name="selFilmSpec"  runat="server" style="display:none;width:80px" id="selFilmSpec" runat = "server"></select> 
                </td>
                <td class="ali03 w70px " id="lbCTPCount" runat = "server">
                    CTP数量:
                </td>
                <td  id="tdCTPCount" runat = "server">
                    <input type="text" class="noJ  PS_o" name="CTPCount" style="width:80px" id="CTPCount" runat = "server" />
                </td>
                <td class="ali03 w70px " id="lbPSSpec" style="display:none" runat="server">
                    PS版规格:
                </td>
                <td id="tdPSSpec" style="display:none" runat="server">
                    <input type="text" class="noJ  PS_o" name="PMS_PSBan" style="width:80px;" runat = "server" id="PMS_PSBan" /><label class="Btnb CangKubtn_o" style="margin-left: 2px;"><input type="button" class="Btn FromWarehouseByBanCai1" value="连接仓库" id="BtnPs"  /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId3" /> 
 
                  <%--  <label class="Btnb CangKubtn_o" style="margin-left: 2px;"><input type="button" class="Btn FromWarehouseByBanCai" value="连接仓库" id="BtnPs"  /></label><input type="hidden" name="PSF_PaperId" /> --%>
 
                </td>
                <td class="ali03 w70px " id="lbPSCount" style="display:none" runat="server">
                    PS版数量:
                </td>
                <td id="tdPsCount" style="display:none" runat="server">
                    <input type="text" class="noJ  PS_o" name="PSCount" style="width:80px" id="PSCount" runat = "server" />
                </td>
                <td id="tdBlank" colspan = "6">
                </td>
                
            </tr>
            <tr>
                <td class="ali03 w70px ">
                    完工时间:
                </td>
                <td>
                    <input type="text" class="date" name="PMS_CompletionTime" style=" width:140px;" runat = "server"  id ="PMS_CompletionTime"/>
                </td>
                <td class="ali03 w70px ">
                   <%-- 金额:--%>
                </td>
                <td>
                    <input type="text" class="float req " min="0" name="PMS_TotalPrice" style="width:80px;display:none;" runat = "server" id="PMS_TotalPrice" value="0" />
                </td>
                <td colspan="6">
                </td>
            </tr>
            <tr>
                <td class="ali03 w70px " >
                备注:
                 </td>
                <td colspan="9">
                    <textarea style="width: 940px; height: 62px;" name="PMS_Remarks" runat = "server" id="PMS_Remarks"></textarea>
                </td>
            </tr>
            <tr>
                <td style="text-align: center;" colspan="10">
                    <asp:Button ID="btn_submit" runat="server" Text="提交" OnClick="btn_Submit_form" OnClientClick="CorrectText();" />
 
                    &nbsp; &nbsp; &nbsp; &nbsp; <input type="button" class="Btn" value="纸张采购"  onclick="zhizhangcaigou();" />
                </td>
            </tr>
        </tbody>
    </table>
    <div style=" display:none;">
    <div id='ReceiptT_Html' style=" display:none;"></div>
    </div>
    </form>
    <script type="text/javascript">
        ReceiptT('member', '<%=targetid %>',6,100);
    </script>
    <script type="text/javascript">
        function CorrectText() {
            $("input[name='PO_Requirement']").each(function (ii, vv) {
                $(vv).val($(vv).val().replace(/[,]/g, ",+-+,"));
            });
        }
        function GetGoodsData(value_pparid, goodsName, SpecificationName, InventoryCounttext, Keyid, papernum1) {
            if (value_pparid == "1") {
                $("input[name='PMS_PaperName']").val(goodsName);
                $("input[name='PMS_PaperSpecification']").val(SpecificationName);
                $("input[name='PMS_PaperCount']").val(InventoryCounttext);
                $("input[name='PSF_PaperId1']").val(Keyid);
                $("input[name='PMS_PaperCount1']").val(papernum1);
            }
            else if (value_pparid == "2") {
                $("input[name='PlateSpec']").val(SpecificationName);
                $("input[name='CTPCount']").val(InventoryCounttext);
                $("input[name='PSF_PaperId2']").val(Keyid);
            }
            else if (value_pparid == "3") {
                $("input[name='PMS_PSBan']").val(SpecificationName);
                $("input[name='PSCount']").val(InventoryCounttext);
                $("input[name='PSF_PaperId3']").val(Keyid);
            }
        }
 
        $(function () {
            $(".FromWarehouse").click(function () {
                var value_pparid = "1";
                top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=纸张&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "选择货品参数" });
            });
            $(".FromWarehouseByBanCai").click(function () {
                var value_pparid = "2";
                top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=版材&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "选择货品参数" });
            });
            $(".FromWarehouseByBanCai1").click(function () {
                var value_pparid = "3";
                top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=版材&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "选择货品参数" });
            });
        });
 
 
        //纸张采购
        function zhizhangcaigou() {
 
            top.Dialog.open({ URL: "/Pages/procurement/ProcurementADD.aspx", Title: "纸张采购", Width: 1100, Height: 700 });
 
        }
    </script>
</body>
</html>