ContSearchPopup.jsp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.06.18
  4. - Description: 수정요청 사유 팝업
  5. --%>
  6. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  7. <%@ page contentType="text/html; charset=utf-8" %>
  8. <%@ page import="kr.co.udapsoft.common.*" %>
  9. <%@ page import="com.udapsoft.waf.system.*" %>
  10. <%@ page import="com.udapsoft.waf.common.*" %>
  11. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  12. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  13. <%@ page import="kr.co.hsnc.common.util.*"%>
  14. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  15. <%@ page import="kr.co.hsnc.common.sql.*" %>
  16. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  17. <%@ page import="kr.co.hsnc.common.sql.util.*" %>
  18. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  19. <%@ page import="com.udapsoft.waf.common.util.*" %>
  20. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  21. <%-- <%@ include file="/jsp/work/taglib.jsp" %> --%>
  22. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  23. <%
  24. ctx.init(request, response);
  25. HandlerStorage storage = ctx.getHandlerStorage();
  26. ValueObject params = storage.getParams();
  27. ValueObject user = ctx.getUser();
  28. ValueObject SearchInfo = storage.getValueObject("SearchInfo");
  29. %>
  30. <%@ page contentType="text/html; charset=utf-8" %>
  31. <SCRIPT language="JavaScript">
  32. function doPageInit() {
  33. }
  34. function doClose()
  35. {
  36. returnValue = null;
  37. parent.EditCallReasonClose(returnValue);
  38. }
  39. function _onReady(){
  40. /**
  41. * Application Initialize
  42. */
  43. jQuery("#btnSearch").click(function() {
  44. if(jQuery("#CONT_ID").val() == ""){
  45. alert("관리번호 앞자리를 입력해 주세요.");
  46. jQuery("#CONT_ID").focus();
  47. return;
  48. }
  49. if(jQuery("#MOD_NO").val() == ""){
  50. alert("관리번호 가운데 자리를 입력해 주세요.");
  51. jQuery("#MOD_NO").focus();
  52. return;
  53. }
  54. if(jQuery("#TRUE_RANDOM").val() == ""){
  55. alert("관리번호 뒷자리를 입력해 주세요.");
  56. jQuery("#TRUE_RANDOM").focus();
  57. return;
  58. }
  59. var f = document.form1;
  60. jQuery("#fevent").val("FORM_SELECT");
  61. submitXmlRequest("/portal/cont/ContSearchPopup_form.screen", "FORM_SELECT", f);
  62. });
  63. jQuery("#dataClear").click(function(){
  64. jQuery("#CONT_ID").val("");
  65. jQuery("#MOD_NO").val("");
  66. jQuery("#TRUE_RANDOM").val("");
  67. jQuery("#CONT_NAME").val("");
  68. jQuery("#CONT_DEPT").val("");
  69. jQuery("#MEMBER_NAME").val("");
  70. jQuery("#CONT_DATE").val("");
  71. });
  72. $("#CONT_TRUE_CD").on("change",function(){
  73. if($("#CONT_TRUE_CD").val()=="00"){
  74. $("#yearDiv").html("계약일자");
  75. $("#yearSpan").html("");
  76. $("#dataClear").click();
  77. }else if($("#CONT_TRUE_CD").val()=="10"){
  78. $("#yearDiv").html("신청년도");
  79. $("#yearSpan").html("년");
  80. $("#dataClear").click();
  81. }
  82. });
  83. }
  84. function doResult(resultObj) {
  85. try {
  86. if( resultObj.getRequestEvent() == "FORM_SELECT") {
  87. if( resultObj.getSuccess() ) {
  88. var reData = new Array();
  89. if(resultObj.message.length > 0){
  90. reData = resultObj.message.split('$');
  91. jQuery("#CONT_NAME").val(reData[0]);
  92. jQuery("#CONT_DEPT").val(reData[1]);
  93. jQuery("#MEMBER_NAME").val(reData[3]);
  94. jQuery("#CONT_DATE").val(reData[2]);
  95. }else{
  96. jQuery("#CONT_NAME").val("");
  97. jQuery("#CONT_DEPT").val("");
  98. jQuery("#MEMBER_NAME").val("");
  99. jQuery("#CONT_DATE").val("");
  100. alert("조회된 계약 데이터가 없습니다.");
  101. }
  102. }
  103. else {
  104. dlgErrorMsg(resultObj);
  105. }
  106. }
  107. document.form1.isSubmit = false;
  108. }
  109. catch(errorObject) {
  110. showErrorDlg("doResult()", errorObject);
  111. }
  112. }
  113. document.body.onload = doPageInit;
  114. </SCRIPT>
  115. <STYLE>
  116. BODY {
  117. padding : 0 0 0 0;
  118. }
  119. </STYLE>
  120. <modular:search id="form1">
  121. <modular:key id="fevent" />
  122. </modular:search>
  123. <FORM name="form1" method="post">
  124. <INPUT type="hidden" name="fevent" id="fevent" value="FORM_SELECT">
  125. <table id="search-table" class="search-form-table" style="margin-bottom:10px;">
  126. <colgroup>
  127. <col width="*" />
  128. </colgroup>
  129. <tr>
  130. <td style="text-align:center">
  131. <%=CommCodeManager.getSelectCodeSearchList("CONT_TRUE_CD","CONT_TRUE_CD","height=18;width:100px;","","","") %>
  132. <%= InputText.get("CONT_ID", "", 5, 10, "desc=관리번호,number,center") %>
  133. -
  134. <%= InputText.get("MOD_NO", "", 2, 2, "desc=관리번호,number,center") %>
  135. -
  136. <%= InputText.get("TRUE_RANDOM", "", 6, 10, "desc=관리번호,number,center") %>
  137. (* 계약서 하단 우측의 관리번호 입력)
  138. <span class="btnSearch center" id="btnSearch"><a href="javascript:void(0);">검색</a></span>
  139. <IMG name="dataClear" id="dataClear" src="/img/buyer/button/bt_eraser1.gif" border="0" align="absmiddle" style="cursor:pointer;">
  140. </td>
  141. </tr>
  142. </table>
  143. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  144. <colgroup>
  145. <col width="100" />
  146. <col width="85%" />
  147. </colgroup>
  148. <TR height="25">
  149. <TD class="search_table_title" style="text-align:center">계약명</TD>
  150. <TD class="search_table_data" style="padding-left:5px;text-align:left;"><%= InputText.get("CONT_NAME", "", 90, 200, "desc=계약명,persize,readonly") %></TD>
  151. </TR>
  152. <TR height="25">
  153. <TD class="search_table_title" style="text-align:center">현장</TD>
  154. <TD class="search_table_data" style="padding-left:5px;text-align:left;"><%= InputText.get("CONT_DEPT", "", 90, 200, "desc=원사업자,persize,readonly") %></TD>
  155. </TR>
  156. <TR height="25">
  157. <TD class="search_table_title" style="text-align:center">수급사업자</TD>
  158. <TD class="search_table_data" style="padding-left:5px;text-align:left;"><%= InputText.get("MEMBER_NAME", "", 90, 200, "desc=수급사업자,persize,readonly") %></TD>
  159. </TR>
  160. <TR height="25">
  161. <TD class="search_table_title" style="text-align:center"><div id="yearDiv">계약일자</div></TD>
  162. <TD class="search_table_data" style="padding-left:5px;text-align:left;"><%= InputText.get("CONT_DATE", "", 10, 10, "desc=계약일자,readonly") %><span id="yearSpan"></span></TD>
  163. </TR>
  164. </TABLE>
  165. </FORM>