SPABO62100_요양급여신청서팝업.xrw 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <cmbinfo/>
  11. </main>
  12. <send>
  13. </send>
  14. <init>
  15. </init>
  16. <hidden>
  17. </hidden>
  18. <temp>
  19. <ret/>
  20. <multiselect/>
  21. <cdnmnode/>
  22. <nodeset/>
  23. <cdidnode/>
  24. </temp>
  25. </root>
  26. </instance>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. // common.js
  32. if ( checkOpener() ) {
  33. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  34. if (param != "") { // opener parameter value가 있는 경우
  35. condarray = param.split("▦");
  36. model.setValue("/root/temp/multiselect", condarray[0]); // Y/N [멀티선택여부] 및 C [코드로 리턴]
  37. model.setValue("/root/temp/nodeset" , condarray[1]); // 그리드에 동적으로 연결할 nodeset
  38. model.setValue("/root/temp/cdnmnode" , condarray[2]); // 코드값 리턴 인스턴스
  39. model.setValue("/root/temp/cdidnode" , condarray[3]); // 코드 리턴 인스턴스
  40. cpt_title.text = condarray[4];
  41. document.title = condarray[4]; // title 변경 하기
  42. // 선택을 멀티로 하는 경우 선택하는 체크 박스를 활성화 시킨다.
  43. if ( condarray[0] == "Y" ) {
  44. grd_list.colHidden(1) = false;
  45. } else {
  46. grd_list.colHidden(1) = true;
  47. }
  48. model.copyNode("/root/main/cmbinfo" , opener.root.temp.cmbinfo);
  49. grd_list.nodeset = condarray[1];
  50. model.refresh();
  51. }
  52. }
  53. ]]>
  54. </script>
  55. </model>
  56. </xhtml:head>
  57. <xhtml:body pagewidth="505" pageheight="350" guideline="1,1194;2,784;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  58. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:485px; height:306px; ">
  59. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:480px; y2:25px; "/>
  60. <caption id="cpt_title" class="tit_2" style="left:10px; top:10px; width:325px; height:13px; ">요양급여신청서 항목별 코드 선택</caption>
  61. <datagrid id="grd_list" nodeset="/root/main/cmbinfo" caption="^코드^설명" colwidth="24, 54, 357" dataheight="7" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:5px; top:30px; width:475px; height:270px; ">
  62. <col ref="chk" type="checkbox" checkvalue="Y,N"/>
  63. <col ref="cdid"/>
  64. <col ref="cdnm"/>
  65. <script type="javascript" ev:event="ondblclick">
  66. <![CDATA[
  67. var scdnmnode = model.getValue("/root/temp/cdnmnode");
  68. opener.model.setValue(scdnmnode, grd_list.labelMatrix(grd_list.row, 3));
  69. // C로 되어 있으면 코드값도 리턴한다. [진단명]
  70. if ( model.getValue("/root/temp/multiselect") == "C" ) {
  71. var scdidnode = model.getValue("/root/temp/cdidnode");
  72. opener.model.setValue(scdidnode, grd_list.labelMatrix(grd_list.row, 2));
  73. }
  74. opener.model.refresh();
  75. ]]>
  76. </script>
  77. <close ev:event="ondblclick"/>
  78. </datagrid>
  79. </group>
  80. <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:480px; height:27px; ">
  81. <button id="btn_confirm1" class="btn4_letter2" style="left:355px; top:3px; width:56px; height:22px; ">
  82. <caption>확인</caption>
  83. <script type="javascript" ev:event="onclick">
  84. <![CDATA[
  85. grd_list.fixedcellcheckbox(0,1) = false;
  86. // 여러 건 선택하는 경우
  87. if ( model.getValue("/root/temp/multiselect") == "Y" ) {
  88. var svalue = "";
  89. for (var i = 1; i < grd_list.rows; i++) {
  90. if ( grd_list.valuematrix(i, 1) == "Y") {
  91. if ( svalue == "" ) {
  92. svalue = grd_list.labelMatrix(i, 3);
  93. } else {
  94. svalue = svalue + ", " + grd_list.labelMatrix(i, 3);
  95. }
  96. }
  97. }
  98. var scdnmnode = model.getValue("/root/temp/cdnmnode");
  99. opener.model.setValue(scdnmnode, svalue);
  100. opener.model.refresh();
  101. } else {
  102. var scdnmnode = model.getValue("/root/temp/cdnmnode");
  103. opener.model.setValue(scdnmnode, grd_list.labelMatrix(grd_list.row, 3));
  104. // C로 되어 있으면 코드값도 리턴한다. [진단명]
  105. if ( model.getValue("/root/temp/multiselect") == "C" ) {
  106. var scdidnode = model.getValue("/root/temp/cdidnode");
  107. opener.model.setValue(scdidnode, grd_list.labelMatrix(grd_list.row, 2));
  108. }
  109. opener.model.refresh();
  110. }
  111. ]]>
  112. </script>
  113. <close ev:event="DOMActivate"/>
  114. </button>
  115. <button id="btn_cancel1" class="btn4_letter2" style="left:415px; top:3px; width:56px; height:22px; ">
  116. <caption>취소</caption>
  117. <close ev:event="DOMActivate"/>
  118. </button>
  119. </group>
  120. </xhtml:body>
  121. </xhtml:html>