SPLLF10200_통합검사계코드조회.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00100_계검사계코드관리.xrw
  4. * 설 명 : 검사시행부서코드관리 조회 및 등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.04.10
  8. * 수정이력 : 2007.07.27 박정은 lastupdtdt 수정함
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사시행부서코드관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <flag>
  20. <cond1>2</cond1>
  21. </flag>
  22. <MSG/>
  23. <getUsernm/>
  24. <tsectlist>
  25. <tsectfromdd/>
  26. <tsecttodd/>
  27. <sectcd/>
  28. <tsectcd/>
  29. <tsectnm/>
  30. <tsectscrnnm/>
  31. <tsectabbrnm/>
  32. <tsectprntnm/>
  33. <tsectlblnm/>
  34. </tsectlist>
  35. </main>
  36. <send>
  37. <refgbn/>
  38. <sectcd/>
  39. <sectdata/>
  40. <tsectdata/>
  41. <deptflag/>
  42. <codeflag/>
  43. </send>
  44. <init>
  45. </init>
  46. <hidden>
  47. <ref>
  48. <refgbn>1</refgbn>
  49. </ref>
  50. <deptflagcd/>
  51. <addlist>
  52. <addstring/>
  53. </addlist>
  54. </hidden>
  55. <temp>
  56. <sectinfo/>
  57. </temp>
  58. </root>
  59. </instance>
  60. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  61. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  62. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  63. <!-- 계코드 조회-->
  64. <submission id="TRLLF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sectlist"/>
  65. <!-- 검사계코드 조회-->
  66. <submission id="TRLLF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tsectlist"/>
  67. <!-- 계코드 수정,등록-->
  68. <!-- 검사계코드 수정,등록-->
  69. <submission id="TXLLF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sectlist"/>
  70. <submission id="TXLLF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tsectlist"/>
  71. <!--<submission id="TRLZZ00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>-->
  72. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  73. <script ev:event="xforms-ready" type="javascript">
  74. <![CDATA[
  75. // 권한 설정
  76. //var auth = model.getValue("/root/properties/auth");
  77. //checkAuth(auth);
  78. //btn_save.disabled = !checkAuth("X") ;
  79. // 초기정보 조회
  80. model.setValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
  81. submit("TRLZZ00101");
  82. fSetInit();
  83. fGetTsecTsect();
  84. ]]>
  85. </script>
  86. </model>
  87. <script type="javascript">
  88. <![CDATA[
  89. // 초기화 버튼
  90. function fSetInit() {
  91. //model.reset();
  92. model.removeNodeset("/root/main/tsectlist");
  93. model.refresh();
  94. }
  95. // 계리스트 조회
  96. function fGetTsecTsect(){
  97. grd_tsect.rebuildstyle();
  98. model.setValue("/root/send/sectcd", model.getValue("/root/temp/sectinfo/sectcd"));
  99. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  100. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  101. submit("TRLLF10102"); // 검사계 리스트 조회
  102. }
  103. function fAddRow(){
  104. var AddRowString = "";
  105. for(i = 1 ; i < grd_tsect.rows ; i++ ){
  106. if(model.getValue("/root/main/tsectlist["+i+"]/chk") == "true"){
  107. AddRowString = AddRowString + model.getValue("/root/main/tsectlist["+i+"]/tsectcd") + "▦"
  108. + model.getValue("/root/main/tsectlist["+i+"]/tsectnm") + "▦"
  109. + model.getValue("/root/main/tsectlist["+i+"]/tsectscrnnm") + "▦"
  110. + model.getValue("/root/main/tsectlist["+i+"]/tsectabbrnm") + "▦"
  111. + model.getValue("/root/main/tsectlist["+i+"]/tsectprntnm") + "▦"
  112. + model.getValue("/root/main/tsectlist["+i+"]/tsectlblnm") + "▩" ;
  113. }
  114. }
  115. model.setValue("/root/hidden/addlist/addstring" , AddRowString);
  116. model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
  117. window.close();
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body pagewidth="700" pageheight="320" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group3" scroll="auto" style="left:0px; top:0px; width:680px; height:290px; ">
  124. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:134px; height:14px; ">통합검사계코드목록</caption>
  125. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:665px; y2:20px; "/>
  126. <datagrid id="grd_tsect" nodeset="/root/main/tsectlist" caption="^검사계코드^검사계명^검사계명(화면)^검사계명(약어)^검사계명(출력)^검사계명(라벨)" colwidth="20, 85, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:25px; width:665px; height:230px; ">
  127. <col ref="chk" type="checkbox"/>
  128. <col ref="tsectcd" type="output"/>
  129. <col ref="tsectnm" type="output"/>
  130. <col ref="tsectscrnnm" type="output"/>
  131. <col ref="tsectabbrnm" type="output"/>
  132. <col ref="tsectprntnm" type="output"/>
  133. <col ref="tsectlblnm" type="output"/>
  134. <script ev:event="onaftersort" type="javascript">
  135. <![CDATA[
  136. grd_tsect.gridToInstance();
  137. ]]>
  138. </script>
  139. </datagrid>
  140. <button id="button1" class="btn4_letter2" style="left:551px; top:257px; width:56px; height:22px; ">
  141. <caption>추가</caption>
  142. <script ev:event="onclick" type="javascript">
  143. <![CDATA[
  144. fAddRow()
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="btn_cfm" class="btn4_letter2" style="left:610px; top:257px; width:56px; height:22px; ">
  149. <caption>닫기</caption>
  150. <script ev:event="onclick" type="javascript">
  151. <![CDATA[
  152. window.close();
  153. ]]>
  154. </script>
  155. </button>
  156. </group>
  157. </xhtml:body>
  158. </xhtml:html>