SMPAS00530_카드집계현황.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <!--
  3. * 화면 : SMPAS00530_카드집계현황.xrw
  4. * 설명 : 카드집계현황.
  5. * 작성자 : 조영상
  6. * 작성일 : 2007/12/03
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>카드집계현황</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <h_card>
  17. <card>
  18. <card_title/>
  19. <card_cardcmpycd/>
  20. <card_cnt_y/>
  21. <card_cardamt_y/>
  22. <card_cnt_c/>
  23. <card_cardamt_c/>
  24. </card>
  25. </h_card>
  26. </main>
  27. <send>
  28. <data1>
  29. <fromdd/>
  30. <tm_from/>
  31. <tm_to/>
  32. <rcpt_id/>
  33. <ordtype/>
  34. </data1>
  35. </send>
  36. <hidden>
  37. <session>
  38. <userid/>
  39. <usernm/>
  40. <posinstcd/>
  41. <posinstnm/>
  42. <dutplcecd/>
  43. <dutplcenm/>
  44. <dutinstnm/>
  45. </session>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <bind id="bind1" ref="/root/main/receivamtlist/receivamtstats" calculate="now() + ."/>
  50. <bind id="bind2" ref="/root/main/receivamtsumlist/receivamtsumstats/uncnt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncnt);"/>
  51. <bind id="bind3" ref="/root/main/receivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncoamt);"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. makeReportPreview(0,0,0,0,"");
  55. fInitialize();
  56. fGetUserInfo2();
  57. ]]>
  58. </script>
  59. <submission id="TRPAS00531" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_card"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. //로그인한 사용자 정보조회
  72. function fGetUserInfo2(){
  73. var sUserInfosS = getUserInfos();
  74. sUserInfosS = sUserInfosS + "|";
  75. //alert("sUserInfosS : " + sUserInfosS);
  76. var UserInfosS_Array = sUserInfosS.split("|");
  77. var userid = UserInfosS_Array[0]; //사용자번호
  78. var usernm = UserInfosS_Array[1]; //사용자이름
  79. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  80. var posinstnm = UserInfosS_Array[3]; //소속기관명
  81. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  82. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  83. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  84. /*
  85. model.makeNode("/root/hidden/session/" + "userid");
  86. model.makeNode("/root/hidden/session/" + "usernm");
  87. model.makeNode("/root/hidden/session/" + "posinstcd");
  88. model.makeNode("/root/hidden/session/" + "posinstnm");
  89. model.makeNode("/root/hidden/session/" + "dutplcecd");
  90. model.makeNode("/root/hidden/session/" + "dutplcenm");
  91. model.makeNode("/root/hidden/session/" + "dutinstnm");
  92. */
  93. model.setValue("/root/hidden/session/userid",userid);
  94. model.setValue("/root/hidden/session/usernm",usernm);
  95. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  96. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  97. model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
  98. model.setValue("/root/hidden/session/dutplcenm",dutplcenm);
  99. model.setValue("/root/hidden/session/dutinstnm",dutinstnm);
  100. }
  101. function fInitialize() {
  102. model.removenodeset("/root/main/h_card/card");
  103. model.setValue("/root/send/data1/fromdd", getCurrentDate()); // common.js에서 제공하는 함수를 사용하여 오늘 날짜를 구한다.
  104. model.setValue("/root/send/data1/tm_from", "0000");
  105. model.setValue("/root/send/data1/tm_to", "2400");
  106. model.setValue("/root/send/data1/rcpt_id", "");
  107. model.setValue("/root/send/data1/ordtype", "%");
  108. model.refresh();
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="1211" pageheight="784">
  114. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  115. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; font-family:돋움; vertical-align:middle; ">카드집계현황</caption>
  116. </group>
  117. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  118. <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; "/>
  119. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">일자:</caption>
  120. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  121. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. submit("TRPAS00531");
  126. grd_card.subtotalPosition = "below";
  127. grd_card.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  128. grd_card.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  129. grd_card.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  130. grd_card.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
  131. model.refresh();
  132. ]]>
  133. </script>
  134. </button>
  135. <input id="input7" ref="/root/send/data1/fromdd" class="input_default" navindex="7" autonext="false" inputtype="date" style="left:75px; top:8px; width:85; height:19px; text-align:center; "/>
  136. <button id="button95" class="btn6_letter4" style="left:976px; top:7px; width:80px; height:22px; ">
  137. <caption>액셀저장</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. var vToday = new Date();
  141. var tmpYear = vToday.getYear();
  142. var tmpMonth = vToday.getMonth()+1;
  143. var tmpDate = vToday.getDate();
  144. //
  145. // model.setValue("/root/documenttitle/title",document.title);
  146. // model.refresh();
  147. // var subjectTitle = model.getValue("/root/documenttitle/title");
  148. //엑셀저장 여부(타이틀별)
  149. var fileName = window.fileDialog("save", "", false, "카드집계현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  150. if (fileName != "")
  151. {
  152. grd_card.saveExcel(fileName, "카드집계현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  153. }
  154. ]]>
  155. </script>
  156. </button>
  157. <line id="line1" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  158. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  159. <caption>출력</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. exeReportPreview("RPPAS00531", "XMLSTR", "", "", "true", "", "", "", "", "","", "", "", "", "", "1", "");
  163. //exeReportPreview("RPPAS01711", "XMLSTR", "", "", "true", "", "", "", "", "","", "case2", "", "", "", "1", "75");
  164. ]]>
  165. </script>
  166. </button>
  167. <input id="input1" ref="/root/send/data1/tm_from" autonext="false" format="hh:nn" style="left:170px; top:8px; width:54px; height:19px; text-align:center; "/>
  168. <input id="input15" ref="/root/send/data1/tm_to" autonext="false" format="hh:nn" style="left:245px; top:8px; width:54px; height:19px; text-align:center; "/>
  169. <caption id="caption25" style="left:222px; top:10px; width:25px; height:14px; text-align:center; ">~</caption>
  170. <input id="input2" ref="/root/send/data1/rcpt_id" autonext="false" style="left:384px; top:8px; width:86px; height:19px; "/>
  171. <caption id="caption1" style="left:311px; top:9; width:64px; height:20px; font-weight:bold; ">수납자ID :</caption>
  172. <select1 id="radio1" ref="/root/send/data1/ordtype" appearance="full" cols="3" rows="1" overflow="visible" style="left:480px; top:10px; width:140px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
  173. <choices>
  174. <item>
  175. <label>전체</label>
  176. <value>%</value>
  177. </item>
  178. <item>
  179. <label>외래</label>
  180. <value>O</value>
  181. </item>
  182. <item>
  183. <label>입원</label>
  184. <value>I</value>
  185. </item>
  186. </choices>
  187. </select1>
  188. </group>
  189. <group id="grp_btn" scroll="auto" style="left:19px; top:757px; width:1180px; height:27px; "/>
  190. <button id="btn_init" class="btn4_letter3" style="left:1129px; top:760px; width:68px; height:22px; ">
  191. <caption>초기화</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fInitialize();
  195. ]]>
  196. </script>
  197. </button>
  198. <datagrid id="grd_card" nodeset="/root/main/h_card/card" caption="구분^카드종류^수납건수^수납금액^취소건수^취소금액" colsep="^" colwidth="134, 150, 140, 200, 139, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:65px; width:1197px; height:686px; ">
  199. <col ref="card_title"/>
  200. <col ref="card_cardcmpycd"/>
  201. <col ref="card_cnt_y" format="#,###" style="text-align:right; "/>
  202. <col ref="card_cardamt_y" format="#,###" style="text-align:right; "/>
  203. <col ref="card_cnt_c" format="#,###" style="text-align:right; "/>
  204. <col ref="card_cardamt_c" format="#,###" style="text-align:right; "/>
  205. </datagrid>
  206. </xhtml:body>
  207. </xhtml:html>