SPLLF10100_통합계코드조회.xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. <sectlist>
  23. <sectfromdd/>
  24. <secttodd/>
  25. <sectcd/>
  26. <sectnm/>
  27. <sectscrnnm/>
  28. <sectabbrnm/>
  29. <sectprntnm/>
  30. <sectlblnm/>
  31. </sectlist>
  32. <MSG/>
  33. <getUsernm/>
  34. </main>
  35. <send>
  36. <refgbn/>
  37. <sectcd/>
  38. <sectdata/>
  39. <tsectdata/>
  40. <deptflag/>
  41. <codeflag/>
  42. </send>
  43. <init>
  44. </init>
  45. <hidden>
  46. <ref>
  47. <refgbn>1</refgbn>
  48. </ref>
  49. <deptflagcd/>
  50. <addlist>
  51. <addstring/>
  52. </addlist>
  53. </hidden>
  54. </root>
  55. </instance>
  56. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  57. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  58. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  59. <!-- 계코드 조회-->
  60. <submission id="TRLLF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sectlist"/>
  61. <!-- 검사계코드 조회-->
  62. <submission id="TRLLF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tsectlist"/>
  63. <!-- 계코드 수정,등록-->
  64. <!-- 검사계코드 수정,등록-->
  65. <submission id="TXLLF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sectlist"/>
  66. <submission id="TXLLF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tsectlist"/>
  67. <!--<submission id="TRLZZ00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>-->
  68. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  69. <script ev:event="xforms-ready" type="javascript">
  70. <![CDATA[
  71. // 권한 설정
  72. //var auth = model.getValue("/root/properties/auth");
  73. //checkAuth(auth);
  74. //btn_save.disabled = !checkAuth("X") ;
  75. // 초기정보 조회
  76. model.setValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
  77. submit("TRLZZ00101");
  78. fSetInit();
  79. fGetSectTsect();
  80. ]]>
  81. </script>
  82. </model>
  83. <script type="javascript">
  84. <![CDATA[
  85. // 초기화 버튼
  86. function fSetInit() {
  87. //model.reset();
  88. model.removeNodeset("/root/main/sectlist");
  89. model.refresh();
  90. }
  91. // 계리스트 조회
  92. function fGetSectTsect(){
  93. grd_sect.rebuildstyle();
  94. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  95. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  96. submit("TRLLF10101"); // 계 리스트 조회
  97. }
  98. function fAddRow(){
  99. var AddRowString = "";
  100. for(i = 1 ; i < grd_sect.rows ; i++ ){
  101. if(model.getValue("/root/main/sectlist["+i+"]/chk") == "true"){
  102. AddRowString = AddRowString + model.getValue("/root/main/sectlist["+i+"]/sectcd") + "▦"
  103. + model.getValue("/root/main/sectlist["+i+"]/sectnm") + "▦"
  104. + model.getValue("/root/main/sectlist["+i+"]/sectscrnnm") + "▦"
  105. + model.getValue("/root/main/sectlist["+i+"]/sectabbrnm") + "▦"
  106. + model.getValue("/root/main/sectlist["+i+"]/sectprntnm") + "▦"
  107. + model.getValue("/root/main/sectlist["+i+"]/sectlblnm") + "▩" ;
  108. }
  109. }
  110. model.setValue("/root/hidden/addlist/addstring" , AddRowString);
  111. model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
  112. window.close();
  113. }
  114. ]]>
  115. </script>
  116. </xhtml:head>
  117. <xhtml:body pagewidth="700" pageheight="320" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  118. <group id="group3" scroll="auto" style="left:0px; top:0px; width:680px; height:290px; ">
  119. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:134px; height:14px; ">통합계코드목록</caption>
  120. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:665px; y2:20px; "/>
  121. <datagrid id="grd_sect" nodeset="/root/main/sectlist" 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; ">
  122. <col ref="chk" type="checkbox"/>
  123. <col ref="sectcd" type="output"/>
  124. <col ref="sectnm" type="output"/>
  125. <col ref="sectscrnnm" type="output"/>
  126. <col ref="sectabbrnm" type="output"/>
  127. <col ref="sectprntnm" type="output"/>
  128. <col ref="sectlblnm" type="output"/>
  129. <script ev:event="onaftersort" type="javascript">
  130. <![CDATA[
  131. grd_sect.gridToInstance();
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <button id="button1" class="btn4_letter2" style="left:551px; top:257px; width:56px; height:22px; ">
  136. <caption>추가</caption>
  137. <script ev:event="onclick" type="javascript">
  138. <![CDATA[
  139. fAddRow()
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="btn_cfm" class="btn4_letter2" style="left:610px; top:257px; width:56px; height:22px; ">
  144. <caption>닫기</caption>
  145. <script ev:event="onclick" type="javascript">
  146. <![CDATA[
  147. window.close();
  148. ]]>
  149. </script>
  150. </button>
  151. </group>
  152. </xhtml:body>
  153. </xhtml:html>