Copy of stampDuty.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.udapsoft.common.code.*" %>
  3. <%
  4. %>
  5. <script>
  6. function setStampDuty(){
  7. if( jQuery('#stamp_duty_issue_gb').val() == '00' ){
  8. jQuery("#stamp_duty_no").val('');
  9. jQuery("#stamp_duty_tax").val('');
  10. jQuery("#stamp_duty_date").val('');
  11. jQuery("#remark").val('');
  12. jQuery("#stamp_duty_no").prop("disabled", true);
  13. jQuery("#stamp_duty_tax").prop("disabled", true);
  14. jQuery("#remark").prop("disabled", true);
  15. jQuery("#stampCalImg").hide();
  16. jQuery("#search_spot_button_stamp").hide();
  17. }else {
  18. jQuery("#stamp_duty_no").prop("disabled", false);
  19. jQuery("#stamp_duty_tax").prop("disabled", false);
  20. jQuery("#remark").prop("disabled", false);
  21. jQuery("#stampCalImg").show();
  22. jQuery("#search_spot_button_stamp").show();
  23. }
  24. }
  25. function doAttachStampFile(obj){
  26. if(obj.value==''){
  27. alert("저장을 한 후 파일을 첨부할 수 있습니다.");
  28. }
  29. else if(obj != ''){
  30. viewFileListNew('SUB_STAMP_DUTY', obj.value, document.getElementById("attach_file_view_stamp"), "Y", "cont/outside/stamp/<%=ContInfo.get("SUB_CONT_MOD_ID")%>", "_stampFile", "", "", "N");
  31. }
  32. }
  33. function stampDesc()
  34. {
  35. var win_id = "_stampPopup";
  36. var link = "/cont/purchase/stampDescPopup.screen";
  37. link += "?pop_win_id="+win_id;
  38. fLayerPop(win_id, link, 400,210, '', '', 'NO');
  39. }
  40. function downStampFile(){
  41. var url="/common/file/FileDownloadServlet?mode=fpDown";
  42. url += "&filePath=/userMenual";
  43. url += "&fileName=" + encodeURI("전자문서에_대한_인지세_납부방법_등에_관한_고시_(전문).hwp");
  44. url += "&fileRealName=stamp_duty.hwp";
  45. //window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
  46. document.getElementById("fileDown").src=url;
  47. }
  48. </script>
  49. <!-- 인지세 -->
  50. <INPUT type="hidden" id="STAMP_DUTY_ID" name="STAMP_DUTY_ID" value="<%=ContInfo.get("STAMP_DUTY_ID") %>">
  51. <div class="application-info magT10">
  52. <div class="application-sub-title">
  53. <span class="title">인지세</span> <font color="red">※ 전자문서 계약자가 인지세무(과소) 납부시 가산세가 300% 부가됨</font> <a href="javascript:downStampFile()"><IMG src='/img/buyer/button/bt_change.gif' align="absmiddle"></a>
  54. </div>
  55. </div>
  56. <TABLE class="form-table">
  57. <colgroup>
  58. <col width="120px" />
  59. <col width="24%"/>
  60. <col width="120px" />
  61. <col width="24%"/>
  62. <col width="120px" />
  63. <col/>
  64. </colgroup>
  65. <TR height="25">
  66. <TH>발행주체</TH>
  67. <TD><%= CommCodeManager.getSelectCodeList("STAMP_DUTY_ISSUE_GB", "stamp_duty_issue_gb", "width:90px;height=18px;", "", ContInfo.get("STAMP_DUTY_ISSUE_GB"), " onchange='setStampDuty();'") %></TD>
  68. <TH>고유식별번호</TH>
  69. <TD><%= InputText.get("stamp_duty_no", ContInfo.get("STAMP_DUTY_NO"), 97, 50, "desc=고유식별번호,persize,hangule") %></TD>
  70. <TH>인지세액 <a href="javascript:stampDesc()"><IMG src='/img/buyer/button/q.gif' align="absmiddle"></a></TH>
  71. <TD><%= InputText.get("stamp_duty_tax", Formatter2.currency(ContInfo.getDouble("STAMP_DUTY_TAX"), 0), 97, 20, "desc=인지세액,persize,Number,right","number") %></TD>
  72. </TR>
  73. <TR height="25">
  74. <TH>발행일자</TH>
  75. <TD>
  76. <%= InputText.get("stamp_duty_date", Formatter2.formatDate(ContInfo.get("STAMP_DUTY_DATE"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  77. <A href="JavaScript:dlgCalendar('stamp_duty_date');" id="stampCalImg"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  78. </TD>
  79. <TH>인지세사본</TH>
  80. <TD>
  81. <div id="attach_file_view_stamp" class="attach_file_view" style="width:80%; text-overflow:ellipsis; white-space: nowrap; overflow: hidden; float: left;">
  82. <!-- 첨부 파일 화면에 바로보일때 사용 -->
  83. <%=FileManager.getFileListForDiv("SUB_STAMP_DUTY", ContInfo.get("SUB_CONT_MOD_ID")) %>
  84. </div>
  85. <div style="text-align: right;">
  86. <IMG id='search_spot_button_stamp' onClick="doAttachStampFile(document.form1.SUB_CONT_MOD_ID,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  87. </div>
  88. </TD>
  89. <TH>비고</TH>
  90. <TD><%= InputText.get("remark", ContInfo.get("REMARK"), 97, 500, "desc=비고,persize,hangule") %></TD>
  91. </TR>
  92. </TABLE>
  93. <iframe id="fileDown" name="fileDown" style="display:none"></iframe>
  94. <script>
  95. setStampDuty();
  96. </script>