SPPPI00101_삭감대상처방코드조회.xrw 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. </send>
  13. <main>
  14. <discut>
  15. <discutlist/>
  16. <cutbflist/>
  17. </discut>
  18. </main>
  19. </root>
  20. </instance>
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. var today = getCurrentDate();
  24. var fromdd = (today.toDate().getAddDate(-1, "Y")).getAddDate(1, "M").getDateFormat("YYYYMM");
  25. var todd = today.toDate().getDateFormat("YYYYMM");
  26. model.setValue("/root/send/todd", todd);
  27. model.setValue("/root/send/fromdd", fromdd);
  28. model.refresh();
  29. ]]>
  30. </script>
  31. <submission id="TRPPI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/discut"/>
  32. <submission id="TXPPI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/cutbf" resultref="/root/hidden"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  36. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. // 화면 open, 저장시 초기화 기능을 수행한다.
  43. function fClose() {
  44. window.close();
  45. }
  46. ]]>
  47. </script>
  48. </xhtml:head>
  49. <xhtml:body pagewidth="1000" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  50. <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:328px; height:13px; ">삭감 처방코드 내역</caption>
  51. <line id="line7" class="line_1" style="x1:5px; y1:90px; x2:465px; y2:90px; "/>
  52. <line id="line8" class="line_1" style="x1:510px; y1:90px; x2:970px; y2:90px; "/>
  53. <button id="btn_init" class="btn4_letter3" style="left:900px; top:666px; width:68px; height:22px; ">
  54. <caption>닫 기</caption>
  55. <script type="javascript" ev:event="DOMActivate">
  56. <![CDATA[
  57. ]]>
  58. </script>
  59. </button>
  60. <group id="group1" style="left:5px; top:25px; width:965px; height:45px; ">
  61. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:960px; height:40px; "/>
  62. <button id="button1" class="btn4_letter2" style="left:895px; top:10px; width:55px; height:20px; ">
  63. <caption>조회</caption>
  64. <script type="javascript" ev:event="DOMActivate">
  65. <![CDATA[
  66. submit("TRPPI00801");
  67. ]]>
  68. </script>
  69. </button>
  70. <input id="input1" ref="/root/send/fromdd" inputtype="date" format="yyyy-mm" style="left:110px; top:10px; width:90px; height:19px; "/>
  71. <caption id="caption2" class="search_name" style="left:20px; top:10px; width:95px; height:17px; ">조회기간 :</caption>
  72. <caption id="caption3" style="left:200px; top:15px; width:30px; height:10px; ">~</caption>
  73. <input id="input2" ref="/root/send/todd" inputtype="date" format="yyyy-mm" style="left:220px; top:10px; width:90px; height:19px; "/>
  74. </group>
  75. <datagrid id="grd_discutlist" nodeset="/root/main/discut/discutlist" autoresize="true" caption="청구월^처방코드^처방병" colsep="^" colwidth="80, 90, 250" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:95px; width:460px; height:560px; ">
  76. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  77. <col ref="calcscorcd" style="text-align:center; "/>
  78. <col ref="hngnm"/>
  79. </datagrid>
  80. <datagrid id="grd_cutbflist" nodeset="/root/main/discut/cutbflist" caption="처방코드^처방명^시작일자^종료일자^제어코드" colsep="^" colwidth="90, 200, 80, 80, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:510px; top:95px; width:460px; height:560px; ">
  81. <col ref="calcscorcd" style="text-align:center; "/>
  82. <col ref="hngnm"/>
  83. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  84. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  85. <col ref="rulecd" visibility="hidden"/>
  86. </datagrid>
  87. <button id="button2" class="icon_left" style="left:475px; top:350px; width:26px; height:19px; ">
  88. <caption/>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. var row = grd_cutbflist.selectedRows;
  92. if ( row > 0 ) {
  93. vrow = new Array(row);
  94. for ( i=0; i<row; i++) {
  95. var srow = grd_cutbflist.selectedRow(i);
  96. if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) != "" ) {
  97. grd_cutbflist.rowStatus(srow) = 4;
  98. grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("todd")) = getCurrentDate();
  99. } else if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) == "" ) {
  100. vrow[i] = srow;
  101. }
  102. }
  103. alert(vrow[0]);
  104. if ( vrow.length > 0 && vrow[0] != "" && vrow[0] != null) {
  105. for ( j=0; j<vrow.length; j++) {
  106. grd_cutbflist.deleteRow(vrow[j] - j, false);
  107. }
  108. }
  109. }
  110. grd_cutbflist.refresh();
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="button3" class="icon_right" style="left:475px; top:315px; width:26px; height:19px; ">
  115. <caption/>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var row = grd_discutlist.selectedRows;
  119. vrow = new Array(row-1);
  120. if ( row > 0 ) {
  121. for( i = 0; i < row; i++) {
  122. grd_cutbflist.addRow(false);
  123. var srow = grd_discutlist.selectedRow(i);
  124. var arow = grd_cutbflist.rows-1;
  125. var calcscorcd = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("calcscorcd"));
  126. var hngnm = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("hngnm"));
  127. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("calcscorcd")) = calcscorcd;
  128. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("hngnm")) = hngnm;
  129. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("fromdd")) = getCurrentDate();
  130. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("todd")) = "99991231";
  131. grd_cutbflist.gridToInstance();
  132. vrow[i] = srow;
  133. }
  134. //alert(vrow);
  135. for( j=0; j < vrow.length; j++) {
  136. grd_discutlist.deleteRow(vrow[j] - j, false);
  137. }
  138. grd_discutlist.refresh();
  139. grd_cutbflist.refresh();
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="button4" class="btn4_letter3" style="left:825px; top:666px; width:68px; height:22px; ">
  145. <caption>저장</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. model.makeNode("/root/send/savedata/cutbf/cutbflist");
  149. var update = getGridUpdateData(grd_cutbflist);
  150. model.setValue("/root/send/savedata/cutbf/cutbflist", update);
  151. submit("TXPPI00801");
  152. ]]>
  153. </script>
  154. </button>
  155. <caption id="caption4" class="tit_2" style="left:512px; top:75px; width:145px; height:13px; ">제어 처방코드 내역</caption>
  156. <caption id="caption5" class="tit_1" style="left:10px; top:5px; width:100px; height:20px; ">삭감대상처방조회</caption>
  157. </xhtml:body>
  158. </xhtml:html>