SMZDD00101_DataDictionary.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <tablegrid>
  11. <tablelist>
  12. <schemanm/>
  13. <objkind/>
  14. <tablenm/>
  15. <depth/>
  16. <script/>
  17. <tabknm/>
  18. <definition/>
  19. <tabcomment/>
  20. <tsdata/>
  21. <tsindex/>
  22. <tslong/>
  23. </tablelist>
  24. </tablegrid>
  25. <subgrid>
  26. <collist>
  27. <colname/>
  28. <coltype/>
  29. <colcomment/>
  30. <coldefinition/>
  31. <colnote/>
  32. <remarks/>
  33. </collist>
  34. <idxlist>
  35. <idxname/>
  36. <colname/>
  37. <uniquerule/>
  38. <remark/>
  39. <createtime/>
  40. </idxlist>
  41. <reflist>
  42. <objtype/>
  43. <objschema/>
  44. <objname/>
  45. <objscript/>
  46. </reflist>
  47. </subgrid>
  48. <search>
  49. <supcdgruid/>
  50. <supcdgrupnm/>
  51. <supcdnm/>
  52. <supcdid/>
  53. </search>
  54. </main>
  55. <send>
  56. <reqdata/>
  57. <savedata/>
  58. </send>
  59. <hidden>
  60. <schemanm/>
  61. <tabname/>
  62. </hidden>
  63. </root>
  64. </instance>
  65. <submission id="TRZDD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subgrid"/>
  66. <submission id="TRZDD00100" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/tablegrid"/>
  67. </model>
  68. <script type="javascript" src="../../../com\commonweb\js\common.js"/>
  69. <script type="javascript" src="../../../com\commonweb\js\tfHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="group1" style="left:10px; top:10px; width:1180px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:109px; height:14px; ">DataDictionary</caption>
  75. </group>
  76. <line id="line12" class="line_1" style="x1:10px; y1:50px; x2:1190px; y2:50px; "/>
  77. <caption id="caption5" class="tit_2" style="left:15px; top:35px; width:129px; height:13px; text-align:left; ">
  78. <![CDATA[DB Information]]>
  79. </caption>
  80. <datagrid id="datagrid4" nodeset="/root/main/subgrid/idxlist" caption="인덱스명^인덱스정보^UNIQUE^비고^작성일자" colsep="^" colwidth="148, 302, 55, 138, 120" mergecellsfixedrows="bycolrec" rowsep="|" style="left:425px; top:450px; width:765px; height:90px; font-family:굴림; font-size:8pt; ">
  81. <col ref="idxname"/>
  82. <col ref="colname"/>
  83. <col ref="uniquerule"/>
  84. <col ref="remark"/>
  85. <col ref="createtime" format="yyyy-mm-dd"/>
  86. </datagrid>
  87. <caption id="caption2" class="tit_2" style="left:425px; top:550px; width:111px; height:13px; text-align:left; ">Script</caption>
  88. <textarea id="txtScript" scroll="both" style="left:425px; top:575px; width:765px; height:180px; font-family:굴림; font-size:8pt; "/>
  89. <line id="line3" class="line_1" style="x1:425px; y1:445px; x2:1190px; y2:444px; "/>
  90. <line id="line1" class="line_1" style="x1:425px; y1:570px; x2:1190px; y2:569px; "/>
  91. <caption id="caption8" class="tit_2" style="left:10px; top:550px; width:418px; height:13px; text-align:left; ">Reference Objects [Stored Procedure, Trigger etc]</caption>
  92. <line id="line5" class="line_1" style="x1:10px; y1:570px; x2:415px; y2:569px; "/>
  93. <caption id="caption9" class="tit_2" style="left:425px; top:170px; width:111px; height:13px; text-align:left; ">Columns</caption>
  94. <line id="line6" class="line_1" style="x1:425px; y1:190px; x2:1190px; y2:189px; "/>
  95. <line id="line7" class="line_1" style="x1:425px; y1:445px; x2:1190px; y2:444px; "/>
  96. <caption id="caption10" class="tit_2" style="left:425px; top:425px; width:111px; height:13px; text-align:left; ">Indexes</caption>
  97. <caption id="caption52" class="cell_1" style="left:425px; top:80px; width:130px; height:23px; vertical-align:middle; ">Table Definition - ER</caption>
  98. <caption id="caption11" class="cell_1" style="left:425px; top:105px; width:130px; height:23px; vertical-align:middle; ">Table Comment</caption>
  99. <caption id="caption12" class="cell_1" style="left:425px; top:130px; width:80px; height:23px; vertical-align:middle; ">Table Space</caption>
  100. <caption id="caption13" class="cell_1" style="left:740px; top:130px; width:45px; height:23px; vertical-align:middle; ">Index</caption>
  101. <caption id="caption14" class="cell_1" style="left:970px; top:130px; width:45px; height:23px; vertical-align:middle; ">Long</caption>
  102. <caption id="caption1" class="cell_1" style="left:510px; top:130px; width:45px; height:23px; vertical-align:middle; ">Data</caption>
  103. <datagrid id="datagrid1" nodeset="/root/main/tablegrid/tablelist" caption="DB 정보^구분^DB정보^Depth^Script^한글명^Deifinition^Comment^TS_Data^TS_Index^TS_Long" colsep="^" colwidth="0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 0" rowsep="|" tooltip="true" style="left:10px; top:55px; width:405px; height:485px; font-family:굴림; font-size:8pt; ">
  104. <col ref="schemanm"/>
  105. <col ref="objkind"/>
  106. <col ref="tablenm"/>
  107. <col ref="depth"/>
  108. <col ref="script"/>
  109. <col ref="tabknm"/>
  110. <col ref="definition"/>
  111. <col ref="tabcomment"/>
  112. <col ref="tsdata"/>
  113. <col ref="tsindex"/>
  114. <col ref="tslong"/>
  115. <script type="javascript" ev:event="ondblclick">
  116. <![CDATA[
  117. var schemanm = datagrid1.valueMatrix(datagrid1.row, 0);
  118. var objkind = datagrid1.valueMatrix(datagrid1.row, 1);
  119. var tablenm = datagrid1.valueMatrix(datagrid1.row, 2);
  120. var depth = datagrid1.valueMatrix(datagrid1.row, 3);
  121. var script = datagrid1.valueMatrix(datagrid1.row, 4);
  122. var tabknm = datagrid1.valueMatrix(datagrid1.row, 5);
  123. var definition = datagrid1.valueMatrix(datagrid1.row, 6);
  124. var comment = datagrid1.valueMatrix(datagrid1.row, 7);
  125. var tsdata = datagrid1.valueMatrix(datagrid1.row, 8);
  126. var tsindex = datagrid1.valueMatrix(datagrid1.row, 9);
  127. var tslong = datagrid1.valueMatrix(datagrid1.row, 10);
  128. var mystr = "(";
  129. var mypos = tablenm.indexOf(mystr);
  130. if (mypos !== -1) {
  131. tablenm = tablenm.substr(0, mypos);
  132. }
  133. model.setValue("/root/hidden/schemanm", schemanm);
  134. model.setValue("/root/hidden/tabname", tablenm);
  135. model.copyNode("/root/send/reqdata","/root/hidden");
  136. // 초기화
  137. outtabknm.value = "";
  138. outdefinition.value = "";
  139. outcomment.value = "";
  140. outtsdata.value = "";
  141. outtsindex.value = "";
  142. outtslong.value = "";
  143. for ( i = 1; i <= datagrid2.rows; i++)
  144. {
  145. for ( j = 0; j <= datagrid2.cols; j++)
  146. {
  147. datagrid2.valueMatrix(i,j) = "";
  148. }
  149. }
  150. for ( i = 1; i <= datagrid3.rows; i++)
  151. {
  152. for ( j = 0; j <= datagrid3.cols; j++)
  153. {
  154. datagrid3.valueMatrix(i,j) = "";
  155. }
  156. }
  157. for ( i = 1; i <= datagrid4.rows; i++)
  158. {
  159. for ( j = 0; j <= datagrid4.cols; j++)
  160. {
  161. datagrid4.valueMatrix(i,j) = "";
  162. }
  163. }
  164. txtScript.value = "";
  165. if (depth == 4) {
  166. switch (objkind){
  167. case "FUNCTIONS" :
  168. case "PROCEDURES":
  169. case "VIEWS":
  170. txtScript.value = script;
  171. break;
  172. case "TABLES" :
  173. outtabknm.value = tabknm;
  174. outdefinition.value = definition;
  175. outcomment.value = comment;
  176. outtsdata.value = tsdata;
  177. outtsindex.value = tsindex;
  178. outtslong.value = tslong;
  179. submit("TRZDD00101");
  180. break;
  181. }
  182. model.refresh();
  183. }
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="onmousedown">
  187. <![CDATA[
  188. datagrid1.tooltiptext(datagrid1.row, datagrid1.col) = datagrid1.valueMatrix(datagrid1.row, datagrid1.col);
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <button id="button2" class="btn1_letter2" style="left:360px; top:25px; width:56px; height:22px; ">
  193. <caption>조회</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. submit("TRZDD00100");
  197. setTree(datagrid1, 3, 2, true);
  198. model.refresh();
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onclick">
  202. <![CDATA[
  203. ]]>
  204. </script>
  205. </button>
  206. <datagrid id="datagrid2" nodeset="/root/main/subgrid/reflist" caption="Object Type^Schema^ObjectName^Text" colsep="^" colwidth="103, 64, 231, 0" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:10px; top:575px; width:405px; height:180px; font-family:굴림; font-size:8pt; ">
  207. <col ref="objtype"/>
  208. <col ref="objschema"/>
  209. <col ref="objname"/>
  210. <col ref="objscript"/>
  211. <script type="javascript" ev:event="ondblclick">
  212. <![CDATA[
  213. txtScript.Text = datagrid2.valueMatrix(datagrid2.row,3);
  214. txtScript.refresh();
  215. ]]>
  216. </script>
  217. <script type="javascript" ev:event="onmousedown">
  218. <![CDATA[
  219. datagrid2.tooltiptext(datagrid2.row, datagrid2.col) = datagrid2.valueMatrix(datagrid2.row, datagrid2.col);
  220. ]]>
  221. </script>
  222. </datagrid>
  223. <datagrid id="datagrid3" nodeset="/root/main/subgrid/collist" caption="컬럼명^Datatype^한글명 - ER^Definition - ER^Note - ER^Comment - DB" colsep="^" colwidth="94, 96, 92, 162, 149, 168" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:425px; top:195px; width:765px; height:225px; font-family:굴림; font-size:8pt; ">
  224. <col ref="colname"/>
  225. <col ref="coltype"/>
  226. <col ref="colcomment"/>
  227. <col ref="coldefinition"/>
  228. <col ref="colnote"/>
  229. <col ref="remarks"/>
  230. <script type="javascript" ev:event="onmousedown">
  231. <![CDATA[
  232. datagrid3.tooltiptext(datagrid3.row, datagrid3.col) = datagrid3.valueMatrix(datagrid3.row, datagrid3.col);
  233. ]]>
  234. </script>
  235. </datagrid>
  236. <caption id="caption3" class="cell_1" style="left:425px; top:55px; width:130px; height:23px; vertical-align:middle; ">Table 한글명</caption>
  237. <output id="outtsdata" class="output_fix" style="left:560px; top:130px; width:170px; height:19px; "/>
  238. <output id="outtsindex" class="output_fix" style="left:790px; top:130px; width:170px; height:19px; "/>
  239. <output id="outtslong" class="output_fix" style="left:1020px; top:130px; width:170px; height:19px; "/>
  240. <output id="outtabknm" class="output_fix" style="left:560px; top:55px; width:630px; height:19px; "/>
  241. <output id="outdefinition" class="output_fix" style="left:560px; top:80px; width:630px; height:19px; "/>
  242. <output id="outcomment" class="output_fix" style="left:560px; top:105px; width:630px; height:19px; ">
  243. <script type="javascript" ev:event="onmousedown">
  244. <![CDATA[
  245. //outcomment.attribute("hint") = outcomment.value;
  246. ]]>
  247. </script>
  248. </output>
  249. <caption id="caption4" class="search_name" style="left:990px; top:165px; width:91px; height:17px; ">코드군 ID :</caption>
  250. <input id="ipt_search" ref="/root/main/search/supcdgruid" class="input_search" inputtype="button" style="left:1090px; top:165px; width:100px; height:19px; ">
  251. <script type="javascript" ev:event="onkeydown">
  252. <![CDATA[
  253. if (event.keyCode == "13") {
  254. setInputNodeCurText();
  255. //img1.dispatch("onclick");
  256. var cdgrupid = ipt_search.text;
  257. var recv_cdid_path = '/root/main/search/supcdid';
  258. var recv_cdnm_path = "/root/main/search/supcdnm";
  259. var search_condition = "cdnm";
  260. var search_term = model.getValue("/root/main/search/supcdid");
  261. zbcfOpenCodeList(cdgrupid, recv_cdid_path, recv_cdnm_path, search_condition, search_term);
  262. }
  263. ]]>
  264. </script>
  265. </input>
  266. </xhtml:body>
  267. </xhtml:html>