SMAHS02200_평생고객관리코드.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <item1>
  11. <pid/>
  12. <hngnm/>
  13. <hopedd/>
  14. <testcd/>
  15. <pkgcd/>
  16. <pkgnm/>
  17. <cmpyflag/>
  18. <cmpynm/>
  19. <ownbamt/>
  20. <cmpyamt/>
  21. </item1>
  22. <item2>
  23. <testcd/>
  24. <codenm/>
  25. <cnt/>
  26. <amt/>
  27. <sumamt/>
  28. <sortseq/>
  29. </item2>
  30. <item3>
  31. <testnm/>
  32. <cnt/>
  33. <nullcnt/>
  34. <testamt/>
  35. <sumamt/>
  36. </item3>
  37. <export/>
  38. </main>
  39. <send>
  40. <srchfromdd/>
  41. <srchtodd/>
  42. <srchtestcd/>
  43. </send>
  44. <hidden>
  45. </hidden>
  46. <init>
  47. <baseinfo>
  48. <healexamtestcdlist>
  49. <S200/>
  50. </healexamtestcdlist>
  51. </baseinfo>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. var cur_date = new Date();
  58. var from_date = (cur_date.getAddDate(-1, 'M')).getDateFormat();
  59. model.setValue( ipt_fromdd.attribute("ref") , from_date);
  60. model.setValue( ipt_todd.attribute("ref") , getCurrentDate());
  61. healGetCodeList( new Array("S200")
  62. , new Array("/root/init/baseinfo/healexamtestcdlist") );
  63. model.refresh();
  64. //datagrid1.explorerbar = "sort";
  65. ]]>
  66. </script>
  67. <submission id="TRAHA00001"/>
  68. <submission id="TRAHS02201" method="post" ref="/root/send" resultref="/root/main"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  76. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  77. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  78. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  79. </xhtml:head>
  80. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  81. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  82. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">기간별 평생건강관리 현황</caption>
  83. </group>
  84. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  85. <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; "/>
  86. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  87. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  88. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. submit("TRAHS02201");
  93. grd_earnlst.subtotalPosition = "below";
  94. grd_earnlst.multiTotals = true;
  95. grd_earnlst.subtotal("clear", 0, 12);
  96. grd_earnlst.subtotal("sum", -1 , 1 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_earnlst.colRef("testcd") , "총계" );
  97. grd_earnlst.subtotal("sum", -1 , 3 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_earnlst.colRef("testcd") , "총계" );
  98. datagrid1.subtotalPosition = "below";
  99. datagrid1.multiTotals = true;
  100. datagrid1.subtotal("clear", 0, 12);
  101. datagrid1.subtotal("sum", -1 , 1 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  102. datagrid1.subtotal("sum", -1 , 3 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  103. datagrid1.subtotal("sum", -1 , 4 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  104. ]]>
  105. </script>
  106. </button>
  107. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="7" inputtype="date" style="left:70px; top:8px; width:120px; height:19px; ">
  108. <script type="javascript" ev:event="onkeydown">
  109. <![CDATA[
  110. /* if( event.keyCode == 13 ) {
  111. var pCurTargetObj = event.ptarget.parent;
  112. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  113. event.keyCode = 9;
  114. pCurTargetObj.dispatch("onkeydown");
  115. }
  116. else {
  117. event.keyCode = 9;
  118. }
  119. }
  120. event.stopPropagation(); */
  121. ]]>
  122. </script>
  123. </input>
  124. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="7" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; ">
  125. <script type="javascript" ev:event="onkeydown">
  126. <![CDATA[
  127. /* if( event.keyCode == 13 ) {
  128. var pCurTargetObj = event.ptarget.parent;
  129. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  130. event.keyCode = 9;
  131. pCurTargetObj.dispatch("onkeydown");
  132. }
  133. else {
  134. event.keyCode = 9;
  135. }
  136. }
  137. event.stopPropagation(); */
  138. ]]>
  139. </script>
  140. </input>
  141. <button id="btn_excelsave" class="btn6_letter4" style="left:1045px; top:8px; width:80px; height:22px; ">
  142. <caption>액셀저장</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. /* var vToday = new Date();
  146. var tmpYear = vToday.getYear();
  147. var tmpMonth = vToday.getMonth()+1;
  148. var tmpDate = vToday.getDate();
  149. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  150. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  151. //엑셀저장 여부(타이틀별)
  152. var fileName = window.fileDialog("save", "", false, "수혈대체현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  153. if (fileName != "")
  154. {
  155. datagrid1.saveExcel(fileName, "수혈대체현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  156. }*/
  157. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  158. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", false);
  159. ]]>
  160. </script>
  161. </button>
  162. <button id="btn_prt" class="btn6_letter2" visibility="visible" style="left:975px; top:8px; width:56px; height:22px; ">
  163. <caption>출력</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  167. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  168. exeReportPreview("RPAHS02201", "XMLSTR", "/root/main/export","", "false","","","","","false");
  169. ]]>
  170. </script>
  171. </button>
  172. <line id="line3" class="line_4" visibility="hidden" style="x1:1038px; y1:7px; x2:1038px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  173. <caption id="caption3" class="search_name" style="left:360px; top:10px; width:86px; height:17px; ">검사코드 :</caption>
  174. <select1 id="cmb_srchhealexamflag" ref="/root/send/srchtestcd" class="combo_search" appearance="minimal" style="left:448px; top:8px; width:110px; height:19px; ">
  175. <choices>
  176. <itemset nodeset="/root/init/baseinfo/healexamtestcdlist/S200">
  177. <label ref="cdnm"/>
  178. <value ref="cdid"/>
  179. </itemset>
  180. </choices>
  181. </select1>
  182. </group>
  183. <datagrid id="grd_earnlst" nodeset="/root/main/item2" caption="평생고객코드^고객수^코드별단가^총비용^" colsep="^" colwidth="80, 70, 80, 80" mergecellsfixedrows="bycolrec" multitotal="true" rowsep="|" style="left:5px; top:90px; width:390px; height:315px; ">
  184. <col ref="testcd"/>
  185. <col ref="cnt"/>
  186. <col ref="amt" format="(-,+)#,###" style="text-align:right; "/>
  187. <col ref="sumamt" format="(-,+)#,###" style="text-align:right; "/>
  188. </datagrid>
  189. <datagrid id="datagrid1" nodeset="/root/main/item3" caption="금액^고객수^금액별단가^총비용^비적용고객수" colsep="^" colwidth="80, 59, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:437px; width:390px; height:303px; ">
  190. <col ref="testnm"/>
  191. <col ref="cnt" style="text-align:right; "/>
  192. <col ref="testamt" format="(-,+)#,###" style="text-align:right; "/>
  193. <col ref="sumamt" format="(-,+)#,###" style="text-align:right; "/>
  194. <col ref="nullcnt" format="(-,+)#,###" style="text-align:right; "/>
  195. </datagrid>
  196. <datagrid id="datagrid2" nodeset="/root/main/item1" caption="등록번호^고객명^건진일^코드^패키지코드^패키지명^단체여부^단체명^본인부담금^단체부담금^" colsep="^" colwidth="80, 70, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:400px; top:90px; width:806px; height:650px; ">
  197. <col ref="pid"/>
  198. <col ref="hngnm"/>
  199. <col ref="hopedd"/>
  200. <col ref="testcd"/>
  201. <col ref="pkgcd"/>
  202. <col ref="pkgnm"/>
  203. <col ref="cmpyflag"/>
  204. <col ref="cmpynm"/>
  205. <col ref="ownbamt" format="(-,+)#,###"/>
  206. <col ref="cmpyamt" format="(-,+)#,###"/>
  207. </datagrid>
  208. <caption id="caption1" class="tit_2" style="left:10px; top:65px; width:87px; height:14px; ">코드별 통계</caption>
  209. <line id="line1" class="line_1" style="x1:5px; y1:80px; x2:395px; y2:80px; "/>
  210. <caption id="caption4" class="tit_2" style="left:405px; top:65px; width:87px; height:14px; ">건진자 현황</caption>
  211. <line id="line4" class="line_1" style="x1:400px; y1:80px; x2:1206px; y2:80px; "/>
  212. <caption id="caption5" class="tit_2" style="left:10px; top:415px; width:87px; height:14px; ">금액별 고객</caption>
  213. <line id="line5" class="line_1" style="x1:5px; y1:430px; x2:395px; y2:430px; "/>
  214. </xhtml:body>
  215. </xhtml:html>