SMAEA04300_선처치및기준자료검증.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  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. <prcpinfolist>
  11. <prcplist>
  12. <check/>
  13. <prcpcd/>
  14. <prcpnm/>
  15. <prcpgenrflag/>
  16. <prcpstatcd/>
  17. <careinrmdd/>
  18. <rcptdd/>
  19. <execdd/>
  20. <precureprcpflag/>
  21. <prcpexecdeptcd/>
  22. <execdeptcd/>
  23. </prcplist>
  24. </prcpinfolist>
  25. <precureinfolist>
  26. <precurelist>
  27. <prcpcd/>
  28. <prcpnm/>
  29. <precureprcpflag/>
  30. <prcpexecdeptcd/>
  31. </precurelist>
  32. </precureinfolist>
  33. <excucdinfolist>
  34. <excucdlist>
  35. <prcpcd/>
  36. <prcpnm/>
  37. <excuroomcd/>
  38. <prcpexecdeptcd/>
  39. </excucdlist>
  40. </excucdinfolist>
  41. <cdisinfolist>
  42. <cdislist>
  43. <check/>
  44. <pid/>
  45. <patnm/>
  46. <orddd/>
  47. <calcscorcd/>
  48. <prcpnm/>
  49. <excutype/>
  50. <excutypenm/>
  51. <prcpstat/>
  52. <readyn/>
  53. <acptdt/>
  54. <insyn/>
  55. <excucd/>
  56. <suppdeptcd/>
  57. <emryn/>
  58. <prcpdd/>
  59. <execprcpuniqno/>
  60. <acptdd/>
  61. <acpttm/>
  62. </cdislist>
  63. </cdisinfolist>
  64. </main>
  65. <send>
  66. <globalinstance>
  67. <instance1/>
  68. </globalinstance>
  69. <suppdeptcd/>
  70. <excuroomcd/>
  71. <pid/>
  72. <prcpdd/>
  73. <orddeptcd/>
  74. <prcplist/>
  75. <cdislist/>
  76. <gb/>
  77. <prcpno/>
  78. </send>
  79. <init>
  80. <cmb_info>
  81. <suppdept>
  82. <suppdeptcd/>
  83. <depthngnm/>
  84. </suppdept>
  85. </cmb_info>
  86. <dept_info>
  87. <initprcpexecdeptcd>
  88. <prcpexecdeptcdid/>
  89. <prcpexecdeptcdnm/>
  90. </initprcpexecdeptcd>
  91. </dept_info>
  92. <deptlist>
  93. <dept>
  94. <deptcd/>
  95. <depthngnm/>
  96. </dept>
  97. </deptlist>
  98. <baseinfo>
  99. <initexecprcpstatcd/>
  100. </baseinfo>
  101. <excuroom_info>
  102. <initexecroom>
  103. <excuroomcdid/>
  104. <excuroomcdnm/>
  105. </initexecroom>
  106. </excuroom_info>
  107. </init>
  108. <hidden>
  109. </hidden>
  110. </root>
  111. </instance>
  112. <bind id="bind_prcpstatcd" ref="/root/main/prcphist/prcplist/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. aezfSetSuppDeptcd();
  116. // btn_patprcp.selected = true;
  117. // CDIS 연동체크 활성화
  118. btn_cdis.selected = true;
  119. ipt_date1.value = getCurrentDate();
  120. //진료과리스트 - 외래간호메인의 진료과 기준으로 세팅 -> 2008-02-11
  121. var instcd = getUserInfo("dutplceinstcd");
  122. var standard_yn = "rcptuseyn";
  123. var ord_deptflag = 'X';
  124. var rslt_ref = "/root/init/deptlist";
  125. var sort_field = "depthngnm";
  126. var sort_method = "asc";
  127. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //진료과리스트조회
  128. //처방상태 공통코드 갖고오기
  129. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  130. submit("TRZBC00101", false);
  131. // 수행부서 코드 가져오기
  132. submit("TRAEB00205", false);
  133. // 지원부서 가져오기
  134. submit("TRAEA01301");
  135. sortNodeList("/root/init/cmb_info/suppdept", "depthngnm", "asc");
  136. cmb_deptcd.refresh();
  137. // 기능검사에서 호출한지 확인하여 조회기준 제한두기
  138. //사용할때는 common.js 파일이 필요
  139. if (checkOpener()) { //opener 검사
  140. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  141. // alert("넘어온 파라미터:" + param);
  142. if(param == "OldOrder") { // opener parameter value가 있는 경우
  143. button87.disabled = true;
  144. but_oldOrder.visible = true;
  145. // CDIS 선택박스 보여주기, update 컬럼은 숨김
  146. grd_cdislist.colHidden(1) = false;
  147. grd_cdislist.colHidden(2) = true;
  148. model.setValue("/root/send/gb",param);
  149. // alert("구분자 입력됐니?!" + model.getValue("/root/send/gb"));
  150. }
  151. }
  152. ]]>
  153. </script>
  154. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  155. <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
  156. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TRAEA04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excucdinfolist"/>
  158. <submission id="TRAEA04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpinfolist"/>
  159. <submission id="TRAEA04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/precureinfolist"/>
  160. <submission id="TRAEA04304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/excuroom_info"/>
  161. <submission id="TRAEA04305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdisinfolist"/>
  162. <submission id="TXAEA04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  163. <submission id="TXAEA04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  164. <submission id="TXAEA04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  165. <!--위수탁 20160524 -->
  166. <submission id="TXAEA04307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  167. <submission id="TRZBC00101"/>
  168. </model>
  169. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  172. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  173. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  174. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  175. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  176. </xhtml:head>
  177. <xhtml:body pagewidth="1150" pageheight="800" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  178. <group id="group1" style="left:0px; top:0px; width:1080px; height:13px; ">
  179. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">데이터관리</caption>
  180. </group>
  181. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1080px; height:722px; ">
  182. <switch id="switch1" style="left:0px; top:26px; width:1065px; height:685px; ">
  183. <case id="case1">
  184. <datagrid id="datagrid3" nodeset="/root/main/excucdinfolist/excucdlist" scroll="vertical" caption="코드^코드명^검사실^수가수행부서" colsep="^" colwidth="80, 147, 107, 145" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:535px; top:75px; width:520px; height:600px; ">
  185. <col ref="prcpcd"/>
  186. <col ref="prcpnm"/>
  187. <col disabled="true" editmode="input" ref="excuroomcd" type="combo">
  188. <choices>
  189. <itemset nodeset="/root/init/cmb_info/initexecroom">
  190. <label ref="excuroomcdnm"/>
  191. <value ref="excuroomcdid"/>
  192. </itemset>
  193. </choices>
  194. </col>
  195. <col disabled="true" ref="prcpexecdeptcd" type="combo">
  196. <choices>
  197. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  198. <label ref="prcpexecdeptcdnm"/>
  199. <value ref="prcpexecdeptcdid"/>
  200. </itemset>
  201. </choices>
  202. </col>
  203. <script type="javascript" ev:event="onaftersort">
  204. <![CDATA[
  205. datagrid3.gridToInstance();
  206. ]]>
  207. </script>
  208. </datagrid>
  209. <group id="group4" style="left:5px; top:30px; width:520px; height:35px; vertical-align:top; ">
  210. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:520px; height:35px; "/>
  211. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:85px; height:17px; ">진료과 :</caption>
  212. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:8px; width:245px; height:19px; ">
  213. <choices>
  214. <itemset nodeset="/root/init/deptlist/dept">
  215. <label ref="depthngnm"/>
  216. <value ref="deptcd"/>
  217. </itemset>
  218. </choices>
  219. <script type="javascript" ev:event="xforms-value-changed">
  220. <![CDATA[
  221. submit("TRAEA04303");
  222. ]]>
  223. </script>
  224. </select1>
  225. </group>
  226. <caption id="caption4" class="cell_1" style="left:535px; top:5px; width:520px; height:23px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">검사실 기준자료 마스터</caption>
  227. <group id="group5" style="left:535px; top:30px; width:520px; height:35px; vertical-align:top; ">
  228. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:520px; height:35px; "/>
  229. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">지원부서 :</caption>
  230. <caption id="caption5" class="search_name" style="left:270px; top:9px; width:117px; height:17px; ">검사실 :</caption>
  231. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_s_essential" appearance="minimal" style="left:349px; top:8px; width:145px; height:19px; ">
  232. <choices>
  233. <itemset nodeset="/root/init/excuroom_info/initexecroom">
  234. <label ref="excuroomcdnm"/>
  235. <value ref="excuroomcdid"/>
  236. </itemset>
  237. </choices>
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. submit("TRAEA04301");
  241. ]]>
  242. </script>
  243. </select1>
  244. <select1 id="cmb_deptcd" ref="/root/send/suppdeptcd" class="combo_s_essential" appearance="minimal" style="left:107px; top:8px; width:145px; height:19px; ">
  245. <choices>
  246. <itemset nodeset="/root/init/cmb_info/suppdept">
  247. <label ref="depthngnm"/>
  248. <value ref="suppdeptcd"/>
  249. </itemset>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  254. submit("TRAEA04304");
  255. model.setValue("/root/send/excuroomcd", "");
  256. submit("TRAEA04301");
  257. ]]>
  258. </script>
  259. </select1>
  260. </group>
  261. <caption id="caption15" class="cell_1" style="left:4px; top:5px; width:520px; height:23px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">선처치 마스터</caption>
  262. <line id="line2" class="line_1" style="x1:4px; y1:70px; x2:524px; y2:70px; "/>
  263. <datagrid id="grd_precure" nodeset="/root/main/precureinfolist/precurelist" scroll="vertical" caption="코드^코드명^선처치^(수가)시행부서" colsep="^" colwidth="80, 198, 46, 153" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:4px; top:75px; width:520px; height:600px; ">
  264. <col ref="prcpcd"/>
  265. <col ref="prcpnm"/>
  266. <col ref="precureprcpflag"/>
  267. <col disabled="true" ref="prcpexecdeptcd" type="combo">
  268. <choices>
  269. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  270. <label ref="prcpexecdeptcdnm"/>
  271. <value ref="prcpexecdeptcdid"/>
  272. </itemset>
  273. </choices>
  274. </col>
  275. <script type="javascript" ev:event="onaftersort">
  276. <![CDATA[
  277. grd_precure.gridToInstance();
  278. ]]>
  279. </script>
  280. </datagrid>
  281. <line id="line5" class="line_1" style="x1:535px; y1:70px; x2:1055px; y2:70px; "/>
  282. </case>
  283. <case id="case2">
  284. <group id="group6" style="left:5px; top:9px; width:1050px; height:35px; vertical-align:top; ">
  285. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1050px; height:35px; "/>
  286. <caption id="caption8" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">등록번호 :</caption>
  287. <line id="line4" class="line_4" style="x1:934px; y1:7px; x2:934px; y2:29px; "/>
  288. <caption id="caption9" class="search_name" style="left:290px; top:9px; width:117px; height:17px; ">처방일자 :</caption>
  289. <input id="input1" ref="/root/send/pid" class="input_s_essential" style="left:110px; top:8px; width:130px; height:19px; ">
  290. <script type="javascript" ev:event="onkeydown">
  291. <![CDATA[
  292. inputEnterKey("btn_sea","DOMActivate")
  293. ]]>
  294. </script>
  295. </input>
  296. <input id="ipt_date1" ref="/root/send/prcpdd" class="input_s_essential" inputtype="date" style="left:384px; top:8px; width:102px; height:19px; "/>
  297. <button id="btn_sea" class="btn1_letter2" style="left:965px; top:7px; width:56px; height:22px; ">
  298. <caption>조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. if(model.getValue("/root/send/pid") == "" ) {
  302. messageBox("등록번호를 ", "C001");
  303. return;
  304. }else {
  305. submit("TRAEA04302");
  306. }
  307. ]]>
  308. </script>
  309. </button>
  310. <caption id="caption10" class="search_name" style="left:540px; top:9px; width:117px; height:17px; ">처방수행부서 :</caption>
  311. <select1 id="combo1" ref="/root/send/globalinstance/instance1" appearance="minimal" editmode="inputsearch" style="left:660px; top:8px; width:155px; height:19px; ">
  312. <choices>
  313. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  314. <label ref="prcpexecdeptcdnm"/>
  315. <value ref="prcpexecdeptcdid"/>
  316. </itemset>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. for (var i = 1; i < datagrid1.rows; i++){
  321. if (model.getValue("/root/main/prcpinfolist/prcplist[" + i + "]/check") == "Y"){
  322. model.setValue("/root/main/prcpinfolist/prcplist[" + i + "]/prcpexecdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  323. }
  324. }
  325. model.refresh();
  326. ]]>
  327. </script>
  328. </select1>
  329. </group>
  330. <line id="line3" class="line_1" style="x1:5px; y1:49px; x2:1055px; y2:49px; "/>
  331. <datagrid id="datagrid1" nodeset="/root/main/prcpinfolist/prcplist" scroll="vertical" caption="선택^처방코드^코드명^구분^처방상태^입실확인^수납여부^실시일자^선처치^처방수행부서^실행부서" colsep="^" colwidth="31, 90, 199, 37, 83, 79, 68, 80, 60, 140, 140" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:54px; width:1050px; height:596px; ">
  332. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  333. <col ref="prcpcd"/>
  334. <col ref="prcpnm"/>
  335. <col ref="prcpgenrflag" style="text-align:center; "/>
  336. <col ref="prcpstatcd" type="combo" style="text-align:left; ">
  337. <choices>
  338. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  339. <label ref="cdnm"/>
  340. <value ref="cdid"/>
  341. </itemset>
  342. </choices>
  343. </col>
  344. <col ref="careinrmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  345. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  346. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  347. <col ref="precureprcpflag" style="text-align:center; "/>
  348. <col disabled="true" ref="prcpexecdeptcd" type="combo">
  349. <choices>
  350. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  351. <label ref="prcpexecdeptcdnm"/>
  352. <value ref="prcpexecdeptcdid"/>
  353. </itemset>
  354. </choices>
  355. </col>
  356. <col ref="execdeptcd" type="combo">
  357. <choices>
  358. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  359. <label ref="prcpexecdeptcdnm"/>
  360. <value ref="prcpexecdeptcdid"/>
  361. </itemset>
  362. </choices>
  363. </col>
  364. <script type="javascript" ev:event="onaftersort">
  365. <![CDATA[
  366. datagrid1.gridToInstance();
  367. ]]>
  368. </script>
  369. <script type="javascript" ev:event="xforms-value-changed">
  370. <![CDATA[
  371. if (model.getValue("/root/main/prcpinfolist/prcplist[" + datagrid1.row + "]/check") == "Y"){
  372. model.setValue("/root/main/prcpinfolist/prcplist[" + datagrid1.row + "]/prcpexecdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  373. }
  374. model.refresh();
  375. ]]>
  376. </script>
  377. </datagrid>
  378. <button id="btn_save" class="btn4_letter2" style="left:995px; top:655px; width:56px; height:22px; ">
  379. <caption>저장</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. var nodeList = instance1.selectNodes("/root/main/prcpinfolist/prcplist[check='Y']");
  383. var rCSV = getNodeListCSV(nodeList);
  384. if ( rCSV == null ) {
  385. messageBox("처방내역을 ","C002");
  386. return "0";
  387. }
  388. model.setValue("/root/send/prcplist", rCSV);
  389. if (submit("TXAEA04301")){
  390. submit("TRAEA04302");
  391. }
  392. ]]>
  393. </script>
  394. </button>
  395. </case>
  396. <case id="case3" selected="true">
  397. <group id="group2" style="left:5px; top:9px; width:1050px; height:35px; vertical-align:top; ">
  398. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1050px; height:35px; "/>
  399. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">등록번호 :</caption>
  400. <line id="line1" class="line_4" style="x1:934px; y1:7px; x2:934px; y2:29px; "/>
  401. <caption id="caption7" class="search_name" style="left:305px; top:9px; width:117px; height:17px; ">처방일자 :</caption>
  402. <input id="input2" ref="/root/send/pid" class="input_s_essential" style="left:110px; top:8px; width:130px; height:19px; ">
  403. <script type="javascript" ev:event="onkeydown">
  404. <![CDATA[
  405. if( btn_patprcplist.selected == true ) {
  406. inputEnterKey("btn_sea","DOMActivate");
  407. }
  408. if( btn_cdis.selected == true ) {
  409. inputEnterKey("btn_sea2","DOMActivate");
  410. }
  411. ]]>
  412. </script>
  413. </input>
  414. <input id="input3" ref="/root/send/prcpdd" class="input_s_essential" inputtype="date" style="left:399px; top:8px; width:102px; height:19px; "/>
  415. <button id="btn_sea2" class="btn1_letter2" style="left:965px; top:7px; width:56px; height:22px; ">
  416. <caption>조회</caption>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. if(model.getValue("/root/send/pid") == "" ) {
  420. messageBox("등록번호를 ", "C001");
  421. return;
  422. }else {
  423. submit("TRAEA04305");
  424. // 조회 후에 과거처방 대상자 조회시 선택버튼 숨김기능 풀어주기 위해( 최초 풀어주지만 조회시 다시 숨겨짐)
  425. var tmp = model.getValue("/root/send/gb");
  426. if(tmp == "OldOrder") { // opener parameter value가 있는 경우
  427. // CDIS 선택박스 보여주기
  428. grd_cdislist.colHidden(1) = false;
  429. }
  430. }
  431. ]]>
  432. </script>
  433. </button>
  434. <button id="button87" class="btn5_letter8" style="left:807px; top:8px; width:108px; height:19px; ">
  435. <caption>장비기준자료Ins</caption>
  436. <script type="javascript" ev:event="DOMActivate">
  437. <![CDATA[
  438. submit("TXAEA04302");
  439. ]]>
  440. </script>
  441. </button>
  442. <button id="but_oldOrder" class="btn5_letter8" visibility="hidden" style="left:685px; top:8px; width:108px; height:19px; ">
  443. <caption>과거처방 자료Ins</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. // 입력된 자료를 선택했을때 알려주기
  447. var row = 0;
  448. var row = grd_cdislist.row;
  449. if(model.getValue("/root/main/cdisinfolist/cdislist["+ row +"]/prcpstat")=="Y"){
  450. messageBox("이미 입력이","I002");
  451. return(0);
  452. }
  453. // 선택된 리스트만 노트에 담아서 Insert 하도록 한다
  454. var nodeList = instance1.selectNodes("/root/main/cdisinfolist/cdislist[check='Y']");
  455. var rCSV = getNodeListCSV(nodeList);
  456. if ( rCSV == null ) {
  457. messageBox("처방내역을 ","C002");
  458. return "0";
  459. }
  460. model.setValue("/root/send/cdislist", rCSV);
  461. if (submit("TXAEA04303")){
  462. submit("TRAEA04305");
  463. // 조회 후에 과거처방 대상자 조회시 선택버튼 숨김기능 풀어주기 위해( 최초 풀어주지만 조회시 다시 숨겨짐)
  464. var tmp = model.getValue("/root/send/gb");
  465. if(tmp == "OldOrder") { // opener parameter value가 있는 경우
  466. // CDIS 선택박스 보여주기
  467. grd_cdislist.colHidden(1) = false;
  468. }
  469. }
  470. ]]>
  471. </script>
  472. </button>
  473. <button id="btn_request" class="btn3_letter8" style="left:675px; top:10px; width:128px; height:22px; ">
  474. <caption>위수탁실시완료</caption>
  475. <script type="javascript" ev:event="DOMActivate">
  476. <![CDATA[
  477. submit("TXAEA04307");
  478. ]]>
  479. </script>
  480. </button>
  481. <input id="ipt_execprcpuniqno" ref="/root/send/prcpno" class="input_s_essential" style="left:510px; top:10px; width:155px; height:19px; "/>
  482. </group>
  483. <line id="line6" class="line_1" style="x1:5px; y1:49px; x2:1055px; y2:49px; "/>
  484. <datagrid id="grd_cdislist" nodeset="/root/main/cdisinfolist/cdislist" scroll="vertical" caption="선택^^등록번호^환자명^진료일자^처방코드^검사명^검사실코드^검사실명^처방상태^READYN^ACPTDT^등록여부^기준자료코드^지원부서코드^EMR연동" colsep="^" colwidth="33, 18, 66, 56, 75, 56, 116, 95, 80, 58, 72, 84, 60, 78, 110, 55" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:54px; width:1050px; height:621px; ">
  485. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  486. <col ref="update" style="background-image:../../../com/commonweb/images/icon_n.gif; background-position:center; "/>
  487. <col ref="pid"/>
  488. <col ref="patnm" style="text-align:center; "/>
  489. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  490. <col ref="calcscorcd" type="combo" visibility="hidden" style="text-align:left; ">
  491. <choices>
  492. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  493. <label ref="prcpexecdeptcdnm"/>
  494. <value ref="prcpexecdeptcdid"/>
  495. </itemset>
  496. </choices>
  497. </col>
  498. <col ref="prcpnm" style="text-align:center; "/>
  499. <col ref="excutype" style="text-align:center; "/>
  500. <col ref="excutypenm" format="yyyy-mm-dd" style="text-align:left; "/>
  501. <col ref="prcpstat" style="text-align:center; "/>
  502. <col ref="readyn" format="yyyy-mm-dd" style="text-align:center; "/>
  503. <col ref="acptdt" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
  504. <col ref="insyn" style="text-align:center; "/>
  505. <col disabled="true" ref="excucd" type="output" style="text-align:left; "/>
  506. <col disabled="true" ref="suppdeptcd" type="combo" style="text-align:center; ">
  507. <choices>
  508. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  509. <label ref="prcpexecdeptcdnm"/>
  510. <value ref="prcpexecdeptcdid"/>
  511. </itemset>
  512. </choices>
  513. </col>
  514. <col ref="emryn" style="text-align:center; "/>
  515. <script type="javascript" ev:event="onaftersort">
  516. <![CDATA[
  517. datagrid1.gridToInstance();
  518. ]]>
  519. </script>
  520. <script type="javascript" ev:event="onmouseup">
  521. <![CDATA[
  522. if (isDataCell()) {
  523. for ( var i = 1; i < grd_cdislist.rows; i++) {
  524. model.setValue("/root/main/cdisinfolist/cdislist[" + i + "]/check", "N");
  525. }
  526. for ( var i =0 ; i< grd_cdislist.selectedRows;i++){
  527. model.setValue("/root/main/cdisinfolist/cdislist[" + grd_cdislist.selectedRow(i) + "]/check", "Y");
  528. }
  529. }
  530. model.refresh();
  531. ]]>
  532. </script>
  533. </datagrid>
  534. </case>
  535. </switch>
  536. <button id="btn_patprcp" class="btn_sw" group="tab" style="left:0px; top:5px; width:132px; height:22px; ">
  537. <caption>선처치/기준자료 비교</caption>
  538. <toggle case="case1" ev:event="onclick"/>
  539. </button>
  540. <button id="btn_cdis" class="btn_sw" group="tab" style="left:268px; top:5px; width:97px; height:22px; ">
  541. <caption>CDIS연동체크</caption>
  542. <toggle case="case3" ev:event="onclick"/>
  543. </button>
  544. <button id="btn_patprcplist" class="btn_sw" group="tab" style="left:134px; top:5px; width:132px; height:22px; ">
  545. <caption>환자별 처방정보조회</caption>
  546. <toggle case="case2" ev:event="onclick"/>
  547. </button>
  548. </group>
  549. </xhtml:body>
  550. </xhtml:html>