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
|
<?php $dir = "."; include_once($dir."/_common.php"); include('./header.php');
if($eid==''){ alert('로그인 후에 이용가능합니다.',"index.php"); exit; }
if($idx!='' || $code!=''){ if($idx!=''){ $where = " a.idx = '{$idx}' "; } if($code!=''){ $where = " a.p_code = '{$code}' "; } $sql = "select a.* from zom_order a where 1=1 and {$where} "; $cinfo = sql_fetch($sql,$connect_om); //_pr($cinfo);
$sql = "select * from zom_order_cancel where om_site = '{$cinfo['om_site']}' and ord_no = '{$cinfo['ord_no']}' and ord_seq = '{$cinfo['ord_seq']}' "; $cn_info = sql_fetch($sql,$connect_om); // 취소정보 가져오기 if($cn_info['idx']!=''){ $sql = "select * from zom_base_cont where om_site = '11' and base_key = 'ordCnRsnCd' order by seq, idx"; // 취소사유 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $ordCnRsnCd[$info['base_cont_no']] = $info['base_cont_name']; }
}
$sql = "select * from zom_order_back where om_site = '{$cinfo['om_site']}' and ord_no = '{$cinfo['ord_no']}' and ord_seq = '{$cinfo['ord_seq']}' "; $bk_info = sql_fetch($sql,$connect_om); // 반품정보 가져오기 if($bk_info['idx']!=''){ $sql = "select * from zom_base_cont where om_site = '11' and base_key = 'clmReqRsn' order by seq, idx"; // 클레임사유 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $clmReqRsn[$info['base_cont_no']] = $info['base_cont_name']; }
$sql = "select * from zom_base_cont where om_site = '11' and base_key = 'clmStat' order by seq, idx"; // 클레임상태 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $clmStat[$info['base_cont_no']] = $info['base_cont_name']; }
$sql = "select * from zom_base_cont where om_site = '11' and base_key = 'twMthd' order by seq, idx"; // 반품상품 발송방법 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $twMthd[$info['base_cont_no']] = $info['base_cont_name']; }
$sql = "select * from zom_base_cont where om_site = '11' and base_key = 'clmDlvCstMthd' order by seq, idx"; // 반품비 결제방법 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $clmDlvCstMthd[$info['base_cont_no']] = $info['base_cont_name']; }
$sql = "select * from zom_base_cont where om_site = '11' and base_key = 'refsRsnCd' order by seq, idx"; // 반품거절 사유코드 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $refsRsnCd[$info['base_cont_no']] = $info['base_cont_name']; } }
$sql = "select * from zom_base_cont where om_site = '11' and base_key = 'ordPrdStat' order by seq, idx"; // 주문상태코드 선택옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $ordPrdStat[$info['base_cont_no']] = $info['base_cont_name']; }
if($cinfo['ord_state']=='301' || $cinfo['ord_state']=='401'){ $dlvMthdCd_opt = ""; $sql = "select * from zom_base_cont where om_site = '11' and base_key = 'dlvMthdCd' order by seq, idx"; // 배송방식옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $dlvMthdCd[$info['base_cont_no']] = $info['base_cont_name']; $dlvMthdCd_opt .= "<option value='{$info['base_cont_no']}'>{$info['base_cont_name']}</option>"; } $dlvMthdCd_opt = str_replace("value='{$cinfo['deli_method']}'","value='{$cinfo['deli_method']}' selected",$dlvMthdCd_opt);
$dlvEtprsCd_opt = ""; $sql = "select * from zom_base_cont where om_site = '11' and base_key = 'dlvEtprsCd' order by seq, idx"; // 배송업체옵션들 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $dlvEtprsCd[$info['base_cont_no']] = $info['base_cont_name']; $dlvEtprsCd_opt .= "<option value='{$info['base_cont_no']}'>{$info['base_cont_name']}</option>"; } $dlvEtprsCd_opt = str_replace("value='{$cinfo['deli_comp_cd']}'","value='{$cinfo['deli_comp_cd']}' selected",$dlvEtprsCd_opt); }
if($cinfo['ord_state']=='301'){ $sql = "select * from zom_base_cont where om_site = '11' and base_key = 'ordCnRsnCd2' order by seq, idx"; // 판매불가 사유항목 가져옴 $res = mysql_query($sql,$connect_om); while($info=mysql_fetch_array($res)){ $ordCnRsnCd[$info['base_cont_no']] = $info['base_cont_name']; $ordCnRsnCd_opt .= "<option value='{$info['base_cont_no']}'>{$info['base_cont_name']}</option>"; } } }
//_pr($cinfo);
$qstr = $_SERVER['QUERY_STRING']; ?> <script src="./lib/ckeditor/ckeditor.js"></script> <!--<div id="contents" style="background:#999"><img src="http://placehold.it/960x150" alt="롤링배너"></div>--> <div id="contents" style="height:2px;border-bottom:1px solid #eee;background:#2f6ba9"> <span class="screen_out">header 하단 선</span> </div>
<div id="wrap"> <div id="sub-title"> <h2>주문 관리</h2> <div class="sub-location"> <a href="./index.php" class="home"><span class="screen_out">홈</span></a> <span class="location-gt"></span> <a>주문 관리</a> <span class="location-gt"></span> <a>주문 관리</a> </div> </div>
<form name='order_form' id="order_form" method='post' action="" enctype="multipart/form-data" onsubmit='return false;'> <input type='hidden' name='sel_del' value=''> <input type='hidden' name='all_del' value=''> <input type='hidden' name='idx' value='<?php echo $idx;?>'>
<div class="sub-write-area" style='display:block;width:1200px;'> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>기본 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">기본 정보</caption> <colgroup> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> </colgroup>
<tbody> <tr> <th>사이트</th> <td class='linetxt'><?php echo $site_name[$cinfo['om_site']];?></td> <th >주문번호</th> <td class='linetxt'><?php echo $cinfo['ord_no']; ?></td> <th >주문순번</th> <td class='linetxt'><?php echo $cinfo['ord_seq']; ?></td> </tr> <tr> <th>주문상태</th> <td class='linetxt'><?php echo $ordPrdStat[$cinfo['ord_state']]." : ".$cinfo['ord_state']; ?></td> <th>주문자 아이디</th> <td class='linetxt' colspan=3><?php echo $cinfo['mem_id']; ?></td> </tr> <tr> <th>상품명(코드)</th> <td class='linetxt'><?php echo $cinfo['p_name']."({$cinfo['p_code']})"; ?></td> <th>옵션명</th> <td class='linetxt' colspan=3><?php echo $cinfo['p_opt']; ?></td> </tr> <tr> <th>상품가격</th> <td class='linetxt'><?php echo number_format($cinfo['p_price']); ?></td> <th>상품할인가</th> <td class='linetxt'><?php echo number_format($cinfo['p_price_dc']); ?></td> <th>수량</th> <td class='linetxt'><?php echo number_format($cinfo['p_qty']); ?></td> </tr> <tr> <th>재고번호</th> <td class='linetxt'><?php echo $cinfo['stock_no']; ?></td> <th>주문총액</th> <td class='linetxt'><?php echo number_format($cinfo['ord_amt']); ?></td> <th>결제할금액</th> <td class='linetxt'><?php echo number_format($cinfo['ordpay_amt']); ?></td> </tr> <tr> <th>주문자명</th> <td class='linetxt'><?php echo $cinfo['o_name']; ?></td> <th>주문자HP</th> <td class='linetxt'><?php echo $cinfo['o_hp']; ?></td> <th>주문자Tel</th> <td class='linetxt'><?php echo $cinfo['o_tel']; ?></td> </tr> <tr> <th>배송지 성명</th> <td class='linetxt'><?php echo $cinfo['r_name']; ?></td> <th>배송지HP</th> <td class='linetxt'><?php echo $cinfo['r_hp']; ?></td> <th>배송지Tel</th> <td class='linetxt'><?php echo $cinfo['r_tel']; ?></td> </tr> <tr> <th>배송지 우편번호</th> <td class='linetxt'><?php echo $cinfo['r_zip']; ?></td> <th>배송지 주소</th> <td class='linetxt' colspan=3><?php echo $cinfo['r_addr']; ?></td> </tr> <tr> <th>배송구분 번호</th> <td class='linetxt'><?php echo $cinfo['deli_no']; ?></td> <th>배송비</th> <td class='linetxt'><?php echo $cinfo['deli_price']; ?></td> <th>운송장 번호</th> <td class='linetxt'><?php echo $cinfo['invoice_no']; ?></td> </tr> <tr> <th>발송처리일</th> <td class='linetxt' ><?php echo $cinfo['deli_date']; ?></td> <th>배송 메모</th> <td class='linetxt' colspan=3><?php echo $cinfo['deli_memo']; ?></td> </tr> <tr> <th>묶음배송 여부</th> <td class='linetxt'><?php echo $cinfo['bind_deli_yn']; ?></td> <th>묶음배송 일련번호</th> <td class='linetxt' colspan=3><?php echo $cinfo['bind_deli_seq']; ?></td> </tr> <tr> <th>추가구성품 원상품번호</th> <td class='linetxt'><?php echo $cinfo['add_p_code']; ?></td> <th>추가구성품 상품 유무</th> <td class='linetxt' colspan=3><?php echo $cinfo['add_p_yn']; ?></td> </tr> <tr> <th>결제완료일시</th> <td class='linetxt'><?php echo $cinfo['pay_date']; ?></td> <th>배송준비일시</th> <td class='linetxt'><?php echo $cinfo['ready_date']; ?></td> <th>주문일시</th> <td class='linetxt'><?php echo $cinfo['ord_date']; ?></td> </tr> </table> </div>
<?php if($cn_info['idx']!=''){ ?> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>취소 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">취소 정보</caption> <colgroup> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> </colgroup>
<tbody> <tr> <th>취소수량</th> <td class='linetxt'><?php echo $cn_info['cn_qty'];?></td> <th >취소사유내용</th> <td class='linetxt' colspan=3> <?php echo $ordCnRsnCd[$cn_info['cn_reason_code']]; ?> </td> </tr> <tr> <th>취소이유(고객메모)</th> <td class='linetxt' colspan=5><?php echo $cn_info['cn_reason']; ?></td> </tr> <tr> <th>취소주체</th> <td class='linetxt'><?php echo $ordCnMnbdCd[$cn_info['cn_mem']]; ?></td> <th>취소상태</th> <td class='linetxt'><?php echo $dlvCstRespnClf[$cn_info['cn_state']]; ?></td> <th>취소옵션명</th> <td class='linetxt'><?php echo $cn_info['cn_opt_name']; ?></td> </tr> <tr> <th>추가배송비</th> <td class='linetxt'><?php echo $cn_info['add_deli_price']; ?></td> <th>배송비 부담여부</th> <td class='linetxt' colspan=3><?php echo $ordCnStatCd[$cn_info['deli_mem']]; ?></td> </tr> <tr> <th>취소요청일</th> <td class='linetxt'><?php echo $cn_info['cn_reg_date']; ?></td> <th>취소완료일</th> <td class='linetxt' colspan=3><?php echo $cn_info['cn_cop_date']; ?></td> </tr> </table> </div> <?php }
if($cinfo['ord_state']=='301' || $cinfo['ord_state']=='401'){ ?> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>배송 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">배송 정보</caption> <colgroup> <col style="width:150px;"><col style="width:350px;"> <col style="width:150px;"><col style="width:350px;"> </colgroup>
<tbody> <tr> <th>배송방식</th> <td class='linetxt'> <select name='dlvMthdCd' style='width:200px;'> <?php echo $dlvMthdCd_opt;?> </select> </td> <th >배송업체</th> <td class='linetxt'> <select name='dlvEtprsCd' style='width:200px;'> <?php echo $dlvEtprsCd_opt;?> </select> </td> </tr> <tr> <th>송장번호</th> <td class='linetxt'> <input type='text' name='invcNo' value='<?php echo $cinfo['invoice_no'];?>'> </td> <th>보낸일자</th> <td class='linetxt'> <input type='text' name='sendDt' value='<?php echo $cinfo['deli_date'];?>' style='width:120px;font-size:0.9em;' maxlength=12> <?php if($cinfo['ord_state']=='301'){?>ex) 년(4)월(2)일(2)시(2)분(2) : 201401061133 <?php }?> </td> </tr> </table> </div> <?php } ?>
<div id="sub-contents-area" style='padding-left:400px;padding-top:20px;width:100%;'> <div class="sub-btn-area"> <div class="sub-btn"> <?php if($cinfo['ord_state']=='202'){?> <a class="lignt-blue-btn btn_deli_rdy_save" style='width:120px;'>배송준비중처리</a> <?php } ?> <?php if($cinfo['ord_state']=='301'){?> <a class="lignt-blue-btn btn_deli_ing_save" style='width:120px;'>배송중처리</a> <?php } ?> <!--<a class="gray-btn btn_detail_save">상세내용수정</a> <a class="gray-btn btn_prod_get">상품가져오기</a>--> <a class="gray-btn btn_cancel_save aass_class">목록</a> </div> </div> </div> <?php if($cinfo['ord_state']=='301'){ ?> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>판매불가 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">판매불가 정보</caption> <colgroup> <col style="width:150px;"><col style="width:850px;"> </colgroup>
<tbody> <tr> <th>판매불가 항목</th> <td class='linetxt'> <select name='ordCnRsnCd' style='width:200px;'> <?php echo $ordCnRsnCd_opt;?> </select> <span class='help_info'>고객변심이외 선택시 신용점수-1점 차감, 고객과 협의 없이 고객변심 처리시 -5점 차감.</span> </td> </tr> <tr> <th >사유</th> <td class='linetxt'> <input type='text' name='ordCnDtlsRsn' value='' style='width:600px;'> </td> </tr> </table> </div> <?php } if($bk_info['idx']!=''){ ?> <h4 style='font-size:14px; font-weight:bold;margin-top:10px;'>반품 정보</h4> <div class="order-sheet-area" style='width:1200px;'> <table class="order-sheet"> <caption class="screen_out">반품 정보</caption> <colgroup> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> <col style="width:130px;"><col style="width:260px;"> </colgroup>
<tbody> <tr> <th>클레임 코드</th> <td class='linetxt'><?php echo $bk_info['bk_code'];?></td> <th >반품옵션명</th> <td class='linetxt' ><?php echo $bk_info['bk_opt_name']; ?></td> <th>반품수량</th> <td class='linetxt' ><?php echo $bk_info['bk_qty']; ?></td> </tr> <tr> <th>반품상태</th> <td class='linetxt'><?php echo $clmStat[$bk_info['bk_state']]." ({$bk_info['bk_state']})";?></td> <th >반품이유 코드</th> <td class='linetxt' colspan=3><?php echo $clmReqRsn[$bk_info['bk_reason_code']]; ?></td> </tr> <tr> <th>반품 이유</th> <td class='linetxt' colspan=5><?php echo $bk_info['bk_reason']; ?></td> </tr> <tr> <th>수거지명</th> <td class='linetxt'><?php echo $bk_info['rcv_name']; ?></td> <th>수거지전화</th> <td class='linetxt'><?php echo $bk_info['rcv_tel']; ?></td> <th>수거지핸드폰</th> <td class='linetxt'><?php echo $bk_info['rcv_hp']; ?></td> </tr> <tr> <th>우편번호</th> <td class='linetxt'><?php echo $bk_info['rcv_zip']; ?></td> <th>수거지주소</th> <td class='linetxt' colspan=3><?php echo $bk_info['rcv_addr1']." ".$bk_info['rcv_addr2']; ?></td> </tr> <tr> <th>반품발송방법</th> <td class='linetxt'><?php echo $twMthd[$bk_info['bk_method']];?></td> <th >반품배송비</th> <td class='linetxt' ><?php echo $bk_info['bk_price']; ?></td> <th>11번가 지정 택배비</th> <td class='linetxt' ><?php echo $bk_info['bk_11_price']; ?></td> </tr> <tr> <th>추가배송비</th> <td class='linetxt'><?php echo $bk_info['bk_add_deli'];?></td> <th >구매자 차감배송비</th> <td class='linetxt' ><?php echo $bk_info['bk_exp_deli']; ?></td> <th>결제방법</th> <td class='linetxt' ><?php echo $clmDlvCstMthd[$bk_info['bk_price_pay']]; ?></td> </tr> <tr> <th>수거송장번호</th> <td class='linetxt'><?php echo $bk_info['bk_invoice'];?></td> <th >수거택배사</th> <td class='linetxt' colspan=3> <?php echo $bk_info['bk_inv_company']; ?> </td> </tr> <tr> <th>반품등록일</th> <td class='linetxt'><?php echo $bk_info['bk_reg_date'];?></td> <th >반품완료일</th> <td class='linetxt' colspan=3> <?php echo $bk_info['bk_end_date']; ?> </td> </tr> <?php if($bk_info['bk_state']=='105'){?> <tr> <th>거절사유코드</th> <td class='linetxt'> <select name='refsRsnCd' style='width:200px;'> <option value=''>-선택-</option> <?php foreach($refsRsnCd as $key=>$val){ echo "<option value='{$key}'>{$val}</option>"; } ?> </select> </td> <th >거절사유</th> <td class='linetxt' colspan=3> <input type='text' name='refsRsn' value='' style='width:600px;'> </td> </tr> <?php } ?> </table> </div>
<div id="sub-contents-area" style='padding-left:400px;padding-top:20px;width:100%;'> <div class="sub-btn-area"> <div class="sub-btn"> <a class="lignt-blue-btn btn_back_ok_save" style='width:120px;'>반품승인처리</a> <a class="lignt-blue-btn btn_back_reject_save" style='width:120px;'>반품거부처리</a> </div> </div> </div> <?php } ?> <div id="sub-contents-area" style='padding-left:400px;padding-top:20px;width:100%;'> <div class="sub-btn-area"> <div class="sub-btn"> <?php if($cinfo['ord_state']=='301'){?> <a class="lignt-blue-btn btn_deli_rej_save" style='width:120px;'>판매불가처리</a> <?php } ?> </div> </div> </div>
</div>
<?php /*echo "주문 정보 : {$cinfo['ord_no']}"; $jsons = json_decode($cinfo['ord_json']); $jsons = json2array($jsons); _pr($jsons);*/ ?>
</form>
</div><!--//wrap-->
<script> var qstr = '<?php echo $qstr;?>'; $(function(){
$(".btn_cancel_save").click(function(){ // 목록으로 document.location.href='order.php?<?php echo $qstr."&time=".time();?>'; });
$(".btn_deli_rdy_save").click(function(){ if(confirm('정말로 배송준비중(발주확인)처리 하시겠습니까?')){ $form_obj = $("#order_form");
$form_obj.find("input[name='sel_del']").val("deli_rdy_save"); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"ajax.11.order_process.php", data:form_data, async:true, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_prd_cnt = $(xml).find("prd_cnt").text(); var v_use_time = $(xml).find("use_time").text(); if(v_mode_ok!='Y'){ alert(v_msg); } else { alert('처리되었습니다.'+v_use_time+'초'); document.location.reload(); } }, error:function(rtn,status,error){ alert(error); } }); } });
$(".btn_deli_ing_save").click(function(){ $form_obj = $("#order_form");
if($form_obj.find("input[name='invcNo']").val()==''){ alert('송장번호를 입력해주세요.') return; }
$sendDt = $form_obj.find("input[name='sendDt']").val(); if($sendDt=='' || $sendDt.length!=12){ alert('보낸일자를 입력해주세요. 입력형식도 확인하시기 바랍니다.'); return; } if(confirm('정말로 배송중처리 하시겠습니까?')){ $form_obj.find("input[name='sel_del']").val("deli_ing_save"); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"ajax.11.order_process.php", data:form_data, async:true, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_prd_cnt = $(xml).find("prd_cnt").text(); var v_use_time = $(xml).find("use_time").text(); if(v_mode_ok!='Y'){ alert(v_msg); } else { alert('처리되었습니다.'+v_use_time+'초'); document.location.reload(); } }, error:function(rtn,status,error){ alert(error); } }); } });
$(".btn_deli_rej_save").click(function(){ $form_obj = $("#order_form");
if($form_obj.find("input[name='ordCnDtlsRsn']").val()==''){ alert('판매불가 사유를 입력해주세요.') return; }
if(confirm('정말로 판매불가처리 하시겠습니까?')){ $form_obj.find("input[name='sel_del']").val("deli_rej_save"); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"ajax.11.order_process.php", data:form_data, async:true, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_prd_cnt = $(xml).find("prd_cnt").text(); var v_use_time = $(xml).find("use_time").text(); if(v_mode_ok!='Y'){ alert(v_msg); } else { alert('처리되었습니다.'+v_use_time+'초'); document.location.reload(); } }, error:function(rtn,status,error){ alert(error); } }); } });
$(".btn_back_ok_save").click(function(){ $form_obj = $("#order_form");
if(confirm('정말로 반품승인 처리 하시겠습니까?')){ $form_obj.find("input[name='sel_del']").val("back_ok_save"); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"ajax.11.order_process.php", data:form_data, async:true, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_prd_cnt = $(xml).find("prd_cnt").text(); var v_use_time = $(xml).find("use_time").text(); if(v_mode_ok!='Y'){ alert(v_msg); } else { alert('처리되었습니다.'+v_use_time+'초'); document.location.reload(); } }, error:function(rtn,status,error){ alert(error); } }); } });
$(".btn_back_reject_save").click(function(){ $form_obj = $("#order_form");
if($form_obj.find("select[name='refsRsnCd'] option:selected").val()==''){ alert('거절사유코드를 선택하세요.'); return; }
if($form_obj.find("input[name='refsRsn']").val()==''){ alert('거절 사유를 입력해주세요.') return; }
if(confirm('정말로 반품거부 처리 하시겠습니까?')){ $form_obj.find("input[name='sel_del']").val("back_rej_save"); form_data = $form_obj.serialize(); $.ajax({type:"post", url:"ajax.11.order_process.php", data:form_data, async:true, dataType : "xml", success:function(xml){ var v_mode = $(xml).find("mode").text(); var v_mode_ok = $(xml).find("mode_ok").text(); var v_msg = $(xml).find("msg").text(); var v_prd_cnt = $(xml).find("prd_cnt").text(); var v_use_time = $(xml).find("use_time").text(); if(v_mode_ok!='Y'){ alert(v_msg); } else { alert('처리되었습니다.'+v_use_time+'초'); document.location.reload(); } }, error:function(rtn,status,error){ alert(error); } }); } });
}); </script> <?php include('./footer.php'); ?>
|