SMATR00100_임상프로토콜관리.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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. <main>
  10. <orddeptlist>
  11. <item>
  12. <orddeptcd/>
  13. <orddeptnm/>
  14. </item>
  15. </orddeptlist>
  16. <subjlist>
  17. <item>
  18. <subjno/>
  19. <stdysubjnm/>
  20. </item>
  21. </subjlist>
  22. <prtllist>
  23. <itemin>
  24. <prtlcd/>
  25. <prtlnm/>
  26. <drugprid/>
  27. <insuqualid/>
  28. <insuqualdt/>
  29. <ordqualid/>
  30. <ordqualdt/>
  31. <pharmqualid/>
  32. <pharmqualdt/>
  33. <remark/>
  34. <drugstage/>
  35. <drugcycle/>
  36. </itemin>
  37. <itemout>
  38. <prtlcd/>
  39. <prtlnm/>
  40. <drugprid/>
  41. <insuqualid/>
  42. <insuqualdt/>
  43. <ordqualid/>
  44. <ordqualdt/>
  45. <pharmqualid/>
  46. <pharmqualdt/>
  47. <remark/>
  48. <drugstage/>
  49. <drugcycle/>
  50. </itemout>
  51. </prtllist>
  52. <prtlprcplist>
  53. <item>
  54. <drugseq/>
  55. <drugtt/>
  56. <prcpmixno/>
  57. <prcpcd/>
  58. <prcpnm/>
  59. <payflagcd/>
  60. <volkind/>
  61. <bsavol/>
  62. <kgvol/>
  63. <prcpvol/>
  64. <prcpvolunitnm/>
  65. <prcpqty/>
  66. <prcpqtyunitnm/>
  67. <drugspd/>
  68. <drugspdunitnm/>
  69. <prcptims/>
  70. <drugmthdspccd/>
  71. <prnprcpflag/>
  72. <remark/>
  73. <nursrem/>
  74. <prcpexecdeptcd/>
  75. <ordseqno/>
  76. <prcpvolunitflag/>
  77. <prcpqtyunitflag/>
  78. <drugspdunitflag/>
  79. <volrate/>
  80. </item>
  81. </prtlprcplist>
  82. <prtlinfo>
  83. <item>
  84. <fromday/>
  85. <prtlterm/>
  86. <rgstdd/>
  87. </item>
  88. </prtlinfo>
  89. </main>
  90. <send>
  91. <srchdata>
  92. <srchsubjno/>
  93. <srchflag>1</srchflag>
  94. <srchsubjendyn>A</srchsubjendyn>
  95. <subjno/>
  96. <ioflag>I</ioflag>
  97. <orddeptcd/>
  98. <sickclscd/>
  99. <prtlcd/>
  100. <cnfmyn/>
  101. <prtldg/>
  102. </srchdata>
  103. <prtlinfo>
  104. <item/>
  105. </prtlinfo>
  106. <req>
  107. <prtlprcpdata/>
  108. </req>
  109. <prcpdata>
  110. <cond1/>
  111. <cond2/>
  112. <cond3/>
  113. <cond4>11</cond4>
  114. </prcpdata>
  115. </send>
  116. <init>
  117. <comboitem>
  118. <payflagcd>
  119. <P0104>
  120. <cdid/>
  121. <cdnm/>
  122. </P0104>
  123. </payflagcd>
  124. </comboitem>
  125. </init>
  126. <hidden>
  127. <ret>
  128. <item/>
  129. </ret>
  130. <receivemthd>/root/hidden/mthdcd</receivemthd>
  131. <receivedrugcd>/root/hidden/drugcd</receivedrugcd>
  132. <drugcd/>
  133. <mthdcd/>
  134. <prcpinfo/>
  135. </hidden>
  136. <temp>
  137. <receivedata>
  138. <receiveref/>
  139. <srchflag/>
  140. <srchcnts/>
  141. <drugkind/>
  142. </receivedata>
  143. </temp>
  144. </root>
  145. </instance>
  146. <script type="javascript" ev:event="xforms-ready">
  147. <![CDATA[
  148. zbcfGetCodeList( new Array("P0104"), new Array("/root/init/comboitem/payflagcd") );
  149. submit("TRATR00101");
  150. ]]>
  151. </script>
  152. <submission id="TRZBC00101"/>
  153. <submission id="TRADB00803" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtllist"/>
  154. <submission id="TRADB00804" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtlinfo"/>
  155. <submission id="TRADB00805" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/prtlprcplist"/>
  156. <submission id="TRADB00806" ref="/root/send/prcpdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/prcpinfo"/>
  157. <submission id="TRADB00807" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
  158. <submission id="TXADB00801" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
  159. <submission id="TXADB00802" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
  160. <submission id="TXADB00803" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/ret"/>
  161. <submission id="TRATR00101" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/subjlist"/>
  162. </model>
  163. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  165. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  166. <script type="javascript">
  167. <![CDATA[
  168. function DOMActivate(){
  169. //event.stopPropagation();
  170. var controlObj = document.controls(event.currentTarget);
  171. if (controlObj != null){
  172. var btn_text =controlObj.text;
  173. if ( btn_text.substring(0,1)=="D" ){
  174. model.setValue( "/root/send/srchdata/prtldg" ,btn_text.substring(1, btn_text.length) );
  175. submit("TRADB00805");
  176. /*if (grd_prtlprcp.rows<20){
  177. for ( var i = 0; i< 20-grd_prtlprcp.rows; i++){
  178. grd_prtlprcp.addItem();
  179. }
  180. grd_prtlprcp.refresh();
  181. }*/
  182. }
  183. }
  184. return;
  185. }
  186. function fSaveData(){
  187. model.copyNode( "/root/send/prtlinfo/item","root/main/prtlinfo/item");
  188. model.setValue("/root/send/req/prtlprcpdata",grd_prtlprcp.getUpdateData());
  189. submit("TXADB00801");
  190. submit("TXADB00802");
  191. submit("TRADB00805");
  192. }
  193. function fSetTab(){
  194. var fromday = model.getValue("/root/main/prtlinfo/item/fromday");
  195. var terms = model.getValue("/root/main/prtlinfo/item/prtlterm");
  196. if (fromday=="") {
  197. return false;
  198. }
  199. for ( var i =0; i<27 ; i++){
  200. (document.controls("btn_d" +(i+1))).visible=false;
  201. }
  202. for ( var i =0; i<terms ; i++){
  203. (document.controls("btn_d" +(i+1))).text = "D" + (parseInt(fromday,10)+i);
  204. (document.controls("btn_d" +(i+1))).visible=true;
  205. }
  206. }
  207. function fSetPrcpCd(){
  208. /* 수가조회 */
  209. model.setValue("/root/send/prcpdata/cond1",model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd"));
  210. model.setValue("/root/send/prcpdata/cond2","-");
  211. model.setValue("/root/send/prcpdata/cond3", getCurrentDate() );
  212. submit("TRADB00806");
  213. if (model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd")=="" ) {
  214. return;
  215. }
  216. /* 수가조회후 정보 셋팅 */
  217. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd", model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd"));
  218. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpnm"));
  219. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/payflagcd", model.getValue("/root/hidden/prcpinfo/prcplist/payflagcd"));
  220. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvol"));
  221. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqty"));
  222. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcptims", model.getValue("/root/hidden/prcpinfo/prcplist/prcptims"));
  223. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugmthdspccd", model.getValue("/root/hidden/prcpinfo/prcplist/drugmthdspccd"));
  224. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvolunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvolunitnm"));
  225. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvolunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/prcpvolunitflag"));
  226. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqtyunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqtyunitnm"));
  227. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqtyunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/prcpqtyunitflag"));
  228. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugspdunitnm", model.getValue("/root/hidden/prcpinfo/prcplist/drugspdunitnm"));
  229. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugspdunitflag", model.getValue("/root/hidden/prcpinfo/prcplist/drugspdunitflag"));
  230. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpexecdeptcd", model.getValue("/root/hidden/prcpinfo/prcplist/prcpexecdeptcd"));
  231. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate", model.getValue("/root/hidden/prcpinfo/prcplist/drugcntsvol"));
  232. }
  233. ]]>
  234. </script>
  235. </xhtml:head>
  236. <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  237. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  238. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">임상 프로토콜 내역 등록</caption>
  239. </group>
  240. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  241. <input id="input7" ref="/root/main/prtlinfo/item/rgstdd" class="input_default" inputtype="date" style="left:360px; top:261px; width:100px; height:19px; "/>
  242. <button id="button1" class="btn5_letter4" visibility="visible" style="left:972px; top:265px; width:64px; height:19px; ">
  243. <caption>전체복사</caption>
  244. </button>
  245. <button id="button2" class="btn2_letter5" visibility="visible" style="left:777px; top:265px; width:75px; height:19px; ">
  246. <caption>처방별 조회</caption>
  247. </button>
  248. <button id="button3" class="btn5_letter4" visibility="visible" style="left:1040px; top:265px; width:64px; height:19px; ">
  249. <caption>일자복사</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. group5.visible= true;
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="button4" class="btn2_letter6" visibility="visible" style="left:575px; top:265px; width:86px; height:19px; ">
  257. <caption>프로토콜 조회</caption>
  258. </button>
  259. <button id="button5" class="btn5_letter6" visibility="visible" style="left:1108px; top:265px; width:86px; height:19px; ">
  260. <caption>외래입원복사</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. if ( messageBox("외래입원복사를 ","Q004")==6 ) {
  264. submit("TXADB00803");
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. <group id="group2" style="left:0px; top:5px; width:1195px; height:230px; ">
  270. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:225px; background-color:#fffbf2; border-color:#ffd799; "/>
  271. <caption id="caption1" class="search_name" style="left:675px; top:11px; width:130px; height:17px; ">프로토콜정보 :</caption>
  272. <caption id="caption2" class="search_name" style="left:10px; top:11px; width:91px; height:17px; ">과제정보 :</caption>
  273. <switch id="switch1" style="left:675px; top:55px; width:510px; height:165px; ">
  274. <case id="case1" selected="true">
  275. <datagrid id="grd_prtlin" nodeset="/root/main/prtllist/itemin" caption="코드^코드명^시행차수" colwidth="76, 343, 62" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:0px; width:505px; height:160px; ">
  276. <col ref="prtlcd"/>
  277. <col ref="prtlnm"/>
  278. <col ref="ordqualid"/>
  279. <script type="javascript" ev:event="onclick">
  280. <![CDATA[
  281. model.setValue("/root/send/srchdata/ioflag","I");
  282. model.setValue("/root/send/srchdata/prtlcd",model.getValue("/root/main/prtllist/itemin["+grd_prtlin.row+"]/prtlcd"));
  283. submit("TRADB00804");
  284. model.removeNodeset("/root/main/prtlprcplist/item");
  285. model.setValue("/root/send/srchdata/prtldg","");
  286. model.refresh();
  287. fSetTab();
  288. ]]>
  289. </script>
  290. </datagrid>
  291. </case>
  292. <case id="case2">
  293. <datagrid id="grd_prtlout" nodeset="/root/main/prtllist/itemout" caption="코드^코드명^투여주기^보험팀확인^보험팀확인일시^진료확인^진료확인일시^약제팀확인^약제팀확인일시^Remark^투여단계^Cycle" colwidth="76, 208, 60, 83, 100, 62, 100, 77, 100, 100, 61, 57" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:0px; width:905px; height:160px; ">
  294. <col ref="prtlcd"/>
  295. <col ref="prtlnm"/>
  296. <col ref="drugprid"/>
  297. <col ref="insuqualid"/>
  298. <col ref="insuqualdt"/>
  299. <col ref="ordqualid"/>
  300. <col ref="ordqualdt"/>
  301. <col ref="pharmqualid"/>
  302. <col ref="pharmqualdt"/>
  303. <col ref="remark"/>
  304. <col ref="drugstage"/>
  305. <col ref="drugcycle"/>
  306. <script type="javascript" ev:event="onclick">
  307. <![CDATA[
  308. model.setValue("/root/send/srchdata/ioflag","O");
  309. model.setValue("/root/send/srchdata/prtlcd",model.getValue("/root/main/prtllist/itemout["+grd_prtlout.row+"]/prtlcd"));
  310. submit("TRADB00804");
  311. ]]>
  312. </script>
  313. </datagrid>
  314. </case>
  315. </switch>
  316. <button id="button11" class="btn_sw" group="iotab" selected="true" style="left:676px; top:34px; width:60px; height:22px; ">
  317. <caption>입원</caption>
  318. <toggle case="case1" ev:event="onclick"/>
  319. </button>
  320. <button id="button12" class="btn_sw" group="iotab" style="left:735px; top:34px; width:60px; height:22px; ">
  321. <caption>외래</caption>
  322. <toggle case="case2" ev:event="onclick"/>
  323. </button>
  324. <button id="button14" class="btn2_letter2" visibility="visible" style="left:1100px; top:35px; width:42px; height:19px; ">
  325. <caption>추가</caption>
  326. </button>
  327. <button id="button19" class="btn2_letter2" visibility="visible" style="left:1143px; top:35px; width:42px; height:19px; ">
  328. <caption>삭제</caption>
  329. </button>
  330. <datagrid id="grd_subjlist" nodeset="/root/main/subjlist/item" caption="과제코드^과제명" colwidth="100, 531" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:10px; top:55px; width:660px; height:160px; ">
  331. <col ref="subjno"/>
  332. <col ref="stdysubjnm"/>
  333. <script type="javascript" ev:event="onclick">
  334. <![CDATA[
  335. if ( grd_subjlist.row>0){
  336. model.setValue("/root/send/srchdata/sickclscd",model.getValue("/root/main/sicklist/item["+grd_subjlist.row+"]/sickclscd"));
  337. submit("TRADB00803");
  338. }
  339. ]]>
  340. </script>
  341. </datagrid>
  342. </group>
  343. <caption id="caption12" class="cell_1" style="left:0px; top:260px; width:55px; height:23px; vertical-align:middle; ">시작일</caption>
  344. <button id="button52" class="btn2_letter3" style="left:1031px; top:299px; width:53px; height:19px; ">
  345. <caption>행추가</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. grd_prtlprcp.addItem();
  349. /* 투약순서 셋팅 */
  350. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugseq", grd_prtlprcp.rows-1);
  351. ]]>
  352. </script>
  353. </button>
  354. <line id="line1" class="line_2" style="x1:0px; y1:285px; x2:1195px; y2:285px; "/>
  355. <caption id="caption5" class="tit_2" style="left:5px; top:239px; width:135px; height:13px; ">프로토콜 내역</caption>
  356. <button id="button53" class="btn2_letter3" visibility="visible" style="left:1141px; top:299px; width:53px; height:19px; ">
  357. <caption>행삭제</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. grd_prtlprcp.addStatus(grd_prtlprcp.row,"delete");
  361. ]]>
  362. </script>
  363. </button>
  364. <input id="input1" ref="/root/main/prtlinfo/item/prtlterm" class="input_search" maxlength="2" style="left:215px; top:261px; width:40px; height:19px; ">
  365. <script type="javascript" ev:event="xforms-value-changed">
  366. <![CDATA[
  367. fSetTab();
  368. ]]>
  369. </script>
  370. </input>
  371. <caption id="caption6" class="cell_1" style="left:115px; top:260px; width:95px; height:23px; vertical-align:middle; ">프로토콜 기간</caption>
  372. <button id="button10" class="btn2_letter8" visibility="visible" style="left:665px; top:265px; width:108px; height:19px; ">
  373. <caption>신규프로토콜 조회</caption>
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. open("SMADB00900", 0,20,10,"SMADB00900");
  377. ]]>
  378. </script>
  379. </button>
  380. <button id="button54" class="btn2_letter3" visibility="visible" style="left:1086px; top:299px; width:53px; height:19px; ">
  381. <caption>행복사</caption>
  382. </button>
  383. <caption id="caption7" class="cell_1" style="left:260px; top:260px; width:95px; height:23px; vertical-align:middle; ">등록일자</caption>
  384. <line id="line3" class="line_1" style="x1:0px; y1:255px; x2:1195px; y2:255px; "/>
  385. <input id="input2" ref="/root/main/prtlinfo/item/fromday" class="input_search" maxlength="3" style="left:60px; top:261px; width:45px; height:19px; "/>
  386. <line id="line4" class="line_3" style="x1:0px; y1:742px; x2:1195px; y2:742px; "/>
  387. <button id="btn_d1" class="btn_sw" visibility="hidden" group="tab" style="left:3px; top:298px; width:37px; height:22px; ">
  388. <caption/>
  389. </button>
  390. <button id="btn_d2" class="btn_sw" visibility="hidden" group="tab" style="left:40px; top:298px; width:37px; height:22px; ">
  391. <caption/>
  392. </button>
  393. <button id="btn_d3" class="btn_sw" visibility="hidden" group="tab" style="left:77px; top:298px; width:37px; height:22px; ">
  394. <caption/>
  395. </button>
  396. <button id="btn_d4" class="btn_sw" visibility="hidden" group="tab" style="left:114px; top:298px; width:37px; height:22px; ">
  397. <caption/>
  398. </button>
  399. <button id="btn_d5" class="btn_sw" visibility="hidden" group="tab" style="left:151px; top:298px; width:37px; height:22px; ">
  400. <caption/>
  401. </button>
  402. <button id="btn_d6" class="btn_sw" visibility="hidden" group="tab" style="left:188px; top:298px; width:37px; height:22px; ">
  403. <caption/>
  404. </button>
  405. <button id="btn_d7" class="btn_sw" visibility="hidden" group="tab" style="left:225px; top:298px; width:37px; height:22px; ">
  406. <caption/>
  407. </button>
  408. <button id="btn_d8" class="btn_sw" visibility="hidden" group="tab" style="left:262px; top:298px; width:37px; height:22px; ">
  409. <caption/>
  410. </button>
  411. <button id="btn_d9" class="btn_sw" visibility="hidden" group="tab" style="left:299px; top:298px; width:37px; height:22px; ">
  412. <caption/>
  413. </button>
  414. <button id="btn_d10" class="btn_sw" visibility="hidden" group="tab" style="left:336px; top:298px; width:37px; height:22px; ">
  415. <caption/>
  416. </button>
  417. <button id="btn_d11" class="btn_sw" visibility="hidden" group="tab" style="left:373px; top:298px; width:37px; height:22px; ">
  418. <caption/>
  419. </button>
  420. <button id="btn_d12" class="btn_sw" visibility="hidden" group="tab" style="left:410px; top:298px; width:37px; height:22px; ">
  421. <caption/>
  422. </button>
  423. <button id="btn_d13" class="btn_sw" visibility="hidden" group="tab" style="left:447px; top:298px; width:37px; height:22px; ">
  424. <caption/>
  425. </button>
  426. <button id="btn_d14" class="btn_sw" visibility="hidden" group="tab" style="left:484px; top:298px; width:37px; height:22px; ">
  427. <caption/>
  428. </button>
  429. <button id="btn_d15" class="btn_sw" visibility="hidden" group="tab" style="left:521px; top:298px; width:37px; height:22px; ">
  430. <caption/>
  431. </button>
  432. <button id="btn_d16" class="btn_sw" visibility="hidden" group="tab" style="left:558px; top:298px; width:37px; height:22px; ">
  433. <caption/>
  434. </button>
  435. <button id="btn_d17" class="btn_sw" visibility="hidden" group="tab" style="left:595px; top:298px; width:37px; height:22px; ">
  436. <caption/>
  437. </button>
  438. <button id="btn_d18" class="btn_sw" visibility="hidden" group="tab" style="left:632px; top:298px; width:37px; height:22px; ">
  439. <caption/>
  440. </button>
  441. <button id="btn_d19" class="btn_sw" visibility="hidden" group="tab" style="left:669px; top:298px; width:37px; height:22px; ">
  442. <caption/>
  443. </button>
  444. <button id="btn_d20" class="btn_sw" visibility="hidden" group="tab" style="left:706px; top:298px; width:37px; height:22px; ">
  445. <caption/>
  446. </button>
  447. <button id="btn_d21" class="btn_sw" visibility="hidden" group="tab" style="left:743px; top:298px; width:37px; height:22px; ">
  448. <caption/>
  449. </button>
  450. <button id="btn_d22" class="btn_sw" visibility="hidden" group="tab" style="left:780px; top:298px; width:37px; height:22px; ">
  451. <caption/>
  452. </button>
  453. <button id="btn_d23" class="btn_sw" visibility="hidden" group="tab" style="left:817px; top:298px; width:37px; height:22px; ">
  454. <caption/>
  455. </button>
  456. <button id="btn_d24" class="btn_sw" visibility="hidden" group="tab" style="left:854px; top:298px; width:37px; height:22px; ">
  457. <caption/>
  458. </button>
  459. <button id="btn_d25" class="btn_sw" visibility="hidden" group="tab" style="left:891px; top:298px; width:37px; height:22px; ">
  460. <caption/>
  461. </button>
  462. <button id="btn_d26" class="btn_sw" visibility="hidden" group="tab" style="left:928px; top:298px; width:37px; height:22px; ">
  463. <caption/>
  464. </button>
  465. <button id="btn_d27" class="btn_sw" visibility="hidden" group="tab" style="left:965px; top:298px; width:37px; height:22px; ">
  466. <caption/>
  467. </button>
  468. <datagrid id="grd_prtlprcp" nodeset="/root/main/prtlprcplist/item" class="datagrid2" caption="투약순서^투약시간^MIX^코드^처방명^급여^1일용량^단위^1일수량^단위^투여속도^단위^횟수^복용법/검체^PRN^전달사항^간호^실행부서^^처방순번^^^" colwidth="37, 36, 36, 104, 220, 51, 51, 37, 56, 34, 56, 33, 36, 74, 40, 66, 42, 59, 1, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" selectionmode="listbox" rowsep="|" colsep="^" style="left:0px; top:320px; width:1194px; height:420px; ">
  469. <col ref="drugseq" type="input" style="text-align:right; "/>
  470. <col ref="drugtt" type="input"/>
  471. <col ref="prcpmixno" type="input"/>
  472. <col ref="prcpcd" type="inputbutton" imemode="alpha"/>
  473. <col ref="prcpnm" type="input"/>
  474. <col ref="payflagcd" type="combo">
  475. <choices>
  476. <itemset nodeset="/root/init/comboitem/payflagcd/P0104">
  477. <label ref="cdnm"/>
  478. <value ref="cdid"/>
  479. </itemset>
  480. </choices>
  481. </col>
  482. <col ref="prcpvol" type="input" style="text-align:right; "/>
  483. <col ref="prcpvolunitnm"/>
  484. <col ref="prcpqty" type="input" style="text-align:right; "/>
  485. <col ref="prcpqtyunitnm"/>
  486. <col ref="drugspd" style="text-align:right; "/>
  487. <col ref="drugspdunitnm"/>
  488. <col ref="prcptims" type="input" style="text-align:right; "/>
  489. <col ref="drugmthdspccd" type="inputbutton"/>
  490. <col ref="prnprcpflag" type="checkbox" checkvalue="Y,N"/>
  491. <col ref="remark" type="inputbutton"/>
  492. <col ref="nursrem" type="inputbutton"/>
  493. <col ref="prcpexecdeptcd" type="inputbutton"/>
  494. <col ref="ordseqno"/>
  495. <col ref="prcpvolunitflag"/>
  496. <col ref="prcpqtyunitflag"/>
  497. <col ref="drugspdunitflag"/>
  498. <col ref="volrate"/>
  499. <script type="javascript" ev:event="onbuttonclick">
  500. <![CDATA[
  501. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("drugmthdspccd") ){
  502. //grd_prtlprcp.editCell();
  503. modal("SPADB61200",0,600,150,"SPADB61200","/root/hidden/receivemthd","/root/hidden/receiveref");
  504. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugmthdspccd", model.getValue("/root/hidden/mthdcd"));
  505. //grd_prtlprcp.endEditCell();
  506. grd_prtlprcp.addStatus(grd_prtlprcp.row,"update");
  507. }
  508. ]]>
  509. </script>
  510. <script type="javascript" ev:event="onkeypress">
  511. <![CDATA[
  512. if (event.keyCode==13){
  513. //grd_prtlprcp.endEditCell();
  514. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpcd") ){
  515. fSetPrcpCd();
  516. }
  517. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpcd") ){
  518. if (model.getValue("/root/hidden/prcpinfo/prcplist/prcpcd")=="" ) {
  519. grd_prtlprcp.editCell();
  520. return;
  521. }
  522. /* 커서 이동 */
  523. grd_prtlprcp.col = grd_prtlprcp.colRef("prcpvol");
  524. grd_prtlprcp.editCell();
  525. return;
  526. }
  527. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("drugseqno") ){
  528. /* 커서 이동 */
  529. grd_prtlprcp.col = grd_prtlprcp.colRef("prcpcd");
  530. grd_prtlprcp.editCell();
  531. return;
  532. }
  533. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("bsavol") ){
  534. /*적용구분을 BSA로 셋팅 */
  535. if (model.getValue( "/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/bsavol")!="") {
  536. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volkind","1");
  537. }
  538. }
  539. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpvol") ){
  540. /* 커서 이동 */
  541. grd_prtlprcp.col = grd_prtlprcp.colRef("prcptims");
  542. grd_prtlprcp.editCell();
  543. return;
  544. }
  545. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("kgvol") ){
  546. /*적용구분을 KG로 셋팅 */
  547. if (model.getValue( "/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/kgvol")!="") {
  548. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volkind","2");
  549. }
  550. }
  551. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpvol") ){
  552. /* 수량재계산 */
  553. var volrate = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate");
  554. var prcpvol = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol");
  555. var prcpqty = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty");
  556. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty", parseFloat(prcpvol)/parseFloat(volrate));
  557. return;
  558. }
  559. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcpqty") ){
  560. /* 용량량재계산 */
  561. var volrate = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/volrate");
  562. var prcpvol = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol");
  563. var prcpqty = model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpqty");
  564. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpvol", parseFloat(prcpqty)*parseFloat(volrate));
  565. return;
  566. }
  567. if ( grd_prtlprcp.col== grd_prtlprcp.colRef("prcptims") ){
  568. /* 커서 이동 */
  569. if (model.getValue("/root/main/prtlprcplist/item["+(grd_prtlprcp.rows-1)+"]/prcpcd") != ""){
  570. grd_prtlprcp.addItem();
  571. /* 투약순서 셋팅 */
  572. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/drugseq", grd_prtlprcp.rows-1);
  573. } else {
  574. if (grd_prtlprcp.row!= grd_prtlprcp.rows){
  575. grd_prtlprcp.row = grd_prtlprcp.row+1;
  576. }
  577. }
  578. //grd_prtlprcp.row = grd_prtlprcp.row+1;
  579. grd_prtlprcp.col = grd_prtlprcp.colRef("prcpcd");
  580. grd_prtlprcp.editCell();
  581. return;
  582. }
  583. }
  584. ]]>
  585. </script>
  586. </datagrid>
  587. <button id="button13" class="btn5_letter2" visibility="visible" style="left:975px; top:299px; width:42px; height:19px; ">
  588. <caption>Mix</caption>
  589. <script type="javascript" ev:event="DOMActivate">
  590. <![CDATA[
  591. var mixno=0;
  592. for ( var i =0 ; i< grd_prtlprcp.rows;i++){
  593. if (model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")!=""){
  594. if (parseInt( (model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")).substring(1,2))> mixno ){
  595. mixno = parseInt((model.getValue("/root/main/prtlprcplist/item["+i+"]/prcpmixno")).substring(1,2));
  596. }
  597. }
  598. }
  599. for ( var i =0 ; i< grd_prtlprcp.selectedRows;i++){
  600. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.selectedRow(i)+"]/prcpmixno", "M"+ (mixno+1));
  601. }
  602. grd_prtlprcp.refresh();
  603. ]]>
  604. </script>
  605. </button>
  606. <button id="button15" class="btn2_letter4" visibility="visible" style="left:855px; top:265px; width:75px; height:19px; ">
  607. <caption>처방검색</caption>
  608. <script type="javascript" ev:event="DOMActivate">
  609. <![CDATA[
  610. model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  611. model.setValue("/root/temp/receivedata/srchflag", "");
  612. model.setValue("/root/temp/receivedata/srchcnts", "");
  613. model.setValue("/root/temp/receivedata/drugkind","");
  614. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  615. if ( model.getValue("/root/hidden/drugcd") ==""){
  616. return;
  617. }
  618. if ( (model.getValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd")).trim !=""){
  619. grd_prtlprcp.addItem();
  620. }
  621. model.setValue("/root/main/prtlprcplist/item["+grd_prtlprcp.row+"]/prcpcd", model.getValue("/root/hidden/drugcd") );
  622. fSetPrcpCd();
  623. ]]>
  624. </script>
  625. </button>
  626. <button id="button16" class="icon_search" style="left:463px; top:264px; width:16px; height:16px; ">
  627. <caption/>
  628. <script type="javascript" ev:event="DOMActivate">
  629. <![CDATA[
  630. //window.load("SPADB60100_약품검색.xrw","modal","code", "left:100px; top:150px; width:850px; height:730px;min:hidden;max:hidden;resize:false;");
  631. modal("SPADB60100",0,100,150,"SPADB60100","/root/hidden/receivedrugcd","/root/hidden/receiveref");
  632. //modal("SPADB60100");
  633. fGetDrugCode();
  634. ]]>
  635. </script>
  636. </button>
  637. <group id="group5" visibility="hidden" style="left:885px; top:285px; width:305px; height:105px; border-color:#000080; border-width:2; border-style:solid; ">
  638. <button id="button17" class="btn4_letter4" visibility="visible" style="left:83px; top:73px; width:80px; height:22px; ">
  639. <caption>복사실행</caption>
  640. <script type="javascript" ev:event="DOMActivate">
  641. <![CDATA[
  642. model.setValue("/root/send/srchdata/cnfmyn", "N");
  643. fSaveData();
  644. ]]>
  645. </script>
  646. </button>
  647. <button id="button18" class="btn4_letter2" visibility="visible" style="left:168px; top:73px; width:56px; height:22px; ">
  648. <caption>닫기</caption>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. group5.visible= false;
  652. ]]>
  653. </script>
  654. </button>
  655. <select id="chk_d" overflow="visible" appearance="full" style="left:18px; top:13px; width:100px; height:20px; border-style:none; ">
  656. <choices/>
  657. </select>
  658. </group>
  659. </group>
  660. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  661. <button id="button6" class="btn4_letter4" visibility="visible" style="left:990px; top:5px; width:80px; height:22px; ">
  662. <caption>임시저장</caption>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. model.setValue("/root/send/srchdata/cnfmyn", "N");
  666. fSaveData();
  667. ]]>
  668. </script>
  669. </button>
  670. <button id="button7" class="btn4_letter2" visibility="visible" style="left:1076px; top:5px; width:56px; height:22px; ">
  671. <caption>저장</caption>
  672. <script type="javascript" ev:event="DOMActivate">
  673. <![CDATA[
  674. model.setValue("/root/send/srchdata/cnfmyn", "Y");
  675. fSaveData();
  676. ]]>
  677. </script>
  678. </button>
  679. <button id="button8" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  680. <caption>확인</caption>
  681. </button>
  682. </group>
  683. </xhtml:body>
  684. </xhtml:html>