SPASI01800_결핵환자신고.xrw 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>결핵환자신고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <tblglydisinfo>
  11. <info>
  12. <state/>
  13. <reptflag/>
  14. <psnflag/>
  15. <wrtedt/>
  16. <seqno/>
  17. <pid/>
  18. <indd/>
  19. <cretno/>
  20. <patnm/>
  21. <sexflag/>
  22. <age/>
  23. <tel/>
  24. <mpphontel/>
  25. <jobcd/>
  26. <rgstno/>
  27. <rgstno2/>
  28. <naticd/>
  29. <ecntrydd/>
  30. <zipcd1/>
  31. <zipcd2/>
  32. <cntcaddr1/>
  33. <residncflag>N</residncflag>
  34. <pastcureflag/>
  35. <pastcurecnt/>
  36. <cureterm/>
  37. <bisiziflag/>
  38. <bisiziinocmthd/>
  39. <sputumdm/>
  40. <sputumby/>
  41. <sputumodm/>
  42. <sputumoby/>
  43. <tisstestlag/>
  44. <etctestflag/>
  45. <rayrsltflag/>
  46. <tooberrsltsize/>
  47. <solidsize/>
  48. <curefromdd/>
  49. <diagcd/>
  50. <diagnm/>
  51. <patflag/>
  52. <curetodd/>
  53. <curersltflag/>
  54. <curersltetc/>
  55. <curedrugcd/>
  56. <curedrugcdetc/>
  57. <cnclyn/>
  58. <orddeptcd/>
  59. <lasthistyn>Y</lasthistyn>
  60. <tmpcol1/>
  61. <tmpcol2/>
  62. <tmpcol21/>
  63. <tmpcol22/>
  64. <tmpcol23/>
  65. <tmpcol3/>
  66. <anotheryn/>
  67. <rayrsltdd/>
  68. <sputumdmdd/>
  69. <sputumbydd/>
  70. <etctestflagdd/>
  71. <tisstestlagdd/>
  72. <rayrsltkind/>
  73. <sputumdmkind/>
  74. <sputumbykind/>
  75. <etctestflagkind/>
  76. <tisstestlagkind/>
  77. <faclt/>
  78. <facltaddr/>
  79. <tbclkindcd/>
  80. <cureenddd/>
  81. <curersltflagdiag/>
  82. <antutbclrslt/>
  83. <antutbclrsltdetl/>
  84. <antutbclrsltdetldesc/>
  85. <antutbclmthd/>
  86. <antutbclcd/>
  87. <xpert/>
  88. <xpertdd/>
  89. <xpertkind/>
  90. <curedrugcdtxt/>
  91. <spcacptdt/>
  92. <antutbcldrug/>
  93. <antutbcldrugtxt/>
  94. <tbclkindcd02/>
  95. <tbclkindcd03/>
  96. </info>
  97. </tblglydisinfo>
  98. <getlglydisinfo/>
  99. <getreptdtinfo/>
  100. <paminfo/>
  101. <diaginfo/>
  102. </main>
  103. <send>
  104. <reqdata/>
  105. <savedata/>
  106. </send>
  107. <init>
  108. <A0656list>
  109. <A0656/>
  110. </A0656list>
  111. <P0353list>
  112. <P0353/>
  113. </P0353list>
  114. <A0137list>
  115. <A0137/>
  116. </A0137list>
  117. <A0138list>
  118. <A0138/>
  119. </A0138list>
  120. <A0139list>
  121. <A0139/>
  122. </A0139list>
  123. <A0373list>
  124. <A0373/>
  125. </A0373list>
  126. <A0374list>
  127. <A0374/>
  128. </A0374list>
  129. <A0375list>
  130. <A0375/>
  131. </A0375list>
  132. <A0641list>
  133. <A0641/>
  134. </A0641list>
  135. <A0642list/>
  136. </init>
  137. <diaginfo>
  138. <diagcdlist/>
  139. </diaginfo>
  140. <temp>
  141. <tmplist/>
  142. </temp>
  143. </root>
  144. </instance>
  145. <script type="javascript" ev:event="xforms-ready">
  146. <![CDATA[
  147. zbcfGetCodeList(new Array("A0656", "P0353", "A0137", "A0138", "A0139", "A0373", "A0374", "A0375", "A0641", "A0642"),
  148. new Array("/root/init/A0656list", "/root/init/P0353list", "/root/init/A0137list", "/root/init/A0138list", "/root/init/A0139list", "/root/init/A0373list", "/root/init/A0374list", "/root/init/A0375list", "/root/init/A0641list", "/root/init/A0642list"));
  149. var reptflag = opener.javascript.getParameter("reptflag");
  150. model.setValue("/root/main/tblglydisinfo/info/reptflag", "02");
  151. var pid = "";
  152. var strRegtdt = "";
  153. var iDate = new Date();
  154. var strYearCal = "";
  155. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  156. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  157. model.removeNodeSet("/root/main/paminfo/list");
  158. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  159. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  160. if(ioflag == "I" || ioflag == "E"){
  161. pid = model.getValue("/root/main/paminfo/list/pid");
  162. indd = model.getValue("/root/main/paminfo/list/indd");
  163. cretno = model.getValue("/root/main/paminfo/list/cretno");
  164. model.setValue("/root/main/tblglydisinfo/info/pid", pid );
  165. model.setValue("/root/main/tblglydisinfo/info/indd", indd);
  166. model.setValue("/root/main/tblglydisinfo/info/cretno", cretno);
  167. model.setValue("/root/main/tblglydisinfo/info/psnflag", ioflag);
  168. model.refresh();
  169. }else if(ioflag == "O"){
  170. pid = model.getValue("/root/main/paminfo/list/pid");
  171. orddd = model.getValue("/root/main/paminfo/list/orddd");
  172. cretno = model.getValue("/root/main/paminfo/list/cretno");
  173. model.setValue("/root/main/tblglydisinfo/info/pid", pid );
  174. model.setValue("/root/main/tblglydisinfo/info/indd", orddd);
  175. model.setValue("/root/main/tblglydisinfo/info/cretno", cretno);
  176. model.setValue("/root/main/tblglydisinfo/info/psnflag", ioflag);
  177. model.refresh();
  178. }
  179. }else if (isPopup()){
  180. model.setValue("/root/main/tblglydisinfo/info/pid", opener.javascript.getParameter("pid") );
  181. model.setValue("/root/main/tblglydisinfo/info/indd", opener.javascript.getParameter("indd") );
  182. model.setValue("/root/main/tblglydisinfo/info/psnflag", opener.javascript.getParameter("psnflag") );
  183. model.setValue("/root/main/tblglydisinfo/info/wrtedt",opener.javascript.getParameter("wrtedt") );
  184. model.setValue("/root/main/tblglydisinfo/info/cretno",opener.javascript.getParameter("cretno"));
  185. }
  186. if(model.getValue("/root/main/tblglydisinfo/info/pid") != "" && model.getValue("/root/main/tblglydisinfo/info/pid") != null) {
  187. model.copyNode("/root/send/reqdata", "/root/main/tblglydisinfo/info");
  188. if(submit("TRASI01501")){
  189. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  190. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  191. model.refresh();
  192. //fChgReptDisable();
  193. fChkCnclYN();
  194. fCtrlEnableChk("rdo_test8");
  195. fCtrlEnableChk("chk_curedrugcd");
  196. fCtrlEnableChk("rdo_curersltflag");
  197. fCtrlEnableChk("rdo_curersltflag2");
  198. fCtrlEnableChk("chk_antutbcldrug");
  199. fCtrlEnableChk("chk_antutbclrslt");
  200. fCtrlEnableChk("chk_antutbclrsltdetl");
  201. fCtrlEnableChk("chk_tbclkindcd");
  202. fBisiziFlag();
  203. fCtrRdoChk();
  204. }
  205. }
  206. //@@
  207. var result = 1;
  208. var vPrcpModifyYn = opener.javascript.getParameter("PrcpModifyYn");
  209. //if(!isNull(opener.javascript.getParameter("PrcpLglyDis"))){ // 2017.05.30 처방저장 시 특정 결핵진단일때 수정
  210. if(!isNull(opener.javascript.getParameter("PrcpLglyDis")) && vPrcpModifyYn !="Y" ){
  211. //처방에서 호출한 경우 상병체크하여 초기화
  212. fInit();
  213. result=6;
  214. }
  215. //if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S" || !isNull(opener.javascript.getParameter("PrcpLglyDis")) ) ){ // 2017.05.30 처방저장 시 특정 결핵진단일때 수정
  216. if(isPopup() && (opener.javascript.getParameter("state") == "U" || opener.javascript.getParameter("state") == "S" || (!isNull(opener.javascript.getParameter("PrcpLglyDis")) && vPrcpModifyYn !="Y")) ){
  217. model.setValue("/root/main/tblglydisinfo/info/state", opener.javascript.getParameter("state") );
  218. model.setValue("/root/main/tblglydisinfo/info/wrtedt", opener.javascript.getParameter("wrtedt") );
  219. model.setValue("/root/main/tblglydisinfo/info/seqno", opener.javascript.getParameter("seqno") );
  220. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptdt", opener.javascript.getParameter("reptdt")); //추가 (2009.11.13 JJE)
  221. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/reptyn", opener.javascript.getParameter("reptyn")); //추가 (2009.11.13 JJE)
  222. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/chgyn", opener.javascript.getParameter("chgyn")); //추가 (2009.11.13 JJE)
  223. model.makeValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt", opener.javascript.getParameter("prt_reptdt")); //추가 (2009.11.13 JJE)
  224. //}else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))) ){ // 2017.05.30 처방저장 시 특정 결핵진단일때 수정
  225. }else if(isPopup() && (opener.javascript.getParameter("state") != "U" || isNull(opener.javascript.getParameter("PrcpLglyDis"))|| (isNull(opener.javascript.getParameter("PrcpLglyDis")) && vPrcpModifyYn =="Y") ) ){
  226. model.setValue("/root/main/tblglydisinfo/info/state", opener.javascript.getParameter("state") );
  227. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/tblglydisinfo/info/pid"));
  228. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/tblglydisinfo/info/reptflag"));
  229. if (submit("TRASI01502")){
  230. strRegtdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  231. }
  232. if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != "" && model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptyn") != null ){ //100616 이미 신고내용이 존재할 경우(기간 고려X - 기간 : Y, N)
  233. //messageBox(" 신고주기는 90일이므로 재신고가 불가합니다 \n 해당 환자의 신고일은 " + strRegtdt ,"E008");
  234. diagnm = model.getValue("/root/main/tblglydisinfo/info/diagnm");
  235. // 2017.05.30 처방저장 시 특정 결핵진단일때 수정
  236. if(opener.javascript.getParameter("PrcpModifyYn") == "Y"){
  237. result = 7;
  238. }else{
  239. result = messageBox(strRegtdt.substring(0,4)+"년 "+strRegtdt.substring(4,6)+"월 "+strRegtdt.substring(6,8)+"일 "
  240. + diagnm +"(으)로 전염병이 신고되어 있어 \n 신규 입력이 아니면 자료가 중복됩니다. \n 그래도 ", "Q003");
  241. }
  242. } else { //신고 내용이 없다면
  243. result=6;
  244. }
  245. if( model.getValue("/root/main/getreptdtinfo/reptdtinfo/chgyn") == 'Y' ){
  246. model.setValue("/root/main/tblglydisinfo/info/state", "U" );
  247. fChkReptYN();
  248. if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  249. model.close();
  250. return;
  251. }
  252. }
  253. }
  254. // model.copyNode("/root/send/reqdata", "/root/main/tblglydisinfo/info");
  255. // if(submit("TRASI01501")){
  256. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  257. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  258. model.refresh();
  259. fChgReptDisable(result);
  260. // fChkCnclYN();
  261. // fCtrlEnableChk("rdo_test8");
  262. // fCtrlEnableChk("chk_curedrugcd");
  263. // fCtrlEnableChk("rdo_curersltflag");
  264. // fBisiziFlag();
  265. // fCtrRdoChk();
  266. }
  267. // }
  268. model.copyNode("/root/send/reqdata", "/root/main/tblglydisinfo/info");
  269. if(submit("TRASI01501")){
  270. if( !isNull(model.getValue("/root/main/getlglydisinfo/info/pid")) ){
  271. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  272. model.refresh();
  273. fChgReptDisable(result);
  274. fChkCnclYN();
  275. fCtrlEnableChk("rdo_test8");
  276. fCtrlEnableChk("chk_curedrugcd");
  277. fCtrlEnableChk("rdo_curersltflag");
  278. fCtrlEnableChk("rdo_curersltflag2");
  279. fCtrlEnableChk("chk_antutbcldrug");
  280. fCtrlEnableChk("chk_antutbclrslt");
  281. fCtrlEnableChk("chk_antutbclrsltdetl");
  282. fCtrlEnableChk("chk_tbclkindcd");
  283. fBisiziFlag();
  284. fCtrRdoChk();
  285. }
  286. }
  287. } else {
  288. grp_btn.disabled = true;
  289. }
  290. ipt_ecntrydd.disabled = true;
  291. if(!isNull(opener.javascript.getParameter("PrcpLglyDis")) && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" && !isNull(opener.javascript.getParameter("PrcpTubeSaveYn")) && opener.javascript.getParameter("PrcpTubeSaveYn") == "Y" ){
  292. model.setValue("/root/main/tblglydisinfo/info/curefromdd", model.getValue("/root/main/tblglydisinfo/info/indd"));
  293. btn_save.dispatch("DOMActivate");
  294. }
  295. /*
  296. //if(reptflag != "" && reptflag == "20"){
  297. alert(model.getValue("/root/main/tblglydisinfo/info/cureenddd"));
  298. if(model.getValue("/root/main/tblglydisinfo/info/cureenddd") != "" ){
  299. btn_save_re.disabled = true;
  300. ipt_cureenddd.disabled = true;
  301. }else{
  302. btn_save_re.disabled = false;
  303. ipt_cureenddd.disabled = false;
  304. }
  305. */
  306. ]]>
  307. </script>
  308. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  309. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  310. <submission id="TXASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getlglydisinfo"/>
  311. <submission id="TRASI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getlglydisinfo"/>
  312. <submission id="TRASI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/getreptdtinfo"/>
  313. <submission id="TRASI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/tmplist"/>
  314. </model>
  315. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  316. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  317. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  318. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  319. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  320. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  321. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  322. <script type="javascript">
  323. <![CDATA[
  324. function fInit() {
  325. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  326. model.makeValue("/root/main/tblglydisinfo/info/state", "");
  327. model.makeValue("/root/main/tblglydisinfo/info/pastcureflag", "");
  328. model.makeValue("/root/main/tblglydisinfo/info/cureterm", "");
  329. model.makeValue("/root/main/tblglydisinfo/info/pastcurecnt", "");
  330. model.makeValue("/root/main/tblglydisinfo/info/bisiziflag", "");
  331. model.makeValue("/root/main/tblglydisinfo/info/bisiziinocmthd", "");
  332. model.makeValue("/root/main/tblglydisinfo/info/sputumdm", "");
  333. model.makeValue("/root/main/tblglydisinfo/info/sputumodm", "");
  334. model.makeValue("/root/main/tblglydisinfo/info/tisstestlag", "");
  335. model.makeValue("/root/main/tblglydisinfo/info/rayrsltflag", "");
  336. model.makeValue("/root/main/tblglydisinfo/info/sputumby", "");
  337. model.makeValue("/root/main/tblglydisinfo/info/sputumoby", "");
  338. model.makeValue("/root/main/tblglydisinfo/info/etctestflag", "");
  339. model.makeValue("/root/main/tblglydisinfo/info/tooberrsltsize", "");
  340. model.makeValue("/root/main/tblglydisinfo/info/solidsize", "");
  341. model.makeValue("/root/main/tblglydisinfo/info/curefromdd", "");
  342. model.makeValue("/root/main/tblglydisinfo/info/diagcd", "");
  343. model.makeValue("/root/main/tblglydisinfo/info/diagnm", "");
  344. model.makeValue("/root/main/tblglydisinfo/info/patflag", "");
  345. model.makeValue("/root/main/tblglydisinfo/info/curedrugcd", "");
  346. model.makeValue("/root/main/tblglydisinfo/info/curedrugcdetc", "");
  347. model.makeValue("/root/main/tblglydisinfo/info/curetodd", "");
  348. model.makeValue("/root/main/tblglydisinfo/info/curersltflag", "");
  349. model.makeValue("/root/main/tblglydisinfo/info/curersltetc", "");
  350. model.makeValue("/root/main/tblglydisinfo/info/wrtedt", "");
  351. model.makeValue("/root/main/tblglydisinfo/info/cnclyn", "");
  352. model.makeValue("/root/main/tblglydisinfo/info/tmpcol1", "");
  353. model.makeValue("/root/main/tblglydisinfo/info/tmpcol2", "");
  354. model.makeValue("/root/main/tblglydisinfo/info/tmpcol21", "");
  355. model.makeValue("/root/main/tblglydisinfo/info/tmpcol22", "");
  356. model.makeValue("/root/main/tblglydisinfo/info/tmpcol23", "");
  357. model.makeValue("/root/main/tblglydisinfo/info/tmpcol3", "");
  358. model.makeValue("/root/main/tblglydisinfo/info/faclt", "");
  359. model.makeValue("/root/main/tblglydisinfo/info/facltaddr", "");
  360. model.makeValue("/root/main/tblglydisinfo/info/tbclkindcd", "");
  361. model.makeValue("/root/main/tblglydisinfo/info/cureenddd", "");
  362. model.makeValue("/root/main/tblglydisinfo/info/curersltflagdiag", "");
  363. model.makeValue("/root/main/tblglydisinfo/info/antutbclrslt", "");
  364. model.makeValue("/root/main/tblglydisinfo/info/antutbclrsltdetl", "");
  365. model.makeValue("/root/main/tblglydisinfo/info/antutbclrsltdetldesc", "");
  366. model.makeValue("/root/main/tblglydisinfo/info/antutbclmthd", "");
  367. model.makeValue("/root/main/tblglydisinfo/info/antutbclcd", "");
  368. model.makeValue("/root/main/tblglydisinfo/info/xpert", "");
  369. //model.makeValue("/root/main/tblglydisinfo/info/xpertdd", "");
  370. //model.makeValue("/root/main/tblglydisinfo/info/xpertkind", "");
  371. model.makeValue("/root/main/tblglydisinfo/info/curedrugcdtxt", "");
  372. model.makeValue("/root/main/tblglydisinfo/info/spcacptdt", "");
  373. model.makeValue("/root/main/tblglydisinfo/info/antutbcldrug", "");
  374. model.makeValue("/root/main/tblglydisinfo/info/antutbcldrugtxt", "");
  375. fCtrlEnableChk("rdo_test8");
  376. fCtrlEnableChk("chk_curedrugcd");
  377. fCtrlEnableChk("rdo_curersltflag");
  378. fCtrlEnableChk("rdo_curersltflag2");
  379. fCtrlEnableChk("chk_antutbcldrug");
  380. fCtrlEnableChk("chk_antutbclrslt");
  381. fCtrlEnableChk("chk_antutbclrsltdetl");
  382. fCtrlEnableChk("chk_tbclkindcd");
  383. fBisiziFlag();
  384. fChkCnclYN();
  385. }
  386. /*
  387. 신고대상자조회화면에서 state="S",
  388. 진단에서 state="I",
  389. 메뉴에서 상단환자정보를 가지고 조회해서 결핵 신고서가 작성 존재시 state=""
  390. 상태에 따라 입력가능여부 처리
  391. 치료종결시 state="U"
  392. */
  393. //function fChgReptDisable(){
  394. //@@
  395. function fChgReptDisable(result){
  396. //grp_chg.disabled = true;
  397. if( isPopup() ){
  398. var strState = opener.javascript.getParameter("state");
  399. var menuParam = opener.javascript.getParameter("menuparam");
  400. }else {
  401. var strState = "I";
  402. }
  403. //호흡기 상담실 추가
  404. var vDutplcecd = getUserInfo("dutplcecd");
  405. //(start) 수정 상태 셋팅 추가, 수정 및 삭제를 가능하도록 하기 위함 (2009.11.03 JJE)
  406. var chkWrtedt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt");
  407. var chkReptdt = model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt");
  408. if(!isNull(chkWrtedt)) chkWrtedt = chkWrtedt.substring(0, 8);
  409. if(!isNull(chkReptdt)) chkReptdt = chkReptdt.substring(0, 8);
  410. if(!isNull(chkWrtedt) && chkWrtedt != "99991231" && !isNull(chkReptdt) && chkReptdt == "99991231" && isNull(strState)){
  411. var strState = "U"; //작성은 됐고, 출력(신고)는 안한 상태
  412. }
  413. //(end) 수정 상태 셋팅 끝
  414. //100622 진료 처방저장 시(작성은 됐고, 출력(신고)는 안한 상태 와 상관없음) -- 정리 필요
  415. if (opener.javascript.getParameter("PrcpLglyDis") != null && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" && opener.javascript.getParameter("PrcpModifyYn") != "Y") {
  416. strState = "I";
  417. }else if (opener.javascript.getParameter("PrcpLglyDis") != null && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" && opener.javascript.getParameter("PrcpModifyYn") == "Y") {
  418. strState = "U";
  419. }
  420. // model.alert("strState 값 : " + strState);
  421. if(isPopup() && strState == "U" ){
  422. //@@
  423. if(result == "6"){
  424. btn_cncl.disabled = true;
  425. grp_main.disabled = false;
  426. btn_save.disabled = false; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  427. btn_save_re.disabled = true;
  428. btn_init.disabled = false; //추가 2009.11.13 JJE
  429. //치료결과 disable
  430. ipt_curersltetc.disabled = true;
  431. fInit();
  432. }else{
  433. btn_cncl.disabled = false;
  434. //grp_main.disabled = true;
  435. //btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  436. grp_main.disabled = false; //20161114(결핵환자신고 변경에 따른 수정)
  437. btn_save.disabled = false; //20161114(결핵환자신고 변경에 따른 수정)
  438. btn_save_re.disabled = false;
  439. btn_init.disabled = true; //추가 2009.11.13 JJE
  440. }
  441. // //grp_btn.disabled = false;
  442. // grp_main.disabled = false;
  443. // btn_save.disabled = false; //추가(치료결과 때문에 false) @@ 2009.11.13 JJE
  444. // btn_init.disabled = true; //추가 2009.11.13 JJE
  445. // btn_cncl.disabled = false; //추가 2009.11.13 JJE
  446. return;
  447. }else if(isPopup() && strState == "S" ){
  448. if(menuParam != "" && !isNull(menuParam)){
  449. //진료메뉴에서 호출시.
  450. if(opener.javascript.getParameter("DisabledChk")=="Y"){//삭제된 신고서
  451. grp_main.disabled = true;
  452. btn_save.disabled = true;
  453. btn_save_re.disabled = true;
  454. btn_init.disabled = true;
  455. btn_cncl.disabled = true;
  456. }else{
  457. grp_main.disabled = false;
  458. btn_save.disabled = false;
  459. btn_save_re.disabled = false;
  460. btn_init.disabled = false;
  461. btn_cncl.disabled = false;
  462. }
  463. }else{
  464. //진료와 감염관리실 이외의 사용자일 경우 삭제버튼 불활성화 않음.
  465. if(opener.javascript.getParameter("LglyDeptChk")=="N"){
  466. btn_cncl.disabled=true;
  467. }else{
  468. btn_cncl.disabled=false;
  469. }
  470. grp_main.disabled = true;
  471. //grp_btn.disabled = true;
  472. btn_save.disabled = true; //추가(수정기능 개발 완료 시 false로 변경) @@ 2009.11.13 JJE
  473. //btn_save_re.disabled = true;
  474. btn_init.disabled = true; //추가 2009.11.13 JJE
  475. //btn_cncl.disabled = false; //추가 2009.11.13 JJE
  476. //호흡기 상담실에서 오픈시 수정가능 모드
  477. if(vDutplcecd == '3110300000'){
  478. grp_main.disabled = false;
  479. btn_save.disabled = false;
  480. btn_init.disabled = false;
  481. }else{
  482. grp_main.disabled = true;
  483. btn_save.disabled = true;
  484. btn_init.disabled = true;
  485. }
  486. }
  487. }else { //수정모드, 신고대상자조회에서 오픈모드가 아닐 경우... ex:최초..
  488. if(result == "6"){
  489. btn_save.disabled = false; //추가 2009.11.13 JJE
  490. btn_save_re.disabled = false;
  491. btn_init.disabled = false; //추가 2009.11.13 JJE
  492. btn_cncl.disabled = true; //추가 2009.11.13 JJE
  493. //치료결과 disable
  494. ipt_curersltetc.disabled = true;
  495. fInit();
  496. // rdo_curersltflag.disabled = true;
  497. // ipt_curetodd.disabled = true;
  498. } else {
  499. btn_cncl.disabled = false;
  500. grp_main.disabled = true;
  501. btn_save_re.disabled = false;
  502. ipt_cureenddd.disabled = false;
  503. btn_save.disabled = true;
  504. btn_save_re.disabled = true;
  505. btn_init.disabled = true;
  506. }
  507. return;
  508. }
  509. if( isNull(model.getValue("/root/main/tblglydisinfo/info/pid")) ){
  510. grp_main.disabled = true;
  511. grp_btn.disabled = true;
  512. }
  513. }
  514. /*
  515. * 삭제건은 제외대상으로 조회만 가능
  516. */
  517. function fChkCnclYN(){
  518. if(model.getValue("/root/main/tblglydisinfo/info/cnclyn") == "Y" && opener.javascript.getParameter("state") == "S"){
  519. messageBox("삭제된 신고서", "I009"); //메세지 추가 (2009.11.13 JJE)
  520. grp_btn.disabled = true;
  521. }
  522. }
  523. /*
  524. * 15세 미만일경우만 비시지 관련, 투베르쿨린검사 입력가능하도록 만듬
  525. */
  526. function fBisiziFlag(){
  527. if(model.getValue("/root/main/tblglydisinfo/info/age") < 15 ){
  528. chk_bisiziflag.disabled = false;
  529. rad_bisiziinocmthd.disabled = false;
  530. rdo_test8.disabled= false;
  531. ipt_solidsize.disabled = false;
  532. }else{
  533. chk_bisiziflag.disabled = true;
  534. rad_bisiziinocmthd.disabled = true;
  535. rdo_test8.disabled= true;
  536. ipt_solidsize.disabled = true;
  537. model.setValue("/root/main/tblglydisinfo/info/solidsize", "");
  538. }
  539. }
  540. /*
  541. * 컨트롤 변경에 따른 disable처리
  542. */
  543. function fCtrlEnableChk(pControlID){
  544. if (pControlID == "rdo_test8") { //투베르쿨린검사 선택
  545. if (model.getValue("/root/main/tblglydisinfo/info/tooberrsltsize") == "1") {
  546. ipt_solidsize.disabled = false;
  547. model.setFocus("ipt_solidsize");
  548. } else {
  549. ipt_solidsize.disabled = true;
  550. model.setValue("/root/main/tblglydisinfo/info/solidsize", "");
  551. model.refresh();
  552. }
  553. }
  554. if (pControlID == "chk_curedrugcd") { // 치료약제
  555. if ( isSearchString(model.getValue("/root/main/tblglydisinfo/info/curedrugcd"), "13") ) {
  556. input13.disabled = false;
  557. model.setFocus("input13");
  558. } else {
  559. input13.disabled = true;
  560. model.setValue("/root/main/tblglydisinfo/info/curedrugcdtxt", "");
  561. model.refresh();
  562. }
  563. }
  564. if (pControlID == "rdo_curersltflag") { // 치료결과및 퇴록구분
  565. var sChngreptcd = model.getValue("/root/main/tblglydisinfo/info/curersltflag");
  566. if (sChngreptcd == "99") {
  567. ipt_curersltetc.disabled = false;
  568. } else {
  569. ipt_curersltetc.disabled = true;
  570. model.setValue("/root/main/tblglydisinfo/info/curersltetc", "");
  571. model.refresh();
  572. }
  573. }
  574. if (pControlID == "rdo_curersltflag2") { // 치료결과및 퇴록구분
  575. var sChk = model.getValue("/root/main/tblglydisinfo/info/curersltflag");
  576. if (sChk == "08") {
  577. checkbox9.disabled = false;
  578. } else {
  579. model.setValue("/root/main/tblglydisinfo/info/curersltflagdiag", "");
  580. model.refresh();
  581. checkbox9.disabled = true;
  582. }
  583. }
  584. if (pControlID == "chk_antutbcldrug") {
  585. var sChk = model.getValue("/root/main/tblglydisinfo/info/antutbcldrug");
  586. if ((isSearchString(sChk, "13")) == true){
  587. input9.disabled = false;
  588. } else {
  589. model.setValue("/root/main/tblglydisinfo/info/antutbcldrugtxt", "");
  590. model.refresh();
  591. input9.disabled = true;
  592. }
  593. }
  594. if (pControlID == "chk_antutbclrslt") {
  595. var sChk = model.getValue("/root/main/tblglydisinfo/info/antutbclrslt");
  596. if ((isSearchString(sChk, "03")) == true){
  597. checkbox1.disabled = false;
  598. } else {
  599. model.setValue("/root/main/tblglydisinfo/info/antutbclrsltdetl", "");
  600. model.setValue("/root/main/tblglydisinfo/info/antutbclrsltdetldesc", "");
  601. model.refresh();
  602. checkbox1.disabled = true;
  603. input8.disabled = true;
  604. }
  605. }
  606. if (pControlID == "chk_antutbclrsltdetl") {
  607. var sChk = model.getValue("/root/main/tblglydisinfo/info/antutbclrsltdetl");
  608. if ((isSearchString(sChk, "03")) == true){
  609. input8.disabled = false;
  610. } else {
  611. model.setValue("/root/main/tblglydisinfo/info/antutbclrsltdetldesc", "");
  612. model.refresh();
  613. input8.disabled = true;
  614. }
  615. }
  616. if (pControlID == "chk_tbclkindcd") {
  617. var sChk = model.getValue("/root/main/tblglydisinfo/info/tbclkindcd");
  618. /*
  619. if ((isSearchString(sChk, "02")) == true){
  620. input11.disabled = false;
  621. } else if((isSearchString(sChk, "03")) == true){
  622. input12.disabled = false;
  623. } else {
  624. model.setValue("/root/main/tblglydisinfo/info/tbclkindcd02", "");
  625. model.setValue("/root/main/tblglydisinfo/info/tbclkindcd03", "");
  626. model.refresh();
  627. input11.disabled = true;
  628. input12.disabled = true;
  629. }
  630. */
  631. if ((isSearchString(sChk, "02")) == true){
  632. input11.disabled = false;
  633. } else {
  634. model.setValue("/root/main/tblglydisinfo/info/tbclkindcd02", "");
  635. model.refresh();
  636. input11.disabled = true;
  637. }
  638. if ((isSearchString(sChk, "03")) == true){
  639. input12.disabled = false;
  640. } else {
  641. model.setValue("/root/main/tblglydisinfo/info/tbclkindcd03", "");
  642. model.refresh();
  643. input12.disabled = true;
  644. }
  645. }
  646. }
  647. /*
  648. * 기신고서가 있는지 check
  649. */
  650. function fChkReptYN() {
  651. var diagList = instance1.selectNodes("/root/diaginfo/diagcdlist");
  652. var diagcd = "";
  653. var statcd = "";
  654. if(diagList.length > 0 ) {
  655. for(var i=0 ; i< diagList.length ; i++) {
  656. status = model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status");
  657. if(status == "I" || status == "U" || status == "-") {
  658. diagcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/diagcd").substr(0,4) + "▦";
  659. statcd += model.getValue("/root/diaginfo/diagcdlist["+ i +"]/status") + "▦";
  660. }
  661. }
  662. }
  663. if(diagcd != "") {
  664. model.removeNodeset("/root/send/reqdata");
  665. model.makeValue("/root/send/reqdata/diagcd", diagcd);
  666. model.makeValue("/root/send/reqdata/status", statcd);
  667. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/tblglydisinfo/info/pid"));
  668. // if(model.getValue("/root/main/tblglydisinfo/info/pid")!=""){
  669. // model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/tblglydisinfo/info/pid"));
  670. // } else {
  671. // model.makeValue("/root/send/reqdata/pid", getPatientInfo("pid"));
  672. // //alert(model.getValue("/root/send/reqdata/pid"));
  673. // }
  674. model.makeValue("/root/send/reqdata/reptflag", "02");
  675. // if(submit("TRASI01503")){
  676. // if(model.getValue("/root/temp/tmplist/tmplist/wc") == "Y") {
  677. // model.close();
  678. // return;
  679. // }
  680. // }
  681. }
  682. }
  683. //kimsj 091126 결핵초회진단 DEFAULT값 설정, / 결핵과거 치료력 무일경우 비활성화 체크
  684. // ->20140812 결핵과거치료력 삭제로 인해 객담배양검사만 Default.
  685. function fCtrRdoChk() {
  686. if ( isNull(model.getValue("/root/main/tblglydisinfo/info/sputumdm"))) radio15.select(5); //객담배양검사
  687. }
  688. ]]>
  689. </script>
  690. </xhtml:head>
  691. <xhtml:body visibility="visible" pagewidth="791" pageheight="870" style="margin-left:8; margin-right:8; ">
  692. <group id="grp_main" scroll="auto" style="left:0px; top:0px; width:775px; height:860px; ">
  693. <caption id="caption1" class="tit_2" style="left:0px; top:3px; width:69px; height:13px; text-align:center; vertical-align:middle; ">인적사항</caption>
  694. <caption id="caption5" class="cell_1" style="left:0px; top:21px; width:79px; height:20px; text-align:center; vertical-align:middle; ">성명</caption>
  695. <caption id="caption6" class="cell_1" style="left:0px; top:45px; width:79px; height:20px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
  696. <output id="opt_zipcd1" ref="/root/main/tblglydisinfo/info/zipcd1" class="output_fix" style="left:82px; top:90px; width:48px; height:19px; "/>
  697. <output id="opt_12" ref="/root/main/tblglydisinfo/info/cntcaddr1" class="output_fix" style="left:233px; top:90px; width:437px; height:19px; "/>
  698. <output id="opt_cntcaddr1" ref="/root/main/tblglydisinfo/info/zipcd2" class="output_fix" style="left:148px; top:90px; width:48px; height:19px; "/>
  699. <caption id="caption7" class="cell_1" style="left:0px; top:68px; width:80px; height:18px; text-align:center; vertical-align:middle; ">직업</caption>
  700. <caption id="caption10" class="cell_1" style="left:590px; top:21px; width:42px; height:20px; text-align:center; vertical-align:middle; ">성별</caption>
  701. <caption id="caption11" class="cell_1" style="left:678px; top:21px; width:37px; height:20px; text-align:center; vertical-align:middle; ">연령</caption>
  702. <caption id="caption12" class="cell_1" style="left:199px; top:90px; width:31px; height:18px; vertical-align:middle; ">주소</caption>
  703. <output id="opt_patnm" ref="/root/main/tblglydisinfo/info/patnm" class="output_fix" style="left:81px; top:22px; width:100px; height:19px; "/>
  704. <output id="opt_rgstno" ref="/root/main/tblglydisinfo/info/rgstno" class="output_fix" style="left:82px; top:45px; width:100px; height:19px; "/>
  705. <output id="output1" ref="/root/main/tblglydisinfo/info/rgstno2" class="output_fix" style="left:197px; top:45px; width:100px; height:19px; "/>
  706. <output id="opt_sexflag" ref="/root/main/tblglydisinfo/info/sexflag" class="output_fix" style="left:635px; top:22px; width:40px; height:19px; "/>
  707. <output id="opt_age" ref="/root/main/tblglydisinfo/info/age" class="output_fix" style="left:718px; top:22px; width:32px; height:19px; "/>
  708. <caption id="caption13" class="search_no_b" style="left:185px; top:45px; width:12px; height:17px; ">-</caption>
  709. <caption id="caption15" class="search_no_b" style="left:134px; top:91px; width:12px; height:17px; ">-</caption>
  710. <caption id="caption8" class="cell_1" style="left:0px; top:90px; width:79px; height:18px; text-align:center; vertical-align:middle; ">우편번호</caption>
  711. <select id="chk_residncflag" ref="/root/main/tblglydisinfo/info/residncflag" overflow="visible" appearance="full" cellspacing="20" cols="6" style="left:672px; top:91px; width:80px; height:20px; border-style:none; ">
  712. <choices>
  713. <item>
  714. <label>거주지불명</label>
  715. <value>Y</value>
  716. </item>
  717. </choices>
  718. </select>
  719. <line id="line1" class="line_1" style="x1:0px; y1:17px; x2:750px; y2:17px; "/>
  720. <line id="line55" class="line_2" style="x1:0px; y1:43px; x2:750px; y2:43px; "/>
  721. <line id="line56" class="line_3" style="x1:0px; y1:141px; x2:750px; y2:141px; "/>
  722. <line id="line4" class="line_2" style="x1:0px; y1:66px; x2:750px; y2:66px; "/>
  723. <line id="line5" class="line_2" style="x1:0px; y1:88px; x2:750px; y2:88px; "/>
  724. <caption id="caption30" class="cell_1" style="left:375px; top:68px; width:147px; height:18px; vertical-align:middle; ">입국일자(외국인에한함)</caption>
  725. <input id="ipt_ecntrydd" ref="/root/main/tblglydisinfo/info/ecntrydd" class="ipt__search" inputtype="date" style="left:525px; top:68px; width:125px; height:19px; "/>
  726. <caption id="caption31" class="cell_1" style="left:375px; top:45px; width:147px; height:20px; text-align:center; vertical-align:middle; ">국적(외국인에한함)</caption>
  727. <select1 id="cmb_jobcd" ref="/root/main/tblglydisinfo/info/jobcd" class="cmb__search" appearance="minimal" style="left:82px; top:68px; width:213px; height:19px; ">
  728. <choices>
  729. <itemset nodeset="/root/init/A0656list/A0656">
  730. <label ref="cdnm"/>
  731. <value ref="cdid"/>
  732. </itemset>
  733. </choices>
  734. </select1>
  735. <line id="line12" class="line_2" style="x1:0px; y1:469px; x2:750px; y2:469px; "/>
  736. <line id="line13" class="line_1" style="x1:0px; y1:362px; x2:750px; y2:362px; "/>
  737. <line id="line14" class="line_2" style="x1:0px; y1:427px; x2:750px; y2:427px; "/>
  738. <caption id="caption25" class="cell_1" style="left:0px; top:429px; width:122px; height:39px; text-align:center; vertical-align:middle; ">환자구분</caption>
  739. <caption id="cap_curedrugcd" class="cell_1" style="left:0px; top:471px; width:122px; height:60px; text-align:center; vertical-align:middle; ">치료약제</caption>
  740. <select1 id="rad_patflag" ref="/root/main/tblglydisinfo/info/patflag" appearance="full" cellspacing="30" cols="4" vcellspacing="5" overflow="visible" style="left:125px; top:428px; width:625px; height:39px; border-style:none; ">
  741. <choices>
  742. <itemset nodeset="/root/init/A0138list/A0138">
  743. <label ref="cdnm"/>
  744. <value ref="cdid"/>
  745. </itemset>
  746. </choices>
  747. </select1>
  748. <caption id="caption29" class="cell_1" style="left:0px; top:403px; width:122px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">질병코드</caption>
  749. <select id="chk_curedrugcd" ref="/root/main/tblglydisinfo/info/curedrugcd" overflow="visible" appearance="full" cellspacing="18" cols="8" sep="▦" vcellspacing="5" style="left:125px; top:472px; width:625px; height:38px; border-style:none; ">
  750. <choices>
  751. <itemset nodeset="/root/init/A0375list/A0375">
  752. <label ref="cdnm"/>
  753. <value ref="cdid"/>
  754. </itemset>
  755. </choices>
  756. <script id="script1" type="javascript" ev:event="xforms-value-changed">
  757. <![CDATA[
  758. fCtrlEnableChk("chk_curedrugcd");
  759. ]]>
  760. </script>
  761. </select>
  762. <caption id="cap_curefromdd" class="cell_1" style="left:0px; top:366px; width:121px; height:34px; text-align:center; vertical-align:middle; ">치료시작(or 예정)일</caption>
  763. <caption id="caption40" class="tit_2" style="left:1px; top:347px; width:130px; height:13px; vertical-align:middle; ">진단 및 초치료 약제</caption>
  764. <input id="ipt_curefromdd" ref="/root/main/tblglydisinfo/info/curefromdd" class="input_essential" inputtype="date" style="left:125px; top:372px; width:100px; height:19px; "/>
  765. <output id="opt_diagnm" ref="/root/main/tblglydisinfo/info/diagnm" class="output_fix" style="left:125px; top:405px; width:275px; height:19px; "/>
  766. <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:310px; top:708px; width:263px; height:85px; ">
  767. <col ref="termcd" style="left:0px; top:23px; width:100px; height:23px; "/>
  768. <col ref="termhngnm"/>
  769. <col ref="termengnm" visibility="hidden"/>
  770. <col ref="termflag" visibility="hidden"/>
  771. </datagrid>
  772. <button id="button61" class="icon_search" style="left:405px; top:407px; width:16px; height:16px; ">
  773. <caption/>
  774. <script type="javascript" ev:event="DOMActivate">
  775. <![CDATA[
  776. // model.makeValue("/root/temp/lastrowcnt", "");
  777. // setParameter("flag", "ICD");
  778. // modal("SPMQP01600 ", 1,1,1,"SPMQP01600 ", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
  779. // model.removenode("/root/temp/lastrowcnt");
  780. //
  781. // if( getStringLength(model.getValue("/root/main/diaginfo/diaglist[1]/termcd")) > 0 ){
  782. // model.setValue("/root/main/tblglydisinfo/info/diagcd", model.getValue("/root/main/diaginfo/diaglist[1]/termcd"));
  783. // model.setValue("/root/main/tblglydisinfo/info/diagnm", model.getValue("/root/main/diaginfo/diaglist[1]/termhngnm"));
  784. // model.refresh();
  785. // }
  786. modal("SPASI04000"); //결핵진단코드조회
  787. model.setValue("/root/main/tblglydisinfo/info/diagcd", getParameter("SPASI01800_diagcd"));
  788. model.setValue("/root/main/tblglydisinfo/info/diagnm", getParameter("SPASI01800_diagnm"));
  789. model.refresh();
  790. ]]>
  791. </script>
  792. </button>
  793. <line id="line16" class="line_3" style="x1:2px; y1:533px; x2:752px; y2:533px; "/>
  794. <input id="ipt_curetodd" ref="/root/main/tblglydisinfo/info/curetodd" class="ipt__default" inputtype="date" style="left:170px; top:751px; width:100px; height:19px; "/>
  795. <caption id="caption27" class="tit_2" style="left:0px; top:730px; width:95px; height:13px; vertical-align:middle; ">치료결과</caption>
  796. <line id="line21" class="line_1" style="x1:0px; y1:744px; x2:750px; y2:744px; "/>
  797. <line id="line22" class="line_2" style="x1:0px; y1:771px; x2:750px; y2:771px; "/>
  798. <caption id="caption37" class="cell_1" style="left:0px; top:773px; width:122px; height:48px; text-align:center; vertical-align:middle; ">치료결과 구분</caption>
  799. <caption id="caption38" class="cell_1" style="left:0px; top:748px; width:165px; height:23px; text-align:center; vertical-align:middle; ">치료결과판정일(또는 사망일)</caption>
  800. <line id="line24" class="line_3" style="x1:0px; y1:822px; x2:750px; y2:822px; "/>
  801. <select1 id="cmb_naticd" ref="/root/main/tblglydisinfo/info/naticd" appearance="minimal" style="left:525px; top:45px; width:175px; height:19px; ">
  802. <choices>
  803. <itemset nodeset="/root/init/P0353list/P0353">
  804. <label ref="cdnm"/>
  805. <value ref="cdid"/>
  806. </itemset>
  807. </choices>
  808. <script type="javascript" ev:event="xforms-value-changed">
  809. <![CDATA[
  810. var natiVal = cmb_naticd.value
  811. if (natiVal =="-") {
  812. model.setValue("/root/main/tblglydisinfo/info/ecntrydd", "");
  813. ipt_ecntrydd.disabled = true;
  814. model.refresh();
  815. } else {
  816. ipt_ecntrydd.disabled = false;
  817. }
  818. ]]>
  819. </script>
  820. </select1>
  821. <select1 id="rdo_curersltflag" ref="/root/main/tblglydisinfo/info/curersltflag" appearance="full" cols="8" rows="2" vcellspacing="8" overflow="visible" style="left:125px; top:774px; width:595px; height:45px; border-style:none; ">
  822. <choices>
  823. <itemset nodeset="/root/init/A0139list/A0139">
  824. <label ref="cdnm"/>
  825. <value ref="cdid"/>
  826. </itemset>
  827. </choices>
  828. <script id="script2" type="javascript" ev:event="xforms-value-changed">
  829. <![CDATA[
  830. fCtrlEnableChk("rdo_curersltflag");
  831. fCtrlEnableChk("rdo_curersltflag2");
  832. ]]>
  833. </script>
  834. </select1>
  835. <input id="ipt_curersltetc" ref="/root/main/tblglydisinfo/info/curersltetc" class="ipt__default" style="left:173px; top:801px; width:577px; height:19px; "/>
  836. <select1 id="radio2" ref="/root/main/tblglydisinfo/info/tmpcol3" visibility="hidden" appearance="full" cellspacing="7" cols="4" overflow="visible" style="left:425px; top:404px; width:220px; height:20px; ">
  837. <choices>
  838. <itemset nodeset="/root/init/A0642list/A0642">
  839. <label ref="cdnm"/>
  840. <value ref="cdid"/>
  841. </itemset>
  842. </choices>
  843. </select1>
  844. <bool id="bool1" checkvalue="Y,N" ref="/root/main/tblglydisinfo/info/anotheryn" style="left:234px; top:371px; width:20px; height:20px; ">
  845. <script type="javascript" ev:event="xforms-value-changed">
  846. <![CDATA[
  847. if ( model.getValue("/root/main/tblglydisinfo/info/anotheryn") == "Y"){
  848. ipt_curefromdd.value = ""
  849. ipt_curefromdd.disabled = true;
  850. }else{
  851. ipt_curefromdd.disabled = false;
  852. }
  853. ipt_curefromdd.refresh();
  854. ]]>
  855. </script>
  856. </bool>
  857. <caption id="caption26" style="left:254px; top:372px; width:154px; height:20px; ">치료안함 [타기관으로 전원]</caption>
  858. <group id="group1" visibility="hidden" style="left:725px; top:10px; width:20px; height:85px; ">
  859. <select1 id="chk_bisiziflag" ref="/root/main/tblglydisinfo/info/bisiziflag" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:150px; top:97px; width:170px; height:20px; border-style:none; ">
  860. <choices>
  861. <item>
  862. <label>유</label>
  863. <value>Y</value>
  864. </item>
  865. <item>
  866. <label>무</label>
  867. <value>N</value>
  868. </item>
  869. </choices>
  870. </select1>
  871. <select1 id="chk_pastcureflag" ref="/root/main/tblglydisinfo/info/pastcureflag" disabled="false" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:150px; top:24px; width:185px; height:20px; border-style:none; ">
  872. <choices>
  873. <item>
  874. <label>유</label>
  875. <value>Y</value>
  876. </item>
  877. <item>
  878. <label>무</label>
  879. <value>N</value>
  880. </item>
  881. </choices>
  882. <script type="javascript" ev:event="onclick">
  883. <![CDATA[
  884. if (chk_pastcureflag.value == 'N'){
  885. chk_cureterm.value="";
  886. chk_pastcurecnt.value="";
  887. chk_cureterm.disabled = true;
  888. chk_pastcurecnt.disabled = true;
  889. model.setValue("/root/main/tblglydisinfo/info/patflag","1");
  890. model.refresh();
  891. } else if(chk_pastcureflag.value == 'Y'){
  892. chk_cureterm.disabled = false;
  893. chk_pastcurecnt.disabled = false;
  894. }
  895. ]]>
  896. </script>
  897. </select1>
  898. <caption id="caption32" class="cell_1" style="left:375px; top:94px; width:147px; height:23px; text-align:center; vertical-align:middle; ">비시지접종법</caption>
  899. <select1 id="chk_pastcurecnt" ref="/root/main/tblglydisinfo/info/pastcurecnt" disabled="false" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:150px; top:49px; width:155px; height:20px; border-style:none; ">
  900. <choices>
  901. <item>
  902. <label>1회</label>
  903. <value>1</value>
  904. </item>
  905. <item>
  906. <label>2회 이상</label>
  907. <value>2</value>
  908. </item>
  909. </choices>
  910. </select1>
  911. <caption id="caption33" class="cell_1" style="left:0px; top:95px; width:145px; height:23px; text-align:center; vertical-align:middle; ">비시지 반흔</caption>
  912. <caption id="caption34" style="left:120px; top:72px; width:100px; height:20px; vertical-align:middle; ">*15세미만에 한함</caption>
  913. <caption id="caption3" class="tit_2" style="left:5px; top:1px; width:108px; height:13px; vertical-align:middle; ">결핵과거치료력</caption>
  914. <select1 id="chk_cureterm" ref="/root/main/tblglydisinfo/info/cureterm" disabled="false" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:525px; top:23px; width:215px; height:20px; border-style:none; ">
  915. <choices>
  916. <item>
  917. <label>1개월미만</label>
  918. <value>0</value>
  919. </item>
  920. <item>
  921. <label>1개월이상</label>
  922. <value>1</value>
  923. </item>
  924. </choices>
  925. </select1>
  926. <caption id="caption14" class="cell_1" style="left:0px; top:47px; width:145px; height:23px; text-align:center; vertical-align:middle; ">과거결핵치료받은횟수</caption>
  927. <line id="line18" class="line_3" style="x1:0px; y1:69px; x2:750px; y2:69px; "/>
  928. <line id="line19" class="line_1" style="x1:0px; y1:91px; x2:750px; y2:92px; "/>
  929. <select1 id="rad_bisiziinocmthd" ref="/root/main/tblglydisinfo/info/bisiziinocmthd" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:525px; top:96px; width:215px; height:20px; border-style:none; ">
  930. <choices>
  931. <itemset nodeset="/root/init/A0374list/A0374">
  932. <label ref="cdnm"/>
  933. <value ref="cdid"/>
  934. </itemset>
  935. </choices>
  936. </select1>
  937. <caption id="caption16" class="cell_1" style="left:375px; top:21px; width:147px; height:23px; text-align:center; vertical-align:middle; ">치료기간</caption>
  938. <line id="line3" class="line_1" style="x1:0px; y1:17px; x2:750px; y2:18px; "/>
  939. <caption id="caption17" class="tit_2" style="left:5px; top:76px; width:70px; height:13px; vertical-align:middle; ">예방접종</caption>
  940. <caption id="caption9" class="cell_1" style="left:0px; top:22px; width:145px; height:23px; text-align:center; vertical-align:middle; ">결핵과거치료력</caption>
  941. <line id="line6" class="line_2" style="x1:0px; y1:44px; x2:750px; y2:44px; "/>
  942. <line id="line7" class="line_3" style="x1:0px; y1:118px; x2:750px; y2:118px; "/>
  943. <input id="ipt_tmpcol22" ref="/root/main/tblglydisinfo/info/tmpcol22" disabled="true" style="left:495px; top:247px; width:34px; height:19px; border-width:1; "/>
  944. <line id="line8" class="line_2" style="x1:0px; y1:194px; x2:750px; y2:194px; "/>
  945. <input id="ipt_tmpcol23" ref="/root/main/tblglydisinfo/info/tmpcol23" disabled="true" style="left:636px; top:247px; width:34px; height:19px; border-width:1; "/>
  946. <line id="line9" class="line_1" style="x1:0px; y1:143px; x2:750px; y2:144px; "/>
  947. <select1 id="rad_tisstestlag" appearance="full" cellspacing="12" cols="4" overflow="visible" style="left:150px; top:199px; width:215px; height:20px; border-style:none; ">
  948. <choices>
  949. <itemset nodeset="/root/init/A0137list/A0137">
  950. <label ref="cdnm"/>
  951. <value ref="cdid"/>
  952. </itemset>
  953. </choices>
  954. </select1>
  955. <select1 id="rad_sputumodm" ref="/root/main/tblglydisinfo/info/sputumodm" appearance="full" cellspacing="12" cols="4" overflow="visible" style="left:150px; top:174px; width:220px; height:20px; border-style:none; ">
  956. <choices>
  957. <itemset nodeset="/root/init/A0137list/A0137">
  958. <label ref="cdnm"/>
  959. <value ref="cdid"/>
  960. </itemset>
  961. </choices>
  962. </select1>
  963. <line id="line20" class="line_2" style="x1:0px; y1:170px; x2:750px; y2:170px; "/>
  964. <line id="line10" class="line_2" style="x1:0px; y1:219px; x2:750px; y2:219px; "/>
  965. <select1 id="rad_etctestflag" appearance="full" cellspacing="17" cols="4" overflow="visible" style="left:525px; top:198px; width:220px; height:20px; border-style:none; ">
  966. <choices>
  967. <itemset nodeset="/root/init/A0137list/A0137">
  968. <label ref="cdnm"/>
  969. <value ref="cdid"/>
  970. </itemset>
  971. </choices>
  972. </select1>
  973. <line id="line11" class="line_3" style="x1:0px; y1:270px; x2:750px; y2:270px; "/>
  974. <select1 id="rad_rayrsltflag" appearance="full" cellspacing="7" cols="4" overflow="visible" style="left:150px; top:224px; width:220px; height:20px; border-style:none; ">
  975. <choices>
  976. <itemset nodeset="/root/init/A0373list/A0373">
  977. <label ref="cdnm"/>
  978. <value ref="cdid"/>
  979. </itemset>
  980. </choices>
  981. </select1>
  982. <caption id="caption20" class="cell_1" style="left:0px; top:172px; width:147px; height:23px; text-align:center; vertical-align:middle; ">객담이외의 검체 도말검사</caption>
  983. <caption id="caption21" class="cell_1" style="left:0px; top:196px; width:147px; height:23px; text-align:center; vertical-align:middle; ">조직검사</caption>
  984. <caption id="caption2" class="cell_1" style="left:0px; top:246px; width:147px; height:23px; text-align:center; vertical-align:middle; ">IGRA 검사</caption>
  985. <caption id="caption22" class="cell_1" style="left:375px; top:196px; width:147px; height:23px; text-align:center; vertical-align:middle; ">기타검사(PCR등)</caption>
  986. <caption id="caption23" class="cell_1" style="left:0px; top:221px; width:147px; height:23px; text-align:center; vertical-align:middle; ">방사선사진</caption>
  987. <caption id="caption35" class="cell_1" style="left:375px; top:146px; width:147px; height:23px; text-align:center; vertical-align:middle; ">객담배양검사</caption>
  988. <caption id="caption24" class="cell_1" style="left:375px; top:221px; width:147px; height:23px; text-align:center; vertical-align:middle; ">투베르쿨린검사</caption>
  989. <select1 id="rdo_sputumby" appearance="full" cellspacing="12" cols="4" overflow="visible" style="left:525px; top:149px; width:220px; height:20px; border-style:none; ">
  990. <choices>
  991. <itemset nodeset="/root/init/A0137list/A0137">
  992. <label ref="cdnm"/>
  993. <value ref="cdid"/>
  994. </itemset>
  995. </choices>
  996. </select1>
  997. <caption id="caption4" style="left:120px; top:123px; width:322px; height:20px; vertical-align:middle; ">*검사한 항목만체크함 *투베르쿨린검사는 15세미만에 한함</caption>
  998. <select1 id="radio1" ref="/root/main/tblglydisinfo/info/tmpcol1" appearance="full" cellspacing="0" cols="4" overflow="visible" style="left:150px; top:248px; width:595px; height:20px; border-style:none; ">
  999. <choices>
  1000. <itemset nodeset="/root/init/A0641list/A0641">
  1001. <label ref="cdnm"/>
  1002. <value ref="cdid"/>
  1003. </itemset>
  1004. </choices>
  1005. <script type="javascript" ev:event="xforms-value-changed">
  1006. <![CDATA[
  1007. if (model.getValue("/root/main/tblglydisinfo/info/tmpcol1") == "01") {
  1008. ipt_tmpcol21.disabled = false;
  1009. ipt_tmpcol22.disabled = true;
  1010. ipt_tmpcol23.disabled = true;
  1011. } else if (model.getValue("/root/main/tblglydisinfo/info/tmpcol1") == "02") {
  1012. ipt_tmpcol21.disabled = true;
  1013. ipt_tmpcol22.disabled = false;
  1014. ipt_tmpcol23.disabled = true;
  1015. } else if (model.getValue("/root/main/tblglydisinfo/info/tmpcol1") == "03") {
  1016. ipt_tmpcol21.disabled = true;
  1017. ipt_tmpcol22.disabled = true;
  1018. ipt_tmpcol23.disabled = false;
  1019. }
  1020. ]]>
  1021. </script>
  1022. </select1>
  1023. <input id="ipt_solidsize" ref="/root/main/tblglydisinfo/info/solidsize" class="ipt__default" style="left:593px; top:221px; width:65px; height:19px; "/>
  1024. <caption id="caption36" class="cell_1" style="left:0px; top:147px; width:147px; height:23px; text-align:center; vertical-align:middle; ">객담도말검사</caption>
  1025. <line id="line2" class="line_2" style="x1:0px; y1:245px; x2:750px; y2:245px; "/>
  1026. <select1 id="rdo_test8" ref="/root/main/tblglydisinfo/info/tooberrsltsize" appearance="full" cellspacing="70" cols="2" overflow="visible" style="left:525px; top:222px; width:220px; height:20px; border-style:none; ">
  1027. <choices>
  1028. <item>
  1029. <label>경결크기</label>
  1030. <value>1</value>
  1031. </item>
  1032. <item>
  1033. <label>미검</label>
  1034. <value>9</value>
  1035. </item>
  1036. </choices>
  1037. <script id="script28" type="javascript" ev:event="xforms-value-changed">
  1038. <![CDATA[
  1039. fCtrlEnableChk("rdo_test8");
  1040. ]]>
  1041. </script>
  1042. </select1>
  1043. <select1 id="rdo_sputumdm" appearance="full" cellspacing="12" cols="4" overflow="visible" style="left:150px; top:149px; width:220px; height:20px; border-style:none; ">
  1044. <choices>
  1045. <itemset nodeset="/root/init/A0137list/A0137">
  1046. <label ref="cdnm"/>
  1047. <value ref="cdid"/>
  1048. </itemset>
  1049. </choices>
  1050. </select1>
  1051. <caption id="caption18" class="tit_2" style="left:5px; top:126px; width:95px; height:13px; vertical-align:middle; ">결핵초회진단</caption>
  1052. <caption id="caption19" class="cell_1" style="left:375px; top:171px; width:147px; height:23px; text-align:center; vertical-align:middle; ">객담이외의 검체 배양검사</caption>
  1053. <input id="ipt_tmpcol21" ref="/root/main/tblglydisinfo/info/tmpcol21" disabled="true" style="left:286px; top:247px; width:34px; height:19px; border-width:1; "/>
  1054. <select1 id="rad_sputumoby" ref="/root/main/tblglydisinfo/info/sputumoby" appearance="full" cellspacing="17" cols="4" overflow="visible" style="left:525px; top:173px; width:220px; height:20px; border-style:none; ">
  1055. <choices>
  1056. <itemset nodeset="/root/init/A0137list/A0137">
  1057. <label ref="cdnm"/>
  1058. <value ref="cdid"/>
  1059. </itemset>
  1060. </choices>
  1061. </select1>
  1062. <input id="ipt_curedrugcdetc" ref="/root/main/tblglydisinfo/info/curedrugcdetc" class="ipt__default" style="left:0px; top:463px; width:600px; height:19px; "/>
  1063. </group>
  1064. <caption id="caption28" class="tit_2" style="left:0px; top:146px; width:95px; height:13px; vertical-align:middle; ">결핵초회검사</caption>
  1065. <line id="line23" class="line_1" style="x1:0px; y1:162px; x2:750px; y2:162px; "/>
  1066. <line id="line25" class="line_2" style="x1:0px; y1:231px; x2:750px; y2:231px; "/>
  1067. <line id="line26" class="line_2" style="x1:0px; y1:254px; x2:750px; y2:254px; "/>
  1068. <line id="line27" class="line_2" style="x1:0px; y1:276px; x2:750px; y2:276px; "/>
  1069. <line id="line28" class="line_2" style="x1:0px; y1:298px; x2:750px; y2:298px; "/>
  1070. <line id="line29" class="line_2" style="x1:0px; y1:160px; x2:750px; y2:160px; "/>
  1071. <caption id="caption48" class="cell_1" style="left:605px; top:166px; width:147px; height:44px; text-align:center; vertical-align:middle; ">검체종류</caption>
  1072. <line id="line30" class="line_3" style="x1:0px; y1:342px; x2:750px; y2:342px; "/>
  1073. <input id="input31" ref="/root/main/tblglydisinfo/info/rayrsltkind" maxlength="25" style="left:606px; top:211px; width:145px; height:19px; "/>
  1074. <input id="input32" ref="/root/main/tblglydisinfo/info/tisstestlagkind" maxlength="25" style="left:606px; top:322px; width:145px; height:19px; "/>
  1075. <select1 id="radio3" ref="/root/main/tblglydisinfo/info/sputumdmkind" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:620px; top:233px; width:120px; height:20px; border-style:none; ">
  1076. <choices>
  1077. <item>
  1078. <label>객담</label>
  1079. <value>01</value>
  1080. </item>
  1081. <item>
  1082. <label>객담 외</label>
  1083. <value>02</value>
  1084. </item>
  1085. </choices>
  1086. </select1>
  1087. <select1 id="radio4" ref="/root/main/tblglydisinfo/info/sputumbykind" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:620px; top:256px; width:120px; height:20px; border-style:none; ">
  1088. <choices>
  1089. <item>
  1090. <label>객담</label>
  1091. <value>01</value>
  1092. </item>
  1093. <item>
  1094. <label>객담 외</label>
  1095. <value>02</value>
  1096. </item>
  1097. </choices>
  1098. </select1>
  1099. <select1 id="radio5" ref="/root/main/tblglydisinfo/info/etctestflagkind" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:620px; top:278px; width:120px; height:20px; border-style:none; ">
  1100. <choices>
  1101. <item>
  1102. <label>객담</label>
  1103. <value>01</value>
  1104. </item>
  1105. <item>
  1106. <label>객담 외</label>
  1107. <value>02</value>
  1108. </item>
  1109. </choices>
  1110. </select1>
  1111. <select1 id="radio11" ref="/root/main/tblglydisinfo/info/sputumby" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:256px; width:340px; height:15px; border-style:none; ">
  1112. <choices>
  1113. <item>
  1114. <label/>
  1115. <value>1</value>
  1116. </item>
  1117. <item>
  1118. <label/>
  1119. <value>2</value>
  1120. </item>
  1121. <item>
  1122. <label/>
  1123. <value>3</value>
  1124. </item>
  1125. <item>
  1126. <label/>
  1127. <value>4</value>
  1128. </item>
  1129. <item>
  1130. <label/>
  1131. <value>5</value>
  1132. </item>
  1133. </choices>
  1134. </select1>
  1135. <select1 id="radio12" ref="/root/main/tblglydisinfo/info/etctestflag" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:278px; width:340px; height:15px; border-style:none; ">
  1136. <choices>
  1137. <item>
  1138. <label/>
  1139. <value>1</value>
  1140. </item>
  1141. <item>
  1142. <label/>
  1143. <value>2</value>
  1144. </item>
  1145. <item>
  1146. <label/>
  1147. <value>3</value>
  1148. </item>
  1149. <item>
  1150. <label/>
  1151. <value>4</value>
  1152. </item>
  1153. <item>
  1154. <label/>
  1155. <value>5</value>
  1156. </item>
  1157. </choices>
  1158. </select1>
  1159. <caption id="caption55" class="cell_1" style="left:203px; top:181px; width:79px; height:29px; text-align:center; vertical-align:middle; ">검사중</caption>
  1160. <select1 id="radio13" ref="/root/main/tblglydisinfo/info/tisstestlag" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:322px; width:337px; height:15px; border-style:none; ">
  1161. <choices>
  1162. <item>
  1163. <label/>
  1164. <value>1</value>
  1165. </item>
  1166. <item>
  1167. <label/>
  1168. <value>2</value>
  1169. </item>
  1170. <item>
  1171. <label/>
  1172. <value>3</value>
  1173. </item>
  1174. <item>
  1175. <label/>
  1176. <value>4</value>
  1177. </item>
  1178. <item>
  1179. <label/>
  1180. <value>5</value>
  1181. </item>
  1182. </choices>
  1183. </select1>
  1184. <caption id="caption56" class="cell_1" style="left:283px; top:181px; width:219px; height:14px; text-align:center; vertical-align:middle; ">검사완료</caption>
  1185. <input id="input1" ref="/root/main/tblglydisinfo/info/rayrsltdd" inputtype="date" style="left:504px; top:211px; width:100px; height:19px; "/>
  1186. <caption id="caption57" class="cell_1" style="left:0px; top:211px; width:122px; height:19px; text-align:left; vertical-align:middle; ">흉부X선검사</caption>
  1187. <caption id="caption58" class="cell_1" style="left:283px; top:196px; width:71px; height:14px; text-align:center; vertical-align:middle; ">양성</caption>
  1188. <caption id="caption59" class="cell_1" style="left:0px; top:255px; width:122px; height:19px; text-align:left; vertical-align:middle; ">배양검사</caption>
  1189. <caption id="caption60" class="cell_1" style="left:356px; top:196px; width:73px; height:14px; text-align:center; vertical-align:middle; ">음성</caption>
  1190. <caption id="caption61" class="cell_1" style="left:0px; top:277px; width:122px; height:19px; text-align:left; vertical-align:middle; ">TB-PCR검사</caption>
  1191. <caption id="caption62" class="cell_1" style="left:430px; top:196px; width:72px; height:14px; text-align:center; vertical-align:middle; ">불명</caption>
  1192. <caption id="caption63" class="cell_1" style="left:0px; top:322px; width:122px; height:19px; text-align:left; vertical-align:middle; ">조직검사</caption>
  1193. <caption id="caption64" class="cell_1" style="left:0px; top:166px; width:122px; height:44px; text-align:center; vertical-align:middle; ">초회검사종류</caption>
  1194. <caption id="caption65" class="cell_1" style="left:123px; top:166px; width:379px; height:14px; text-align:center; vertical-align:middle; ">검사 상태 및 결과</caption>
  1195. <caption id="caption66" class="cell_1" style="left:503px; top:166px; width:101px; height:44px; text-align:center; vertical-align:middle; ">
  1196. <![CDATA[검체채취일
  1197. (또는 검사일자)]]>
  1198. </caption>
  1199. <input id="input2" ref="/root/main/tblglydisinfo/info/sputumdmdd" inputtype="date" style="left:504px; top:233px; width:100px; height:19px; "/>
  1200. <input id="input3" ref="/root/main/tblglydisinfo/info/sputumbydd" inputtype="date" style="left:504px; top:256px; width:100px; height:19px; "/>
  1201. <caption id="caption67" class="cell_1" style="left:123px; top:181px; width:79px; height:29px; text-align:center; vertical-align:middle; ">미실시</caption>
  1202. <input id="input4" ref="/root/main/tblglydisinfo/info/etctestflagdd" inputtype="date" style="left:504px; top:278px; width:100px; height:19px; "/>
  1203. <caption id="caption68" class="cell_1" style="left:0px; top:233px; width:122px; height:19px; text-align:left; vertical-align:middle; ">도말검사</caption>
  1204. <input id="input5" ref="/root/main/tblglydisinfo/info/tisstestlagdd" inputtype="date" style="left:504px; top:322px; width:100px; height:19px; "/>
  1205. <select1 id="radio14" ref="/root/main/tblglydisinfo/info/rayrsltflag" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:213px; width:340px; height:15px; border-style:none; ">
  1206. <choices>
  1207. <item>
  1208. <label/>
  1209. <value>1</value>
  1210. </item>
  1211. <item>
  1212. <label/>
  1213. <value>2</value>
  1214. </item>
  1215. <item>
  1216. <label/>
  1217. <value>3</value>
  1218. </item>
  1219. <item>
  1220. <label/>
  1221. <value>4</value>
  1222. </item>
  1223. <item>
  1224. <label/>
  1225. <value>5</value>
  1226. </item>
  1227. </choices>
  1228. </select1>
  1229. <select1 id="radio15" ref="/root/main/tblglydisinfo/info/sputumdm" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:235px; width:340px; height:15px; border-style:none; ">
  1230. <choices>
  1231. <item>
  1232. <label/>
  1233. <value>1</value>
  1234. </item>
  1235. <item>
  1236. <label/>
  1237. <value>2</value>
  1238. </item>
  1239. <item>
  1240. <label/>
  1241. <value>3</value>
  1242. </item>
  1243. <item>
  1244. <label/>
  1245. <value>4</value>
  1246. </item>
  1247. <item>
  1248. <label/>
  1249. <value>5</value>
  1250. </item>
  1251. </choices>
  1252. </select1>
  1253. <caption id="caption39" class="cell_1" style="left:0px; top:112px; width:81px; height:28px; text-align:center; vertical-align:middle; ">
  1254. <![CDATA[시설명
  1255. (직장 학교등)]]>
  1256. </caption>
  1257. <input id="input6" ref="/root/main/tblglydisinfo/info/faclt" maxlength="25" style="left:83px; top:116px; width:111px; height:19px; "/>
  1258. <caption id="caption41" class="cell_1" style="left:199px; top:113px; width:31px; height:26px; vertical-align:middle; ">주소</caption>
  1259. <input id="input7" ref="/root/main/tblglydisinfo/info/facltaddr" maxlength="25" style="left:233px; top:117px; width:437px; height:19px; "/>
  1260. <caption id="caption42" class="cell_1" style="left:186px; top:21px; width:77px; height:20px; text-align:center; vertical-align:middle; ">전화번호</caption>
  1261. <output id="output2" ref="/root/main/tblglydisinfo/info/tel" class="output_fix" style="left:266px; top:22px; width:105px; height:19px; "/>
  1262. <caption id="caption43" class="cell_1" style="left:436px; top:366px; width:77px; height:59px; text-align:center; vertical-align:middle; ">결핵종류</caption>
  1263. <select id="chk_ccspec" ref="/root/main/tblglydisinfo/info/antutbclrslt" navindex="36" overflow="visible" appearance="full" cols="7" vcellspacing="2" style="left:125px; top:540px; width:180px; height:18px; border-style:none; ">
  1264. <choices>
  1265. <item>
  1266. <label>미실시</label>
  1267. <value>01</value>
  1268. </item>
  1269. <item>
  1270. <label>검사중</label>
  1271. <value>02</value>
  1272. </item>
  1273. <item>
  1274. <label>검사완료</label>
  1275. <value>03</value>
  1276. </item>
  1277. </choices>
  1278. <script id="script4" type="javascript" ev:event="xforms-value-changed">
  1279. <![CDATA[
  1280. fCtrlEnableChk("chk_antutbclrslt");
  1281. ]]>
  1282. </script>
  1283. </select>
  1284. <caption id="caption44" class="cell_1" style="left:0px; top:535px; width:122px; height:32px; text-align:center; vertical-align:middle; ">
  1285. <![CDATA[항결핵약제
  1286. 내성검사결과]]>
  1287. </caption>
  1288. <select id="checkbox1" ref="/root/main/tblglydisinfo/info/antutbclrsltdetl" navindex="36" overflow="visible" appearance="full" cols="7" vcellspacing="2" style="left:311px; top:539px; width:225px; height:18px; border-style:none; ">
  1289. <choices>
  1290. <item>
  1291. <label>내성없음</label>
  1292. <value>01</value>
  1293. </item>
  1294. <item>
  1295. <label>내성있음</label>
  1296. <value>02</value>
  1297. </item>
  1298. <item>
  1299. <label>검사결과불명</label>
  1300. <value>03</value>
  1301. </item>
  1302. </choices>
  1303. <script id="script5" type="javascript" ev:event="xforms-value-changed">
  1304. <![CDATA[
  1305. fCtrlEnableChk("chk_antutbclrsltdetl");
  1306. ]]>
  1307. </script>
  1308. </select>
  1309. <input id="input8" ref="/root/main/tblglydisinfo/info/antutbclrsltdetldesc" maxlength="25" style="left:537px; top:539px; width:170px; height:19px; "/>
  1310. <line id="line15" class="line_2" style="x1:0px; y1:568px; x2:750px; y2:568px; "/>
  1311. <caption id="caption45" class="cell_1" style="left:0px; top:595px; width:122px; height:32px; text-align:center; vertical-align:middle; ">
  1312. <![CDATA[항결핵약제
  1313. 검사방법]]>
  1314. </caption>
  1315. <line id="line31" class="line_2" style="x1:0px; y1:629px; x2:750px; y2:629px; "/>
  1316. <select id="checkbox3" ref="/root/main/tblglydisinfo/info/antutbclmthd" navindex="36" overflow="visible" appearance="full" cols="7" vcellspacing="2" style="left:125px; top:601px; width:620px; height:18px; border-style:none; ">
  1317. <choices>
  1318. <item>
  1319. <label>전통적인방법</label>
  1320. <value>01</value>
  1321. </item>
  1322. <item>
  1323. <label>신속내성검사</label>
  1324. <value>02</value>
  1325. </item>
  1326. <item>
  1327. <label>실시간이중중합효소연쇄반응검사(Xpert MTB/RIF검사 등)</label>
  1328. <value>03</value>
  1329. </item>
  1330. </choices>
  1331. </select>
  1332. <line id="line32" class="line_2" style="x1:0px; y1:693px; x2:750px; y2:693px; "/>
  1333. <caption id="caption46" class="cell_1" style="left:0px; top:630px; width:122px; height:62px; text-align:center; vertical-align:middle; ">
  1334. <![CDATA[항결핵약제
  1335. 내성약제]]>
  1336. </caption>
  1337. <select id="checkbox7" ref="/root/main/tblglydisinfo/info/antutbcldrug" navindex="36" overflow="visible" appearance="full" cols="8" vcellspacing="2" style="left:125px; top:633px; width:625px; height:36px; border-style:none; ">
  1338. <choices>
  1339. <item>
  1340. <label>INAH</label>
  1341. <value>01</value>
  1342. </item>
  1343. <item>
  1344. <label>RFC</label>
  1345. <value>02</value>
  1346. </item>
  1347. <item>
  1348. <label>PYRAZ</label>
  1349. <value>03</value>
  1350. </item>
  1351. <item>
  1352. <label>MYAMB</label>
  1353. <value>04</value>
  1354. </item>
  1355. <item>
  1356. <label>STREP</label>
  1357. <value>05</value>
  1358. </item>
  1359. <item>
  1360. <label>PROTH</label>
  1361. <value>06</value>
  1362. </item>
  1363. <item>
  1364. <label>CLOSE</label>
  1365. <value>07</value>
  1366. </item>
  1367. <item>
  1368. <label>PASCA</label>
  1369. <value>08</value>
  1370. </item>
  1371. <item>
  1372. <label>MYCOB</label>
  1373. <value>09</value>
  1374. </item>
  1375. <item>
  1376. <label>KAMAC</label>
  1377. <value>10</value>
  1378. </item>
  1379. <item>
  1380. <label>CRAV</label>
  1381. <value>11</value>
  1382. </item>
  1383. <item>
  1384. <label>AMK</label>
  1385. <value>12</value>
  1386. </item>
  1387. <item>
  1388. <label>기타</label>
  1389. <value>13</value>
  1390. </item>
  1391. <item>
  1392. <label>MOVEL</label>
  1393. <value>14</value>
  1394. </item>
  1395. <item>
  1396. <label>ZYVOX</label>
  1397. <value>15</value>
  1398. </item>
  1399. <item>
  1400. <label>CLARI</label>
  1401. <value>16</value>
  1402. </item>
  1403. </choices>
  1404. <script id="script3" type="javascript" ev:event="xforms-value-changed">
  1405. <![CDATA[
  1406. fCtrlEnableChk("chk_antutbcldrug");
  1407. ]]>
  1408. </script>
  1409. </select>
  1410. <input id="input9" ref="/root/main/tblglydisinfo/info/antutbcldrugtxt" maxlength="25" style="left:157px; top:673px; width:593px; height:19px; "/>
  1411. <select id="checkbox8" ref="/root/main/tblglydisinfo/info/antutbclcd" navindex="36" overflow="visible" appearance="full" cols="7" vcellspacing="2" style="left:125px; top:698px; width:620px; height:18px; border-style:none; ">
  1412. <choices>
  1413. <item>
  1414. <label>U84.30(다약제내성 결핵)</label>
  1415. <value>01</value>
  1416. </item>
  1417. <item>
  1418. <label>U84.31(광범위약제내성 결핵)</label>
  1419. <value>02</value>
  1420. </item>
  1421. <item>
  1422. <label>리팜핀단독내성 결핵</label>
  1423. <value>03</value>
  1424. </item>
  1425. </choices>
  1426. </select>
  1427. <caption id="caption54" class="cell_1" style="left:0px; top:695px; width:122px; height:27px; text-align:center; vertical-align:middle; ">
  1428. <![CDATA[항결핵약제
  1429. 내성코드]]>
  1430. </caption>
  1431. <caption id="caption69" class="cell_1" style="left:280px; top:748px; width:122px; height:23px; text-align:center; vertical-align:middle; ">치료종료일</caption>
  1432. <line id="line33" class="line_2" style="x1:0px; y1:723px; x2:750px; y2:723px; "/>
  1433. <select id="checkbox9" ref="/root/main/tblglydisinfo/info/curersltflagdiag" navindex="36" overflow="visible" appearance="full" cols="7" vcellspacing="2" style="left:588px; top:777px; width:156px; height:18px; border-style:none; ">
  1434. <choices>
  1435. <item>
  1436. <label>NTM</label>
  1437. <value>01</value>
  1438. </item>
  1439. <item>
  1440. <label>종양</label>
  1441. <value>02</value>
  1442. </item>
  1443. <item>
  1444. <label>기타질병</label>
  1445. <value>03</value>
  1446. </item>
  1447. </choices>
  1448. </select>
  1449. <line id="line35" class="line_3" style="x1:0px; y1:723px; x2:750px; y2:723px; "/>
  1450. <select id="checkbox11" ref="/root/main/tblglydisinfo/info/tbclkindcd" navindex="36" overflow="visible" appearance="full" cols="1" vcellspacing="2" style="left:515px; top:366px; width:115px; height:58px; border-style:none; ">
  1451. <choices>
  1452. <item>
  1453. <label>폐결핵</label>
  1454. <value>01</value>
  1455. </item>
  1456. <item>
  1457. <label>폐외결핵</label>
  1458. <value>02</value>
  1459. </item>
  1460. <item>
  1461. <label>폐결핵+폐외결핵</label>
  1462. <value>03</value>
  1463. </item>
  1464. </choices>
  1465. <script id="script6" type="javascript" ev:event="xforms-value-changed">
  1466. <![CDATA[
  1467. fCtrlEnableChk("chk_tbclkindcd");
  1468. ]]>
  1469. </script>
  1470. </select>
  1471. <caption id="caption53" class="cell_1" style="left:375px; top:21px; width:77px; height:20px; text-align:center; vertical-align:middle; ">핸드폰번호</caption>
  1472. <output id="output3" ref="/root/main/tblglydisinfo/info/mpphontel" class="output_fix" style="left:455px; top:22px; width:130px; height:19px; "/>
  1473. <line id="line39" class="line_2" style="x1:0px; y1:110px; x2:750px; y2:110px; "/>
  1474. <line id="line40" class="line_2" style="x1:0px; y1:320px; x2:750px; y2:320px; "/>
  1475. <caption id="caption71" class="cell_1" style="left:0px; top:299px; width:122px; height:19px; text-align:left; vertical-align:middle; ">X-Pert 검사</caption>
  1476. <select1 id="radio6" ref="/root/main/tblglydisinfo/info/xpert" appearance="full" cellspacing="56" cols="5" overflow="visible" style="left:158px; top:301px; width:340px; height:15px; border-style:none; ">
  1477. <choices>
  1478. <item>
  1479. <label/>
  1480. <value>1</value>
  1481. </item>
  1482. <item>
  1483. <label/>
  1484. <value>2</value>
  1485. </item>
  1486. <item>
  1487. <label/>
  1488. <value>3</value>
  1489. </item>
  1490. <item>
  1491. <label/>
  1492. <value>4</value>
  1493. </item>
  1494. <item>
  1495. <label/>
  1496. <value>5</value>
  1497. </item>
  1498. </choices>
  1499. </select1>
  1500. <input id="input10" ref="/root/main/tblglydisinfo/info/xpertdd" inputtype="date" style="left:504px; top:300px; width:100px; height:19px; "/>
  1501. <select1 id="radio7" ref="/root/main/tblglydisinfo/info/xpertkind" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:620px; top:300px; width:120px; height:20px; border-style:none; ">
  1502. <choices>
  1503. <item>
  1504. <label>객담</label>
  1505. <value>01</value>
  1506. </item>
  1507. <item>
  1508. <label>객담 외</label>
  1509. <value>02</value>
  1510. </item>
  1511. </choices>
  1512. </select1>
  1513. <input id="input11" ref="/root/main/tblglydisinfo/info/tbclkindcd02" maxlength="25" style="left:630px; top:384px; width:120px; height:19px; "/>
  1514. <input id="input12" ref="/root/main/tblglydisinfo/info/tbclkindcd03" maxlength="25" style="left:630px; top:404px; width:120px; height:19px; "/>
  1515. <line id="line41" class="line_2" style="x1:0px; y1:401px; x2:436px; y2:401px; "/>
  1516. <caption id="caption72" style="left:305px; top:539px; width:10px; height:20px; ">(</caption>
  1517. <caption id="caption73" style="left:708px; top:538px; width:10px; height:20px; ">)</caption>
  1518. <input id="input13" ref="/root/main/tblglydisinfo/info/curedrugcdtxt" maxlength="25" style="left:157px; top:513px; width:593px; height:19px; "/>
  1519. <caption id="caption74" class="cell_1" style="left:0px; top:570px; width:122px; height:23px; text-align:center; vertical-align:middle; ">검체채취일</caption>
  1520. <line id="line17" class="line_2" style="x1:0px; y1:594px; x2:750px; y2:594px; "/>
  1521. <caption id="caption47" style="left:127px; top:673px; width:30px; height:20px; ">기타</caption>
  1522. <caption id="caption49" style="left:125px; top:513px; width:30px; height:20px; ">기타</caption>
  1523. <caption id="caption50" style="left:744px; top:777px; width:10px; height:20px; ">)</caption>
  1524. <caption id="caption51" style="left:582px; top:778px; width:10px; height:20px; ">(</caption>
  1525. </group>
  1526. <group id="grp_btn" scroll="auto" style="left:0px; top:830px; width:750px; height:27px; ">
  1527. <button id="btn_save" class="btn4_letter2" style="left:560px; top:3px; width:56px; height:22px; ">
  1528. <caption>저장</caption>
  1529. <script type="javascript" ev:event="DOMActivate">
  1530. <![CDATA[
  1531. model.removeNodeset("/root/send");
  1532. model.makeNode("/root/send/savedata");
  1533. /* /2012/09/07 Start
  1534. if( isRequiredControls("ipt_curefromdd","chk_curedrugcd") == false ){
  1535. return;
  1536. }
  1537. if (isNull(model.getValue("/root/main/tblglydisinfo/info/curefromdd")) ){
  1538. messageBox("치료시작 또는 진단일자는", "I003");
  1539. return;
  1540. }
  1541. if (model.getValue("/root/main/tblglydisinfo/info/diagnm") == "" ){
  1542. messageBox("질병코드는 ", "I003");
  1543. return;
  1544. }
  1545. if ((model.getValue("/root/main/tblglydisinfo/info/sputumdm") == "" )||(model.getValue("/root/main/tblglydisinfo/info/sputumby")=="")||(model.getValue("/root/main/tblglydisinfo/info/sputumodm")=="")||(model.getValue("/root/main/tblglydisinfo/info/sputumoby")=="")||(model.getValue("/root/main/tblglydisinfo/info/tisstestlag")=="")||(model.getValue("/root/main/tblglydisinfo/info/etctestflag")=="")||(model.getValue("/root/main/tblglydisinfo/info/rayrsltflag")=="")){
  1546. messageBox("결핵초회진단 항목들은 ", "I003");
  1547. return;
  1548. }
  1549. //090722 kimsj 결핵초회진단이 모두 미검이면 BLOCK
  1550. if ((model.getValue("/root/main/tblglydisinfo/info/sputumdm") == "4" )&&(model.getValue("/root/main/tblglydisinfo/info/tisstestlag")=="4")&&(model.getValue("/root/main/tblglydisinfo/info/rayrsltflag")=="4")){
  1551. messageBox("최소 1개의 결핵초회진단 검사는 ", "I003");
  1552. return;
  1553. }
  1554. if ((model.getValue("/root/main/tblglydisinfo/info/pastcureflag") == "" )){
  1555. messageBox("결핵과거치료력은 ", "I003");
  1556. return;
  1557. }
  1558. if ((model.getValue("/root/main/tblglydisinfo/info/pastcureflag") == "Y" )&&(model.getValue("/root/main/tblglydisinfo/info/cureterm") == "" )){
  1559. messageBox("결핵과거치료 기간은 ", "I003");
  1560. return;
  1561. }
  1562. if ((model.getValue("/root/main/tblglydisinfo/info/pastcureflag") == "Y" )&&(model.getValue("/root/main/tblglydisinfo/info/pastcurecnt") == "" )){
  1563. messageBox("결핵과거치료 횟수는 ", "I003");
  1564. return;
  1565. }
  1566. if (model.getValue("/root/main/tblglydisinfo/info/patflag") == "" ){
  1567. messageBox("환자구분은 ", "I003");
  1568. return;
  1569. }
  1570. //090722 kimsj 결핵과거치료력 = 'Y'이면서 환자구분 '신환자'인경우 -> '기타환자'로 변경요청
  1571. if ((model.getValue("/root/main/tblglydisinfo/info/pastcureflag") == "Y" )&&(model.getValue("/root/main/tblglydisinfo/info/patflag") == "1" )){
  1572. messageBox("결핵과거 치료력이 있는 환자입니다. 환자구분을 다시 ", "C002");
  1573. return;
  1574. }
  1575. //090722 kimsj 치료약제 없음(Check)일 경우 BLOCK
  1576. if (model.getValue("/root/main/tblglydisinfo/info/curedrugcd")=="99"){
  1577. messageBox("치료약제 사용은 ", "I003");
  1578. return;
  1579. }
  1580. 2012/09/07 End */
  1581. if( model.getValue("/root/main/tblglydisinfo/info/wrtedt") == "" || model.getValue("/root/main/tblglydisinfo/info/wrtedt") == null ){
  1582. model.setValue("/root/main/tblglydisinfo/info/state", "I");
  1583. model.setValue("/root/main/tblglydisinfo/info/wrtedt", getCurrentDate() +""+ getCurrentTime());
  1584. } else {
  1585. //kimsj 100407 체크기간 경과시 데이터가 있을 경우 신규신고가 아닌 수정현상 발생 -> 신규 신고할 수있도록 수정 (현재는 처방 체크 10일로 확인 - 변경필요)
  1586. var vbf10days = ((getCurrentDate().toDate()).getAddDate(-3,"M")).getDateFormat();
  1587. var vwrtddt = (model.getValue("/root/main/tblglydisinfo/info/wrtedt")).substring(0, 8);
  1588. if ( vwrtddt <= vbf10days) {
  1589. model.setValue("/root/main/tblglydisinfo/info/state", "I");
  1590. model.setValue("/root/main/tblglydisinfo/info/wrtedt", getCurrentDate() +""+ getCurrentTime());
  1591. } else {
  1592. model.setValue("/root/main/tblglydisinfo/info/state", "U");
  1593. }
  1594. }
  1595. model.setValue("/root/main/tblglydisinfo/info/reptflag", "02");
  1596. //신고대상자조회 조건에 진료과가 있어서 추가 20071018 김홍점
  1597. model.setValue("/root/main/tblglydisinfo/info/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  1598. // IGRA 검사 결과 값을 넣을때 그 값을 tempcol2에 넣어준다.
  1599. var tempcol1 = model.getValue("/root/main/tblglydisinfo/info/tmpcol1")
  1600. var tempcol21 = model.getValue("/root/main/tblglydisinfo/info/tmpcol21")
  1601. var tempcol22 = model.getValue("/root/main/tblglydisinfo/info/tmpcol21")
  1602. var tempcol23 = model.getValue("/root/main/tblglydisinfo/info/tmpcol21")
  1603. if (tempcol1 == "01" && isNull(tempcol21) ) {
  1604. messageBox("IGRA검사 Quantiferon In- Tube 값을 입력하여야 합니다.", "I");
  1605. return;
  1606. }
  1607. if (tempcol1 == "02" && isNull(tempcol22) ) {
  1608. messageBox("IGRA검사 Quantiferon TB-Gold 값을 입력하여야 합니다.", "I");
  1609. return;
  1610. }
  1611. if (tempcol1 == "03" && isNull(tempcol23) ) {
  1612. messageBox("IGRA검사 T-SPOT 값을 입력하여야 합니다.", "I");
  1613. return;
  1614. }
  1615. if (!isNull(tempcol21 )) {
  1616. model.setValue("/root/main/tblglydisinfo/info/tmpcol2", tempcol21);
  1617. } else if (!isNull(tempcol22 )) {
  1618. model.setValue("/root/main/tblglydisinfo/info/tmpcol2", tempcol22);
  1619. } else if (!isNull(tempcol23 )) {
  1620. model.setValue("/root/main/tblglydisinfo/info/tmpcol2", tempcol23);
  1621. }
  1622. //2012/09/07 Start
  1623. var curefromdd=model.getValue("/root/main/tblglydisinfo/info/curefromdd");
  1624. var anotheryn=model.getValue("/root/main/tblglydisinfo/info/anotheryn");
  1625. if(curefromdd=="" && anotheryn==""){
  1626. messageBox("[치료시작(또는 예정)일]을 입력하시거나 [타병원으로 전원]을 체크", "I008");
  1627. model.setValue("/root/main/tblglydisinfo/info/wrtedt", "");
  1628. return;
  1629. }
  1630. //2012/09/07 End
  1631. model.copyNode("/root/send/savedata","/root/main/tblglydisinfo/info");
  1632. //@@
  1633. var Curstate = model.getValue("/root/main/tblglydisinfo/info/state");
  1634. if(submit("TXASI01501")){
  1635. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  1636. fBisiziFlag();
  1637. fCtrlEnableChk("chk_curedrugcd");
  1638. fCtrlEnableChk("rdo_curersltflag");
  1639. fChgReptDisable();
  1640. model.refresh();
  1641. //@@
  1642. if(Curstate == "I"){
  1643. if(!isNull(opener.javascript.getParameter("PrcpLglyDis")) && opener.javascript.getParameter("PrcpLglyDis") == "PrcpLglyDis" && !isNull(opener.javascript.getParameter("PrcpTubeSaveYn")) && opener.javascript.getParameter("PrcpTubeSaveYn") == "Y" ){
  1644. messageBox ( "결핵으로 인한 산정특례 등록으로 결핵신고서가\n자동으로 저장되었습니다.\n\n[관련 : 결핵예방법 제8조]\n문의: 본원 호흡기상담실(5952), 칠곡 결핵담당(2427)", "I" );
  1645. } else {
  1646. messageBox("저장되었습니다","I");
  1647. /*
  1648. var result = messageBox("저장되었습니다. 해당 결핵치료종료를 등록 ","S001"); //저장 후 결핵치료등록 여부
  1649. if( result == "6" ){
  1650. model.removeNodeset("/root/send");
  1651. model.makeNode("/root/send/savedata");
  1652. model.makeValue("/root/main/tblglydisinfo/info/cureenddd", getCurrentDate());
  1653. model.makeValue("/root/main/tblglydisinfo/info/trgtmankind02flag", "Y");
  1654. model.copyNode("/root/send/savedata","/root/main/tblglydisinfo/info");
  1655. if(submit("TXASI01501")){
  1656. model.close();
  1657. }
  1658. }
  1659. */
  1660. }
  1661. }else if (Curstate == "U"){
  1662. messageBox("수정되었습니다.","I");
  1663. }
  1664. model.close();
  1665. }
  1666. ]]>
  1667. </script>
  1668. </button>
  1669. <button id="btn_cncl" class="btn4_letter2" style="left:620px; top:3px; width:56px; height:22px; ">
  1670. <caption>삭제</caption>
  1671. <script type="javascript" ev:event="DOMActivate">
  1672. <![CDATA[
  1673. model.removeNodeset("/root/send");
  1674. model.makeNode("/root/send/savedata");
  1675. //if(!isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt")) ){
  1676. if(model.getValue("/root/main/getreptdtinfo/reptdtinfo/prt_reptdt").substring(0,8) != "99991231" ){ //작성일자가 아닌 신고일자로 체크하도록 수정 (2009.11.13 JJE)
  1677. messageBox(" 이미 신고된 건은 삭제 " ,"E001");
  1678. return;
  1679. }
  1680. var result = messageBox("","Q001"); //삭제하시겠습니까?
  1681. if (result == "7"){
  1682. messageBox("삭제가 취소되었습니다","I");
  1683. return;
  1684. }else if (result == "6"){
  1685. model.setValue("/root/main/tblglydisinfo/info/state", "D");
  1686. model.copyNode("/root/send/savedata","/root/main/tblglydisinfo/info");
  1687. if(submit("TXASI01501") != false){
  1688. model.copyNode("/root/main/tblglydisinfo", "/root/main/getlglydisinfo");
  1689. model.refresh();
  1690. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/tblglydisinfo/info/pid"));
  1691. model.makeValue("/root/send/reqdata/reptflag", model.getValue("/root/main/tblglydisinfo/info/reptflag"));
  1692. if(submit("TRASI01502", false)){
  1693. if( isNull(model.getValue("/root/main/getreptdtinfo/reptdtinfo/reptdt")) ){
  1694. messageBox("삭제" ,"I001");
  1695. window.close();
  1696. }
  1697. }
  1698. fBisiziFlag();
  1699. }
  1700. }
  1701. ]]>
  1702. </script>
  1703. </button>
  1704. <button id="btn_init" class="btn4_letter3" style="left:679px; top:3px; width:68px; height:22px; ">
  1705. <caption>초기화</caption>
  1706. <script type="javascript" ev:event="DOMActivate">
  1707. <![CDATA[
  1708. //model.resetInstanceNode("/root/main/tblglydisinfo");
  1709. fInit();
  1710. model.refresh();
  1711. ]]>
  1712. </script>
  1713. </button>
  1714. </group>
  1715. <button id="btn_save_re" class="btn2_letter4" visibility="hidden" style="left:515px; top:750px; width:64px; height:19px; ">
  1716. <caption>치료종료</caption>
  1717. <script type="javascript" ev:event="DOMActivate">
  1718. <![CDATA[
  1719. model.removeNodeset("/root/send");
  1720. model.makeNode("/root/send/savedata");
  1721. //model.setValue("/root/main/tblglydisinfo/info/reptflag", "20");
  1722. model.makeValue("/root/main/tblglydisinfo/info/trgtmankind02flag", "Y");
  1723. model.copyNode("/root/send/savedata","/root/main/tblglydisinfo/info");
  1724. if(submit("TXASI01501")){
  1725. model.close();
  1726. }
  1727. ]]>
  1728. </script>
  1729. </button>
  1730. <input id="ipt_cureenddd" ref="/root/main/tblglydisinfo/info/cureenddd" class="input_essential" inputtype="date" style="left:406px; top:750px; width:100px; height:19px; "/>
  1731. <input id="input14" ref="/root/main/tblglydisinfo/info/spcacptdt" class="input_essential" inputtype="date" style="left:125px; top:572px; width:100px; height:19px; "/>
  1732. </xhtml:body>
  1733. </xhtml:html>