SPAEA03205_코드관리(사이버나이프).xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <bodypartlist>
  11. <list>
  12. <sortno/>
  13. <basecd/>
  14. <basecdflagdesc/>
  15. <basecdcnts>C001</basecdcnts>
  16. </list>
  17. </bodypartlist>
  18. </main>
  19. <send>
  20. <req>
  21. </req>
  22. <basecd/>
  23. <globalinstance>
  24. <instance1/>
  25. </globalinstance>
  26. <basecdnm/>
  27. <basecdflag>G</basecdflag>
  28. <basecdcnts/>
  29. </send>
  30. <init>
  31. <codelist>
  32. <basecd/>
  33. <basecdflagdesc/>
  34. <length/>
  35. </codelist>
  36. </init>
  37. <hidden>
  38. <item/>
  39. </hidden>
  40. </root>
  41. </instance>
  42. <submission id="TRAEA03211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bodypartlist"/>
  43. <submission id="TRAEA03212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bodypartlist"/>
  44. <submission id="TXAEA03210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  45. <submission id="TXAEA03211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. aezfSetSuppDeptcd();
  49. model.removeNodeset("/root/init/codelist");
  50. model.removeNodeset("/root/main/bodypartlist/list");
  51. model.removeNodeset("/root/init/codelist");
  52. model.setValue("/root/send/basecdcnts","000"); //마스터 코드 셋팅
  53. submit("TXAEA03210");
  54. model.refresh();
  55. // model.setFocus("ipt_basecd");
  56. ]]>
  57. </script>
  58. <submission id="TXAEA02308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  59. </model>
  60. </xhtml:head>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  66. <xhtml:body pagewidth="604" pageheight="493" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:587px; height:465px; ">
  68. <group id="grp_sea" style="left:0px; top:0px; width:587px; height:35px; vertical-align:top; ">
  69. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:586px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  70. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">구분:</caption>
  71. <line id="line13" class="line_4" style="x1:500px; y1:5px; x2:500px; y2:28px; "/>
  72. <button id="btn_sea" class="btn1_letter2" style="left:515px; top:7px; width:56px; height:22px; ">
  73. <caption>조회</caption>
  74. <script type="javascript" ev:event="DOMActivate">
  75. <![CDATA[
  76. submit("TRAEA03212");
  77. ]]>
  78. </script>
  79. </button>
  80. <select1 id="cmb_codelist" ref="/root/send/basecd" appearance="minimal" style="left:85px; top:7px; width:235px; height:19px; ">
  81. <choices>
  82. <itemset nodeset="/root/init/codelist">
  83. <label ref="basecdflagdesc"/>
  84. <value ref="basecd"/>
  85. </itemset>
  86. </choices>
  87. <script type="javascript" ev:event="xforms-value-changed">
  88. <![CDATA[
  89. model.removeNodeset("/root/main/bodypartlist/list");
  90. model.refresh();
  91. ]]>
  92. </script>
  93. </select1>
  94. </group>
  95. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:125px; height:14px; ">코드관리</caption>
  96. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:586px; y2:61px; "/>
  97. <datagrid id="grd_bodypart" nodeset="/root/main/bodypartlist/list" caption="순번 ^코드^코드명^basecdflag^basesuppdeptcd" colsep="^" colwidth="35, 118, 388, 0, 0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:586px; height:360px; ">
  98. <col ref="sortno" type="input" visibility="hidden"/>
  99. <col ref="basecd" type="input" _chartype="upper" style="text-align:center; "/>
  100. <col ref="basecdflagdesc" type="input"/>
  101. <col ref="basecdcnts" visibility="hidden"/>
  102. <col ref="basesuppdeptcd" visibility="hidden"/>
  103. <script type="javascript" ev:event="onaftersort">
  104. <![CDATA[
  105. // 정렬된 순서대로 인스턴스를 재정의 함
  106. grd_bodypart.gridToInstance();
  107. ]]>
  108. </script>
  109. </datagrid>
  110. <button id="btn_grddel" class="btn2_letter3" style="left:521px; top:40px; width:53px; height:19px; ">
  111. <caption>행삭제</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. deleteSelectedRows(grd_bodypart, true);
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="btn_grdadd" class="btn2_letter3" style="left:465px; top:40px; width:53px; height:19px; ">
  119. <caption>행추가</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. var mastercode = model.getValue("/root/send/basecd");
  123. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  124. grd_bodypart.addRow();
  125. var row = grd_bodypart.row;
  126. model.setValue("/root/main/bodypartlist/list["+row+"]/basecdcnts",mastercode);
  127. model.setValue("/root/main/bodypartlist/list["+row+"]/basesuppdeptcd",suppdeptcd);
  128. model.refresh();
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="btn_save" class="btn4_letter2" style="left:445px; top:430px; width:56px; height:22px; ">
  133. <caption>저장</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. if ( messageBox("", "Q002") == 6 ) {
  137. var update = getGridUpdateData(grd_bodypart);
  138. if (update == "" ) {
  139. messageBox("업데이트 정보가 없습니다.", "I");
  140. model.setFocus("ipt_basecd");
  141. }
  142. else {
  143. model.setValue("/root/send/req", update);
  144. submit("TXAEA03211");
  145. }
  146. //submit("TRAEA02308");
  147. model.setValue("/root/send/basecd", "");
  148. model.setValue("/root/send/basecdnm", "");
  149. }
  150. // model.refresh();
  151. model.reset();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_clear" class="btn4_letter3" style="left:508px; top:430px; width:68px; height:22px; ">
  156. <caption>초기화</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. if ( messageBox("초기화하시겠습니까?", "Q") == 6) {
  160. model.reset();
  161. }
  162. model.setFocus("ipt_basecd");
  163. ]]>
  164. </script>
  165. </button>
  166. </group>
  167. </xhtml:body>
  168. </xhtml:html>