SPASI03500_인플루엔자신고서.xrw 26 KB

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