SMASI01400_법정전염병전귀보고조회.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
  9. <main>
  10. <lglydisreptinfo>
  11. </lglydisreptinfo>
  12. <cond>
  13. <fromdd/>
  14. <todd/>
  15. <lglydiskind/>
  16. <flag>A</flag>
  17. </cond>
  18. </main>
  19. <send>
  20. <reqdata/>
  21. <savedata/>
  22. </send>
  23. <hidden/>
  24. <init>
  25. <initdate>
  26. <today/>
  27. </initdate>
  28. <P0149list>
  29. <P0149>
  30. <cdid/>
  31. <cdnm/>
  32. </P0149>
  33. </P0149list>
  34. <P0160list>
  35. <P0160>
  36. <cdid/>
  37. <cdnm/>
  38. </P0160>
  39. </P0160list>
  40. </init>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInitialize();
  46. ]]>
  47. </script>
  48. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  49. <submission id="TRASI01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/lglydisreptinfo"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. function fInitialize() {
  58. model.removeNodeset("/root/main/lglydisreptinfo");
  59. //zbcfGetCodeList(new Array("P0149", "P0160"), new Array("/root/init/initdata/P0149list", "/root/init/initdata/P0160list"));
  60. model.makeNode("/root/init/curdt");
  61. model.makeValue("/root/init/curdt/curdt", getCurrentDate());
  62. var idate=new Date();
  63. var frDate=idate.getAddDate(-1, "M");
  64. model.setValue("/root/main/cond/fromdd", frDate.getDateFormat());
  65. model.setValue("/root/main/cond/todd", model.getValue("/root/init/curdt/curdt"));
  66. model.refresh();
  67. //submit("TRASI01401");
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body guideline="1,0;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  74. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  75. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  76. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">법정전염병 전귀보고조회</caption>
  78. </group>
  79. </group>
  80. </group>
  81. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  82. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:4px; width:68px; height:22px; ">
  83. <caption>초기화</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. model.removeNodeset("/root/main/lglydisreptinfo");
  87. model.refresh();
  88. ]]>
  89. </script>
  90. </button>
  91. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  92. <caption>출력</caption>
  93. </button>
  94. </group>
  95. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  96. <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:28px; "/>
  99. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:11px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. if( (model.getValue("/root/main/cond/fromdd") == "") || model.getValue("/root/main/cond/todd") == "" ) {
  104. messageBox("일자는", "I003");
  105. return;
  106. }
  107. model.makeNode("/root/send/cond");
  108. model.copyNode("/root/send/cond", "/root/main/cond");
  109. submit("TRASI01401");
  110. ]]>
  111. </script>
  112. </button>
  113. <caption id="caption1" class="search_name" style="left:760px; top:10px; width:66px; height:17px; ">구분 :</caption>
  114. <select id="chk_lglydiskind" ref="/root/main/cond/lglydiskind" overflow="visible" appearance="full" cellspacing="10" cols="5" style="left:540px; top:10px; width:155px; height:20px; border-style:none; ">
  115. <choices>
  116. <item>
  117. <label>1군</label>
  118. <value>1</value>
  119. </item>
  120. <item>
  121. <label>2군(일본뇌염)</label>
  122. <value>2</value>
  123. </item>
  124. </choices>
  125. </select>
  126. <caption id="caption4" style="left:220px; top:15px; width:20px; height:20px; ">~</caption>
  127. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" inputtype="date" appearance="input" style="left:240px; top:10px; width:115px; height:19px; "/>
  128. <caption id="caption14" class="search_name" style="left:15px; top:9px; width:78px; height:17px; ">진단일 :</caption>
  129. <select id="chk_flag" ref="/root/main/cond/flag" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:835px; top:10px; width:210px; height:20px; border-style:none; ">
  130. <choices>
  131. <item>
  132. <label>전체</label>
  133. <value>A</value>
  134. </item>
  135. <item>
  136. <label>입원</label>
  137. <value>I</value>
  138. </item>
  139. <item>
  140. <label>외래</label>
  141. <value>O</value>
  142. </item>
  143. <item>
  144. <label>응급</label>
  145. <value>E</value>
  146. </item>
  147. </choices>
  148. </select>
  149. <caption id="caption15" class="search_name" style="left:405px; top:10px; width:130px; height:17px; ">법정전염병 종류 :</caption>
  150. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" inputtype="date" appearance="input" style="left:98px; top:10px; width:115px; height:19px; "/>
  151. </group>
  152. <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:47px; width:42px; height:19px; ">
  153. <caption>엑셀</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. // var fileName = window.fileDialog("save", ",", false, "법정전염병전귀보고", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  157. // if (fileName != ""){
  158. // grd_lglydisrept.saveExcel(fileName, "SheetName", false, false, "", "", false);
  159. // }
  160. var fileName = window.fileDialog("save", ",", false, "법정전염병전귀보고", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  161. if (fileName != ""){
  162. grd_lglydisrept.saveExcel(fileName, "법정전염병전귀보고", true, true, "", "", false);
  163. var s = fileName.lastIndexOf("\\");
  164. var fileName=fileName.substring(s+1);
  165. var rmsg = messageBox("저장된 Excel을", "Q004");
  166. if( rmsg == 6 ){
  167. window.exec("excel.exe", fileName);
  168. }
  169. }
  170. ]]>
  171. </script>
  172. </button>
  173. <line id="line1" class="line_1" style="x1:0px; y1:68px; x2:1193px; y2:68px; "/>
  174. <datagrid id="grd_lglydisrept" nodeset="/root/main/lglydisreptinfo/lglydisreptlist" caption="등록번호^환자명^진료과^종류^신고^신고일자^전귀보고^전귀보고일^구분" colsep="^" colwidth="150, 150, 150, 150, 150, 130, 80, 130, 80" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:73px; width:1193px; height:668px; ">
  175. <col ref="pid"/>
  176. <col ref="patnm"/>
  177. <col ref="orddept"/>
  178. <col ref="kind"/>
  179. <col ref="rept"/>
  180. <col ref="reptdd" format="yyyy-mm-dd"/>
  181. <col ref="lglydisrept"/>
  182. <col ref="lglydisreptdd" format="yyyy-mm-dd"/>
  183. <col ref="flag"/>
  184. <script type="javascript" ev:event="onaftersort">
  185. <![CDATA[
  186. grd_lglydisrept.gridToInstance();
  187. ]]>
  188. </script>
  189. </datagrid>
  190. </group>
  191. </xhtml:body>
  192. </xhtml:html>