SPPAS00720_기간별미수조회및출력.xrw 19 KB

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