SMPMC02402_응급대불환자리스트.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 화면 : SMPMC02402_응급대불환자리스트.xrw
  4. * 설명 : 응급대불환자리스트
  5. * 작성자 : 조영상
  6. * 작성일 : 2010/04/12
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>응급대불환자리스트</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <patinfo>
  17. <patinfolist>
  18. <pid/>
  19. <hngnm/>
  20. <rrgstno1/>
  21. <rrgstno2/>
  22. </patinfolist>
  23. </patinfo>
  24. <h_espm>
  25. <espm>
  26. <espm_ckbox/>
  27. <espm_pid/>
  28. <espm_hngnm/>
  29. <espm_fromdd/>
  30. <espm_todd/>
  31. <espm_orddeptcd/>
  32. <espm_orddeptcdnm/>
  33. <espm_medispclid/>
  34. <espm_medispclidnm/>
  35. <espm_insukind/>
  36. <espm_suppkind/>
  37. <espm_uncoamt/>
  38. <espm_appfromdd/>
  39. <espm_appenddd/>
  40. <espm_clamamt/>
  41. <espm_clamdd/>
  42. <espm_uncorestamt/>
  43. <espm_uncocd/>
  44. <espm_remfact/>
  45. </espm>
  46. </h_espm>
  47. </main>
  48. <send>
  49. <data1>
  50. <ddflag/>
  51. <pid/>
  52. <appfromdd/>
  53. <apptodd/>
  54. </data1>
  55. <data2>
  56. </data2>
  57. <data3>
  58. <pid/>
  59. <indd/>
  60. <cretno/>
  61. </data3>
  62. </send>
  63. <hidden/>
  64. <init>
  65. <P0083list>
  66. <P0083>
  67. <cdnm/>
  68. <cdid/>
  69. </P0083>
  70. </P0083list>
  71. </init>
  72. <temp/>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. model.makenode("/root/node_bk/main");
  78. model.makenode("/root/node_bk/send");
  79. model.copynode("/root/node_bk/main" ,"/root/main");
  80. model.copynode("/root/node_bk/send" ,"/root/send");
  81. fInitialize();
  82. //원무사용 기초코드 조회 cache기능 추가
  83. if ( copyFromCache("TRPAMCOM01_depttree","/root/init") ) {
  84. //
  85. } else {
  86. if ( submit("TRPAMCOM01") ) {
  87. storeIntoCache("TRPAMCOM01_depttree","/root/init","540");
  88. }
  89. }
  90. ]]>
  91. </script>
  92. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
  93. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  94. <submission id="TRPMC02407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
  95. <submission id="TXPMC02405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/temp"/>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  102. <script type="javascript">
  103. <![CDATA[
  104. function fInitialize() {
  105. model.copynode("/root/main" , "/root/node_bk/main");
  106. model.copynode("/root/send" , "/root/node_bk/send");
  107. model.setValue("/root/send/data1/ddflag" , "clamdd");
  108. model.setValue("/root/send/data1/appfromdd" , getCurrentDate().substr(0,6) + "01" );
  109. model.setValue("/root/send/data1/apptodd" , getCurrentDate());
  110. model.refresh();
  111. }
  112. //보조유형세팅
  113. function fEactlistClick0() {
  114. for(var a =0; a < grd_espm.rows ; a++) {
  115. var espm_insukind = model.getValue("/root/main/h_espm/espm["+ a +"]/espm_insukind");
  116. grd_espm.cellComboNodeset(a,8) = "/root/init/suppkind[up = '"+espm_insukind+"' and (io = 'A' or io = 'I')]";
  117. }
  118. }
  119. //입금액 저장
  120. function fSave() {
  121. if(getNodesetCount("/root/main/h_espm/espm[espm_ckbox = 'true']") == 0 ) {
  122. messageBox("체크된 내역이 있어야 저장 가능합니다.","E999");
  123. return;
  124. }
  125. model.copynode("/root/send/data2", "/root/node_bk/send/data2");
  126. var iSelRow = 0;
  127. for (var a = 1; a<= grd_espm.rows ; a++) {
  128. if(model.getValue("/root/main/h_espm/espm["+a+"]/espm_ckbox") == "true"){
  129. copyNodeListType("/root/send/data2","/root/main/h_espm/espm["+a+"]","after");
  130. }
  131. }
  132. if(submit("TXPMC02405")) fSearch();
  133. }
  134. //조회
  135. function fSearch() {
  136. model.setValue("/root/send/data1/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  137. submit("TRPMC02407");
  138. model.copyNode("/root/main/h_espm","/root/hidden/rcv/h_espm");
  139. fEactlistClick0();
  140. model.refresh();
  141. }
  142. ]]>
  143. </script>
  144. </xhtml:head>
  145. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  146. <group id="group1" style="left:0px; top:0px; width:800px; height:13px; ">
  147. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">응급대불환자리스트</caption>
  148. </group>
  149. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  150. <line id="line1" class="line_1" style="x1:0px; y1:56px; x2:1194px; y2:56px; "/>
  151. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:10px; width:1194px; height:33px; "/>
  152. <button id="button1" class="btn1_letter2" style="left:1130px; top:17px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. fSearch();
  157. ]]>
  158. </script>
  159. </button>
  160. <caption id="caption7" style="left:357px; top:16px; width:20px; height:20px; text-align:center; ">~</caption>
  161. <caption id="caption4" class="search_name" style="left:19px; top:17px; width:86px; height:17px; ">기준일자 :</caption>
  162. <line id="line4" class="line_4" style="x1:477px; y1:16px; x2:477px; y2:36px; "/>
  163. <input id="ipt_fromdd" ref="/root/send/data1/appfromdd" class="input_search" inputtype="date" style="left:269px; top:17px; width:85px; height:19px; "/>
  164. <input id="ipt_todd" ref="/root/send/data1/apptodd" class="input_search" inputtype="date" style="left:377px; top:17px; width:85px; height:19px; "/>
  165. <datagrid id="grd_espm" nodeset="/root/main/h_espm/espm" caption="√^등록번호^환자명^-^진료기간^진료기간^진료과^진료의^유형^보조^총진료비^미수금^대불적용기간^대불적용기간^대불청구액^청구일자^대불제외미수금^대불입금일자^대불입금액^미수잔액^메모" colsep="^" colwidth="26, 70, 55, 19, 70, 70, 90, 69, 33, 100, 85, 85, 70, 70, 85, 70, 90, 100, 85, 85, 500" frozencols="4" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:61px; width:1194px; height:674px; ">
  166. <col ref="espm_ckbox" type="checkbox"/>
  167. <col ref="espm_pid"/>
  168. <col ref="espm_hngnm"/>
  169. <col type="inputbutton"/>
  170. <col ref="espm_fromdd" format="yyyy-mm-dd"/>
  171. <col ref="espm_todd" format="yyyy-mm-dd"/>
  172. <col ref="espm_orddeptcdnm"/>
  173. <col ref="espm_medispclidnm"/>
  174. <col ref="espm_insukind" style="text-align:center; "/>
  175. <col disabled="true" ref="espm_suppkind" type="combo">
  176. <choices>
  177. <itemset nodeset="/root/init/suppkind">
  178. <label ref="nm"/>
  179. <value ref="cd"/>
  180. </itemset>
  181. </choices>
  182. </col>
  183. <col ref="espm_erordamt" format="(-)#,###" style="text-align:right; "/>
  184. <col ref="espm_uncoamt" format="(-)#,###" style="text-align:right; "/>
  185. <col ref="espm_appfromdd" format="yyyy-mm-dd"/>
  186. <col ref="espm_appenddd" format="yyyy-mm-dd"/>
  187. <col ref="espm_clamamt" format="(-)#,###" style="text-align:right; "/>
  188. <col ref="espm_clamdd" format="yyyy-mm-dd"/>
  189. <col ref="espm_clamrestamt" format="(-)#,###" style="text-align:right; "/>
  190. <col ref="espm_rcptdd" type="inputdate" format="yyyy-mm-dd" style="font-weight:bold; color:#ff0066; text-align:center; "/>
  191. <col ref="espm_rcptamt" type="input" format="(-)#,###" style="font-weight:bold; color:#ff0066; text-align:right; "/>
  192. <col ref="espm_uncorestamt" type="output" format="(-)#,###" style="text-align:right; "/>
  193. <col ref="espm_remfact" type="input"/>
  194. <script type="javascript" ev:event="onbuttonclick">
  195. <![CDATA[
  196. if(grd_espm.col == 3) {
  197. model.setValue("/root/send/data3/pid" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_pid"));
  198. model.setValue("/root/send/data3/indd" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_inoutdd"));
  199. model.setValue("/root/send/data3/cretno" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_cretno"));
  200. modal("SMPMC02403");
  201. }
  202. ]]>
  203. </script>
  204. </datagrid>
  205. <select1 id="radio1" ref="/root/send/data1/ddflag" appearance="full" cols="2" overflow="visible" style="left:120px; top:19px; width:145px; height:15px; border-style:none; ">
  206. <choices>
  207. <item>
  208. <label>생성일자</label>
  209. <value>genrdd</value>
  210. </item>
  211. <item>
  212. <label>청구일자</label>
  213. <value>clamdd</value>
  214. </item>
  215. </choices>
  216. </select1>
  217. <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" autonext="false" maxlength="10" style="left:584px; top:17px; width:80px; height:19px; ">
  218. <script type="javascript" ev:event="onkeyup">
  219. <![CDATA[
  220. if(event.keyCode == "13") {
  221. setInputNodeCurText();
  222. fGetPid();
  223. }
  224. ]]>
  225. </script>
  226. </input>
  227. <button id="btn_pid" class="icon_search" style="left:899px; top:20px; width:16px; height:16px; ">
  228. <caption/>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  232. ]]>
  233. </script>
  234. </button>
  235. <caption id="caption3" class="search_name" style="left:494px; top:17px; width:86px; height:17px; text-align:center; vertical-align:middle; ">등록번호 :</caption>
  236. <output id="output1" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:666px; top:17px; width:70px; height:19px; "/>
  237. <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:738px; top:17px; width:75px; height:19px; "/>
  238. <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:815px; top:17px; width:75px; height:19px; "/>
  239. <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:17px; width:56px; height:22px; ">
  240. <caption>엑셀</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var fileName = window.fileDialog("save", ",", false, "처방미수납자조회"+model.getValue("/root/send/data1/appfromdd"), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  244. if (fileName != "") {
  245. grd_espm.saveExcel(fileName, "sheet1");
  246. //grd_oscllist.saveExcel(fileName, "SheetName", true, true, "", "", selectValue1);
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="btn_unco" class="btn1_letter4" style="left:992px; top:17px; width:80px; height:22px; ">
  252. <caption>미수수납</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. setParameter("SMPAM00100_PID_PARM", model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_pid"));
  256. open("SMPAM00100");
  257. ]]>
  258. </script>
  259. </button>
  260. </group>
  261. <group id="group5" style="left:0px; top:752px; width:1195px; height:28px; ">
  262. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  263. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
  264. <caption>저장</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. fSave();
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  272. <caption>초기화</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. fInitialize();
  276. ]]>
  277. </script>
  278. </button>
  279. </group>
  280. <caption id="caption16" style="left:5px; top:760px; width:485px; height:15px; ">※ 색표시된 컬럼은 수정 가능합니다.</caption>
  281. </xhtml:body>
  282. </xhtml:html>