SPLNP90300_일계표(팝업).xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 채혈접수취소등록.xrw
  4. * 설 명 : 채혈접수취소등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2006.11.11
  8. * 수정이력 : 2007.04.25 조철형 수정
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>일계표</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <countlist>
  20. <prcpnm/>
  21. <rownm/>
  22. <d01/>
  23. <d02/>
  24. <d03/>
  25. <d04/>
  26. <d05/>
  27. <d06/>
  28. <d07/>
  29. <d08/>
  30. <d09/>
  31. <d10/>
  32. <d11/>
  33. <d12/>
  34. <d13/>
  35. <d14/>
  36. <d15/>
  37. <d16/>
  38. <d17/>
  39. <d18/>
  40. <d19/>
  41. <d20/>
  42. <d21/>
  43. <d22/>
  44. <d23/>
  45. <d24/>
  46. <d25/>
  47. <d26/>
  48. <d27/>
  49. <d28/>
  50. <d29/>
  51. <d30/>
  52. <d31/>
  53. <dsum/>
  54. </countlist>
  55. <total>
  56. <totaltest/>
  57. <totalpat/>
  58. </total>
  59. </main>
  60. <send>
  61. <bdioflag/>
  62. <recmonth/>
  63. <tclscd/>
  64. </send>
  65. <init>
  66. </init>
  67. <hidden>
  68. <ref>
  69. <bdioflag>O</bdioflag>
  70. <recmonth>200808</recmonth>
  71. </ref>
  72. <Rex/>
  73. <cal>
  74. <patsum/>
  75. <testsum/>
  76. <totaltest/>
  77. <totalpat/>
  78. <totalprint/>
  79. </cal>
  80. </hidden>
  81. </root>
  82. </instance>
  83. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  84. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  85. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  86. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  87. <script src="../../../lis/commonweb/js/LZZ001.js" type="javascript"/>
  88. <script ev:event="xforms-ready" type="javascript">
  89. <![CDATA[
  90. fGetDayPatCountList();
  91. ]]>
  92. </script>
  93. <submission id="TRLNP90301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/countlist"/>
  94. </model>
  95. <script type="javascript">
  96. <![CDATA[
  97. function fGetDayPatCountList(){
  98. model.removeNodeset("/root/main/countlist");
  99. model.removeNodeset("/root/main/total");
  100. model.setValue("/root/send/bdioflag", "O");
  101. model.setValue("/root/hidden/ref/recmonth", opener.model.getValue("/root/send/srchym"));
  102. model.setValue("/root/send/recmonth", opener.model.getValue("/root/send/srchym"));
  103. //model.setValue("/root/send/recmonth", "200810");
  104. model.setValue("/root/send/tclscd", opener.model.getValue("/root/send/tclscd"));
  105. submit("TRLNP90301");
  106. }
  107. function fPrintRex(){
  108. model.removeNodeset("/root/hidden/Rex");
  109. var patsum = 0;
  110. var testsum = 0;
  111. var row = 1;
  112. for(i = 1 ; i < grd_detllist.rows ; i++){
  113. if(i%2 == 1){
  114. model.makeValue("/root/hidden/Rex["+row+"]/prcpnm", model.getValue("/root/main/countlist["+i+"]/prcpnm"));
  115. model.makeValue("/root/hidden/Rex["+row+"]/rownm", model.getValue("/root/main/countlist["+i+"]/rownm"));
  116. model.makeValue("/root/hidden/Rex["+row+"]/d01", model.getValue("/root/main/countlist["+i+"]/d01"));
  117. model.makeValue("/root/hidden/Rex["+row+"]/d02", model.getValue("/root/main/countlist["+i+"]/d02"));
  118. model.makeValue("/root/hidden/Rex["+row+"]/d03", model.getValue("/root/main/countlist["+i+"]/d03"));
  119. model.makeValue("/root/hidden/Rex["+row+"]/d04", model.getValue("/root/main/countlist["+i+"]/d04"));
  120. model.makeValue("/root/hidden/Rex["+row+"]/d05", model.getValue("/root/main/countlist["+i+"]/d05"));
  121. model.makeValue("/root/hidden/Rex["+row+"]/d06", model.getValue("/root/main/countlist["+i+"]/d06"));
  122. model.makeValue("/root/hidden/Rex["+row+"]/d07", model.getValue("/root/main/countlist["+i+"]/d07"));
  123. model.makeValue("/root/hidden/Rex["+row+"]/d08", model.getValue("/root/main/countlist["+i+"]/d08"));
  124. model.makeValue("/root/hidden/Rex["+row+"]/d09", model.getValue("/root/main/countlist["+i+"]/d09"));
  125. model.makeValue("/root/hidden/Rex["+row+"]/d10", model.getValue("/root/main/countlist["+i+"]/d10"));
  126. model.makeValue("/root/hidden/Rex["+row+"]/d11", model.getValue("/root/main/countlist["+i+"]/d11"));
  127. model.makeValue("/root/hidden/Rex["+row+"]/d12", model.getValue("/root/main/countlist["+i+"]/d12"));
  128. model.makeValue("/root/hidden/Rex["+row+"]/d13", model.getValue("/root/main/countlist["+i+"]/d13"));
  129. model.makeValue("/root/hidden/Rex["+row+"]/d14", model.getValue("/root/main/countlist["+i+"]/d14"));
  130. model.makeValue("/root/hidden/Rex["+row+"]/d15", model.getValue("/root/main/countlist["+i+"]/d15"));
  131. model.makeValue("/root/hidden/Rex["+row+"]/d16", model.getValue("/root/main/countlist["+i+"]/d16"));
  132. model.makeValue("/root/hidden/Rex["+row+"]/d17", model.getValue("/root/main/countlist["+i+"]/d17"));
  133. model.makeValue("/root/hidden/Rex["+row+"]/d18", model.getValue("/root/main/countlist["+i+"]/d18"));
  134. model.makeValue("/root/hidden/Rex["+row+"]/d19", model.getValue("/root/main/countlist["+i+"]/d19"));
  135. model.makeValue("/root/hidden/Rex["+row+"]/d20", model.getValue("/root/main/countlist["+i+"]/d20"));
  136. model.makeValue("/root/hidden/Rex["+row+"]/d21", model.getValue("/root/main/countlist["+i+"]/d21"));
  137. model.makeValue("/root/hidden/Rex["+row+"]/d22", model.getValue("/root/main/countlist["+i+"]/d22"));
  138. model.makeValue("/root/hidden/Rex["+row+"]/d23", model.getValue("/root/main/countlist["+i+"]/d23"));
  139. model.makeValue("/root/hidden/Rex["+row+"]/d24", model.getValue("/root/main/countlist["+i+"]/d24"));
  140. model.makeValue("/root/hidden/Rex["+row+"]/d25", model.getValue("/root/main/countlist["+i+"]/d25"));
  141. model.makeValue("/root/hidden/Rex["+row+"]/d26", model.getValue("/root/main/countlist["+i+"]/d26"));
  142. model.makeValue("/root/hidden/Rex["+row+"]/d27", model.getValue("/root/main/countlist["+i+"]/d27"));
  143. model.makeValue("/root/hidden/Rex["+row+"]/d28", model.getValue("/root/main/countlist["+i+"]/d28"));
  144. model.makeValue("/root/hidden/Rex["+row+"]/d29", model.getValue("/root/main/countlist["+i+"]/d29"));
  145. model.makeValue("/root/hidden/Rex["+row+"]/d30", model.getValue("/root/main/countlist["+i+"]/d30"));
  146. model.makeValue("/root/hidden/Rex["+row+"]/d31", model.getValue("/root/main/countlist["+i+"]/d31"));
  147. model.makeValue("/root/hidden/Rex["+row+"]/dsum", model.getValue("/root/main/countlist["+i+"]/dsum"));
  148. if(i < grd_detllist.rows-2){
  149. patsum = patsum + parseInt(model.getValue("/root/main/countlist["+i+"]/dsum"));
  150. }
  151. }else{
  152. model.makeValue("/root/hidden/Rex["+row+"]/erownm", model.getValue("/root/main/countlist["+i+"]/rownm"));
  153. model.makeValue("/root/hidden/Rex["+row+"]/e01", model.getValue("/root/main/countlist["+i+"]/d01"));
  154. model.makeValue("/root/hidden/Rex["+row+"]/e02", model.getValue("/root/main/countlist["+i+"]/d02"));
  155. model.makeValue("/root/hidden/Rex["+row+"]/e03", model.getValue("/root/main/countlist["+i+"]/d03"));
  156. model.makeValue("/root/hidden/Rex["+row+"]/e04", model.getValue("/root/main/countlist["+i+"]/d04"));
  157. model.makeValue("/root/hidden/Rex["+row+"]/e05", model.getValue("/root/main/countlist["+i+"]/d05"));
  158. model.makeValue("/root/hidden/Rex["+row+"]/e06", model.getValue("/root/main/countlist["+i+"]/d06"));
  159. model.makeValue("/root/hidden/Rex["+row+"]/e07", model.getValue("/root/main/countlist["+i+"]/d07"));
  160. model.makeValue("/root/hidden/Rex["+row+"]/e08", model.getValue("/root/main/countlist["+i+"]/d08"));
  161. model.makeValue("/root/hidden/Rex["+row+"]/e09", model.getValue("/root/main/countlist["+i+"]/d09"));
  162. model.makeValue("/root/hidden/Rex["+row+"]/e10", model.getValue("/root/main/countlist["+i+"]/d10"));
  163. model.makeValue("/root/hidden/Rex["+row+"]/e11", model.getValue("/root/main/countlist["+i+"]/d11"));
  164. model.makeValue("/root/hidden/Rex["+row+"]/e12", model.getValue("/root/main/countlist["+i+"]/d12"));
  165. model.makeValue("/root/hidden/Rex["+row+"]/e13", model.getValue("/root/main/countlist["+i+"]/d13"));
  166. model.makeValue("/root/hidden/Rex["+row+"]/e14", model.getValue("/root/main/countlist["+i+"]/d14"));
  167. model.makeValue("/root/hidden/Rex["+row+"]/e15", model.getValue("/root/main/countlist["+i+"]/d15"));
  168. model.makeValue("/root/hidden/Rex["+row+"]/e16", model.getValue("/root/main/countlist["+i+"]/d16"));
  169. model.makeValue("/root/hidden/Rex["+row+"]/e17", model.getValue("/root/main/countlist["+i+"]/d17"));
  170. model.makeValue("/root/hidden/Rex["+row+"]/e18", model.getValue("/root/main/countlist["+i+"]/d18"));
  171. model.makeValue("/root/hidden/Rex["+row+"]/e19", model.getValue("/root/main/countlist["+i+"]/d19"));
  172. model.makeValue("/root/hidden/Rex["+row+"]/e20", model.getValue("/root/main/countlist["+i+"]/d20"));
  173. model.makeValue("/root/hidden/Rex["+row+"]/e21", model.getValue("/root/main/countlist["+i+"]/d21"));
  174. model.makeValue("/root/hidden/Rex["+row+"]/e22", model.getValue("/root/main/countlist["+i+"]/d22"));
  175. model.makeValue("/root/hidden/Rex["+row+"]/e23", model.getValue("/root/main/countlist["+i+"]/d23"));
  176. model.makeValue("/root/hidden/Rex["+row+"]/e24", model.getValue("/root/main/countlist["+i+"]/d24"));
  177. model.makeValue("/root/hidden/Rex["+row+"]/e25", model.getValue("/root/main/countlist["+i+"]/d25"));
  178. model.makeValue("/root/hidden/Rex["+row+"]/e26", model.getValue("/root/main/countlist["+i+"]/d26"));
  179. model.makeValue("/root/hidden/Rex["+row+"]/e27", model.getValue("/root/main/countlist["+i+"]/d27"));
  180. model.makeValue("/root/hidden/Rex["+row+"]/e28", model.getValue("/root/main/countlist["+i+"]/d28"));
  181. model.makeValue("/root/hidden/Rex["+row+"]/e29", model.getValue("/root/main/countlist["+i+"]/d29"));
  182. model.makeValue("/root/hidden/Rex["+row+"]/e30", model.getValue("/root/main/countlist["+i+"]/d30"));
  183. model.makeValue("/root/hidden/Rex["+row+"]/e31", model.getValue("/root/main/countlist["+i+"]/d31"));
  184. model.makeValue("/root/hidden/Rex["+row+"]/esum", model.getValue("/root/main/countlist["+i+"]/dsum"));
  185. if(i < grd_detllist.rows-2){
  186. testsum = testsum + parseInt(model.getValue("/root/main/countlist["+i+"]/dsum"));
  187. }
  188. row++;
  189. }
  190. }
  191. model.setValue("/root/hidden/cal/patsum", patsum);
  192. model.setValue("/root/hidden/cal/testsum", testsum);
  193. model.setValue("/root/hidden/cal/totaltest", model.getValue("/root/main/total/totaltest"));
  194. model.setValue("/root/hidden/cal/totalpat", model.getValue("/root/main/total/totalpat"));
  195. exeReportPreview("RPLNP90300", "XMLSTR", "", "", "true", "", "", "", "","true");
  196. //exeReportPreview("RPLNP90300", "XMLSTR", "", "");
  197. }
  198. ]]>
  199. </script>
  200. </xhtml:head>
  201. <xhtml:body pagewidth="1050" pageheight="800" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  202. <group id="group1" style="left:0px; top:0px; width:1015px; height:745px; ">
  203. <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:108px; height:14px; ">환자 수 일계표</caption>
  204. <datagrid id="grd_detllist" nodeset="/root/main/countlist" class="datagrid2" caption="검사명^구분^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계" colsep="^" colwidth="145, 60, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 50" ellipsis="true" fixedcols="2" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:1005px; height:690px; ">
  205. <col ref="prcpnm"/>
  206. <col ref="rownm"/>
  207. <col ref="d01" style="text-align:right; "/>
  208. <col ref="d02" style="text-align:right; "/>
  209. <col ref="d03" style="text-align:right; "/>
  210. <col ref="d04" style="text-align:right; "/>
  211. <col ref="d05" style="text-align:right; "/>
  212. <col ref="d06" style="text-align:right; "/>
  213. <col ref="d07" style="text-align:right; "/>
  214. <col ref="d08" style="text-align:right; "/>
  215. <col ref="d09" style="text-align:right; "/>
  216. <col ref="d10" style="text-align:right; "/>
  217. <col ref="d11" style="text-align:right; "/>
  218. <col ref="d12" style="text-align:right; "/>
  219. <col ref="d13" style="text-align:right; "/>
  220. <col ref="d14" style="text-align:right; "/>
  221. <col ref="d15" style="text-align:right; "/>
  222. <col ref="d16" style="text-align:right; "/>
  223. <col ref="d17" style="text-align:right; "/>
  224. <col ref="d18" style="text-align:right; "/>
  225. <col ref="d19" style="text-align:right; "/>
  226. <col ref="d20" style="text-align:right; "/>
  227. <col ref="d21" style="text-align:right; "/>
  228. <col ref="d22" style="text-align:right; "/>
  229. <col ref="d23" style="text-align:right; "/>
  230. <col ref="d24" style="text-align:right; "/>
  231. <col ref="d25" style="text-align:right; "/>
  232. <col ref="d26" style="text-align:right; "/>
  233. <col ref="d27" style="text-align:right; "/>
  234. <col ref="d28" style="text-align:right; "/>
  235. <col ref="d29" style="text-align:right; "/>
  236. <col ref="d30" style="text-align:right; "/>
  237. <col ref="d31" style="text-align:right; "/>
  238. <col ref="dsum" style="text-align:right; "/>
  239. </datagrid>
  240. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1005px; y2:25px; "/>
  241. <button id="btn_cfm" class="btn4_letter2" style="left:950px; top:722px; width:56px; height:22px; ">
  242. <caption>닫기</caption>
  243. <script ev:event="onclick" type="javascript">
  244. <![CDATA[
  245. window.close();
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="btn_excel" class="btn2_letter4" navindex="2" style="left:60px; top:725px; width:64px; height:19px; ">
  250. <caption>엑셀저장</caption>
  251. <script ev:event="onclick" type="javascript">
  252. <![CDATA[
  253. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  254. if (fileName != ""){
  255. grd_detllist.saveExcel(fileName);
  256. }
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="button11" class="btn6_letter2" style="left:0px; top:722px; width:56px; height:22px; ">
  261. <caption>출력</caption>
  262. <script ev:event="DOMActivate" type="javascript">
  263. <![CDATA[
  264. fPrintRex();
  265. ]]>
  266. </script>
  267. </button>
  268. <select id="checkbox1" ref="/root/hidden/cal/totalprint" overflow="visible" appearance="full" style="left:130px; top:725px; width:100px; height:15px; border-style:none; ">
  269. <choices>
  270. <item>
  271. <label>총합출력</label>
  272. <value>1</value>
  273. </item>
  274. </choices>
  275. </select>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>