SPPAS00790_원외삭감내역조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <sendflag/>
  13. <data>
  14. <pid/>
  15. <srchcond/>
  16. </data>
  17. <srchpid/>
  18. </send>
  19. <main>
  20. <outcut>
  21. <outcutlist/>
  22. </outcut>
  23. <patinfo>
  24. <patinfolist>
  25. <pid/>
  26. </patinfolist>
  27. </patinfo>
  28. </main>
  29. <source>
  30. </source>
  31. <result/>
  32. <temp>
  33. </temp>
  34. <init>
  35. <insukind/>
  36. </init>
  37. </root>
  38. </instance>
  39. <submission id="TRPAS00790" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outcut"/>
  40. <submission id="TRPAS00791" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/insukind"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  49. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. submit("TRPAS00791");
  53. model.setValue("/root/send/fromdd", getCurrentDate() );
  54. model.setValue("/root/send/todd", getCurrentDate() );
  55. model.refresh();
  56. grd_outcutlist.colDisabled(grd_outcutlist.colRef("insukind")) = true;
  57. grd_outcutlist.mergeCol(grd_outcutlist.colRef("insukind")) = true;
  58. grd_outcutlist.mergeCol(grd_outcutlist.colRef("orddeptnm")) = true;
  59. grd_outcutlist.mergeCol(grd_outcutlist.colRef("patnm")) = true;
  60. grd_outcutlist.mergeCol(grd_outcutlist.colRef("pid")) = true;
  61. grd_outcutlist.mergeCol(grd_outcutlist.colRef("clamym")) = true;
  62. grd_outcutlist.mergeCol(grd_outcutlist.colRef("insubramt")) = true;
  63. grd_outcutlist.mergeCol(grd_outcutlist.colRef("calcscorcd")) = false;
  64. grd_outcutlist.mergeCol(grd_outcutlist.colRef("hngnm")) = false;
  65. grd_outcutlist.mergeCol(grd_outcutlist.colRef("druglimitamt")) = false;
  66. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtoneqty")) = false;
  67. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtdayqty")) = false;
  68. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjttotqty")) = false;
  69. grd_outcutlist.mergeCol(grd_outcutlist.colRef("adjtamt")) = false;
  70. grd_outcutlist.mergeCol(grd_outcutlist.colRef("abdresnmemo")) = false;
  71. grd_outcutlist.mergeCol(grd_outcutlist.colRef("orddd")) = false;
  72. grd_outcutlist.mergeCol(grd_outcutlist.colRef("judgrnm")) = false;
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body pagewidth="1100" pageheight="784">
  77. <group id="group2" style="left:0px; top:23px; width:1100px; height:37px; ">
  78. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:1090px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  79. <button id="btn_search" class="btn1_letter2" style="left:1025px; top:10px; width:56px; height:22px; ">
  80. <caption>조회</caption>
  81. <script type="javascript" ev:event="DOMActivate">
  82. <![CDATA[
  83. submit("TRPAS00790", true) ;
  84. var cnt = getNodesetCount("/root/main/outcut/outcutlist/insukind");
  85. if ( cnt < 1 ) {
  86. messageBox("조회된 내역이 없습니다.", "I");
  87. } else {
  88. for ( i=grd_outcutlist.fixedrows; i<grd_outcutlist.rows; i++ ) {
  89. var insu = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("insukind"));
  90. var insu_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("insukind"));
  91. var orddeptnm = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("orddeptnm"));
  92. var orddeptnm_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("orddeptnm"));
  93. var pid = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("pid"));
  94. var pid_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("pid"));
  95. var clamym = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("clamym"));
  96. var clamym_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("clamym"));
  97. var insubramt = grd_outcutlist.valueMatrix(i-1, grd_outcutlist.colRef("insubramt"));
  98. var insubramt_up = grd_outcutlist.valueMatrix(i, grd_outcutlist.colRef("insubramt"));
  99. if ( insu == insu_up && orddeptnm == orddeptnm_up && pid == pid_up && clamym == clamym_up && insubramt == insubramt_up) {
  100. grd_outcutlist.mergeRow(i) = true;
  101. grd_outcutlist.mergeRow(i-1) = true;
  102. //grd_outcutlist.rowStyle(i, "all", "background-color") = "#CCFF99";
  103. //grd_outcutlist.rowStyle(i-1, "all", "background-color") = "#CCFF99";
  104. } else {
  105. grd_outcutlist.mergeRow(i) = false;
  106. //grd_outcutlist.rowStyle(i, "all", "background-color") = "#FFFFFF";
  107. }
  108. }
  109. }
  110. grd_outcutlist.mergeCells = "bycol";
  111. ]]>
  112. </script>
  113. </button>
  114. <line id="line1" class="line_4" visibility="visible" style="x1:1015px; y1:10px; x2:1015px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  115. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">일자 :</caption>
  116. <input id="input1" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:77px; top:9px; width:90px; height:19px; "/>
  117. <input id="input2" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:190px; top:9px; width:90px; height:19px; "/>
  118. <caption id="caption1" style="left:172px; top:9px; width:20px; height:20px; font-size:12pt; font-weight:bold; ">~</caption>
  119. <input id="input3" ref="/root/send/srchpid" class="input_essential" style="left:410px; top:10px; width:85px; height:19px; ">
  120. <script type="javascript" ev:event="onkeypress">
  121. <![CDATA[
  122. if (event.keyCode == "13")
  123. {
  124. model.setValue("/root/send/srchpid", input3.currentText);
  125. btn_search.dispatch("DOMActivate");
  126. }
  127. ]]>
  128. </script>
  129. </input>
  130. <caption id="caption3" class="search_name" style="left:320px; top:10px; width:100px; height:17px; ">환자번호 :</caption>
  131. <button id="button3" class="icon_search" style="left:500px; top:10px; width:16px; height:16px; ">
  132. <caption/>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. var ptbs_pid = model.getValue("/root/send/srchpid");
  136. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  137. model.resetInstanceNode("/root/send/data");
  138. } else {
  139. model.resetInstanceNode("/root/send/data");
  140. model.setValue("/root/send/data/pid",model.getValue("/root/send/srchpid"));
  141. model.setValue("/root/send/data/srchcond","1")
  142. }
  143. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data", "/root/send");
  144. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  145. model.setValue("/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  146. model.refresh();
  147. }
  148. btn_search.dispatch("DOMActivate");
  149. ]]>
  150. </script>
  151. </button>
  152. </group>
  153. <group id="group3" style="left:0px; top:0px; width:1100px; height:13px; ">
  154. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">원외처방 삭감내역 조회</caption>
  155. </group>
  156. <caption id="caption2" class="tit_2" style="left:10px; top:68px; width:140px; height:13px; ">원외처방 삭감내역</caption>
  157. <datagrid id="grd_outcutlist" nodeset="/root/main/outcut/outcutlist" autoresize="true" caption="보험유형^진료과^환자명^환자번호^진료월^추가징수액^진료일자^심사자^처방코드^처방명^단가^수량^일투여량^총투여량^금액^사유" colsep="^" colwidth="79, 125, 70, 70, 70, 70, 70, 70, 100, 200, 70, 70, 70, 70, 70, 350" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1095px; height:662px; text-align:center; ">
  158. <col ref="insukind" type="combo">
  159. <choices>
  160. <itemset nodeset="/root/init/insukind">
  161. <label ref="nm"/>
  162. <value ref="cd"/>
  163. </itemset>
  164. </choices>
  165. </col>
  166. <col ref="orddeptnm"/>
  167. <col ref="patnm"/>
  168. <col ref="pid"/>
  169. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  170. <col ref="insubramt" format="#,###" style="text-align:right; "/>
  171. <col ref="orddd" format="yyyy-mm-dd"/>
  172. <col ref="judgrnm"/>
  173. <col ref="calcscorcd"/>
  174. <col ref="hngnm"/>
  175. <col ref="druglimitamt" format="#,###"/>
  176. <col ref="adjtoneqty" format="#,###"/>
  177. <col ref="adjtdayqty" format="#,###"/>
  178. <col ref="adjttotqty" format="#,###"/>
  179. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  180. <col ref="abdresnmemo"/>
  181. </datagrid>
  182. <button id="button2" class="btn2_letter4" style="left:1024px; top:64px; width:64px; height:19px; ">
  183. <caption>엑셀저장</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  187. if (fileName != "")
  188. {
  189. grd_outcutlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  190. }
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="button1" class="btn2_letter2" style="left:1040px; top:758px; width:42px; height:19px; ">
  195. <caption>닫기</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. window.close();
  199. ]]>
  200. </script>
  201. </button>
  202. <line id="line2" class="line_1" style="x1:0px; y1:85px; x2:1095px; y2:85px; "/>
  203. </xhtml:body>
  204. </xhtml:html>