SMAEA07100_PACS인터페이스정보조회.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  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>PACS 인터페이스 정보 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcphist>
  11. <prcplist>
  12. <no/>
  13. <prcpdd/>
  14. <prcpgenrflag/>
  15. <calcscorcd/>
  16. <excucdnm/>
  17. <execprcpstatcd/>
  18. <usernm/>
  19. <depthngnm/>
  20. <rsrvdd/>
  21. <rcptdd/>
  22. <acptdd/>
  23. <excuexectodt/>
  24. <cnfmdt/>
  25. <acptrem/>
  26. <hisorderid/>
  27. </prcplist>
  28. <prcpcnllist>
  29. <no/>
  30. <prcpdd/>
  31. <prcpgenrflag/>
  32. <prcpcd/>
  33. <excucdnm/>
  34. <prcphistcd/>
  35. <usernm/>
  36. <depthngnm/>
  37. <rsrvdd/>
  38. <rcptdd/>
  39. <acptdd/>
  40. <excuexectodt/>
  41. <cnfmdt/>
  42. <acptrem/>
  43. <hisorderid/>
  44. </prcpcnllist>
  45. </prcphist>
  46. <patinfo>
  47. <patinfolist/>
  48. </patinfo>
  49. <pacsinfo>
  50. <pacsrpth>
  51. <queueid/>
  52. <flag/>
  53. <worktime/>
  54. <readstatus/>
  55. <hisorderid/>
  56. <patid/>
  57. <readtext/>
  58. <confdate/>
  59. <conftime/>
  60. <confdr1/>
  61. <confdr2/>
  62. <extend1/>
  63. <extend2/>
  64. <opdeptid/>
  65. <studydtm/>
  66. </pacsrpth>
  67. <pacsordh>
  68. <queueid/>
  69. <flag/>
  70. <worktime/>
  71. <patid/>
  72. <eventtype/>
  73. <hisorderid/>
  74. <accessionno/>
  75. <examdate/>
  76. <examtime/>
  77. <examroom/>
  78. <examcode/>
  79. <examname/>
  80. <orderdoc/>
  81. <opdoc/>
  82. <patname/>
  83. <patname2/>
  84. <patbirthday/>
  85. <patsex/>
  86. <study_instance_uid/>
  87. <patpersonalid/>
  88. <patzip/>
  89. <pataddress1/>
  90. <status/>
  91. <stu/>
  92. </pacsordh>
  93. </pacsinfo>
  94. </main>
  95. <send>
  96. <pid/>
  97. <prcpfromdd/>
  98. <prcptodd/>
  99. <globalinstance>
  100. <instance1/>
  101. </globalinstance>
  102. <suppdeptcd/>
  103. <hisorderid/>
  104. <patname/>
  105. <patname2/>
  106. <patsex/>
  107. <patbirthday/>
  108. <patpersonalid/>
  109. <patzip/>
  110. <pataddress1/>
  111. <savedata/>
  112. <oldpid/>
  113. </send>
  114. <init>
  115. <baseinfo>
  116. <initexecprcpstatcd/>
  117. </baseinfo>
  118. <cmb_info>
  119. <suppdeptlist>
  120. <suppdept/>
  121. </suppdeptlist>
  122. </cmb_info>
  123. <suppdeptlist>
  124. <suppdeptcd/>
  125. <depthngnm/>
  126. </suppdeptlist>
  127. </init>
  128. <hidden>
  129. <source>
  130. <pathngnm/>
  131. </source>
  132. </hidden>
  133. <init3>
  134. <baseinfo>
  135. <emplinfo/>
  136. </baseinfo>
  137. </init3>
  138. </root>
  139. </instance>
  140. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  141. <submission id="TRZBC00101"/>
  142. <bind id="bind_prcpstatcd" ref="/root/main/prcphist/prcplist/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  143. <script type="javascript" ev:event="xforms-ready">
  144. <![CDATA[
  145. // 2010.12.15 c y w 조회조건으로 지원부서 추가
  146. model.setValue("/root/send/hisorderid","");
  147. var suppdeptcd = "";
  148. suppdeptcd = getScreenMenuParameter();
  149. if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null"){
  150. aezfSetSuppDeptcd();
  151. }else{
  152. model.setValue("/root/send/globalinstance/instance1", suppdeptcd);
  153. }
  154. var instance = model.getValue("/root/send/globalinstance/instance1");
  155. //지원부서 조회
  156. submit("TRAEA00904", false);
  157. if( instance1.selectSingleNode("/root/init/cmb_info/suppdeptlist/suppdept[suppdeptcd='" + instance + "']") == null ){
  158. model.setValue("root/send/suppdeptcd" , "2180000000"); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영
  159. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  160. }else{
  161. model.setValue("root/send/suppdeptcd" , instance); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영);
  162. }
  163. //권한자 가져오기
  164. astGetComboList( new Array("E0002"), new Array("/root/init3/baseinfo/emplinfo") );
  165. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  166. submit("TRZBC00101", false);
  167. ipt_startrsrvdd.value = getCurrentDate().toDate().getAddDate(-90,"D").getDateFormat("YYYYMMDD");
  168. ipt_endrsrvdd.value = getCurrentDate();
  169. model.removeNodeset("/root/main/prcphist/prcplist");
  170. model.removeNodeset("/root/main/pacsinfo/pacsordh");
  171. model.removeNodeset("/root/main/pacsinfo/pacsrpth");
  172. model.refresh();
  173. model.setFocus("ipt_pid");
  174. if (model.getValue("/root/send/pid") != ""){
  175. btn_sea.dispatch("DOMActivate");
  176. }else{
  177. // 이부분이 멀까나 ㅠㅠㅠㅠ
  178. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  179. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  180. if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
  181. {
  182. model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  183. model.makeNode("/root/paminfo");
  184. setCSVToNode("/root/paminfo", paminfo);
  185. //상단 정보를 이용하여 프로그램 수행
  186. var pid = model.getValue("/root/paminfo" + "/list/pid");
  187. model.setValue("/root/send/pid", pid);
  188. btn_sea.dispatch("DOMActivate");
  189. }
  190. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  191. model.setValue("/root/send/pid", gv_pid);
  192. btn_sea.dispatch("DOMActivate");
  193. }
  194. }
  195. ]]>
  196. </script>
  197. <submission id="TXAEA07101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/savedata" replace="instance"/>
  198. <submission id="TXAEA07102" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance"/>
  199. <submission id="TXAEA07103" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance"/>
  200. <submission id="TRAEA07101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance" resultref="/root/main/pacsinfo"/>
  201. <submission id="TRAEA07102" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance" resultref="/root/main/prcphist"/>
  202. <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  203. <submission id="TRAAA00001"/>
  204. </model>
  205. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  206. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  207. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  208. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  209. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  210. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  211. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  212. </xhtml:head>
  213. <xhtml:body guideline="1,1195;2,757;2,784;">
  214. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  215. <caption id="caption6" class="tit_1" style="left:0px; top:10px; width:235px; height:3px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">개인별 PACS인터페이스정보 조회</caption>
  216. </group>
  217. <group id="group3" popup="ta" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  218. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  219. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  220. <caption id="caption1" class="search_name" style="left:380px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
  221. <caption id="caption3" class="search_name" style="left:15px; top:8px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  222. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. ipt_hisorderid.value = " ";
  227. btn_case1.selected = true;
  228. var _pid = model.getValue("/root/send/pid");
  229. var _frdt = model.getValue("/root/send/prcpfromdd");
  230. var _todt = model.getValue("/root/send/prcptodd");
  231. if ( _pid == "" ) {
  232. messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
  233. model.setFocus("ipt_pid");
  234. }
  235. else if ( _frdt == "" && _todt != "" ) {
  236. messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
  237. model.setFocus("ipt_startrsrvdd");
  238. }
  239. else if ( _frdt != "" && _todt == "") {
  240. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  241. model.setFocus("ipt_endrsrvdd");
  242. }
  243. else if ( getDateInterval(_frdt, _todt) < 0 ) {
  244. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
  245. model.setFocus("ipt_startrsrvdd");
  246. }
  247. else {
  248. //submit("TRAEA00401");
  249. submit("TRAEA07102");
  250. if ( grd_prcphist.rows == 1) {
  251. messageBox("입력하신 등록번호/일자에 해당하는 환자의 처방이력이 DB에 존재하지 않습니다.", "I999");
  252. }
  253. model.setValue( "/root/send/hisorderid", "");
  254. model.refresh();
  255. }
  256. ]]>
  257. </script>
  258. </button>
  259. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="1" maxlength="10" style="left:105px; top:8px; width:100px; height:19px; ">
  260. <script type="javascript" ev:event="onkeyup">
  261. <![CDATA[
  262. if(event.keyCode == "13") {
  263. setInputNodeCurText();
  264. var pid = ipt_pid.value;
  265. if(pid == ""){
  266. messageBox("환자를 지정하지", "E007")
  267. return ;
  268. }
  269. //환자정보 조회
  270. if(submit("TRAEA00204")) {
  271. model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  272. }
  273. model.toggle("case1");
  274. inputEnterKey("btn_sea", "DOMActivate");
  275. //inputEnterKey("btn_sea2", "DOMActivate");
  276. }
  277. ]]>
  278. </script>
  279. </input>
  280. <input id="ipt_endrsrvdd" ref="/root/send/prcptodd" class="input_default" navindex="3" inputtype="date" style="left:579px; top:8px; width:100px; height:14px; "/>
  281. <button id="button61" class="icon_search" style="left:210px; top:9px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  282. <caption/>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "/root/send");
  286. model.setValue( "/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
  287. model.setValue( "/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") );
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </button>
  292. <output id="opt_pathngnm" ref="/root/hidden/source/pathngnm" class="output_fix" style="left:232px; top:8px; width:100px; height:19px; "/>
  293. <input id="ipt_startrsrvdd" ref="/root/send/prcpfromdd" class="input_default" navindex="2" inputtype="date" style="left:474px; top:8px; width:100px; height:14px; ">
  294. <script type="javascript" ev:event="DOMFocusIn">
  295. <![CDATA[
  296. opt_pathngnm.value = "";
  297. ]]>
  298. </script>
  299. <script type="javascript" ev:event="onkeyup">
  300. <![CDATA[
  301. var _str = ipt_pid.currentText;
  302. if ( _str.isNumber() == false ) {
  303. messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
  304. ipt_pid.value = "";
  305. }
  306. btn_sea.dispatch("DOMActivate");
  307. ]]>
  308. </script>
  309. </input>
  310. <select1 id="cmb_deptcd" ref="/root/send/suppdeptcd" class="combo_default" appearance="minimal" editmode="input" style="left:825px; top:8px; width:155px; height:19px; ">
  311. <choices>
  312. <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
  313. <label ref="depthngnm"/>
  314. <value ref="suppdeptcd"/>
  315. </itemset>
  316. </choices>
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. // model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  320. ]]>
  321. </script>
  322. </select1>
  323. <caption id="caption5" class="search_name" style="left:730px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
  324. </group>
  325. <button id="btn_excsave" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1129px; top:49px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  326. <caption>엑셀저장</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. var fileName = window.fileDialog("save", ",", false, "개인별처방이력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  330. if (fileName != "")
  331. {
  332. grd_prcphist.saveExcel(fileName);
  333. }
  334. ]]>
  335. </script>
  336. </button>
  337. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
  338. <line id="line2" class="line_1" style="x1:1px; y1:370px; x2:1195px; y2:370px; "/>
  339. <caption id="caption2" class="tit_2" style="left:0px; top:570px; width:144px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">PAC.PACSRPTH</caption>
  340. <datagrid id="grd_pacsrpth" nodeset="/root/main/pacsinfo/pacsrpth" autoresize="true" caption="QUEUEID^FLAG^WORKTIME^READSTATUS^HISORDERID^PATID^READTEXT^CONFDATE^CONFTIME^CONFDR1^CONFDR2^EXTEND1^EXTEND2^OPDEPTID^STUDYDTM" colsep="^" colwidth="85, 39, 103, 91, 132, 85, 913, 80, 73, 63, 64, 63, 61, 77, 120" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1px; top:590px; width:1194px; height:125px; ">
  341. <col ref="queueid"/>
  342. <col ref="flag" type="input"/>
  343. <col ref="worktime"/>
  344. <col ref="readstatus"/>
  345. <col ref="hisorderid" style="font-weight:bold; color:#ff0000; "/>
  346. <col ref="patid" type="input" style="color:#000000; "/>
  347. <col ref="readtext" type="input"/>
  348. <col ref="confdate"/>
  349. <col ref="conftime"/>
  350. <col ref="confdr1"/>
  351. <col ref="confdr2"/>
  352. <col ref="extend1"/>
  353. <col ref="extend2"/>
  354. <col ref="opdeptid"/>
  355. <col ref="studydtm"/>
  356. <script type="javascript" ev:event="onaftersort">
  357. <![CDATA[
  358. grd_pacsrpth.gridToInstance();
  359. ]]>
  360. </script>
  361. </datagrid>
  362. <caption id="caption4" class="tit_2" style="left:5px; top:355px; width:144px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">PAC.PACSORDH</caption>
  363. <line id="line3" class="line_1" style="x1:1px; y1:585px; x2:1195px; y2:585px; "/>
  364. <button id="button2" class="btn1_letter8" style="left:915px; top:345px; width:128px; height:22px; ">
  365. <caption>PACSORDH 리셋</caption>
  366. <script type="javascript" ev:event="onclick">
  367. <![CDATA[
  368. //alert(getGridUpdateData(grd_pacsordh));
  369. //model.makeValue("/root/send/savedata/ordhinfo" , getGridUpdateData(grd_pacsordh) );
  370. model.makeValue("/root/send/savedata/ordhinfo" , grd_pacsordh.getUpdateDataAll("u") );
  371. submit("TXAEA07101", false);
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="btn_insrpth" class="btn1_letter8" style="left:1050px; top:345px; width:128px; height:22px; ">
  376. <caption>PACSRPTH 생성</caption>
  377. <script type="javascript" ev:event="onclick">
  378. <![CDATA[
  379. //pacsrpth가 없을 경우
  380. //insert pacsrpth
  381. var auth_id = getUserInfo("userid");
  382. var dev_id = auth_id.substr(0,3);
  383. // 2011.06.21 권한 공통코드(E0002)로 관리
  384. var idx_cncl = 0;
  385. var cnclidCnt = getNodesetCount("/root/init3/baseinfo/emplinfo/E0002");
  386. for( var i = 1 ; i<= cnclidCnt ; i++){
  387. if( model.getValue("/root/init3/baseinfo/emplinfo/E0002["+ i +"]/cdid") == auth_id ){
  388. idx_cncl++;
  389. }
  390. }
  391. if ( idx_cncl != 0 || dev_id == "DEV" || dev_id == "AST") {
  392. }else {
  393. messageBox("저장/수정/삭제권한은 전산 관리자에게만 부여합니다.","I999");
  394. return;
  395. }
  396. model.setValue( "/root/send/hisorderid", model.getValue("/root/send/hisorderid"));
  397. model.setValue( "/root/send/pid", model.getValue("/root/send/pid"));
  398. if ( grd_pacsrpth.rows < 3 ) {
  399. submit("TXAEA07102", false);
  400. }
  401. ]]>
  402. </script>
  403. </button>
  404. <datagrid id="grd_pacsordh" nodeset="/root/main/pacsinfo/pacsordh" autoresize="true" caption="QUEUEID^^FLAG^WORKTIME^PATID^EVENTTYPE^HISORDERID^ACCESSIONNO^EXAMDATE^EXAMTIME^EXAMROOM^EXAMCODE^caption1^EXAMNAME^ORDERDOC^OPDOC^PATNAME^PATNAME2^PATPERSONALID^PATBIRTHDAY^PATSEX^patzip^address^STUDY_INSTANCE_UID" colsep="^" colwidth="165, 35, 41, 103, 69, 83, 132, 102, 80, 73, 76, 72, 100, 354, 77, 77, 78, 81, 100, 68, 37, 100, 341, 240, 100" ellipsis="true" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1px; top:375px; width:1194px; height:165px; ">
  405. <col ref="queueid"/>
  406. <col class="update_n" ref="stu"/>
  407. <col ref="flag"/>
  408. <col ref="worktime"/>
  409. <col editable="true" ref="patid" type="input" style="left:329px; top:23px; width:69px; height:23px; color:#000000; "/>
  410. <col ref="eventtype" style="font-weight:bold; "/>
  411. <col editable="false" ref="hisorderid" type="input" style="font-weight:bold; color:#ff0000; "/>
  412. <col editable="false" ref="accessionno" type="input" style="font-weight:bold; color:#993366; "/>
  413. <col ref="examdate"/>
  414. <col ref="examtime"/>
  415. <col ref="examroom"/>
  416. <col ref="examcode"/>
  417. <col ref="status" visibility="hidden"/>
  418. <col ref="examname"/>
  419. <col ref="orderdoc"/>
  420. <col ref="opdoc"/>
  421. <col ref="patname" type="input"/>
  422. <col ref="patname2" type="input"/>
  423. <col ref="patpersonalid" type="input"/>
  424. <col ref="patbirthday" type="input"/>
  425. <col ref="patsex" type="input"/>
  426. <col ref="patzip" type="input"/>
  427. <col ref="pataddress1" type="input"/>
  428. <col ref="study_instance_uid"/>
  429. <script type="javascript" ev:event="onaftersort">
  430. <![CDATA[
  431. grd_pacsrpth.gridToInstance();
  432. ]]>
  433. </script>
  434. <script type="javascript" ev:event="xforms-value-changed">
  435. <![CDATA[
  436. if ( grd_pacsordh.row > 0 ) {
  437. model.setValue( "/root/send/hisorderid", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/hisorderid"));
  438. model.setValue( "/root/send/pid", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patid"));
  439. model.setValue( "/root/send/patname", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patname"));
  440. model.setValue( "/root/send/patname2", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patname2"));
  441. model.setValue( "/root/send/patsex", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patsex"));
  442. model.setValue( "/root/send/patbirthday", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patbirthday"));
  443. model.setValue( "/root/send/patpersonalid", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patpersonalid"));
  444. model.setValue( "/root/send/patzip", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patzip"));
  445. model.setValue( "/root/send/pataddress1", model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/pataddress1"));
  446. //alert("pname = " + model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/patname"));
  447. if( model.getValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/status") ==""){
  448. model.makeValue("/root/main/pacsinfo/pacsordh[" + grd_pacsordh.row + "]/status", "u");
  449. grd_pacsordh.cellStyle("background-image", + grd_pacsordh.row, grd_pacsordh.colRef("stu")) = "../../../com/commonweb/images/icon_u.gif"; //방향컬럼추가로 인덱스수정10->11-20091016-kys
  450. }
  451. }
  452. model.refresh();
  453. ]]>
  454. </script>
  455. </datagrid>
  456. <switch id="switch1" style="left:5px; top:75px; width:1190px; height:260px; ">
  457. <case id="case1" selected="true">
  458. <datagrid id="grd_prcphist" nodeset="/root/main/prcphist/prcplist" autoresize="true" caption="처방일자^I/O^처방코드^처방명^처방상태^진료의사^진료과^예약일시^수납일자^접수일자^실시일시^판독일자^검사실 정보^hisorderid" colsep="^" colwidth="70, 30, 80, 251, 70, 70, 80, 120, 70, 70, 120, 120, 297, 120" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1175px; height:255px; ">
  459. <col ref="prcpdd" format="yyyy-mm-dd"/>
  460. <col ref="prcpgenrflag" style="text-align:center; "/>
  461. <col ref="calcscorcd"/>
  462. <col ref="excucdnm"/>
  463. <col ref="execprcpstatcd" type="combo" style="font-weight:bold; color:#ff0000; ">
  464. <choices>
  465. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  466. <label ref="cdnm"/>
  467. <value ref="cdid"/>
  468. </itemset>
  469. </choices>
  470. </col>
  471. <col ref="usernm"/>
  472. <col ref="depthngnm"/>
  473. <col ref="rsrvdd" format="yyyy-mm-dd hh:nn:ss"/>
  474. <col ref="rcptdd" format="yyyy-mm-dd"/>
  475. <col ref="acptdd" format="yyyy-mm-dd"/>
  476. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn:ss"/>
  477. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn:ss"/>
  478. <col ref="acptrem" style="text-align:left; "/>
  479. <col ref="hisorderid"/>
  480. <script type="javascript" ev:event="onaftersort">
  481. <![CDATA[
  482. grd_prcphist.gridToInstance();
  483. ]]>
  484. </script>
  485. <script type="javascript" ev:event="onclick">
  486. <![CDATA[
  487. var hisorderid = model.getValue("/root/main/prcphist/prcplist[" + grd_prcphist.row + "]/hisorderid");
  488. ipt_hisorderid.value = hisorderid;
  489. model.setValue( "/root/send/hisorderid", hisorderid );
  490. submit("TRAEA07101");
  491. model.refresh();
  492. ]]>
  493. </script>
  494. </datagrid>
  495. </case>
  496. <case id="case2">
  497. <datagrid id="grd_prcphistcnl" nodeset="/root/main/prcphist/prcpcnllist" autoresize="true" caption="처방일자^I/O^처방코드^처방명^처방상태^진료의사^진료과^예약일시^수납일자^접수일자^실시일시^판독일자^검사실 정보^hisorderid" colsep="^" colwidth="70, 30, 80, 251, 70, 70, 80, 120, 70, 70, 120, 120, 297, 120" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1180px; height:255px; ">
  498. <col ref="prcpdd" format="yyyy-mm-dd"/>
  499. <col ref="prcpgenrflag" style="text-align:center; "/>
  500. <col ref="prcpcd"/>
  501. <col ref="excucdnm"/>
  502. <col ref="prcphistcd"/>
  503. <col ref="usernm"/>
  504. <col ref="depthngnm"/>
  505. <col ref="rsrvdd" format="yyyy-mm-dd hh:nn:ss"/>
  506. <col ref="rcptdd" format="yyyy-mm-dd"/>
  507. <col ref="acptdd" format="yyyy-mm-dd"/>
  508. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn:ss"/>
  509. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn:ss"/>
  510. <col ref="acptrem" style="text-align:left; "/>
  511. <col ref="hisorderid"/>
  512. <script type="javascript" ev:event="onaftersort">
  513. <![CDATA[
  514. grd_prcphistcnl.gridToInstance();
  515. ]]>
  516. </script>
  517. <script type="javascript" ev:event="onclick">
  518. <![CDATA[
  519. var hisorderid = model.getValue("/root/main/prcphist/prcpcnllist[" + grd_prcphistcnl.row + "]/hisorderid");
  520. ipt_hisorderid.value = hisorderid;
  521. model.setValue( "/root/send/hisorderid", hisorderid );
  522. submit("TRAEA07101");
  523. model.refresh();
  524. ]]>
  525. </script>
  526. </datagrid>
  527. </case>
  528. <case id="case3">
  529. <caption id="caption7" class="search_name" style="left:70px; top:20px; width:112px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">신규등록번호 :</caption>
  530. <input id="input1" ref="/root/send/pid" class="input_search" navindex="1" maxlength="10" style="left:190px; top:20px; width:100px; height:19px; "/>
  531. <caption id="caption8" class="search_name" style="left:70px; top:45px; width:108px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과거등록번호 :</caption>
  532. <input id="input2" ref="/root/send/oldpid" class="input_search" navindex="1" maxlength="10" style="left:190px; top:45px; width:100px; height:19px; "/>
  533. <button id="btn_ok" class="btn1_letter8" style="left:360px; top:20px; width:128px; height:22px; ">
  534. <caption>신규번호로 갱신</caption>
  535. <script type="javascript" ev:event="onclick">
  536. <![CDATA[
  537. submit("TXAEA07103", false);
  538. //if(submit("TXAEA07103") ) {
  539. // messagebox("갱신되었습니다", "E999", "");
  540. //}
  541. model.refresh();
  542. ]]>
  543. </script>
  544. </button>
  545. </case>
  546. </switch>
  547. <button id="btn_case1" class="btn_sw" group="tab" style="left:0px; top:50px; width:80px; height:22px; ">
  548. <caption>처방이력</caption>
  549. <toggle case="case1" ev:event="onclick"/>
  550. <script type="javascript" ev:event="DOMActivate">
  551. <![CDATA[
  552. //inputEnterKey("btn_sea", "DOMActivate");
  553. //alert('mmm');
  554. ]]>
  555. </script>
  556. </button>
  557. <button id="btn_case2" class="btn_sw" group="tab" style="left:80px; top:50px; width:80px; height:22px; ">
  558. <caption>취소처방</caption>
  559. <toggle case="case2" ev:event="onclick"/>
  560. <script type="javascript" ev:event="DOMActivate">
  561. <![CDATA[
  562. //inputEnterKey("btn_sea2", "DOMActivate");
  563. //alert('mmm');
  564. ]]>
  565. </script>
  566. </button>
  567. <input id="ipt_hisorderid" ref="/root/send/hisorderid" style="left:150px; top:348px; width:205px; height:19px; ">
  568. <script type="javascript" ev:event="onkeyup">
  569. <![CDATA[
  570. inputEnterKey("btn_hisorderid", "DOMActivate");
  571. ]]>
  572. </script>
  573. </input>
  574. <button id="btn_hisorderid" class="btn1_letter2" navindex="4" style="left:360px; top:348px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  575. <caption>조회</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. var hisorderid = ipt_hisorderid.value;
  579. model.setValue( "/root/send/hisorderid", hisorderid );
  580. submit("TRAEA07101");
  581. model.refresh();
  582. ]]>
  583. </script>
  584. </button>
  585. <button id="button1" class="btn2_letter4" style="left:780px; top:345px; width:64px; height:19px; ">
  586. <caption>이름변경</caption>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. if ( grd_pacsordh.rows < 1 ) {
  590. return "0";
  591. }
  592. var pname = model.getValue("/root/hidden/source/pathngnm");
  593. if ( pname == "" ) {
  594. messageBox("환자 이름이 없습니다. 확인바랍니다.", "E999", "");
  595. return "0";
  596. }
  597. for (var i = 1 ; i<grd_pacsordh.rows; i++ ) {
  598. model.setValue("/root/main/pacsinfo/pacsordh["+ i +"]/patname" , pname );
  599. model.setValue("/root/main/pacsinfo/pacsordh["+ i +"]/patname2" , pname );
  600. model.setValue("/root/main/pacsinfo/pacsordh[" + i + "]/status", "u");
  601. grd_pacsordh.cellStyle("background-image", + i, grd_pacsordh.colRef("stu")) = "../../../com/commonweb/images/icon_u.gif";
  602. model.makeValue("/root/main/pacsinfo/pacsordh[" + i + "]/stu", "u");
  603. }
  604. model.refresh();
  605. ]]>
  606. </script>
  607. </button>
  608. <button id="btn_case3" class="btn_sw" group="tab" style="left:160px; top:50px; width:80px; height:22px; ">
  609. <caption>합번</caption>
  610. <toggle case="case3" ev:event="onclick"/>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. //inputEnterKey("btn_sea2", "DOMActivate");
  614. //alert('mmm');
  615. ]]>
  616. </script>
  617. </button>
  618. </group>
  619. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  620. <button id="btn_prt" class="btn6_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:0px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  621. <caption>출력</caption>
  622. </button>
  623. </group>
  624. <line id="line13" class="line_4" style="x1:1107px; y1:29px; x2:1107px; y2:51px; "/>
  625. </xhtml:body>
  626. </xhtml:html>