SMRSC10000_공통코드관리.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. <codelist>
  11. <item>
  12. <cdid/>
  13. <cdnm/>
  14. <detldesc/>
  15. <dispseq/>
  16. <cmt1/>
  17. <cmt2/>
  18. <cdgrupid/>
  19. </item>
  20. </codelist>
  21. </main>
  22. <send>
  23. <globalinstance>
  24. <instance1/>
  25. </globalinstance>
  26. <srch>
  27. <cdgrupid/>
  28. </srch>
  29. <req/>
  30. <windowloadinstance>SPAEB00010</windowloadinstance>
  31. <instcd/>
  32. </send>
  33. <init>
  34. <cmb_info>
  35. <cditem>
  36. <cdgrupid/>
  37. <cdgrupnm/>
  38. </cditem>
  39. </cmb_info>
  40. </init>
  41. <hidden>
  42. </hidden>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. var instcd = getUserInfo("dutplceinstcd")
  48. model.setValue("/root/send/instcd", instcd);
  49. model.removenode("/root/main/codelist");
  50. submit("TRRSC10002");
  51. cmb_cdgrupid.select(0);
  52. ]]>
  53. </script>
  54. <submission id="TRRSC10002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" replace="instance" resultref="/root/init/cmb_info"/>
  55. <submission id="TRRSC10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
  56. <submission id="TXRSC10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. </xhtml:head>
  61. <xhtml:body pagewidth="731" pageheight="555" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  62. <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:550px; ">
  63. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:21px; width:690px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  64. <caption id="caption1" class="tit_2" style="left:0px; top:4px; width:145px; height:15px; ">MIS 공통코드관리</caption>
  65. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:700px; y2:85px; "/>
  66. <group id="group1" scroll="auto" style="left:0px; top:523px; width:700; height:27px; ">
  67. <button id="btn_confirm" class="btn4_letter2" style="left:512px; top:5px; width:56px; height:22px; ">
  68. <caption>저장</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. if ( messageBox("", "Q002") == 6 ) {
  72. var update = getGridUpdateData(grd_codelist);
  73. if (update == "" ) {
  74. messageBox("업데이트 정보가 없습니다.", "I");
  75. }
  76. else {
  77. model.setValue("/root/send/req", update);
  78. submit("TXRSC10001");
  79. }
  80. }
  81. submit("TRRSC10001");
  82. ]]>
  83. </script>
  84. </button>
  85. <button id="btn_cancel" class="btn4_letter2" style="left:569px; top:5px; width:56px; height:22px; ">
  86. <caption>닫기</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. window.close();
  90. ]]>
  91. </script>
  92. </button>
  93. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700; y2:0px; "/>
  94. </group>
  95. <caption id="caption2" class="search_name" style="left:17px; top:30px; width:99px; height:17px; ">그룹코드 :</caption>
  96. <button id="btn_sea" class="btn1_letter2" style="left:625px; top:28px; width:56px; height:22px; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. if( submit("TRRSC10001") ){
  101. grd_codelist.clearStatus();
  102. }
  103. ]]>
  104. </script>
  105. </button>
  106. <datagrid id="grd_codelist" nodeset="/root/main/codelist/item" autoresize="true" caption="코드^코드명^설명^순번^비고1^비고2^그룹코드^" colsep="^" colwidth="71, 143, 183, 35, 65, 65, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:90px; width:700px; height:430px; ">
  107. <col ref="cdid" type="input"/>
  108. <col ref="cdnm" type="input"/>
  109. <col ref="detldesc" type="input" style="text-align:left; "/>
  110. <col ref="dispseq" type="input" style="text-align:center; "/>
  111. <col ref="cmt1" type="input"/>
  112. <col ref="cmt2" type="input"/>
  113. <col ref="cdgrupid" type="input"/>
  114. <script type="javascript" ev:event="onbuttonclick">
  115. <![CDATA[
  116. var colidx = grd_codelist.col;
  117. if( grd_codelist.colAttribute(colidx, "ref") == "detldesc" ){
  118. model.makeValue("/root/hidden/checkseq","23");
  119. var chkroom = "";
  120. chkroom = model.getValue("/root/main/codelist/item["+ grd_codelist.row +"]/detldesc");
  121. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  122. if( chkroom != model.getValue("/root/main/codelist/item["+ grd_codelist.row +"]/detldesc") ){
  123. grd_codelist.addStatus(grd_codelist.row,"update");
  124. }
  125. }
  126. ]]>
  127. </script>
  128. </datagrid>
  129. <select1 id="cmb_cdgrupid" ref="/root/send/srch/cdgrupid" appearance="minimal" style="left:110px; top:30px; width:100px; height:19px; ">
  130. <choices>
  131. <item>
  132. <label>담당자관리</label>
  133. <value>R0001</value>
  134. </item>
  135. </choices>
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. submit("TRRSC10001");
  139. ]]>
  140. </script>
  141. </select1>
  142. <button id="btn_grddel" class="btn2_letter3" style="left:640px; top:65px; width:53px; height:19px; ">
  143. <caption>행삭제</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. deleteSelectedRows(grd_codelist, true);
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="btn_grdadd" class="btn2_letter3" style="left:584px; top:65px; width:53px; height:19px; ">
  151. <caption>행추가</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. var cdgrupid = model.getValue("/root/send/srch/cdgrupid");
  155. grd_codelist.addRow();
  156. var row = grd_codelist.row;
  157. model.setValue("/root/main/codelist/item["+row+"]/cdgrupid", cdgrupid);
  158. model.refresh();
  159. ]]>
  160. </script>
  161. </button>
  162. </group>
  163. <button id="button1" class="btn4_letter3" style="left:635px; top:528px; width:68px; height:22px; ">
  164. <caption>초기화</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. if ( messageBox("초기화하시겠습니까?", "Q") == 6) {
  168. model.reset();
  169. model.removenode("/root/main/codelist");
  170. model.refresh();
  171. }
  172. ]]>
  173. </script>
  174. </button>
  175. </xhtml:body>
  176. </xhtml:html>