SPASI03700_수족구병감시결과신고.xrw 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084
  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. <lglydisinfo>
  11. <info>
  12. <state>I</state>
  13. <psnflag/>
  14. <patnm/>
  15. <sexflag/>
  16. <age/>
  17. <rgstno/>
  18. <rgstno2/>
  19. <zipcd1/>
  20. <zipcd2/>
  21. <tel/>
  22. <cntcaddr1/>
  23. <cntcaddr2/>
  24. <pid/>
  25. <wrtedt/>
  26. <seqno/>
  27. <reptflag>10</reptflag>
  28. <lglydiscd/>
  29. <indd/>
  30. <cretno/>
  31. <orddeptcd/>
  32. <procernm/>
  33. <residncflag/>
  34. <idflag/>
  35. <attackdd/>
  36. <diagdd/>
  37. <diagcd/>
  38. <mdiag/>
  39. <sdiag/>
  40. <sdiagetc/>
  41. <symp/>
  42. <sympetc/>
  43. <estminfcpath/>
  44. <estminfcareacd/>
  45. <estminfcareanaticd/>
  46. <stayterm/>
  47. <staytermday/>
  48. <tisstestlag/>
  49. <tisstestdd/>
  50. <matrnm/>
  51. <matrnmetc/>
  52. <testcnts/>
  53. <testcnts1/>
  54. <testcnts2/>
  55. <testcnts3/>
  56. <testcnts4/>
  57. <testcnts5/>
  58. <testcnts6/>
  59. <lasthistyn>Y</lasthistyn>
  60. </info>
  61. </lglydisinfo>
  62. <getlglydisinfo>
  63. <info/>
  64. </getlglydisinfo>
  65. <getreptdtinfo>
  66. <reptdtinfo>
  67. <reptdt/>
  68. </reptdtinfo>
  69. </getreptdtinfo>
  70. <paminfo/>
  71. </main>
  72. <send>
  73. <reqdata/>
  74. <savedata/>
  75. </send>
  76. <hidden>
  77. </hidden>
  78. <init>
  79. <A0131list>
  80. <A0131/>
  81. </A0131list>
  82. <A0132list>
  83. <A0132/>
  84. </A0132list>
  85. <P0353list>
  86. <P0353/>
  87. </P0353list>
  88. </init>
  89. <diaginfo>
  90. <diagcdlist/>
  91. </diaginfo>
  92. <temp>
  93. <tmplist/>
  94. <initinfo/>
  95. </temp>
  96. </root>
  97. </instance>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. zbcfGetCodeList(new Array("A0131", "A0132", "P0353"),
  101. new Array("/root/init/A0131list", "/root/init/A0132list", "/root/init/P0353list"));
  102. model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
  103. //model.refresh();
  104. var ioflag = "";
  105. var pid = "";
  106. var orddd = "";
  107. var cretno = "";
  108. var strRegtdt = "";
  109. var iDate = new Date();
  110. var strYearCal = "";
  111. var wrtedt = "";
  112. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  113. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  114. model.removeNodeSet("/root/main/paminfo/list");
  115. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  116. ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  117. pid = model.getValue("/root/main/paminfo/list/pid");
  118. cretno = model.getValue("/root/main/paminfo/list/cretno");
  119. if(ioflag == "O") orddd = model.getValue("/root/main/paminfo/list/orddd");
  120. else orddd = model.getValue("/root/main/paminfo/list/indd");
  121. }else if(isPopup()){
  122. ioflag = opener.javascript.getParameter("psnflag");
  123. pid = opener.javascript.getParameter("pid");
  124. cretno = opener.javascript.getParameter("cretno");
  125. orddd = opener.javascript.getParameter("indd");
  126. wrtedt = opener.javascript.getParameter("wrtedt");
  127. }
  128. model.setValue("/root/main/lglydisinfo/info/pid", pid );
  129. model.setValue("/root/main/lglydisinfo/info/indd", orddd );
  130. model.setValue("/root/main/lglydisinfo/info/psnflag", ioflag );
  131. model.setValue("/root/main/lglydisinfo/info/cretno", cretno );
  132. model.setValue("/root/main/lglydisinfo/info/wrtedt", wrtedt );
  133. if( !isNull(model.getValue("/root/main/lglydisinfo/info/pid")) ) {
  134. //@@
  135. model.copyNode("/root/send/reqdata", "/root/main/lglydisinfo/info");
  136. if(submit("TRASI01501", false) ) {//환자인적정보 조회
  137. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  138. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  139. model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
  140. model.setValue("/root/main/lglydisinfo/info/lglydiscd", "999");
  141. //뇌막염 환자 척수액 소견
  142. var testcnts = model.getValue("/root/main/lglydisinfo/info/testcnts");
  143. if ( testcnts != "" ||testcnts != null )
  144. {
  145. var stestcnts = testcnts.split("|");
  146. model.setValue("/root/main/lglydisinfo/info/testcnts1", stestcnts[0]);
  147. model.setValue("/root/main/lglydisinfo/info/testcnts2", stestcnts[1]);
  148. model.setValue("/root/main/lglydisinfo/info/testcnts3", stestcnts[2]);
  149. model.setValue("/root/main/lglydisinfo/info/testcnts4", stestcnts[3]);
  150. model.setValue("/root/main/lglydisinfo/info/testcnts5", stestcnts[4]);
  151. model.setValue("/root/main/lglydisinfo/info/testcnts6", stestcnts[5]);
  152. }
  153. //fChgReptDisable();
  154. //@@
  155. //fChgReptDisable(result);
  156. fChkCnclYN();
  157. fCtrlEnableChk("chk_sdiag");
  158. fCtrlEnableChk("chk_symp");
  159. fCtrlEnableChk("rdo_estminfcareacd");
  160. fCtrlEnableChk("rdo_tisstestlag");
  161. fCtrlEnableChk("chk_matrnm");
  162. }
  163. }
  164. //@@
  165. var result = 1;
  166. if(!isNull(opener.javascript.getParameter("PrcpLglyDis"))){
  167. //처방에서 호출한 경우 상병체크하여 초기화
  168. fInit();
  169. result=6;
  170. }
  171. if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S" || !isNull(opener.javascript.getParameter("PrcpLglyDis")) )){
  172. model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("state") );
  173. model.setValue("/root/main/lglydisinfo/info/wrtedt", opener.javascript.getParameter("wrtedt") );
  174. model.setValue("/root/main/lglydisinfo/info/seqno", opener.javascript.getParameter("seqno") );
  175. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
  176. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
  177. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
  178. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  179. // grp_main.disabled = true;
  180. // grp_btn.disabled = true;
  181. if(opener.javascript.getParameter("state") == "U" ){
  182. grp_main.disabled = true;
  183. btn_save.disabled = true;
  184. btn_init.disabled = true;
  185. btn_cncl.disabled = false;
  186. }else if(opener.javascript.getParameter("state") == "S" ){
  187. grp_main.disabled = true;
  188. btn_save.disabled = true;
  189. btn_init.disabled = true;
  190. btn_cncl.disabled = false;
  191. //2013/07/11 Start
  192. input6.disabled = false;
  193. ipt_attackdd.disabled = false;
  194. ipt_diagdd.disabled = false;
  195. chk_mdiag.disabled = false;
  196. chk_sdiag.disabled = false;
  197. chk_symp.disabled = false;
  198. ipt_sdiagetc.disabled = false;
  199. ipt_sympetc.disabled = false;
  200. input12.disabled = false;
  201. input9.disabled = false;
  202. input11.disabled = false;
  203. input10.disabled = false;
  204. input13.disabled = false;
  205. input8.disabled = false;
  206. rdo_estminfcpath.disabled = false;
  207. cmd_estminfcareanaticd.disabled = false;
  208. rdo_estminfcareacd.disabled = false;
  209. ipt_stayterm.disabled = false;
  210. ipt_staytermday.disabled = false;
  211. rdo_tisstestlag.disabled = false;
  212. ipt_tisstestdd.disabled = false;
  213. chk_matrnm.disabled = false;
  214. ipt_matrnmetc.disabled = false;
  215. model.refresh();
  216. //2013/07/11 End
  217. }
  218. //}else if(isPopup() && (opener.javascript.getParameter("state") != "U" && opener.javascript.getParameter("state") != "S")){
  219. }else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))) ){
  220. //fChkReptYN();
  221. model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("psnflag"));
  222. model.makeValue("/root/send/reqdata/pid", pid);
  223. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/lglydisinfo/info/reptflag"));
  224. strRegtdt = "";
  225. //재신고 가능여부 체크
  226. if (submit("TRASI01502")){
  227. strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  228. }
  229. if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != "" && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != null ){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
  230. //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  231. //@@재호출 메시지 내용 변경
  232. //result = messageBox("신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt+ "입니다. \n \n수정", "S001");
  233. result = messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  234. + "수족구병 (으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
  235. //model.close();
  236. //return;
  237. } else { //신고 내용이 없다면
  238. result=6;
  239. }
  240. }
  241. // else{
  242. // grp_btn.disabled = true;
  243. // //return;
  244. // }
  245. //
  246. // //재신고 가능여부 체크
  247. // if (submit("TRASI01502")){
  248. // strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  249. // }
  250. // if( !isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn")) && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") == 'N' ){
  251. // messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  252. // //model.close();
  253. // //return;
  254. // }
  255. // model.copyNode("/root/send/reqdata", "/root/main/lglydisinfo/info");
  256. //
  257. // if(submit("TRASI01501", false) ) {//환자인적정보 조회
  258. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  259. // model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  260. // model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
  261. // model.setValue("/root/main/lglydisinfo/info/lglydiscd", "999");
  262. // //뇌막염 환자 척수액 소견
  263. // var testcnts = model.getValue("/root/main/lglydisinfo/info/testcnts");
  264. // if ( testcnts != "" ||testcnts != null )
  265. // {
  266. // var stestcnts = testcnts.split("|");
  267. // model.setValue("/root/main/lglydisinfo/info/testcnts1", stestcnts[0]);
  268. // model.setValue("/root/main/lglydisinfo/info/testcnts2", stestcnts[1]);
  269. // model.setValue("/root/main/lglydisinfo/info/testcnts3", stestcnts[2]);
  270. // model.setValue("/root/main/lglydisinfo/info/testcnts4", stestcnts[3]);
  271. // model.setValue("/root/main/lglydisinfo/info/testcnts5", stestcnts[4]);
  272. // model.setValue("/root/main/lglydisinfo/info/testcnts6", stestcnts[5]);
  273. // }
  274. //fChgReptDisable();
  275. //@@
  276. fChgReptDisable(result);
  277. // fChkCnclYN();
  278. // fCtrlEnableChk("chk_sdiag");
  279. // fCtrlEnableChk("chk_symp");
  280. // fCtrlEnableChk("rdo_estminfcareacd");
  281. // fCtrlEnableChk("rdo_tisstestlag");
  282. // fCtrlEnableChk("chk_matrnm");
  283. }
  284. // }
  285. if((model.getValue("/root/main/lglydisinfo/info/psnflag")) == "O") {
  286. model.setValue("/root/main/lglydisinfo/info/diagdd","")
  287. model.refresh();
  288. } else {
  289. var ipt_indd = model.getValue("/root/main/lglydisinfo/info/indd");
  290. model.setValue("/root/main/lglydisinfo/info/diagdd", ipt_indd)
  291. model.refresh();
  292. }
  293. //2013/07/11 Start
  294. //ipt_diagdd.disabled = true;
  295. //2013/07/11 end
  296. } else {
  297. grp_btn.disabled = true;
  298. }
  299. model.refresh();
  300. ]]>
  301. </script>
  302. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  303. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  304. <submission id="TRASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getlglydisinfo"/>
  305. <submission id="TRASI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getreptdtinfo"/>
  306. <submission id="TRASI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/tmplist"/>
  307. <submission id="TXASI03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
  308. </model>
  309. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  310. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  311. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  312. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  313. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  314. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  315. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  316. <script type="javascript">
  317. <![CDATA[
  318. /*
  319. 초기화화면 버튼 클릭시
  320. */
  321. function fInit(){
  322. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  323. //값을 없애도록 수정..
  324. model.makeValue("/root/main/lglydisinfo/info/state", "");
  325. model.makeValue("/root/main/lglydisinfo/info/wrtedt", "");
  326. model.makeValue("/root/main/lglydisinfo/info/seqno", "");
  327. model.makeValue("/root/main/lglydisinfo/info/attackdd", "");
  328. model.makeValue("/root/main/lglydisinfo/info/diagdd", "");
  329. model.makeValue("/root/main/lglydisinfo/info/mdiag", "");
  330. model.makeValue("/root/main/lglydisinfo/info/sdiag", "");
  331. model.makeValue("/root/main/lglydisinfo/info/sdiagetc", "");
  332. model.makeValue("/root/main/lglydisinfo/info/symp", "");
  333. model.makeValue("/root/main/lglydisinfo/info/sympetc", "");
  334. model.makeValue("/root/main/lglydisinfo/info/testcnts1", "");
  335. model.makeValue("/root/main/lglydisinfo/info/testcnts2", "");
  336. model.makeValue("/root/main/lglydisinfo/info/testcnts3", "");
  337. model.makeValue("/root/main/lglydisinfo/info/testcnts4", "");
  338. model.makeValue("/root/main/lglydisinfo/info/testcnts5", "");
  339. model.makeValue("/root/main/lglydisinfo/info/testcnts6", "");
  340. model.makeValue("/root/main/lglydisinfo/info/estminfcpath", "");
  341. model.makeValue("/root/main/lglydisinfo/info/estminfcareacd", "");
  342. model.makeValue("/root/main/lglydisinfo/info/estminfcareanaticd", "");
  343. model.makeValue("/root/main/lglydisinfo/info/stayterm", "");
  344. model.makeValue("/root/main/lglydisinfo/info/staytermday", "");
  345. model.makeValue("/root/main/lglydisinfo/info/tisstestlag", "");
  346. model.makeValue("/root/main/lglydisinfo/info/tisstestdd", "");
  347. model.makeValue("/root/main/lglydisinfo/info/matrnm", "");
  348. model.makeValue("/root/main/lglydisinfo/info/matrnmetc", "");
  349. fChkCnclYN();
  350. fCtrlEnableChk("chk_sdiag");
  351. fCtrlEnableChk("chk_symp");
  352. fCtrlEnableChk("rdo_estminfcareacd");
  353. fCtrlEnableChk("rdo_tisstestlag");
  354. fCtrlEnableChk("chk_matrnm");
  355. }
  356. /*
  357. 삭제된건은 조회만 가능
  358. */
  359. function fChkCnclYN(){
  360. if(model.getValue("/root/main/lglydisinfo/info/cnclyn") =="'Y" && opener.javascript.getParameter("state") == "S" ){
  361. messageBox("삭제된 신고서", "I009"); //메세지 추가 (2009.11.13 JJE)
  362. grp_btn.disabled = true;
  363. }
  364. }
  365. /*
  366. 신고대상자조회화면에서 state="S",
  367. 진단에서 state="I",
  368. 퇴원시 1군, 일본뇌염 이고 법정전염병신고서가 작성되어 있을경우 state="U"
  369. 메뉴에서 상단환자정보를 가지고 조회해서 법정전염병 신고서가 작성되어 있고 전염병이 1군, 일본뇌염이 존재시 state="U"
  370. 상태에 따라 입력가능여부 처리
  371. */
  372. //function fChgReptDisable(){
  373. //@@
  374. function fChgReptDisable(result){
  375. //grp_chg.disabled = true;
  376. if( isPopup() ){
  377. var strState = opener.javascript.getParameter("state");
  378. var menuParam = opener.javascript.getParameter("menuparam");
  379. }else {
  380. var strState = "I";
  381. }
  382. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  383. var chkWrtedt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  384. var chkReptdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt");
  385. if(!isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  386. if(!isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
  387. if(!isNull(chkWrtedt) && chkWrtedt != "99991231" && !isNull(chkReptdt) && chkReptdt == "99991231" && isNull(strState)){
  388. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  389. }
  390. //(end) 수정 상태 셋팅 끝
  391. //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
  392. if (opener.javascript.getParameter("PrcpLglyDis") != null && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" ) strState = "I";
  393. if(isPopup() && strState == "U" ){
  394. //@@
  395. if(result == "6"){
  396. grp_main.disabled = false;
  397. btn_save.disabled = false;
  398. btn_init.disabled = false;
  399. btn_cncl.disabled = true;
  400. fInit();
  401. }else{
  402. grp_main.disabled = true;
  403. btn_save.disabled = true;
  404. btn_init.disabled = true;
  405. btn_cncl.disabled = false;
  406. rdo_estminfcpath.disabled = true;
  407. }
  408. // grp_main.disabled = true;
  409. // //grp_chg.disabled = false;
  410. // btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  411. // btn_init.disabled = true; //추가 2009.11.13 JJE
  412. // btn_cncl.disabled = false; //추가 2009.11.13 JJE
  413. return;
  414. }else if(isPopup() && strState == "S" ){
  415. if(menuParam != "" && !isNull(menuParam)){
  416. //진료메뉴에서 호출시.
  417. if(opener.javascript.getParameter("DisabledChk")=="Y"){ //삭제된 신고서
  418. grp_main.disabled = true;
  419. btn_save.disabled = true;
  420. btn_init.disabled = true;
  421. btn_cncl.disabled = true;
  422. }else{
  423. grp_main.disabled = false;
  424. btn_save.disabled = false;
  425. btn_init.disabled = false;
  426. btn_cncl.disabled = false;
  427. }
  428. }else{
  429. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  430. if(opener.javascript.getParameter("LglyDeptChk")=="N"){
  431. btn_cncl.disabled=true;
  432. }else{
  433. btn_cncl.disabled=false;
  434. }
  435. //2013/07/11 Start
  436. //grp_main.disabled = true;
  437. grp_main.disabled = false;
  438. btn_save.disabled = false;
  439. //2013/07/11 End
  440. //grp_chg.disabled = true;
  441. //grp_btn.disabled = true;
  442. //btn_save.disabled = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  443. btn_init.disabled = true; //추가 2009.11.13 JJE
  444. //btn_cncl.disabled = false; //추가 2009.11.13 JJE
  445. }
  446. return;
  447. }else if(isPopup() && strState != "U" ){
  448. if(result == "6"){
  449. grp_main.disabled = false;
  450. btn_save.disabled = false;
  451. btn_init.disabled = false;
  452. btn_cncl.disabled = true;
  453. fInit();
  454. }else{
  455. grp_main.disabled = true;
  456. btn_save.disabled = true;
  457. btn_init.disabled = true;
  458. btn_cncl.disabled = false;
  459. rdo_estminfcpath.disabled = true;
  460. }
  461. return;
  462. }
  463. }
  464. function fCtrlEnableChk(pControlID){
  465. if (pControlID == "chk_sdiag") { // 동반진단
  466. if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/sdiag"), "99") ) {
  467. ipt_sdiagetc.disabled = false;
  468. model.setFocus("ipt_sdiagetc");
  469. } else {
  470. ipt_sdiagetc.disabled = true;
  471. model.setValue("/root/main/lglydisinfo/info/sdiagetc", "");
  472. model.refresh();
  473. }
  474. } else if (pControlID == "chk_symp") {
  475. if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/symp"), "99") ) {
  476. ipt_sympetc.disabled = false;
  477. model.setFocus("ipt_sympetc");
  478. } else {
  479. ipt_sympetc.disabled = true;
  480. model.setValue("/root/main/lglydisinfo/info/sympetc", "");
  481. model.refresh();
  482. }
  483. } else if (pControlID == "rdo_estminfcareacd") { // 추정감염지역
  484. if (model.getValue("/root/main/lglydisinfo/info/estminfcareacd") == "O") {
  485. cmd_estminfcareanaticd.disabled = false;
  486. ipt_stayterm.disabled = false;
  487. ipt_staytermday.disabled = false;
  488. model.setFocus("rdo_tisstestlag");
  489. } else {
  490. cmd_estminfcareanaticd.disabled = true;
  491. ipt_stayterm.disabled = true;
  492. ipt_staytermday.disabled = true;
  493. model.makeValue("/root/main/lglydisinfo/info/estminfcareanaticd", "");
  494. model.makeValue("/root/main/lglydisinfo/info/stayterm", "");
  495. model.makeValue("/root/main/lglydisinfo/info/staytermday", "");
  496. model.refresh();
  497. }
  498. } else if (pControlID == "rdo_tisstestlag") { // 검체채취유무
  499. if (model.getValue("/root/main/lglydisinfo/info/tisstestlag") == "Y") {
  500. ipt_tisstestdd.disabled = false;
  501. model.setFocus("ipt_tisstestdd");
  502. } else {
  503. ipt_tisstestdd.disabled = true;
  504. model.setValue("/root/main/lglydisinfo/info/tisstestdd", "");
  505. model.refresh();
  506. }
  507. } else if (pControlID == "chk_matrnm") { // 가검물명
  508. if ( isSearchString(model.getValue("/root/main/lglydisinfo/info/matrnm"), "99") ) {
  509. ipt_matrnmetc.disabled = false;
  510. model.setFocus("ipt_matrnmetc");
  511. } else {
  512. ipt_matrnmetc.disabled = true;
  513. model.setValue("/root/main/lglydisinfo/info/matrnmetc", "");
  514. model.refresh();
  515. }
  516. }
  517. }
  518. /*
  519. * 신고된 신고서가 있는지 check
  520. */
  521. function fChkReptYN() {
  522. var diagList = instance1.selectNodes("/root/diaginfo/diagcdlist");
  523. var diagcd = "";
  524. var statcd = "";
  525. if(diagList.length > 0 ) {
  526. for(var i=0 ; i< diagList.length ; i++) {
  527. status = model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status");
  528. if(status == "I" || status == "U" || status == "-") {
  529. diagcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/diagcd").substr(0,4) + "▦"; //확장코드 자르기
  530. statcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status") + "▦";
  531. }
  532. }
  533. }
  534. if(diagcd != "") {
  535. model.removeNodeset("/root/send/reqdata");
  536. model.makeValue("/root/send/reqdata/diagcd", diagcd);
  537. model.makeValue("/root/send/reqdata/status", statcd);
  538. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/lglydisinfo/info/pid"));
  539. model.makeValue("/root/send/reqdata/reptflag", "10");
  540. if(submit("TRASI01503", false)) {
  541. if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  542. model.close();
  543. return;
  544. }
  545. }
  546. }
  547. }
  548. ]]>
  549. </script>
  550. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  551. </xhtml:head>
  552. <xhtml:body pagewidth="772" pageheight="670" guideline="1,767;" style="margin-left:8; margin-right:8; ">
  553. <output id="output8" style="left:640px; top:555px; width:100px; height:19px; "/>
  554. <caption id="caption30" class="cell_1" style="left:0px; top:545px; width:750px; height:70px; font-weight:bold; vertical-align:middle; line-spacing:4; ">
  555. <![CDATA[
  556. ① 합병증을 동반한 수족구병 : 수족구병으로 시작된 신경학적 합병증(뇌막염, 뇌염, 폴리오양 마비 등) 소견을 보인자
  557. ② 합병증을 동반한 수족구병의 경우에만 신고함]]>
  558. </caption>
  559. <group id="grp_tle" style="left:0px; top:0px; width:756; height:13px; ">
  560. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:371px; height:14px; ">합병증을 동반한 수족구병 감시결과신고</caption>
  561. </group>
  562. <line id="line2" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
  563. <group id="grp_main" scroll="auto" style="left:0px; top:20px; width:755px; height:525px; text-align:center; ">
  564. <caption id="caption23" style="left:640px; top:445px; width:90px; height:20px; ">개월 일</caption>
  565. <select id="chk_symp" ref="/root/main/lglydisinfo/info/symp" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" vcellspacing="5" style="left:100px; top:220px; width:647px; height:120px; text-align:left; border-style:none; ">
  566. <choices>
  567. <item>
  568. <label>
  569. <![CDATA[고열 (>37.3℃)]]>
  570. </label>
  571. <value>1</value>
  572. </item>
  573. <item>
  574. <label>설사</label>
  575. <value>2</value>
  576. </item>
  577. <item>
  578. <label>인후통</label>
  579. <value>3</value>
  580. </item>
  581. <item>
  582. <label>호흡기 증상</label>
  583. <value>4</value>
  584. </item>
  585. <item>
  586. <label>근육통</label>
  587. <value>5</value>
  588. </item>
  589. <item>
  590. <label>두통</label>
  591. <value>6</value>
  592. </item>
  593. <item>
  594. <label>구토</label>
  595. <value>7</value>
  596. </item>
  597. <item>
  598. <label>경련</label>
  599. <value>8</value>
  600. </item>
  601. <item>
  602. <label>광과민증</label>
  603. <value>9</value>
  604. </item>
  605. <item>
  606. <label>경부강직</label>
  607. <value>10</value>
  608. </item>
  609. <item>
  610. <label>의식저하</label>
  611. <value>11</value>
  612. </item>
  613. <item>
  614. <label>흉통</label>
  615. <value>12</value>
  616. </item>
  617. <item>
  618. <label>호흡곤란</label>
  619. <value>13</value>
  620. </item>
  621. <item>
  622. <label>부정맥</label>
  623. <value>14</value>
  624. </item>
  625. <item>
  626. <label>복통</label>
  627. <value>15</value>
  628. </item>
  629. <item>
  630. <label>홍반성 발진</label>
  631. <value>16</value>
  632. </item>
  633. <item>
  634. <label>수포성 발진</label>
  635. <value>17</value>
  636. </item>
  637. <item>
  638. <label>심한 눈꼽</label>
  639. <value>18</value>
  640. </item>
  641. <item>
  642. <label>안구통</label>
  643. <value>19</value>
  644. </item>
  645. <item>
  646. <label>사지위약(Paralysis/Weakness of extremities</label>
  647. <value>20</value>
  648. </item>
  649. <item>
  650. <label>기타</label>
  651. <value>99</value>
  652. </item>
  653. </choices>
  654. <script type="javascript" ev:event="xforms-value-changed">
  655. <![CDATA[
  656. fCtrlEnableChk("chk_symp");
  657. ]]>
  658. </script>
  659. </select>
  660. <select id="chk_sdiag" ref="/root/main/lglydisinfo/info/sdiag" overflow="visible" appearance="full" cellspacing="20" cols="4" sep="|" vcellspacing="5" style="left:166px; top:175px; width:581px; height:43px; text-align:left; border-style:none; ">
  661. <choices>
  662. <item>
  663. <label>급성 위장관염</label>
  664. <value>1</value>
  665. </item>
  666. <item>
  667. <label>급성 호흡기질환</label>
  668. <value>2</value>
  669. </item>
  670. <item>
  671. <label>간염</label>
  672. <value>3</value>
  673. </item>
  674. <item>
  675. <label>발열</label>
  676. <value>4</value>
  677. </item>
  678. <item>
  679. <label>기타</label>
  680. <value>99</value>
  681. </item>
  682. </choices>
  683. <script type="javascript" ev:event="xforms-value-changed">
  684. <![CDATA[
  685. fCtrlEnableChk("chk_sdiag");
  686. ]]>
  687. </script>
  688. </select>
  689. <line id="line4" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
  690. <caption id="caption14" class="cell_1" style="left:0px; top:6px; width:100px; height:23px; text-align:center; vertical-align:middle; ">환자 성명</caption>
  691. <caption id="caption15" class="cell_1" style="left:0px; top:32px; width:100px; height:23px; text-align:center; vertical-align:middle; ">생년월일</caption>
  692. <output id="output1" ref="/root/main/lglydisinfo/info/zipcd1" class="output_fix" style="left:103px; top:58px; width:48px; height:19px; "/>
  693. <output id="output2" ref="/root/main/lglydisinfo/info/cntcaddr1" class="output_fix" style="left:102px; top:82px; width:645px; height:19px; text-align:left; "/>
  694. <output id="output3" ref="/root/main/lglydisinfo/info/zipcd2" class="output_fix" style="left:174px; top:58px; width:48px; height:19px; "/>
  695. <caption id="caption16" class="cell_1" style="left:286px; top:7px; width:68px; height:23px; vertical-align:middle; ">성별</caption>
  696. <output id="output4" ref="/root/main/lglydisinfo/info/patnm" class="output_fix" style="left:103px; top:8px; width:110px; height:19px; "/>
  697. <output id="output5" ref="/root/main/lglydisinfo/info/rgstno" class="output_fix" style="left:103px; top:34px; width:80px; height:19px; "/>
  698. <output id="output6" ref="/root/main/lglydisinfo/info/rgstno2" class="output_fix" visibility="hidden" style="left:203px; top:34px; width:80px; height:19px; "/>
  699. <caption id="caption17" class="search_no_b" visibility="hidden" style="left:187px; top:33px; width:12px; height:17px; ">-</caption>
  700. <caption id="caption18" class="search_no_b" style="left:156px; top:58px; width:12px; height:17px; ">-</caption>
  701. <caption id="caption19" class="cell_1" style="left:0px; top:467px; width:100px; height:23px; text-align:center; vertical-align:middle; ">검체채취유무</caption>
  702. <caption id="caption20" class="cell_1" style="left:0px; top:387px; width:100px; height:78px; text-align:center; vertical-align:middle; ">
  703. <![CDATA[추 정
  704. 감염경로]]>
  705. </caption>
  706. <caption id="caption22" class="cell_1" style="left:0px; top:492px; width:100px; height:23px; text-align:center; vertical-align:middle; ">가검물명</caption>
  707. <caption id="caption25" class="cell_1" style="left:0px; top:56px; width:100px; height:48px; text-align:center; vertical-align:middle; ">주소 및 전화번호</caption>
  708. <caption id="caption26" class="cell_1" style="left:0px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">발병일</caption>
  709. <caption id="caption27" class="cell_1" style="left:0px; top:130px; width:100px; height:89px; text-align:center; vertical-align:middle; ">진단소견</caption>
  710. <caption id="caption28" class="cell_1" style="left:0px; top:221px; width:100px; height:119px; text-align:center; vertical-align:middle; ">주요증상</caption>
  711. <caption id="caption29" class="cell_1" style="left:0px; top:342px; width:100px; height:43px; text-align:center; vertical-align:middle; ">
  712. <![CDATA[뇌막염 환자
  713. 척수액 소견]]>
  714. </caption>
  715. <line id="line5" class="line_1" style="x1:0px; y1:2px; x2:750px; y2:2px; "/>
  716. <line id="line6" class="line_2" style="x1:0px; y1:30px; x2:750px; y2:30px; "/>
  717. <line id="line7" class="line_2" style="x1:0px; y1:54px; x2:750px; y2:54px; "/>
  718. <line id="line8" class="line_2" style="x1:100px; y1:79px; x2:750px; y2:78px; "/>
  719. <line id="line9" class="line_2" style="x1:0px; y1:128px; x2:750px; y2:128px; "/>
  720. <line id="line10" class="line_2" style="x1:0px; y1:220px; x2:750px; y2:220px; "/>
  721. <line id="line12" class="line_2" style="x1:0px; y1:490px; x2:750px; y2:490px; "/>
  722. <caption id="caption35" class="cell_1" style="left:485px; top:7px; width:70px; height:23px; text-align:center; vertical-align:middle; ">연령</caption>
  723. <caption id="caption38" class="cell_1" style="left:286px; top:33px; width:199px; height:23px; vertical-align:middle; ">보호자성명( 만 19세 미만인 경우)</caption>
  724. <input id="input6" ref="/root/main/lglydisinfo/info/procernm" class="ipt__default" style="left:487px; top:34px; width:170px; height:19px; "/>
  725. <caption id="caption44" class="cell_1" style="left:286px; top:56px; width:59px; height:23px; vertical-align:middle; ">전화번호</caption>
  726. <select1 id="radio1" ref="/root/main/lglydisinfo/info/sexflag" disabled="true" appearance="full" cellspacing="30" cols="2" vcellspacing="5" overflow="visible" style="left:357px; top:8px; width:125px; height:20px; border-style:none; ">
  727. <choices>
  728. <item>
  729. <label>남</label>
  730. <value>M</value>
  731. </item>
  732. <item>
  733. <label>여</label>
  734. <value>F</value>
  735. </item>
  736. </choices>
  737. </select1>
  738. <output id="output7" ref="/root/main/lglydisinfo/info/tel" class="output_fix" style="left:347px; top:58px; width:138px; height:19px; text-align:center; "/>
  739. <input id="input7" ref="/root/main/lglydisinfo/info/age" class="ipt__default" disabled="true" style="left:585px; top:8px; width:40px; height:19px; text-align:right; "/>
  740. <caption id="caption54" style="left:570px; top:11px; width:25px; height:15px; ">만</caption>
  741. <caption id="caption57" style="left:615px; top:11px; width:25px; height:15px; text-align:right; vertical-align:middle; ">세</caption>
  742. <line id="line22" class="line_2" style="x1:0px; y1:103px; x2:750px; y2:103px; "/>
  743. <caption id="caption58" class="cell_1" style="left:380px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">입원일</caption>
  744. <caption id="caption61" class="cell_1" style="left:102px; top:130px; width:60px; height:43px; vertical-align:middle; ">주요진단</caption>
  745. <caption id="caption1" class="cell_1" style="left:102px; top:176px; width:60px; height:43px; vertical-align:middle; ">동반진단</caption>
  746. <input id="ipt_attackdd" ref="/root/main/lglydisinfo/info/attackdd" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:107px; width:275px; height:19px; "/>
  747. <input id="ipt_diagdd" ref="/root/main/lglydisinfo/info/diagdd" inputtype="date" format="yyyy-mm-dd" style="left:482px; top:107px; width:265px; height:19px; "/>
  748. <select id="chk_residncflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:488px; top:59px; width:86px; height:20px; border-style:none; ">
  749. <choices>
  750. <item>
  751. <label>거주지 불명</label>
  752. <value>Y</value>
  753. </item>
  754. </choices>
  755. </select>
  756. <select id="chk_idflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:579px; top:59px; width:86px; height:20px; border-style:none; ">
  757. <choices>
  758. <item>
  759. <label>신원미상</label>
  760. <value>Y</value>
  761. </item>
  762. </choices>
  763. </select>
  764. <line id="line1" class="line_2" style="x1:100px; y1:174px; x2:748px; y2:174px; "/>
  765. <line id="line16" class="line_2" style="x1:0px; y1:341px; x2:748px; y2:341px; "/>
  766. <line id="line17" class="line_2" style="x1:0px; y1:386px; x2:748px; y2:386px; "/>
  767. <line id="line19" class="line_2" style="x1:0px; y1:466px; x2:748px; y2:466px; "/>
  768. <line id="line18" class="line_2" style="x1:0px; y1:515px; x2:748px; y2:515px; "/>
  769. <caption id="caption2" class="cell_1" style="left:380px; top:387px; width:100px; height:78px; text-align:center; vertical-align:middle; ">
  770. <![CDATA[추 정
  771. 감염지역]]>
  772. </caption>
  773. <caption id="caption3" class="cell_1" style="left:380px; top:467px; width:100px; height:23px; text-align:center; vertical-align:middle; ">검체채취일</caption>
  774. <select1 id="rdo_tisstestlag" ref="/root/main/lglydisinfo/info/tisstestlag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:100px; top:469px; width:85px; height:20px; text-align:center; border-style:none; ">
  775. <choices>
  776. <item>
  777. <label>유</label>
  778. <value>Y</value>
  779. </item>
  780. <item>
  781. <label>무</label>
  782. <value>N</value>
  783. </item>
  784. </choices>
  785. <script type="javascript" ev:event="xforms-value-changed">
  786. <![CDATA[
  787. fCtrlEnableChk("rdo_tisstestlag");
  788. ]]>
  789. </script>
  790. </select1>
  791. <input id="ipt_stayterm" ref="/root/main/lglydisinfo/info/stayterm" format="#,###" style="left:580px; top:445px; width:55px; height:19px; text-align:center; "/>
  792. <input id="ipt_staytermday" ref="/root/main/lglydisinfo/info/staytermday" maxlength="2" format="#,###" style="left:675px; top:445px; width:25px; height:19px; text-align:center; "/>
  793. <caption id="caption4" style="left:490px; top:425px; width:40px; height:20px; ">(국명)</caption>
  794. <caption id="caption5" style="left:490px; top:445px; width:68px; height:20px; ">(체류기간)</caption>
  795. <caption id="caption7" style="left:105px; top:345px; width:95px; height:20px; ">백혈구(WBC) [</caption>
  796. <caption id="caption8" style="left:240px; top:345px; width:308px; height:20px; ">]개/㎕ 다핵구/림프구/기타(Poly/Lympho/Other) [</caption>
  797. <caption id="caption9" style="left:580px; top:345px; width:25px; height:20px; ">%/</caption>
  798. <caption id="caption10" style="left:635px; top:345px; width:25px; height:20px; ">%/</caption>
  799. <caption id="caption11" style="left:695px; top:345px; width:25px; height:20px; ">%]</caption>
  800. <caption id="caption12" style="left:105px; top:365px; width:95px; height:20px; ">단백(Protein) [</caption>
  801. <caption id="caption13" style="left:255px; top:365px; width:351px; height:20px; ">]㎎/㎗ 당(Glucose) [</caption>
  802. <caption id="caption21" style="left:505px; top:365px; width:80px; height:20px; ">]㎎/㎗</caption>
  803. <input id="input8" ref="/root/main/lglydisinfo/info/testcnts6" format="###,###" style="left:450px; top:365px; width:55px; height:19px; "/>
  804. <input id="input9" ref="/root/main/lglydisinfo/info/testcnts2" maxlength="2" format="#,###" style="left:550px; top:345px; width:30px; height:19px; "/>
  805. <input id="input10" ref="/root/main/lglydisinfo/info/testcnts3" maxlength="2" format="#,###" style="left:605px; top:345px; width:30px; height:19px; "/>
  806. <input id="input11" ref="/root/main/lglydisinfo/info/testcnts4" maxlength="2" format="#,###" style="left:665px; top:345px; width:30px; height:19px; "/>
  807. <input id="input12" ref="/root/main/lglydisinfo/info/testcnts1" format="###,###" style="left:190px; top:345px; width:50px; height:19px; "/>
  808. <input id="input13" ref="/root/main/lglydisinfo/info/testcnts5" format="###,###" style="left:190px; top:365px; width:65px; height:19px; "/>
  809. <line id="line3" class="line_1" style="x1:0px; y1:515px; x2:750px; y2:515px; "/>
  810. <select id="chk_mdiag" ref="/root/main/lglydisinfo/info/mdiag" overflow="visible" appearance="full" cellspacing="20" cols="5" sep="|" vcellspacing="5" style="left:166px; top:130px; width:581px; height:43px; text-align:left; border-style:none; ">
  811. <choices>
  812. <item>
  813. <label>수족구병</label>
  814. <value>1</value>
  815. </item>
  816. <item>
  817. <label>포진성구협염</label>
  818. <value>2</value>
  819. </item>
  820. <item>
  821. <label>급성출혈성결막염</label>
  822. <value>3</value>
  823. </item>
  824. <item>
  825. <label>신생아패혈증</label>
  826. <value>4</value>
  827. </item>
  828. <item>
  829. <label>무균성뇌막염</label>
  830. <value>5</value>
  831. </item>
  832. <item>
  833. <label>뇌염</label>
  834. <value>6</value>
  835. </item>
  836. <item>
  837. <label>심근염</label>
  838. <value>7</value>
  839. </item>
  840. <item>
  841. <label>심낭염</label>
  842. <value>8</value>
  843. </item>
  844. <item>
  845. <label>확장성심근병증</label>
  846. <value>9</value>
  847. </item>
  848. </choices>
  849. </select>
  850. <input id="ipt_sdiagetc" ref="/root/main/lglydisinfo/info/sdiagetc" style="left:225px; top:198px; width:522px; height:19px; text-align:left; "/>
  851. <input id="ipt_sympetc" ref="/root/main/lglydisinfo/info/sympetc" style="left:150px; top:310px; width:597px; height:19px; text-align:left; "/>
  852. <input id="ipt_tisstestdd" ref="/root/main/lglydisinfo/info/tisstestdd" inputtype="date" format="yyyy-mm-dd" style="left:482px; top:469px; width:265px; height:19px; "/>
  853. <select id="chk_matrnm" ref="/root/main/lglydisinfo/info/matrnm" overflow="visible" appearance="full" cellspacing="10" cols="5" rows="1" sep="|" style="left:100px; top:494px; width:290px; height:20px; text-align:left; border-style:none; ">
  854. <choices>
  855. <item>
  856. <label>대변(Stool)</label>
  857. <value>1</value>
  858. </item>
  859. <item>
  860. <label>인후(Throat swab)</label>
  861. <value>2</value>
  862. </item>
  863. <item>
  864. <label>기타</label>
  865. <value>99</value>
  866. </item>
  867. </choices>
  868. <script type="javascript" ev:event="xforms-value-changed">
  869. <![CDATA[
  870. fCtrlEnableChk("chk_matrnm");
  871. ]]>
  872. </script>
  873. </select>
  874. <input id="ipt_matrnmetc" ref="/root/main/lglydisinfo/info/matrnmetc" style="left:390px; top:495px; width:357px; height:19px; text-align:left; "/>
  875. <select1 id="rdo_estminfcareacd" ref="/root/main/lglydisinfo/info/estminfcareacd" appearance="full" cols="1" vcellspacing="2" overflow="visible" style="left:480px; top:387px; width:75px; height:55px; border-style:none; ">
  876. <choices>
  877. <itemset nodeset="/root/init/A0132list/A0132">
  878. <label ref="cdnm"/>
  879. <value ref="cdid"/>
  880. </itemset>
  881. </choices>
  882. <script id="script51" type="javascript" ev:event="xforms-value-changed">
  883. <![CDATA[
  884. fCtrlEnableChk("rdo_estminfcareacd");
  885. ]]>
  886. </script>
  887. </select1>
  888. <select1 id="cmd_estminfcareanaticd" ref="/root/main/lglydisinfo/info/estminfcareanaticd" appearance="minimal" style="left:535px; top:425px; width:100px; height:19px; ">
  889. <choices>
  890. <itemset nodeset="/root/init/P0353list/P0353">
  891. <label ref="cdnm"/>
  892. <value ref="cdid"/>
  893. </itemset>
  894. </choices>
  895. </select1>
  896. </group>
  897. <group id="grp_btn" style="left:0px; top:620px; width:756px; height:27px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  898. <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:685px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  899. <caption>초기화</caption>
  900. <script type="javascript" ev:event="DOMActivate">
  901. <![CDATA[
  902. //model.resetInstanceNode("/root/main");
  903. fInit();
  904. //뇌막염 환자 척수액 소견 (수정 필요)
  905. model.refresh();
  906. ]]>
  907. </script>
  908. </button>
  909. <button id="btn_cncl" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:628px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  910. <caption>삭제</caption>
  911. <script type="javascript" ev:event="DOMActivate">
  912. <![CDATA[
  913. model.removeNodeset("/root/send");
  914. model.makeNode("/root/send/savedata");
  915. //if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt") != '99991231235959' ){
  916. if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  917. messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  918. return;
  919. }
  920. var result = messageBox("","Q001"); //삭제하시겠습니까?
  921. if (result == "7"){
  922. messageBox("삭제가 취소되었습니다","I");
  923. return;
  924. }else if (result =="6"){
  925. model.setValue("/root/main/lglydisinfo/info/state", "D");
  926. model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
  927. if(submit("TXASI03701", false)){
  928. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  929. model.refresh();
  930. messageBox("삭제" ,"I001");
  931. window.close();
  932. }
  933. }
  934. ]]>
  935. </script>
  936. </button>
  937. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:570px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  938. <caption>저장</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. model.removeNodeset("/root/send");
  942. model.makeNode("/root/send/savedata");
  943. // if( isRequiredControls("ipt_attackdd","ipt_diagdd") == false ) {
  944. // return;
  945. // }
  946. if( isNull(model.getValue("/root/main/lglydisinfo/info/attackdd")) ){
  947. messageBox("발병일은 필수입니다.","I");
  948. return;
  949. }
  950. if(isNull(model.getValue("/root/main/lglydisinfo/info/mdiag")) ){
  951. messageBox("주요진단은 필수입니다.","I");
  952. return;
  953. }
  954. if (model.getValue("/root/main/lglydisinfo/info/estminfcareacd") == "O" && model.getValue("/root/main/lglydisinfo/info/staytermday") > "30" ) {
  955. messageBox("체류기간 일은 30일을 넘을 수 없습니다.", "I");
  956. return;
  957. }
  958. // if(isNull(model.getValue("/root/main/lglydisinfo/info/diagdd")) ){
  959. // messageBox("진단일은 필수입력입니다.");
  960. // return;
  961. // }
  962. if( isNull(model.getValue("/root/main/lglydisinfo/info/wrtedt")) ){
  963. model.setValue("/root/main/lglydisinfo/info/state", "I");
  964. model.setValue("/root/main/lglydisinfo/info/wrtedt", getCurrentDate() +""+getCurrentTime());
  965. } else {
  966. model.setValue("/root/main/lglydisinfo/info/state", "U");
  967. }
  968. model.setValue("/root/main/lglydisinfo/info/reptflag", "10");
  969. model.setValue("/root/main/lglydisinfo/info/lglydiscd", "701");
  970. model.setValue("/root/main/lglydisinfo/info/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  971. model.setValue("/root/main/lglydisinfo/info/updtreptcnts", ""); //변경신고내용
  972. model.setValue("/root/main/lglydisinfo/info/diagcd",model.getValue("/root/diaginfo/diagcdlist/diagcd"));
  973. //뇌막염 환자 척수액 소견 (수정 필요)
  974. var testcnts = "";
  975. var temp = model.getValue("/root/main/lglydisinfo/info/testcnts1");
  976. if ( isNull(temp)) temp = "-";
  977. testcnts = testcnts + temp;
  978. temp = model.getValue("/root/main/lglydisinfo/info/testcnts2");
  979. if ( isNull(temp)) temp = "-";
  980. testcnts = testcnts + "|" +temp;
  981. temp = model.getValue("/root/main/lglydisinfo/info/testcnts3");
  982. if ( isNull(temp)) temp = "-";
  983. testcnts = testcnts + "|" +temp;
  984. temp = model.getValue("/root/main/lglydisinfo/info/testcnts4");
  985. if ( isNull(temp)) temp = "-";
  986. testcnts = testcnts + "|" +temp;
  987. temp = model.getValue("/root/main/lglydisinfo/info/testcnts5");
  988. if ( isNull(temp)) temp = "-";
  989. testcnts = testcnts + "|" +temp;
  990. temp = model.getValue("/root/main/lglydisinfo/info/testcnts6");
  991. if ( isNull(temp)) temp = "-";
  992. testcnts = testcnts + "|" +temp;
  993. model.setValue("/root/main/lglydisinfo/info/testcnts", testcnts);
  994. model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
  995. //@@
  996. var Curstate = model.getValue("/root/main/lglydisinfo/info/state");
  997. if(submit("TXASI03701", false)){
  998. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  999. //fCtrlEnableChk("rdo");
  1000. //fCtrlEnableChk("rdo_chgrept");
  1001. //fCtrlEnableChk("rdo_estminfcareacd");
  1002. //fChgReptDisable();
  1003. model.refresh();
  1004. //@@
  1005. if(Curstate == "I"){
  1006. messageBox("저장되었습니다","I");
  1007. }else if (Curstate == "U"){
  1008. messageBox("수정되었습니다.","I");
  1009. }
  1010. model.close();
  1011. }
  1012. ]]>
  1013. </script>
  1014. </button>
  1015. </group>
  1016. <select1 id="rdo_estminfcpath" ref="/root/main/lglydisinfo/info/estminfcpath" appearance="full" cols="1" vcellspacing="2" overflow="visible" style="left:100px; top:409px; width:275px; height:75px; border-style:none; ">
  1017. <choices>
  1018. <itemset nodeset="/root/init/A0131list/A0131">
  1019. <label ref="cdnm"/>
  1020. <value ref="cdid"/>
  1021. </itemset>
  1022. </choices>
  1023. </select1>
  1024. <caption id="caption24" class="tit_2" style="left:20px; top:550px; width:60px; height:15px; ">비고</caption>
  1025. <caption id="caption31" class="cell_1" style="left:0px; top:221px; width:100px; height:119px; text-align:center; vertical-align:middle; ">주요증상</caption>
  1026. </xhtml:body>
  1027. </xhtml:html>