VM暫存
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

invoice_rows.php 2.1KB

8 년 전
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!-- ----- 電子發票下載(限當日)作業 ----- -->
  2. <div data-items="invoice_rows" class="row" style="display:none;">
  3. <div class="col-lg-12">
  4. <div class="panel panel-default">
  5. <div class="panel-heading">電子發票下載作業</div><!-- 資料顯示區灰色小表頭 -->
  6. <div class="panel-body">
  7. <div data-rows class="row">
  8. <div class="col-lg-6">
  9. <div>
  10. <label>統編&nbsp;&nbsp;</label>
  11. <label class="radio-inline"><input type="radio" name="invoice_rows_company_no" value="<?=$company_no?>" checked />本場站</label>
  12. <label class="radio-inline"><input type="radio" name="invoice_rows_company_no" value="<?=$hq_company_no?>" />總公司</label>
  13. </div>
  14. <div class="form-group">
  15. <button type="button" class="btn btn-large btn-success pull-left" onclick="invoice_rows();">下載</button>
  16. </div>
  17. </div><!-- end of col-lg-6 (nested) -->
  18. </div><!-- end of row (nested) -->
  19. </div><!-- end of panel-body -->
  20. </div><!-- end of panel -->
  21. </div><!-- end of col-lg-12 -->
  22. </div><!-- data-items -->
  23. <!-- ----- 電子發票下載作業(結束) ----- -->
  24. <script>
  25. // 電子發票下載
  26. function invoice_rows()
  27. {
  28. if (!confirm("確定電子發票下載 ?")) return false;
  29. $.ajax
  30. ({
  31. url:"http://localhost:60134/",
  32. async:false,
  33. timeout:1500,
  34. type:"post",
  35. dataType:"json",
  36. data:
  37. {
  38. "cmd":"getInvoice_Rows",
  39. "company_no":$("input:radio:checked[name='invoice_rows_company_no']").val()
  40. },
  41. error:function(xhr, ajaxOptions, thrownError)
  42. {
  43. console.log("error:"+xhr.responseText+"|"+ajaxOptions+"|"+thrownError);
  44. },
  45. success:function(jdata)
  46. {
  47. if (jdata["Result"] == "000")
  48. {
  49. alert("下載完成 !");
  50. }
  51. else
  52. {
  53. alert("下載失敗:["+jdata["Result"]+"]"+jdata["W_TODAY"]+jdata["Message"]);
  54. }
  55. }
  56. });
  57. }
  58. </script>