SuppSearchId.jsp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <%--
  2. - FileName : SuppSearchId.jsp
  3. - Author(s) : 이성민
  4. -
  5. - Description: 계정 찾기
  6. --%>
  7. <%@ page contentType="text/html; charset=utf-8" %>
  8. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  9. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  10. <%@ page import="kr.co.hsnc.common.util.*"%>
  11. <%@ page import="kr.co.hsnc.common.sql.*" %>
  12. <%@ page import="java.text.SimpleDateFormat" %>
  13. <%@ page import="java.util.Date" %>
  14. <%@ page import="kr.co.hsnc.common.config.WAFConfig"%>
  15. <%@ include file="/jsp/work/taglib.jsp" %>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  17. <%
  18. ctx.init(request, response);
  19. HandlerStorage storage = ctx.getHandlerStorage();
  20. ValueObject params = storage.getParams();
  21. ValueObject user = storage.getUser();
  22. String event = storage.getEvent();
  23. ValueObject Order = storage.getValueObject("Order");
  24. SimpleDateFormat sd = new SimpleDateFormat("yyyyMMdd");
  25. String nowTime = sd.format(new Date());
  26. %>
  27. <script type="text/javascript">
  28. function doSetPop(signeddata){
  29. $("#fevent").val("GET_EMAIL");
  30. $("#signeddata").val(signeddata);
  31. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/portal/join/SuppSearchId_sheet.screen";
  32. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  33. }
  34. function SignData()
  35. {
  36. // 환경설정 함수 콜
  37. var ret;
  38. var corp_reg_no = $.trim($("#p_corp_reg_no").val());
  39. var sCurrYmd = $("#hdn_cur_ymd").val();
  40. if($(':radio[name="p_job_div"]:checked').val() == undefined)
  41. {
  42. alert("구분을 선택해 주세요.");
  43. return;
  44. }
  45. else
  46. {
  47. $("#p_job_div_gubun").val($(':radio[name="p_job_div"]:checked').val());
  48. }
  49. if(corp_reg_no == "" || corp_reg_no.length != 10)
  50. {
  51. alert("사업자 번호를 정확히 입력해 주세요");
  52. return $("#corp_reg_no").focus();
  53. }
  54. window.parent.doSignData(corp_reg_no, $(':radio[name="p_job_div"]:checked').val());
  55. }
  56. <!--
  57. //-->
  58. </script>
  59. <script type="text/javascript">
  60. /*예약함수*/
  61. var sheet1;
  62. var sheet1Row;
  63. var sheet1PageNo = 1;
  64. var pageLastRowIndex = 1;
  65. var validationResult = false;
  66. var filterShow = false;
  67. $(function(){
  68. $.gridInit = function(sheetName)
  69. {
  70. var init_sheet = {};
  71. init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
  72. init_sheet.Cols = [
  73. {Header:"Status", Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  74. {Header:"아이디", Type:"Text", SaveName:"USER_ID_GET", Width:100, Align:"Center", Edit:"false"},
  75. {Header:"담당자명", Type:"Text", SaveName:"USER_NAME", Width:100, Align:"Center", Edit:"false"},
  76. {Header:"핸드폰", Type:"Text", SaveName:"HP", Width:100, Align:"Center", Edit:"false"},
  77. {Header:"이메일", Type:"Text", SaveName:"EMAIL", Width:100, Align:"Center", Edit:"false"},
  78. {Header:"선택", Type:"Text", SaveName:"SELECT_MAIL", Width:100, Align:"Center", Edit:"false"},
  79. {Header:"CORP_ID", Type:"Text", SaveName:"CORP_ID", Width:0, Align:"Left", Edit:"false", Hidden:"True"},
  80. {Header:"USER_ID", Type:"Text", SaveName:"USER_ID", Width:0, Align:"Left", Edit:"false", Hidden:"True"}
  81. ];
  82. init_sheet.HeaderMode = {Sort:1};
  83. IBS_InitSheet(sheetName, init_sheet);
  84. sheetName.SetDataAutoTrim(0);
  85. sheetName.SetDataLinkMouse("SELECT_MAIL", 1);
  86. // sheetName.SetEditable(false);
  87. sheetName.FitColWidth();
  88. }
  89. //숫자만
  90. $(document).on("keyup", "input:text[numberOnly]", function() {$(this).val( $(this).val().replace(/[^0-9]/gi,"") );});
  91. $("#btnSearch").click(function(){
  92. SignData();
  93. });
  94. $(document).on("keyup", "input:text", function(e) {
  95. if (e.keyCode == 13)
  96. {
  97. $("#btnSearch").click();
  98. }
  99. });
  100. });
  101. $(document).ready(function(){
  102. $.gridInit(sheet1);
  103. if($("#fevent").val() == "")
  104. {
  105. $("#sheet_area").css("display", "none");
  106. }
  107. // autoResize();
  108. });
  109. function autoResize(){
  110. var t1_height = document.getElementById("search-table").scrollHeight + 24;
  111. var iframeHeight= document.body.scrollHeight - t1_height;
  112. var iframeWidth= document.body.scrollWidth;
  113. sheet1.SetSheetHeight(iframeHeight);
  114. }
  115. function sheet1_OnSearchEnd(code, message)
  116. {
  117. // window.parent.$("#_searchId_iframe").animate({height: "+=150px"}, 500);
  118. // window.parent.$("#_searchId_iframe").height("340");
  119. document.form1.isSubmit = false;
  120. $("#sheet_area").css("display", "");
  121. for(var i=1; i<=sheet1.LastRow(); i++)
  122. {
  123. sheet1.SetCellImage(i ,"SELECT_MAIL", "/img/buyer/btn/btn_mailto.gif");
  124. }
  125. if($("#p_reSizeGubun").val() == "N")
  126. {
  127. $("#p_reSizeGubun").val("Y");
  128. window.parent.$("#_searchId").animate({top : "140px", height: "+=200px"}, 500);
  129. window.parent.$("#_searchId_divcontent").animate({top : "140px", height: "+=200px"}, 500);
  130. }
  131. }
  132. function sheet1_OnClick(Row, Col, Value)
  133. {
  134. var s_name = sheet1.ColSaveName(Col);
  135. var f = document.form1;
  136. if(s_name == "SELECT_MAIL")
  137. {
  138. $("#p_email").val(sheet1.GetCellValue(Row, "EMAIL"));
  139. $("#p_corp_id").val(sheet1.GetCellValue(Row, "CORP_ID"));
  140. $("#p_user_id").val(sheet1.GetCellValue(Row, "USER_ID"));
  141. $("#p_hp").val(sheet1.GetCellValue(Row, "HP"));
  142. $("#fevent").val("SEND_EMAIL");
  143. submitXmlRequest("/supplier/portal/join/SuppSearchId_form.screen", "SEND_EMAIL", f);
  144. }
  145. }
  146. function doResult(resultObj)
  147. {
  148. try
  149. {
  150. if( resultObj.getRequestEvent() == "SEND_EMAIL")
  151. {
  152. document.form1.isSubmit = false;
  153. alert("SMS,메일이 발송되었습니다.");
  154. window.parent.location.reload();
  155. // winClose();
  156. }
  157. }
  158. catch(errorObject) {
  159. showErrorDlg("doResult()", errorObject);
  160. }
  161. }
  162. </script>
  163. <modular:search id="form1">
  164. <modular:key id="fevent" />
  165. </modular:search>
  166. <form id="form1" name="form1" method="post" modular:type="search" action="">
  167. <INPUT type="hidden" name="fevent" id="fevent" value="">
  168. <input type="hidden" name="signeddata" id="signeddata" value="" />
  169. <input type="hidden" name="ESTI_SIGNDATA" id="ESTI_SIGNDATA" value="" />
  170. <INPUT type='hidden' name="sItemInfo" value="">
  171. <input type="hidden" name="p_job_div_gubun" id="p_job_div_gubun" value="" />
  172. <input type="hidden" name="p_email" id="p_email" value="" />
  173. <input type="hidden" name="p_corp_id" id="p_corp_id" value="" />
  174. <input type="hidden" name="p_user_id" id="p_user_id" value="" />
  175. <input type="hidden" name="p_hp" id="p_hp" value="" />
  176. <input type="hidden" name="hdn_cur_ymd" value="<%=nowTime%>">
  177. <input type="hidden" name="p_reSizeGubun" id="p_reSizeGubun" value="N" />
  178. <div style="width: 100%; height: 100%; margin-top: 5px; margin-bottom: 15px;">
  179. <div style="margin-bottom: 5px;"><span style="text-align: center;">※ ID/PW 찾기 절차 ※ </span></div>
  180. <div><span style="text-align: center;"><b>1)사업자등록번호 입력 -> 2)공인인증서 확인 -> 3)담당자 이메일로 ID/PW 발송</b></span></div>
  181. </div>
  182. <table id="search-table" class="search-form-table">
  183. <colgroup>
  184. <col width="15%" />
  185. <col width="25%" />
  186. <col width="15%" />
  187. <col width="35%" />
  188. <col width="10%" />
  189. </colgroup>
  190. <tr>
  191. <th>구분</th>
  192. <td style="text-align: center;">
  193. <div style="float: left; margin-left: 15px;"><input type="radio" name="p_job_div" id="p_job_div_1" value="P"> 구매</div>
  194. <div style="float: right; margin-right: 15px;"><input type="radio" name="p_job_div" id="p_job_div_2" value="O"> 외주</div>
  195. </td>
  196. <th>사업자 번호</th>
  197. <td><input type="text" id="p_corp_reg_no" name="p_corp_reg_no" maxlength="10" numberOnly="true" style="width: 99%;"></td>
  198. <td style="text-align: center;"><span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch">확인</a></span></td>
  199. </tr>
  200. </table>
  201. <div style="width: 600px; height:200px; margin-top: 5px;" id="sheet_area">
  202. <!-- 데이터 영역 : 시작 -->
  203. <!-- ibsheet7 그리드 생성 -->
  204. <script>createIBSheet("sheet1","600px", "200px");</script>
  205. <!-- 데이터 영역 : 종료 -->
  206. </div>
  207. </form>
  208. </div>
  209. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  210. </div>