SMMQR00401_낙상(칠곡).xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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. <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:415px; ">
  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:357px; "/>
  215. <shape id="roundrect13" class="roundrect_example" appearance="roundrect" style="left:5px; top:317px; width:615px; height:70px; "/>
  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. <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; ">
  220. <script type="javascript" ev:event="DOMFocusOut">
  221. <![CDATA[
  222. if(model.getValue("/root/main/cond/fallbfpnt") > 100){
  223. messageBox("100을 초과할수 ", "I004");
  224. model.setValue("/root/main/cond/fallbfpnt", "");
  225. model.setFocus("ipt_fallbfpnt");
  226. model.refresh();
  227. }
  228. ]]>
  229. </script>
  230. </input>
  231. <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; ">
  232. <script type="javascript" ev:event="DOMFocusOut">
  233. <![CDATA[
  234. if(model.getValue("/root/main/cond/fallaftpnt") > 100){
  235. messageBox("100을 초과할수 ", "I004");
  236. model.setValue("/root/main/cond/fallaftpnt", "");
  237. model.setFocus("ipt_fallaftpnt");
  238. model.refresh();
  239. }
  240. ]]>
  241. </script>
  242. </input>
  243. <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; ">
  244. <caption>중증도 및 위험사정</caption>
  245. <script type="javascript" ev:event="onclick">
  246. <![CDATA[
  247. open("SMMNW04000");
  248. ]]>
  249. </script>
  250. </button>
  251. <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; ">
  252. <choices>
  253. <itemset nodeset="/root/init/falldata/cscsstat">
  254. <label ref="cscsstat/label"/>
  255. <value ref="cscsstat/value"/>
  256. </itemset>
  257. </choices>
  258. </select>
  259. <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; ">
  260. <choices>
  261. <itemset nodeset="/root/init/falldata/actfunt">
  262. <label ref="actfunt/label"/>
  263. <value ref="actfunt/value"/>
  264. </itemset>
  265. </choices>
  266. </select>
  267. <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; ">
  268. <choices>
  269. <itemset nodeset="/root/init/falldata/env">
  270. <label ref="env/label"/>
  271. <value ref="env/value"/>
  272. </itemset>
  273. </choices>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. SetVisible("tar_envcasetccntsyn", "/root/main/cond/envcasyn", "08");
  277. ]]>
  278. </script>
  279. </select>
  280. <select id="chk_bodystatyn" ref="/root/main/cond/bodystatyn" overflow="visible" appearance="full" cellspacing="100" cols="2" rows="16" sep="▦" vcellspacing="10" style="left:628px; top:65px; width:533px; height:225px; border-style:none; ">
  281. <choices>
  282. <item>
  283. <label>어지러움</label>
  284. <value>01</value>
  285. </item>
  286. <item>
  287. <label>마비</label>
  288. <value>02</value>
  289. </item>
  290. <item>
  291. <label>전신쇠약</label>
  292. <value>03</value>
  293. </item>
  294. <item>
  295. <label>근력저하</label>
  296. <value>04</value>
  297. </item>
  298. <item>
  299. <label>보행장애</label>
  300. <value>05</value>
  301. </item>
  302. <item>
  303. <label>체위성 저혈압</label>
  304. <value>06</value>
  305. </item>
  306. <item>
  307. <label>평형장애</label>
  308. <value>07</value>
  309. </item>
  310. <item>
  311. <label>정서장애(흥분/우울/불안)</label>
  312. <value>08</value>
  313. </item>
  314. <item>
  315. <label>시력장애</label>
  316. <value>09</value>
  317. </item>
  318. <item>
  319. <label>수면장애</label>
  320. <value>10</value>
  321. </item>
  322. <item>
  323. <label>인지장애</label>
  324. <value>11</value>
  325. </item>
  326. <item>
  327. <label>7세 미만 소아</label>
  328. <value>12</value>
  329. </item>
  330. <item>
  331. <label>해당사항 없음</label>
  332. <value>14</value>
  333. </item>
  334. <item>
  335. <label>약물복용</label>
  336. <value>13</value>
  337. </item>
  338. <item>
  339. <label>기타</label>
  340. <value>15</value>
  341. </item>
  342. </choices>
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. var bodystatyn = model.getValue("/root/main/cond/bodystatyn");
  346. if(bodystatyn == "13"){
  347. dreload();
  348. }
  349. SetVisible("grd_druglist", "/root/main/cond/bodystatyn", "13");
  350. SetVisible("button4", "/root/main/cond/bodystatyn", "13");
  351. SetVisible("button5", "/root/main/cond/bodystatyn", "13");
  352. SetVisible("tar_bodystatetccnts", "/root/main/cond/bodystatyn", "15");
  353. ]]>
  354. </script>
  355. </select>
  356. <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; ">
  357. <choices>
  358. <itemset nodeset="/root/init/falldata/arbitrationcnts">
  359. <label ref="newElement/label"/>
  360. <value ref="newElement/value"/>
  361. </itemset>
  362. </choices>
  363. <script type="javascript" ev:event="xforms-value-changed">
  364. <![CDATA[
  365. SetVisible("tar_arbitrationetccnts", "/root/main/cond/arbitrationcntsyn", "07");
  366. ]]>
  367. </script>
  368. </select>
  369. <caption id="cap_cscsstatyn" class="cell_2" style="left:10px; top:35px; width:70px; height:20px; vertical-align:middle; ">의식상태</caption>
  370. <caption id="cap_actfuntyn" class="cell_2" style="left:190px; top:35px; width:70px; height:20px; vertical-align:middle; ">활동/기능</caption>
  371. <caption id="cap_envcasyn" class="cell_2" style="left:370px; top:35px; width:76px; height:20px; vertical-align:middle; ">환경적 요인</caption>
  372. <caption id="cap_bodystatyn" class="cell_2" style="left:635px; top:35px; width:76px; height:20px; vertical-align:middle; ">신체상태</caption>
  373. <caption id="cap_arbitrationcntsyn" class="cell_2" style="left:10px; top:323px; width:104px; height:20px; vertical-align:middle; ">즉각적 중재 내용</caption>
  374. <select1 id="cmb_fallplcecd" ref="/root/main/cond/fallplcecd" class="combo_essential" appearance="minimal" style="left:92px; top:1px; width:185px; height:19px; ">
  375. <choices>
  376. <itemset nodeset="/root/init/falldata/fallplce/M0443">
  377. <label ref="cdnm"/>
  378. <value ref="cdid"/>
  379. </itemset>
  380. </choices>
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. model.setValue("/root/main/cond/fallplcecnts", "");
  384. if(model.getValue("/root/main/cond/fallplcecd") == "06" || model.getValue("/root/main/cond/fallplcecd") == "05"){
  385. ipt_fallplcecnts.disabled = false;
  386. }
  387. else{
  388. ipt_fallplcecnts.disabled = true;
  389. }
  390. model.refresh();
  391. ]]>
  392. </script>
  393. </select1>
  394. <select1 id="cmb_falldngrasesyn" ref="/root/main/cond/falldngrasesyn" class="combo_essential" appearance="minimal" style="left:587px; top:1px; width:50px; height:19px; ">
  395. <choices>
  396. <item>
  397. <label>Y</label>
  398. <value>Y</value>
  399. </item>
  400. <item>
  401. <label>N</label>
  402. <value>N</value>
  403. </item>
  404. </choices>
  405. <script type="javascript" ev:event="xforms-value-changed">
  406. <![CDATA[
  407. if(model.getValue("/root/main/cond/falldngrasesyn") == "Y"){
  408. ipt_fallbfpnt.disabled = false;
  409. ipt_fallaftpnt.disabled = false;
  410. cmb_fallbfpnt.disabled = false;
  411. cmb_fallaftpnt.disabled = false;
  412. button4.disabled=false;
  413. //낙상위험 점수를 자동으로 읽어오지 않고 정상, 저위험, 고위험 선택하도록 프로그램 수정.
  414. //요구사항[20150423020] 신민정선생님 요청. 2015.06.04수정일.
  415. // model.makeValue("/root/send/reqdata/pid", parent.javascript.model.getValue("/root/main/patinfo/patinfolist/pid"));
  416. // submit("TRMQR00110");
  417. // if(model.getValue("/root/tmp/fall/score")!="" && model.getValue("/root/tmp/fall/score")!=null){
  418. // model.setValue("/root/main/cond/fallbfpnt", model.getValue("/root/tmp/fall/score"));
  419. // model.refresh();
  420. // }
  421. }
  422. else{
  423. ipt_fallbfpnt.disabled = true;
  424. ipt_fallaftpnt.disabled = true;
  425. cmb_fallbfpnt.disabled = true;
  426. cmb_fallaftpnt.disabled = true;
  427. button4.disabled=true;
  428. model.setValue("/root/main/cond/fallbfpnt", "");
  429. model.setValue("/root/main/cond/fallaftpnt", "");
  430. cmb_fallbfpnt.refresh();
  431. cmb_fallaftpnt.refresh();
  432. }
  433. ]]>
  434. </script>
  435. </select1>
  436. <caption id="cap_falldngrasesyn" class="cell_1" style="left:464px; top:0px; width:121px; height:23px; vertical-align:middle; ">낙상위험 사정 유무</caption>
  437. <caption id="cap_fallplcecd" class="cell_1" style="left:0px; top:0px; width:90px; height:23px; vertical-align:middle; ">낙상장소</caption>
  438. <caption id="cap_pvneducyn" class="cell_1" style="left:937px; top:0px; width:90px; height:23px; vertical-align:middle; ">예방교육 유무</caption>
  439. <select1 id="cmb_pvneducyn" ref="/root/main/cond/pvneducyn" class="combo_essential" appearance="minimal" style="left:1030px; top:1px; width:50px; height:19px; ">
  440. <choices>
  441. <item>
  442. <label>Y</label>
  443. <value>Y</value>
  444. </item>
  445. <item>
  446. <label>N</label>
  447. <value>N</value>
  448. </item>
  449. </choices>
  450. </select1>
  451. <select1 id="cmb_bodydamcd" ref="/root/main/cond/bodydamcd" class="combo_essential" appearance="minimal" style="left:163px; top:390px; width:345px; height:19px; ">
  452. <choices>
  453. <itemset nodeset="/root/init/falldata/bodydam/M0435">
  454. <label ref="cdnm"/>
  455. <value ref="cdid"/>
  456. </itemset>
  457. </choices>
  458. <script type="javascript" ev:event="xforms-value-changed">
  459. <![CDATA[
  460. if(model.getValue("/root/main/cond/bodydamcd") == "01" ){
  461. ipt_bodypart.disabled = true;
  462. }
  463. else{
  464. ipt_bodypart.disabled = false;
  465. }
  466. ]]>
  467. </script>
  468. </select1>
  469. <caption id="cap_bodydamcd" class="cell_1" style="left:5px; top:389px; width:155px; height:23px; vertical-align:middle; ">낙상으로 인한 신체적 손상</caption>
  470. <caption id="caption2" class="cell_1" style="left:512px; top:389px; width:155px; height:23px; text-align:center; vertical-align:middle; ">손상된 신체부위</caption>
  471. <input id="ipt_bodypart" ref="/root/main/cond/bodypart" class="input_default" navindex="2" maxbyte="1000" style="left:670px; top:390px; width:495px; height:19px; "/>
  472. <textarea id="tar_bodystatetccnts" ref="/root/main/cond/bodystatetccnts" class="input_default" visibility="hidden" maxlength="50" appearance="textarea" style="left:630px; top:277px; width:180px; height:99px; "/>
  473. <caption id="caption3" style="left:645px; top:2px; width:15px; height:20px; ">전</caption>
  474. <caption id="caption4" style="left:730px; top:2px; width:15px; height:20px; ">후</caption>
  475. <line id="line1" class="line_3" style="x1:5px; y1:412px; x2:1172px; y2:412px; "/>
  476. <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; "/>
  477. <select1 id="cmb_fallbfpnt" ref="/root/main/cond/fallbfpnt" disabled="true" appearance="minimal" style="left:660px; top:1px; width:60px; height:19px; ">
  478. <choices>
  479. <item>
  480. <label>정상</label>
  481. <value>101</value>
  482. </item>
  483. <item>
  484. <label>저위험</label>
  485. <value>102</value>
  486. </item>
  487. <item>
  488. <label>고위험</label>
  489. <value>103</value>
  490. </item>
  491. </choices>
  492. </select1>
  493. <select1 id="cmb_fallaftpnt" ref="/root/main/cond/fallaftpnt" disabled="true" appearance="minimal" style="left:745px; top:1px; width:60px; height:19px; ">
  494. <choices>
  495. <item>
  496. <label>정상</label>
  497. <value>101</value>
  498. </item>
  499. <item>
  500. <label>저위험</label>
  501. <value>102</value>
  502. </item>
  503. <item>
  504. <label>고위험</label>
  505. <value>103</value>
  506. </item>
  507. </choices>
  508. </select1>
  509. </group>
  510. <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:825px; top:250px; width:270px; height:125px; text-align:center; ">
  511. <col class="input_essential" ref="medidrugcd" type="output" style="left:20px; top:23px; width:59px; height:23px; text-align:center; "/>
  512. <col class="input_essential" ref="acptno" type="output" style="text-align:center; "/>
  513. <col class="input_essential" ref="seq" type="output" style="text-align:center; "/>
  514. <col class="input_essential" ref="medidrugnm" type="output" visibility="visible" style="text-align:center; "/>
  515. </datagrid>
  516. <button id="button1" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1006px; top:229px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  517. <caption>추가</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. if(grd_druglist .row >=1){ //첫번재 행 빈행인지 체크후 행추가
  521. if(grd_druglist.valuematrix(grd_druglist.row,1) != ""){
  522. grd_druglist.addRow(true,true);
  523. }
  524. }else{
  525. grd_druglist.addRow(true,true);
  526. }
  527. model.setValue("/root/temp/receivedata/receiveref", "/root/main/cond/medidrugcd");
  528. model.setValue("/root/temp/receivedata/receivenmref", "/root/main/cond/medidrugnm");
  529. model.setValue("/root/temp/receivedata/srchflag", "");
  530. model.setValue("/root/temp/receivedata/srchcnts", "");
  531. model.setValue("/root/temp/receivedata/drugkind","");
  532. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata"); //약품코드 창 띄우기
  533. var drugcd = model.getValue("/root/main/cond/medidrugcd"); //약품코드받아오기
  534. var drugnm = "";
  535. if(drugcd != ""){
  536. model.removenode("/root/send/calcscorcd");
  537. model.makeValue("/root/send/calcscorcd", drugcd);
  538. if( grd_druglist.row <= -1){ //현재 그리드 행이 그리드 밖인지 체크
  539. grd_druglist.row = 1;
  540. }
  541. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugcd", drugcd);
  542. model.resetInstanceNode("/root/main/cond/medidrugcd");
  543. var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
  544. var y= parseInt(x) +1;
  545. if(grd_druglist.row == 1 ){ //그리드 추가시 마지막 행의 seq 다음 번호를 seq 번호로 set
  546. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",grd_druglist.row);
  547. }else{
  548. var x = grd_druglist.valueMatrix(grd_druglist.rows-2,3) ;
  549. var y= parseInt(x) +1;
  550. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/seq",y);
  551. }
  552. var acptno = parent.model.getValue("/root/main/condition/acptno");
  553. if( acptno != ""){ //그리드행 추가시 부모창에서 접수번호를 받아옴
  554. model.makeValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/acptno",acptno );
  555. }
  556. submit("TRMNR07506"); //약품코드로부터 약품명 가져오는 서브미션
  557. drugnm = model.getValue("/root/hidden/mech/hngnm");
  558. if(drugnm != ""){
  559. model.setValue("/root/main/cond/druglist/falldruginfo["+grd_druglist.row+"]/medidrugnm", drugnm);
  560. }else{
  561. messageBox("약품 유효기간이 지났습니다.","E999");
  562. }
  563. }
  564. else{ //그리드 행추가 후 값이 입력되지 않으면 행다시 삭제
  565. deleteSelectedRows(grd_druglist, true);
  566. }
  567. var str =getGridUpdateData(grd_druglist);
  568. model.setValue("/root/main/cond/drugdump",str);
  569. model.refresh();
  570. ]]>
  571. </script>
  572. </button>
  573. <button id="button5" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1052px; top:229px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  574. <caption>
  575. <![CDATA[삭제]]>
  576. </caption>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. deleteSelectedRows(grd_druglist, true);
  580. var str =getGridUpdateData(grd_druglist);
  581. model.setValue("/root/main/cond/drugdump",str);
  582. model.refresh();
  583. ]]>
  584. </script>
  585. </button>
  586. </xhtml:body>
  587. </xhtml:html>