SMPAS01130_미수금(환자)명세서.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <uncolist>
  11. <pid/>
  12. <hngnm/>
  13. <befamt/>
  14. <incamt/>
  15. <decamt/>
  16. <restamt/>
  17. <uncocd/>
  18. <unconm/>
  19. </uncolist>
  20. </main>
  21. <send>
  22. <fromdd/>
  23. <todd/>
  24. <ordtype>O</ordtype>
  25. <uncocd>%</uncocd>
  26. <offset/>
  27. <pagesize>200</pagesize>
  28. <befodt/>
  29. </send>
  30. <init>
  31. <uncocd>
  32. <cdnm/>
  33. <cdid/>
  34. </uncocd>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-model-construct-done">
  39. <![CDATA[
  40. var vToday = new Date();
  41. var tmpYear = vToday.getYear();
  42. var tmpMonth = vToday.getMonth()+1;
  43. var tmpDate = vToday.getDate();
  44. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  45. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  46. model.setValue("/root/send/fromdd", tmpYear+""+tmpMonth+""+tmpDate);
  47. model.setValue("/root/send/todd", tmpYear+""+tmpMonth+""+tmpDate);
  48. var beforeDate = model.getValue("/root/send/fromdd").toDate().getAddDate(-1, 'D');
  49. beforeDate = beforeDate.getDateFormat("YYYYMMDD");
  50. model.setValue("root/send/befodt", beforeDate);
  51. model.refresh();
  52. input7.refresh();
  53. input1.refresh();
  54. datagrid1.explorerbar = "sort";
  55. if (!submit("TRPAS01132")) {
  56. messageBox("계정코드 조회 중 오류..!", "E999");
  57. }
  58. ]]>
  59. </script>
  60. <submission id="TRPAS01131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  61. <submission id="TRPAS01132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  70. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="1211" pageheight="784">
  73. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  74. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:193px; height:14px; font-family:돋움; vertical-align:middle; ">미수금(환자)명세서</caption>
  75. </group>
  76. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  77. <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; "/>
  78. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:221px; height:17px; ">적용기간 ~</caption>
  79. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. var beforeDate = model.getValue("/root/send/fromdd").toDate().getAddDate(-1, 'D');
  85. beforeDate = beforeDate.getDateFormat("YYYYMMDD");
  86. model.setValue("root/send/befodt", beforeDate);
  87. model.refresh();
  88. submit("TRPAS01131");
  89. ]]>
  90. </script>
  91. <toggle case="case1" ev:event="onclick"/>
  92. </button>
  93. <input id="input7" ref="/root/send/fromdd" class="input_default" navindex="7" inputtype="date" style="left:98px; top:8px; width:120px; height:19px; ">
  94. <script type="javascript" ev:event="onkeydown">
  95. <![CDATA[
  96. if( event.keyCode == 13 ) {
  97. var pCurTargetObj = event.ptarget.parent;
  98. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  99. event.keyCode = 9;
  100. pCurTargetObj.dispatch("onkeydown");
  101. }
  102. else {
  103. event.keyCode = 9;
  104. }
  105. }
  106. event.stopPropagation();
  107. ]]>
  108. </script>
  109. </input>
  110. <input id="input1" ref="/root/send/todd" class="input_default" navindex="7" inputtype="date" style="left:243px; top:8px; width:120px; height:19px; ">
  111. <script type="javascript" ev:event="onkeydown">
  112. <![CDATA[
  113. if( event.keyCode == 13 ) {
  114. var pCurTargetObj = event.ptarget.parent;
  115. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  116. event.keyCode = 9;
  117. pCurTargetObj.dispatch("onkeydown");
  118. }
  119. else {
  120. event.keyCode = 9;
  121. }
  122. }
  123. event.stopPropagation();
  124. ]]>
  125. </script>
  126. </input>
  127. <select1 id="combo1" ref="/root/send/ordtype" appearance="minimal" style="left:475px; top:8px; width:100px; height:19px; ">
  128. <choices>
  129. <item>
  130. <label>외래</label>
  131. <value>O</value>
  132. </item>
  133. <item>
  134. <label>입원</label>
  135. <value>I</value>
  136. </item>
  137. </choices>
  138. </select1>
  139. <select1 id="combo2" ref="/root/send/uncocd" appearance="minimal" style="left:660px; top:8px; width:215px; height:19px; ">
  140. <choices>
  141. <itemset nodeset="/root/init/uncocd">
  142. <label ref="cdnm"/>
  143. <value ref="cdid"/>
  144. </itemset>
  145. </choices>
  146. </select1>
  147. <caption id="caption9" style="left:625px; top:11px; width:30px; height:13px; font-weight:bold; ">계정</caption>
  148. <caption id="caption1" style="left:410px; top:11px; width:54px; height:14px; font-weight:bold; ">진료형태</caption>
  149. </group>
  150. <datagrid id="datagrid1" nodeset="/root/main/uncolist" caption="등록번호^이름^전월미수금^증가의료미수금^감소의료미수금^미수잔액^계정^계정명^" colsep="^" colwidth="150, 139, 142, 145, 150, 150, 89, 186" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:5px; top:67px; width:1198px; height:681px; ">
  151. <col ref="pid" style="text-align:center; "/>
  152. <col ref="hngnm" style="text-align:center; "/>
  153. <col ref="befamt" format="(-)#,##0" style="left:330px; top:23px; width:150px; height:23px; text-align:right; "/>
  154. <col ref="incamt" format="(-)#,##0" style="left:470px; top:23px; width:150px; height:23px; text-align:right; "/>
  155. <col ref="decamt" format="(-)#,##0" style="left:590px; top:23px; width:150px; height:23px; text-align:right; "/>
  156. <col ref="restamt" format="(-)#,##0" style="left:740px; top:23px; width:150px; height:23px; text-align:right; "/>
  157. <col ref="uncocd" style="text-align:center; "/>
  158. <col ref="unconm" style="text-align:left; "/>
  159. </datagrid>
  160. <button id="button95" class="btn6_letter4" visibility="visible" style="left:977px; top:29px; width:80px; height:22px; ">
  161. <caption>액셀저장</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. var vToday = new Date();
  165. var tmpYear = vToday.getYear();
  166. var tmpMonth = vToday.getMonth()+1;
  167. var tmpDate = vToday.getDate();
  168. //엑셀저장 여부(타이트별)
  169. var fileName = window.fileDialog("save", ",", false, "미수금(환자)명세서"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  170. if (fileName != "")
  171. {
  172. datagrid1.saveExcel(fileName, "미수금(환자)명세서"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  173. }
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="btn_print" class="btn6_letter2" style="left:1069px; top:29px; width:56px; height:22px; ">
  178. <caption>출력</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. exeReportPreview("RPPAS00139", "XMLSTR", "","", "false","","","","","false");
  182. ]]>
  183. </script>
  184. </button>
  185. </xhtml:body>
  186. </xhtml:html>