SMPMI06200_외국인일자별수납리스트.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <ioflag>I O S</ioflag>
  13. </send>
  14. <main>
  15. <rcptlist>
  16. <state/>
  17. <pid/>
  18. <hngnm/>
  19. <orddd/>
  20. <dschdd/>
  21. <rcptdd/>
  22. <orddeptnm/>
  23. <totalamt/>
  24. <payment/>
  25. <markpay/>
  26. <insukind/>
  27. <suppkind/>
  28. <diagcd/>
  29. <diagnm/>
  30. </rcptlist>
  31. </main>
  32. <hidden>
  33. </hidden>
  34. <temp>
  35. </temp>
  36. <list>
  37. </list>
  38. </root>
  39. </instance>
  40. <submission id="TRPMI06200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  41. <submission id="TXPMI06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/dateHelper.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="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  50. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fGetUserInfosSampling();//세션정보
  54. model.setValue("/root/send/fromdd", getCurrentDate());
  55. model.setValue("/root/send/todd", getCurrentDate());
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. // 외국인 수납파일 생성
  62. function fMakeForeRcptFile() {
  63. //조회조건 체크
  64. var vcheck_fromdd = (model.getValue("/root/send/fromdd")).getTrim();
  65. var vcheck_todd = (model.getValue("/root/send/todd")).getTrim();
  66. //환자번호 존재시 기간 상관없이 조회
  67. if (vcheck_fromdd == "" || vcheck_fromdd == " " || vcheck_fromdd == "-" || vcheck_fromdd == null ) {
  68. messageBox("시작일자가 입력되지","E007");
  69. model.setFocus("ipt_fromdd");
  70. return;
  71. }
  72. if (vcheck_todd == "" || vcheck_todd == " " || vcheck_todd == "-" || vcheck_todd == null ) {
  73. messageBox("종료일자가 입력되지","E007");
  74. model.setFocus("ipt_todd");
  75. return;
  76. }
  77. if (isValidDateTime(vcheck_fromdd, "YYYYMMDD") != true) {
  78. messageBox("시작일자 형식 오류입니다!","E999","");
  79. return false;
  80. }
  81. if (isValidDateTime(vcheck_todd, "YYYYMMDD") != true) {
  82. messageBox("종료일자 형식 오류입니다!","E999","");
  83. return false;
  84. }
  85. if (eval(vcheck_fromdd) > eval(vcheck_todd)) {
  86. messageBox("종료일자는 시작일자보다 같거나 커야 합니다!","E999","");
  87. return false;
  88. }
  89. if (submit("TXPMI06201")) {
  90. messageBox("외국인수납파일생성 배치가 실행되었습니다.", "I000");
  91. }
  92. }
  93. ]]>
  94. </script>
  95. </xhtml:head>
  96. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  98. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">외국인 수납 내역</caption>
  99. </group>
  100. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:720px; ">
  101. <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
  102. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  104. <caption id="caption39" class="search_name" style="left:8px; top:9px; width:112px; height:17px; ">수납기간조회 :</caption>
  105. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1111px; top:7px; width:56px; height:22px; text-align:left; ">
  106. <caption>조회</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. if (model.getValue("/root/send/ioflag").length < 1) {
  110. messageBox("진료구분은 적어도 1개 이상 선택해야 합니다.", "E999");
  111. return;
  112. }
  113. var fromdd = model.getValue("/root/send/fromdd");
  114. var todd = model.getValue("/root/send/todd");
  115. if (isNull(fromdd) || isNull(todd)) {
  116. messageBox("시작일자 및 종료일자는 반드시 입력해야 합니다.", "E999");
  117. return;
  118. }
  119. var minusrslt = getDateInterval(fromdd,todd);
  120. if (minusrslt > 93) {
  121. messageBox("최대 3개월까지 조회가능합니다.\r\n장기간 데이터는 파일생성 기능을 통해 처리하십시오.", "E999");
  122. return;
  123. }
  124. submit("TRPMI06200");
  125. ]]>
  126. </script>
  127. </button>
  128. <input id="input1" ref="/root/send/fromdd" navindex="1" inputtype="date" style="left:130px; top:8px; width:85px; height:19px; "/>
  129. <input id="input2" ref="/root/send/todd" navindex="2" inputtype="date" style="left:232px; top:8px; width:85px; height:19px; "/>
  130. <caption id="caption1" style="left:216px; top:11px; width:15px; height:15px; text-align:center; ">~</caption>
  131. <caption id="caption3" class="search_name" style="left:345px; top:10px; width:86px; height:17px; ">진료구분 :</caption>
  132. <select id="radio1" ref="/root/send/ioflag" navindex="4" overflow="visible" appearance="full" cols="4" style="left:435px; top:10px; width:145px; height:20px; border-style:none; ">
  133. <choices>
  134. <item>
  135. <label>입원</label>
  136. <value>I</value>
  137. </item>
  138. <item>
  139. <label>외래</label>
  140. <value>O</value>
  141. </item>
  142. <item>
  143. <label>건진</label>
  144. <value>S</value>
  145. </item>
  146. </choices>
  147. </select>
  148. </group>
  149. <caption id="caption2" class="tit_2" style="left:5px; top:50px; width:126px; height:13px; ">일자별 수납리스트</caption>
  150. <line id="line1" class="line_1" style="x1:6px; y1:70px; x2:1165px; y2:69px; "/>
  151. <datagrid id="grd_rcptlist" nodeset="/root/main/rcptlist" caption="국가^환자번호^성명^생년^월일^주민번호^성별^구분^진료일자^퇴원일자^수납일^진료과^진료의^진료의^진료비총액^본인부담금^조합부담금^보험유형^보조유형^상병코드^상병명^대표 EDI코드^대표 EDI처방명" colsep="^" colwidth="100, 76, 90, 45, 45, 70, 40, 40, 85, 85, 85, 110, 60, 50, 74, 74, 74, 76, 110, 100, 180, 100, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:75px; width:1165px; height:640px; text-align:center; ">
  152. <col ref="state" style="text-align:center; "/>
  153. <col ref="pid"/>
  154. <col ref="hngnm"/>
  155. <col ref="brthyy"/>
  156. <col ref="brthmd"/>
  157. <col ref="rrgstno2"/>
  158. <col disabled="true" ref="sex" type="combo">
  159. <choices>
  160. <item>
  161. <label>남</label>
  162. <value>M</value>
  163. </item>
  164. <item>
  165. <label>여</label>
  166. <value>F</value>
  167. </item>
  168. </choices>
  169. </col>
  170. <col disabled="true" ref="ordflag" type="combo">
  171. <choices>
  172. <item>
  173. <label>입원</label>
  174. <value>I</value>
  175. </item>
  176. <item>
  177. <label>외래</label>
  178. <value>O</value>
  179. </item>
  180. <item>
  181. <label>건진</label>
  182. <value>S</value>
  183. </item>
  184. </choices>
  185. </col>
  186. <col ref="orddd" format="yyyy-mm-dd"/>
  187. <col ref="dschdd" format="yyyy-mm-dd"/>
  188. <col ref="rcptdd" format="yyyy-mm-dd"/>
  189. <col ref="orddeptnm"/>
  190. <col ref="orddrnm" style="text-align:center; "/>
  191. <col ref="orddrid" style="text-align:center; "/>
  192. <col ref="totalamt" format="#,###"/>
  193. <col ref="payment" format="#,###"/>
  194. <col ref="markpay" format="#,###"/>
  195. <col ref="insukind"/>
  196. <col ref="suppkind"/>
  197. <col ref="diagcd"/>
  198. <col ref="diagnm"/>
  199. <col ref="edicd"/>
  200. <col ref="edinm"/>
  201. </datagrid>
  202. <button id="button1" class="btn2_letter2" style="left:1060px; top:45px; width:45px; height:20px; ">
  203. <caption>출력</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. exeReportPreview("RPPMI06200", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button2" class="btn2_letter4" style="left:1105px; top:45px; width:64px; height:19px; ">
  211. <caption>엑셀저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  215. if (fileName != "")
  216. {
  217. grd_rcptlist.saveExcel(fileName, "SheetName;col_6:label;col_7:label;", true, true, "", "", true);
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="button3" class="btn5_letter4" style="left:898px; top:45px; width:64px; height:19px; ">
  223. <caption>파일생성</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. fMakeForeRcptFile();
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="button4" class="btn5_letter6" style="left:965px; top:45px; width:86px; height:19px; ">
  231. <caption>파일생성로그</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var todd = getCurrentDate();
  235. todd = todd.toDate().getAddDate(1, 'D');
  236. zsbfOpenBatchLogPopup("ipatmngtmgr.ForeRcptFileBatch", getCurrentDate(), todd.getDateFormat());
  237. ]]>
  238. </script>
  239. </button>
  240. </group>
  241. </xhtml:body>
  242. </xhtml:html>