SMMQR00400_낙상.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <falldata>
  11. <bodydam>
  12. </bodydam>
  13. <arbitrationcnts>
  14. <newElement>
  15. <label>관찰</label>
  16. <value>01</value>
  17. </newElement>
  18. <newElement>
  19. <label>드레싱</label>
  20. <value>02</value>
  21. </newElement>
  22. <newElement>
  23. <label>봉합</label>
  24. <value>03</value>
  25. </newElement>
  26. <newElement>
  27. <label>약물치료</label>
  28. <value>04</value>
  29. </newElement>
  30. <newElement>
  31. <label>물리치료</label>
  32. <value>05</value>
  33. </newElement>
  34. <newElement>
  35. <label>수술</label>
  36. <value>06</value>
  37. </newElement>
  38. <newElement>
  39. <label>기타</label>
  40. <value>07</value>
  41. </newElement>
  42. </arbitrationcnts>
  43. <env>
  44. <env>
  45. <label>Side rail 이 내려져 있어서</label>
  46. <value>01</value>
  47. </env>
  48. <env>
  49. <label>침대 바퀴 미 고정</label>
  50. <value>02</value>
  51. </env>
  52. <env>
  53. <label>바닥의 물기</label>
  54. <value>03</value>
  55. </env>
  56. <env>
  57. <label>조명 불량</label>
  58. <value>04</value>
  59. </env>
  60. <env>
  61. <label>부적절한 신발</label>
  62. <value>05</value>
  63. </env>
  64. <env>
  65. <label>보조기구 사용 중</label>
  66. <value>06</value>
  67. </env>
  68. <env>
  69. <label>의료기구 및 관련</label>
  70. <value>07</value>
  71. </env>
  72. <env>
  73. <label>기타</label>
  74. <value>08</value>
  75. </env>
  76. </env>
  77. <actfunt>
  78. <actfunt>
  79. <label>독립활동</label>
  80. <value>01</value>
  81. </actfunt>
  82. <actfunt>
  83. <label>도움필요</label>
  84. <value>02</value>
  85. </actfunt>
  86. <actfunt>
  87. <label>활동 불가능</label>
  88. <value>03</value>
  89. </actfunt>
  90. </actfunt>
  91. <cscsstat>
  92. <cscsstat>
  93. <value>01</value>
  94. <label>명료(Alert)</label>
  95. </cscsstat>
  96. <cscsstat>
  97. <value>02</value>
  98. <label>졸음</label>
  99. </cscsstat>
  100. <cscsstat>
  101. <value>03</value>
  102. <label>혼돈</label>
  103. </cscsstat>
  104. <cscsstat>
  105. <value>04</value>
  106. <label>반혼수</label>
  107. </cscsstat>
  108. <cscsstat>
  109. <value>05</value>
  110. <label>혼수</label>
  111. </cscsstat>
  112. <cscsstat>
  113. <value>06</value>
  114. <label>7세 미만 소아</label>
  115. </cscsstat>
  116. </cscsstat>
  117. <fallplce>
  118. </fallplce>
  119. </falldata>
  120. </init>
  121. <main>
  122. <cond>
  123. <fallplcecd/>
  124. <fallplcecnts/>
  125. <falldngrasesyn/>
  126. <fallbfpnt/>
  127. <fallaftpnt/>
  128. <pvneducyn/>
  129. <cscsstatyn/>
  130. <actfuntyn/>
  131. <envcasyn/>
  132. <envcasetccntsyn/>
  133. <bodystatyn/>
  134. <medidrugcd/>
  135. <medidrugnm/>
  136. <arbitrationcntsyn/>
  137. <arbitrationetccnts/>
  138. <bodydamcd/>
  139. <bodypart/>
  140. <bodystatetccnts/>
  141. <detlcnts/>
  142. <drugdump/>
  143. <druglist>
  144. <falldruginfo>
  145. <medidrugcd/>
  146. <acptno/>
  147. <seq/>
  148. <medidrugnm/>
  149. </falldruginfo>
  150. </druglist>
  151. <detlcnts_why/>
  152. <detlcnts_how/>
  153. <doctorcallyn>N</doctorcallyn>
  154. <doctorcalldt/>
  155. <mediationyn>N</mediationyn>
  156. <mediationdt/>
  157. </cond>
  158. </main>
  159. <temp>
  160. <receivedata>
  161. <receiveref/>
  162. <receivenmref/>
  163. <srchflag/>
  164. <srchcnts/>
  165. <drugkind/>
  166. </receivedata>
  167. <druglist/>
  168. </temp>
  169. <send>
  170. <calcscorcd/>
  171. <acptno/>
  172. </send>
  173. <hidden>
  174. <mech>
  175. <hngnm/>
  176. </mech>
  177. <mycode/>
  178. </hidden>
  179. <tmp>
  180. <fall>
  181. <score/>
  182. </fall>
  183. </tmp>
  184. </root>
  185. </instance>
  186. <script type="javascript" ev:event="xforms-ready">
  187. <![CDATA[
  188. model.removeNodeset("/root/main/cond/druglist/falldruginfo");
  189. fInitialize_00400();
  190. //2013/04/18 Start
  191. button4.disabled=true;
  192. //2013/04/18 End
  193. ]]>
  194. </script>
  195. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  196. <submission id="TRMNR07506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/mech"/>
  197. <submission id="TRMQR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptno" resultref="/root/cond"/>
  198. <submission id="TRMQR00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/fall"/>
  199. </model>
  200. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  201. <script type="javascript" src="../../../emr/qiweb/js/SMMQR00400.js"/>
  202. <script type="javascript" src="../../../emr/qiweb/js/SMMQR00000.js"/>
  203. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  204. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  205. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  206. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  207. </xhtml:head>
  208. <xhtml:body>
  209. <group id="grp_fall" style="left:0px; top:0px; width:1175px; height:440px; ">
  210. <line id="line25" class="line_2" style="x1:0px; y1:23px; x2:1172px; y2:23px; "/>
  211. <shape id="roundrect8" class="roundrect_example" appearance="roundrect" style="left:5px; top:30px; width:175px; height:285px; "/>
  212. <shape id="roundrect9" class="roundrect_example" appearance="roundrect" style="left:185px; top:30px; width:175px; height:285px; "/>
  213. <shape id="roundrect10" class="roundrect_example" appearance="roundrect" style="left:365px; top:30px; width:254px; height:285px; "/>
  214. <shape id="roundrect12" class="roundrect_example" appearance="roundrect" style="left:624px; top:30px; width:543px; height:219px; "/>
  215. <shape id="roundrect13" class="roundrect_example" appearance="roundrect" style="left:5px; top:318px; width:615px; height:65px; "/>
  216. <caption id="caption1" style="left:720px; top:3px; width:10px; height:20px; ">/</caption>
  217. <input id="ipt_fallplcecnts" ref="/root/main/cond/fallplcecnts" class="input_default" disabled="true" editable="true" maxlength="50" appearance="input" style="left:278px; top:1px; width:184px; height:19px; "/>
  218. <textarea id="tar_envcasetccntsyn" ref="/root/main/cond/envcasetccntsyn" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:377px; top:244px; width:235px; height:65px; "/>
  219. <caption id="cap_detlcnts" class="cell_2" style="left:624px; top:253px; width:26px; height:129px; vertical-align:middle; ">상세내용기술</caption>
  220. <textarea id="tar_detlcnts" ref="/root/main/cond/detlcnts" class="input_essential" navindex="5" maxlength="3950" style="left:1019px; top:255px; width:148px; height:125px; "/>
  221. <textarea id="tar_detlcnts_why" ref="/root/main/cond/detlcnts_why" class="input_essential" navindex="5" maxlength="3950" style="left:848px; top:255px; width:138px; height:125px; "/>
  222. <textarea id="tar_detlcnts_how" ref="/root/main/cond/detlcnts_how" class="input_essential" navindex="5" maxlength="3950" style="left:683px; top:255px; width:133px; height:125px; "/>
  223. <input id="ipt_fallbfpnt" ref="/root/main/cond/fallbfpnt" class="input_essential" disabled="true" format="999" style="left:665px; top:1px; width:39px; height:19px; ">
  224. <script type="javascript" ev:event="DOMFocusOut">
  225. <![CDATA[
  226. if(model.getValue("/root/main/cond/fallbfpnt") > 100){
  227. messageBox("100을 초과할수 ", "I004");
  228. model.setValue("/root/main/cond/fallbfpnt", "");
  229. model.setFocus("ipt_fallbfpnt");
  230. model.refresh();
  231. }
  232. ]]>
  233. </script>
  234. </input>
  235. <input id="ipt_fallaftpnt" ref="/root/main/cond/fallaftpnt" class="input_essential" disabled="true" format="999" style="left:750px; top:1px; width:39px; height:19px; ">
  236. <script type="javascript" ev:event="DOMFocusOut">
  237. <![CDATA[
  238. if(model.getValue("/root/main/cond/fallaftpnt") > 100){
  239. messageBox("100을 초과할수 ", "I004");
  240. model.setValue("/root/main/cond/fallaftpnt", "");
  241. model.setFocus("ipt_fallaftpnt");
  242. model.refresh();
  243. }
  244. ]]>
  245. </script>
  246. </input>
  247. <button id="button4" class="btn2_letter9" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:815px; top:1px; width:119px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  248. <caption>중증도 및 위험사정</caption>
  249. <script type="javascript" ev:event="onclick">
  250. <![CDATA[
  251. open("SMMNW04000");
  252. ]]>
  253. </script>
  254. </button>
  255. <select id="chk_cscsstatyn" ref="/root/main/cond/cscsstatyn" overflow="visible" appearance="full" rows="6" sep="▦" vcellspacing="7" style="left:10px; top:60px; width:100px; height:20px; border-style:none; ">
  256. <choices>
  257. <itemset nodeset="/root/init/falldata/cscsstat">
  258. <label ref="cscsstat/label"/>
  259. <value ref="cscsstat/value"/>
  260. </itemset>
  261. </choices>
  262. </select>
  263. <select id="chk_actfuntyn" ref="/root/main/cond/actfuntyn" overflow="visible" appearance="full" cellspacing="30" rows="3" sep="▦" vcellspacing="7" style="left:195px; top:60px; width:100px; height:20px; border-style:none; ">
  264. <choices>
  265. <itemset nodeset="/root/init/falldata/actfunt">
  266. <label ref="actfunt/label"/>
  267. <value ref="actfunt/value"/>
  268. </itemset>
  269. </choices>
  270. </select>
  271. <select id="chk_envcasyn" ref="/root/main/cond/envcasyn" overflow="visible" appearance="full" cellspacing="30" rows="9" sep="▦" vcellspacing="7" style="left:375px; top:60px; width:100px; height:20px; border-style:none; ">
  272. <choices>
  273. <itemset nodeset="/root/init/falldata/env">
  274. <label ref="env/label"/>
  275. <value ref="env/value"/>
  276. </itemset>
  277. </choices>
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. SetVisible("tar_envcasetccntsyn", "/root/main/cond/envcasyn", "08");
  281. ]]>
  282. </script>
  283. </select>
  284. <select id="chk_bodystatyn" ref="/root/main/cond/bodystatyn" overflow="visible" appearance="full" cellspacing="20" cols="2" rows="16" sep="▦" vcellspacing="3" style="left:628px; top:65px; width:533px; height:185px; border-style:none; ">
  285. <choices>
  286. <item>
  287. <label>어지러움</label>
  288. <value>01</value>
  289. </item>
  290. <item>
  291. <label>마비</label>
  292. <value>02</value>
  293. </item>
  294. <item>
  295. <label>전신쇠약</label>
  296. <value>03</value>
  297. </item>
  298. <item>
  299. <label>근력저하</label>
  300. <value>04</value>
  301. </item>
  302. <item>
  303. <label>보행장애</label>
  304. <value>05</value>
  305. </item>
  306. <item>
  307. <label>체위성 저혈압</label>
  308. <value>06</value>
  309. </item>
  310. <item>
  311. <label>평형장애</label>
  312. <value>07</value>
  313. </item>
  314. <item>
  315. <label>정서장애(흥분/우울/불안)</label>
  316. <value>08</value>
  317. </item>
  318. <item>
  319. <label>시력장애</label>
  320. <value>09</value>
  321. </item>
  322. <item>
  323. <label>수면장애</label>
  324. <value>10</value>
  325. </item>
  326. <item>
  327. <label>인지장애</label>
  328. <value>11</value>
  329. </item>
  330. <item>
  331. <label>7세 미만 소아</label>
  332. <value>12</value>
  333. </item>
  334. <item>
  335. <label>해당사항 없음</label>
  336. <value>14</value>
  337. </item>
  338. <item>
  339. <label>약물복용</label>
  340. <value>13</value>
  341. </item>
  342. <item>
  343. <label>기타</label>
  344. <value>15</value>
  345. </item>
  346. </choices>
  347. <script type="javascript" ev:event="xforms-value-changed">
  348. <![CDATA[
  349. var bodystatyn = model.getValue("/root/main/cond/bodystatyn");
  350. if(bodystatyn == "13"){
  351. dreload();
  352. }
  353. SetVisible("grd_druglist", "/root/main/cond/bodystatyn", "13");
  354. SetVisible("button4", "/root/main/cond/bodystatyn", "13");
  355. SetVisible("button5", "/root/main/cond/bodystatyn", "13");
  356. SetVisible("tar_bodystatetccnts", "/root/main/cond/bodystatyn", "15");
  357. ]]>
  358. </script>
  359. </select>
  360. <select id="chk_arbitrationcntsyn" ref="/root/main/cond/arbitrationcntsyn" overflow="visible" appearance="full" cellspacing="30" cols="6" sep="▦" vcellspacing="7" style="left:120px; top:322px; width:495px; height:58px; border-style:none; ">
  361. <choices>
  362. <itemset nodeset="/root/init/falldata/arbitrationcnts">
  363. <label ref="newElement/label"/>
  364. <value ref="newElement/value"/>
  365. </itemset>
  366. </choices>
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. SetVisible("tar_arbitrationetccnts", "/root/main/cond/arbitrationcntsyn", "07");
  370. ]]>
  371. </script>
  372. </select>
  373. <caption id="cap_cscsstatyn" class="cell_2" style="left:10px; top:35px; width:70px; height:20px; vertical-align:middle; ">의식상태</caption>
  374. <caption id="cap_actfuntyn" class="cell_2" style="left:190px; top:35px; width:70px; height:20px; vertical-align:middle; ">활동/기능</caption>
  375. <caption id="cap_envcasyn" class="cell_2" style="left:370px; top:35px; width:76px; height:20px; vertical-align:middle; ">환경적 요인</caption>
  376. <caption id="cap_bodystatyn" class="cell_2" style="left:635px; top:35px; width:76px; height:20px; vertical-align:middle; ">신체상태</caption>
  377. <caption id="cap_arbitrationcntsyn" class="cell_2" style="left:10px; top:323px; width:104px; height:20px; vertical-align:middle; ">즉각적 중재 내용</caption>
  378. <select1 id="cmb_fallplcecd" ref="/root/main/cond/fallplcecd" class="combo_essential" appearance="minimal" style="left:92px; top:1px; width:185px; height:19px; ">
  379. <choices>
  380. <itemset nodeset="/root/init/falldata/fallplce/M0443">
  381. <label ref="cdnm"/>
  382. <value ref="cdid"/>
  383. </itemset>
  384. </choices>
  385. <script type="javascript" ev:event="xforms-value-changed">
  386. <![CDATA[
  387. model.setValue("/root/main/cond/fallplcecnts", "");
  388. if(model.getValue("/root/main/cond/fallplcecd") == "06" || model.getValue("/root/main/cond/fallplcecd") == "05"){
  389. ipt_fallplcecnts.disabled = false;
  390. }
  391. else{
  392. ipt_fallplcecnts.disabled = true;
  393. }
  394. model.refresh();
  395. ]]>
  396. </script>
  397. </select1>
  398. <select1 id="cmb_falldngrasesyn" ref="/root/main/cond/falldngrasesyn" class="combo_essential" appearance="minimal" style="left:587px; top:1px; width:50px; height:19px; ">
  399. <choices>
  400. <item>
  401. <label>Y</label>
  402. <value>Y</value>
  403. </item>
  404. <item>
  405. <label>N</label>
  406. <value>N</value>
  407. </item>
  408. </choices>
  409. <script type="javascript" ev:event="xforms-value-changed">
  410. <![CDATA[
  411. if(model.getValue("/root/main/cond/falldngrasesyn") == "Y"){
  412. ipt_fallbfpnt.disabled = false;
  413. ipt_fallaftpnt.disabled = false;
  414. cmb_fallbfpnt.disabled = false;
  415. cmb_fallaftpnt.disabled = false;
  416. button4.disabled=false;
  417. //낙상위험 점수를 자동으로 읽어오지 않고 정상, 저위험, 고위험 선택하도록 프로그램 수정.
  418. //요구사항[20150423020] 신민정선생님 요청. 2015.06.04수정일.
  419. // model.makeValue("/root/send/reqdata/pid", parent.javascript.model.getValue("/root/main/patinfo/patinfolist/pid"));
  420. // submit("TRMQR00110");
  421. // if(model.getValue("/root/tmp/fall/score")!="" && model.getValue("/root/tmp/fall/score")!=null){
  422. // model.setValue("/root/main/cond/fallbfpnt", model.getValue("/root/tmp/fall/score"));
  423. // model.refresh();
  424. // }
  425. }
  426. else{
  427. ipt_fallbfpnt.disabled = true;
  428. ipt_fallaftpnt.disabled = true;
  429. cmb_fallbfpnt.disabled = true;
  430. cmb_fallaftpnt.disabled = true;
  431. button4.disabled=true;
  432. model.setValue("/root/main/cond/fallbfpnt", "");
  433. model.setValue("/root/main/cond/fallaftpnt", "");
  434. cmb_fallbfpnt.refresh();
  435. cmb_fallaftpnt.refresh();
  436. }
  437. ]]>
  438. </script>
  439. </select1>
  440. <caption id="cap_falldngrasesyn" class="cell_1" style="left:464px; top:0px; width:121px; height:23px; vertical-align:middle; ">낙상위험 사정 유무</caption>
  441. <caption id="cap_fallplcecd" class="cell_1" style="left:0px; top:0px; width:90px; height:23px; vertical-align:middle; ">낙상장소</caption>
  442. <caption id="cap_pvneducyn" class="cell_1" style="left:937px; top:0px; width:90px; height:23px; vertical-align:middle; ">예방교육 유무</caption>
  443. <select1 id="cmb_pvneducyn" ref="/root/main/cond/pvneducyn" class="combo_essential" appearance="minimal" style="left:1030px; top:1px; width:50px; height:19px; ">
  444. <choices>
  445. <item>
  446. <label>Y</label>
  447. <value>Y</value>
  448. </item>
  449. <item>
  450. <label>N</label>
  451. <value>N</value>
  452. </item>
  453. </choices>
  454. </select1>
  455. <select1 id="cmb_bodydamcd" ref="/root/main/cond/bodydamcd" class="combo_essential" appearance="minimal" style="left:163px; top:385px; width:345px; height:19px; ">
  456. <choices>
  457. <itemset nodeset="/root/init/falldata/bodydam/M0435">
  458. <label ref="cdnm"/>
  459. <value ref="cdid"/>
  460. </itemset>
  461. </choices>
  462. <script type="javascript" ev:event="xforms-value-changed">
  463. <![CDATA[
  464. if(model.getValue("/root/main/cond/bodydamcd") == "01" ){
  465. ipt_bodypart.disabled = true;
  466. }
  467. else{
  468. ipt_bodypart.disabled = false;
  469. }
  470. ]]>
  471. </script>
  472. </select1>
  473. <caption id="cap_bodydamcd" class="cell_1" style="left:5px; top:384px; width:155px; height:23px; vertical-align:middle; ">낙상으로 인한 신체적 손상</caption>
  474. <line id="line24" class="line_3" style="x1:5px; y1:407px; x2:1172px; y2:407px; "/>
  475. <caption id="caption2" class="cell_1" style="left:512px; top:384px; width:155px; height:23px; text-align:center; vertical-align:middle; ">손상된 신체부위 및 상태</caption>
  476. <input id="ipt_bodypart" ref="/root/main/cond/bodypart" class="input_default" navindex="2" maxbyte="1000" style="left:670px; top:385px; width:500px; height:19px; "/>
  477. <textarea id="tar_bodystatetccnts" ref="/root/main/cond/bodystatetccnts" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:710px; top:204px; width:448px; height:39px; "/>
  478. <caption id="caption3" style="left:645px; top:2px; width:15px; height:20px; ">전</caption>
  479. <caption id="caption4" style="left:730px; top:2px; width:15px; height:20px; ">후</caption>
  480. <group id="grd_time" style="left:5px; top:409px; width:1150px; height:27px; ">
  481. <caption id="caption7" class="cell_1" style="left:0px; top:0px; width:155px; height:25px; text-align:center; ">담당의/당직의 호출시간</caption>
  482. <select1 id="chk_doctorcallyn" ref="/root/main/cond/doctorcallyn" appearance="full" cols="2" overflow="visible" style="left:159px; top:4px; width:150px; height:18px; border-style:none; ">
  483. <choices>
  484. <item>
  485. <label>해당없음</label>
  486. <value>N</value>
  487. </item>
  488. <item>
  489. <label/>
  490. <value>Y</value>
  491. </item>
  492. </choices>
  493. <script type="javascript" ev:event="xforms-value-changed">
  494. <![CDATA[
  495. checkedVisibleInput(ipt_doctorcall, "/root/main/cond/doctorcalldt", model.getValue("/root/main/cond/doctorcallyn"));
  496. ]]>
  497. </script>
  498. </select1>
  499. <input id="ipt_doctorcall" ref="/root/main/cond/doctorcalldt" disabled="true" format="yyyy-mm-dd hh:nn" style="left:249px; top:4px; width:149px; height:19px; "/>
  500. <select1 id="chk_mediationyn" ref="/root/main/cond/mediationyn" appearance="full" cols="2" overflow="visible" style="left:670px; top:5px; width:150px; height:18px; border-style:none; ">
  501. <choices>
  502. <item>
  503. <label>해당없음</label>
  504. <value>N</value>
  505. </item>
  506. <item>
  507. <label/>
  508. <value>Y</value>
  509. </item>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-value-changed">
  512. <![CDATA[
  513. checkedVisibleInput(ipt_mediation, "/root/main/cond/mediationdt", model.getValue("/root/main/cond/mediationyn"));
  514. ]]>
  515. </script>
  516. </select1>
  517. <input id="ipt_mediation" ref="/root/main/cond/mediationdt" disabled="true" format="yyyy-mm-dd hh:nn" style="left:758px; top:5px; width:138px; height:19px; "/>
  518. <caption id="caption8" class="cell_1" style="left:507px; top:1px; width:156px; height:25px; text-align:center; ">중재시간</caption>
  519. </group>
  520. <caption id="caption5" class="cell_1" style="left:651px; top:253px; width:30px; height:129px; text-align:center; ">
  521. <![CDATA[어
  522. 게]]>
  523. </caption>
  524. <caption id="caption6" class="cell_1" style="left:817px; top:253px; width:30px; height:129px; text-align:center; ">왜</caption>
  525. <caption id="caption9" class="cell_1" style="left:987px; top:253px; width:31px; height:129px; text-align:center; ">
  526. <![CDATA[중
  527. 용]]>
  528. </caption>
  529. <line id="line1" class="line_3" style="x1:5px; y1:435px; x2:1172px; y2:435px; "/>
  530. <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:622px; top:252px; width:550px; height:132px; "/>
  531. <textarea id="tar_arbitrationetccnts" ref="/root/main/cond/arbitrationetccnts" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:180px; top:347px; width:435px; height:32px; "/>
  532. <select1 id="cmb_fallbfpnt" ref="/root/main/cond/fallbfpnt" disabled="true" appearance="minimal" style="left:660px; top:1px; width:60px; height:19px; ">
  533. <choices>
  534. <item>
  535. <label>정상</label>
  536. <value>101</value>
  537. </item>
  538. <item>
  539. <label>저위험</label>
  540. <value>102</value>
  541. </item>
  542. <item>
  543. <label>고위험</label>
  544. <value>103</value>
  545. </item>
  546. </choices>
  547. </select1>
  548. <select1 id="cmb_fallaftpnt" ref="/root/main/cond/fallaftpnt" disabled="true" appearance="minimal" style="left:745px; top:1px; width:60px; height:19px; ">
  549. <choices>
  550. <item>
  551. <label>정상</label>
  552. <value>101</value>
  553. </item>
  554. <item>
  555. <label>저위험</label>
  556. <value>102</value>
  557. </item>
  558. <item>
  559. <label>고위험</label>
  560. <value>103</value>
  561. </item>
  562. </choices>
  563. </select1>
  564. </group>
  565. <datagrid id="grd_druglist" nodeset="/root/main/cond/druglist/falldruginfo" visibility="hidden" caption="약품코드^접수번호^순번^약품명" colsep="^" colwidth="80, 0, 0, 150" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="29" rowsep="|" style="left:905px; top:70px; width:255px; height:132px; text-align:center; ">
  566. <col class="input_essential" ref="medidrugcd" type="output" style="left:20px; top:23px; width:59px; height:23px; text-align:center; "/>
  567. <col class="input_essential" ref="acptno" type="output" style="text-align:center; "/>
  568. <col class="input_essential" ref="seq" type="output" style="text-align:center; "/>
  569. <col class="input_essential" ref="medidrugnm" type="output" visibility="visible" style="text-align:center; "/>
  570. </datagrid>
  571. <button id="button1" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1072px; top:48px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  572. <caption>추가</caption>
  573. <script type="javascript" ev:event="DOMActivate">
  574. <![CDATA[
  575. if(grd_druglist .row >=1){ //첫번재 행 빈행인지 체크후 행추가
  576. if(grd_druglist.valuematrix(grd_druglist.row,1) != ""){
  577. grd_druglist.addRow(true,true);
  578. }
  579. }else{
  580. grd_druglist.addRow(true,true);
  581. }
  582. model.setValue("/root/temp/receivedata/receiveref", "/root/main/cond/medidrugcd");
  583. model.setValue("/root/temp/receivedata/receivenmref", "/root/main/cond/medidrugnm");
  584. model.setValue("/root/temp/receivedata/srchflag", "");
  585. model.setValue("/root/temp/receivedata/srchcnts", "");
  586. model.setValue("/root/temp/receivedata/drugkind","");
  587. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata"); //약품코드 창 띄우기
  588. var drugcd = model.getValue("/root/main/cond/medidrugcd"); //약품코드받아오기
  589. var drugnm = "";
  590. if(drugcd != ""){
  591. model.removenode("/root/send/calcscorcd");
  592. model.makeValue("/root/send/calcscorcd", drugcd);
  593. if( grd_druglist.row <= -1){ //현재 그리드 행이 그리드 밖인지 체크
  594. grd_druglist.row = 1;
  595. }
  596. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugcd", drugcd);
  597. model.resetInstanceNode("/root/main/cond/medidrugcd");
  598. var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
  599. var y= parseInt(x) +1;
  600. if(grd_druglist.row == 1 ){ //그리드 추가시 마지막 행의 seq 다음 번호를 seq 번호로 set
  601. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",grd_druglist.row);
  602. }else{
  603. var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
  604. var y= parseInt(x) +1;
  605. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",y);
  606. }
  607. var acptno = parent.model.getValue("/root/main/condition/acptno");
  608. if( acptno != ""){ //그리드행 추가시 부모창에서 접수번호를 받아옴
  609. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/acptno",acptno );
  610. }
  611. submit("TRMNR07506"); //약품코드로부터 약품명 가져오는 서브미션
  612. drugnm = model.getValue("/root/hidden/mech/hngnm");
  613. if(drugnm != ""){
  614. model.setValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugnm", drugnm);
  615. }else{
  616. messageBox("약품 유효기간이 지났습니다.","E999");
  617. }
  618. }
  619. else{ //그리드 행추가 후 값이 입력되지 않으면 행다시 삭제
  620. deleteSelectedRows(grd_druglist, true);
  621. }
  622. var str =getGridUpdateData(grd_druglist);
  623. model.setValue("/root/main/cond/drugdump",str);
  624. model.refresh();
  625. ]]>
  626. </script>
  627. </button>
  628. <button id="button5" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1118px; top:48px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  629. <caption>
  630. <![CDATA[삭제]]>
  631. </caption>
  632. <script type="javascript" ev:event="DOMActivate">
  633. <![CDATA[
  634. deleteSelectedRows(grd_druglist, true);
  635. var str =getGridUpdateData(grd_druglist);
  636. model.setValue("/root/main/cond/drugdump",str);
  637. model.refresh();
  638. ]]>
  639. </script>
  640. </button>
  641. </xhtml:body>
  642. </xhtml:html>