SPPMC03200_신체감정회신통계.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <script type="javascript">
  5. <![CDATA[
  6. function fInitialize()
  7. {
  8. model.removeNodeset("/root/main/list");
  9. model.makeNode("/root/main/list");
  10. //날자 입력 항목에 오늘 날자 세팅
  11. //model.setValue("/root/send/data1/reffromdd",getCurrentDate());
  12. //model.setValue("/root/send/data1/reftodd",getCurrentDate());
  13. model.refresh();
  14. }
  15. //자체기초코드 조회
  16. function fComCDRef()
  17. {
  18. submit("TRPMI00106");
  19. model.refresh();
  20. }
  21. ]]>
  22. </script>
  23. <xhtml:head>
  24. <xhtml:title>신체감정회신통계</xhtml:title>
  25. <model id="model1">
  26. <instance id="instance1">
  27. <root xmlns="">
  28. <send>
  29. <data1>
  30. <reffromdd/>
  31. <reftodd/>
  32. </data1>
  33. <data2>
  34. <sess_posinstcd>012</sess_posinstcd>
  35. </data2>
  36. </send>
  37. <main>
  38. <list>
  39. <grdrepltermstatslist/>
  40. </list>
  41. </main>
  42. <hidden>
  43. <init>
  44. <disccd>
  45. <cd/>
  46. <nm/>
  47. </disccd>
  48. <insukind>
  49. <cd/>
  50. <nm/>
  51. </insukind>
  52. <suppkind>
  53. <cd/>
  54. <nm/>
  55. <up/>
  56. <io/>
  57. </suppkind>
  58. <orddeptcd>
  59. <cd/>
  60. <nm/>
  61. </orddeptcd>
  62. <orddrid>
  63. <cd/>
  64. <nm/>
  65. <dp/>
  66. <sp/>
  67. </orddrid>
  68. <wardcd>
  69. <cd/>
  70. <nm/>
  71. <of/>
  72. </wardcd>
  73. <roomcd>
  74. <cd/>
  75. <nm/>
  76. <wd/>
  77. <gr/>
  78. <ty/>
  79. </roomcd>
  80. <flag>
  81. <prestdd/>
  82. <mskindflag/>
  83. </flag>
  84. </init>
  85. <currentDate/>
  86. </hidden>
  87. </root>
  88. </instance>
  89. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
  90. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/init"/>
  91. <submission id="TRPMC03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. fInitialize(); // 기본데이터 초기화
  95. fComCDRef(); // 코드 조회
  96. var curDate = getCurrentDate();
  97. model.setValue("/root/hidden/currentDate", curDate); //시스템 날자
  98. //기간 기본값 설정
  99. var prviousDate = getCurrentDate();
  100. prviousDate = prviousDate.toDate().getAddDate(-7,"D");
  101. var previousDay = prviousDate.getFullYear();
  102. previousDay = previousDay.toString() + (( prviousDate.getMonth() + 1 > 9 ) ? prviousDate.getMonth() + 1 : "0" + (prviousDate.getMonth() + 1));
  103. previousDay = previousDay.toString() + (( prviousDate.getDate() > 9 ) ? prviousDate.getDate() : "0" + prviousDate.getDate()) ;
  104. model.setValue("/root/send/data1/reffromdd", previousDay) ;
  105. //model.setValue("/root/send/data1/reffromdd", model.getValue("/root/hidden/currentDate")) ;
  106. model.setValue("/root/send/data1/reftodd", model.getValue("/root/hidden/currentDate")) ;
  107. model.refresh();
  108. ]]>
  109. </script>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  115. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  116. </xhtml:head>
  117. <xhtml:body pagewidth="769" pageheight="581" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  118. <group id="group1" style="left:0px; top:0px; width:752px; height:580px; ">
  119. <group id="group2" style="left:0px; top:10px; width:752px; height:35px; ">
  120. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:752px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회기간 :</caption>
  122. <input id="ipt_reffromdd" ref="/root/send/data1/reffromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:100px; height:19px; "/>
  123. <input id="ipt_reftodd" ref="/root/send/data1/reftodd" class="input_search" inputtype="date" style="left:226px; top:8px; width:100px; height:19px; "/>
  124. <caption id="caption1" style="left:211px; top:10px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  125. <button id="btn_srch" class="btn1_letter2" style="left:681px; top:7px; width:56px; height:22px; ">
  126. <caption>조회</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. // 신체감정회신통계 조회
  130. if(submit("TRPMC03200")) {
  131. var patrefcnt = getNodesetCount("/root/hidden/rcv/list/grdrepltermstatslist");
  132. if (patrefcnt > 0) {
  133. copyNodeType("/root/main/list","/root/hidden/rcv/list","replace");
  134. } else {
  135. model.removeNodeset("/root/main/list");
  136. model.makeNode("/root/main/list");
  137. }
  138. model.refresh();
  139. }
  140. ]]>
  141. </script>
  142. </button>
  143. <line id="line1" class="line_4" style="x1:666px; y1:5px; x2:666px; y2:27px; border-color:#ffcc99; border-style:solid; "/>
  144. </group>
  145. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">회신기간통계</caption>
  146. <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:752px; y2:70px; "/>
  147. <button id="button3" class="btn2_letter4" style="left:688px; top:50px; width:64px; height:19px; ">
  148. <caption>액셀저장</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  152. if (fileName != "")
  153. {
  154. grd_repltermstats.saveExcel(fileName, "SheetName", true, true, "", "");
  155. }
  156. window.exec(fileName);
  157. ]]>
  158. </script>
  159. </button>
  160. <group id="group3" style="left:0px; top:553px; width:752px; height:27px; ">
  161. <button id="button2" class="btn4_letter2" style="left:696px; top:5px; width:56px; height:22px; ">
  162. <caption>닫기</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. window.close();
  166. ]]>
  167. </script>
  168. </button>
  169. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:752px; y2:0px; "/>
  170. </group>
  171. <!-- 20100201 JHP 컬럼명변경 : 감정서작성일자 >> 결과작성일, 컬럼삭제(일단히든) : 법원보관금, 특이사항 -->
  172. <datagrid id="grd_repltermstats" nodeset="/root/main/list/grdrepltermstatslist" caption="진료과^담당의사^접수일자^진료일자^감정서작성일자^기간^법원보관금^특이사항" colsep="^" colwidth="204, 108, 108, 108, 108, 108, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:75px; width:752px; height:478px; ">
  173. <col disabled="true" ref="orddeptcd" type="combo">
  174. <choices>
  175. <itemset nodeset="/root/hidden/init/orddeptcd">
  176. <label ref="nm"/>
  177. <value ref="cd"/>
  178. </itemset>
  179. </choices>
  180. </col>
  181. <col disabled="true" ref="atdoctid" type="combo">
  182. <choices>
  183. <itemset nodeset="/root/hidden/init/orddrid">
  184. <label ref="nm"/>
  185. <value ref="cd"/>
  186. </itemset>
  187. </choices>
  188. </col>
  189. <col ref="courtacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  190. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  191. <col ref="rsltworkdd" format="yyyy-mm-dd" style="text-align:center; "/>
  192. <col ref="term" style="text-align:right; "/>
  193. <col ref="clamamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  194. <col ref="spcffact" visibility="hidden"/>
  195. </datagrid>
  196. </group>
  197. </xhtml:body>
  198. </xhtml:html>