SPASI03600_산모B형간염신고서.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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>산모B형간염 표본감시 신고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <infcsmmrsltreptinfo>
  11. <infcsmmrsltreptlist>
  12. <state/>
  13. <reptflag>08</reptflag>
  14. <psnflag/>
  15. <patnm/>
  16. <sexflag/>
  17. <age/>
  18. <rgstno/>
  19. <rgstno2/>
  20. <diagdd/>
  21. <lglydiscd>604</lglydiscd>
  22. <preinochstflag>S</preinochstflag>
  23. <pid/>
  24. <wrtedt/>
  25. <instcd/>
  26. <seqno/>
  27. <cretno/>
  28. <orddd/>
  29. <indd/>
  30. <orddeptcd/>
  31. <lasthistyn>Y</lasthistyn>
  32. </infcsmmrsltreptlist>
  33. </infcsmmrsltreptinfo>
  34. <getlglydisinfo>
  35. </getlglydisinfo>
  36. <getreptdtinfo>
  37. </getreptdtinfo>
  38. <paminfo/>
  39. </main>
  40. <send>
  41. <reqdata/>
  42. <savedata/>
  43. </send>
  44. <hidden/>
  45. <init>
  46. <initdate>
  47. <today/>
  48. </initdate>
  49. <A0133list>
  50. <A0133/>
  51. </A0133list>
  52. <A0134list>
  53. <A0134>
  54. </A0134>
  55. </A0134list>
  56. </init>
  57. <diaginfo>
  58. <diagcdlist/>
  59. </diaginfo>
  60. <temp>
  61. <tmplist/>
  62. </temp>
  63. </root>
  64. </instance>
  65. <!--
  66. <submission id="TXASI01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
  67. -->
  68. <submission id="TXASI03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. // model.refresh();
  72. // window.left= 10;
  73. // window.top= 10;
  74. // window.visible=false;
  75. // window.height = 10;
  76. // window.width= 10;
  77. //
  78. // fChkReptYN();
  79. //
  80. // //alert(model.getValue("/root/temp/tmplist/tmplist/wc"));
  81. //
  82. // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  83. // model.close();
  84. // return;
  85. // }else{
  86. // model.refresh();
  87. // window.left= 300;
  88. // window.top= 400;
  89. // window.visible=true;
  90. // window.height = 220;
  91. // window.width= 790;
  92. // }
  93. zbcfGetCodeList(new Array("A0133", "A0134"), new Array("/root/init/A0133list", "/root/init/A0134list"));
  94. model.refresh();
  95. /*if(isPopup()){
  96. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
  97. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno", opener.javascript.getParameter("seqno"));
  98. }*/
  99. var pid = "";
  100. var strRegtdt = "";
  101. var iDate = new Date();
  102. var strYearCal = "";
  103. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  104. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  105. model.removeNodeSet("/root/main/paminfo/list");
  106. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  107. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  108. if(ioflag == "I" || ioflag == "E"){
  109. pid = model.getValue("/root/main/paminfo/list/pid");
  110. indd = model.getValue("/root/main/paminfo/list/indd");
  111. cretno = model.getValue("/root/main/paminfo/list/cretno");
  112. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", pid );
  113. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", indd);
  114. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno", cretno);
  115. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", ioflag);
  116. model.refresh();
  117. }else if(ioflag == "O"){
  118. pid = model.getValue("/root/main/paminfo/list/pid");
  119. orddd = model.getValue("/root/main/paminfo/list/orddd");
  120. cretno = model.getValue("/root/main/paminfo/list/cretno");
  121. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", pid );
  122. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", orddd);
  123. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno", cretno);
  124. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", ioflag);
  125. model.refresh();
  126. }
  127. }else if(isPopup()){
  128. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid", opener.javascript.getParameter("pid"));
  129. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd", opener.javascript.getParameter("indd"));
  130. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag", opener.javascript.getParameter("psnflag"));
  131. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
  132. }
  133. if(!isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"))){
  134. model.copyNode("/root/send/reqdata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
  135. if(submit("TRASI01501")){
  136. model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
  137. //fChgReptDisable();
  138. //@@
  139. fChgReptDisable(result);
  140. model.refresh();
  141. }
  142. //@@
  143. var result = 1;
  144. if(!isNull(opener.javascript.getParameter("PrcpLglyDis"))){
  145. //처방에서 호출한 경우 상병체크하여 초기화
  146. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd", "");
  147. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd", "");
  148. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag", "");
  149. model.refresh();
  150. result=6;
  151. }
  152. if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S" || !isNull(opener.javascript.getParameter("PrcpLglyDis")) )){
  153. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", opener.javascript.getParameter("state"));
  154. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", opener.javascript.getParameter("wrtedt"));
  155. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno", opener.javascript.getParameter("seqno"));
  156. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
  157. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
  158. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
  159. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  160. }else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))) ){
  161. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", opener.javascript.getParameter("state"));
  162. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
  163. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag"));
  164. strRegtdt = "";
  165. if (submit("TRASI01502")){
  166. strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  167. }
  168. if( !isNull(strRegtdt) ){
  169. strYearCal = (iDate.getAddDate(-1, "Y")).getDateFormat();
  170. }
  171. if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") == 'N' ){
  172. //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  173. //@@재호출 메시지 내용 변경
  174. //result = messageBox("신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt+ "입니다. \n \n수정", "S001");
  175. result = messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  176. + "산모 B형감염 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
  177. //model.close();
  178. //return;
  179. }
  180. // if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/chgyn") == 'Y' ){
  181. // model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "U" );
  182. // fChkReptYN();
  183. // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  184. // model.close();
  185. // return;
  186. // }
  187. // }
  188. }
  189. // model.copyNode("/root/send/reqdata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
  190. // if(submit("TRASI01501")){
  191. // model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
  192. fChgReptDisable();
  193. //@@
  194. //fChgReptDisable(result);
  195. model.refresh();
  196. // }
  197. }else{
  198. grp_btn.disabled = true;
  199. }
  200. ]]>
  201. </script>
  202. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  203. <submission id="TRASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getlglydisinfo"/>
  204. <submission id="TRASI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getreptdtinfo"/>
  205. <submission id="TRASI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/tmplist"/>
  206. </model>
  207. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  208. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  209. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  210. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  211. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  212. <script type="javascript">
  213. <![CDATA[
  214. //신고대상자조회화면에서 state="S" 일 때, 입력가능여부 처리
  215. //function fChgReptDisable(){
  216. //@@
  217. function fChgReptDisable(result){
  218. if( isPopup() ){
  219. var strState = opener.javascript.getParameter("state");
  220. var menuParam = opener.javascript.getParameter("menuparam");
  221. }else {
  222. var strState = "I";
  223. }
  224. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  225. var chkWrtedt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  226. var chkReptdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt");
  227. if(!isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  228. if(!isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
  229. if(!isNull(chkWrtedt) && chkWrtedt != "99991231" && !isNull(chkReptdt) && chkReptdt == "99991231" && isNull(strState)){
  230. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  231. }
  232. //(end) 수정 상태 셋팅 끝
  233. if(isPopup() && strState == "U" ){
  234. //@@
  235. if(result == "6"){
  236. grp_main.disabled = false;
  237. btn_save.disabled = false;
  238. btn_init.disabled = false;
  239. btn_cncl.disabled = true;
  240. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt","");
  241. }else{
  242. grp_main.disabled = true;
  243. btn_save.disabled = true;
  244. btn_init.disabled = true;
  245. btn_cncl.disabled = false;
  246. }
  247. // //grp_btn.disabled = false;
  248. // grp_main.disabled = true;
  249. // btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  250. // btn_init.disabled = true; //추가 2009.11.13 JJE
  251. // btn_cncl.disabled = false;
  252. return;
  253. }else if(isPopup() && strState == "S" ){
  254. if(menuParam != "" && !isNull(menuParam)){
  255. //진료메뉴에서 호출시.
  256. if(opener.javascript.getParameter("DisabledChk")=="Y"){ //삭제된 신고서
  257. grp_main.disabled = true;
  258. btn_save.disabled = true;
  259. btn_init.disabled = true;
  260. btn_cncl.disabled = true;
  261. }else{
  262. grp_main.disabled = false;
  263. btn_save.disabled = false;
  264. btn_init.disabled = false;
  265. btn_cncl.disabled = false;
  266. }
  267. }else{
  268. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  269. if(opener.javascript.getParameter("LglyDeptChk")=="N"){
  270. btn_cncl.disabled=true;
  271. }else{
  272. btn_cncl.disabled=false;
  273. }
  274. grp_main.disabled = true;
  275. //grp_btn.disabled = true;
  276. btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  277. btn_init.disabled = true; //추가 2009.11.13 JJE
  278. }
  279. return;
  280. }else {
  281. //grp_btn.disabled = false;
  282. btn_save.disabled = false; //추가 2009.11.13 JJE
  283. btn_init.disabled = false; //추가 2009.11.13 JJE
  284. return;
  285. }
  286. if( isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"))){
  287. grp_main.disabled = true;
  288. grp_btn.disabled = true;
  289. }
  290. }
  291. /*
  292. 기신고서가 있는지 check
  293. */
  294. function fChkReptYN() {
  295. var diagList = instance1.selectNodes("/root/diaginfo/diagcdlist");
  296. var diagcd = "";
  297. var statcd =" ";
  298. if(diagList.length > 0 ) {
  299. for(var i=0 ; i< diagList.length ; i++) {
  300. status = model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status");
  301. if(status == "I" || status == "U" || status == "-") {
  302. diagcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/diagcd").substr(0,4) + "▦";
  303. statcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status") + "▦";
  304. }
  305. }
  306. }
  307. if(diagcd != "") {
  308. model.removeNodeset("/root/send/reqdata");
  309. model.makeValue("/root/send/reqdata/diagcd", diagcd);
  310. model.makeValue("/root/send/reqdata/status", statcd);
  311. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
  312. // if(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid")!=""){
  313. // model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
  314. // } else {
  315. // model.makeValue("/root/send/reqdata/pid", getPatientInfo("pid"));
  316. // //alert(model.getValue("/root/send/reqdata/pid"));
  317. // }
  318. model.makeValue("/root/send/reqdata/reptflag", "08");
  319. if(submit("TRASI01503")){
  320. if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  321. model.close();
  322. return;
  323. }
  324. }
  325. }
  326. }
  327. ]]>
  328. </script>
  329. </xhtml:head>
  330. <xhtml:body pagewidth="775" pageheight="210" style="margin-left:8; margin-right:8; ">
  331. <group id="grp_tle" style="left:0px; top:0px; width:756px; height:22px; ">
  332. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">산모B형간염 표본감시 신고서</caption>
  333. </group>
  334. <group id="grp_main" style="left:0px; top:23px; width:755px; height:152px; ">
  335. <caption id="caption10" class="cell_1" style="left:393px; top:5px; width:55px; height:23px; text-align:center; vertical-align:middle; ">성별</caption>
  336. <line id="line56" class="line_3" style="x1:0px; y1:147px; x2:750px; y2:147px; "/>
  337. <caption id="caption13" class="search_no_b" style="left:187px; top:28px; width:12px; height:17px; ">-</caption>
  338. <caption id="caption1" class="cell_1" style="left:0px; top:29px; width:79px; height:23px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
  339. <caption id="caption2" class="cell_1" style="left:0px; top:5px; width:79px; height:23px; text-align:center; vertical-align:middle; ">성명</caption>
  340. <caption id="caption11" class="cell_1" style="left:564px; top:5px; width:67px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
  341. <caption id="caption3" style="left:82px; top:107px; width:658px; height:35px; vertical-align:middle; ">
  342. <![CDATA[작성요령 1. 완 전 접 종: 3회 접종 시
  343. 2. 불완접접종: 1~2회 접종 시]]>
  344. </caption>
  345. <caption id="caption7" class="cell_1" style="left:0px; top:53px; width:79px; height:23px; text-align:center; vertical-align:middle; ">전염병명</caption>
  346. <caption id="caption8" class="cell_1" style="left:0px; top:77px; width:79px; height:72px; text-align:center; vertical-align:middle; ">예방접종내력</caption>
  347. <line id="line4" class="line_2" style="x1:0px; y1:27px; x2:750px; y2:27px; "/>
  348. <line id="line3" class="line_2" style="x1:0px; y1:51px; x2:750px; y2:51px; "/>
  349. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:750px; y2:0px; "/>
  350. <caption id="caption4" style="left:733px; top:7px; width:15px; height:20px; vertical-align:middle; ">세</caption>
  351. <line id="line1" class="line_2" style="x1:0px; y1:75px; x2:750px; y2:75px; "/>
  352. <output id="opt_nm" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/patnm" class="output_fix" style="left:82px; top:6px; width:308px; height:19px; "/>
  353. <input id="ipt_ioflag" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/psnflag" class="input_default" visibility="hidden" style="left:594px; top:85px; width:35px; height:19px; "/>
  354. <input id="ipt_indd" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/indd" class="input_default" visibility="hidden" style="left:555px; top:85px; width:35px; height:19px; "/>
  355. <input id="ipt_pid" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid" class="input_default" visibility="hidden" style="left:515px; top:85px; width:35px; height:19px; "/>
  356. <output id="opt_sex" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/sexflag" class="output_fix" style="left:451px; top:6px; width:110px; height:19px; "/>
  357. <output id="opt_age" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/age" class="output_fix" style="left:634px; top:6px; width:97px; height:19px; "/>
  358. <output id="opt_rgstno1" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/rgstno" class="output_fix" style="left:82px; top:30px; width:100px; height:19px; "/>
  359. <output id="opt_rgstno2" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/rgstno2" class="output_fix" style="left:199px; top:30px; width:100px; height:19px; "/>
  360. <input id="ipt_diagdd" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd" class="input_essential" inputtype="date" style="left:451px; top:30px; width:110px; height:19px; "/>
  361. <select1 id="rdo_diagnm" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd" visibility="hidden" appearance="full" cellspacing="30" cols="4" vcellspacing="10" overflow="hidden" style="left:0px; top:55px; width:113px; height:25px; border-style:none; ">
  362. <choices>
  363. <itemset nodeset="/root/init/A0133list/A0133">
  364. <label ref="cdnm"/>
  365. <value ref="cdid"/>
  366. </itemset>
  367. </choices>
  368. </select1>
  369. <select1 id="rdo_vacnhist" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag" appearance="full" cellspacing="50" cols="4" vcellspacing="10" overflow="visible" style="left:83px; top:81px; width:425px; height:25px; border-style:none; ">
  370. <choices>
  371. <itemset nodeset="/root/init/A0134list/A0134">
  372. <label ref="cdnm"/>
  373. <value ref="cdid"/>
  374. </itemset>
  375. </choices>
  376. </select1>
  377. <input id="input1" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt" class="input_default" visibility="hidden" style="left:633px; top:85px; width:35px; height:19px; "/>
  378. <input id="input2" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/instcd" class="input_default" visibility="hidden" style="left:670px; top:85px; width:35px; height:19px; "/>
  379. <input id="input3" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/seqno" class="input_default" visibility="hidden" style="left:707px; top:85px; width:35px; height:19px; "/>
  380. <input id="input4" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/cretno" class="input_default" visibility="hidden" style="left:590px; top:55px; width:35px; height:19px; "/>
  381. <input id="input5" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddd" class="input_default" visibility="hidden" style="left:635px; top:55px; width:35px; height:19px; "/>
  382. <caption id="cap_diagdd" class="cell_1" style="left:393px; top:29px; width:55px; height:23px; text-align:center; vertical-align:middle; ">진단일</caption>
  383. <input id="input6" ref="/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddeptcd" class="input_default" visibility="hidden" style="left:680px; top:55px; width:35px; height:19px; "/>
  384. <caption id="caption5" style="left:83px; top:57px; width:100px; height:20px; ">산모B형간염</caption>
  385. </group>
  386. <group id="grp_btn" scroll="auto" style="left:0px; top:177px; width:755px; height:27px; ">
  387. <button id="btn_save" class="btn4_letter2" style="left:567px; top:2px; width:56px; height:22px; ">
  388. <caption>저장</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag", "08");
  392. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd", "604");
  393. if( !isRequiredControls("ipt_diagdd") ){
  394. return;
  395. }
  396. if(isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd")) ){
  397. messageBox("진단일은 ","I003");
  398. return;
  399. }
  400. if((model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd")=="")){
  401. messageBox("전염병명은","I003");
  402. return;
  403. }
  404. if((model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag")=="")){
  405. messageBox("예방접종내력은","I003");
  406. return;
  407. }
  408. if(isNull(model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt"))){
  409. model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "I");
  410. model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/wrtedt", getCurrentDate() +""+ getCurrentTime());
  411. // model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptdt", getCurrentDate() +""+ getCurrentTime());
  412. } else {
  413. model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "U");
  414. }
  415. model.makeValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  416. model.copyNode("/root/send/savedata", "/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
  417. //@@
  418. var Curstate = model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state");
  419. if(submit("TXASI03401")) {
  420. model.copyNode("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist", "/root/main/getlglydisinfo/info");
  421. model.refresh();
  422. //@@
  423. if(Curstate == "I"){
  424. messageBox("저장되었습니다","I");
  425. }else if (Curstate == "U"){
  426. messageBox("수정되었습니다.","I");
  427. }
  428. model.close();
  429. }
  430. ]]>
  431. </script>
  432. </button>
  433. <button id="btn_init" class="btn4_letter3" style="left:684px; top:2px; width:68px; height:22px; ">
  434. <caption>초기화</caption>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/diagdd", "");
  438. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/lglydiscd", "");
  439. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/preinochstflag", "");
  440. //model.resetInstanceNode("/root/main");
  441. model.refresh();
  442. ]]>
  443. </script>
  444. </button>
  445. </group>
  446. <button id="btn_cncl" class="btn4_letter2" style="left:625px; top:179px; width:56px; height:22px; ">
  447. <caption>삭제</caption>
  448. <script type="javascript" ev:event="DOMActivate">
  449. <![CDATA[
  450. model.removeNodeset("/root/send");
  451. model.makeNode("/root/send/savedata");
  452. if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  453. messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  454. return;
  455. }
  456. var result = messageBox("","Q001"); //삭제하시겠습니까?
  457. if (result == "7"){
  458. messageBox("삭제가 취소되었습니다","I");
  459. return;
  460. }else if (result =="6"){
  461. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
  462. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
  463. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
  464. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  465. model.setValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/state", "D");
  466. model.copyNode("/root/send/savedata","/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist");
  467. if(submit("TXASI03401") != false){
  468. model.copyNode("/root/main/vnrlsmmrsltreptinfo", "/root/main/getlglydisinfo");
  469. model.refresh();
  470. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/pid"));
  471. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/infcsmmrsltreptinfo/infcsmmrsltreptlist/reptflag"));
  472. if(submit("TRASI01502", false)){
  473. if( isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt")) ){
  474. messageBox("삭제" ,"I001");
  475. window.close();
  476. }
  477. }
  478. }
  479. }
  480. ]]>
  481. </script>
  482. </button>
  483. </xhtml:body>
  484. </xhtml:html>