SPASI03300_HIV-AIDS신고서.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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>HIV-AIDS 신고</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. <instcd/>
  28. <reptflag>09</reptflag>
  29. <lglydiscd/>
  30. <ioeflag/>
  31. <orddd/>
  32. <indd/>
  33. <cretno/>
  34. <deptcd/>
  35. <wrteid/>
  36. <jobcd/>
  37. <procernm/>
  38. <residncflag/>
  39. <idflag/>
  40. <symp/>
  41. <diagnm/>
  42. <attackdd/>
  43. <diagdd/>
  44. <diagcd/>
  45. <dethyn/>
  46. <cnfsnwtstrslt/>
  47. <estminfcpath/>
  48. <estminfcareacd/>
  49. <estminfcareanaticd/>
  50. <naticd/>
  51. <ecntrydd/>
  52. <ecntrytodd/>
  53. <stayterm/>
  54. <chngreptkind/>
  55. <updtreptcnts/>
  56. <updtreptdd/>
  57. <updtreptrid/>
  58. <reptdt/>
  59. <reptrid/>
  60. <preinochstflag/>
  61. <pastcureflag/>
  62. <cureterm/>
  63. <pastcurecnt/>
  64. <bisiziflag/>
  65. <bisiziinocmthd/>
  66. <sputumdm/>
  67. <sputumby/>
  68. <sputumodm/>
  69. <sputumoby/>
  70. <etctestflag/>
  71. <rayrsltflag/>
  72. <tooberrsltsize/>
  73. <solidsize/>
  74. <inhospflag/>
  75. <curefromdd/>
  76. <curetodd/>
  77. <curersltflag/>
  78. <curersltetc/>
  79. <dethflag/>
  80. <cncldt/>
  81. <diagmthd/>
  82. <diagmthdcnts/>
  83. <cnclerid/>
  84. <lglydiscnts/>
  85. <tisstestlag/>
  86. <testpartcd/>
  87. <testpartremcnts/>
  88. <testmthdcd/>
  89. <plaqflagcd/>
  90. <brwavetestflag/>
  91. <brwavetestcnts/>
  92. <raytestflag/>
  93. <raytestcnts/>
  94. <crbrfldtestflag/>
  95. <crbrfldtestcnts/>
  96. <prnpagenetestflag/>
  97. <codonnm/>
  98. <codonflag/>
  99. <codonflag2/>
  100. <codoncnts/>
  101. <patflag/>
  102. <patflag2/>
  103. <dngrcascd/>
  104. <dngrcasremcnts/>
  105. <infcnts/>
  106. <dethdd/>
  107. <estminfcpathremcnts/>
  108. <tmpcol1/>
  109. <tmpcol2/>
  110. <tmpcol3/>
  111. <etcnts1/>
  112. <etcnts2/>
  113. <etcnts3/>
  114. <matrno/>
  115. <fstdiagdd/>
  116. <sympremcnts/>
  117. <lglykindcd/>
  118. <relyn/>
  119. <cnfmtestinstcd/>
  120. <cnfmtestinstnm/>
  121. <testrslt1/>
  122. <testrslt2/>
  123. <brthdd/>
  124. <lasthistyn>Y</lasthistyn>
  125. </info>
  126. </lglydisinfo>
  127. <getlglydisinfo/>
  128. <getreptdtinfo/>
  129. <paminfo/>
  130. <diaginfo/>
  131. </main>
  132. <send>
  133. <reqdata/>
  134. <savedata/>
  135. </send>
  136. <init>
  137. <M0149list/>
  138. <P0353list/>
  139. <A0132list/>
  140. <A0632list/>
  141. <A0631list/>
  142. <A0629list/>
  143. <A0369list/>
  144. <A0630list/>
  145. </init>
  146. <diaginfo>
  147. <diagcdlist/>
  148. </diaginfo>
  149. <temp>
  150. <tmplist/>
  151. <initinfo/>
  152. </temp>
  153. </root>
  154. </instance>
  155. <script type="javascript" ev:event="xforms-ready">
  156. <![CDATA[
  157. zbcfGetCodeList(new Array("M0149", "P0353", "A0132", "A0632", "A0631", "A0629", "A0369", "A0630"),
  158. new Array("/root/init/M0149list", "/root/init/P0353list", "/root/init/A0132list", "/root/init/A0632list", "/root/init/A0631list"
  159. , "/root/init/A0629list", "/root/init/A0369list", "/root/init/A0630list")
  160. , true, new Array("cdid","cdid","cdid","cdid","cdid","cdid","cdid","cdid") );
  161. model.setValue("/root/main/lglydisinfo/info/reptflag", "09");
  162. //임시 - 공통코드 변경 완료되면, 성가 오픈 후 삭제할 것
  163. /*
  164. var nodes = instance1.selectNodes("/root/init/A0629list/A0629");
  165. if( nodes.length > 0 ){
  166. for( var i=0; i<nodes.length; i++ ){
  167. var node = nodes.item(i);
  168. var cdidNode = node.selectSingleNode("cdid");
  169. var cdidText = cdidNode.text;
  170. model.setValue(cdidNode, cdidText.substr(1, 1));
  171. }
  172. }
  173. */
  174. var ioflag = "";
  175. var pid = "";
  176. var orddd = "";
  177. var cretno = "";
  178. var strRegtdt = "";
  179. var iDate = new Date();
  180. var strYearCal = "";
  181. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  182. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  183. model.removeNodeSet("/root/main/paminfo/list");
  184. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  185. ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  186. pid = model.getValue("/root/main/paminfo/list/pid");
  187. cretno = model.getValue("/root/main/paminfo/list/cretno");
  188. if(ioflag == "O") orddd = model.getValue("/root/main/paminfo/list/orddd");
  189. else orddd = model.getValue("/root/main/paminfo/list/indd");
  190. }else{
  191. if(isPopup()){
  192. ioflag = opener.javascript.getParameter("psnflag");
  193. pid = opener.javascript.getParameter("pid");
  194. cretno = opener.javascript.getParameter("cretno");
  195. orddd = opener.javascript.getParameter("indd");
  196. }
  197. }
  198. model.setValue("/root/main/lglydisinfo/info/pid", pid );
  199. model.setValue("/root/main/lglydisinfo/info/orddd", orddd );
  200. model.setValue("/root/main/lglydisinfo/info/indd", orddd);
  201. model.setValue("/root/main/lglydisinfo/info/psnflag", ioflag );
  202. model.setValue("/root/main/lglydisinfo/info/cretno", cretno );
  203. if( !isNull(model.getValue("/root/main/lglydisinfo/info/pid")) ) {
  204. if(submit("TRASI03401", false) ){ //초기값 조회
  205. model.copyNode("/root/send/reqdata", "/root/main/lglydisinfo/info");
  206. if(submit("TRASI01501", false) ) {//환자인적정보 조회
  207. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  208. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  209. //model.setValue("/root/main/lglydisinfo/info/lglydiscd", model.getValue("/root/temp/initinfo/info/lglydiscd"));
  210. //fCtrlEnableChk("rdo");
  211. //fCtrlEnableChk("rdo_chgrept");
  212. //fCtrlEnableChk("rdo_estminfcarea");
  213. model.refresh();
  214. fChkCnclYN();
  215. //fChgReptDisable();
  216. }
  217. }
  218. }
  219. var result = 1;
  220. if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S")){
  221. model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("state") );
  222. model.setValue("/root/main/lglydisinfo/info/wrtedt", opener.javascript.getParameter("wrtedt") );
  223. model.setValue("/root/main/lglydisinfo/info/seqno", opener.javascript.getParameter("seqno") );
  224. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
  225. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
  226. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
  227. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  228. }else if(isPopup() && opener.javascript.getParameter("state") != "U" && opener.javascript.getParameter("state") != "S"){
  229. //fChkReptYN();
  230. model.setValue("/root/main/lglydisinfo/info/state", opener.javascript.getParameter("state") );
  231. model.makeValue("/root/send/reqdata/pid", pid);
  232. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/lglydisinfo/info/reptflag"));
  233. strRegtdt = "";
  234. if (submit("TRASI01502")){
  235. strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  236. }
  237. if( !isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn")) && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") == 'N' ){
  238. //messageBox(" 신고주기는 12개월이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  239. var a = model.getValue("/root/main/lglydisinfo/info/lglydiscd");
  240. var lglydisnm = "";
  241. if(a=="605"){
  242. lglydisnm="인체면역바이러스 감염"
  243. }else if(a=="606"){
  244. lglydisnm="후천성면역결핍증환자"
  245. }
  246. messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  247. + lglydisnm +"(으)로 전염병이 신고되어 있습니다, \n 해당 상병은 추가 신고가 불필요합니다.", "I");
  248. model.close();
  249. return;
  250. }
  251. model.makeValue("/root/send/reqdata/hardcdno", "9");
  252. model.makeValue("/root/send/reqdata/trgtcd", model.getValue("/root/main/lglydisinfo/info/reptflag"));
  253. }
  254. // if(submit("TRASI03401", false) ){ //초기값 조회
  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/lglydiscd", model.getValue("/root/temp/initinfo/info/lglydiscd"));
  261. //fCtrlEnableChk("rdo");
  262. //fCtrlEnableChk("rdo_chgrept");
  263. //fCtrlEnableChk("rdo_estminfcarea");
  264. model.refresh();
  265. // fChkCnclYN();
  266. fChgReptDisable(result);
  267. }
  268. // }
  269. // }
  270. }else{
  271. grp_btn.disabled = true;
  272. }
  273. model.refresh();
  274. ]]>
  275. </script>
  276. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  277. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  278. <submission id="TRASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getlglydisinfo"/>
  279. <submission id="TRASI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getreptdtinfo"/>
  280. <submission id="TRASI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/tmplist"/>
  281. <submission id="TRASI03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/initinfo"/>
  282. <submission id="TXASI03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
  283. </model>
  284. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  285. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  286. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  287. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  288. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  289. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  290. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  291. <script type="javascript">
  292. <![CDATA[
  293. /*
  294. 초기화화면 버튼 클릭시
  295. */
  296. function fInit(){
  297. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  298. //fCtrlEnableChk("rdo");
  299. //fCtrlEnableChk("rdo_chgrept");
  300. //fCtrlEnableChk("rdo_estminfcarea");
  301. }
  302. /*
  303. 삭제된건은 조회만 가능
  304. */
  305. function fChkCnclYN(){
  306. if(model.getValue("/root/main/lglydisinfo/info/cnclyn") == "Y" && opener.javascript.getParameter("state") == "S"){
  307. messageBox("삭제된 신고서", "I009"); //메세지 추가 (2009.11.13 JJE)
  308. grp_btn.disabled = true;
  309. }
  310. }
  311. /*
  312. 신고대상자조회화면에서 state="S",
  313. 진단에서 state="I",
  314. 퇴원시 1군, 일본뇌염 이고 법정전염병신고서가 작성되어 있을경우 state="U"
  315. 메뉴에서 상단환자정보를 가지고 조회해서 법정전염병 신고서가 작성되어 있고 전염병이 1군, 일본뇌염이 존재시 state="U"
  316. 상태에 따라 입력가능여부 처리
  317. */
  318. function fChgReptDisable(){
  319. //grp_chg.disabled = true;
  320. if( isPopup() ){
  321. var strState = opener.javascript.getParameter("state");
  322. var menuParam = opener.javascript.getParameter("menuparam");
  323. }else {
  324. var strState = "I";
  325. }
  326. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  327. var chkWrtedt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  328. var chkReptdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt");
  329. if(!isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  330. if(!isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  331. if(!isNull(chkWrtedt) && chkWrtedt != "99991231" && !isNull(chkReptdt) && chkReptdt == "99991231" && isNull(strState)){
  332. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  333. }
  334. //(end) 수정 상태 셋팅 끝
  335. if(isPopup() && strState == "U" ){
  336. grp_main.disabled = true;
  337. //grp_chg.disabled = false;
  338. btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  339. btn_init.disabled = true; //추가 2009.11.13 JJE
  340. btn_cncl.disabled = false; //추가 2009.11.13 JJE
  341. return;
  342. }else if(isPopup() && strState == "S" ){
  343. if(menuParam != "" && !isNull(menuParam)){
  344. //진료메뉴에서 호출시.
  345. if(opener.javascript.getParameter("DisabledChk")=="Y"){ //삭제된 신고서
  346. grp_main.disabled = true;
  347. btn_save.disabled = true;
  348. btn_init.disabled = true;
  349. btn_cncl.disabled = true;
  350. }else{
  351. grp_main.disabled = false;
  352. btn_save.disabled = false;
  353. btn_init.disabled = false;
  354. btn_cncl.disabled = false;
  355. }
  356. }else{
  357. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  358. if(opener.javascript.getParameter("LglyDeptChk")=="N"){
  359. btn_cncl.disabled=true;
  360. }else{
  361. btn_cncl.disabled=false;
  362. }
  363. grp_main.disabled = true;
  364. //grp_chg.disabled = true;
  365. //grp_btn.disabled = true;
  366. btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  367. btn_init.disabled = true; //추가 2009.11.13 JJE
  368. //btn_cncl.disabled = false; //추가 2009.11.13 JJE
  369. }
  370. return;
  371. }else if(isPopup() && strState != "U" ){
  372. grp_main.disabled = false;
  373. //grp_chg.disabled = true;
  374. //chx_grup2bac8.disabled = true;
  375. //chx_grup3bac3.disabled = true;
  376. btn_save.disabled = false; //추가 2009.11.13 JJE
  377. btn_init.disabled = false; //추가 2009.11.13 JJE
  378. btn_cncl.disabled = true; //추가 2009.11.13 JJE
  379. return;
  380. }
  381. }
  382. function fCtrlEnableChk(pControlID){
  383. if (pControlID == "rdo") { //전염병 선택
  384. var sInfecd = model.getValue("/root/main/lglydisinfo/info/lglydiscd");
  385. /*
  386. if (sInfecd == "499") {
  387. ipt_newbacsymp.disabled = false;
  388. model.setFocus("ipt_newbacsymp");
  389. } else {
  390. ipt_newbacsymp.disabled = true;
  391. model.setValue("/root/main/lglydisinfo/info/grup4lglydisnewsymp", "");
  392. model.refresh();
  393. }
  394. if (sInfecd == "999") {
  395. model.setFocus("btn_apntlglydisnm");
  396. } else {
  397. model.setValue("/root/main/lglydisinfo/info/apntlglydisnm", "");
  398. model.refresh();
  399. }
  400. */
  401. } else if (pControlID == "rdo_estminfcarea") { // 추정감염지역
  402. if (model.getValue("/root/main/lglydisinfo/info/estminfcarea") == "O") {
  403. cmb_estminfcareanaticd.disabled = false;
  404. ipt_estminfcareastayterm.disabled = false;
  405. model.setFocus("cmb_2");
  406. } else {
  407. cmb_estminfcareanaticd.disabled = true;
  408. ipt_estminfcareastayterm.disabled = true;
  409. model.setValue("/root/main/lglydisinfo/info/estminfcareanaticd", "");
  410. model.setValue("/root/main/lglydisinfo/info/estminfcareastayterm", "");
  411. model.refresh();
  412. }
  413. }
  414. }
  415. /*
  416. * 신고된 신고서가 있는지 check
  417. */
  418. function fChkReptYN() {
  419. var diagList = instance1.selectNodes("/root/diaginfo/diagcdlist");
  420. var diagcd = "";
  421. var statcd = "";
  422. if(diagList.length > 0 ) {
  423. for(var i=0 ; i< diagList.length ; i++) {
  424. status = model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status");
  425. if(status == "I" || status == "U" || status == "-") {
  426. diagcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/diagcd").substr(0,4) + "▦"; //확장코드 자르기
  427. statcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status") + "▦";
  428. }
  429. }
  430. }
  431. if(diagcd != "") {
  432. model.removeNodeset("/root/send/reqdata");
  433. model.makeValue("/root/send/reqdata/diagcd", diagcd);
  434. model.makeValue("/root/send/reqdata/status", statcd);
  435. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/lglydisinfo/info/pid"));
  436. model.makeValue("/root/send/reqdata/reptflag", "09");
  437. if(submit("TRASI01503", false)) {
  438. if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  439. model.close();
  440. return;
  441. }
  442. }
  443. }
  444. }
  445. ]]>
  446. </script>
  447. </xhtml:head>
  448. <xhtml:body pagewidth="772" pageheight="795" guideline="1,744;1,361;" style="margin-left:8; margin-right:8; ">
  449. <group id="grp_tle" style="left:0px; top:0px; width:756; height:13px; ">
  450. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; ">인체면역결핍바이러스 감염인 / 후천성면역결핍증 환자 발견(사망) 신고·보고</caption>
  451. </group>
  452. <line id="line2" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
  453. <datagrid id="grd_diag" nodeset="/root/main/diaginfo/diaglist" visibility="hidden" caption="진단코드^진단명^caption1^caption2" colsep="^" colwidth="80, 145, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:508px; top:585px; width:222px; height:90px; ">
  454. <col ref="termcd" style="left:0px; top:23px; width:100px; height:23px; "/>
  455. <col ref="termhngnm"/>
  456. <col ref="termengnm" visibility="hidden"/>
  457. <col ref="termflag" visibility="hidden"/>
  458. </datagrid>
  459. <output id="opt_cntcaddr1" ref="/root/main/lglydisinfo/info/cntcaddr1" class="output_fix" style="left:102px; top:72px; width:523px; height:19px; "/>
  460. <caption id="caption48" class="cell_1" style="left:0px; top:70px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
  461. <caption id="caption40" class="search_no_b" style="left:684px; top:71px; width:12px; height:17px; ">-</caption>
  462. <output id="opt_zipcd1" ref="/root/main/lglydisinfo/info/zipcd1" class="output_fix" style="left:635px; top:72px; width:48px; height:19px; "/>
  463. <output id="opt_zipcd2" ref="/root/main/lglydisinfo/info/zipcd2" class="output_fix" style="left:695px; top:72px; width:48px; height:19px; "/>
  464. <group id="grp_main" scroll="auto" style="left:0px; top:15px; width:755px; height:750px; ">
  465. <line id="line4" class="line_1" style="x1:0px; y1:-19px; x2:750px; y2:-18px; "/>
  466. <line id="line5" class="line_1" style="x1:0px; y1:2px; x2:750px; y2:2px; "/>
  467. <line id="line51" class="line_3" style="x1:0px; y1:745px; x2:750px; y2:745px; "/>
  468. <caption id="caption14" class="cell_1" style="left:0px; top:7px; width:100px; height:23px; vertical-align:middle; ">신고 구분</caption>
  469. <caption id="caption12" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; vertical-align:middle; ">성별</caption>
  470. <caption id="caption13" class="cell_1" style="left:365px; top:30px; width:100px; height:23px; vertical-align:middle; ">생년월일</caption>
  471. <caption id="caption15" class="cell_1" style="left:563px; top:30px; width:80px; height:23px; vertical-align:middle; ">가검물번호</caption>
  472. <caption id="caption16" class="cell_1" style="left:0px; top:79px; width:100px; height:23px; vertical-align:middle; ">최초진단일</caption>
  473. <caption id="caption17" class="cell_1" style="left:0px; top:104px; width:100px; height:23px; vertical-align:middle; ">확인진단일</caption>
  474. <caption id="caption18" class="cell_1" style="left:0px; top:128px; width:100px; height:122px; vertical-align:middle; ">검사소견</caption>
  475. <caption id="caption19" class="cell_1" style="left:365px; top:79px; width:100px; height:49px; vertical-align:middle; ">확인검사기관</caption>
  476. <line id="line7" class="line_2" style="x1:0px; y1:29px; x2:750px; y2:29px; "/>
  477. <line id="line6" class="line_2" style="x1:0px; y1:53px; x2:750px; y2:53px; "/>
  478. <line id="line8" class="line_2" style="x1:0px; y1:102px; x2:360px; y2:102px; "/>
  479. <line id="line9" class="line_2" style="x1:0px; y1:126px; x2:750px; y2:126px; "/>
  480. <caption id="caption20" class="cell_1" style="left:365px; top:129px; width:100px; height:121px; vertical-align:middle; ">추정감염경로</caption>
  481. <line id="line10" class="line_2" style="x1:0px; y1:251px; x2:750px; y2:251px; "/>
  482. <caption id="caption21" class="cell_1" style="left:0px; top:252px; width:100px; height:23px; vertical-align:middle; ">사망여부</caption>
  483. <caption id="caption22" class="cell_1" style="left:264px; top:252px; width:100px; height:23px; vertical-align:middle; ">사망자 성명</caption>
  484. <caption id="caption23" class="cell_1" style="left:464px; top:252px; width:124px; height:23px; vertical-align:middle; ">사망자 주민등록번호</caption>
  485. <line id="line11" class="line_2" style="x1:0px; y1:274px; x2:750px; y2:274px; "/>
  486. <caption id="caption24" class="cell_1" style="left:0px; top:276px; width:100px; height:33px; vertical-align:middle; ">
  487. <![CDATA[주요사망원인
  488. (진단명)]]>
  489. </caption>
  490. <line id="line12" class="line_2" style="x1:0px; y1:309px; x2:750px; y2:309px; "/>
  491. <caption id="caption25" class="cell_1" style="left:0px; top:311px; width:100px; height:23px; vertical-align:middle; ">사망일자</caption>
  492. <caption id="caption26" class="cell_1" style="left:365px; top:311px; width:217px; height:23px; vertical-align:middle; ">사망과 후천성면역결핍증과의 관련성</caption>
  493. <caption id="caption27" class="cell_1" style="left:0px; top:335px; width:100px; height:412px; vertical-align:middle; ">
  494. <![CDATA[후천성면역
  495. 결핍증환자
  496. 관련 임상증상
  497. (사망전
  498. 주요증상 포함)]]>
  499. </caption>
  500. <select id="checkbox3" ref="/root/main/lglydisinfo/info/symp" overflow="visible" appearance="full" sep="," style="left:100px; top:337px; width:647px; height:410px; border-style:none; ">
  501. <choices>
  502. <itemset nodeset="/root/init/A0630list/A0630">
  503. <label ref="cdnm"/>
  504. <value ref="cdid"/>
  505. </itemset>
  506. </choices>
  507. </select>
  508. <line id="line13" class="line_2" style="x1:0px; y1:333px; x2:750px; y2:333px; "/>
  509. <output id="output5" ref="/root/main/lglydisinfo/info/brthdd" class="output_fix" format="yyyy-mm-dd" style="left:467px; top:32px; width:93px; height:19px; "/>
  510. <input id="input9" ref="/root/main/lglydisinfo/info/fstdiagdd" navindex="16" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:80px; width:259px; height:19px; "/>
  511. <select1 id="radio2" ref="/root/main/lglydisinfo/info/sexflag" disabled="true" appearance="full" cellspacing="30" cols="2" vcellspacing="5" overflow="visible" style="left:102px; top:31px; width:125px; height:20px; border-style:none; ">
  512. <choices>
  513. <item>
  514. <label>남</label>
  515. <value>M</value>
  516. </item>
  517. <item>
  518. <label>여</label>
  519. <value>F</value>
  520. </item>
  521. </choices>
  522. </select1>
  523. <select1 id="radio1" ref="/root/main/lglydisinfo/info/lglydiscd" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:102px; top:9px; width:644px; height:20px; border-style:none; ">
  524. <choices>
  525. <item>
  526. <label>인체면역바이러스 감염인</label>
  527. <value>605</value>
  528. </item>
  529. <item>
  530. <label>후천성면역결핍증환자</label>
  531. <value>606</value>
  532. </item>
  533. </choices>
  534. </select1>
  535. <input id="input3" ref="/root/main/lglydisinfo/info/diagdd" navindex="16" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:104px; width:259px; height:19px; "/>
  536. <input id="input5" ref="/root/main/lglydisinfo/info/patnm" style="left:366px; top:253px; width:96px; height:19px; "/>
  537. <output id="output2" ref="/root/main/lglydisinfo/info/rgstno" class="output_fix" style="left:590px; top:254px; width:73px; height:19px; "/>
  538. <output id="output6" ref="/root/main/lglydisinfo/info/rgstno2" class="output_fix" style="left:672px; top:254px; width:73px; height:19px; "/>
  539. <caption id="caption28" class="search_no_b" style="left:662px; top:254px; width:12px; height:17px; ">-</caption>
  540. <textarea id="textarea1" ref="/root/main/lglydisinfo/info/diagnm" style="left:102px; top:276px; width:623px; height:30px; "/>
  541. <input id="input6" ref="/root/main/lglydisinfo/info/dethdd" navindex="16" inputtype="date" format="yyyy-mm-dd" style="left:101px; top:312px; width:226px; height:19px; "/>
  542. <input id="input13" ref="/root/main/lglydisinfo/info/estminfcpathremcnts" style="left:555px; top:225px; width:189px; height:19px; "/>
  543. <input id="input7" ref="/root/main/lglydisinfo/info/sympremcnts" style="left:189px; top:722px; width:557px; height:19px; "/>
  544. <select id="checkbox1" ref="/root/main/lglydisinfo/info/etctestflag" overflow="visible" appearance="full" sep="," vcellspacing="5" style="left:102px; top:130px; width:259px; height:115px; border-style:none; ">
  545. <choices>
  546. <itemset nodeset="/root/init/A0631list/A0631">
  547. <label ref="cdnm"/>
  548. <value ref="cdid"/>
  549. </itemset>
  550. </choices>
  551. </select>
  552. <input id="input1" ref="/root/main/lglydisinfo/info/testrslt1" style="left:252px; top:132px; width:40px; height:19px; "/>
  553. <input id="input2" ref="/root/main/lglydisinfo/info/testrslt2" style="left:252px; top:157px; width:40px; height:19px; "/>
  554. <button id="button61" class="icon_search" style="left:730px; top:284px; width:16px; height:16px; ">
  555. <caption/>
  556. <script type="javascript" ev:event="DOMActivate">
  557. <![CDATA[
  558. model.makeValue("/root/temp/lastrowcnt", "");
  559. setParameter("flag", "ICD");
  560. modal("SPMQP01600 ", 1,1,1,"SPMQP01600 ", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
  561. model.removenode("/root/temp/lastrowcnt");
  562. if( getStringLength(model.getValue("/root/main/diaginfo/diaglist[1]/termcd")) > 0 ){
  563. model.setValue("/root/main/lglydisinfo/info/diagcd", model.getValue("/root/main/diaginfo/diaglist[1]/termcd"));
  564. model.setValue("/root/main/lglydisinfo/info/diagnm", model.getValue("/root/main/diaginfo/diaglist[1]/termhngnm"));
  565. model.refresh();
  566. }
  567. ]]>
  568. </script>
  569. </button>
  570. <select1 id="radio3" ref="/root/main/lglydisinfo/info/dethyn" appearance="full" cols="2" overflow="visible" style="left:102px; top:253px; width:153px; height:20px; border-style:none; ">
  571. <choices>
  572. <itemset nodeset="/root/init/A0369list/A0369">
  573. <label ref="cdnm"/>
  574. <value ref="cdid"/>
  575. </itemset>
  576. </choices>
  577. </select1>
  578. <select1 id="radio4" ref="/root/main/lglydisinfo/info/relyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:584px; top:313px; width:160px; height:20px; border-style:none; ">
  579. <choices>
  580. <item>
  581. <label>유</label>
  582. <value>Y</value>
  583. </item>
  584. <item>
  585. <label>무</label>
  586. <value>N</value>
  587. </item>
  588. </choices>
  589. </select1>
  590. <caption id="caption1" style="left:586px; top:83px; width:100px; height:20px; ">보건환경연구원</caption>
  591. <select1 id="radio5" ref="/root/main/lglydisinfo/info/cnfmtestinstcd" appearance="full" vcellspacing="5" overflow="visible" style="left:466px; top:81px; width:170px; height:40px; border-style:none; ">
  592. <choices>
  593. <item>
  594. <label>보건환경연구원</label>
  595. <value>01</value>
  596. </item>
  597. <item>
  598. <label>질병관리본부(국립보건연구원)</label>
  599. <value>02</value>
  600. </item>
  601. </choices>
  602. </select1>
  603. <input id="input4" ref="/root/main/lglydisinfo/info/cnfmtestinstnm" style="left:484px; top:82px; width:100px; height:19px; "/>
  604. <select1 id="radio6" ref="/root/main/lglydisinfo/info/estminfcpath" appearance="full" overflow="visible" style="left:466px; top:130px; width:278px; height:115px; border-style:none; ">
  605. <choices>
  606. <itemset nodeset="/root/init/A0629list/A0629">
  607. <label ref="cdnm"/>
  608. <value ref="cdid"/>
  609. </itemset>
  610. </choices>
  611. </select1>
  612. <caption id="caption2" style="left:292px; top:135px; width:57px; height:20px; ">(cells/ml)</caption>
  613. <caption id="caption3" style="left:291px; top:155px; width:68px; height:20px; ">(copies/ml)</caption>
  614. <input id="input8" ref="/root/main/lglydisinfo/info/matrno" style="left:644px; top:32px; width:100px; height:19px; "/>
  615. </group>
  616. <group id="grp_btn" style="left:0px; top:765px; width:744px; height:27px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  617. <button id="btn_save" class="btn4_letter2" style="left:560px; top:3px; width:56px; height:22px; ">
  618. <caption>저장</caption>
  619. <script type="javascript" ev:event="DOMActivate">
  620. <![CDATA[
  621. model.removeNodeset("/root/send");
  622. model.makeNode("/root/send/savedata");
  623. /*
  624. if( isRequiredControls("ipt_attackdd","ipt_diagdd") == false ) {
  625. return;
  626. }
  627. */
  628. if( isNull(model.getValue("/root/main/lglydisinfo/info/lglydiscd")) ){
  629. messageBox("전염병은", "I003");
  630. return;
  631. }
  632. /*
  633. if(isNull(model.getValue("/root/main/lglydisinfo/info/attackdd")) ){
  634. messageBox("발병일은 필수입력입니다.");
  635. return;
  636. }
  637. */
  638. if(isNull(model.getValue("/root/main/lglydisinfo/info/diagdd")) ){
  639. messageBox("진단일은", "I003");
  640. return;
  641. }
  642. if( isNull(model.getValue("/root/main/lglydisinfo/info/wrtedt")) ){
  643. model.setValue("/root/main/lglydisinfo/info/state", "I");
  644. } else {
  645. model.setValue("/root/main/lglydisinfo/info/state", "U");
  646. }
  647. model.setValue("/root/main/lglydisinfo/info/reptflag", "09");
  648. model.setValue("/root/main/lglydisinfo/info/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  649. model.setValue("/root/main/lglydisinfo/info/updtreptcnts", ""); //변경신고내용
  650. model.setValue("/root/main/lglydisinfo/info/diagcd",model.getValue("/root/diaginfo/diagcdlist/diagcd"));
  651. /*
  652. if( model.getValue("/root/main/lglydisinfo/info/cnfmtestinstcd") != "" ){
  653. model.setValue("/root/main/lglydisinfo/info/cnfmtestinstnm", radio5.label);
  654. }
  655. */
  656. model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
  657. //@@
  658. var Curstate = model.getValue("/root/main/lglydisinfo/info/state");
  659. if(submit("TXASI03401", false)){
  660. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  661. model.refresh();
  662. //@@
  663. if(Curstate == "I"){
  664. messageBox("저장되었습니다","I");
  665. }else if (Curstate == "U"){
  666. messageBox("수정되었습니다.","I");
  667. }
  668. model.close();
  669. }
  670. ]]>
  671. </script>
  672. </button>
  673. <button id="btn_cncl" class="btn4_letter2" style="left:618px; top:3px; width:56px; height:22px; ">
  674. <caption>삭제</caption>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. model.removeNodeset("/root/send");
  678. model.makeNode("/root/send/savedata");
  679. //if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt") != '99991231235959' ){
  680. if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  681. messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  682. return;
  683. }
  684. var result = messageBox("","Q001"); //삭제하시겠습니까?
  685. if (result == "7"){
  686. messageBox("삭제가 취소되었습니다","I");
  687. return;
  688. }else if (result == "6"){
  689. model.setValue("/root/main/lglydisinfo/info/state", "D");
  690. model.copyNode("/root/send/savedata","/root/main/lglydisinfo/info");
  691. if(submit("TXASI03401", false) != false){
  692. model.copyNode("/root/main/lglydisinfo", "/root/main/getlglydisinfo");
  693. model.refresh();
  694. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/lglydisinfo/info/pid"));
  695. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/lglydisinfo/info/reptflag"));
  696. if(submit("TRASI01502", false)){
  697. if( isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt")) ){
  698. messageBox("삭제" ,"I001");
  699. window.close();
  700. }
  701. }
  702. }
  703. }
  704. ]]>
  705. </script>
  706. </button>
  707. <button id="btn_init" class="btn4_letter3" style="left:675px; top:3px; width:68px; height:22px; ">
  708. <caption>초기화</caption>
  709. <script type="javascript" ev:event="DOMActivate">
  710. <![CDATA[
  711. //model.resetInstanceNode("/root/main");
  712. fInit();
  713. model.refresh();
  714. ]]>
  715. </script>
  716. </button>
  717. </group>
  718. </xhtml:body>
  719. </xhtml:html>