RefundAccountRegistForm.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org">
  3. <!--
  4. *******************************************************************************
  5. * @source : OrderListForm.html
  6. * @desc : 주문목록 Page
  7. *============================================================================
  8. * STYLE24
  9. * Copyright(C) 2020 TSIT, All rights reserved.
  10. *============================================================================
  11. * VER DATE AUTHOR DESCRIPTION
  12. * === =========== ========== =============================================
  13. * 1.0 2021.01.04 jsh77b 최초 작성
  14. *******************************************************************************
  15. -->
  16. <div class="modalPopup" data-width="900">
  17. <div class="panelStyle">
  18. <div class="panelTitle">
  19. <h2>환불계좌정보</h2>
  20. <button type="button" class="close" onclick="uifnPopupClose('popupCreateRefundAccount');"><i class="fa fa-times"></i></button>
  21. </div>
  22. <div class="panelContent" style="height:90%; overflow-y:auto; padding:0px 20px !important; ">
  23. <form id="orderRefundAccontForm">
  24. <table class="frmStyle">
  25. <colgroup>
  26. <col style="width:160px;" />
  27. <col />
  28. <col />
  29. <col />
  30. <col />
  31. <col />
  32. <col />
  33. </colgroup>
  34. <tbody>
  35. <tr>
  36. <th>은행</th>
  37. <td>
  38. <select name="bankCd">
  39. <option value="">[선택하세요]</option>
  40. <option th:if="${bankList}" th:each="oneData, status : ${bankList}" th:value="${oneData.cd}" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
  41. </select>
  42. </td>
  43. <th>계좌번호</th>
  44. <td><input type="text" name="accountNo" data-valid-type="numeric"></td>
  45. <th>예금주</th>
  46. <td><input type="text" name="accountNm"></td>
  47. </th:block>
  48. <td>
  49. <button type="button" class="btn btn-success" id="saveAccountBtn" onclick="fnSaveAccount();">저장</button>
  50. </td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. <script th:inline="javascript">
  59. /*<![CDATA[*/
  60. /* 이벤트 바인딩 관련 */
  61. var orderInfoList = [[${orderInfoList}]]; // 주문기본정보
  62. var ordNo = orderInfoList[0].ordNo;
  63. var custNo = orderInfoList[0].custNo;
  64. /* 환불계좌번호 저장 */
  65. var fnSaveAccount = function(){
  66. var bankCd = $("#orderRefundAccontForm select[name=bankCd]").val();
  67. var accountNo = $("#orderRefundAccontForm input[name=accountNo]").val();
  68. var accountNm = $("#orderRefundAccontForm input[name=accountNm]").val();
  69. if (gagajf.isNull(bankCd)) {
  70. mcxDialog.alert('은행을 선택하세요.');
  71. return;
  72. }
  73. if (gagajf.isNull(accountNo)) {
  74. mcxDialog.alert('계좌번호를 입력하세요.');
  75. return;
  76. }
  77. if (gagajf.isNull(accountNm)) {
  78. mcxDialog.alert('예금주를 입력하세요.');
  79. return;
  80. }
  81. if (gagajf.isNull(ordNo) || gagajf.isNull(custNo)) {
  82. mcxDialog.alert('주문정보를 다시 확인하시기 바랍니다..');
  83. return;
  84. }
  85. mcxDialog.confirm("환불계좌를 저장하시겠습니까?", {
  86. cancelBtnText : "취소",
  87. sureBtnText : "확인",
  88. sureBtnClick : function(){
  89. var data = {};
  90. data.ordNo = ordNo;
  91. data.custNo = custNo;
  92. data.bankCd = bankCd;
  93. data.accountNo = accountNo;
  94. data.accountNm = accountNm;
  95. var jsonData = JSON.stringify(data);
  96. gagajf.ajaxJsonSubmit('/order/account/save', jsonData, function(result){
  97. uifnPopupClose('popupCreateRefundAccount');
  98. fnBindOrderRfAccountInfo();
  99. });
  100. }
  101. });
  102. };
  103. $(document).ready(function() {
  104. });
  105. /*]]>*/
  106. </script>
  107. </html>