SPAER01800_대체처방.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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. <excuprcplist>
  11. <excuprcp>
  12. <check/>
  13. <excucd/>
  14. <excucdnm/>
  15. <excuroomcd/>
  16. <excupartcd/>
  17. <prcpclscd/>
  18. </excuprcp>
  19. </excuprcplist>
  20. <direcprcplist>
  21. <direcprcp>
  22. <check/>
  23. <prcpdd/>
  24. <prcpnm/>
  25. <orddridnm/>
  26. <atdoctid/>
  27. <medispclid/>
  28. <rgstdd/>
  29. <rgsttm/>
  30. <pid/>
  31. <hngnm/>
  32. <rrgstno/>
  33. <sex/>
  34. <age/>
  35. <prcpgenrflag/>
  36. <orddeptcd/>
  37. <drprcpetc11/>
  38. <execprcpuniqno/>
  39. <ioflag/>
  40. <indd/>
  41. <cretno/>
  42. <orddrid/>
  43. <prcpstatcd/>
  44. <inclprcpcd/>
  45. <inclprcpno/>
  46. <prcpsetcd/>
  47. <prcpno/>
  48. <prcphistno/>
  49. <orddd/>
  50. <specordyn/>
  51. <specdrid/>
  52. </direcprcp>
  53. </direcprcplist>
  54. <execprcplist>
  55. <execprcp>
  56. <check/>
  57. <prcpdd/>
  58. <prcpnm/>
  59. <prcpvol/>
  60. <prcpqty/>
  61. <prcptims/>
  62. <prcpdayno/>
  63. <opansflagcd/>
  64. <payflagcd/>
  65. <drprcpetc11/>
  66. <prcpdelivefact/>
  67. <prcpcd/>
  68. <excuroomcd/>
  69. <prcpno/>
  70. <certno/>
  71. <orddeptcd/>
  72. <orddrid/>
  73. <ioflag/>
  74. <orddd/>
  75. <indd/>
  76. <excupartcd/>
  77. <prcpclscd/>
  78. <prcpsignflag/>
  79. <aftcertflag/>
  80. <aftcertdrid/>
  81. </execprcp>
  82. </execprcplist>
  83. <popupendflag/>
  84. <examcurecdlist>
  85. <excuprcp>
  86. <check/>
  87. <excucd/>
  88. <excucdnm/>
  89. <excuroomcd/>
  90. <excupartcd/>
  91. <prcpclscd/>
  92. </excuprcp>
  93. </examcurecdlist>
  94. </main>
  95. <init>
  96. <cmbinfo>
  97. <payflagcd>
  98. <M0029>
  99. <cdid/>
  100. <cdnm/>
  101. </M0029>
  102. </payflagcd>
  103. <opansflagcd>
  104. <M0007>
  105. <cdid/>
  106. <cdnm/>
  107. </M0007>
  108. </opansflagcd>
  109. </cmbinfo>
  110. <comboexcucd>
  111. <item>
  112. <cdnm>처방코드</cdnm>
  113. <cdid>01</cdid>
  114. </item>
  115. <item>
  116. <cdnm>처방명</cdnm>
  117. <cdid>02</cdid>
  118. </item>
  119. </comboexcucd>
  120. </init>
  121. <send>
  122. <baseinfo>
  123. <pid/>
  124. <hngnm/>
  125. <rrgstno/>
  126. <sex/>
  127. <age/>
  128. <prcpdd/>
  129. <execprcpuniqno/>
  130. <gb/>
  131. </baseinfo>
  132. <globalinstance>
  133. <instance1/>
  134. </globalinstance>
  135. <status/>
  136. <direcprcplist/>
  137. <execprcplist/>
  138. <startdd/>
  139. <deptflag/>
  140. <reqdata>
  141. <instance1/>
  142. <srchexamcurecd/>
  143. <srchexamcurenm/>
  144. <srchexamcureflag/>
  145. </reqdata>
  146. </send>
  147. <popdata>
  148. <pid>21403</pid>
  149. <prcpdd>20070904</prcpdd>
  150. <execprcpuniqno>31389</execprcpuniqno>
  151. </popdata>
  152. <hidden>
  153. <count/>
  154. <codedata>
  155. <popupmenu>
  156. <grid01>
  157. <item>
  158. <name>행 삭제</name>
  159. <func>fGridDeleteRow</func>
  160. </item>
  161. </grid01>
  162. </popupmenu>
  163. </codedata>
  164. </hidden>
  165. </root>
  166. </instance>
  167. <script type="javascript">
  168. <![CDATA[
  169. function readfunc(){
  170. submit("TRAER01801");
  171. if (model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/pid") != ""){
  172. model.setValue("/root/send/baseinfo/hngnm", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/hngnm"));
  173. model.setValue("/root/send/baseinfo/rrgstno", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/rrgstno"));
  174. model.setValue("/root/send/baseinfo/sex", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/sex"));
  175. model.setValue("/root/send/baseinfo/age", model.getValue("/root/main/direcprcplist/direcprcp[" + 1 + "]/age"));
  176. model.setValue("/root/main/direcprcplist/direcprcp/check", "Y");
  177. }
  178. model.refresh();
  179. }
  180. function fExecPrcpTransaction(str) {
  181. var direcnodeList = instance1.selectNodes("/root/main/direcprcplist/direcprcp[check='Y']");
  182. var direcCSV = getNodeListCSV(direcnodeList);
  183. if ( direcCSV == null ) {
  184. messageBox("원처방내역을 ","C002");
  185. return "0";
  186. }
  187. /*
  188. // 후인증 처리
  189. setParameter("SPMMB04100_defdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  190. modal("SPMMB04100");
  191. var useyn = getParameter("SPMMB04100_useyn");
  192. if(useyn == "Y"){
  193. var orddrid = getParameter("SPMMB04100_orddrid");
  194. model.setValue("/root/main/execprcplist/execprcp/prcpsignflag", "1");
  195. model.setValue("/root/main/execprcplist/execprcp/aftcertflag", "11");
  196. model.setValue("/root/main/execprcplist/execprcp/aftcertdrid", orddrid);
  197. } else if(useyn == "X"){
  198. model.setValue("/root/main/execprcplist/execprcp/prcpsignflag", "1");
  199. model.setValue("/root/main/execprcplist/execprcp/aftcertflag", "11");
  200. model.setValue("/root/main/execprcplist/execprcp/aftcertdrid", model.getValue("/root/main/execprcplist/execprcp/orddrid"));
  201. }
  202. */
  203. var execnodeList = instance1.selectNodes("/root/main/execprcplist/execprcp[check='Y']");
  204. var execCSV = getNodeListCSV(execnodeList);
  205. if ( execCSV == null ) {
  206. messageBox("대체처방내역을 ","C002");
  207. return "0";
  208. }
  209. model.setValue("/root/send/direcprcplist", direcCSV);
  210. model.setValue("/root/send/execprcplist", execCSV);
  211. model.setValue("/root/send/status", str);
  212. // model.setValue("/root/send/startdd", getCurrentDate());
  213. model.setValue("/root/send/startdd", model.getValue("/root/main/direcprcplist/direcprcp["+grd_direcprcp.bottomRow+"]/prcpdd"));
  214. var deptflag = model.getValue("/root/popdata/deptflag");
  215. var prcpexecdeptcd = model.getValue("/root/popdata/prcpexecdeptcd");
  216. // 핵의학 체내일 경우
  217. if (deptflag == "N") {
  218. model.setValue("/root/send/deptflag", "N");
  219. model.setValue("/root/send/globalinstance/instance1", prcpexecdeptcd);
  220. } else {
  221. model.setValue("/root/send/deptflag", "S");
  222. }
  223. if ( str == "I") {
  224. if (submit("TXAOA01001")){
  225. messageBox("정상적으로 처리되었습니다.", "E999", "");
  226. btn_cfm.dispatch("DOMActivate");
  227. }
  228. } else if (str == "C") {
  229. if (submit("TXAOA01002")){
  230. }
  231. }
  232. }
  233. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  234. if (str == "") return true; // 빈건 체크안함
  235. if (trim(str) == "") return true; // 빈건 체크안함
  236. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  237. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  238. var yy = new Number(str.substring(0, 4));
  239. var mm = new Number(str.substring(4, 6)) - 1;
  240. var dd = new Number(str.substring(6, 8));
  241. var date = new Date(yy, mm, dd);
  242. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  243. if (yy != date.getFullYear() ||
  244. mm != date.getMonth() ||
  245. dd != date.getDate()) {
  246. return false; // 존재하지 않는 날짜
  247. }
  248. return true; // 존재하는 날짜
  249. }
  250. function trim(data){ // 문자에 대한 TRIM 작업
  251. return data.replace(/(^\s*)|(\s*$)/g, "");
  252. }
  253. function fGridDeleteRow() {
  254. grd_execprcplist.deleteRow(grd_execprcplist.row, true);
  255. }
  256. ]]>
  257. </script>
  258. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  259. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  260. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  261. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  262. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  263. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  264. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  265. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  266. <submission id="TRZBC00101"/>
  267. <script type="javascript" ev:event="xforms-ready">
  268. <![CDATA[
  269. aezfSetSuppDeptcd();
  270. zbcfGetCodeList( new Array("M0029", "M0007"),
  271. new Array("/root/init/cmbinfo/payflagcd", "/root/init/cmbinfo/opansflagcd"));
  272. model.removeNodeset("/root/main/excuprcplist/excuprcp");
  273. model.removeNodeset("/root/main/direcprcplist/direcprcp");
  274. model.removeNodeset("/root/main/execprcplist/execprcp");
  275. model.setValue("/root/send/baseinfo/gb", "1");
  276. model.setValue("/root/send/reqdata/instance1", model.getValue("/root/send/globalinstance/instance1"));
  277. //내시경 대치처방 가능쿼리 조회 (처방리스트)
  278. submit("TRAER01803");
  279. // 2011.6.29 선택진료의 가져오기 쿼리수정.
  280. submit("TRAEA01136");
  281. model.setValue("/root/send/baseinfo/pid", model.getValue("/root/popdata/pid"));
  282. model.setValue("/root/send/baseinfo/prcpdd", model.getValue("/root/popdata/prcpdd"));
  283. model.setValue("/root/send/baseinfo/execprcpuniqno", model.getValue("/root/popdata/execprcpuniqno"));
  284. readfunc();
  285. model.refresh();
  286. ]]>
  287. </script>
  288. <submission id="TRAER01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" resultref="/root/main/direcprcplist"/>
  289. <submission id="TRAER01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" resultref="/root/main/execprcplist"/>
  290. <submission id="TXAOA01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  291. <submission id="TXAOA01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  292. <submission id="TRAER01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/excuprcplist"/>
  293. <submission id="TRAER01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/examcurecdlist"/>
  294. <submission id="TRAEA01136" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/main/specdridlist"/>
  295. </model>
  296. </xhtml:head>
  297. <xhtml:body pagewidth="1200" pageheight="590" guideline="1,1194;1,909;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  298. <group id="grp_biz" scroll="auto" style="left:10px; top:8px; width:1168px; height:552px; ">
  299. <group id="grp_sea" style="left:0px; top:20px; width:1167px; height:35px; vertical-align:top; ">
  300. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1167px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">
  301. <![CDATA[>]]>
  302. </shape>
  303. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  304. <line id="line13" class="line_4" style="x1:1059px; y1:7px; x2:1059px; y2:29px; "/>
  305. <input id="ipt_pid" ref="/root/send/baseinfo/pid" class="input_search" disabled="true" style="left:104px; top:8px; width:80px; height:19px; "/>
  306. <output id="opt_kornm" ref="/root/send/baseinfo/hngnm" class="output_search" style="left:188px; top:8px; width:80px; height:19px; "/>
  307. <output id="opt_rrgstno" ref="/root/send/baseinfo/rrgstno" class="output_search" format="999999-9999999" style="left:271px; top:8px; width:110px; height:19px; text-align:center; "/>
  308. <output id="opt_sex" ref="/root/send/baseinfo/sex" class="output_search" style="left:384px; top:8px; width:30px; height:19px; text-align:center; "/>
  309. <output id="opt_age" ref="/root/send/baseinfo/age" class="output_search" style="left:417px; top:8px; width:30px; height:19px; text-align:center; "/>
  310. <button id="btn_search" class="btn1_letter2" style="left:1086px; top:7px; width:56px; height:22px; ">
  311. <caption>조회</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. model.removeNodeset("/root/main/execprcplist/execprcp");
  315. readfunc();
  316. ]]>
  317. </script>
  318. </button>
  319. <input id="input2" ref="/root/send/baseinfo/prcpdd" class="input_s_essential" disabled="true" inputtype="date" style="left:551px; top:8px; width:100px; height:19px; "/>
  320. <caption id="caption9" class="search_name" style="left:462px; top:9px; width:86px; height:17px; ">처방일자 :</caption>
  321. </group>
  322. <line id="line9" class="line_1" style="x1:0px; y1:94px; x2:420px; y2:94px; "/>
  323. <button id="button4" class="btn5_letter4" style="left:355px; top:70px; width:64px; height:19px; ">
  324. <caption>처방복사</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. for (var i = 0; i < grd_excuprcplist.rows; i++) {
  328. if (model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/check") == "Y") {
  329. var excucd = model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd");
  330. var irow = grd_execprcplist.findRow(excucd, 1, grd_execprcplist.colRef("prcpcd"));
  331. if (irow < 0){
  332. grd_execprcplist.addRow();
  333. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow+ "]/opansflagcd", "4" );
  334. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpcd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd"));
  335. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpnm", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucdnm"));
  336. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/excupartcd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excupartcd"));
  337. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpclscd", model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/prcpclscd"));
  338. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpvol", 1);
  339. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpqty", 1);
  340. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcptims", 1);
  341. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/prcpdayno", 1);
  342. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.row + "]/check", "Y");
  343. model.refresh();
  344. }
  345. }
  346. }
  347. ]]>
  348. </script>
  349. </button>
  350. <caption id="caption41" class="tit_2" style="left:5px; top:75px; width:120px; height:13px; ">처방리스트</caption>
  351. <datagrid id="grd_excuprcplist" nodeset="/root/main/excuprcplist/excuprcp" scroll="auto" caption="선택^처방코드^처방명^caption1^caption2^처방분류" colsep="^" colwidth="30, 76, 275, 21, 30, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:99px; width:420px; height:450px; ">
  352. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  353. <col ref="excucd" style="left:53px; top:23px; width:80px; height:23px; "/>
  354. <col ref="excucdnm"/>
  355. <col ref="excuroomcd" visibility="hidden"/>
  356. <col ref="excupartcd" visibility="hidden"/>
  357. <col ref="prcpclscd" visibility="hidden"/>
  358. <script type="javascript" ev:event="ondblclick">
  359. <![CDATA[
  360. var excucd = model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucd");
  361. var irow = grd_execprcplist.findRow(excucd, 1, grd_execprcplist.colRef("prcpcd"));
  362. if (irow < 0){
  363. grd_execprcplist.addRow();
  364. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow+ "]/opansflagcd", "4" );
  365. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpcd", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucd"));
  366. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpnm", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excucdnm"));
  367. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/excupartcd", model.getValue("/root/main/excuprcplist/excuprcp[" + grd_excuprcplist.row + "]/excupartcd"));
  368. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpvol", 1);
  369. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpqty", 1);
  370. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcptims", 1);
  371. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/prcpdayno", 1);
  372. model.setValue("/root/main/execprcplist/execprcp["+ grd_execprcplist.bottomRow + "]/check", "Y");
  373. model.refresh();
  374. }
  375. ]]>
  376. </script>
  377. </datagrid>
  378. <caption id="caption2" class="tit_2" style="left:430px; top:75px; width:80px; height:13px; ">원처방</caption>
  379. <line id="line1" class="line_1" style="x1:425px; y1:94px; x2:1164px; y2:94px; "/>
  380. <datagrid id="grd_direcprcp" nodeset="/root/main/direcprcplist/direcprcp" scroll="auto" caption="선택^적용일자^지시처방명^처방의명^주치의명^담당의명^처방입력일시^처방입력일시^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption15^caption14^orddrid^caption16^caption11^caption12^caption13^caption17^caption18^caption19^선택진료^선택진료^^" colsep="^" colwidth="33, 76, 279, 64, 64, 64, 72, 61, 21, 21, 21, 19, 19, 21, 18, 19, 18, 20, 100, 100, 100, 100, 19, 24, 27, 100, 100, 100, 32, 67" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:425px; top:99px; width:739px; height:120px; ">
  381. <col checkvalue="Y,N" disabled="true" ref="check" type="checkbox"/>
  382. <col ref="prcpdd" format="yyyy-mm-dd"/>
  383. <col ref="prcpnm"/>
  384. <col ref="orddridnm"/>
  385. <col ref="atdoctid"/>
  386. <col ref="medispclid"/>
  387. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  388. <col ref="rgsttm" format="hh:nn:ss" style="text-align:center; "/>
  389. <col ref="pid" visibility="hidden"/>
  390. <col ref="hngnm" visibility="hidden"/>
  391. <col ref="rrgstno" visibility="hidden"/>
  392. <col ref="sex" visibility="hidden"/>
  393. <col ref="age" visibility="hidden"/>
  394. <col ref="prcpgenrflag" visibility="hidden"/>
  395. <col ref="orddeptcd" visibility="hidden"/>
  396. <col ref="execprcpuniqno" visibility="hidden"/>
  397. <col ref="ioflag" visibility="hidden"/>
  398. <col ref="indd" visibility="hidden"/>
  399. <col ref="drprcpetc11" visibility="hidden"/>
  400. <col ref="cretno" visibility="hidden"/>
  401. <col ref="orddrid" visibility="hidden"/>
  402. <col ref="prcpstatcd" visibility="hidden"/>
  403. <col ref="inclprcpcd" visibility="hidden"/>
  404. <col ref="inclprcpno" visibility="hidden"/>
  405. <col ref="prcpsetcd" visibility="hidden"/>
  406. <col ref="prcpno" visibility="hidden"/>
  407. <col ref="prcphistno" visibility="hidden"/>
  408. <col ref="orddd" visibility="hidden"/>
  409. <col ref="specordyn"/>
  410. <col disabled="false" ref="specdrid" type="combo" style="text-align:center; ">
  411. <choices>
  412. <itemset nodeset="/root/main/specdridlist/item">
  413. <label ref="usernm"/>
  414. <value ref="userid"/>
  415. </itemset>
  416. </choices>
  417. </col>
  418. <script type="javascript" ev:event="onclick">
  419. <![CDATA[
  420. /*
  421. if ( (grd_direcprcp.row >= grd_direcprcp.fixedRows) && (grd_direcprcp.isCell(event.target))) {
  422. model.setValue("/root/main/direcprcplist/direcprcp/check", "Y");
  423. submit("TRAER01802");
  424. }
  425. */
  426. ]]>
  427. </script>
  428. </datagrid>
  429. <button id="button2" class="btn5_letter6" style="left:1077px; top:223px; width:86px; height:19px; ">
  430. <caption>대체처방발행</caption>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. if(grd_execprcplist.rows > 2) {
  434. messageBox("여러처방이", "E005","대치처방 내릴 처방외의 다른 처방은 삭제하십시오.");
  435. return 0;
  436. }
  437. if( grd_execprcplist.rows < 2){
  438. messageBox("처방을 ", "C002");
  439. return 0;
  440. }
  441. fExecPrcpTransaction("I");
  442. ]]>
  443. </script>
  444. </button>
  445. <button id="button5" class="btn5_letter4" visibility="hidden" style="left:1007px; top:223px; width:64px; height:19px; ">
  446. <caption>결과복사</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. //fExecPrcpTransaction("C");
  450. ]]>
  451. </script>
  452. </button>
  453. <caption id="caption11" class="tit_2" style="left:430px; top:229px; width:80px; height:14px; ">대체처방</caption>
  454. <datagrid id="grd_execprcplist" nodeset="/root/main/execprcplist/execprcp" scroll="auto" caption="선택^처방일자^처방내역^용량^수량^횟수^일수^주부^급비^제2시술^전달사항^prcpcd^excuroomcd^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^처방분류^인증구분^후인증구분^후인증의사ID^^" colsep="^" colwidth="35, 76, 213, 32, 30, 32, 32, 103, 54, 51, 171, 29, 29, 26, 25, 20, 23, 23, 23, 26, 25, 100, 100, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:425px; top:249px; width:739px; height:300px; ">
  455. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  456. <col ref="prcpdd" format="yyyy-mm-dd"/>
  457. <col ref="prcpnm"/>
  458. <col ref="prcpvol" format="99" style="text-align:center; "/>
  459. <col ref="prcpqty" format="99" style="text-align:center; "/>
  460. <col ref="prcptims" format="99" style="text-align:center; "/>
  461. <col ref="prcpdayno" format="99" style="text-align:center; "/>
  462. <col ref="opansflagcd" type="combo">
  463. <choices>
  464. <itemset nodeset="/root/init/cmbinfo/opansflagcd/M0007">
  465. <label ref="cdnm"/>
  466. <value ref="cdid"/>
  467. </itemset>
  468. </choices>
  469. </col>
  470. <col ref="payflagcd" type="combo">
  471. <choices>
  472. <itemset nodeset="/root/init/cmbinfo/payflagcd/M0029">
  473. <label ref="cdnm"/>
  474. <value ref="cdid"/>
  475. </itemset>
  476. </choices>
  477. </col>
  478. <col checkvalue="Y,N" ref="drprcpetc11" type="checkbox"/>
  479. <col ref="prcpdelivefact" type="input"/>
  480. <col ref="prcpcd" visibility="hidden"/>
  481. <col ref="excuroomcd" visibility="hidden"/>
  482. <col ref="prcpno" visibility="hidden"/>
  483. <col ref="certno" visibility="hidden"/>
  484. <col ref="orddeptcd" visibility="hidden"/>
  485. <col ref="orddrid" visibility="hidden"/>
  486. <col ref="ioflag" visibility="hidden"/>
  487. <col ref="orddd" visibility="hidden"/>
  488. <col ref="indd" visibility="hidden"/>
  489. <col ref="excupartcd" visibility="hidden"/>
  490. <col ref="prcpclscd" visibility="hidden"/>
  491. <col ref="prcpsignflag" visibility="hidden"/>
  492. <col ref="aftcertflag" visibility="hidden"/>
  493. <col ref="aftcertdrid" visibility="hidden"/>
  494. <script type="javascript" ev:event="onmousedown">
  495. <![CDATA[
  496. setPopupMenu("grd_execprcplist", false, "/root/hidden/codedata/popupmenu/grid01/item", "name", "func");
  497. ]]>
  498. </script>
  499. <script type="javascript" ev:event="DOMFocusOut">
  500. <![CDATA[
  501. initPopupMenu();
  502. ]]>
  503. </script>
  504. </datagrid>
  505. <line id="line7" class="line_1" style="x1:425px; y1:244px; x2:1164px; y2:244px; "/>
  506. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">대체처방</caption>
  507. <input id="input1" ref="/root/send/reqdata/srchexamcurenm" style="left:195px; top:70px; width:110px; height:19px; ">
  508. <script type="javascript" ev:event="onkeyup">
  509. <![CDATA[
  510. if(event.keyCode == "13") {
  511. inputEnterKey("button1","DOMActivate");
  512. }
  513. ]]>
  514. </script>
  515. </input>
  516. <button id="button1" class="btn5_letter2" style="left:309px; top:70px; width:42px; height:19px; ">
  517. <caption>조회</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. grd_excuprcplist.topRow = 1;
  521. grd_excuprcplist.allstyle( "all", "background-color" ) = "#FFFFFF";
  522. var defalut = model.getValue("/root/send/reqdata/srchexamcurenm");
  523. if( model.getValue("/root/send/reqdata/srchexamcureflag") == "" ) {
  524. messageBox("조회구분값을", "C002");
  525. return "0";
  526. }
  527. if( model.getValue("/root/send/reqdata/srchexamcurenm") != "" ) {
  528. model.resetInstanceNode("/root/main/examcurecdlist/excuprcp");
  529. if ( model.getValue("/root/send/reqdata/srchexamcureflag") == "01" ) { //처방코드
  530. model.setValue("/root/send/reqdata/srchexamcurecd", "%" + model.getValue("/root/send/reqdata/srchexamcurenm").toUpperCase()+"%");
  531. model.setValue("/root/send/reqdata/srchexamcurenm", "%");
  532. } else if ( model.getValue("/root/send/reqdata/srchexamcureflag") == "02" ) { //처방명
  533. model.setValue("/root/send/reqdata/srchexamcurenm", "%" + model.getValue("/root/send/reqdata/srchexamcurenm") + "%");
  534. model.setValue("/root/send/reqdata/srchexamcurecd", "%");
  535. }
  536. submit("TRAER01804");
  537. var count = getNodesetCount("/root/main/examcurecdlist/excuprcp");
  538. for( var i = 1 ; i < grd_excuprcplist.rows ; i++ ) {
  539. var excucd_1 = model.getValue("/root/main/excuprcplist/excuprcp[" + i + "]/excucd");
  540. for( var j = 1 ; j <= count ; j++ ) {
  541. var excucd_2 = model.getValue("/root/main/examcurecdlist/excuprcp[" + j + "]/excucd");
  542. if( excucd_1 == excucd_2 ) {
  543. grd_excuprcplist.rowStyle( i , "data", "background-color" ) = "#99cc00";
  544. }
  545. if( excucd_1 == model.getValue("/root/main/examcurecdlist/excuprcp[1]/excucd") )
  546. {
  547. grd_excuprcplist.topRow = i;
  548. }
  549. }
  550. }
  551. } else {
  552. if( model.getValue("/root/send/reqdata/srchexamcureflag") == "01" ) { //처방코드
  553. messageBox("처방코드를", "C001");
  554. }
  555. if( model.getValue("/root/send/reqdata/srchexamcureflag") == "02" ) { //처방명
  556. messageBox("처방명을", "C001");
  557. }
  558. }
  559. model.setValue("/root/send/reqdata/srchexamcurenm" , defalut );
  560. model.refresh();
  561. ]]>
  562. </script>
  563. </button>
  564. <select1 id="combo2" ref="/root/send/reqdata/srchexamcureflag" class="combo_search" appearance="minimal" style="left:115px; top:70px; width:76px; height:19px; ">
  565. <choices>
  566. <itemset nodeset="/root/init/comboexcucd/item">
  567. <label ref="cdnm"/>
  568. <value ref="cdid"/>
  569. </itemset>
  570. </choices>
  571. </select1>
  572. </group>
  573. <group id="group1" scroll="auto" style="left:10px; top:559px; width:1168px; height:27px; ">
  574. <button id="btn_cfm" class="btn4_letter2" visibility="hidden" style="left:1109px; top:3px; width:56px; height:22px; ">
  575. <caption>확인</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. opener.btn_sea.dispatch("DOMActivate");
  579. window.close();
  580. ]]>
  581. </script>
  582. </button>
  583. </group>
  584. </xhtml:body>
  585. </xhtml:html>