SMZDM00300_테이블조회$.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <tablelist/>
  11. <ownerlist>
  12. <codename/>
  13. <codevalue/>
  14. </ownerlist>
  15. <desc>
  16. <indexinfo/>
  17. <tableinfo>
  18. <tableName/>
  19. <tableSpaceName/>
  20. <cmt/>
  21. <numrows/>
  22. <lastAnalyzed/>
  23. <part/>
  24. </tableinfo>
  25. <desclist/>
  26. </desc>
  27. <table/>
  28. <tableinput/>
  29. <mstCodeList/>
  30. </main>
  31. <send>
  32. <owner/>
  33. <tableName/>
  34. <likeflag/>
  35. <mstCode>
  36. <code/>
  37. <codeName/>
  38. </mstCode>
  39. <tableCmt/>
  40. <columnCmt/>
  41. </send>
  42. <init>
  43. </init>
  44. <hidden/>
  45. <temp/>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. // 화면초기화(ownerlist설정)
  51. submit("TRZDM00301");
  52. ]]>
  53. </script>
  54. <submission id="TRZDM00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/ownerlist" resultref="/root/main/ownerlist"/>
  55. <submission id="TRZDM00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tablelist"/>
  56. <submission id="TRZDM00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/desc"/>
  57. <submission id="TRZDM00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mstCode" resultref="/root/main/mstCodeList"/>
  58. <submission id="TXZDM00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  59. <submission id="TXZDM00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. function getTableList() { // 테이블리스트 조회메소드
  67. // owner가 선택되지 않았을 경우
  68. if (model.getValue("/root/main/ownerlist") == '') {
  69. messageBox("OWNER를", "C001");
  70. // 테이블명이 입력되지 않았을 때, 혹은 테이블이 선택되지 않았을 경우
  71. } else if (model.getValue("/root/main/tableinput") == '') {
  72. messageBox("테이블명을", "C001");
  73. // owner + table이 선택되어 있는 경우
  74. } else {
  75. model.setValue("/root/send/owner", model.getValue("/root/main/ownerlist"));
  76. model.setValue("/root/send/tableName", model.getValue("/root/main/tableinput"));
  77. model.setValue("/root/send/likeflag", true);
  78. submit("TRZDM00302");
  79. }
  80. }
  81. function fValidFormCode() {
  82. var mstCode = model.getValue("/root/send/mstCode/code");
  83. var mstCodeName = model.getValue("/root/send/mstCode/codeName");
  84. // 필수체크
  85. if ((mstCode == null || mstCode == "") && (mstCodeName == null || mstCodeName == "")) {
  86. messageBox("마스터코드 또는 마스터코드명을", "C001");
  87. return false;
  88. }
  89. // 길이체크(마스터코드)
  90. if (mstCode != null && mstCode != "") {
  91. if (mstCode.length < 2) {
  92. messageBox("마스터코드는 2자리 이상", "C001");
  93. return false;
  94. }
  95. }
  96. // 길이체크(마스터코드명)
  97. if (mstCodeName != null && mstCodeName != "") {
  98. if (mstCodeName.length < 2) {
  99. messageBox("마스터코드명 2자리 이상", "C001");
  100. return false;
  101. }
  102. }
  103. return true;
  104. }
  105. function fSubmitCodeInfo() {
  106. if (fValidFormCode()) {
  107. submit("TRZDM00401");
  108. }
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body guideline="1,1211;2,789;">
  114. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:120px; height:13px; vertical-align:middle; ">테이블정보조회</caption>
  115. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:10px; top:20px; width:120px; height:22px; ">
  116. <caption>테이블정보</caption>
  117. <toggle case="case1" ev:event="onclick"/>
  118. </button>
  119. <button id="button3" class="btn_sw" group="tab" style="left:130px; top:20px; width:120px; height:22px; ">
  120. <caption>마스터코드정보</caption>
  121. <toggle case="case2" ev:event="onclick"/>
  122. </button>
  123. <switch id="switch1" class="sw_box" style="left:0px; top:40px; width:1200px; height:730px; ">
  124. <case id="case1">
  125. <!-- 테이블정보 디자인 시작 -->
  126. <shape id="roundrect4" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:10px; width:205px; height:710px; "/>
  127. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:220px; top:205px; width:970px; height:515px; "/>
  128. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:220px; top:10px; width:380px; height:185px; "/>
  129. <caption id="caption3" class="tit_2" style="left:15px; top:20px; width:100px; height:13px; ">OWNER</caption>
  130. <caption id="caption4" class="tit_2" style="left:15px; top:79px; width:100px; height:13px; ">TABLE</caption>
  131. <caption id="caption5" class="tit_2" style="left:230px; top:215px; width:106px; height:13px; ">COLUMN 정보조회</caption>
  132. <datagrid id="datagrid2" nodeset="/root/main/desc/desclist" caption="COLUMN^CONSTRAINT^TYPE^LENG^COMMENTS" colsep="^" colwidth="140, 90, 88, 46, 544" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:230px; top:240px; width:950px; height:470px; ">
  133. <col ref="colName"/>
  134. <col ref="constType"/>
  135. <col ref="dataType"/>
  136. <col ref="dataLength"/>
  137. <col ref="cmt"/>
  138. </datagrid>
  139. <select1 id="combo_owner" ref="/root/main/ownerlist" class="combo_default" appearance="minimal" style="left:15px; top:39px; width:185px; height:19px; ">
  140. <choices>
  141. <itemset nodeset="/root/main/ownerlist">
  142. <label ref="codename"/>
  143. <value ref="codevalue"/>
  144. </itemset>
  145. </choices>
  146. <script type="javascript" ev:event="xforms-select">
  147. <![CDATA[
  148. model.setValue("/root/send/owner", model.getValue("/root/main/ownerlist"));
  149. // 기존의 테이블선택정보를 삭제
  150. input1.value = "";
  151. model.setValue("/root/send/tableName", "");
  152. model.setValue("/root/send/likeflag", false);
  153. submit("TRZDM00302");
  154. ]]>
  155. </script>
  156. </select1>
  157. <input id="input1" ref="/root/main/tableinput" imemode="alpha" validateformat="false" style="left:15px; top:120px; width:185px; height:19px; ">
  158. <script type="javascript" ev:event="onkeypress">
  159. <![CDATA[
  160. // Enter 입력 시
  161. if (event.keyCode == "13") {
  162. // 현재 입력값 노드 반영
  163. setInputNodeCurText();
  164. model.setValue("/root/send/tableName", input1.value);
  165. model.setValue("/root/send/likeflag", true);
  166. // 테이블리스트 조회메소드 호출
  167. getTableList()
  168. }
  169. ]]>
  170. </script>
  171. </input>
  172. <caption id="caption6" class="search_name" style="left:10px; top:98px; width:135px; height:17px; ">테이블명 직접입력</caption>
  173. <caption id="caption7" class="tit_2" style="left:230px; top:20px; width:100px; height:13px; ">TABLE 정보조회</caption>
  174. <input id="input2" ref="/root/main/desc/tableinfo/cmt" editable="false" style="left:345px; top:93px; width:245px; height:19px; "/>
  175. <caption id="caption8" style="left:235px; top:93px; width:81px; height:20px; ">COMMENTS :</caption>
  176. <input id="input4" ref="/root/main/desc/tableinfo/lastAnalyzed" editable="false" format="yyyy-mm-dd" style="left:345px; top:117px; width:245px; height:19px; "/>
  177. <caption id="caption9" style="left:235px; top:165px; width:87px; height:20px; ">PARTITIONED :</caption>
  178. <input id="input5" ref="/root/main/desc/tableinfo/numrows" editable="false" style="left:345px; top:141px; width:245px; height:19px; "/>
  179. <caption id="caption10" style="left:235px; top:140px; width:78px; height:20px; ">NUM_ROWS :</caption>
  180. <caption id="caption11" style="left:235px; top:117px; width:104px; height:20px; ">LAST_ANALIZED :</caption>
  181. <input id="input6" ref="/root/main/desc/tableinfo/part" editable="false" style="left:345px; top:165px; width:245px; height:19px; "/>
  182. <caption id="caption12" style="left:235px; top:69px; width:95px; height:20px; ">TABLE_SPACE :</caption>
  183. <input id="input7" ref="/root/main/desc/tableinfo/tableSpaceName" editable="false" style="left:345px; top:69px; width:245px; height:19px; "/>
  184. <caption id="caption13" class="search_name" style="left:10px; top:180px; width:95px; height:17px; ">테이블 선택</caption>
  185. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:610px; top:10px; width:580px; height:185px; "/>
  186. <input id="input3" ref="/root/main/desc/tableinfo/tableName" editable="false" style="left:345px; top:45px; width:245px; height:19px; "/>
  187. <caption id="caption14" style="left:235px; top:45px; width:95px; height:20px; ">TABLE_NAME :</caption>
  188. <datagrid id="datagrid3" nodeset="/root/main/desc/indexinfo" caption="INDEX^COLUMN" colsep="^" colwidth="218, 321" mergecellsfixedrows="bycolrec" rowsep="|" style="left:620px; top:45px; width:560px; height:140px; ">
  189. <col ref="indexName"/>
  190. <col ref="columnName"/>
  191. </datagrid>
  192. <caption id="caption15" class="tit_2" style="left:620px; top:20px; width:100px; height:13px; ">INDEX 정보조회</caption>
  193. <button id="button1" class="btn1_letter2" style="left:145px; top:144px; width:56px; height:22px; ">
  194. <caption>조회</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. // 테이블리스트 조회메소드 호출
  198. getTableList();
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="button10_r" class="icon_right" navindex="-1" style="left:170px; top:179px; width:26px; height:19px; ">
  203. <caption/>
  204. <script type="javascript" ev:event="onclick">
  205. <![CDATA[
  206. datagrid1.attribute("overflow") = "scroll";
  207. datagrid1.attribute("width") = "480";
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="button10_l" class="icon_left" navindex="-1" style="left:139px; top:179px; width:26px; height:19px; ">
  212. <caption/>
  213. <script type="javascript" ev:event="onclick">
  214. <![CDATA[
  215. datagrid1.attribute("overflow") = "scroll";
  216. datagrid1.attribute("width") = "185";
  217. ]]>
  218. </script>
  219. </button>
  220. <!-- 테이블정보 디자인 종료 -->
  221. <datagrid id="datagrid1" nodeset="/root/main/tablelist" caption="TABLE^COMMENTS" colsep="^" colwidth="165, 333" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:205px; width:185px; height:505px; ">
  222. <col ref="tablename"/>
  223. <col ref="cmt"/>
  224. <script type="javascript" ev:event="ondblclick">
  225. <![CDATA[
  226. // 선택한 행 정보(테이블명) 설정
  227. model.setValue("/root/send/tableName", model.getValue("/root/main/tablelist[" + datagrid1.row + "]/tablename"));
  228. submit("TRZDM00303");
  229. ]]>
  230. </script>
  231. </datagrid>
  232. </case>
  233. <case id="case2" selected="true">
  234. <!-- 마스터코드정보 디자인 시작 -->
  235. <shape id="roundrect5" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:10px; top:10px; width:680px; height:60px; "/>
  236. <caption id="caption16" style="left:25px; top:40px; width:100px; height:20px; vertical-align:middle; ">마스터코드</caption>
  237. <input id="input8" ref="/root/send/mstCode/code" style="left:95px; top:40px; width:200px; height:19px; ">
  238. <script type="javascript" ev:event="onkeypress">
  239. <![CDATA[
  240. // Enter 입력 시
  241. if (event.keyCode == "13") {
  242. // 현재 입력값 노드 반영
  243. setInputNodeCurText();
  244. model.setValue("/root/send/mstCode/code", input8.value);
  245. // 코드리스트 조회메소드 호출
  246. fSubmitCodeInfo();
  247. }
  248. ]]>
  249. </script>
  250. </input>
  251. <button id="button4" class="btn1_letter2" style="left:617px; top:38px; width:56px; height:22px; ">
  252. <caption>조회</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. fSubmitCodeInfo();
  256. ]]>
  257. </script>
  258. </button>
  259. <input id="input9" ref="/root/send/mstCode/codeName" style="left:400px; top:40px; width:200px; height:19px; ">
  260. <script type="javascript" ev:event="onkeypress">
  261. <![CDATA[
  262. // Enter 입력 시
  263. if (event.keyCode == "13") {
  264. // 현재 입력값 노드 반영
  265. setInputNodeCurText();
  266. model.setValue("/root/send/mstCode/codeName", input9.value);
  267. // 코드리스트 조회메소드 호출
  268. fSubmitCodeInfo();
  269. }
  270. ]]>
  271. </script>
  272. </input>
  273. <caption id="caption2" style="left:320px; top:40px; width:100px; height:20px; vertical-align:middle; ">마스터코드명</caption>
  274. <shape id="roundrect6" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:10px; top:80px; width:1175px; height:635px; "/>
  275. <datagrid id="datagrid4" nodeset="/root/main/mstCodeList" caption="코드SID^코드군ID^코드ID^코드명칭^코드상세내용^코드출력순서^코드유효시작일자^코드유효종료일자" colsep="^" colwidth="100, 100, 100, 255, 255, 82, 130, 110" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:110px; width:1155px; height:595px; ">
  276. <col ref="cdsid"/>
  277. <col ref="cdgrupid"/>
  278. <col ref="cdid"/>
  279. <col ref="cdnm"/>
  280. <col ref="detldesc"/>
  281. <col ref="dispseq"/>
  282. <col ref="valifromdd" format="yyyy-mm-dd"/>
  283. <col ref="valitodd" format="yyyy-mm-dd"/>
  284. </datagrid>
  285. <caption id="caption17" class="tit_2" style="left:25px; top:20px; width:160px; height:13px; ">마스터코드 조회조건</caption>
  286. <caption id="caption18" class="tit_2" style="left:25px; top:90px; width:160px; height:13px; ">마스터코드리스트</caption>
  287. <!-- 마스터코드정보 디자인 종료 -->
  288. </case>
  289. </switch>
  290. </xhtml:body>
  291. </xhtml:html>