SMPAS00550_계정별미수금현황.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <!-- 화면 SMPAS00550_계정별미수금현황
  3. Remark : 입원, 외래 미수금 현황에서 계정별 미수현황으로 사용되며 메인으로도 사용이 된다.
  4. 개발자 : 이형재
  5. -->
  6. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>미수금현황장표</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <receivamtlist>
  15. <receivamtstats>
  16. <uncocd/>
  17. <discunconm/>
  18. <uncnt/>
  19. <uncoamt/>
  20. </receivamtstats>
  21. </receivamtlist>
  22. <search>
  23. <fromdata/>
  24. <todata/>
  25. <ordergubun>ALL</ordergubun>
  26. <amtgubun>ALL</amtgubun>
  27. <daygubun>ALL</daygubun>
  28. <uncocdflag>ALL</uncocdflag>
  29. </search>
  30. <receivamtsumlist>
  31. <receivamtsumstats>
  32. <uncocd>총계</uncocd>
  33. <discunconm/>
  34. <uncnt/>
  35. <uncoamt/>
  36. </receivamtsumstats>
  37. </receivamtsumlist>
  38. <tmpinfo>
  39. <info>
  40. <user/>
  41. </info>
  42. </tmpinfo>
  43. <rcv>
  44. <uncocd/>
  45. </rcv>
  46. </main>
  47. <init>
  48. <orddeptcd>
  49. <orddeptcdlist>
  50. <cd/>
  51. <nm/>
  52. </orddeptcdlist>
  53. </orddeptcd>
  54. <orddrid>
  55. <orddridlist>
  56. <cd/>
  57. <nm/>
  58. <dp/>
  59. <sp/>
  60. </orddridlist>
  61. </orddrid>
  62. </init>
  63. <hidden>
  64. <tmp/>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-model-construct-done">
  69. <![CDATA[
  70. //진료과코드 진료의사ID 조회
  71. pamGetDeptCDDrIDList();
  72. submit("TRPAS00001");
  73. var vToday = new Date();
  74. var tmpYear = vToday.getYear();
  75. var tmpMonth = vToday.getMonth()+1;
  76. var tmpDate = vToday.getDate();
  77. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  78. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  79. if(model.getValue("/root/main/search/fromdata") == ''){
  80. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-1);
  81. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  82. }
  83. //Rexport에 출력날자를 보여주기위한 데이터 저장
  84. model.makeNode("/root/main/tmp/print/date");
  85. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  86. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  87. input7.refresh();
  88. input1.refresh();
  89. datagrid2.explorerbar = "sort";
  90. ]]>
  91. </script>
  92. <script type="javascript">
  93. <![CDATA[
  94. function rcvSearchCond()
  95. {
  96. }
  97. ]]>
  98. </script>
  99. <bind id="bind1" ref="/root/main/receivamtlist/receivamtstats" calculate="now() + ."/>
  100. <bind id="bind2" ref="/root/main/receivamtsumlist/receivamtsumstats/uncnt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncnt);"/>
  101. <bind id="bind3" ref="/root/main/receivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncoamt);"/>
  102. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
  103. <submission id="TRPAS00550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" replace="instance" resultref="/root/main/data1"/>
  104. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  105. </model>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  112. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  113. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  114. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="1211" pageheight="784">
  117. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  118. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">계정별_미수금현황</caption>
  119. </group>
  120. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  121. <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; "/>
  122. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:205px; height:17px; ">기간 : ~</caption>
  123. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var fromdata = model.getValue("/root/main/search/fromdata");
  129. var todata = model.getValue("/root/main/search/todata");
  130. if(fromdata==""||fromdata==null){
  131. messageBox("시작일을 입력","E007");
  132. model.setFocus("input7");
  133. return false;
  134. }
  135. if(todata==""|| todata==null){
  136. messageBox("끝일을 입력","E007");
  137. model.setFocus("input1");
  138. return false;
  139. }
  140. if(fromdata > todata){
  141. messageBox("시작일이 끝일자보다 클수 ", "C001")
  142. return false;
  143. }else{
  144. model.removeNodeset("/root/main/receivamtlist/receivamtstats");
  145. rcvSearchCond();
  146. var day = model.getValue("/root/main/search/daygubun");
  147. if(day == 4){
  148. datagrid2.colHidden(7) = true;
  149. datagrid2.colHidden(8) = true;
  150. datagrid2.colHidden(4) = false;
  151. datagrid2.colHidden(6) = false;
  152. }else if (day == 5){
  153. datagrid2.colHidden(4) = true;
  154. datagrid2.colHidden(6) = true;
  155. datagrid2.colHidden(7) = false;
  156. datagrid2.colHidden(8) = false;
  157. }else{
  158. datagrid2.colHidden(4) = false;
  159. datagrid2.colHidden(6) = false;
  160. datagrid2.colHidden(7) = false;
  161. datagrid2.colHidden(8) = false;
  162. }
  163. submit("TRPAS00550");
  164. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  165. var nodelist = bind1.nodeset;
  166. if(nodelist.length>0){
  167. line1.visible =true;
  168. button95.visible = true;
  169. }else{
  170. line1.visible =false;
  171. button95.visible = false;
  172. }
  173. copyNodesetType("/root/main/receivamtlist/receivamtstats","/root/main/receivamtsumlist/receivamtsumstats","after");
  174. datagrid2.rebuild();
  175. var sumtotal = instance1.selectNodes("/root/main/receivamtlist/receivamtstats").length + datagrid2.fixedRows - 1;
  176. if(sumtotal ==""||sumtotal==null || sumtotal=="1"){
  177. }else{
  178. datagrid2.mergeByFree(sumtotal,1,sumtotal,2);
  179. }
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:75px; top:8px; width:120px; height:19px; ">
  185. <script type="javascript" ev:event="onkeydown">
  186. <![CDATA[
  187. if( event.keyCode == 13 ) {
  188. var pCurTargetObj = event.ptarget.parent;
  189. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  190. event.keyCode = 9;
  191. pCurTargetObj.dispatch("onkeydown");
  192. }
  193. else {
  194. event.keyCode = 9;
  195. }
  196. }
  197. event.stopPropagation();
  198. ]]>
  199. </script>
  200. </input>
  201. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; ">
  202. <script type="javascript" ev:event="onkeydown">
  203. <![CDATA[
  204. if( event.keyCode == 13 ) {
  205. var pCurTargetObj = event.ptarget.parent;
  206. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  207. event.keyCode = 9;
  208. pCurTargetObj.dispatch("onkeydown");
  209. }
  210. else {
  211. event.keyCode = 9;
  212. }
  213. }
  214. event.stopPropagation();
  215. ]]>
  216. </script>
  217. </input>
  218. <select1 id="combo1" ref="/root/main/search/ordergubun" appearance="minimal" style="left:435px; top:8px; width:100px; height:19px; ">
  219. <choices>
  220. <item>
  221. <label>전체</label>
  222. <value>ALL</value>
  223. </item>
  224. <item>
  225. <label>입원</label>
  226. <value>I</value>
  227. </item>
  228. <item>
  229. <label>외래</label>
  230. <value>O</value>
  231. </item>
  232. </choices>
  233. </select1>
  234. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:976px; top:7px; width:80px; height:22px; ">
  235. <caption>액셀저장</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. var vToday = new Date();
  239. var tmpYear = vToday.getYear();
  240. var tmpMonth = vToday.getMonth()+1;
  241. var tmpDate = vToday.getDate();
  242. //
  243. // model.setValue("/root/documenttitle/title",document.title);
  244. // model.refresh();
  245. // var subjectTitle = model.getValue("/root/documenttitle/title");
  246. //엑셀저장 여부(타이틀별)
  247. var fileName = window.fileDialog("save", "", false, "미수금현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  248. if (fileName != "")
  249. {
  250. datagrid1.saveExcel(fileName, "미수금현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  251. }
  252. ]]>
  253. </script>
  254. </button>
  255. <line id="line1" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  256. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  257. <caption>출력</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. exeReportPreview("RPPAS00101", "XMLSTR", "","", "false","","","","","false");
  261. ]]>
  262. </script>
  263. </button>
  264. <caption id="caption1" class="search_name" style="left:350px; top:9px; width:105px; height:17px; ">진료구분 :</caption>
  265. <caption id="caption3" class="search_name" style="left:550px; top:9px; width:105px; height:17px; ">금액구분 :</caption>
  266. <select1 id="combo2" ref="/root/main/search/amtgubun" appearance="minimal" style="left:635px; top:8px; width:100px; height:19px; ">
  267. <choices>
  268. <item>
  269. <label>전체</label>
  270. <value>ALL</value>
  271. </item>
  272. <item>
  273. <label>미수만</label>
  274. <value>6</value>
  275. </item>
  276. <item>
  277. <label>입금만</label>
  278. <value>E</value>
  279. </item>
  280. </choices>
  281. </select1>
  282. <caption id="caption4" class="search_name" style="left:750px; top:9px; width:105px; height:17px; ">일자구분 :</caption>
  283. <select1 id="combo3" ref="/root/main/search/daygubun" appearance="minimal" style="left:835px; top:8px; width:100px; height:19px; ">
  284. <choices>
  285. <item>
  286. <label>전체</label>
  287. <value>ALL</value>
  288. </item>
  289. <item>
  290. <label>발생일자</label>
  291. <value>4</value>
  292. </item>
  293. <item>
  294. <label>수납일자</label>
  295. <value>5</value>
  296. </item>
  297. </choices>
  298. </select1>
  299. </group>
  300. <datagrid id="datagrid2" nodeset="/root/main/receivamtlist/receivamtstats" caption="등록번호^환자명^진료과^발생일자^본인부담액^미수발생액^입금액^입금일자^미수잔액^담당자^계정^계정명^" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 150" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:1201px; height:705px; ">
  301. <col ref="pid" style="text-align:center; "/>
  302. <col ref="hngnm" style="text-align:left; "/>
  303. <col ref="orddeptcd" type="combo">
  304. <choices>
  305. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  306. <label ref="nm"/>
  307. <value ref="cd"/>
  308. </itemset>
  309. </choices>
  310. </col>
  311. <col ref="orddd" format="yyyy-mm-dd" style="text-align:right; "/>
  312. <col ref="totownbamt" format="#,###" style="text-align:right; "/>
  313. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  314. <col ref="rcptamt" style="text-align:right; "/>
  315. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:right; "/>
  316. <col ref="restamt" format="#,###" style="text-align:right; "/>
  317. <col ref="usernm"/>
  318. <col ref="uncocd" style="text-align:center; "/>
  319. <col ref="discunconm" style="text-align:left; "/>
  320. </datagrid>
  321. </xhtml:body>
  322. </xhtml:html>