SPAHB02300_프린트컬럼선택.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHB00100.xrw
  4. * 설 명 : 공통코드선택
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.05.13
  8. * 수정이력 :
  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 xmlns="">
  18. <main>
  19. </main>
  20. <send>
  21. </send>
  22. <init/>
  23. <hidden>
  24. </hidden>
  25. <target>
  26. <srchflag/>
  27. <srchcond/>
  28. <srchcdnm/>
  29. <srchinstcd/>
  30. <openerid/>
  31. </target>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. model.setFocus("ipt_cdnm");
  40. model.removeNodeset("/root/main/cdlst/item");
  41. fInit();
  42. ]]>
  43. </script>
  44. <submission id="TRAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdlst"/>
  45. </model>
  46. <script type="javascript">
  47. <![CDATA[
  48. function fInit(){
  49. if( checkOpener() ){
  50. model.setValue("/root/send/srchflag" , "/root/target/srchflag" );
  51. model.setValue("/root/send/srchcond" , "/root/target/srchcond" );
  52. model.setValue("/root/send/srchcdnm" , "/root/target/srchcdnm" );
  53. model.setValue("/root/send/srchinstcd" , "/root/target/srchinstcd" );
  54. if(model.getValue("/root/send/srchcdnm") != "" ) {
  55. fGetComCdList();
  56. }
  57. }
  58. }
  59. /**
  60. ** srchflag : 검색구분 공통코드 A0114참조
  61. ** 01 판정의
  62. ** 02 건강보험공단
  63. ** 03 관할군병원
  64. ** 04 산업안전공단
  65. ** 05 보건소
  66. ** 06 노동청
  67. ** 07 지도원
  68. ** 08 사업체
  69. */
  70. function fGetComCdList(){
  71. var vFlag = model.getValue("/root/send/srchflag");
  72. if( vFlag == "" ){
  73. model.setValue("/root/send/srchflag", "08");
  74. }
  75. if( model.getValue("/root/send/srchinstcd") == ""){
  76. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd"));
  77. }
  78. submit("TRAHA00105");
  79. }
  80. /**
  81. * opener id에 따른 분화
  82. */
  83. function fSetData(){
  84. if( checkOpener() ){
  85. var vOpener = model.getValue("/root/target/openerid");
  86. if( vOpener == "" ) return ;
  87. var idx = grd_cdlst.row;
  88. if( idx < 1) return ;
  89. var vFg = model.getValue("/root/send/srchflag");
  90. if( vOpener == "SMAHB00500" )//사업장계약정보
  91. {
  92. if( vFg == "08" ){
  93. copyNodeType("/root/main/coninfo/cmpyinfo/item", "/root/main/cdlst/item[" + idx + "]", "replace", opener.model, model );
  94. }
  95. }
  96. }
  97. }
  98. ]]>
  99. </script>
  100. </xhtml:head>
  101. <xhtml:body pagewidth="800" pageheight="600" guideline="1,1194;1,0;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  102. <group id="group3" scroll="auto" style="left:0px; top:0px; width:788px; height:605px; ">
  103. <datagrid id="grd_cdlst" nodeset="/root/main/cdlst/item" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:9px; width:787px; height:553px; ">
  104. <col/>
  105. <col/>
  106. <col/>
  107. <col/>
  108. <col/>
  109. <col/>
  110. <col/>
  111. <col/>
  112. <col/>
  113. <col/>
  114. <col/>
  115. <col/>
  116. <col/>
  117. <col/>
  118. <script type="javascript" ev:event="ondblclick">
  119. <![CDATA[
  120. fSetData();
  121. ]]>
  122. </script>
  123. </datagrid>
  124. <line id="line1" class="line_1" style="x1:0px; y1:1px; x2:517px; y2:1px; "/>
  125. </group>
  126. <group id="group4" scroll="auto" style="left:10px; top:560px; width:772px; height:28px; ">
  127. <button id="button9" class="btn4_letter2" style="left:636px; top:3px; width:56px; height:22px; ">
  128. <caption>취소</caption>
  129. <close ev:event="onclick"/>
  130. </button>
  131. <button id="button4" class="btn4_letter2" style="left:577px; top:3px; width:56px; height:22px; ">
  132. <caption>확인</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. fSetData();
  136. window.close();
  137. ]]>
  138. </script>
  139. </button>
  140. </group>
  141. </xhtml:body>
  142. </xhtml:html>