SPPAS00721_기간별미수조회.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <uncocd/>
  13. <endyn>all</endyn>
  14. <save/>
  15. <condd/>
  16. <fromst/>
  17. <tost/>
  18. <srchtype>R</srchtype>
  19. </send>
  20. <main>
  21. <patinfo>
  22. <patinfolist>
  23. <pid/>
  24. </patinfolist>
  25. </patinfo>
  26. </main>
  27. <source>
  28. </source>
  29. <result/>
  30. <temp>
  31. </temp>
  32. <list>
  33. <uncolist/>
  34. </list>
  35. <init>
  36. <uncocd/>
  37. </init>
  38. <listcount>
  39. <listcnt/>
  40. </listcount>
  41. <hidden>
  42. <seq/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
  47. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  48. <submission id="TRPAS00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list"/>
  49. <submission id="TRPAS00812" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/listcount"/>
  50. <submission id="TRPAS00811" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list"/>
  51. <submission id="TXPAS00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  61. <script type="javascript" src="../../../pam/outordamtmngtweb/js/SMPAO00100.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. model.setValue("/root/send/fromdd" , getCurrentDate());
  65. model.setValue("/root/send/todd" , getCurrentDate());
  66. model.setValue("/root/send/condd", getCurrentDate());
  67. zbcfGetCodeList( new Array("P0072","P0001","P0311"),
  68. new Array("/root/init_com/comncdlist/P0072list" //미수분류(개인,계약처)
  69. ,"/root/init_com/comncdlist/P0001list" //진료형태(입원,외래,응급)
  70. ,"/root/init_com/comncdlist/P0311list" //납부자정보
  71. ) );
  72. if (instance1.selectSingleNode("/root/init_com/comncdlist/P0072list") != null)
  73. {
  74. model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdnm","-");
  75. model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdid","-");
  76. }
  77. if (instance1.selectSingleNode("/root/init_com/comncdlist/P0001list") != null)
  78. {
  79. model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdnm","전체");
  80. model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdid","-");
  81. }
  82. submit("TRPAMCOM01");
  83. addComboItem( "cmd_uncocd" , "", "", "above" );
  84. model.refresh();
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="900" pageheight="784">
  89. <group id="group2" style="left:0px; top:23px; width:895px; height:67px; ">
  90. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:885px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <button id="btn_search" class="btn1_letter2" style="left:825px; top:7px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. // var Day = getDateInterval(model.getValue("/root/send/fromdd") , model.getValue("/root/send/todd") , "dd");
  96. // 조회기간이 1년 이상일시 미수구분을 필히 선택하게 함
  97. // if(Day >= 365) {
  98. // if(model.getValue("/root/send/uncocd") == ""){
  99. // messageBox("미수구분을", "C002");
  100. // return;
  101. // }
  102. // }
  103. submit("TRPAS00811");
  104. grd_uncolist.subtotal("sum", 1, 8, "#,###", "background-color:#99ff99", 6, "소계");
  105. grd_uncolist.subtotal("sum", 1, 9, "#,###", "background-color:#99ff99", 6, "소계");
  106. grd_uncolist.subtotal("sum", 1, 10, "#,###", "background-color:#99ff99", 6, "소계");
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line1" class="line_4" visibility="visible" style="x1:815px; y1:7px; x2:815px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  111. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">미수기간 :</caption>
  112. <input id="input1" ref="/root/send/fromdd" inputtype="date" style="left:102px; top:9px; width:105px; height:19px; "/>
  113. <caption id="caption1" style="left:210px; top:11px; width:20px; height:15px; text-align:center; ">~</caption>
  114. <input id="input2" ref="/root/send/todd" inputtype="date" style="left:230px; top:9px; width:105px; height:19px; "/>
  115. <caption id="caption3" class="search_name" style="left:13px; top:35px; width:91px; height:17px; ">미수구분 :</caption>
  116. <select1 id="cmd_uncocd" ref="/root/send/uncocd" appearance="minimal" style="left:103px; top:35px; width:95px; height:19px; ">
  117. <choices>
  118. <itemset nodeset="root/init/uncocd">
  119. <label ref="nm"/>
  120. <value ref="cd"/>
  121. </itemset>
  122. </choices>
  123. </select1>
  124. <select1 id="radio1" ref="/root/send/endyn" visibility="visible" appearance="full" cols="2" overflow="visible" style="left:203px; top:37px; width:135px; height:15px; border-style:none; ">
  125. <choices>
  126. <item>
  127. <label>전체</label>
  128. <value>N</value>
  129. </item>
  130. <item>
  131. <label>0이 아닌것</label>
  132. <value>Y</value>
  133. </item>
  134. </choices>
  135. </select1>
  136. <caption id="caption5" class="search_name" style="left:368px; top:35px; width:90px; height:17px; ">조회범위 :</caption>
  137. <select1 id="combo1" ref="/root/hidden/seq" appearance="minimal" style="left:460px; top:35px; width:100px; height:19px; ">
  138. <choices>
  139. <itemset nodeset="/root/listcount/listcnt">
  140. <label ref="rowcount"/>
  141. <value ref="seq"/>
  142. </itemset>
  143. </choices>
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. var seqv = model.getValue("/root/hidden/seq");
  147. var fromst = model.getValue("/root/listcount/listcnt[" + seqv + "]/fromst ");
  148. var tost = model.getValue("/root/listcount/listcnt[" + seqv + "]/tost ");
  149. model.setValue("/root/send/fromst", fromst);
  150. model.setValue("/root/send/tost", tost);
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </select1>
  155. <caption id="caption6" class="search_name" style="left:600px; top:10px; width:80px; height:17px; ">기준일 :</caption>
  156. <input id="input3" ref="/root/send/condd" inputtype="date" style="left:675px; top:10px; width:90px; height:19px; "/>
  157. <button id="button1" class="btn2_letter4" style="left:570px; top:35px; width:64px; height:19px; ">
  158. <caption>범위조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. if (submit("TRPAS00812") ) {
  162. messageBox("범위조회가 완료되었습니다. 조회범위를 선택하십시오.","I");
  163. }
  164. ]]>
  165. </script>
  166. </button>
  167. <caption id="caption7" class="search_name" style="left:368px; top:10px; width:87px; height:17px; ">조회구분 :</caption>
  168. <select1 id="combo2" ref="/root/send/srchtype" appearance="minimal" style="left:460px; top:10px; width:100px; height:19px; ">
  169. <choices>
  170. <item>
  171. <label>수납일자</label>
  172. <value>R</value>
  173. </item>
  174. <item>
  175. <label>진료일자</label>
  176. <value>O</value>
  177. </item>
  178. </choices>
  179. </select1>
  180. </group>
  181. <group id="group3" style="left:0px; top:0px; width:895px; height:13px; ">
  182. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수 조회및 출력</caption>
  183. </group>
  184. <caption id="caption2" class="tit_2" style="left:10px; top:96px; width:140px; height:13px; ">미수조회</caption>
  185. <datagrid id="grd_uncolist" nodeset="/root/list/uncolist" caption="미수번호^미수구분^진료일자^수납일자^발생일자^등록번호^주민번호^성명^성별^미수금^미수입금^미납금^비고^rcptdd^rcptno^rcptseqno^seqno" colsep="^" colwidth="80, 100, 85, 100, 85, 80, 100, 70, 38, 80, 80, 80, 100, 45, 43, 37, 30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:115px; width:895px; height:645px; text-align:center; ">
  186. <col ref="uncono"/>
  187. <col disabled="true" ref="unconm"/>
  188. <col disabled="true" ref="orddd" format="yyyy-mm-dd"/>
  189. <col disabled="true" ref="rcptdd" format="yyyy-mm-dd"/>
  190. <col disabled="true" ref="orgrcptdd" format="yyyy-mm-dd"/>
  191. <col disabled="true" ref="pid"/>
  192. <col disabled="true" ref="rrgstno"/>
  193. <col disabled="true" ref="hngnm"/>
  194. <col disabled="true" ref="sex" visibility="hidden"/>
  195. <col disabled="true" ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  196. <col disabled="true" ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  197. <col disabled="true" ref="uncorem" format="(-)#,###" style="text-align:right; "/>
  198. <col disabled="true" ref="remfact"/>
  199. <col ref="rcptdd" visibility="hidden"/>
  200. <col ref="rcptno" visibility="hidden"/>
  201. <col ref="rcptseqno" visibility="hidden"/>
  202. <col ref="seqno" visibility="hidden"/>
  203. <script type="javascript" ev:event="onaftersort">
  204. <![CDATA[
  205. grd_uncolist.gridToInstance();
  206. ]]>
  207. </script>
  208. <script type="javascript" ev:event="ondblclick">
  209. <![CDATA[
  210. if(isDataCell()) {
  211. var row = grd_uncolist.row;
  212. opener.javascript.setParameter("SMPAS00700_PID", model.getValue("/root/list/uncolist["+ row +"]/pid"));
  213. model.close();
  214. }
  215. ]]>
  216. </script>
  217. </datagrid>
  218. <button id="button2" class="btn2_letter4" style="left:819px; top:93px; width:64px; height:19px; ">
  219. <caption>엑셀저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  223. if (fileName != "")
  224. {
  225. grd_uncolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <group id="group1" style="left:0px; top:765px; width:895px; height:15px; "/>
  231. <input id="input4" ref="/root/send/fromst" visibility="hidden" style="left:135px; top:90px; width:20px; height:19px; "/>
  232. <input id="input5" ref="/root/send/tost" visibility="hidden" style="left:160px; top:90px; width:25px; height:19px; "/>
  233. </xhtml:body>
  234. </xhtml:html>