SPMMO19200_PRN처방사유입력.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>PRN처방 사유입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <result>
  10. <comduplprcplist>
  11. <status/>
  12. <resncd/>
  13. <prcpcd/>
  14. <prcpnm/>
  15. <prcpdays>1</prcpdays>
  16. <duplprcpcd/>
  17. <duplprcpnm/>
  18. <duplprcpdd/>
  19. <orddeptnm/>
  20. <orddrnm/>
  21. <rgstrnm/>
  22. <resncnt/>
  23. <prcpdd/>
  24. <prcpno/>
  25. <prcpterm>0</prcpterm>
  26. <prnterm/>
  27. </comduplprcplist>
  28. </result>
  29. <send>
  30. <cond1/>
  31. </send>
  32. <hardcd>
  33. <hardcd>
  34. <status/>
  35. <hardcd/>
  36. <hardcdnm/>
  37. <resncmt/>
  38. </hardcd>
  39. </hardcd>
  40. <init>
  41. <selcond1>1</selcond1>
  42. </init>
  43. <main>
  44. <prcp>
  45. <prcplist>
  46. <tempcol15/>
  47. <tempcol19/>
  48. </prcplist>
  49. </prcp>
  50. <resncd/>
  51. <detailA/>
  52. <detailB/>
  53. <detailC/>
  54. <detailD/>
  55. <detailE/>
  56. <detailF/>
  57. <detailG/>
  58. <detailH/>
  59. <detailI/>
  60. <detailJ/>
  61. <detailK/>
  62. <detailL/>
  63. <rmkA/>
  64. <rmkB/>
  65. <rmkC/>
  66. <rmkD/>
  67. <rmkE/>
  68. <rmkF/>
  69. <rmkG/>
  70. <rmkH/>
  71. <rmkI/>
  72. <rmkJ/>
  73. <rmkK/>
  74. <rmkL/>
  75. <rmkZ/>
  76. </main>
  77. </root>
  78. </instance>
  79. <script type="javascript" ev:event="xforms-model-construct-done">
  80. <![CDATA[
  81. var poploca = opener.javascript.getParameter("SPMMO19200_pop");
  82. var popprcpcd = opener.javascript.getParameter("SPMMO19200_prcpcd");
  83. model.setValue("/root/result/comduplprcplist/prcpcd",popprcpcd);
  84. document.title = document.title + "[" + model.getValue("/root/result/comduplprcplist/prcpcd") + " : " + opener.javascript.getParameter("SPMMO19200_prcpnm")+ "]";
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  89. <submission id="TRMMB16401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hardcd"/>
  90. <bind id="bind1" ref="/root/hardcd/hardcd/hardcdnm" readonly="../hardcd != 'D7'"/>
  91. </model>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  99. <script type="javascript" ev:event="xforms-ready">
  100. <![CDATA[
  101. model.setValue ( "/root/send/cond1", "172" );
  102. submit("TRMMB16401" );
  103. ]]>
  104. </script>
  105. <script type="javascript">
  106. <![CDATA[
  107. function isNumbers(str) {
  108. str += ''; // 문자열로 변환
  109. str = str.replace(/^\s*|\s*$/g, ''); // 좌우 공백 제거
  110. if (str == '' || isNaN(str)) return false;
  111. return true;
  112. }
  113. function initResnInfo() {
  114. model.setValue("/root/main/detailA", "");
  115. model.setValue("/root/main/detailB", "");
  116. model.setValue("/root/main/detailC", "");
  117. model.setValue("/root/main/detailD", "");
  118. model.setValue("/root/main/detailE", "");
  119. model.setValue("/root/main/detailF", "");
  120. model.setValue("/root/main/detailG", "");
  121. model.setValue("/root/main/detailH", "");
  122. model.setValue("/root/main/detailI", "");
  123. model.setValue("/root/main/detailJ", "");
  124. model.setValue("/root/main/detailK", "");
  125. model.setValue("/root/main/detailL", "");
  126. model.setValue("/root/main/rmkA", "");
  127. model.setValue("/root/main/rmkB", "");
  128. model.setValue("/root/main/rmkC", "");
  129. model.setValue("/root/main/rmkD", "");
  130. model.setValue("/root/main/rmkE", "");
  131. model.setValue("/root/main/rmkF", "");
  132. model.setValue("/root/main/rmkG", "");
  133. model.setValue("/root/main/rmkH", "");
  134. model.setValue("/root/main/rmkI", "");
  135. model.setValue("/root/main/rmkJ", "");
  136. model.setValue("/root/main/rmkK", "");
  137. model.setValue("/root/main/rmkL", "");
  138. model.setValue("/root/main/rmkZ", "");
  139. radioA.disabled = true;
  140. radioB.disabled = true;
  141. radioC.disabled = true;
  142. radioE.disabled = true;
  143. radioF.disabled = true;
  144. radioG.disabled = true;
  145. radioH.disabled = true;
  146. radioI.disabled = true;
  147. radioJ.disabled = true;
  148. radioK.disabled = true;
  149. radioL.disabled = true;
  150. inputA.disabled = true;
  151. inputB.disabled = true;
  152. inputC.disabled = true;
  153. inputE.disabled = true;
  154. inputF.disabled = true;
  155. inputG.disabled = true;
  156. inputH.disabled = true;
  157. inputI.disabled = true;
  158. inputJ.disabled = true;
  159. inputK.disabled = true;
  160. inputL.disabled = true;
  161. inputZ.disabled = true;
  162. }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body pagewidth="760" pageheight="440" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <button id="btn_save" class="btn4_letter2" style="left:620px; top:401px; width:56px; height:22px; ">
  168. <caption>확인</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var sInstCd = getUserInfo("dutplceinstcd");
  172. var sResnCd = model.getValue("/root/main/resncd"); // 사유코드
  173. var sResnNm = radioResnCd.label; // 사유명칭
  174. var sDetailCd = "" // 상세사유코드
  175. var sResnCmt = ""; // 상세사유
  176. var sPrnNum = model.getValue("/root/result/comduplprcplist/prcpdays"); // PRN 횟수
  177. var sPrcpTerm = model.getValue("/root/result/comduplprcplist/prcpterm"); // PRN 간격
  178. var sPrnTerm = ""; // PRN 간격 직접입력
  179. if(sPrcpTerm == "0" ) { // 선택
  180. sPrnTerm = "";
  181. } else if(sPrcpTerm == "99" ) { // 기타
  182. sPrnTerm = model.getValue("/root/result/comduplprcplist/prnterm");
  183. } else {
  184. sPrnTerm = comboprcpterm.label;
  185. }
  186. var daystf = isNumbers(sPrnNum);
  187. if (daystf == false){
  188. messageBox ( "처방횟수는 숫자로 입력해 주세요.", "E" );
  189. return;
  190. }
  191. if(sPrnNum < 1){
  192. messageBox ( "처방 횟수는 0 이상이어야 합니다.", "E" );
  193. return;
  194. }
  195. //if(sInstCd == "031") { // 칠곡도 간격을 선택 하도록 수정 2016.06.16 엄영만 요청서 20160615006
  196. if(sPrnNum > 1){
  197. if(sPrcpTerm == "0" ) {
  198. messageBox ( "처방 횟수가 2 이상면 PRN간격을 선택해야 합니다.", "E" );
  199. return;
  200. } else if(sPrcpTerm == "99" && sPrnTerm =="" ) {
  201. messageBox ( "PRN 간격을 '기타'로 선택 하면, 내용을 직접 입력 하셔야 합니다.", "E" );
  202. return;
  203. }
  204. }
  205. //}
  206. if(isNull(sResnCd)) {
  207. messageBox ( "PRN 사유를 선택 하세요.", "E" );
  208. return;
  209. }
  210. if(sResnCd == "A") {
  211. sDetailCd = model.getValue("/root/main/detailA");
  212. if(sDetailCd == "99") {
  213. sResnCmt = model.getValue("/root/main/rmkA");
  214. } else {
  215. sResnCmt = radioA.label;
  216. }
  217. } else if(sResnCd == "B") {
  218. sDetailCd = model.getValue("/root/main/detailB");
  219. if(sDetailCd == "99") {
  220. sResnCmt = model.getValue("/root/main/rmkB");
  221. } else {
  222. sResnCmt = radioB.label;
  223. }
  224. } else if(sResnCd == "C") {
  225. sDetailCd = model.getValue("/root/main/detailC");
  226. if(sDetailCd == "99") {
  227. sResnCmt = model.getValue("/root/main/rmkC");
  228. } else {
  229. sResnCmt = radioC.label;
  230. }
  231. } else if(sResnCd == "E") {
  232. sDetailCd = model.getValue("/root/main/detailE");
  233. if(sDetailCd == "99") {
  234. sResnCmt = model.getValue("/root/main/rmkE");
  235. } else {
  236. sResnCmt = radioE.label;
  237. }
  238. } else if(sResnCd == "F") {
  239. sDetailCd = model.getValue("/root/main/detailF");
  240. if(sDetailCd == "99") {
  241. sResnCmt = model.getValue("/root/main/rmkF");
  242. } else {
  243. sResnCmt = radioF.label;
  244. }
  245. } else if(sResnCd == "G") {
  246. sDetailCd = model.getValue("/root/main/detailG");
  247. if(sDetailCd == "99") {
  248. sResnCmt = model.getValue("/root/main/rmkG");
  249. } else {
  250. sResnCmt = radioG.label;
  251. }
  252. } else if(sResnCd == "H") {
  253. sDetailCd = model.getValue("/root/main/detailH");
  254. if(sDetailCd == "99") {
  255. sResnCmt = model.getValue("/root/main/rmkH");
  256. } else {
  257. sResnCmt = radioH.label;
  258. }
  259. } else if(sResnCd == "I") {
  260. sDetailCd = model.getValue("/root/main/detailI");
  261. if(sDetailCd == "99") {
  262. sResnCmt = model.getValue("/root/main/rmkI");
  263. } else {
  264. sResnCmt = radioI.label;
  265. }
  266. } else if(sResnCd == "J") {
  267. sDetailCd = model.getValue("/root/main/detailJ");
  268. if(sDetailCd == "99") {
  269. sResnCmt = model.getValue("/root/main/rmkJ");
  270. } else {
  271. sResnCmt = radioJ.label;
  272. }
  273. } else if(sResnCd == "K") {
  274. sDetailCd = model.getValue("/root/main/detailK");
  275. if(sDetailCd == "99") {
  276. sResnCmt = model.getValue("/root/main/rmkK");
  277. } else {
  278. sResnCmt = radioK.label;
  279. }
  280. } else if(sResnCd == "L") {
  281. sDetailCd = model.getValue("/root/main/detailL");
  282. if(sDetailCd == "99") {
  283. sResnCmt = model.getValue("/root/main/rmkL");
  284. } else {
  285. sResnCmt = radioL.label;
  286. }
  287. } else if(sResnCd == "Z") {
  288. sResnCmt = model.getValue("/root/main/rmkZ");
  289. }
  290. if(isNull(sResnCmt)) {
  291. if(sResnCd == "Z" || sDetailCd == "99") {
  292. messageBox ( "기타 항목 선택시 상세항목을 기재하여야 합니다.", "E" );
  293. } else {
  294. messageBox ( "상세사유를 선택 하세요.", "E" );
  295. }
  296. } else {
  297. opener.javascript.setParameter ( "SPMMO19200_resncd", sResnCd);
  298. opener.javascript.setParameter ( "SPMMO19200_prnNum", sPrnNum );
  299. opener.javascript.setParameter ( "SPMMO19200_prnTerm", sPrnTerm );
  300. opener.javascript.setParameter ( "SPMMO19200_rtn1", "Y" );
  301. opener.javascript.setParameter ( "SPMMO19200_resncmt", sResnCmt );
  302. opener.javascript.setParameter ( "SPMMO19200_resnnm", sResnNm );
  303. window.close();
  304. }
  305. ]]>
  306. </script>
  307. </button>
  308. <caption id="caption1" class="tit_2" style="left:0px; top:2px; width:179px; height:13px; ">PRN 처방횟수 회</caption>
  309. <caption id="caption5" class="tit_2" style="left:0px; top:23px; width:113px; height:13px; ">PRN 투여간격</caption>
  310. <select1 id="comboprcpterm" ref="/root/result/comduplprcplist/prcpterm" appearance="minimal" style="left:100px; top:21px; width:310px; height:19px; ">
  311. <choices>
  312. <item>
  313. <label>선택</label>
  314. <value>0</value>
  315. </item>
  316. <item>
  317. <label>동일 PRN약물과 최소 30분 투여간격 유지해주세요.</label>
  318. <value>1</value>
  319. </item>
  320. <item>
  321. <label>동일 PRN약물과 최소 1시간 투여간격 유지해주세요.</label>
  322. <value>2</value>
  323. </item>
  324. <item>
  325. <label>동일 PRN약물과 최소 2시간 투여간격 유지해주세요.</label>
  326. <value>3</value>
  327. </item>
  328. <item>
  329. <label>동일 PRN약물과 최소 3시간 투여간격 유지해주세요.</label>
  330. <value>4</value>
  331. </item>
  332. <item>
  333. <label>동일 PRN약물과 최소 4시간 투여간격 유지해주세요.</label>
  334. <value>5</value>
  335. </item>
  336. <item>
  337. <label>동일 PRN약물과 최소 5시간 투여간격 유지해주세요.</label>
  338. <value>6</value>
  339. </item>
  340. <item>
  341. <label>기타(직접입력)</label>
  342. <value>99</value>
  343. </item>
  344. </choices>
  345. <script type="javascript" ev:event="xforms-value-changed">
  346. <![CDATA[
  347. var sPrcpTerm = model.getValue("/root/result/comduplprcplist/prcpterm");
  348. if(sPrcpTerm == "99") {
  349. inputterm.disabled = false;
  350. } else {
  351. model.setValue("/root/result/comduplprcplist/prnterm", "");
  352. inputterm.disabled = true;
  353. }
  354. inputterm.refresh();
  355. ]]>
  356. </script>
  357. </select1>
  358. <input id="inputterm" ref="/root/result/comduplprcplist/prnterm" disabled="true" style="left:415px; top:21px; width:320px; height:19px; "/>
  359. <button id="button2" class="btn4_letter2" style="left:680px; top:401px; width:56px; height:22px; ">
  360. <caption>취소</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. messageBox ( "사유 입력을 취소하였으므로 PRN 설정이 취소됩니다.", "E" );
  364. opener.javascript.setParameter ( "SPMMO19200_rtn1", "N" );
  365. window.close();
  366. ]]>
  367. </script>
  368. </button>
  369. <caption id="caption3" class="tit_2" style="left:0px; top:41px; width:171px; height:15px; ">PRN 상세사유</caption>
  370. <line id="line1" class="line_1" style="x1:0px; y1:57px; x2:735px; y2:57px; "/>
  371. <input id="input1" ref="/root/result/comduplprcplist/prcpdays" style="left:100px; top:0px; width:30px; height:19px; font-weight:bold; text-align:right; ">
  372. <script type="javascript" ev:event="xforms-value-changed">
  373. <![CDATA[
  374. var sInstCd = getUserInfo("dutplceinstcd");
  375. if(sInstCd == "031") {
  376. if(model.getValue("/root/result/comduplprcplist/prcpdays")>3){
  377. messageBox ( "PRN 처방횟수는 3회를 초과할 수 없습니다.", "E" );
  378. model.setValue("/root/result/comduplprcplist/prcpdays","1")
  379. model.refresh();
  380. }
  381. } else {
  382. if(model.getValue("/root/result/comduplprcplist/prcpdays")>6){
  383. messageBox ( "PRN 처방횟수는 6회를 초과할 수 없습니다.", "E" );
  384. model.setValue("/root/result/comduplprcplist/prcpdays","1")
  385. model.refresh();
  386. }
  387. }
  388. if(model.getValue("/root/result/comduplprcplist/prcpdays") == "1"){
  389. model.setValue("/root/result/comduplprcplist/prcpterm", "0");
  390. model.setValue("/root/result/comduplprcplist/prnterm", "");
  391. inputterm.disabled = true;
  392. comboprcpterm.refresh();
  393. inputterm.refresh();
  394. }
  395. ]]>
  396. </script>
  397. </input>
  398. <output id="output1" ref="/root/result/comduplprcplist/prcpcd" visibility="hidden" style="left:160px; top:40px; width:120px; height:19px; font-size:13pt; font-weight:bold; text-align:center; "/>
  399. <caption id="caption4" visibility="hidden" style="left:100px; top:42px; width:58px; height:15px; ">처방코드 :</caption>
  400. <caption id="caption156" class="cell_1" style="left:0px; top:62px; width:90px; height:25px; text-align:center; ">사유</caption>
  401. <caption id="caption2" class="cell_1" style="left:90px; top:62px; width:645px; height:25px; text-align:center; ">상세사유</caption>
  402. <select1 id="radioResnCd" ref="/root/main/resncd" appearance="full" cols="1" vcellspacing="10" overflow="visible" style="left:3px; top:87px; width:87px; height:20px; border-style:none; ">
  403. <choices>
  404. <itemset nodeset="/root/hardcd/hardcd">
  405. <label ref="hardcdnm"/>
  406. <value ref="hardcd"/>
  407. </itemset>
  408. </choices>
  409. <script type="javascript" ev:event="xforms-value-changed">
  410. <![CDATA[
  411. var sResnCd = model.getValue("/root/main/resncd");
  412. initResnInfo();
  413. if(sResnCd == "A") {
  414. radioA.disabled = false;
  415. } else if(sResnCd == "B") {
  416. radioB.disabled = false;
  417. } else if(sResnCd == "C") {
  418. radioC.disabled = false;
  419. } else if(sResnCd == "E") {
  420. radioE.disabled = false;
  421. } else if(sResnCd == "F") {
  422. radioF.disabled = false;
  423. } else if(sResnCd == "G") {
  424. radioG.disabled = false;
  425. } else if(sResnCd == "H") {
  426. radioH.disabled = false;
  427. } else if(sResnCd == "I") {
  428. radioI.disabled = false;
  429. } else if(sResnCd == "J") {
  430. radioJ.disabled = false;
  431. } else if(sResnCd == "K") {
  432. radioK.disabled = false;
  433. } else if(sResnCd == "L") {
  434. radioL.disabled = false;
  435. } else if(sResnCd == "Z") {
  436. inputZ.disabled = false;
  437. }
  438. model.refresh();
  439. ]]>
  440. </script>
  441. </select1>
  442. <line id="line3" class="line_3" style="x1:0px; y1:87px; x2:735px; y2:87px; "/>
  443. <line id="line4" class="line_3" style="x1:0px; y1:113px; x2:735px; y2:113px; "/>
  444. <line id="line5" class="line_3" style="x1:0px; y1:139px; x2:735px; y2:139px; "/>
  445. <line id="line6" class="line_3" style="x1:0px; y1:165px; x2:735px; y2:165px; "/>
  446. <line id="line7" class="line_3" style="x1:0px; y1:191px; x2:735px; y2:191px; "/>
  447. <line id="line8" class="line_3" style="x1:0px; y1:217px; x2:735px; y2:217px; "/>
  448. <line id="line9" class="line_3" style="x1:0px; y1:243px; x2:735px; y2:243px; "/>
  449. <line id="line10" class="line_3" style="x1:0px; y1:269px; x2:735px; y2:269px; "/>
  450. <line id="line11" class="line_3" style="x1:0px; y1:295px; x2:735px; y2:295px; "/>
  451. <line id="line12" class="line_3" style="x1:0px; y1:321px; x2:735px; y2:321px; "/>
  452. <line id="line13" class="line_3" style="x1:0px; y1:346px; x2:735px; y2:346px; "/>
  453. <line id="line14" class="line_3" style="x1:0px; y1:376px; x2:735px; y2:376px; "/>
  454. <line id="line16" class="line_3" style="x1:0px; y1:398px; x2:735px; y2:398px; "/>
  455. <line id="line15" class="line_3" style="x1:89px; y1:398px; x2:89px; y2:87px; "/>
  456. <caption id="captionB" style="left:95px; top:147px; width:33px; height:15px; ">체온</caption>
  457. <select1 id="radioA" ref="/root/main/detailA" disabled="true" appearance="full" cols="11" overflow="visible" style="left:155px; top:119px; width:385px; height:20px; border-style:none; ">
  458. <choices>
  459. <item>
  460. <label>4점 이상</label>
  461. <value>2</value>
  462. </item>
  463. <item>
  464. <label>5점 이상</label>
  465. <value>3</value>
  466. </item>
  467. <item>
  468. <label>6점 이상</label>
  469. <value>4</value>
  470. </item>
  471. <item>
  472. <label>7점 이상</label>
  473. <value>5</value>
  474. </item>
  475. <item>
  476. <label>8점 이상</label>
  477. <value>6</value>
  478. </item>
  479. <item>
  480. <label>기타</label>
  481. <value>99</value>
  482. </item>
  483. </choices>
  484. <script type="javascript" ev:event="xforms-value-changed">
  485. <![CDATA[
  486. var sDetailA = model.getValue("/root/main/detailA");
  487. if(sDetailA == "99") {
  488. inputA.disabled = false;
  489. } else {
  490. model.setValue("/root/main/rmkA", "");
  491. inputA.disabled = true;
  492. }
  493. inputA.refresh();
  494. ]]>
  495. </script>
  496. </select1>
  497. <select1 id="radioB" ref="/root/main/detailB" disabled="true" appearance="full" cols="7" overflow="visible" style="left:125px; top:145px; width:535px; height:20px; border-style:none; ">
  498. <choices>
  499. <item>
  500. <label>37.8℃ 이상</label>
  501. <value>1</value>
  502. </item>
  503. <item>
  504. <label>38.0℃ 이상</label>
  505. <value>2</value>
  506. </item>
  507. <item>
  508. <label>38.2℃ 이상</label>
  509. <value>3</value>
  510. </item>
  511. <item>
  512. <label>38.4℃이상</label>
  513. <value>4</value>
  514. </item>
  515. <item>
  516. <label>38.6℃ 이상</label>
  517. <value>5</value>
  518. </item>
  519. <item>
  520. <label>38.8℃이상</label>
  521. <value>6</value>
  522. </item>
  523. <item>
  524. <label>기타</label>
  525. <value>99</value>
  526. </item>
  527. </choices>
  528. <script type="javascript" ev:event="xforms-value-changed">
  529. <![CDATA[
  530. var sDetailB = model.getValue("/root/main/detailB");
  531. if(sDetailB == "99") {
  532. inputB.disabled = false;
  533. } else {
  534. model.setValue("/root/main/rmkB", "");
  535. inputB.disabled = true;
  536. }
  537. inputB.refresh();
  538. ]]>
  539. </script>
  540. </select1>
  541. <select1 id="radioC" ref="/root/main/detailC" disabled="true" appearance="full" cols="11" overflow="visible" style="left:154px; top:93px; width:386px; height:20px; border-style:none; ">
  542. <choices>
  543. <item>
  544. <label>4점 이상</label>
  545. <value>2</value>
  546. </item>
  547. <item>
  548. <label>5점 이상</label>
  549. <value>3</value>
  550. </item>
  551. <item>
  552. <label>6점 이상</label>
  553. <value>4</value>
  554. </item>
  555. <item>
  556. <label>7점 이상</label>
  557. <value>5</value>
  558. </item>
  559. <item>
  560. <label>8점 이상</label>
  561. <value>6</value>
  562. </item>
  563. <item>
  564. <label>기타</label>
  565. <value>99</value>
  566. </item>
  567. </choices>
  568. <script type="javascript" ev:event="xforms-value-changed">
  569. <![CDATA[
  570. var sDetailC = model.getValue("/root/main/detailC");
  571. if(sDetailC == "99") {
  572. inputC.disabled = false;
  573. } else {
  574. model.setValue("/root/main/rmkC", "");
  575. inputC.disabled = true;
  576. }
  577. inputC.refresh();
  578. ]]>
  579. </script>
  580. </select1>
  581. <select1 id="radioE" ref="/root/main/detailE" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:171px; width:310px; height:20px; border-style:none; ">
  582. <choices>
  583. <item>
  584. <label>1회 이상</label>
  585. <value>1</value>
  586. </item>
  587. <item>
  588. <label>2회 이상</label>
  589. <value>2</value>
  590. </item>
  591. <item>
  592. <label>3회 이상</label>
  593. <value>3</value>
  594. </item>
  595. <item>
  596. <label>4회 이상</label>
  597. <value>4</value>
  598. </item>
  599. <item>
  600. <label>기타</label>
  601. <value>99</value>
  602. </item>
  603. </choices>
  604. <script type="javascript" ev:event="xforms-value-changed">
  605. <![CDATA[
  606. var sDetailE = model.getValue("/root/main/detailE");
  607. if(sDetailE == "99") {
  608. inputE.disabled = false;
  609. } else {
  610. model.setValue("/root/main/rmkE", "");
  611. inputE.disabled = true;
  612. }
  613. inputE.refresh();
  614. ]]>
  615. </script>
  616. </select1>
  617. <select1 id="radioF" ref="/root/main/detailF" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:197px; width:310px; height:20px; border-style:none; ">
  618. <choices>
  619. <item>
  620. <label>1회 이상</label>
  621. <value>1</value>
  622. </item>
  623. <item>
  624. <label>2회 이상</label>
  625. <value>2</value>
  626. </item>
  627. <item>
  628. <label>3회 이상</label>
  629. <value>3</value>
  630. </item>
  631. <item>
  632. <label>4회 이상</label>
  633. <value>4</value>
  634. </item>
  635. <item>
  636. <label>기타</label>
  637. <value>99</value>
  638. </item>
  639. </choices>
  640. <script type="javascript" ev:event="xforms-value-changed">
  641. <![CDATA[
  642. var sDetailF = model.getValue("/root/main/detailF");
  643. if(sDetailF == "99") {
  644. inputF.disabled = false;
  645. } else {
  646. model.setValue("/root/main/rmkF", "");
  647. inputF.disabled = true;
  648. }
  649. inputF.refresh();
  650. ]]>
  651. </script>
  652. </select1>
  653. <select1 id="radioG" ref="/root/main/detailG" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:223px; width:310px; height:20px; border-style:none; ">
  654. <choices>
  655. <item>
  656. <label>1일 이상</label>
  657. <value>1</value>
  658. </item>
  659. <item>
  660. <label>2일 이상</label>
  661. <value>2</value>
  662. </item>
  663. <item>
  664. <label>3일 이상</label>
  665. <value>3</value>
  666. </item>
  667. <item>
  668. <label>4일 이상</label>
  669. <value>4</value>
  670. </item>
  671. <item>
  672. <label>기타</label>
  673. <value>99</value>
  674. </item>
  675. </choices>
  676. <script type="javascript" ev:event="xforms-value-changed">
  677. <![CDATA[
  678. var sDetailG = model.getValue("/root/main/detailG");
  679. if(sDetailG == "99") {
  680. inputG.disabled = false;
  681. } else {
  682. model.setValue("/root/main/rmkG", "");
  683. inputG.disabled = true;
  684. }
  685. inputG.refresh();
  686. ]]>
  687. </script>
  688. </select1>
  689. <select1 id="radioH" ref="/root/main/detailH" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:249px; width:165px; height:20px; border-style:none; ">
  690. <choices>
  691. <item>
  692. <label>견디기 힘든 정도</label>
  693. <value>1</value>
  694. </item>
  695. <item>
  696. <label>기타</label>
  697. <value>99</value>
  698. </item>
  699. </choices>
  700. <script type="javascript" ev:event="xforms-value-changed">
  701. <![CDATA[
  702. var sDetailH = model.getValue("/root/main/detailH");
  703. if(sDetailH == "99") {
  704. inputH.disabled = false;
  705. } else {
  706. model.setValue("/root/main/rmkH", "");
  707. inputH.disabled = true;
  708. }
  709. inputH.refresh();
  710. ]]>
  711. </script>
  712. </select1>
  713. <select1 id="radioI" ref="/root/main/detailI" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:275px; width:415px; height:20px; border-style:none; ">
  714. <choices>
  715. <item>
  716. <label>안절부절한 행동 관찰 시</label>
  717. <value>1</value>
  718. </item>
  719. <item>
  720. <label>불안을 표현할 때</label>
  721. <value>2</value>
  722. </item>
  723. <item>
  724. <label>약을 요구할 때</label>
  725. <value>3</value>
  726. </item>
  727. <item>
  728. <label>기타</label>
  729. <value>99</value>
  730. </item>
  731. </choices>
  732. <script type="javascript" ev:event="xforms-value-changed">
  733. <![CDATA[
  734. var sDetailI = model.getValue("/root/main/detailI");
  735. if(sDetailI == "99") {
  736. inputI.disabled = false;
  737. } else {
  738. model.setValue("/root/main/rmkI", "");
  739. inputI.disabled = true;
  740. }
  741. inputI.refresh();
  742. ]]>
  743. </script>
  744. </select1>
  745. <select1 id="radioJ" ref="/root/main/detailJ" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:301px; width:475px; height:20px; border-style:none; ">
  746. <choices>
  747. <item>
  748. <label>23시 이후 불면 호소 시</label>
  749. <value>1</value>
  750. </item>
  751. <item>
  752. <label>0시 이후 불면 호소 시</label>
  753. <value>2</value>
  754. </item>
  755. <item>
  756. <label>1시 이후 불면 호소 시</label>
  757. <value>3</value>
  758. </item>
  759. <item>
  760. <label>기타</label>
  761. <value>99</value>
  762. </item>
  763. </choices>
  764. <script type="javascript" ev:event="xforms-value-changed">
  765. <![CDATA[
  766. var sDetailJ = model.getValue("/root/main/detailJ");
  767. if(sDetailJ == "99") {
  768. inputJ.disabled = false;
  769. } else {
  770. model.setValue("/root/main/rmkJ", "");
  771. inputJ.disabled = true;
  772. }
  773. inputJ.refresh();
  774. ]]>
  775. </script>
  776. </select1>
  777. <select1 id="radioK" ref="/root/main/detailK" disabled="true" appearance="full" cols="7" overflow="visible" style="left:95px; top:326px; width:325px; height:20px; border-style:none; ">
  778. <choices>
  779. <item>
  780. <label>과다행동 시</label>
  781. <value>1</value>
  782. </item>
  783. <item>
  784. <label>환각 증상 시</label>
  785. <value>2</value>
  786. </item>
  787. <item>
  788. <label>초조함</label>
  789. <value>3</value>
  790. </item>
  791. <item>
  792. <label>떨림</label>
  793. <value>4</value>
  794. </item>
  795. <item>
  796. <label>기타</label>
  797. <value>99</value>
  798. </item>
  799. </choices>
  800. <script type="javascript" ev:event="xforms-value-changed">
  801. <![CDATA[
  802. var sDetailK = model.getValue("/root/main/detailK");
  803. if(sDetailK == "99") {
  804. inputK.disabled = false;
  805. } else {
  806. model.setValue("/root/main/rmkK", "");
  807. inputK.disabled = true;
  808. }
  809. inputK.refresh();
  810. ]]>
  811. </script>
  812. </select1>
  813. <select1 id="radioL" ref="/root/main/detailL" disabled="true" appearance="full" cols="4" vcellspacing="-2" overflow="visible" style="left:95px; top:347px; width:360px; height:30px; border-style:none; ">
  814. <choices>
  815. <item>
  816. <label>SBP 150이상</label>
  817. <value>1</value>
  818. </item>
  819. <item>
  820. <label>SBP 160이상</label>
  821. <value>2</value>
  822. </item>
  823. <item>
  824. <label>SBP 170이상</label>
  825. <value>3</value>
  826. </item>
  827. <item>
  828. <label>SBP 180이상</label>
  829. <value>4</value>
  830. </item>
  831. <item>
  832. <label>DBP 90이상</label>
  833. <value>5</value>
  834. </item>
  835. <item>
  836. <label>DBP 100이상</label>
  837. <value>6</value>
  838. </item>
  839. <item>
  840. <label>DBP 120이상</label>
  841. <value>7</value>
  842. </item>
  843. <item>
  844. <label>기타</label>
  845. <value>99</value>
  846. </item>
  847. </choices>
  848. <script type="javascript" ev:event="xforms-value-changed">
  849. <![CDATA[
  850. var sDetailL = model.getValue("/root/main/detailL");
  851. if(sDetailL == "99") {
  852. inputL.disabled = false;
  853. } else {
  854. model.setValue("/root/main/rmkL", "");
  855. inputL.disabled = true;
  856. }
  857. inputL.refresh();
  858. ]]>
  859. </script>
  860. </select1>
  861. <input id="inputA" ref="/root/main/rmkA" disabled="true" visibility="visible" style="left:545px; top:119px; width:190px; height:19px; "/>
  862. <input id="inputB" ref="/root/main/rmkB" disabled="true" style="left:660px; top:146px; width:75px; height:19px; "/>
  863. <input id="inputC" ref="/root/main/rmkC" disabled="true" visibility="visible" style="left:545px; top:93px; width:190px; height:19px; "/>
  864. <input id="inputE" ref="/root/main/rmkE" disabled="true" style="left:405px; top:172px; width:330px; height:19px; "/>
  865. <input id="inputF" ref="/root/main/rmkF" disabled="true" style="left:405px; top:198px; width:330px; height:19px; "/>
  866. <input id="inputG" ref="/root/main/rmkG" disabled="true" style="left:405px; top:224px; width:330px; height:19px; "/>
  867. <input id="inputH" ref="/root/main/rmkH" disabled="true" style="left:260px; top:250px; width:475px; height:19px; "/>
  868. <input id="inputI" ref="/root/main/rmkI" disabled="true" style="left:510px; top:276px; width:225px; height:19px; "/>
  869. <input id="inputJ" ref="/root/main/rmkJ" disabled="true" style="left:570px; top:302px; width:165px; height:19px; "/>
  870. <input id="inputK" ref="/root/main/rmkK" disabled="true" style="left:420px; top:327px; width:315px; height:19px; "/>
  871. <input id="inputL" ref="/root/main/rmkL" disabled="true" style="left:455px; top:357px; width:280px; height:19px; "/>
  872. <input id="inputZ" ref="/root/main/rmkZ" disabled="true" style="left:95px; top:379px; width:640px; height:19px; "/>
  873. <caption id="caption6" style="left:95px; top:95px; width:55px; height:15px; ">통증점수</caption>
  874. <caption id="caption7" style="left:95px; top:120px; width:55px; height:15px; ">통증점수</caption>
  875. </xhtml:body>
  876. </xhtml:html>