priceSys.jsp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <%--
  2. - Author(s) : TC40335
  3. - Date : 2024.10.16
  4. - Description: 포탈(구매)_표준 미연동 계약서
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  8. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  9. <%@ page import="com.udapsoft.waf.common.ui.InitCombo" %>
  10. <%@ page import="kr.co.hsnc.common.util.*"%>
  11. <%@ page import="kr.co.hsnc.common.sql.*" %>
  12. <%@page import="java.net.URLEncoder"%>
  13. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  14. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  15. <%-- <%@ include file="/jsp/work/taglib.jsp" %>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" /> --%>
  17. <%
  18. RowSet pricesysGbRow = CommCodeManager.getCodeRowsetStatic("PRICE_SYS_GB");
  19. InitCombo initCombo3 = new InitCombo();
  20. initCombo3.makeComboData(CommCodeManager.getCodeRowsetStatic("PRICE_SYS_GB", "CHG_CODE01", "Y"), "DETAILNM", "DETAILCD");
  21. String PRICESYS_GB_CD = initCombo3.getCode();
  22. String PRICESYS_GB_NM = initCombo3.getCodeName();
  23. %>
  24. <script language="javascript" src="/js/report.js"></script>
  25. <SCRIPT language="JavaScript">
  26. /*예약함수*/
  27. var sheet4;
  28. var sheet4Row;
  29. var sheet4PageNo = 1;
  30. var pageLastRowIndex = 1;
  31. var validationResult = false;
  32. var filterShow = false;
  33. /*
  34. function _onReady(){
  35. } */
  36. /**
  37. * IBSheet object initialize
  38. */
  39. function gridInit4(sheetName){
  40. var init_sheet = {};
  41. init_sheet.Cfg = {SearchMode:2, Page:10};
  42. init_sheet.Cols = [
  43. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:20, Align:"Center"},
  44. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"true"},
  45. {Header:'계약서ID', Type:"Text", SaveName:"PRICE_SYS_ID", Width:0, Align:"Center", Hidden:"true"},
  46. {Header:'하도급대금 연동 여부', Type:"Combo", SaveName:"PRICE_SYS_YN", Width:30, Align:"Center", Edit:"false", ComboText:"<%=PRICESYS_GB_NM%>", ComboCode:"<%=PRICESYS_GB_CD%>"},
  47. {Header:'미연동 대상 목적물 또는 물품 등의 명칭', Type:"Text", SaveName:"OBJECT_NM", Width:80, Align:"Center", Edit:"false"},
  48. {Header:'[수급사업자] 미연동 사유', Type:"Text", SaveName:"SYS_REASON", Width:150, Align:"Center", Edit:"false", EditLen:"500"},
  49. /* {Header:'업체명', Type:"Text", SaveName:"CORP_NAME", Width:0, Align:"Center", Edit:"false", EditLen:"500"},
  50. {Header:'계약번호', Type:"Text", SaveName:"CONT_NO", Width:0, Align:"Center", Edit:"false", EditLen:"500"},
  51. {Header:'계약차수', Type:"Text", SaveName:"MOD_NO", Width:0, Align:"Center", Edit:"false", EditLen:"500"}, */
  52. {Header:'☞계약서', Type:"Text", SaveName:"FILE_YN", Width:30, Align:"center", Edit:"false", Cursor:'pointer'},
  53. {Header:'FILE_ID', Type:"Text", SaveName:"FILE_ID", Width:0, Align:"center", Hidden:"true"},
  54. ];
  55. init_sheet.HeaderMode = {Sort:1};
  56. IBS_InitSheet(sheetName, init_sheet);
  57. sheetName.SetDataAutoTrim(0);
  58. sheetName.SetImageList(1,"/img/buyer/button/bt_change.gif");
  59. if(jQuery("#STATUS_CD").val() == '50'){
  60. sheet4.SetEditable(0);
  61. }
  62. setGridSize4();
  63. }
  64. function doSearchPricesys() {
  65. jQuery("#fevent").val("FORM_PRICESYS_SELECT");
  66. var url = Modular.model.PageContext.CONTEXT_ROOT + "/cont/purchase/PricesysList_sheet.screen";
  67. Modular.view.IBSheet7.doSearch(sheet4, url, jQuery("#form1"), 30, "");
  68. }
  69. function sheet4_OnSaveEnd(code, msg) {
  70. if(code >= 0) {
  71. alert("정상적으로 처리 되었습니다.");
  72. } else {
  73. //alert(msg);
  74. alert("처리에 실패 하였습니다.");
  75. }
  76. doSearchPricesys();
  77. }
  78. /**
  79. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  80. */
  81. function sheet4_OnSearchEnd(code, message) {
  82. var info = {Type: "Image"};
  83. if(code == 0) {
  84. setGridSize4();
  85. sheet4.SetColFontColor("FILE_YN", "#0000ff");
  86. for(i=1; i <= sheet4.RowCount(); i++){
  87. if(sheet4.GetCellValue(i, "FILE_YN")!=""){
  88. sheet4.InitCellProperty(i, "FILE_YN", info);
  89. }
  90. }
  91. } else {
  92. //조회 에러 수행
  93. alert(message);
  94. }
  95. }
  96. function pricesys_gb_chg() {
  97. if(jQuery("#p_pricesys_gb").val()=="00"||jQuery("#p_pricesys_gb").val()==""){
  98. jQuery("#btnPromiseAdd").hide();
  99. }else{
  100. jQuery("#btnPromiseAdd").show();
  101. }
  102. }
  103. function btnPricesysAdd(){
  104. if(jQuery("#p_pricesys_gb").val()=="01"){
  105. popPricesys();
  106. }else{
  107. alert('연동');
  108. }
  109. }
  110. function sheet4_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  111. if(Row == 0)return;
  112. if (sheet4.ColSaveName(Col) == "FILE_YN" && jQuery("#p_pricesys_gb").val() == '01') {
  113. var reportInfo = new ReportInfo();
  114. reportInfo.title = "표준 미연동 계약서";
  115. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PurPricesysCont.mrd";
  116. reportInfo.set($("#PUR_CONT_MOD_ID").val()); // $1 contModId
  117. reportInfo.width = 1500; // Default: 1024
  118. reportInfo.height = 800; // Default: 768
  119. reportInfo.showPopup();
  120. }
  121. }
  122. /**
  123. * IBSheet size setting
  124. */
  125. function setGridSize4() {sheet4.FitColWidth();}
  126. document.body.onresize = addEvent( document.body.onresize, "setGridSize4()");
  127. </SCRIPT>
  128. <div class="application-info magT10">
  129. <div class="application-sub-title">
  130. <span class="title">표준 미연동 계약서</span>
  131. </div>
  132. </div>
  133. <!-- 검색조건 시작 -->
  134. <table id="search-table" class="search-form-table">
  135. <tr height="25">
  136. <td>연동제 구분:&nbsp;&nbsp;<%= HTMLMaker.getSelectTag(pricesysGbRow, "CODE", "NAME", "p_pricesys_gb", "style='width:100px;' ", "", ContInfo.get("PRICE_SYS_GB")) %></td>
  137. <td class="button" align="right" style="text-align: center;width: 95px">
  138. <span class="btnSearch center" id="btnPricesysAdd" ><a href="javascript:void(0);">추가</a></span>
  139. <span class="btnSearch center" id="btnSavePricesys" ><a href="javascript:void(0);">저장</a></span>
  140. </td>
  141. </tr>
  142. </table>
  143. <div id="sheet4_div" style="padding-top:5px; height: 157px; min-height: 157px; ">
  144. <script>createIBSheet('sheet4','100%', '157px'); gridInit4(sheet4);
  145. </script>
  146. </div>
  147. <iframe id="fileDown" name="fileDown" style="display:none"></iframe>