CommMatlCodeTreeList.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  3. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  4. <%@ page import="kr.co.hsnc.common.util.*"%>
  5. <%@ page import="kr.co.hsnc.common.sql.*" %>
  6. <%@ include file="/jsp/work/taglib.jsp" %>
  7. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  8. <%
  9. ctx.init(request, response);
  10. ValueObject user = ctx.getUser();
  11. String USER_ID = user.get("USER_ID");
  12. %>
  13. <script type="text/javascript">
  14. /*예약함수*/
  15. var sheet1 = new ibsheetObject();
  16. var sheet1Row;
  17. var sheet1PageNo = 1;
  18. var pageLastRowIndex = 1;
  19. var validationResult = false;
  20. var filterShow = false;
  21. $(function(){
  22. $.gridInit = function(sheetName)
  23. {
  24. var init_sheet = {};
  25. init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
  26. init_sheet.Cols = [
  27. {Header:"Status", Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  28. {Header:"No.", Type:"Seq", SaveName:"NO", Width:30, Align:"Center"},
  29. {Header:"대분류", Type:"Text", SaveName:"KIND_BIG", Width:60, Align:"Center"},
  30. {Header:"중분류", Type:"Text", SaveName:"KIND_MID", Width:150, Align:"Left"},
  31. {Header:"소분류", Type:"Text", SaveName:"KIND_SMALL", Width:150, Align:"Left"}
  32. ];
  33. init_sheet.HeaderMode = {Sort:1};
  34. IBS_InitSheet(sheetName, init_sheet);
  35. sheetName.SetDataAutoTrim(0);
  36. sheetName.SetEditable(false);
  37. sheetName.FitColWidth();
  38. }
  39. $("#btn_search").click(function(){
  40. $.searchList();
  41. });
  42. $.searchList = function()
  43. {
  44. $("#fevent").val("GET_CODE_LIST");
  45. var url = Modular.model.PageContext.CONTEXT_ROOT + "/common/CommMatlCodeTreeList_sheet.screen";
  46. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  47. }
  48. $("#btn_close").click(function(){
  49. winClose();
  50. });
  51. $("#btn_save").click(function(){
  52. var params = {FileName:"공통자재코드 트리목록.xls",SheetName:"공통자재코드 트리목록",Merge:1,SheetDesign:1, HiddenColumn:1 };
  53. sheet1.Down2Excel (params);
  54. });
  55. });
  56. $(document).ready(function(){
  57. $.gridInit(sheet1);
  58. $.searchList();
  59. });
  60. </script>
  61. <modular:search id="form1">
  62. <modular:key id="fevent" />
  63. </modular:search>
  64. <form id="form1" name="form1" method="post" modular:type="search">
  65. <input type="hidden" name="fevent" id="fevent" value="">
  66. <table border="0" cellspacing="0" cellpadding="0" width="90%" id="search-table">
  67. <!-- 검색조건 영역 : 시작 -->
  68. <tr>
  69. <td height="1">
  70. <table cellspacing="1" cellpadding="0" class="search-form-table">
  71. <col width="100%">
  72. <tr height="25">
  73. <!-- 검색조건 타이틀 1 -->
  74. <td rowspan="2" class="search_button" align="right">
  75. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_save">엑셀다운</a></span>
  76. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_close">닫기</a></span>
  77. </td>
  78. </tr>
  79. </table>
  80. </td>
  81. </tr>
  82. <!-- 검색조건 영역 : 종료 -->
  83. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  84. <tr>
  85. <td height="1">
  86. </td>
  87. </tr>
  88. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 종료 -->
  89. </table>
  90. <div id="sheet1_div" style="padding-top:5px; width:90%; height: 420px">
  91. <script>createIBSheet("sheet1","100%", "100%");</script>
  92. </div>
  93. </form>