SMZSL00301_세션타임아웃관리.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>세션타임아웃 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <sessncfg>
  12. <pcname/>
  13. <pcaddr/>
  14. <sessntm/>
  15. <fstrgstrid/>
  16. <fstrgstdt/>
  17. <lastupdtrid/>
  18. <lastupdtdt/>
  19. </sessncfg>
  20. </list>
  21. </main>
  22. <send>
  23. <pcname/>
  24. <data/>
  25. </send>
  26. <init>
  27. </init>
  28. <hidden>
  29. </hidden>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fInitialize();
  35. model.refresh();
  36. ]]>
  37. </script>
  38. <submission id="TRZST00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list"/>
  39. <submission id="TXZST00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  46. function fInitialize() {
  47. model.removeNodeset("/root/main/list/sessncfg");
  48. model.resetInstanceNode("/root/send");
  49. }
  50. ]]>
  51. </script>
  52. </xhtml:head>
  53. <xhtml:body guideline="1,1243;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  54. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  55. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">세션타임아웃 관리</caption>
  56. </group>
  57. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  58. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  59. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  60. <caption>초기화</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. var updtdata = getGridUpdateData(grd_sessncfg);
  64. if (updtdata != "" ) {
  65. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  66. if (ret != 6) { // not OK
  67. return;
  68. }
  69. }
  70. fInitialize();
  71. model.refresh();
  72. ]]>
  73. </script>
  74. </button>
  75. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  76. <caption>저장</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. var updtdata = getGridUpdateData(grd_sessncfg);
  80. if (updtdata == "") {
  81. messageBox("변경된 데이터가","I004");
  82. return;
  83. }
  84. model.setValue("/root/send/data",updtdata);
  85. if ( submit("TXZST00101") ) {
  86. grd_sessncfg.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  87. model.setValue("/root/send/data","");
  88. }
  89. ]]>
  90. </script>
  91. </button>
  92. </group>
  93. <group id="group5" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  94. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  95. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  96. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:125px; height:17px; ">PC 명 :</caption>
  97. <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
  98. <button id="btn_select" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var updtdata = getGridUpdateData(grd_sessncfg);
  103. if ( updtdata != "" ) {
  104. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  105. if (ret != 6) { // not OK
  106. return;
  107. }
  108. }
  109. submit("TRZST00101");
  110. ]]>
  111. </script>
  112. </button>
  113. <input id="ipt_selectcond" ref="/root/send/pcname" class="input_search" style="left:110px; top:8px; width:310px; height:19px; "/>
  114. </group>
  115. <caption id="caption48" class="tit_2" style="left:5px; top:55px; width:162px; height:14px; ">세션 타임아웃 설정 목록</caption>
  116. <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  117. <line id="line23" class="line_2" style="x1:856px; y1:221px; x2:1194px; y2:221px; "/>
  118. <button id="btn_delrow" class="btn2_letter5" style="left:1117px; top:50px; width:75px; height:19px; ">
  119. <caption>선택행삭제</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. deleteSelectedRows(grd_sessncfg,false);
  123. grd_sessncfg.refresh();
  124. ]]>
  125. </script>
  126. </button>
  127. <button id="btn_addrow" class="btn2_letter3" style="left:1062px; top:50px; width:53px; height:19px; ">
  128. <caption>행추가</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. grd_sessncfg.addrow(false);
  132. grd_sessncfg.refresh();
  133. ]]>
  134. </script>
  135. </button>
  136. <datagrid id="grd_sessncfg" nodeset="/root/main/list/sessncfg" datatype="xml" caption="PC 명^주소값(IP or MAC)^설정 값(분)^최초등록자^최초등록일시^최종수정자^최종수정일시" colwidth="320, 240, 170, 100, 120, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:75px; width:1194px; height:660px; ">
  137. <col ref="pcname" type="input"/>
  138. <col ref="pcaddr" type="input" _key="true"/>
  139. <col ref="sessntm" type="input" format="#,###" maxlength="6"/>
  140. <col ref="fstrgstrid"/>
  141. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" showmask="true"/>
  142. <col ref="lastupdtrid"/>
  143. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" showmask="true"/>
  144. </datagrid>
  145. <button id="btn_saveexcel" class="btn2_letter4" style="left:995px; top:50px; width:64px; height:19px; ">
  146. <caption>엑셀저장</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. var fileName = window.fileDialog("save", "", false);
  150. grd_sessncfg.saveExcel(fileName);
  151. ]]>
  152. </script>
  153. </button>
  154. <button id="button1" class="btn2_letter4" style="left:928px; top:50px; width:64px; height:19px; ">
  155. <caption>엑셀입력</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. var fileName = window.fileDialog("open", "", false);
  159. grd_sessncfg.loadExcel(fileName, 1);
  160. // 입력 상태로 변경
  161. var rows = grd_sessncfg.rows;
  162. for(var i=1;i<rows;i++) {
  163. grd_sessncfg.addStatus(i,"insert");
  164. }
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. </xhtml:body>
  170. </xhtml:html>