stampDutyView.jsp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.udapsoft.common.code.*" %>
  3. <%
  4. String stampSave = "N";
  5. if( ContInfo.get("STATUS_CD").equals("18") ){
  6. stampSave = "Y";
  7. }else if ( !ContInfo.get("STATUS_CD").equals("50") && !ContInfo.get("STAMP_DUTY_ISSUE_GB").equals("20") ){
  8. stampSave = "Y";
  9. }
  10. /*이범근 변경 >>상태별 변경 사항 전부 가능 토록 변경*/
  11. if(!ContInfo.get("STATUS_CD").equals("50")){
  12. stampSave = "Y";
  13. }
  14. %>
  15. <script>
  16. function setStampDuty(){
  17. if( jQuery('#stamp_duty_issue_gb').val() == '00' ){
  18. jQuery("#stamp_duty_no").val('');
  19. jQuery("#stamp_duty_tax").val('');
  20. jQuery("#stamp_duty_date").val('');
  21. jQuery("#remark").val('');
  22. jQuery("#stamp_duty_no").prop("disabled", true);
  23. jQuery("#stamp_duty_tax").prop("disabled", true);
  24. jQuery("#remark").prop("disabled", true);
  25. jQuery("#stampCalImg").hide();
  26. }else {
  27. jQuery("#stamp_duty_no").prop("disabled", false);
  28. jQuery("#stamp_duty_tax").prop("disabled", false);
  29. jQuery("#remark").prop("disabled", false);
  30. jQuery("#stampCalImg").show();
  31. }
  32. <%if(user.get("right_name").equals("ADMIN NEW")){%>
  33. jQuery("#search_spot_button_stamp").show();
  34. <%}%>
  35. }
  36. function doAttachStampFile(obj){
  37. if(obj.value==''){
  38. alert("저장을 한 후 파일을 첨부할 수 있습니다.");
  39. }
  40. else if(obj != ''){
  41. viewFileListNew('PUR_STAMP_DUTY', obj.value, document.getElementById("attach_file_view_stamp"), "Y", "cont/purchase/stamp/<%=ContInfo.get("PUR_CONT_MOD_ID")%>", "_stampFile", "", "", "N");
  42. }
  43. }
  44. function stampDesc()
  45. {
  46. var win_id = "_stampPopup";
  47. var link = "/cont/purchase/stampDescPopup.screen";
  48. link += "?pop_win_id="+win_id;
  49. fLayerPop(win_id, link, 400,210, '', '', 'NO');
  50. }
  51. function downStampFile(){
  52. var url="/common/file/FileDownloadServlet?mode=fpDown";
  53. url += "&filePath=/userMenual";
  54. url += "&fileName=" + encodeURI("전자문서에_대한_인지세_납부방법_등에_관한_고시_(전문).hwp");
  55. url += "&fileRealName=stamp_duty.hwp";
  56. //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")
  57. document.getElementById("fileDown").src=url;
  58. }
  59. </script>
  60. <!-- 인지세 -->
  61. <INPUT type="hidden" id="STAMP_DUTY_ID" name="STAMP_DUTY_ID" value="<%=ContInfo.get("STAMP_DUTY_ID") %>">
  62. <div class="application-info magT10">
  63. <div class="application-sub-title">
  64. <span class="title">인지세</span> <font color="red">※ 전자문서 계약자가 인지세무(과소) 납부시 가산세가 300% 부가됨</font> <a href="javascript:downStampFile()"><IMG src='/img/buyer/button/bt_change.gif' align="absmiddle"></a>
  65. </div>
  66. <div class="application-location" style="padding-bottom:5px;">
  67. <%if ( stampSave.equals("Y") ){ %>
  68. <span class="btnSearch center" id="btnSaveStampDuty"><a href="javascript:void(0);">인지세저장</a></span>
  69. <%} %>
  70. </div>
  71. </div>
  72. <%if ( stampSave.equals("Y") ){ %>
  73. <TABLE class="form-table">
  74. <colgroup>
  75. <col width="120px" />
  76. <col width="24%"/>
  77. <col width="120px" />
  78. <col width="24%"/>
  79. <col width="120px" />
  80. <col/>
  81. </colgroup>
  82. <TR height="25">
  83. <TH>발행주체</TH>
  84. <TD>
  85. <SELECT class='input_select' id='stamp_duty_issue_gb' name='stamp_duty_issue_gb' style='width:90px;height=18px;' onchange='setStampDuty();'>
  86. <%
  87. for( int i = 0; i < stampList.size(); i++ ){
  88. if( ContInfo.get("STATUS_CD").equals("18") || ContInfo.get("ELEC_CON_YN").equals("N") ){
  89. %>
  90. <option value="<%=stampList.getRow(i).get("DETAILCD")%>" <%=stampList.getRow(i).get("DETAILCD").equals(ContInfo.get("STAMP_DUTY_ISSUE_GB"))?"selected":"" %>><%=stampList.getRow(i).get("DETAILNM")%></option>
  91. <%
  92. }else {
  93. if( ContInfo.get("STAMP_DUTY_ISSUE_GB").equals("20") && stampList.getRow(i).get("DETAILCD").equals("20") ){
  94. %>
  95. <option value="<%=stampList.getRow(i).get("DETAILCD")%>" <%=stampList.getRow(i).get("DETAILCD").equals(ContInfo.get("STAMP_DUTY_ISSUE_GB"))?"selected":"" %>><%=stampList.getRow(i).get("DETAILNM")%></option>
  96. <%
  97. }else if( !ContInfo.get("STAMP_DUTY_ISSUE_GB").equals("20") && !stampList.getRow(i).get("DETAILCD").equals("20") ){
  98. %>
  99. <option value="<%=stampList.getRow(i).get("DETAILCD")%>" <%=stampList.getRow(i).get("DETAILCD").equals(ContInfo.get("STAMP_DUTY_ISSUE_GB"))?"selected":"" %>><%=stampList.getRow(i).get("DETAILNM")%></option>
  100. <%
  101. }
  102. %>
  103. <%
  104. }
  105. }
  106. %>
  107. </SELECT>
  108. </TD>
  109. <TH>고유식별번호</TH>
  110. <TD><%= InputText.get("stamp_duty_no", ContInfo.get("STAMP_DUTY_NO"), 97, 50, "desc=고유식별번호,persize,hangule") %></TD>
  111. <TH>인지세액 <a href="javascript:stampDesc()"><IMG src='/img/buyer/button/q.gif' align="absmiddle"></a></TH>
  112. <TD><%= InputText.get("stamp_duty_tax", Formatter2.currency(ContInfo.getDouble("STAMP_DUTY_TAX"), 0), 97, 20, "desc=인지세액,persize,Number,right","number") %></TD>
  113. </TR>
  114. <TR height="25">
  115. <TH>발행일자</TH>
  116. <TD>
  117. <%= InputText.get("stamp_duty_date", Formatter2.formatDate(ContInfo.get("STAMP_DUTY_DATE"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  118. <A href="JavaScript:dlgCalendar('stamp_duty_date');" id="stampCalImg"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  119. </TD>
  120. <TH>인지세사본</TH>
  121. <TD>
  122. <div id="attach_file_view_stamp" class="attach_file_view" style="width:80%; text-overflow:ellipsis; white-space: nowrap; overflow: hidden; float: left;">
  123. <%=FileManager.getFileListForDiv("PUR_STAMP_DUTY", ContInfo.get("PUR_CONT_MOD_ID")) %>
  124. </div>
  125. <div style="text-align: right;">
  126. <IMG id='search_spot_button_stamp' onClick="doAttachStampFile(document.form1.PUR_CONT_MOD_ID,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  127. </div>
  128. </TD>
  129. <TH>비고</TH>
  130. <TD><%= InputText.get("remark", ContInfo.get("REMARK"), 97, 500, "desc=비고,persize,hangule") %></TD>
  131. </TR>
  132. </TABLE>
  133. <script>
  134. setStampDuty();
  135. </script>
  136. <%}else { %>
  137. <INPUT type="hidden" id="stamp_duty_issue_gb" name="stamp_duty_issue_gb" value="<%=ContInfo.get("STAMP_DUTY_ISSUE_GB") %>">
  138. <TABLE class="form-table">
  139. <colgroup>
  140. <col width="120px" />
  141. <col width="24%"/>
  142. <col width="120px" />
  143. <col width="24%"/>
  144. <col width="120px" />
  145. <col/>
  146. </colgroup>
  147. <TR height="25">
  148. <TH>발행주체</TH>
  149. <TD><%= ContInfo.get("STAMP_DUTY_ISSUE_NM") %></TD>
  150. <TH>고유식별번호</TH>
  151. <TD><%= ContInfo.get("STAMP_DUTY_NO") %></TD>
  152. <TH>인지세액 <a href="javascript:stampDesc()"><IMG src='/img/buyer/button/q.gif' align="absmiddle"></a></TH>
  153. <TD><%= ContInfo.get("STAMP_DUTY_TAX").equals("")?"":Formatter2.currency(ContInfo.getDouble("STAMP_DUTY_TAX"),0) %></TD>
  154. </TR>
  155. <TR height="25">
  156. <TH>발행일자</TH>
  157. <TD>
  158. <%= Formatter2.formatDate(ContInfo.get("STAMP_DUTY_DATE"), "-") %>
  159. </TD>
  160. <TH>인지세사본</TH>
  161. <TD>
  162. <div id="attach_file_view_stamp" class="attach_file_view">
  163. <!-- 첨부 파일 화면에 바로보일때 사용 -->
  164. <%=FileManager.getFileListForDiv("PUR_STAMP_DUTY", ContInfo.get("PUR_CONT_MOD_ID")) %>
  165. </div>
  166. <%if(user.get("right_name").equals("ADMIN NEW")){%>
  167. <div style="text-align: right;">
  168. <IMG id='search_spot_button_stamp' onClick="doAttachStampFile(document.form1.PUR_CONT_MOD_ID,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  169. </div>
  170. <%}%>
  171. </TD>
  172. <TH>비고</TH>
  173. <TD><%= ContInfo.get("REMARK") %></TD>
  174. </TR>
  175. </TABLE>
  176. <%} %>
  177. <iframe id="fileDown" name="fileDown" style="display:none"></iframe>