SYSRightPgmSearchFormWorker.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <%--
  2. - FileName : SYSRightPgmSearchFormWorker.jsp
  3. - Author : gyeongmo an
  4. - Date : 2014.06.18
  5. - Copyright : Copyright (c) www.udapsoft.co.kr, Inc.
  6. - All rights reserved.
  7. --%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  10. <%@ page import="kr.co.hsnc.common.sql.*" %>
  11. <%@ page import="kr.co.hsnc.common.sql.util.*" %>
  12. <%@ page import="kr.co.hsnc.common.util.*"%>
  13. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  14. <%@ include file="/jsp/work/taglib.jsp" %>
  15. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  16. <%
  17. ctx.init(request, response);
  18. ValueObject user = null;
  19. String message = null;
  20. HandlerStorage storage = ctx.getHandlerStorage();
  21. String fevent = storage.getEvent();
  22. ValueObject params = storage.getParams();
  23. %>
  24. <SCRIPT language="JavaScript">
  25. /*예약함수*/
  26. var sheet1;
  27. var sheet1Row;
  28. var sheet1PageNo = 1;
  29. var pageLastRowIndex = 1;
  30. var validationResult = false;
  31. var filterShow = false;
  32. function _onReady(){
  33. gridInit(sheet1);
  34. getSheetContent();
  35. }
  36. function getSheetContent() {
  37. jQuery("#fevent").val("GET_SYS_RIGHT_PGM_SEARCH_FORM_WORKER");
  38. var url = Modular.model.PageContext.CONTEXT_ROOT + "/sycs/security/SYSRightPgmSearchFormWorker_sheet.screen";
  39. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 10, "");
  40. }
  41. function gridInit(sheetName){
  42. var init_sheet = {};
  43. init_sheet.Cfg = {SearchMode:2, Page:10};
  44. init_sheet.Cols = [
  45. {Header:'선택', Type:"CheckBox", SaveName:"check", Width:20, Align:"Center"},
  46. {Header:'pgm_id', Type:"Text", SaveName:"pgm_id", Width:20, Align:"Center", Hidden:"True"},
  47. {Header:'번호', Type:"Seq", SaveName:"", Width:15, Align:"Center", Edit:"false"},
  48. {Header:'시스템', Type:"Text", SaveName:"name", Width:50, Align:"Center", Edit:"false"},
  49. {Header:'프로그램', Type:"Text", SaveName:"pgm_name", Width:80, Align:"Center", Edit:"false"},
  50. {Header:'Screen', Type:"Text", SaveName:"screen_name", Width:80, Align:"Center", Edit:"false"},
  51. {Header:'비고', Type:"Text", SaveName:"dscr", Width:50, Align:"Center", Edit:"false"}
  52. ];
  53. init_sheet.HeaderMode = {Sort:1};
  54. IBS_InitSheet(sheetName, init_sheet);
  55. sheetName.SetDataAutoTrim(0);
  56. setGridSize();
  57. }
  58. function setGridSize() {
  59. sheet1.FitColWidth();
  60. }
  61. </script>
  62. <modular:search id="form1">
  63. <modular:key id="fevent" />
  64. </modular:search>
  65. <form id="form1" name="form1" method="post" modular:type="search" style="width:100%;height:100%;">
  66. <INPUT type="hidden" name="fevent" id="fevent" value="">
  67. <INPUT type="hidden" name="search_gb" id="search_gb" value=<%=params.get("search_gb") %>>
  68. <INPUT type="hidden" name="right_id" id="right_id" value=<%=params.get("right_id") %>>
  69. <%-- <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="search_table_data">
  70. <TR>
  71. <TD align="center" valign="top">
  72. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#000000" border="0" ID="memberTable">
  73. <TR align="center" height="25">
  74. <TD class="insert_table_title" width="25"><IMG src="/img/buyer/common/check.gif" border="0"></TD>
  75. <TD class="insert_table_title" width="30">번호</TD>
  76. <TD class="insert_table_title" width="60">시스템</TD>
  77. <TD class="insert_table_title" width="150">프로그램</TD>
  78. <TD class="insert_table_title">Screen</TD>
  79. <TD class="insert_table_title" width="160">비고</TD>
  80. </TR>
  81. <% if( rowSet != null )
  82. {
  83. int rowSize = rowSet.size();
  84. for( int i = 0 ; i < rowSize ; i++ )
  85. { %>
  86. <TR height="25" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
  87. <TD align="center" class="search_table_data"><INPUT type="checkbox" name="pgm_id" value="<%= rowSet.getRow(i).get("PGM_ID") %>" <%= params.get("gubun").equals("L") ? "disabled" : "" %>></TD>
  88. <TD align="center" class="search_table_data"><%= i+1 %></TD>
  89. <TD align="center" class="search_table_data"><%= rowSet.getRow(i).get("NAME") %></TD>
  90. <TD class="search_table_data"><%= rowSet.getRow(i).get("PGM_NAME") %></TD>
  91. <TD class="search_table_data"><%= rowSet.getRow(i).get("SCREEN_NAME") %></TD>
  92. <TD class="search_table_data"><%= rowSet.getRow(i).get("DSCR") %></TD>
  93. </TR>
  94. <% }
  95. }
  96. else
  97. { %>
  98. <!-- defult 일?? 시작 -->
  99. <TR bgcolor="#FFFFFF">
  100. <TD height="66" align="center" colspan="2">
  101. 검색 결과가 없습니다.
  102. </TD>
  103. </TR>
  104. <!-- defult 일?? 끝 -->
  105. <% } %>
  106. </TABLE>
  107. </TD>
  108. </TR>
  109. </TABLE>
  110. --%>
  111. <div id="sheet1_div" style="padding-top:5px; height: auto; min-height: 370px; overflow: auto;">
  112. <script>createIBSheet('sheet1','100%', '370px');</script>
  113. </div>
  114. <!-- </div> -->
  115. </FORM>