dlgSearchSpotDept.jsp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.udapsoft.common.*" %>
  3. <%@ page import="com.udapsoft.waf.system.*" %>
  4. <%@ page import="com.udapsoft.waf.common.*" %>
  5. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  6. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  7. <%@ page import="kr.co.hsnc.common.util.*"%>
  8. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  9. <%@ page import="kr.co.hsnc.common.sql.*" %>
  10. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  11. <%@ page import="kr.co.hsnc.common.sql.util.*" %>
  12. <%-- <%@ include file="/jsp/work/taglib.jsp" %> --%>
  13. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  14. <%
  15. ctx.init(request, response);
  16. HandlerStorage storage = ctx.getHandlerStorage();
  17. ValueObject params = storage.getParams();
  18. ValueObject user = ctx.getUser();
  19. %>
  20. <%@ page contentType="text/html; charset=utf-8" %>
  21. <SCRIPT language="JavaScript">
  22. var sheet1;
  23. var sheet1Row;
  24. var sheet1PageNo = 1;
  25. var pageLastRowIndex = 1;
  26. var validationResult = false;
  27. var filterShow = false;
  28. /*
  29. // Sheet
  30. function initIBSheet(sheetObj) {
  31. if( sheetObj.id == "sheet1" ) {
  32. with(sheetObj) {
  33. SheetWidth = 610;
  34. AutoSizeMode =true;
  35. MergeSheet = msNone;
  36. Editable = false;
  37. InitRowInfo( 1, 1, 16, 50);
  38. InitColumnInfo(5, 0, 0, true);
  39. InitHeadMode(true, true, false, true, true, true);
  40. InitHeadRow(0, "Site Code|Site|Division|REP_DEPT_CD|진행", false);
  41. InitDataProperty(0, 0, dtData, 120, daCenter, false, "DEPT_CD");
  42. InitDataProperty(0, 1, dtData, 340, daLeft, false, "DEPT_NM");
  43. InitDataProperty(0, 2, dtCombo, 120, daCenter, false, "AC_UNIT_CD");
  44. InitDataProperty(0, 3, dtHidden, 0, daCenter, false, "REP_DEPT_CD");
  45. InitDataProperty(0, 4, dtHidden, 0, daCenter, false, "PRJ_OK");
  46. InitDataCombo (0, 2, "토건사업본부|플랜트사업본부|발전사업본부|해외법인및계열사","10|20|60|50", "");
  47. //Sheet
  48. Visible = true;
  49. }
  50. }
  51. }
  52. */
  53. function gridInit(sheetName){
  54. var init_sheet = {};
  55. init_sheet.Cfg = {SearchMode:2, Page:30};
  56. init_sheet.Cols = [
  57. {Header:'Site Code', Type:"Text", SaveName:"DEPT_CD", Width:120, Align:"Center"},
  58. {Header:'Site', Type:"Text", SaveName:"DEPT_NM", Width:340, Align:"Left"},
  59. {Header:'Division', Type:"Combo", SaveName:"AC_UNIT_CD", Width:120, Align:"Center", ComboText:"토건사업본부|플랜트사업본부|발전사업본부|해외법인및계열사", ComboCode:"10|20|60|50"},
  60. {Header:'REP_DEPT_CD', Type:"Text", SaveName:"REP_DEPT_CD", Width:0, Align:"Center"},
  61. {Header:'진행', Type:"Text", SaveName:"PRJ_OK", Width:0, Align:"Center" },
  62. ];
  63. init_sheet.HeaderMode = {Sort:1};
  64. IBS_InitSheet(sheetName, init_sheet);
  65. sheetName.SetDataAutoTrim(0);
  66. setGridSize();
  67. sheet1.FocusEditMode = 0;
  68. }
  69. function doSearch() {
  70. jQuery("#event").val("GET_DEPT_LIST");
  71. var url = Modular.model.PageContext.CONTEXT_ROOT + "/lib/dlgSearchSpotDept_sheet.screen";
  72. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form01"), 30, "");
  73. }
  74. function sheet1_OnSearchEnd(code, message) {
  75. if(code == 0) {
  76. setGridSize();
  77. } else {
  78. //조회 에러 수행
  79. alert(message);
  80. }
  81. }
  82. function doPageInit() {
  83. gridInit(sheet1);
  84. doSearch();
  85. }
  86. function setGridSize() {
  87. sheet1.FitColWidth();
  88. }
  89. //document.body.onresize = addEvent( document.body.onresize, "doResizeSheet(document.all.sheet1)");
  90. document.body.onload = doPageInit;
  91. </SCRIPT>
  92. <script language="javascript" for="sheet1" event="OnDblClick(Row, Col)">
  93. //팝업을 연 sheet에 값 설정
  94. var dept_cd, dept_nm
  95. dept_cd = CellValue(Row, 0);
  96. dept_nm = CellValue(Row, 1);
  97. returnValue = new Array(dept_cd, dept_nm);
  98. window.close();
  99. </script>
  100. <SCRIPT language="JavaScript">
  101. function doSubmit()
  102. {
  103. var f = document.form01;
  104. doSearch();
  105. }
  106. function doClose()
  107. {
  108. returnValue = null;
  109. close();
  110. }
  111. function prcKeyPress()
  112. {
  113. if( event.keyCode == 13 )
  114. {
  115. doSubmit();
  116. }
  117. }
  118. var argObj = window.dialogArguments;
  119. var title = argObj.title;
  120. var inDeptCD = argObj.inDeptCD;
  121. </script>
  122. <TABLE border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  123. <TR><TD height="1">
  124. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  125. <FORM name="form01" method="post">
  126. <INPUT type="hidden" name="site_code" >
  127. <INPUT type="hidden" name="site_ac_unit_cd" >
  128. <INPUT type="hidden" name="IN_DEPT_CD" >
  129. <INPUT type="text" value="자동 Submit을 막기 위해서 있는 필드" size="0" style="display:none;">
  130. <TR height="25">
  131. <TD width="100" class="search_table_title">
  132. <img src="/img/buyer/button/bullet_01.gif" align="middle">Site
  133. </TD>
  134. <TD class="search_table_data">
  135. &nbsp;
  136. <INPUT class="input" type="text" name="dept_nm" size="27" value="" onKeyPress="prcKeyPress()" style="font-family:'굴림'; font-size:9pt; IME-MODE : active;">
  137. </TD>
  138. <TD width="80" rowspan="5" class="search_button">
  139. <TABLE border="0" cellpadding="0" cellspacing="0" align="center">
  140. <TR>
  141. <TD> <DIV onclick="JavaScript:doSubmit();" class="button_style">
  142. <TABLE border="0" cellpadding="0" cellspacing="0">
  143. <TR>
  144. <TD class="button_left1"></TD>
  145. <TD class="button_text1">Search</TD>
  146. <TD class="button_right"></TD>
  147. </TR>
  148. </TABLE>
  149. </DIV></TD>
  150. </TR>
  151. <TR>
  152. <TD height="5"></TD>
  153. </TR>
  154. <TR>
  155. <TD> <DIV onclick="JavaScript:doClose();" class="button_style">
  156. <TABLE border="0" cellpadding="0" cellspacing="0">
  157. <TR>
  158. <TD class="button_left1"></TD>
  159. <TD class="button_text1">&nbsp;&nbsp;Close</TD>
  160. <TD class="button_right"></TD>
  161. </TR>
  162. </TABLE>
  163. </DIV></TD>
  164. </TR>
  165. </TABLE>
  166. </TD>
  167. </TR>
  168. <TR height="25">
  169. <TD class="search_table_title">
  170. <img src="/img/buyer/button/bullet_01.gif" align="middle">Division
  171. </TD>
  172. <TD class="search_table_data">&nbsp;
  173. <select class='input_select' style="width:50%" name="ac_unit_cd" id="ac_unit_cd" onChange="doSubmit();">
  174. <option value=''>All</option>
  175. <option value='10'>토건사업본부</option>
  176. <option value='10'>플랜트사업본부</option>
  177. <option value='60'>발전사업본부</option>
  178. <option value='50'>해외법인및계열사</option>
  179. </select>
  180. </TD>
  181. </TR>
  182. <TR height="25">
  183. <TD class="search_table_title">
  184. <img src="/img/buyer/button/bullet_01.gif" align="middle">Status
  185. </TD>
  186. <TD class="search_table_data">&nbsp;
  187. <LABEL for="deadflg_0"><INPUT id="deadflg_0" type="radio" name="deadflg" value="" onClick="doSubmit();" >All</LABEL>
  188. <LABEL for="deadflg_1"><INPUT id="deadflg_1" type="radio" name="deadflg" value="0" onClick="doSubmit();" checked>Ongoing</LABEL>
  189. <LABEL for="deadflg_2"><INPUT id="deadflg_2" type="radio" name="deadflg" value="1" onClick="doSubmit();">Complete</LABEL>
  190. </TD>
  191. </TR>
  192. </FORM>
  193. </TABLE>
  194. </TD></TR>
  195. <TR><TD height="1">
  196. <TABLE border=0 cellspacing="0" cellpadding="0" class="search_data_div_height">
  197. <TR><TD></TD></TR>
  198. </TABLE>
  199. </TD></TR>
  200. <TR><TD id="sheet1_td">
  201. <SCRIPT>
  202. createIBSheet('sheet1','100%', '100%');
  203. </SCRIPT>
  204. </TD></TR>
  205. </TABLE>