SPMMO00700_임시처방.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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>예약처방</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcp>
  11. <prcplist>
  12. <status/>
  13. <prcpstatcd/>
  14. <prcpclscd/>
  15. <prcpkindcd/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpvol/>
  19. <prcpvolunitnm/>
  20. <prcpqty/>
  21. <prcpqtyunitnm/>
  22. <prcptims/>
  23. <prcpdayno/>
  24. <drugmthdspccdnm/>
  25. <prcpmixno/>
  26. <payflagcd/>
  27. <prcpdelivefact/>
  28. <hosinhosoutflag/>
  29. <prcpexecdeptcd/>
  30. <prcphopedd/>
  31. <choiordflag/>
  32. <rgstdt/>
  33. <rgstridnm/>
  34. <testrsltunit/>
  35. <testrsltcnts/>
  36. <prcpgenrflag/>
  37. <prcphistcd/>
  38. <tempprcpflag/>
  39. <prcpsetcd/>
  40. <prcpvolunitflag/>
  41. <prcpqtyunitflag/>
  42. <orgprcpqty/>
  43. <drugspd/>
  44. <drugspdunitflag/>
  45. <powdflag/>
  46. <prnprcpflag/>
  47. <prepprcpflag/>
  48. <selfprcpflag/>
  49. <selfdrugflag/>
  50. <drugpackflag/>
  51. <erprcpflag/>
  52. <precureprcpflag/>
  53. <nigtprcpflag/>
  54. <portprcpflag/>
  55. <fixprcpflag/>
  56. <anamneflag/>
  57. <fastprcpflag/>
  58. <erreadflag/>
  59. <prcpdirecflag/>
  60. <tnsuseflag/>
  61. <tnsfiltflag/>
  62. <trnptbftestflag/>
  63. <offictourhealexamflag/>
  64. <stemcellflag/>
  65. <angioflagcd/>
  66. <opansflagcd/>
  67. <ansttm/>
  68. <mealcalrcnts/>
  69. <mealprotcnts/>
  70. <mealupdtflag/>
  71. <hosinprcpresncd/>
  72. <etcprcpresncd/>
  73. <drugmthdspccd/>
  74. <issdeptcd/>
  75. <prcpauthflag/>
  76. <prcpinptflag/>
  77. <prcpsignflag/>
  78. <rateprcpflag/>
  79. <prcprefseq/>
  80. <ordreqlnkno/>
  81. <testreqlnkno/>
  82. <prcplnkdd/>
  83. <prcplnkno/>
  84. <oprsrvno/>
  85. <tootfact/>
  86. <clinccmtcnts/>
  87. <prcpessninptflag/>
  88. <grupsnglflag/>
  89. <drugrateqty/>
  90. <asttestflag/>
  91. <clincstdyflag/>
  92. <prtlno/>
  93. <clincstdycd/>
  94. <optermcd/>
  95. <prcpflag/>
  96. <hscttempprcpflag/>
  97. <inclprcpcd/>
  98. <inclprcpno/>
  99. <pampkspec/>
  100. <prcppkspec/>
  101. <calcscormastspec/>
  102. <drugmastspec/>
  103. <rateprcpspec/>
  104. <matrsetprcpspec/>
  105. <suppdeptspec/>
  106. <contprcpspec/>
  107. <etclnkspec/>
  108. <srchcondcnts/>
  109. <orgprcpnm/>
  110. <chkcol/>
  111. <hsctdelivepos/>
  112. <hsctlnkno/>
  113. <etcprcpflag/>
  114. <aftcertflag/>
  115. <aftcertdrid/>
  116. <prcpvalidd/>
  117. <insukind/>
  118. <specdrid/>
  119. <anticncrprtlno/>
  120. <anticncrdayno/>
  121. <druglnkno/>
  122. <drprcpetc1/>
  123. <drprcpetc2/>
  124. <drprcpetc3/>
  125. <drprcpetc4/>
  126. <drprcpetc5/>
  127. <drprcpetc6/>
  128. <drprcpetc7/>
  129. <drprcpetc8/>
  130. <drprcpetc9/>
  131. <drprcpetc10/>
  132. <tempcol1/>
  133. <tempcol2/>
  134. <tempcol3/>
  135. <tempcol4/>
  136. <tempcol5/>
  137. <tempcol6/>
  138. <tempcol7/>
  139. <tempcol8/>
  140. <tempcol9/>
  141. <tempcol10/>
  142. <tempcol11/>
  143. <tempcol12/>
  144. <tempcol13/>
  145. <tempcol14/>
  146. <tempcol15/>
  147. <tempcol16/>
  148. <tempcol17/>
  149. <tempcol18/>
  150. <tempcol19/>
  151. <tempcol20/>
  152. <tempcol21/>
  153. <tempcol22/>
  154. <tempcol23/>
  155. <tempcol24/>
  156. <tempcol25/>
  157. </prcplist>
  158. </prcp>
  159. </main>
  160. <init>
  161. <prcpkindcd/>
  162. <prcpclscd/>
  163. <prcpstatcd/>
  164. <hosinprcpresncd/>
  165. <payflagcd/>
  166. <orddept/>
  167. </init>
  168. <prcptemp/>
  169. <temp/>
  170. </root>
  171. </instance>
  172. <script type="javascript" ev:event="xforms-model-construct-done">
  173. <![CDATA[
  174. var colHidnValue = grdBaseColHidn("D");
  175. grdBaseColHidn(colHidnValue, "grd_prcplist", 40, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
  176. zbcfGetCodeList(new Array("M0003",
  177. "M0005",
  178. "M0011",
  179. "M0037",
  180. "M0029"),
  181. new Array("/root/init/prcpkindcd",
  182. "/root/init/prcpclscd",
  183. "/root/init/prcpstatcd",
  184. "/root/init/hosinprcpresncd",
  185. "/root/init/payflagcd"));
  186. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  187. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "I");
  188. //약처방D/C처리
  189. var SPMMO00700_rtn1 = opener.javascript.getParameter ( "SPMMO00700_rtn1" );
  190. if ( SPMMO00700_rtn1 == "drugdc" ) {
  191. document.title ="간호반납요청";
  192. caption1.value = "간호반납요청";
  193. grd_prcplist.colHidden(0) = true;
  194. caption2.visible = false;
  195. } else if(SPMMO00700_rtn1 == "tellprcp" ) {
  196. document.title ="구두처방확인";
  197. caption1.value = "구두처방확인";
  198. grd_prcplist.colHidden(0) = true;
  199. caption2.visible = false;
  200. btn_save.visible = false; // 저장버튼
  201. btn_conf.visible = true; // 확인버튼
  202. }
  203. var srcNodeList = model.instances(0).selectNodes( "/root/main/prcp/prcplist" );
  204. //임시처방 C 세팅
  205. for ( var i=1; i <= srcNodeList.length; i++ ) {
  206. model.setValue ( "/root/main/prcp/prcplist[" + i + "]/status", "C" );
  207. }
  208. model.refresh();
  209. ]]>
  210. </script>
  211. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  212. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  213. <submission id="TXMMO00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/prcp/prcplist" resultref="/root/temp"/>
  214. </model>
  215. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  216. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  217. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  218. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  219. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  220. </xhtml:head>
  221. <xhtml:body pagewidth="1000" pageheight="660" guideline="2,314;">
  222. <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" dragmode="true" dropmode="true" caption="^상태^분류^종류^처방코드^처방명^총용량^1회용량^1회용량^총수량^1회수량^1회수량^횟수^일수^용법/검체^MIX^급비^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자^전달" colsep="^" colwidth="38, 55, 0, 50, 80, 250, 45, 45, 37, 37, 37, 37, 40, 37, 106, 38, 44, 40, 50, 100, 100, 60, 120, 80" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="byrow" tooltip="true" navindex="1" style="left:7px; top:21px; width:986px; height:607px; focus-rect:hidden; ">
  223. <col checkvalue="U,C" ref="status" type="checkbox" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; ">
  224. <choices>
  225. <item>
  226. <label>검색</label>
  227. <value>S</value>
  228. </item>
  229. <item>
  230. <label>신규</label>
  231. <value>I</value>
  232. </item>
  233. <item>
  234. <label>삭제</label>
  235. <value>D</value>
  236. </item>
  237. <item>
  238. <label>D/C</label>
  239. <value>C</value>
  240. </item>
  241. <item>
  242. <label>-</label>
  243. <value>-</value>
  244. </item>
  245. </choices>
  246. </col>
  247. <col disabled="true" ref="prcpstatcd" type="combo" style="left:38px; top:23px; width:55px; height:23px; text-align:center; ">
  248. <choices>
  249. <itemset nodeset="/root/init/prcpstatcd/M0011">
  250. <label ref="cdnm"/>
  251. <value ref="cdid"/>
  252. </itemset>
  253. </choices>
  254. </col>
  255. <col ref="prcpclscd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:left; ">
  256. <choices>
  257. <itemset nodeset="/root/init/prcpclscd/M0005">
  258. <label ref="cdnm"/>
  259. <value ref="cdid"/>
  260. </itemset>
  261. </choices>
  262. </col>
  263. <col disabled="true" ref="prcpkindcd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:center; ">
  264. <choices>
  265. <itemset nodeset="/root/init/prcpkindcd/M0003">
  266. <label ref="cdnm"/>
  267. <value ref="cdid"/>
  268. </itemset>
  269. </choices>
  270. </col>
  271. <col ref="prcpcd" type="output" style="left:93px; top:23px; width:80px; height:23px; text-align:left; "/>
  272. <col ref="prcpnm" style="left:173px; top:23px; width:250px; height:23px; text-align:left; "/>
  273. <col ref="prcpvol" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  274. <col ref="drprcpetc7" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  275. <col ref="prcpvolunitnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  276. <col ref="prcpqty" format="#.###" maxlength=".3" style="left:505px; top:23px; width:37px; height:23px; text-align:center; "/>
  277. <col ref="drprcpetc8" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  278. <col ref="prcpqtyunitnm" style="left:542px; top:23px; width:37px; height:23px; text-align:center; "/>
  279. <col ref="prcptims" style="left:579px; top:23px; width:40px; height:23px; text-align:center; "/>
  280. <col ref="prcpdayno" style="left:619px; top:23px; width:37px; height:23px; text-align:center; "/>
  281. <col checkvalue="Y,N" ref="drugmthdspccdnm" type="output" style="left:656px; top:23px; width:75px; height:23px; "/>
  282. <col ref="prcpmixno" style="left:731px; top:23px; width:38px; height:23px; "/>
  283. <col disabled="true" ref="payflagcd" type="combo" style="left:769px; top:23px; width:44px; height:23px; ">
  284. <choices>
  285. <itemset nodeset="/root/init/payflagcd/M0029">
  286. <label ref="cdnm"/>
  287. <value ref="cdid"/>
  288. </itemset>
  289. </choices>
  290. </col>
  291. <col ref="prcpdelivefact" style="left:813px; top:23px; width:40px; height:23px; "/>
  292. <col disabled="true" ref="hosinhosoutflag" type="combo" style="left:853px; top:23px; width:50px; height:23px; text-align:center; ">
  293. <choices>
  294. <item>
  295. <label>원내</label>
  296. <value>I</value>
  297. </item>
  298. <item>
  299. <label>원외</label>
  300. <value>O</value>
  301. </item>
  302. <item>
  303. <label/>
  304. <value/>
  305. </item>
  306. </choices>
  307. </col>
  308. <col disabled="true" ref="prcpexecdeptcd" type="combo" style="left:903px; top:23px; width:100px; height:23px; text-align:center; ">
  309. <choices>
  310. <itemset nodeset="/root/init/orddept/dept">
  311. <label ref="depthngnm"/>
  312. <value ref="deptcd"/>
  313. </itemset>
  314. </choices>
  315. </col>
  316. <col ref="prcphopedd" format="yyyy-mm-dd" style="left:1003px; top:23px; width:100px; height:23px; text-align:center; "/>
  317. <col ref="choiordflag" style="left:1103px; top:23px; width:60px; height:23px; text-align:center; ">
  318. <choices/>
  319. </col>
  320. <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="left:1163px; top:23px; width:100px; height:23px; text-align:center; "/>
  321. <col ref="rgstridnm" style="left:1263px; top:23px; width:100px; height:23px; text-align:center; "/>
  322. <script type="javascript" ev:event="onkeydown">
  323. <![CDATA[
  324. //back 버튼 누르면 닫힘
  325. if ( event.keyCode == 8 ) {
  326. window.close();
  327. }
  328. ]]>
  329. </script>
  330. </datagrid>
  331. <line id="line5" class="line_1" style="x1:7px; y1:17px; x2:992px; y2:18px; "/>
  332. <caption id="caption1" class="tit_2" style="left:12px; top:0px; width:171px; height:13px; ">예약처방</caption>
  333. <button id="btn_conf" class="btn4_letter2" visibility="hidden" style="left:934px; top:635px; width:56px; height:22px; ">
  334. <caption>확인</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. if ( opener.javascript.getParameter ( "SPMMO00700_rtn1" ) == "tellprcp" ) { // 미확인 구두처방 확인
  338. submit("TXMMO00701")
  339. window.close();
  340. }
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="btn_save" class="btn4_letter2" style="left:934px; top:635px; width:56px; height:22px; ">
  345. <caption>저장</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. var destNode = opener.model.instances(0).selectSingleNode("/root/prcpdc");
  349. var srcNodeList = model.instances(0).selectNodes("/root/main/prcp/prcplist");
  350. for ( i=1; i <= srcNodeList.length; i++ ) {
  351. destNode.appendChild(srcNodeList.item(i-1).cloneNode(true));
  352. }
  353. if ( opener.javascript.getParameter ( "SPMMO00700_rtn1" ) == "drugdc" ) {
  354. if ( opener.javascript.fPrcpSave ( "", "", "", "drugdc" ) != false) {
  355. window.close();
  356. }
  357. } else {
  358. if ( opener.javascript.fPrcpSave ( "8" ) != false) {
  359. window.close();
  360. }
  361. }
  362. ]]>
  363. </script>
  364. </button>
  365. <caption id="caption2" style="left:710px; top:637px; width:220px; height:20px; ">* 체크안된 예약처방은 삭제처리 됩니다.</caption>
  366. </xhtml:body>
  367. </xhtml:html>