SMLVP00100_검증보고서출력.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLVP_검증보고서출력.xrw
  4. * 설 명 : 검증보고서출력
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.09.10
  8. * 수정이력 :
  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. <reptlist>
  20. <chk/>
  21. <orddeptroom/>
  22. <atdrnm/>
  23. <pid/>
  24. <patnm/>
  25. <sexage/>
  26. <orddd/>
  27. <readdt/>
  28. <printdt/>
  29. <printid/>
  30. <termhngnm/>
  31. <verimthd/>
  32. <verimthdother/>
  33. <addreadcont/>
  34. <readcont/>
  35. <usernm/>
  36. <prcpnm/>
  37. <reptrslt/>
  38. <spcscrnnm/>
  39. <testlrgnm/>
  40. <chk1/>
  41. <chk2/>
  42. <chk3/>
  43. <chk4/>
  44. <chk5/>
  45. <chk6/>
  46. </reptlist>
  47. </main>
  48. <send>
  49. <usdd/>
  50. <uedd/>
  51. </send>
  52. <init>
  53. </init>
  54. <hidden>
  55. <ref>
  56. <refrgstsdd/>
  57. <refrgstedd/>
  58. <ne/>
  59. </ref>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. fsetstart();
  69. ]]>
  70. </script>
  71. <submission id="TRLVP00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/reptlist"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. //보고서 조회
  76. function fGetReptlist(){
  77. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
  78. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
  79. submit("TRLVP00101");
  80. fchkvalue();
  81. fhidenrow();
  82. //fsettestlist();
  83. }
  84. function fsetstart(){
  85. var toDay = getCurrentDate();
  86. model.setValue("/root/hidden/ref/refrgstsdd", toDay);
  87. model.setValue("/root/hidden/ref/refrgstedd", toDay);
  88. model.removeNodeset("/root/main/reptlist");
  89. model.refresh();
  90. }
  91. function fwritemthd() {
  92. var newcode = '';
  93. for(i = 1; i < reptlist.rows ; i++){
  94. if(model.getValue("/root/main/reptlist["+i+"]/verimthd") != ''){
  95. var code = model.getValue("/root/main/reptlist["+i+"]/verimthd");
  96. newcode = '';
  97. for(i=0;i<6;i++){
  98. if(code.charAt(i)=='Y'){
  99. newcode = newcode + ""+(i+1)+"▦";
  100. }
  101. }
  102. model.setValue("/root/hidden/ref/ne", newcode);
  103. }
  104. model.setValue("/root/main/reptlist["+i+"]/verimthd", model.getValue("/root/hidden/ref/ne"));
  105. }
  106. }
  107. function fchkvalue() {
  108. for(i = 1; i < reptlist.rows ; i++){
  109. var code = model.getValue("/root/main/reptlist["+i+"]/verimthd");
  110. if(code.charAt(0)=='Y'){
  111. model.setValue("/root/main/reptlist["+i+"]/chk1" , "●");
  112. }else{
  113. model.setValue("/root/main/reptlist["+i+"]/chk1" , "○");
  114. }
  115. if(code.charAt(1)=='Y'){
  116. model.setValue("/root/main/reptlist["+i+"]/chk2" , "●");
  117. }else{
  118. model.setValue("/root/main/reptlist["+i+"]/chk2" , "○");
  119. }
  120. if(code.charAt(2)=='Y'){
  121. model.setValue("/root/main/reptlist["+i+"]/chk3" , "●");
  122. }else{
  123. model.setValue("/root/main/reptlist["+i+"]/chk3" , "○");
  124. }
  125. if(code.charAt(3)=='Y'){
  126. model.setValue("/root/main/reptlist["+i+"]/chk4" , "●");
  127. }else{
  128. model.setValue("/root/main/reptlist["+i+"]/chk4" , "○");
  129. }
  130. if(code.charAt(4)=='Y'){
  131. model.setValue("/root/main/reptlist["+i+"]/chk5" , "●");
  132. }else{
  133. model.setValue("/root/main/reptlist["+i+"]/chk5" , "○");
  134. }
  135. if(code.charAt(5)=='Y'){
  136. model.setValue("/root/main/reptlist["+i+"]/chk6" , "●");
  137. }else{
  138. model.setValue("/root/main/reptlist["+i+"]/chk6" , "○");
  139. }
  140. }
  141. }
  142. function fsettestlist() {
  143. var row = 1;
  144. var test = model.getValue("/root/main/reptlist["+1+"]/testlrgnm");
  145. for(i = 2 ; i < reptlist.rows ; i++){
  146. if(model.getValue("/root/main/reptlist["+(i-1)+"]/pid") == model.getValue("/root/main/reptlist["+i+"]/pid")){
  147. if(model.getValue("/root/main/reptlist["+(i-1)+"]/testlrgnm") != model.getValue("/root/main/reptlist["+i+"]/testlrgnm")){
  148. test = test + ", " + model.getValue("/root/main/reptlist["+i+"]/testlrgnm");
  149. model.setValue("/root/main/reptlist["+row+"]/testlrgnm", test);
  150. }
  151. }
  152. else{
  153. test = model.getValue("/root/main/reptlist["+i+"]/testlrgnm");
  154. row = i;
  155. model.setValue("/root/main/reptlist["+row+"]/testlrgnm", test);
  156. }
  157. }
  158. }
  159. function fhidenrow(){
  160. for(i = 2 ; i < reptlist.rows; i++){
  161. if(model.getValue("/root/main/reptlist["+(i-1)+"]/pid") == model.getValue("/root/main/reptlist["+i+"]/pid")){
  162. reptlist.rowHidden(i) = true;
  163. }
  164. }
  165. }
  166. function fprint() {
  167. fselectnode();
  168. makeReportPreview(0,50,1194,600);
  169. exeReportPreview("RPLVP00101", "XMLSTR", "", "", true);
  170. }
  171. function fselectnode() {
  172. var pid = "";
  173. for(i = 1 ; i < reptlist.rows ; i++) {
  174. if(model.getValue("/root/main/reptlist["+i+"]/chk") == "Y"){
  175. pid = model.getValue("/root/main/reptlist["+i+"]/pid");
  176. for(j=i ; j< reptlist.rows; j++){
  177. if(model.getValue("/root/main/reptlist["+j+"]/pid") == pid){
  178. model.removeNodeset("/root/main/reptlist["+j+"]");
  179. j--;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. ]]>
  186. </script>
  187. </xhtml:head>
  188. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  189. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  190. <line id="line1" class="line_1" style="x1:5px; y1:80px; x2:1199px; y2:80px; "/>
  191. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  192. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  193. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  194. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">보고일시 :</caption>
  195. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  196. <caption>조회</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. fGetReptlist();
  200. ]]>
  201. </script>
  202. </button>
  203. <caption id="caption11" class="search_n_b" style="left:226px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  204. <input id="ipt_usdt" ref="/root/hidden/ref/refrgstsdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:115px; height:19px; "/>
  205. <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:242px; top:8px; width:115px; height:19px; "/>
  206. </group>
  207. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">보고서 조회</caption>
  208. <datagrid id="reptlist" nodeset="/root/main/reptlist" caption="^병동/진료과^주치의^등록번호^환자명^Sex/Age^입원일^보고일^출력일^출력자" colwidth="25, 150, 115, 115, 115, 120, 130, 130, 130, 120" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; ">
  209. <col ref="chk" type="checkbox" checkvalue="Y,N"/>
  210. <col ref="orddeptroom"/>
  211. <col ref="atdrnm"/>
  212. <col ref="pid"/>
  213. <col ref="patnm"/>
  214. <col ref="sexage"/>
  215. <col ref="orddd"/>
  216. <col ref="readdt"/>
  217. <col ref="printdt"/>
  218. <col ref="printid"/>
  219. </datagrid>
  220. </group>
  221. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  222. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">종합검증보고서 일괄출력</caption>
  223. </group>
  224. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  225. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  226. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  227. <caption>초기화</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. fsetstart();
  231. ]]>
  232. </script>
  233. </button>
  234. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  235. <caption>출력</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. fprint();
  239. ]]>
  240. </script>
  241. </button>
  242. <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  243. <caption>확인</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. fselectnode();
  247. ]]>
  248. </script>
  249. </button>
  250. </group>
  251. </xhtml:body>
  252. </xhtml:html>