SMMNW08800_병력.xrw 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <wardrecinfo>
  11. <gustoinfo>
  12. <gusto>
  13. <smokinfo>
  14. <smokinfoyn>1</smokinfoyn>
  15. <smokinfocnt/>
  16. <nosmokcnstyn/>
  17. <nosmokcnst/>
  18. <nosmokcnstnm/>
  19. </smokinfo>
  20. <drunkinfo>
  21. <drunkinfoyn>1</drunkinfoyn>
  22. <drunkinfokind/>
  23. <drunkinfoterm/>
  24. </drunkinfo>
  25. <gustofoodinfo>
  26. <gustofoodyn>1</gustofoodyn>
  27. <gustofooddetl/>
  28. </gustofoodinfo>
  29. <tnsseffcinfo>
  30. <tnsseffcyn>1</tnsseffcyn>
  31. <tnsseffcdetl/>
  32. </tnsseffcinfo>
  33. </gusto>
  34. </gustoinfo>
  35. </wardrecinfo>
  36. <histinfo>
  37. <pasthistinfo>
  38. <pasthist>
  39. <pasthistinclyn/>
  40. <pasthist>
  41. <genrdd/>
  42. <histspec/>
  43. <remfact/>
  44. </pasthist>
  45. </pasthist>
  46. </pasthistinfo>
  47. <famyhistinfo>
  48. <famyhist>
  49. <famyhistinclyn/>
  50. <famyhist>
  51. <famyrel/>
  52. <existyn/>
  53. <histspec/>
  54. <remfact/>
  55. </famyhist>
  56. </famyhist>
  57. </famyhistinfo>
  58. <inhistinfo>
  59. <inhist>
  60. <inhistinclyn/>
  61. <inhist>
  62. <indd/>
  63. <dschdd/>
  64. <illnm/>
  65. <orddept/>
  66. <inhistpk/>
  67. </inhist>
  68. </inhist>
  69. </inhistinfo>
  70. <ophistinfo>
  71. <ophist>
  72. <ophistinclyn/>
  73. <ophist>
  74. <opdd/>
  75. <opnm/>
  76. <orddept/>
  77. <ophistpk/>
  78. </ophist>
  79. </ophist>
  80. </ophistinfo>
  81. <rectmedistatinfo>
  82. <rectmedistat>
  83. <rectmedistatinfoinclyn/>
  84. <antibiodrugyn/>
  85. <rectmedistat>
  86. <drugnm/>
  87. <direc/>
  88. <orddept/>
  89. </rectmedistat>
  90. </rectmedistat>
  91. </rectmedistatinfo>
  92. <allghistinfo>
  93. <allghist>
  94. <allghistinclyn/>
  95. <allghist>
  96. <genrdd/>
  97. <flag/>
  98. <allergespec/>
  99. </allghist>
  100. </allghist>
  101. </allghistinfo>
  102. <vacnhistinfo>
  103. <vacnhist>
  104. <vacnhistinfoinclyn/>
  105. <dpttims/>
  106. <infparaltims/>
  107. <ahptstims/>
  108. <bhptstims/>
  109. <bhptsdrugnm/>
  110. <bcgyn/>
  111. <mmrtims/>
  112. <alivvacntims/>
  113. <deadvaccntims/>
  114. <brnmeningitistims/>
  115. <lungcoccustims/>
  116. <chickenpoxtims/>
  117. </vacnhist>
  118. </vacnhistinfo>
  119. <smokinfo>
  120. <smok>
  121. <smokinclyn/>
  122. <smok>
  123. <dosetoday/>
  124. <term/>
  125. </smok>
  126. </smok>
  127. </smokinfo>
  128. <drunkinfo>
  129. <drunk>
  130. <drunkinclyn/>
  131. <drunkinfo>
  132. <kind/>
  133. <dose/>
  134. <tims/>
  135. <term/>
  136. </drunkinfo>
  137. </drunk>
  138. </drunkinfo>
  139. <gustofoodinfo>
  140. <gustofood>
  141. <gustofoodinclyn/>
  142. <gustofood>
  143. <kind/>
  144. <dose/>
  145. <tims/>
  146. <term/>
  147. </gustofood>
  148. </gustofood>
  149. </gustofoodinfo>
  150. <tnsseffcinfo>
  151. <tnsseffc>
  152. <tnsseffcinclyn/>
  153. <tnsseffc>
  154. <tnsyn/>
  155. <tnsdetl/>
  156. </tnsseffc>
  157. </tnsseffc>
  158. </tnsseffcinfo>
  159. </histinfo>
  160. </main>
  161. <init/>
  162. </root>
  163. </instance>
  164. </model>
  165. <script type="javascript">
  166. <![CDATA[
  167. function fInitEventHistInfo() {
  168. if(model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn") == "1") {
  169. chk_pasthistyn.dispatch("xforms-value-changed");
  170. }
  171. if(model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn") == "1") {
  172. chk_famyhistyn.dispatch("xforms-value-changed");
  173. }
  174. if(model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn") == "1") {
  175. chk_inhistyn.dispatch("xforms-value-changed");
  176. }
  177. if(model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn") == "1") {
  178. chk_ophistinclyn.dispatch("xforms-value-changed");
  179. }
  180. if(model.getValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn") == "1") {
  181. chk_rectmedistatinclyn.dispatch("xforms-value-changed");
  182. }
  183. if(model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn") == "1") {
  184. rdo_allgyn.dispatch("xforms-value-changed");
  185. }
  186. rdo_smokinfo.dispatch("xforms-value-changed");
  187. rdo_drunkinfo.dispatch("xforms-value-changed");
  188. rdo_gustofoodyn.dispatch("xforms-value-changed");
  189. rdo_tnsseffcyn.dispatch("xforms-value-changed");
  190. /*
  191. if(model.getValue("/root/main/histinfo/smokinfo/smok/smokinclyn") == "1") {
  192. chk_smokinfoinclyn.dispatch("xforms-value-changed");
  193. }
  194. if(model.getValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn") == "1") {
  195. chk_drunkinfoinclyn.dispatch("xforms-value-changed");
  196. }
  197. if(model.getValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn") == "1") {
  198. chk_gustofoodinclyn.dispatch("xforms-value-changed");
  199. }
  200. if(model.getValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn") == "1") {
  201. chk_tnsseffcinclyn.dispatch("xforms-value-changed");
  202. }
  203. */
  204. }
  205. function fSetStatus() {
  206. var rtn = "";
  207. if(status == "select") {
  208. rtn = "6";
  209. } else {
  210. rtn = messageBox("데이터를 ", "Q001");
  211. }
  212. return rtn;
  213. }
  214. function isCheckGridDataYN(grdData) {
  215. var isEmptyYN = "Y";
  216. if(grdData.rows == 2) {
  217. for(var i = 1; i < grdData.cols; i++) {
  218. if(grdData.valueMatrix(1, i) != "") {
  219. isEmptyYN = "N";
  220. break;
  221. } else {
  222. isEmptyYN = "Y";
  223. break;
  224. }
  225. }
  226. } else if(grdData.rows < 2) {
  227. isEmptyYN = "Y";
  228. } else {
  229. isEmptyYN = "N";
  230. }
  231. if(isEmptyYN == "Y") {
  232. status = "select";
  233. }
  234. return isEmptyYN;
  235. }
  236. ]]>
  237. </script>
  238. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  239. </xhtml:head>
  240. <xhtml:body pagewidth="1194" pageheight="673" guideline="2,282;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  241. <button id="btn_smokinfodel" class="btn2_letter3" visibility="hidden" style="left:1134px; top:5px; width:53px; height:19px; ">
  242. <caption>행삭제</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. grd_smokinfo.deleteRow(grd_smokinfo.row);
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="btn_drunkinfoadd" class="btn2_letter3" visibility="hidden" style="left:1078px; top:115px; width:53px; height:19px; ">
  250. <caption>행추가</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. grd_drunkinfo.addRow();
  254. ]]>
  255. </script>
  256. </button>
  257. <line id="line20" class="line_1" visibility="hidden" style="x1:796px; y1:135px; x2:1187px; y2:135px; "/>
  258. <select id="chk_drunkinfoinclyn" ref="/root/main/histinfo/drunkinfo/drunk/drunkinclyn" visibility="hidden" overflow="visible" appearance="full" style="left:952px; top:117px; width:70px; height:15px; border-style:none; ">
  259. <choices>
  260. <item>
  261. <label>해당없음</label>
  262. <value>1</value>
  263. </item>
  264. </choices>
  265. <script type="javascript" ev:event="xforms-value-changed">
  266. <![CDATA[
  267. if(model.getValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn") == "1") {
  268. var rtn = "";
  269. rtn = fSetStatus();
  270. if(rtn =="6") {
  271. btn_drunkinfoadd.disabled = true;
  272. btn_drunkinfodel.disabled = true;
  273. model.removeNodeset("/root/main/histinfo/drunkinfo/drunk/drunk");
  274. grd_drunkinfo.rebuild();
  275. } else {
  276. model.resetInstanceNode("/root/main/histinfo/drunkinfo/drunk/drunkinclyn");
  277. chk_drunkinfoinclyn.refresh();
  278. return;
  279. }
  280. } else {
  281. btn_drunkinfoadd.disabled = false;
  282. btn_drunkinfodel.disabled = false;
  283. }
  284. ]]>
  285. </script>
  286. <script type="javascript" ev:event="xforms-select">
  287. <![CDATA[
  288. status = "click";
  289. ]]>
  290. </script>
  291. </select>
  292. <line id="line21" class="line_1" visibility="hidden" style="x1:796px; y1:246px; x2:1187px; y2:246px; "/>
  293. <caption id="caption30" class="tit_2" visibility="hidden" style="left:801px; top:120px; width:104px; height:13px; ">음주정보</caption>
  294. <button id="btn_gustofoodinfoadd" class="btn2_letter3" visibility="hidden" style="left:1078px; top:226px; width:53px; height:19px; ">
  295. <caption>행추가</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. grd_gustofood.addRow();
  299. ]]>
  300. </script>
  301. </button>
  302. <caption id="caption31" class="tit_2" visibility="hidden" style="left:801px; top:231px; width:104px; height:13px; ">기호식품</caption>
  303. <line id="line34" class="line_1" visibility="hidden" style="x1:796px; y1:25px; x2:1187px; y2:25px; "/>
  304. <datagrid id="grd_smokinfo" nodeset="/root/main/histinfo/smokinfo/smok/smok" visibility="hidden" scroll="auto" caption="양(갑/일)^기간(년)" colsep="^" colwidth="75, 299" mergecellsfixedrows="bycolrec" rowsep="|" style="left:796px; top:30px; width:391px; height:80px; ">
  305. <col ref="dosetoday" type="combo">
  306. <choices>
  307. <itemset nodeset="/root/init/mlist/M0091">
  308. <label ref="cdnm"/>
  309. <value ref="cdid"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col ref="term" type="input"/>
  314. <script type="javascript" ev:event="onclick">
  315. <![CDATA[
  316. if(grd_smokinfo.colType(grd_smokinfo.col) == "input") {
  317. grd_smokinfo.editCell();
  318. }
  319. ]]>
  320. </script>
  321. <script type="javascript" ev:event="onkeydown">
  322. <![CDATA[
  323. if(event.keyCode == 9) {
  324. grd_smokinfo.editCell();
  325. }
  326. ]]>
  327. </script>
  328. </datagrid>
  329. <select id="chk_gustofoodinclyn" ref="/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn" visibility="hidden" overflow="visible" appearance="full" style="left:952px; top:228px; width:70px; height:15px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>해당없음</label>
  333. <value>1</value>
  334. </item>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. if(model.getValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn") == "1") {
  339. var rtn = "";
  340. rtn = fSetStatus();
  341. if(rtn == "6") {
  342. btn_gustofoodinfoadd.disabled = true;
  343. btn_gustofoodinfodel.disabled = true;
  344. model.removeNodeset("/root/main/histinfo/gustofoodinfo/gustofood/gustofood");
  345. grd_gustofood.rebuild();
  346. } else {
  347. model.resetInstanceNode("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn");
  348. chk_gustofoodinclyn.refresh();
  349. return;
  350. }
  351. } else {
  352. btn_gustofoodinfoadd.disabled = false;
  353. btn_gustofoodinfodel.disabled = false;
  354. }
  355. ]]>
  356. </script>
  357. <script type="javascript" ev:event="xforms-select">
  358. <![CDATA[
  359. status = "click";
  360. ]]>
  361. </script>
  362. </select>
  363. <button id="btn_smokinfoadd" class="btn2_letter3" visibility="hidden" style="left:1078px; top:5px; width:53px; height:19px; ">
  364. <caption>행추가</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. grd_smokinfo.addRow();
  368. ]]>
  369. </script>
  370. </button>
  371. <select id="chk_smokinfoinclyn" ref="/root/main/histinfo/smokinfo/smok/smokinclyn" visibility="hidden" overflow="visible" appearance="full" style="left:952px; top:7px; width:70px; height:15px; border-style:none; ">
  372. <choices>
  373. <item>
  374. <label>해당없음</label>
  375. <value>1</value>
  376. </item>
  377. </choices>
  378. <script type="javascript" ev:event="xforms-value-changed">
  379. <![CDATA[
  380. if(model.getValue("/root/main/histinfo/smokinfo/smok/smokinclyn") == "1") {
  381. var rtn = "";
  382. rtn = fSetStatus();
  383. if(rtn == "6") {
  384. btn_smokinfoadd.disabled = true;
  385. btn_smokinfodel.disabled = true;
  386. model.removeNodeset("/root/main/histinfo/smokinfo/smok/smok");
  387. grd_smokinfo.rebuild();
  388. } else {
  389. model.resetInstanceNode("/root/main/histinfo/smokinfo/smok/smokinclyn");
  390. chk_smokinfoinclyn.refresh();
  391. return;
  392. }
  393. } else {
  394. btn_smokinfoadd.disabled = false;
  395. btn_smokinfodel.disabled = false;
  396. }
  397. ]]>
  398. </script>
  399. <script type="javascript" ev:event="xforms-select">
  400. <![CDATA[
  401. status = "click";
  402. ]]>
  403. </script>
  404. </select>
  405. <datagrid id="grd_gustofood" nodeset="/root/main/histinfo/gustofoodinfo/gustofood/gustofood" visibility="hidden" scroll="auto" caption="종류^양(잔)^횟수(일)^기간(년)" colsep="^" colwidth="74, 75, 74, 151" mergecellsfixedrows="bycolrec" rowsep="|" style="left:796px; top:251px; width:391px; height:81px; ">
  406. <col ref="kind" type="combo" style="left:0px; top:20px; width:100px; height:20px; ">
  407. <choices>
  408. <itemset nodeset="/root/init/mlist/M0093">
  409. <label ref="cdnm"/>
  410. <value ref="cdid"/>
  411. </itemset>
  412. </choices>
  413. </col>
  414. <col ref="dose" type="input" style="left:100px; top:20px; width:187px; height:20px; "/>
  415. <col ref="tims" type="input"/>
  416. <col ref="term" type="input"/>
  417. <script type="javascript" ev:event="onclick">
  418. <![CDATA[
  419. if(grd_gustofood.colType(grd_gustofood.col) == "input") {
  420. grd_gustofood.editCell();
  421. }
  422. ]]>
  423. </script>
  424. <script type="javascript" ev:event="onkeydown">
  425. <![CDATA[
  426. if(event.keyCode == 9) {
  427. grd_gustofood.editCell();
  428. }
  429. ]]>
  430. </script>
  431. </datagrid>
  432. <caption id="caption36" class="tit_2" visibility="hidden" style="left:801px; top:342px; width:104px; height:13px; ">수혈부작용</caption>
  433. <line id="line29" class="line_1" visibility="hidden" style="x1:796px; y1:357px; x2:1187px; y2:357px; "/>
  434. <button id="btn_drunkinfodel" class="btn2_letter3" visibility="hidden" style="left:1134px; top:115px; width:53px; height:19px; ">
  435. <caption>행삭제</caption>
  436. <script type="javascript" ev:event="DOMActivate">
  437. <![CDATA[
  438. grd_drunkinfo.deleteRow(grd_drunkinfo.row);
  439. ]]>
  440. </script>
  441. </button>
  442. <caption id="caption39" class="tit_2" visibility="hidden" style="left:801px; top:10px; width:104px; height:13px; ">흡연정보</caption>
  443. <button id="btn_gustofoodinfodel" class="btn2_letter3" visibility="hidden" style="left:1134px; top:226px; width:53px; height:19px; ">
  444. <caption>행삭제</caption>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. grd_gustofood.deleteRow(grd_gustofood.row);
  448. ]]>
  449. </script>
  450. </button>
  451. <datagrid id="grd_drunkinfo" nodeset="/root/main/histinfo/drunkinfo/drunk/drunkinfo" visibility="hidden" scroll="auto" caption="종류^양(병)^횟수(월)^기간(년)" colsep="^" colwidth="75, 75, 75, 149" mergecellsfixedrows="bycolrec" rowsep="|" style="left:796px; top:140px; width:391px; height:81px; ">
  452. <col ref="kind" type="combo">
  453. <choices>
  454. <itemset nodeset="/root/init/mlist/M0092">
  455. <label ref="cdnm"/>
  456. <value ref="cdid"/>
  457. </itemset>
  458. </choices>
  459. </col>
  460. <col ref="dose" type="input" style="left:100px; top:20px; width:187px; height:20px; "/>
  461. <col ref="tims" type="input"/>
  462. <col ref="term" type="input"/>
  463. <script type="javascript" ev:event="onclick">
  464. <![CDATA[
  465. if(grd_drunkinfo.colType(grd_drunkinfo.col) == "input") {
  466. grd_drunkinfo.editCell();
  467. }
  468. ]]>
  469. </script>
  470. <script type="javascript" ev:event="onkeydown">
  471. <![CDATA[
  472. if(event.keyCode == 9) {
  473. grd_drunkinfo.editCell();
  474. }
  475. ]]>
  476. </script>
  477. </datagrid>
  478. <select id="chk_tnsseffcinclyn" ref="/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn" visibility="hidden" overflow="visible" appearance="full" style="left:952px; top:339px; width:70px; height:15px; border-style:none; ">
  479. <choices>
  480. <item>
  481. <label>해당없음</label>
  482. <value>1</value>
  483. </item>
  484. </choices>
  485. <script type="javascript" ev:event="xforms-value-changed">
  486. <![CDATA[
  487. if(model.getValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn") == "1") {
  488. var rtn = "";
  489. rtn = fSetStatus();
  490. if(rtn == "6") {
  491. rdo_tnsseffcyn.disabled = true;
  492. ipt_tnsseffcdetl.disabled = true;
  493. model.resetInstanceNode("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn");
  494. model.resetInstanceNode("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsdetl");
  495. rdo_tnsseffcyn.refresh();
  496. ipt_tnsseffcdetl.refresh();
  497. } else {
  498. model.resetInstanceNode("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn");
  499. chk_tnsseffcinclyn.refresh();
  500. return;
  501. }
  502. } else {
  503. rdo_tnsseffcyn.disabled = false;
  504. ipt_tnsseffcdetl.disabled = false;
  505. rdo_tnsseffcyn.refresh();
  506. ipt_tnsseffcdetl.refresh();
  507. }
  508. ]]>
  509. </script>
  510. <script type="javascript" ev:event="xforms-select">
  511. <![CDATA[
  512. status = "click";
  513. ]]>
  514. </script>
  515. </select>
  516. <select1 id="rdo_tnsseffcyn" ref="/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn" visibility="hidden" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:879px; top:365px; width:100px; height:13px; border-style:none; ">
  517. <choices>
  518. <item>
  519. <label>무</label>
  520. <value>1</value>
  521. </item>
  522. <item>
  523. <label>유</label>
  524. <value>2</value>
  525. </item>
  526. </choices>
  527. <script type="javascript" ev:event="xforms-value-changed">
  528. <![CDATA[
  529. if(model.getValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn") == "2") {
  530. ipt_tnsseffcdetl.disabled = false;
  531. } else {
  532. ipt_tnsseffcdetl.disabled = true;
  533. model.resetInstanceNode("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsdetl");
  534. ipt_tnsseffcdetl.refresh();
  535. }
  536. ]]>
  537. </script>
  538. </select1>
  539. <input id="ipt_tnsseffcdetl" ref="/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffc/tnsdetl" class="input_default" visibility="hidden" style="left:981px; top:362px; width:206px; height:19px; "/>
  540. <caption id="caption98" class="cell_1" visibility="hidden" style="left:796px; top:362px; width:80px; height:21px; vertical-align:middle; ">수혈부작용</caption>
  541. <line id="line95" class="line_3" visibility="hidden" style="x1:796px; y1:382px; x2:1187px; y2:382px; "/>
  542. <button id="btn_pasthistadd" class="btn2_letter3" navindex="57" style="left:286px; top:5px; width:53px; height:19px; ">
  543. <caption>행추가</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. grd_pasthist.addRow();
  547. ]]>
  548. </script>
  549. </button>
  550. <select id="chk_ophistinclyn" ref="/root/main/histinfo/ophistinfo/ophist/ophistinclyn" navindex="65" overflow="visible" appearance="full" style="left:160px; top:310px; width:70px; height:15px; border-style:none; ">
  551. <choices>
  552. <item>
  553. <label>해당없음</label>
  554. <value>1</value>
  555. </item>
  556. </choices>
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. if(model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn") == "1") {
  560. var isEmptyYN = "Y";
  561. isEmptyYN = isCheckGridDataYN(grd_famyhist);
  562. var rtn = fSetStatus();
  563. if(rtn == "6") {
  564. model.removeNodeset("/root/main/histinfo/ophistinfo/ophist/ophist");
  565. grd_ophist.rebuild();
  566. btn_ophistadd.disabled = true;
  567. btn_ophistdel.disabled = true;
  568. btn_ophistpop.disabled = true;
  569. } else if(rtn == "7") {
  570. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  571. chk_ophistinclyn.refresh();
  572. }
  573. } else {
  574. btn_ophistadd.disabled = false;
  575. btn_ophistdel.disabled = false;
  576. btn_ophistpop.disabled = false;
  577. grd_ophist.addRow();
  578. }
  579. ]]>
  580. </script>
  581. </select>
  582. <datagrid id="grd_allghist" nodeset="/root/main/histinfo/allghistinfo/allghist/allghist" scroll="auto" caption="발생일자^구분^Allergy 내역" colsep="^" colwidth="85, 70, 216" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:548px; width:390px; height:71px; ">
  583. <col ref="genrdd" type="inputdate"/>
  584. <col class="gridcombo" ref="flag" type="combo">
  585. <choices>
  586. <itemset nodeset="/root/init/mlist/M0090">
  587. <label ref="cdnm"/>
  588. <value ref="cdid"/>
  589. </itemset>
  590. </choices>
  591. </col>
  592. <col ref="allergespec" type="input"/>
  593. <script type="javascript" ev:event="onclick">
  594. <![CDATA[
  595. if(grd_allghist.colType(grd_allghist.col) == "input") {
  596. grd_allghist.editCell();
  597. }
  598. ]]>
  599. </script>
  600. <script type="javascript" ev:event="onkeydown">
  601. <![CDATA[
  602. if(event.keyCode == 9) {
  603. grd_allghist.editCell();
  604. }
  605. ]]>
  606. </script>
  607. </datagrid>
  608. <caption id="caption1" class="tit_2" style="left:9px; top:416px; width:104px; height:13px; ">최근투약상태</caption>
  609. <button id="btn_rectmedistatdel" class="btn2_letter3" navindex="70" style="left:342px; top:411px; width:53px; height:19px; ">
  610. <caption>행삭제</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. grd_rectmedistat.deleteRow(grd_rectmedistat.row);
  614. ]]>
  615. </script>
  616. </button>
  617. <button id="btn_inhistdel" class="btn2_letter3" navindex="64" style="left:342px; top:207px; width:53px; height:19px; ">
  618. <caption>행삭제</caption>
  619. <script type="javascript" ev:event="DOMActivate">
  620. <![CDATA[
  621. grd_inhist.deleteRow(grd_inhist.row);
  622. ]]>
  623. </script>
  624. </button>
  625. <datagrid id="grd_inhist" nodeset="/root/main/histinfo/inhistinfo/inhist/inhist" scroll="auto" caption="입원일자^퇴원일자^병명^진료기관^inhistpk" colsep="^" colwidth="85, 85, 133, 67, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:232px; width:390px; height:71px; ">
  626. <col ref="indd" type="inputdate"/>
  627. <col ref="dschdd" type="inputdate"/>
  628. <col ref="illnm" type="input"/>
  629. <col ref="orddept" type="input"/>
  630. <col ref="inhistpk" visibility="hidden"/>
  631. <script type="javascript" ev:event="onclick">
  632. <![CDATA[
  633. if(grd_inhist.colType(grd_inhist.col) == "input") {
  634. grd_inhist.editCell();
  635. }
  636. ]]>
  637. </script>
  638. <script type="javascript" ev:event="onkeydown">
  639. <![CDATA[
  640. if(event.keyCode == 9) {
  641. grd_inhist.editCell();
  642. }
  643. ]]>
  644. </script>
  645. </datagrid>
  646. <select id="chk_pasthistyn" ref="/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn" navindex="56" overflow="visible" appearance="full" style="left:160px; top:7px; width:70px; height:15px; border-style:none; ">
  647. <choices>
  648. <item>
  649. <label>해당없음</label>
  650. <value>1</value>
  651. </item>
  652. </choices>
  653. <script type="javascript" ev:event="xforms-value-changed">
  654. <![CDATA[
  655. //과거병력 해당없음이 체크가 되어있느냐 없느냐 .
  656. if(model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn") == "1") {
  657. var isEmptyYN = "Y";
  658. isEmptyYN = isCheckGridDataYN(grd_pasthist);
  659. var rtn = fSetStatus();
  660. if(rtn == "6") {
  661. model.removeNodeset("/root/main/histinfo/pasthistinfo/pasthist/pasthist");
  662. grd_pasthist.rebuild();
  663. btn_pasthistadd.disabled = true;
  664. btn_pasthistdel.disabled = true;
  665. } else if(rtn == "7") {
  666. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  667. chk_pasthistyn.refresh();
  668. }
  669. } else {
  670. btn_pasthistadd.disabled = false;
  671. btn_pasthistdel.disabled = false;
  672. grd_pasthist.addRow();
  673. }
  674. ]]>
  675. </script>
  676. <script type="javascript" ev:event="xforms-select">
  677. <![CDATA[
  678. status = "click";
  679. ]]>
  680. </script>
  681. </select>
  682. <caption id="caption2" class="tit_2" style="left:10px; top:10px; width:104px; height:13px; ">과거병력</caption>
  683. <line id="line1" class="line_1" style="x1:5px; y1:126px; x2:395px; y2:126px; "/>
  684. <select id="chk_famyhistyn" ref="/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn" navindex="59" overflow="visible" appearance="full" style="left:160px; top:108px; width:70px; height:15px; border-style:none; ">
  685. <choices>
  686. <item>
  687. <label>해당없음</label>
  688. <value>1</value>
  689. </item>
  690. </choices>
  691. <script type="javascript" ev:event="xforms-value-changed">
  692. <![CDATA[
  693. if(model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn") == "1") {
  694. var isEmptyYN = "Y";
  695. isEmptyYN = isCheckGridDataYN(grd_famyhist);
  696. var rtn = fSetStatus();
  697. if(rtn == "6") {
  698. model.removeNodeset("/root/main/histinfo/famyhistinfo/famyhist/famyhist");
  699. grd_famyhist.rebuild();
  700. btn_famyhistadd.disabled = true;
  701. btn_famyhistdel.disabled = true;
  702. } else if(rtn == "7") {
  703. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  704. chk_famyhistyn.refresh();
  705. }
  706. } else {
  707. btn_famyhistadd.disabled = false;
  708. btn_famyhistdel.disabled = false;
  709. grd_famyhist.addRow();
  710. }
  711. ]]>
  712. </script>
  713. <script type="javascript" ev:event="xforms-select">
  714. <![CDATA[
  715. status = "click";
  716. ]]>
  717. </script>
  718. </select>
  719. <caption id="caption3" class="tit_2" style="left:9px; top:111px; width:74px; height:13px; ">가족병력</caption>
  720. <button id="btn_famyhistadd" class="btn2_letter3" navindex="60" style="left:286px; top:106px; width:53px; height:19px; ">
  721. <caption>행추가</caption>
  722. <script type="javascript" ev:event="DOMActivate">
  723. <![CDATA[
  724. grd_famyhist.addRow();
  725. ]]>
  726. </script>
  727. </button>
  728. <datagrid id="grd_pasthist" nodeset="/root/main/histinfo/pasthistinfo/pasthist/pasthist" scroll="auto" caption="발생일자^병력내역^비고" colsep="^" colwidth="85, 169, 116" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:390px; height:71px; ">
  729. <col ref="genrdd" type="inputdate"/>
  730. <col class="gridcombo" ref="histspec" type="combo">
  731. <choices>
  732. <itemset nodeset="/root/init/mlist/M0532">
  733. <label ref="cdnm"/>
  734. <value ref="cdid"/>
  735. </itemset>
  736. </choices>
  737. </col>
  738. <col ref="remfact" type="input"/>
  739. <script type="javascript" ev:event="onclick">
  740. <![CDATA[
  741. if(grd_pasthist.colType(grd_pasthist.col) == "input") {
  742. grd_pasthist.editCell();
  743. }
  744. ]]>
  745. </script>
  746. <script type="javascript" ev:event="onkeydown">
  747. <![CDATA[
  748. if(event.keyCode == 9) {
  749. grd_pasthist.editCell();
  750. }
  751. ]]>
  752. </script>
  753. </datagrid>
  754. <line id="line2" class="line_1" style="x1:5px; y1:227px; x2:395px; y2:227px; "/>
  755. <datagrid id="grd_famyhist" nodeset="/root/main/histinfo/famyhistinfo/famyhist/famyhist" scroll="auto" caption="관계^생존^병력내역^비고" colsep="^" colwidth="60, 40, 169, 102" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:131px; width:390px; height:71px; ">
  756. <col class="gridcombo" ref="famyrel" type="combo">
  757. <choices>
  758. <itemset nodeset="/root/init/mlist/M0072">
  759. <label ref="cdnm"/>
  760. <value ref="cdid"/>
  761. </itemset>
  762. </choices>
  763. </col>
  764. <col class="gridcombo" ref="existyn" type="combo">
  765. <choices>
  766. <itemset nodeset="/root/init/mlist/M0088">
  767. <label ref="cdnm"/>
  768. <value ref="cdid"/>
  769. </itemset>
  770. </choices>
  771. </col>
  772. <col class="gridcombo" ref="histspec" type="combo">
  773. <choices>
  774. <itemset nodeset="/root/init/mlist/M0368">
  775. <label ref="cdnm"/>
  776. <value ref="cdid"/>
  777. </itemset>
  778. </choices>
  779. </col>
  780. <col ref="remfact" type="input"/>
  781. <script type="javascript" ev:event="onclick">
  782. <![CDATA[
  783. grd_famyhist.editCell();
  784. ]]>
  785. </script>
  786. <script type="javascript" ev:event="onkeydown">
  787. <![CDATA[
  788. if(event.keyCode == 9) {
  789. grd_famyhist.editCell();
  790. }
  791. ]]>
  792. </script>
  793. </datagrid>
  794. <line id="line3" class="line_1" style="x1:5px; y1:328px; x2:395px; y2:328px; "/>
  795. <caption id="caption4" class="tit_2" style="left:10px; top:313px; width:104px; height:13px; ">수술이력</caption>
  796. <line id="line4" class="line_1" style="x1:5px; y1:431px; x2:395px; y2:431px; "/>
  797. <button id="btn_allghistdel" class="btn2_letter3" navindex="73" style="left:342px; top:523px; width:53px; height:19px; ">
  798. <caption>행삭제</caption>
  799. <script type="javascript" ev:event="DOMActivate">
  800. <![CDATA[
  801. grd_allghist.deleteRow(grd_allghist.row);
  802. ]]>
  803. </script>
  804. </button>
  805. <button id="btn_rectmedistatadd" class="btn2_letter3" navindex="69" style="left:286px; top:411px; width:53px; height:19px; ">
  806. <caption>행추가</caption>
  807. <script type="javascript" ev:event="DOMActivate">
  808. <![CDATA[
  809. grd_rectmedistat.addRow();
  810. ]]>
  811. </script>
  812. </button>
  813. <button id="btn_inhistadd" class="btn2_letter3" navindex="63" style="left:286px; top:207px; width:53px; height:19px; ">
  814. <caption>행추가</caption>
  815. <script type="javascript" ev:event="DOMActivate">
  816. <![CDATA[
  817. grd_inhist.addRow();
  818. ]]>
  819. </script>
  820. </button>
  821. <line id="line5" class="line_1" style="x1:5px; y1:431px; x2:395px; y2:431px; "/>
  822. <button id="btn_ophistdel" class="btn2_letter3" navindex="67" style="left:342px; top:308px; width:53px; height:19px; ">
  823. <caption>행삭제</caption>
  824. <script type="javascript" ev:event="DOMActivate">
  825. <![CDATA[
  826. grd_ophist.deleteRow(grd_ophist.row);
  827. ]]>
  828. </script>
  829. </button>
  830. <line id="line6" class="line_1" style="x1:5px; y1:543px; x2:395px; y2:543px; "/>
  831. <button id="btn_pasthistdel" class="btn2_letter3" navindex="58" style="left:342px; top:5px; width:53px; height:19px; ">
  832. <caption>행삭제</caption>
  833. <script type="javascript" ev:event="DOMActivate">
  834. <![CDATA[
  835. grd_pasthist.deleteRow(grd_pasthist.row);
  836. ]]>
  837. </script>
  838. </button>
  839. <line id="line7" class="line_1" style="x1:5px; y1:543px; x2:395px; y2:543px; "/>
  840. <caption id="caption6" class="tit_2" style="left:9px; top:212px; width:104px; height:13px; ">입원이력</caption>
  841. <line id="line8" class="line_1" style="x1:5px; y1:25px; x2:396px; y2:25px; "/>
  842. <datagrid id="grd_rectmedistat" nodeset="/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistat" scroll="auto" caption="약명^복용법(용도/용량/용법)^진료기관" colsep="^" colwidth="70, 200, 101" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:436px; width:390px; height:71px; ">
  843. <col ref="drugnm" type="input"/>
  844. <col ref="direc" type="input"/>
  845. <col ref="orddept" type="input"/>
  846. <script type="javascript" ev:event="onclick">
  847. <![CDATA[
  848. grd_rectmedistat.editCell();
  849. ]]>
  850. </script>
  851. <script type="javascript" ev:event="onkeydown">
  852. <![CDATA[
  853. if(event.keyCode == 9) {
  854. grd_rectmedistat.editCell();
  855. }
  856. ]]>
  857. </script>
  858. </datagrid>
  859. <select id="chk_inhistyn" ref="/root/main/histinfo/inhistinfo/inhist/inhistinclyn" navindex="62" overflow="visible" appearance="full" style="left:160px; top:209px; width:70px; height:15px; border-style:none; ">
  860. <choices>
  861. <item>
  862. <label>해당없음</label>
  863. <value>1</value>
  864. </item>
  865. </choices>
  866. <script type="javascript" ev:event="xforms-value-changed">
  867. <![CDATA[
  868. if(model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn") == "1") {
  869. var isEmptyYN = "Y";
  870. isEmptyYN = isCheckGridDataYN(grd_inhist);
  871. var rtn = fSetStatus();
  872. if(rtn == "6") {
  873. model.removeNodeset("/root/main/histinfo/inhistinfo/inhist/inhist");
  874. grd_inhist.rebuild();
  875. btn_inhistadd.disabled = true;
  876. btn_inhistdel.disabled = true;
  877. btn_inhistpop.disabled = true;
  878. } else if(rtn == "7") {
  879. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  880. chk_inhistyn.refresh();
  881. }
  882. } else {
  883. btn_inhistadd.disabled = false;
  884. btn_inhistdel.disabled = false;
  885. btn_inhistpop.disabled = false;
  886. grd_inhist.addRow();
  887. }
  888. ]]>
  889. </script>
  890. <script type="javascript" ev:event="xforms-select">
  891. <![CDATA[
  892. status = "click";
  893. ]]>
  894. </script>
  895. </select>
  896. <datagrid id="grd_ophist" nodeset="/root/main/histinfo/ophistinfo/ophist/ophist" scroll="auto" caption="수술일자^수술명^진료기관^ophistpk" colsep="^" colwidth="85, 185, 101, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:333px; width:390px; height:71px; ">
  897. <col ref="opdd" type="inputdate"/>
  898. <col ref="opnm" type="input"/>
  899. <col ref="orddept" type="input"/>
  900. <col ref="ophistpk" visibility="hidden"/>
  901. <script type="javascript" ev:event="onclick">
  902. <![CDATA[
  903. if(grd_ophist.colType(grd_ophist.col) == "input") {
  904. grd_ophist.editCell();
  905. }
  906. ]]>
  907. </script>
  908. <script type="javascript" ev:event="onkeydown">
  909. <![CDATA[
  910. if(event.keyCode == 9) {
  911. grd_ophist.editCell();
  912. }
  913. ]]>
  914. </script>
  915. </datagrid>
  916. <button id="btn_famyhistdel" class="btn2_letter3" navindex="61" style="left:342px; top:106px; width:53px; height:19px; ">
  917. <caption>행삭제</caption>
  918. <script type="javascript" ev:event="DOMActivate">
  919. <![CDATA[
  920. grd_famyhist.deleteRow(grd_famyhist.row);
  921. ]]>
  922. </script>
  923. </button>
  924. <select id="chk_rectmedistatinclyn" ref="/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn" navindex="68" visibility="hidden" overflow="visible" appearance="full" style="left:160px; top:413px; width:70px; height:15px; border-style:none; ">
  925. <choices>
  926. <item>
  927. <label>해당없음</label>
  928. <value>1</value>
  929. </item>
  930. </choices>
  931. <script type="javascript" ev:event="xforms-value-changed">
  932. <![CDATA[
  933. if(model.getValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn") == "1") {
  934. var isEmptyYN = "Y";
  935. isEmptyYN = isCheckGridDataYN(grd_rectmedistat);
  936. var rtn = fSetStatus();
  937. if(rtn == "6") {
  938. model.removeNodeset("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistat");
  939. grd_rectmedistat.rebuild();
  940. btn_rectmedistatadd.disabled = true;
  941. btn_rectmedistatdel.disabled = true;
  942. } else if(rtn == "7") {
  943. model.setValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  944. chk_rectmedistatinclyn.refresh();
  945. }
  946. } else {
  947. btn_rectmedistatadd.disabled = false;
  948. btn_rectmedistatdel.disabled = false;
  949. grd_rectmedistat.addRow();
  950. }
  951. ]]>
  952. </script>
  953. <script type="javascript" ev:event="xforms-select">
  954. <![CDATA[
  955. status = "click";
  956. ]]>
  957. </script>
  958. </select>
  959. <button id="btn_allghistadd" class="btn2_letter3" navindex="72" style="left:286px; top:523px; width:53px; height:19px; ">
  960. <caption>행추가</caption>
  961. <script type="javascript" ev:event="DOMActivate">
  962. <![CDATA[
  963. grd_allghist.addRow();
  964. ]]>
  965. </script>
  966. </button>
  967. <button id="btn_ophistadd" class="btn2_letter3" navindex="66" style="left:286px; top:308px; width:53px; height:19px; ">
  968. <caption>행추가</caption>
  969. <script type="javascript" ev:event="DOMActivate">
  970. <![CDATA[
  971. grd_ophist.addRow();
  972. ]]>
  973. </script>
  974. </button>
  975. <caption id="caption7" class="tit_2" style="left:10px; top:528px; width:69px; height:13px; ">Allergy</caption>
  976. <button id="btn_inhistpop" class="icon_search" style="left:265px; top:209px; width:16px; height:16px; ">
  977. <script type="javascript" ev:event="DOMActivate">
  978. <![CDATA[
  979. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  980. var indd = "";
  981. if(ioflag == "O") {
  982. indd = model.getValue("/root/temp/cond/list/orddd");
  983. } else {
  984. indd = model.getValue("/root/temp/cond/list/indd");
  985. }
  986. setParameter("histflag", "inhist");
  987. setParameter("pid", model.getValue("/root/temp/cond/list/pid"));
  988. setParameter("indd", indd);
  989. setParameter("instcd", model.getValue("/root/temp/cond/list/instcd"));
  990. open("SPMNW12800");
  991. ]]>
  992. </script>
  993. <caption/>
  994. </button>
  995. <button id="btn_ophistpop" class="icon_search" style="left:265px; top:310px; width:16px; height:16px; ">
  996. <script type="javascript" ev:event="DOMActivate">
  997. <![CDATA[
  998. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  999. var indd = "";
  1000. if(ioflag == "O") {
  1001. indd = model.getValue("/root/temp/cond/list/orddd");
  1002. } else {
  1003. indd = model.getValue("/root/temp/cond/list/indd");
  1004. }
  1005. setParameter("histflag", "ophist");
  1006. setParameter("pid", model.getValue("/root/temp/cond/list/pid"));
  1007. setParameter("indd", indd);
  1008. setParameter("instcd", model.getValue("/root/temp/cond/list/instcd"));
  1009. open("SPMNW12800");
  1010. ]]>
  1011. </script>
  1012. <caption/>
  1013. </button>
  1014. <button id="btn_allg" class="icon_search" style="left:265px; top:525px; width:16px; height:16px; ">
  1015. <script type="javascript" ev:event="DOMActivate">
  1016. <![CDATA[
  1017. open("SPMMD03300");
  1018. ]]>
  1019. </script>
  1020. <caption/>
  1021. </button>
  1022. <input id="ipt_drunkinfokind" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfokind" disabled="true" navindex="38" style="left:571px; top:55px; width:114px; height:19px; text-align:center; "/>
  1023. <select1 id="rdo_drunkinfo" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn" navindex="37" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:493px; top:58px; width:75px; height:13px; border-style:none; ">
  1024. <choices>
  1025. <item>
  1026. <label>무</label>
  1027. <value>1</value>
  1028. </item>
  1029. <item>
  1030. <label>유</label>
  1031. <value>2</value>
  1032. </item>
  1033. </choices>
  1034. <script type="javascript" ev:event="xforms-value-changed">
  1035. <![CDATA[
  1036. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn") == "2") {
  1037. ipt_drunkinfokind.disabled = false;
  1038. ipt_drunkinfoterm.disabled = false;
  1039. } else {
  1040. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfokind");
  1041. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoterm");
  1042. ipt_drunkinfokind.disabled = true;
  1043. ipt_drunkinfoterm.disabled = true;
  1044. ipt_drunkinfokind.refresh();
  1045. ipt_drunkinfoterm.refresh();
  1046. }
  1047. ]]>
  1048. </script>
  1049. </select1>
  1050. <line id="line31" class="line_2" style="x1:400px; y1:76px; x2:791px; y2:76px; "/>
  1051. <caption id="cap_smokinfo" class="cell_1" style="left:400px; top:30px; width:90px; height:23px; text-align:left; ">흡연정보</caption>
  1052. <input id="ipt_gustofood" ref="/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofooddetl" disabled="true" navindex="41" style="left:571px; top:79px; width:218px; height:19px; "/>
  1053. <caption id="cap_gustofoodyn" class="cell_1" style="left:400px; top:78px; width:90px; height:23px; ">기호식품</caption>
  1054. <line id="line32" class="line_2" style="x1:400px; y1:100px; x2:791px; y2:100px; "/>
  1055. <line id="line44" class="line_2" style="x1:400px; y1:52px; x2:791px; y2:52px; "/>
  1056. <line id="line33" class="line_1" style="x1:400px; y1:25px; x2:791px; y2:25px; "/>
  1057. <caption id="caption42" class="tit_2" style="left:405px; top:10px; width:104px; height:13px; ">기호정보</caption>
  1058. <select1 id="rdo_gustofoodyn" ref="/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn" navindex="40" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:493px; top:82px; width:75px; height:13px; border-style:none; ">
  1059. <choices>
  1060. <item>
  1061. <label>무</label>
  1062. <value>1</value>
  1063. </item>
  1064. <item>
  1065. <label>유</label>
  1066. <value>2</value>
  1067. </item>
  1068. </choices>
  1069. <script type="javascript" ev:event="xforms-value-changed">
  1070. <![CDATA[
  1071. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn") == "2") {
  1072. ipt_gustofood.disabled = false;
  1073. } else {
  1074. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofooddetl");
  1075. ipt_gustofood.disabled = true;
  1076. ipt_gustofood.refresh();
  1077. }
  1078. ]]>
  1079. </script>
  1080. </select1>
  1081. <line id="line36" class="line_3" style="x1:400px; y1:124px; x2:791px; y2:124px; "/>
  1082. <caption id="cap_tnsseffcyn" class="cell_1" style="left:400px; top:102px; width:90px; height:23px; ">수혈부작용</caption>
  1083. <input id="ipt_drunkinfoterm" ref="/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoterm" disabled="true" navindex="39" style="left:688px; top:55px; width:55px; height:19px; text-align:center; "/>
  1084. <caption id="cap_drunkinfoterm" style="left:742px; top:56px; width:57px; height:19px; text-align:center; ">기간(년)</caption>
  1085. <input id="ipt_tnsseffc" ref="/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl" disabled="true" navindex="43" style="left:571px; top:103px; width:218px; height:19px; "/>
  1086. <select1 id="radio1" ref="/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn" navindex="42" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:493px; top:106px; width:75px; height:13px; border-style:none; ">
  1087. <choices>
  1088. <item>
  1089. <label>무</label>
  1090. <value>1</value>
  1091. </item>
  1092. <item>
  1093. <label>유</label>
  1094. <value>2</value>
  1095. </item>
  1096. </choices>
  1097. <script type="javascript" ev:event="xforms-value-changed">
  1098. <![CDATA[
  1099. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn") == "2") {
  1100. ipt_tnsseffc.disabled = false;
  1101. } else {
  1102. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl");
  1103. ipt_tnsseffc.disabled = true;
  1104. ipt_tnsseffc.refresh();
  1105. }
  1106. ]]>
  1107. </script>
  1108. </select1>
  1109. <caption id="cap_drunkinfo" class="cell_1" style="left:400px; top:54px; width:90px; height:23px; ">음주정보</caption>
  1110. <select1 id="rdo_smokinfo" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn" navindex="33" appearance="full" cellspacing="10" cols="6" overflow="visible" style="left:494px; top:33px; width:270px; height:13px; border-style:none; ">
  1111. <choices>
  1112. <item>
  1113. <label>무</label>
  1114. <value>1</value>
  1115. </item>
  1116. <item>
  1117. <label>유</label>
  1118. <value>2</value>
  1119. </item>
  1120. <item>
  1121. <label>-</label>
  1122. <value>-</value>
  1123. </item>
  1124. <item>
  1125. <label>-</label>
  1126. <value>-</value>
  1127. </item>
  1128. <item>
  1129. <label>-</label>
  1130. <value>-</value>
  1131. </item>
  1132. <item>
  1133. <label>확인불능</label>
  1134. <value>3</value>
  1135. </item>
  1136. </choices>
  1137. <script type="javascript" ev:event="xforms-value-changed">
  1138. <![CDATA[
  1139. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2") {
  1140. ipt_smokinfocnt.disabled = false;
  1141. ipt_smokinfocnt.refresh();
  1142. } else {
  1143. ipt_smokinfocnt.disabled = true;
  1144. model.resetInstanceNode("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfocnt");
  1145. ipt_smokinfocnt.refresh();
  1146. }
  1147. ]]>
  1148. </script>
  1149. </select1>
  1150. <input id="ipt_smokinfocnt" ref="/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfocnt" disabled="true" navindex="41" style="left:571px; top:31px; width:110px; height:19px; "/>
  1151. <select1 id="rdo_allgyn" ref="/root/main/histinfo/allghistinfo/allghist/allghistinclyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:80px; top:527px; width:140px; height:13px; border-style:none; ">
  1152. <choices>
  1153. <item>
  1154. <label>무</label>
  1155. <value>1</value>
  1156. </item>
  1157. <item>
  1158. <label>유</label>
  1159. <value>2</value>
  1160. </item>
  1161. <item>
  1162. <label>잘모름</label>
  1163. <value>3</value>
  1164. </item>
  1165. </choices>
  1166. <script type="javascript" ev:event="xforms-value-changed">
  1167. <![CDATA[
  1168. if(model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn") == "1") {
  1169. var isEmptyYN = "Y";
  1170. isEmptyYN = isCheckGridDataYN(grd_allghist);
  1171. var rtn = fSetStatus();
  1172. if(rtn == "6") {
  1173. model.removeNodeset("/root/main/histinfo/allghistinfo/allghist/allghist");
  1174. grd_allghist.rebuild();
  1175. btn_allghistadd.disabled = true;
  1176. btn_allghistdel.disabled = true;
  1177. } else if(rtn == "7") {
  1178. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  1179. rdo_allgyn.refresh();
  1180. }
  1181. } else {
  1182. btn_allghistadd.disabled = false;
  1183. btn_allghistdel.disabled = false;
  1184. if(grd_allghist.rows == 1) {
  1185. grd_allghist.addRow();
  1186. }
  1187. }
  1188. ]]>
  1189. </script>
  1190. <script type="javascript" ev:event="xforms-select">
  1191. <![CDATA[
  1192. status = "click";
  1193. ]]>
  1194. </script>
  1195. </select1>
  1196. </xhtml:body>
  1197. </xhtml:html>