SMAHS00500_일일수납내역.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <main>
  10. <dyrcptlst>
  11. <item>
  12. <healexamkind/>
  13. <seqno/>
  14. <pid/>
  15. <hngnm/>
  16. <cmpynm/>
  17. <totamt/>
  18. <discamt/>
  19. <cmpyamt/>
  20. <payinsubamt/>
  21. <payinsucncramt/>
  22. <payinsuoralamt/>
  23. <payhealcntramt/>
  24. <payinsuetcamt/>
  25. <ownuncoamt/>
  26. <cardamt/>
  27. <cashamt/>
  28. <mdlrcptamt/>
  29. <rcptrid/>
  30. <remfact/>
  31. <groupflag/>
  32. <onlineamt/>
  33. </item>
  34. </dyrcptlst>
  35. <export/>
  36. </main>
  37. <send>
  38. <srchfromdd/>
  39. <srchinstcd/>
  40. <srchpid/>
  41. <srchhealexamflag/>
  42. <srchhealexamplacecd/>
  43. <srchplceflag/>
  44. <srchtodd/>
  45. </send>
  46. <hidden>
  47. </hidden>
  48. <init>
  49. <baseinfo>
  50. <healexamflag>
  51. <A0068>
  52. <cdid/>
  53. <cdnm/>
  54. </A0068>
  55. </healexamflag>
  56. <healexamdetlflaglist/>
  57. <healexamdetlflaglist2/>
  58. <healexamplacecd/>
  59. <plceflag/>
  60. </baseinfo>
  61. </init>
  62. <report>
  63. <cmpyamtlst/>
  64. </report>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  74. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  75. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. // 일자초기화
  79. model.setValue("/root/send/srchfromdd" , getCurrentDate());
  80. // 기관코드 초기화
  81. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
  82. // 공통코드 조회
  83. zbcfGetCodeList( new Array("A0068","A0069" ,"A0070","A0110" ),
  84. new Array("/root/init/baseinfo/healexamflag" ,"/root/init/baseinfo/healexamdetlflaglist" , "/root/init/baseinfo/healexamdetlflaglist2", "/root/init/baseinfo/plceflag" ) );
  85. var deptLength = model.instances(0).selectNodes( "/root/init/baseinfo/plceflag/A0110" ).length+1;
  86. model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdid", "");
  87. model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdnm", "전체");
  88. //건진구분장소
  89. healGetCodeList( new Array("S600")
  90. , new Array("/root/init/baseinfo/healexamplacecd"));
  91. model.removenode("/root/init/baseinfo/healexamplacecd/S600[0]");
  92. model.removenode("/root/init/baseinfo/healexamplacecd/S600[1]" );
  93. addComboItem("cmb_srchhealexamplacecd","전체","","above");
  94. model.refresh();
  95. ]]>
  96. </script>
  97. <submission id="TRZBC00101"/>
  98. <script type="javascript">
  99. <![CDATA[
  100. /*
  101. * 건진종류 소계 및 총계를 생성한다.
  102. */
  103. function fSetRcptSum() {
  104. // 그리드 merge 및 합계 초기화
  105. grd_dyrcptlst.autoMerge = false;
  106. grd_dyrcptlst.mergeCells = "bycolrec";
  107. grd_dyrcptlst.subtotalPosition = "below";
  108. grd_dyrcptlst.multiTotals = true;
  109. grd_dyrcptlst.subtotal("clear", 0, 0);
  110. for(var i =0; i < grd_dyrcptlst.cols ; i++) {
  111. // 소계
  112. if(i >= grd_dyrcptlst.colRef("totamt") && i <= grd_dyrcptlst.colRef("restamt")) {
  113. grd_dyrcptlst.subtotal("sum", grd_dyrcptlst.colRef("healexamkind") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamkind"), "소계" );
  114. grd_dyrcptlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamkind") , "총계" );
  115. }
  116. // 화면 merge
  117. if( i == grd_dyrcptlst.colRef("healexamkind")) {
  118. grd_dyrcptlst.mergeCol(i) = true;
  119. }else{
  120. grd_dyrcptlst.mergeCol(i) = false;
  121. }
  122. }
  123. grd_dyrcptlst.merge();
  124. }
  125. ]]>
  126. </script>
  127. <submission id="TRAHA00001"/>
  128. <submission id="TRAHS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dyrcptlst"/>
  129. <submission id="TRAHS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/report/cmpyamtlst"/>
  130. </model>
  131. </xhtml:head>
  132. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1051;">
  133. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  134. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">일일수납내역</caption>
  135. </group>
  136. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  137. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  138. <caption id="caption2" class="search_name" style="left:180px; top:9px; width:73px; height:17px; ">일자 :</caption>
  139. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  140. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  141. <caption>조회</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. model.makeValue("/root/send/srchorddeptcd", "ALL");
  145. model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchfromdd"));
  146. var ret = submit("TRAHS00501");
  147. if(ret) {
  148. fSetRcptSum();
  149. model.refresh();
  150. }
  151. ]]>
  152. </script>
  153. </button>
  154. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="7" inputtype="date" style="left:247px; top:8px; width:88px; height:19px; ">
  155. <script type="javascript" ev:event="onkeydown">
  156. <![CDATA[
  157. /* if( event.keyCode == 13 ) {
  158. var pCurTargetObj = event.ptarget.parent;
  159. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  160. event.keyCode = 9;
  161. pCurTargetObj.dispatch("onkeydown");
  162. }
  163. else {
  164. event.keyCode = 9;
  165. }
  166. }
  167. event.stopPropagation(); */
  168. ]]>
  169. </script>
  170. </input>
  171. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:976px; top:7px; width:80px; height:22px; ">
  172. <caption>액셀저장</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  176. grd_dyrcptlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  177. ]]>
  178. </script>
  179. </button>
  180. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  181. <caption>출력</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. // 매개변수
  185. model.makeValue("/root/main/export/weeknm" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDayOfWeek("k"));
  186. model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD"));
  187. exeReportPreview("RPAHS00501", "XMLSTR", "/root/main/export","", "false","","","","","false");
  188. ]]>
  189. </script>
  190. </button>
  191. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  192. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:95px; top:8px; width:80px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
  195. <label ref="cdnm"/>
  196. <value ref="cdid"/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <caption id="caption1" class="search_name" style="left:340px; top:9px; width:86px; height:17px; ">환자ID</caption>
  201. <input id="input1" ref="/root/send/srchpid" style="left:405px; top:8px; width:85px; height:19px; "/>
  202. <button id="button1" class="btn6_letter9" visibility="visible" style="left:831px; top:6px; width:80px; height:22px; ">
  203. <caption>회사별실시현황출력</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. // 매개변수
  207. model.makeValue("/root/main/export/weeknm" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDayOfWeek("k"));
  208. model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD"));
  209. submit("TRAHS00502");
  210. exeReportPreview("RPAHS00502", "XMLSTR", "/root/main/export","", "false","","","","","false");
  211. ]]>
  212. </script>
  213. </button>
  214. <caption id="caption3" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
  215. <caption id="caption4" class="search_name" style="left:495px; top:9px; width:86px; height:17px; ">장소구분</caption>
  216. <select1 id="cmb_srchhealexamplacecd" ref="/root/send/srchhealexamplacecd" class="combo_search" appearance="minimal" style="left:575px; top:8px; width:70px; height:19px; ">
  217. <choices>
  218. <itemset nodeset="/root/init/baseinfo/healexamplacecd/S600">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. </select1>
  224. <select1 id="cmb_srchplceflag" ref="/root/send/srchplceflag" appearance="minimal" style="left:754px; top:8px; width:60px; height:19px; ">
  225. <choices>
  226. <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
  227. <label ref="cdnm"/>
  228. <value ref="cdid"/>
  229. </itemset>
  230. </choices>
  231. </select1>
  232. <caption id="caption36" class="search_name" style="left:650px; top:9px; width:115px; height:17px; ">출장내원구분</caption>
  233. </group>
  234. <datagrid id="grd_dyrcptlst" nodeset="/root/main/dyrcptlst/item" caption="건진종류^순번^등록번호^성명^단체명(계정명)^총진료비^할인액^미수금액^미수금액^미수금액^미수금액^미수금액^미수금액^미수금액^실수납액^실수납액^실수납액^선수대체^절사액^TerminalID^비고^GROUPFLAG^groupflag^healexamdetlflag^rcptdd^rcptno^onlinecash^reduamt|건진종류^순번^등록번호^성명^단체명(계정명)^총진료비^할인액^단체금액^공단(1,2차)^공담(암)^공단(구강)^공단(보건소)^공단(기타)^개인미수^카드금액^현금^통장입금^선수대체^절사액^TerminalID^비고^GROUPFLAG^groupflag^healexamdetlflag^rcptdd^rcptno^onlinecash^reduamt" colsep="^" colwidth="90, 30, 80, 80, 130, 80, 80, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 76, 46, 62, 79, 100, 100, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  235. <col ref="healexamkind" style="text-align:center; "/>
  236. <col ref="sno"/>
  237. <col ref="pid"/>
  238. <col ref="hngnm"/>
  239. <col ref="cmpynm"/>
  240. <col ref="totamt" format="(-,+)#,###"/>
  241. <col ref="discamt" format="(-,+)#,###"/>
  242. <col ref="cmpyamt" format="(-,+)#,###"/>
  243. <col ref="payinsubamt" format="(-,+)#,###"/>
  244. <col ref="payinsucncramt" format="(-,+)#,###"/>
  245. <col ref="payinsuoralamt" format="(-,+)#,###"/>
  246. <col ref="payhealcntramt" format="(-,+)#,###"/>
  247. <col ref="payinsuetcamt" format="(-,+)#,###"/>
  248. <col ref="ownuncoamt" format="(-,+)#,###"/>
  249. <col ref="cardamt" format="(-,+)#,###"/>
  250. <col ref="cashamt" format="(-,+)#,###"/>
  251. <col ref="onlineamt" format="(-,+)#,###"/>
  252. <col ref="mdlrcptamt" format="(-,+)#,###"/>
  253. <col ref="restamt" format="(-,+)#,###"/>
  254. <col ref="rcptrid"/>
  255. <col ref="remfact"/>
  256. <col ref="seqno"/>
  257. <col ref="groupflag" visibility="hidden"/>
  258. <col ref="healexamdetlflag" visibility="hidden"/>
  259. <col ref="rcptdd" visibility="hidden"/>
  260. <col ref="rcptno" visibility="hidden"/>
  261. <col ref="onlinecash" visibility="hidden"/>
  262. <col ref="reduamt" visibility="hidden"/>
  263. <col ref="totcmpyamt" visibility="hidden"/>
  264. <script type="javascript" ev:event="onaftersort">
  265. <![CDATA[
  266. grd_dyrcptlst.gridToInstance();
  267. ]]>
  268. </script>
  269. </datagrid>
  270. </xhtml:body>
  271. </xhtml:html>