SPPID21301_항목별진료비조회.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPID21301_항목별진료비조회.xrw (심사차액조회 화면에 iviewer 형태로 들어갈 화면)
  4. * 수정이력
  5. * - 2008.08.07 / 최초작성 / 박지욱
  6. *
  7. * - opener 에서 전달받는 조건 경로
  8. /root/send/data1
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title/>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list1>
  19. </list1>
  20. </main>
  21. <send>
  22. <data1>
  23. <clamym/>
  24. <clamdg/>
  25. <pid/>
  26. <pidsn/>
  27. <insukind/>
  28. <suppkind/>
  29. <ordfromdd/>
  30. </data1>
  31. </send>
  32. <init>
  33. </init>
  34. <hidden>
  35. </hidden>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. ]]>
  41. </script>
  42. <submission id="TRPID21301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  43. </model>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 화면을 초기화한다.
  49. function fInitialize() {
  50. // 1. opener 에서 key 데이터를 받는다.
  51. model.setValue("/root/send/data1/clamym", opener.window.javaScript.getParameter("SPPID21301_clamym"));
  52. model.setValue("/root/send/data1/clamdg", opener.window.javaScript.getParameter("SPPID21301_clamdg"));
  53. model.setValue("/root/send/data1/pid", opener.window.javaScript.getParameter("SPPID21301_pid"));
  54. model.setValue("/root/send/data1/pidsn", opener.window.javaScript.getParameter("SPPID21301_pidsn"));
  55. model.setValue("/root/send/data1/insukind", opener.window.javaScript.getParameter("SPPID21301_insukind"));
  56. model.setValue("/root/send/data1/suppkind", opener.window.javaScript.getParameter("SPPID21301_suppkind"));
  57. model.setValue("/root/send/data1/ordfromdd", opener.window.javaScript.getParameter("SPPID21301_ordfromdd"));
  58. /*
  59. grd_itemlist.mergecol(grd_itemlist.colRef("mdl")) = false;
  60. grd_itemlist.mergecol(grd_itemlist.colRef("hngnm")) = false;
  61. grd_itemlist.mergecol(grd_itemlist.colRef("bfmatramt")) = false;
  62. grd_itemlist.mergecol(grd_itemlist.colRef("bfactamt")) = false;
  63. grd_itemlist.mergecol(grd_itemlist.colRef("aftmatramt")) = false;
  64. grd_itemlist.mergecol(grd_itemlist.colRef("aftactamt")) = false;
  65. grd_itemlist.mergecol(grd_itemlist.colRef("itemdifamt")) = false;
  66. model.removeNodeset("/root/main/list1/item");
  67. model.removeNodeset("/root/main/list2/clbt");
  68. model.removeNodeset("/root/main/list3/mech");
  69. */
  70. if (model.getValue("/root/send/data1/clamym") != "") {
  71. submit("TRPID21301");
  72. grd_clodlist.refresh();
  73. // 항목별 진료비의 동일한 항을 병합한다.
  74. //grd_itemlist.mergecells = "bycol";
  75. }
  76. /*
  77. // 항목별 진료비 - 소계 Row
  78. grd_itemlist.rowStyle(1, "data", "background-color") = "#4d4d4d";
  79. grd_itemlist.rowStyle(1, "data", "background-image") = "../../../com/commonweb/images/grid_bg.gif";
  80. grd_itemlist.rowStyle(1, "data", "background-repeat") = "repeat-x";
  81. // 항목별 진료비 - 가산율 Row
  82. grd_itemlist.rowStyle(2, "data", "background-color") = "#4d4d4d";
  83. grd_itemlist.rowStyle(2, "data", "background-image") = "../../../com/commonweb/images/grid_bg.gif";
  84. grd_itemlist.rowStyle(2, "data", "background-repeat") = "repeat-x";
  85. //grd_itemlist.fixedRows = 2;
  86. // 청구심사차액 - 총진료비 Row
  87. //grd_clbtmast.fixedrows = 2; 로 타이틀을 적용시키면 금액 format="#,###" 이 적용되지 않는다.
  88. grd_clbtmast.rowStyle(1, "data", "background-color") = "#4d4d4d";
  89. grd_clbtmast.rowStyle(1, "data", "background-image") = "../../../com/commonweb/images/grid_bg.gif";
  90. grd_clbtmast.rowStyle(1, "data", "background-repeat") = "repeat-x";
  91. */
  92. }
  93. ]]>
  94. </script>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="920" pageheight="610" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:920px; height:610px; ">
  98. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:100px; height:13px; ">항목별 진료비</caption>
  99. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:920px; y2:25px; "/>
  100. <datagrid id="grd_clodlist" nodeset="/root/main/list1/clod" caption="항목^항목^명칭^심사후^심사후^심사전^심사전^차액|항^목^명칭^I항^II항^I항^II항^차액" colsep="^" colwidth="50, 50, 350, 80, 80, 80, 80, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed-rows="2" style="left:0px; top:31px; width:920px; height:579px; ">
  101. <col ref="item1" style="text-align:center; "/>
  102. <col ref="item2" style="text-align:center; "/>
  103. <col ref="hngnm" style="text-align:left; "/>
  104. <col ref="aftamt1" format="#,###" style="text-align:right; "/>
  105. <col ref="aftamt2" format="#,###" style="text-align:right; "/>
  106. <col ref="bframt1" format="#,###" style="text-align:right; "/>
  107. <col ref="bframt2" format="#,###" style="text-align:right; "/>
  108. <col ref="difamt" format="(-)#,###" style="text-align:right; "/>
  109. <script type="javascript" ev:event="ondblclick">
  110. <![CDATA[
  111. if (grd_clodlist.isCell(event.target) && grd_clodlist.mouseRow >= grd_clodlist.fixedRows) {
  112. var row = grd_clodlist.row - 1;
  113. var item1 = model.getValue("/root/main/list1/clod[" + row + "]/item1");
  114. var item2 = model.getValue("/root/main/list1/clod[" + row + "]/item2");
  115. if (item1 != "" && item2 != "") {
  116. opener.window.javaScript.fGetJudgDetlDifAmtList(item1, item2);
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </datagrid>
  122. </group>
  123. <button id="btn_excel" class="btn2_letter4" style="left:852px; top:3px; width:64px; height:19px; ">
  124. <caption>엑셀저장</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. if (grd_clodlist.rows == 2) {
  128. return;
  129. }
  130. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  131. if (fileName != "")
  132. {
  133. grd_clodlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  134. messageBox("EXCEL 저장이 완료되었습니다.","I999");
  135. }
  136. ]]>
  137. </script>
  138. </button>
  139. </xhtml:body>
  140. </xhtml:html>