123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <%--
- - FileName : dlgSearchAccDept.jsp
- - Author(s) : gyeongmo an
- - Date : 2014.06.22
- - Description: 부서 검색
- --%>
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
- <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
- <%@ page import="com.udapsoft.waf.system.*" %>
- <%@ page import="com.udapsoft.waf.common.*" %>
- <%@ page import="kr.co.udapsoft.common.*" %>
- <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
- <%@ include file="/jsp/work/taglib.jsp" %>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject user = ctx.getUser();
- ValueObject params = storage.getParams();
- String event = storage.getEvent();
- %>
- <SCRIPT language="JavaScript">
- var sheet1;
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
- // 마지막으로 선택된 행의 번호를 기억하고 있음
- var CurMasterRow = 0;
-
- function _onReady(){
- gridInit(sheet1);
- jQuery("#btnSearch").click(function() {
- jQuery("#fevent").val("GET_DEPT_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/lib/dlgSearchAccDept_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
-
- //마지막으로 선택된 행이 없음
- CurMasterRow= 0;
- });
-
- jQuery("#btnClose").click(function() {
- parent.searchAccDeptClose(null);
- });
-
-
- jQuery("#btnSearch").click();
- }
-
- function gridInit(sheetName){
- var init_sheet = {};
- init_sheet.Cfg = {SearchMode:2, Page:30};
- init_sheet.Cols = [
- {Header:'부서코드', Type:"Text", SaveName:"ACC_DEPT_CD", Width:100, Align:"Left", Edit:"false"},
- {Header:'부서명', Type:"Text", SaveName:"DEPT_NM", Width:150, Align:"Left", Edit:"false"},
- ];
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheetName, init_sheet);
- sheetName.SetDataAutoTrim(0);
- setGridSize();
- }
-
- function setGridSize() {
- sheet1.FitColWidth();
- }
-
- /**
- * enter click 시 자동으로 검색이되도록 조
- */
- function check_Enter(){
- if (event.keyCode==13)
- jQuery("#btnSearch").click();
- }
- function sheet1_OnSearchEnd(code, message) {
- if(code == 0) {
- setGridSize();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
- returnValue = new Array(sheet1.GetCellValue(Row, 0),sheet1.GetCellValue(Row, 1));
- parent.searchAccDeptClose(returnValue);
- }
-
- function sheet1_OnSmartResize(Width, Height) {
- sheet1.FitColWidth();
- autoResize();
- }
- function autoResize(){
- var t1_height = document.getElementById("t1").scrollHeight + 10;
- var iframeHeight= document.body.scrollHeight - t1_height;
- var iframeWidth= document.body.scrollWidth;
-
- sheet1.SetSheetHeight(iframeHeight);
- }
- document.onkeydown = closePopupWindow;
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="fevent" />
- </modular:search>
- <!-- <BODY onresize="autoResize()" > -->
- <FORM id="form1" name="form1" method="post" modular:type="search">
- <INPUT type="hidden" name="fevent" id="fevent" value="">
- <div align="left" id="title">
- <ul>
- <li>부서 검색 팝업</li>
- </ul>
- </div>
- <!-- 검색조건 시작 -->
- <table id="search-table" class="search-form-table">
- <colgroup>
- <col width="150" />
- <col width="250" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>부서코드</th>
- <td>
- <input type="text" id="deptCd" name="deptCd" size="10" maxsize="10" style="width:96%;" class="input" onKeyDown="check_Enter();" />
- </td>
- <td class="button" rowspan="2">
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch">검색</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnClose">닫기</a></span>
- </td>
- </tr>
- <tr>
- <th>부서명</th>
- <td>
- <input type="text" id="deptNm" name="deptNm" value="" style="width:96%;" class="input" onKeyDown="check_Enter();"/>
- </td>
- </tr>
- </table>
- <!-- 검색조건 종료 -->
- <div id="sheet1_div" style="padding-top:5px; height: auto; min-height: 300px; overflow: auto;">
- <script>createIBSheet('sheet1','100%', '300px');</script>
- </div>
- </form>
- <!-- </BODY> -->
|