SPASI04100_해외유입기생충감염증표본감시결과신고.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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 xmlns="">
  9. <main>
  10. <hngnm/>
  11. <sex/>
  12. <age/>
  13. <tel/>
  14. <rrgstno1/>
  15. <rrgstno2/>
  16. <infcnts/>
  17. <symp/>
  18. <paminfo/>
  19. <pid/>
  20. <orddd/>
  21. <cretno/>
  22. <ioeflag/>
  23. <wrtedt/>
  24. <reptflag/>
  25. <seqno/>
  26. <reptdt/>
  27. </main>
  28. <send>
  29. <reqdata/>
  30. <savedata/>
  31. </send>
  32. <init>
  33. <A0643list/>
  34. </init>
  35. <temp/>
  36. <diaginfo/>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInit();
  42. ]]>
  43. </script>
  44. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  45. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  46. <submission id="TXASI05000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main"/>
  47. <submission id="TRASI05000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main"/>
  48. <submission id="TXASI05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. function fInit() {
  60. zbcfGetCodeList(new Array("A0643"), new Array("/root/init/A0643list"));
  61. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  62. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  63. model.removeNodeSet("/root/main/paminfo/list");
  64. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  65. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  66. if(ioflag == "I" || ioflag == "E"){
  67. model.setValue("/root/main/pid", model.getValue("/root/main/paminfo/list/pid"));
  68. model.setValue("/root/main/orddd", model.getValue("/root/main/paminfo/list/indd"));
  69. model.setValue("/root/main/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  70. model.setValue("/root/main/ioeflag", ioflag);
  71. model.refresh();
  72. }else if(ioflag == "O"){
  73. model.setValue("/root/main/pid", model.getValue("/root/main/paminfo/list/pid"));
  74. model.setValue("/root/main/orddd", model.getValue("/root/main/paminfo/list/orddd"));
  75. model.setValue("/root/main/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  76. model.setValue("/root/main/ioeflag", ioflag);
  77. model.refresh();
  78. }
  79. model.setValue("/root/main/hngnm", model.getValue("/root/main/paminfo/list/hngnm"));
  80. model.setValue("/root/main/sex", model.getValue("/root/main/paminfo/list/sex"));
  81. model.setValue("/root/main/age", model.getValue("/root/main/paminfo/list/age"));
  82. model.setValue("/root/main/tel", model.getValue("/root/main/paminfo/list/mpphontel"));
  83. model.setValue("/root/main/rrgstno1", model.getValue("/root/main/paminfo/list/rrgstno1"));
  84. model.setValue("/root/main/rrgstno2", model.getValue("/root/main/paminfo/list/rrgstno2"));
  85. }else if(isPopup()){
  86. model.setValue("/root/main/pid", opener.javascript.getParameter("pid"));
  87. model.setValue("/root/main/orddd", opener.javascript.getParameter("indd"));
  88. model.setValue("/root/main/wrtedt",opener.javascript.getParameter("wrtedt"));
  89. model.setValue("/root/main/cretno",opener.javascript.getParameter("cretno"));
  90. model.copyNode("/root/send/reqdata", "/root/main");
  91. submit("TRASI05000");
  92. }
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="780" pageheight="300" style="margin-left:8; margin-right:8; ">
  99. <group id="grp_main" scroll="auto" style="left:0px; top:0px; width:755px; height:255px; ">
  100. <caption id="caption57" class="tit_1" style="left:0px; top:0px; width:285px; height:40px; ">해외유입기생충 감염증 표본감시 결과신고</caption>
  101. <output id="opt_patnm" ref="/root/main/hngnm" class="output_fix" style="left:82px; top:22px; width:216px; height:19px; "/>
  102. <caption id="caption10" class="cell_1" style="left:315px; top:22px; width:50px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
  103. <caption id="caption11" class="cell_1" style="left:408px; top:22px; width:47px; height:23px; text-align:center; vertical-align:middle; ">연령</caption>
  104. <caption id="caption13" class="search_no_b" visibility="hidden" style="left:185px; top:46px; width:12px; height:17px; ">-</caption>
  105. <output id="opt_rgstno" ref="/root/main/rrgstno1" class="output_fix" style="left:82px; top:46px; width:100px; height:19px; "/>
  106. <caption id="caption5" class="cell_1" style="left:0px; top:22px; width:79px; height:23px; text-align:center; vertical-align:middle; ">성 명</caption>
  107. <caption id="caption6" class="cell_1" style="left:0px; top:46px; width:79px; height:23px; text-align:center; vertical-align:middle; ">생년월일</caption>
  108. <output id="opt_sexflag" ref="/root/main/sex" class="output_fix" style="left:370px; top:22px; width:30px; height:19px; "/>
  109. <output id="opt_age" ref="/root/main/age" class="output_fix" style="left:458px; top:22px; width:37px; height:19px; "/>
  110. <output id="output1" ref="/root/main/rrgstno2" class="output_fix" visibility="hidden" style="left:197px; top:46px; width:100px; height:19px; "/>
  111. <caption id="caption2" class="cell_1" style="left:505px; top:20px; width:67px; height:23px; text-align:center; vertical-align:middle; ">전화번호</caption>
  112. <output id="output3" ref="/root/main/tel" class="output_fix" style="left:575px; top:20px; width:130px; height:19px; "/>
  113. <caption id="caption3" class="cell_1" style="left:0px; top:70px; width:79px; height:20px; text-align:center; vertical-align:middle; ">질 환 명</caption>
  114. <caption id="caption4" class="cell_1" style="left:0px; top:140px; width:79px; height:20px; text-align:center; vertical-align:middle; ">기타의견</caption>
  115. <textarea id="textarea1" ref="/root/main/infcnts" scroll="false" style="left:81px; top:140px; width:669px; height:75px; "/>
  116. <button id="btn_cncl" class="btn4_letter2" style="left:622px; top:223px; width:56px; height:22px; ">
  117. <caption>삭제</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. model.removeNodeset("/root/send");
  121. model.makeNode("/root/send/savedata");
  122. if(model.getValue("/root/main/wrtedt")==""){
  123. messageBox("저장되지 않은 건은 삭제" ,"E001");
  124. return;
  125. }
  126. if(model.getValue("/root/main/reptdt").substring(0,8) != "99991231" ){
  127. messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  128. return;
  129. }
  130. var result = messageBox("","Q001"); //삭제하시겠습니까?
  131. if (result == "7"){
  132. messageBox("삭제가 취소되었습니다","I");
  133. return;
  134. }else if (result == "6"){
  135. model.copyNode("/root/send/savedata", "/root/main");
  136. model.makeValue("/root/send/savedata/state", "D");
  137. if(submit("TXASI05001")){
  138. messageBox("삭제" ,"I001");
  139. window.close();
  140. }
  141. }
  142. ]]>
  143. </script>
  144. </button>
  145. <button id="btn_init" class="btn4_letter3" style="left:681px; top:223px; width:68px; height:22px; ">
  146. <caption>초기화</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. model.setValue("/root/main/symp", "");
  150. model.setValue("/root/main/infcnts", "");
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_save" class="btn4_letter2" style="left:562px; top:223px; width:56px; height:22px; ">
  156. <caption>저장</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. if(model.getValue("/root/main/symp")==""){
  160. messageBox("질환명은 ", "I003");
  161. return;
  162. }
  163. model.removeNodeset("/root/send/savedata");
  164. model.makeNode("/root/send/savedata");
  165. model.copyNode("/root/send/savedata", "/root/main");
  166. model.makeValue("/root/send/savedata/deptcd", getUserInfo("dutplcecd"));
  167. model.makeValue("/root/send/savedata/wrteid", getUserInfo("userid"));
  168. /*
  169. model.makeValue("/root/send/savedata/pid", model.getValue("/root/main/pid"));
  170. model.makeValue("/root/send/savedata/ioeflag", model.getValue("/root/main/ioflag"));
  171. model.makeValue("/root/send/savedata/orddd", model.getValue("/root/main/orddd"));
  172. model.makeValue("/root/send/savedata/cretno", model.getValue("/root/main/cretno"));
  173. model.makeValue("/root/send/savedata/infcnts", model.getValue("/root/main/infcnts"));
  174. model.makeValue("/root/send/savedata/symp", model.getValue("/root/main/symp"));
  175. model.makeValue("/root/send/savedata/reptdt", model.getValue("/root/main/reptdt"));
  176. model.makeValue("/root/send/savedata/wrtedt", model.getValue("/root/main/wrtedt"));
  177. model.makeValue("/root/send/savedata/reptflag", model.getValue("/root/main/reptflag"));
  178. */
  179. if(submit("TXASI05000")){
  180. messageBox("저장" ,"I001");
  181. window.close();
  182. }
  183. ]]>
  184. </script>
  185. </button>
  186. <select id="checkbox12" ref="/root/main/symp" overflow="visible" appearance="full" cellspacing="10" cols="4" vcellspacing="4" style="left:81px; top:70px; width:669px; height:68px; border-style:none; ">
  187. <choices>
  188. <itemset nodeset="/root/init/A0643list/A0643">
  189. <label ref="cdnm"/>
  190. <value ref="cdid"/>
  191. </itemset>
  192. </choices>
  193. </select>
  194. </group>
  195. </xhtml:body>
  196. </xhtml:html>