SMAEA03500_처방전출력(핵체내).xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882
  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. <ordlist1>
  11. <mainordlist1/>
  12. </ordlist1>
  13. <subordlist>
  14. <subordlist1/>
  15. <subordlist2/>
  16. </subordlist>
  17. <patinfo>
  18. <patinfolist/>
  19. </patinfo>
  20. <popupendflag/>
  21. </main>
  22. <send>
  23. <data>
  24. <cmb_info>
  25. <initexecroom>
  26. <excuroomcdid/>
  27. </initexecroom>
  28. <initexecward>
  29. <execwardcdid/>
  30. </initexecward>
  31. <initioflag>
  32. <ioflag/>
  33. </initioflag>
  34. <initexcuroomgrp>
  35. <excuroomgrpcdid/>
  36. </initexcuroomgrp>
  37. </cmb_info>
  38. <srchpid/>
  39. <srchdate1/>
  40. <srchdate2/>
  41. <acptlistflag>M</acptlistflag>
  42. <srchtotal/>
  43. <grd_info>
  44. <grid_data>
  45. </grid_data>
  46. </grd_info>
  47. <tobeacptprcp>
  48. <tobeacptprcplist/>
  49. </tobeacptprcp>
  50. <tobeacptcnclprcp>
  51. <tobeacptcnclprcplist/>
  52. </tobeacptcnclprcp>
  53. <tobeholdprcp>
  54. <tobeholdprcplist/>
  55. </tobeholdprcp>
  56. <tobeholdcnclprcp>
  57. <tobeholdcnclprcplist/>
  58. </tobeholdcnclprcp>
  59. <srchrsrvpid/>
  60. <initexcuroomgrp/>
  61. <sortbase/>
  62. </data>
  63. <globalinstance>
  64. <instance1/>
  65. </globalinstance>
  66. <windowloadinstance/>
  67. <data1>
  68. </data1>
  69. <patinfo>
  70. <srchpid/>
  71. <orddd/>
  72. <orddeptcd/>
  73. <suppdeptcd1/>
  74. <chkflag/>
  75. <data/>
  76. </patinfo>
  77. <examposuseyn/>
  78. </send>
  79. <init>
  80. <cmb_info>
  81. <initexecroom>
  82. <excuroomcdid/>
  83. <excuroomcdnm/>
  84. </initexecroom>
  85. <initexecward>
  86. <execwardcdid/>
  87. <execwardcdnm/>
  88. </initexecward>
  89. <initexcuroomgrp>
  90. <excuroomgrpcdid/>
  91. <excuroomgrpcdnm/>
  92. </initexcuroomgrp>
  93. </cmb_info>
  94. <cmb_info2>
  95. <initexecroom>
  96. <excuroomcdid/>
  97. <excuroomcdnm/>
  98. </initexecroom>
  99. </cmb_info2>
  100. <baseinfo>
  101. <initexecprcpstatcd/>
  102. <initpayflagcd/>
  103. <initprcpgenrflagcd/>
  104. </baseinfo>
  105. </init>
  106. <init1>
  107. <baseinfo>
  108. <examposinfo/>
  109. </baseinfo>
  110. </init1>
  111. <hidden>
  112. <count/>
  113. <comcd/>
  114. <data>
  115. <srchdate1/>
  116. <srchdate2/>
  117. <srchflag/>
  118. </data>
  119. </hidden>
  120. </root>
  121. </instance>
  122. <script type="javascript" ev:event="xforms-ready">
  123. <![CDATA[
  124. aezfSetSuppDeptcd();
  125. model.removenode("/root/main/ordlist1");
  126. model.removenode("/root/main/subordlist");
  127. var excuroomgrpcdid = "영상검사실";
  128. model.makeValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  129. model.makeValue("/root/send/data/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  130. model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
  131. submit("TRAEA01401", false);
  132. zbcfGetCodeList( new Array("M0010", "M0011","M0029"), new Array("/root/init/baseinfo/initprcpgenrflagcd", "/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initpayflagcd") );
  133. submit("TRZBC00101", false);
  134. var srchdate1 = model.getValue("/root/hidden/data/srchdate1");
  135. var srchdate2 = model.getValue("/root/hidden/data/srchdate2");
  136. var pid = model.getValue("/root/hidden/data/pid");
  137. var initexcuroomgrp = model.getValue("/root/hidden/data/initexcuroomgrp");
  138. if (initexcuroomgrp !="") {
  139. model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", initexcuroomgrp);
  140. }
  141. model.makeValue("root/send/data/srchpid", pid);
  142. model.makeValue("/root/send/data/acptlistflag","R");
  143. model.makeValue("/root/hidden/data/srchflag","1");
  144. model.setValue("/root/send/data/sortbase", "P");
  145. ipt_date1.value = getCurrentDate();
  146. ipt_date2.value = getCurrentDate();
  147. addComboItem("cmb_excuroomgrp","--전체--","","above");
  148. grd_mainordlist.fixedcellcheckbox(0,1)=true;
  149. astGetComboList( new Array("NM001"), new Array("/root/init1/baseinfo/examposinfo") );
  150. if (submit("TRAAA00001",false)) {
  151. var nodeCnt = getNodesetCount("/root/init1/baseinfo/examposinfo/NM001");
  152. if (nodeCnt > 1) {
  153. model.setValue("/root/send/examposuseyn","Y");
  154. } else {
  155. model.setValue("/root/send/examposuseyn","N");
  156. }
  157. }
  158. model.refresh();
  159. // 검사실 그룹 변경 시 이벤트
  160. fExcuRoomGrpChoi(excuroomgrpcdid);
  161. if (pid != "") {
  162. fGetExamCureAcptList();
  163. var rowcnt = getNodesetCount("/root/main/ordlist1/mainordlist1");
  164. if (rowcnt > 0) {
  165. fGetExamCurePrcpList(grd_mainordlist);
  166. }
  167. }
  168. ]]>
  169. </script>
  170. <bind id="bind_execprcpstatcd" ref="/root/main/subordlist/subordlist/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  171. <bind id="bind_payflagcd" ref="/root/main/subordlist/subordlist/payflagcd" readonly="../payflagcd!=''"/>
  172. <bind id="bind_wardcd" ref="/root/main/ordlist/mainordlist/wardcd" readonly="../wardcd!=''"/>
  173. <bind id="bind_wardcd2" ref="/root/main/ordlist/mainordlist2/wardcd" readonly="../wardcd!=''"/>
  174. <bind id="bind_prcpgenrflagcd" ref="/root/main/subordlist/subordlist/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
  175. <bind id="bind_prcpgenrflagcd2" ref="/root/main/ordlist/mainordlist/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
  176. <submission id="TRZBC00101"/>
  177. <submission id="TRAEA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  178. <submission id="TRAEA01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
  179. <submission id="TRAEA01418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmb_info"/>
  180. <submission id="TRAEA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist"/>
  181. <submission id="TRAER00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
  182. <submission id="TRAEA03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subordlist"/>
  183. <submission id="TRAAA00001"/>
  184. </model>
  185. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  186. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  188. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  189. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  191. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  192. <script type="javascript">
  193. <![CDATA[
  194. /* @group : 영상검사관리(핵의학체내)
  195. * @ver : 2007.03.21
  196. * @by : 장준원
  197. * @-----------------------------------
  198. * @type : function
  199. * @access : public
  200. * @desc : Grid 초기화를 위한 Function
  201. */
  202. function fInitGrid() {
  203. model.resetInstanceNode("/root/main/ordlist/mainordlist");
  204. model.resetInstanceNode("/root/main/subordlist/subordlist");
  205. model.resetInstanceNode("/root/main/subordlist/subordlist2");
  206. model.resetInstanceNode("/root/send/data/grd_info/grid_data/pid");
  207. model.resetInstanceNode("/root/send/data/grd_info/grid_data/prcpgenrflag");
  208. model.resetInstanceNode("/root/send/data/grd_info/grid_data/orddeptcd");
  209. model.resetInstanceNode("/root/send/data/grd_info/grid_data/prcpdd");
  210. model.resetInstanceNode("/root/send/data/grd_info/grid_data/calcscorcd");
  211. model.refresh();
  212. }
  213. /* @group : 영상검사관리(핵의학체내)
  214. * @ver : 2007.03.21
  215. * @by : 장준원
  216. * @-----------------------------------
  217. * @type : function
  218. * @access : public
  219. * @desc : Toggle선택 조회를 위한 선택 Function
  220. */
  221. function fGetToggleAcptList() {
  222. fInitGrid();
  223. fGetExamCureAcptList();
  224. }
  225. /* @group : 영상검사관리(핵의학체내)
  226. * @ver : 2007.03.21
  227. * @by : 장준원
  228. * @-----------------------------------
  229. * @type : function
  230. * @access : public
  231. * @desc : 조회 Submission Function
  232. */
  233. function fGetExamCureAcptList() {
  234. // flag Setting
  235. model.removenode("/root/main/ordlist1");
  236. model.removenode("/root/main/ordlist2");
  237. model.removenode("/root/main/subordlist");
  238. model.makeValue("/root/send/data/srchflag", 'P');
  239. grp_pirnt.visible = false;
  240. grd_mainordlist.fixedcellischeck(0,1) = false;
  241. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  242. // if ( acptlistflag == "R" ) {
  243. // submit("TRAEA01402");
  244. // } else if ( acptlistflag == "S" ) {
  245. // submit("TRAEA03501");
  246. // }
  247. submit("TRAEA03501");
  248. var srchpid = model.getValue("/root/send/data/srchpid");
  249. if ( srchpid != "") {
  250. var rowcnt = getNodesetCount("/root/main/ordlist1/mainordlist1");
  251. if (rowcnt > 0) {
  252. model.setValue("/root/main/ordlist1/mainordlist1[" + 1 + "]/check","Y");
  253. grd_mainordlist.row = 1;
  254. }
  255. }
  256. model.refresh();
  257. }
  258. /* @group : 영상검사관리(핵의학체내)
  259. * @ver : 2007.03.21
  260. * @by :
  261. * @-----------------------------------
  262. * @type : function
  263. * @access : public
  264. * @desc : 상병 조회를 위한 선택 Function
  265. */
  266. function fGetExamCureDiagList(maingridlistid) {
  267. if ( grd_mainordlist.row == 0 ) return;
  268. var row = grd_mainordlist.row;
  269. var pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
  270. var prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag")); // 상병조회에서 사용 pid, prcpgenrflag,orddeptcd,prcpdd
  271. var orddeptcd = maingridlistid.valueMatrix(row, maingridlistid .colRef("orddeptcd"));
  272. var prcpdd = maingridlistid.valueMatrix(row, maingridlistid .colRef("prcpdd"));
  273. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  274. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
  275. model.makeValue("/root/send/data/grd_info/grid_data/orddeptcd", orddeptcd);
  276. model.makeValue("/root/send/data/grd_info/grid_data/prcpdd", prcpdd);
  277. //alert('Diag Instance->>>>'+model.getValue("/root/send/data/grd_info/grid_data/pid")+'-'+model.getValue("/root/send/data/grd_info/grid_data/prcpgenrflag"));
  278. submit("TRAEA01410");
  279. }
  280. /* @group : 영상검사관리(핵의학체내)
  281. * @ver : 2007.03.21
  282. * @by : 장준원
  283. * @-----------------------------------
  284. * @type : function
  285. * @access : public
  286. * @desc : 환자기준 전체 처방내역 조회를 위한 선택 Function
  287. */
  288. function fGetExamCurePidPrcpList() {
  289. model.removenode("/root/main/ordlist1");
  290. model.removenode("/root/main/ordlist2");
  291. model.removenode("/root/main/subordlist");
  292. var pid = model.getValue("/root/send/data/srchpid");
  293. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  294. model.makeValue("/root/send/data/srchflag", 'P');
  295. model.makeValue("/root/send/data/acptlistflag", "R");
  296. submit("TRAEA03501");
  297. //model.makeValue("/root/send/data/acptlistflag", flag);
  298. // 그리드 세팅
  299. //fSetSubDetailGrid2("/root/main/subordlist/subordlist");
  300. model.refresh();
  301. }
  302. /* @group : 영상검사관리(핵의학체내)
  303. * @ver : 2007.03.21
  304. * @by : 장준원
  305. * @-----------------------------------
  306. * @type : function
  307. * @access : public
  308. * @desc : 처방내역/타과처방/상병/코멘트 조회를 위한 선택 Function
  309. */
  310. function fGetExamCurePrcpList(maingridlistid) {
  311. if ( maingridlistid.row == 0 ) return;
  312. var row = maingridlistid.row;
  313. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  314. var pid = model.getValue("/root/main/ordlist1/mainordlist1["+ row +"]/pid");
  315. var orddd = model.getValue("/root/main/ordlist1/mainordlist1["+ row +"]/orddd");
  316. var orddeptcd = model.getValue("/root/main/ordlist1/mainordlist1["+ row +"]/orddeptcd");
  317. var prcpgenrflag = model.getValue("/root/main/ordlist1/mainordlist1["+ row +"]/prcpgenrflag");
  318. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  319. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
  320. model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
  321. model.makeValue("/root/send/data/grd_info/grid_data/initexcuroomgrp", model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid"));
  322. model.makeValue("/root/send/data/grd_info/grid_data/initexcuroom", model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid"));
  323. model.makeValue("/root/send/data/grd_info/grid_data/orddd", orddd);
  324. model.makeValue("/root/send/data/grd_info/grid_data/orddeptcd", orddeptcd);
  325. //model.makeValue("/root/send/data/grd_info/grid_data/initexcuroom", "NM01");
  326. if (submit("TRAEA03502")) {
  327. maingridlistid.row = row;
  328. }
  329. }
  330. /* @group : 출력 환자 리스트 생성
  331. * @ver :
  332. * @by :
  333. * @-----------------------------------
  334. * @type : function
  335. * @access : public
  336. * @desc : Function
  337. */
  338. function fSetPrintSrch(src) {
  339. // var nodeList = instance1.selectNodes("/root/main/ordlist1/mainordlist1[check='Y' ]");
  340. // var rCSV = getNodeListCSV(nodeList);
  341. // if ( rCSV == null ) {
  342. // messageBox("처방전을 출력할 환자를","C002");
  343. // return 0;
  344. // }
  345. model.removenode("/root/tmpdata");
  346. var rexnm = "";
  347. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  348. model.makeValue("/root/tmpdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  349. model.makeValue("/root/tmpdata/initexcuroomgrp", model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid"));
  350. model.makeValue("/root/tmpdata/initexcuroom", excuroomcdid);
  351. var posinstcd = getUserInfo("posinstcd");
  352. model.makeValue("/root/tmpdata/instcd", posinstcd);
  353. if (src == "1") {
  354. model.makeValue("/root/tmpdata/srchdate1", model.getValue("/root/send/data/srchdate1"));
  355. model.makeValue("/root/tmpdata/srchdate2", model.getValue("/root/send/data/srchdate2"));
  356. model.makeValue("/root/tmpdata/dutplceinstnm", getUserInfo("dutplceinstnm"));
  357. var pidlist = "";
  358. var loop = grd_mainordlist.rows - grd_mainordlist.fixedRows;
  359. var nodeList = instance1.selectNodes("/root/main/ordlist1/mainordlist1[check='Y' ]");
  360. var rCSV = getNodeListCSV(nodeList);
  361. if ( rCSV == null ) {
  362. messageBox("출력할 자료가 없습니다.", "I999");
  363. return;
  364. } else {
  365. for( var i = 1 ; i <= loop ; i++ ) {
  366. var check = model.getValue("/root/main/ordlist1/mainordlist1[" + i + "]/check");
  367. var pid = model.getValue("/root/main/ordlist1/mainordlist1[" + i + "]/pid");
  368. if ( check == "Y" ) {
  369. pidlist = pidlist + "'" + pid + "',";
  370. }
  371. }
  372. pidlist = pidlist.substring(0, pidlist.length-1);
  373. }
  374. model.makeValue("/root/tmpdata/pid", pidlist);
  375. exeReportPreview("RPAEA01400", "XML", "/root/tmpdata");
  376. } else if (src == "2") {
  377. model.makeValue("/root/tmpdata/srchdate1", model.getValue("/root/hidden/data/srchdate1"));
  378. model.makeValue("/root/tmpdata/srchdate2", model.getValue("/root/hidden/data/srchdate2"));
  379. rexnm = cmb_excuroomgrp.label;
  380. if (excuroomcdid != "") {
  381. rexnm = rexnm + " - " + cmb_excuroom.label;
  382. }
  383. rexnm = rexnm + " 검사";
  384. model.makeValue("/root/tmpdata/rexnm", rexnm);
  385. exeReportPreview("RPAEA03600", "XML", "/root/tmpdata");
  386. } else if (src == "3") {
  387. model.makeValue("/root/tmpdata/srchdate1", model.getValue("/root/send/data/srchdate1"));
  388. model.makeValue("/root/tmpdata/srchdate2", model.getValue("/root/send/data/srchdate2"));
  389. model.makeValue("/root/tmpdata/sortbase", model.getValue("/root/send/data/sortbase"));
  390. rexnm = cmb_excuroomgrp.label;
  391. if (excuroomcdid != "") {
  392. rexnm = rexnm + " - " + cmb_excuroom.label;
  393. }
  394. rexnm = rexnm + " 예약";
  395. model.makeValue("/root/tmpdata/rexnm", rexnm);
  396. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  397. if ( excuroomgrpcdid == "PET-CT실") {
  398. var examposuseyn = model.getValue("/root/send/examposuseyn");
  399. if (examposuseyn == "Y") {
  400. exeReportPreview("RPAEA03502", "XML", "/root/tmpdata");
  401. } else {
  402. exeReportPreview("RPAEA03501", "XML", "/root/tmpdata");
  403. }
  404. } else {
  405. exeReportPreview("RPAEA03500", "XML", "/root/tmpdata");
  406. }
  407. }
  408. }
  409. /* @group : 접수관리
  410. * @ver :
  411. * @by : 김건기
  412. * @-----------------------------------
  413. * @type : function
  414. * @access : public
  415. * @desc : 검사실 그룹 변경
  416. */
  417. function fExcuRoomGrpChoi(excuroomgrpcdid) {
  418. if (excuroomgrpcdid == "") {
  419. cmb_excuroom.disabled = true;
  420. } else {
  421. cmb_excuroom.disabled = false;
  422. if (submit("TRAEA01418", false)) {
  423. copyNodeType("/root/init/cmb_info/excuroom","/root/hidden/cmb_info/excuroom","replace");
  424. copyNodeType("/root/init/cmb_info/examcurecd","/root/hidden/cmb_info/examcurecd","replace");
  425. model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid","");
  426. }
  427. }
  428. model.refresh();
  429. }
  430. ]]>
  431. </script>
  432. </xhtml:head>
  433. <xhtml:body pagewidth="1211" pageheight="684" guideline="1,1196;2,654;2,628;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  434. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:170px; height:13px; ">처방전 및 실시완료 출력</caption>
  435. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1192px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  436. <caption id="caption5" class="search_name" style="left:546px; top:22px; width:91px; height:17px; ">적용일자 :</caption>
  437. <caption id="caption1" class="search_name" style="left:836px; top:22px; width:91px; height:17px; ">등록번호 :</caption>
  438. <datagrid id="grd_subordlist2" nodeset="/root/main/subordlist/subordlist2" caption="일자^상병명^상병코드^진료과^등록의사" colsep="^" colwidth="90, 459, 100, 100, 96" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:327px; top:406px; width:865px; height:220px; ">
  439. <col ref="diagdd" format="yyyy-mm-dd" style="text-align:center; "/>
  440. <col ref="diagengnm" style="left:100px; top:20px; width:454px; height:20px; "/>
  441. <col ref="diagcd"/>
  442. <col ref="orddeptnm"/>
  443. <col ref="orddrnm"/>
  444. </datagrid>
  445. <caption id="caption22" class="tit_2" style="left:327px; top:386px; width:82px; height:13px; ">상병</caption>
  446. <line id="line1" class="line_1" style="x1:326px; y1:401px; x2:1192px; y2:401px; "/>
  447. <line id="line2" class="line_1" style="x1:326px; y1:70px; x2:1191px; y2:70px; "/>
  448. <datagrid id="grd_subordlist" nodeset="/root/main/subordlist/subordlist1" caption="처방일자^검사코드^검사명^예약일자^I/O^진료과^진료의^전달사항^진료일자^진료과코드" colsep="^" colwidth="68, 90, 320, 102, 31, 68, 52, 100, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:327px; top:75px; width:865px; height:300px; text-align:center; ">
  449. <col ref="prcpdd" format="yyyy-mm-dd"/>
  450. <col ref="calcscorcd"/>
  451. <col ref="prcpnm" style="font-weight:bold; text-align:left; "/>
  452. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
  453. <col ref="prcpgenrflag" type="combo">
  454. <choices>
  455. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  456. <label ref="cdnm"/>
  457. <value ref="cdid"/>
  458. </itemset>
  459. </choices>
  460. </col>
  461. <col ref="orddepthngnm"/>
  462. <col ref="orddrnm"/>
  463. <col ref="prcpremfact"/>
  464. <col ref="orddd" visibility="hidden"/>
  465. <col ref="actorddd" visibility="hidden"/>
  466. </datagrid>
  467. <line id="line3" class="line_1" style="x1:4px; y1:70px; x2:320px; y2:70px; "/>
  468. <line id="line4" class="line_2" style="x1:4px; y1:68px; x2:320px; y2:68px; "/>
  469. <button id="btn_holdcncl" class="btn4_letter2" style="left:1135px; top:630px; width:56px; height:22px; ">
  470. <caption>닫기</caption>
  471. <script type="javascript" ev:event="DOMActivate">
  472. <![CDATA[
  473. window.close();
  474. ]]>
  475. </script>
  476. </button>
  477. <button id="btn_hold" class="btn4_letter2" style="left:1075px; top:630px; width:56px; height:22px; ">
  478. <caption>출력</caption>
  479. <script type="javascript" ev:event="DOMActivate">
  480. <![CDATA[
  481. grp_pirnt.visible = false;
  482. // 출력 조건 설정
  483. fSetPrintSrch("1");
  484. // var row = grd_mainordlist.rows;
  485. //
  486. // if (row > 1) {
  487. //
  488. // model.makeValue("/root/tmpdata/srchdate1", model.getValue("/root/send/data/srchdate1"));
  489. // model.makeValue("/root/tmpdata/srchdate2", model.getValue("/root/send/data/srchdate2"));
  490. // model.makeValue("/root/tmpdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  491. // model.makeValue("/root/tmpdata/excuroomcd", model.getValue("/root/send/data/initexcuroom"));
  492. // model.makeValue("/root/tmpdata/pid", fSetPid());
  493. // var posinstcd = getUserInfo("posinstcd");
  494. // model.makeValue("/root/tmpdata/instcd", posinstcd);
  495. //
  496. // exeReportPreview("RPAEA01400", "XML", "/root/tmpdata");
  497. // } else {
  498. // messageBox("출력할 자료가 없습니다.", "I999");
  499. // return "0";
  500. // }
  501. ]]>
  502. </script>
  503. </button>
  504. <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:636px; top:22px; width:90px; height:19px; "/>
  505. <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" inputtype="date" style="left:728px; top:22px; width:90px; height:19px; "/>
  506. <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" maxlength="10" style="left:930px; top:22px; width:80px; height:19px; ">
  507. <script type="javascript" ev:event="onkeydown">
  508. <![CDATA[
  509. if ( event.keyCode == 13 ) {
  510. setInputNodeCurText();
  511. fGetExamCurePidPrcpList();
  512. }
  513. ]]>
  514. </script>
  515. </input>
  516. <button id="button61" class="icon_search" style="left:1012px; top:23px; width:16px; height:16px; ">
  517. <caption/>
  518. <script type="javascript" ev:event="onclick">
  519. <![CDATA[
  520. grp_pirnt.visible = false;
  521. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/srchpid","/root/main/send");
  522. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") );
  523. model.refresh();
  524. ]]>
  525. </script>
  526. </button>
  527. <output id="ipt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:1029px; top:22px; width:71px; height:19px; "/>
  528. <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:20px; width:56px; height:22px; ">
  529. <caption>조회</caption>
  530. <script type="javascript" ev:event="DOMActivate">
  531. <![CDATA[
  532. grp_pirnt.visible = false;
  533. fGetExamCureAcptList();
  534. ]]>
  535. </script>
  536. </button>
  537. <shape id="roundrect1" class="roundrect_example" visibility="visible" appearance="roundrect" ellipsewidth="10" ellipseheight="7" style="left:327px; top:49px; width:535px; height:19px; "/>
  538. <output id="opt_patientinfo" ref="/root/main/patinfo/patinfolist" visibility="visible" style="left:327px; top:49px; width:535px; height:19px; "/>
  539. <datagrid id="grd_mainordlist" nodeset="/root/main/ordlist1/mainordlist1" autoresize="true" caption="^등록번호^환자명^구분^병동^과^execprcpuniqno^orddeptcd^rsrvdd^execprcpstatcd^prcpdd^roomcd^orddrid^rcptyn^type^진료(입원)일자^환자일련번호" colsep="^" colwidth="26, 63, 52, 35, 58, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:75px; width:315px; height:550px; ">
  540. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  541. <col ref="pid"/>
  542. <col ref="patnm"/>
  543. <col disabled="true" ref="prcpgenrflag" type="combo">
  544. <choices>
  545. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  546. <label ref="cdnm"/>
  547. <value ref="cdid"/>
  548. </itemset>
  549. </choices>
  550. </col>
  551. <col disabled="true" ref="wardcd" type="combo">
  552. <choices>
  553. <itemset nodeset="/root/init/cmb_info/initexecward">
  554. <label ref="execwardcdnm"/>
  555. <value ref="execwardcdid"/>
  556. </itemset>
  557. </choices>
  558. </col>
  559. <col ref="depthngnm" style="left:230px; top:20px; width:32px; height:20px; "/>
  560. <col ref="execprcpuniqno"/>
  561. <col ref="orddeptcd"/>
  562. <col ref="rsrvdd"/>
  563. <col ref="execprcpstatcd"/>
  564. <col ref="prcpdd"/>
  565. <col ref="roomcd"/>
  566. <col ref="orddrid"/>
  567. <col ref="rcptyn"/>
  568. <col ref="type"/>
  569. <col ref="orddd"/>
  570. <col ref="cretno"/>
  571. <script type="javascript" ev:event="onclick">
  572. <![CDATA[
  573. grp_pirnt.visible = false;
  574. if ( (grd_mainordlist.row >= grd_mainordlist.fixedRows) && (grd_mainordlist.isCell(event.target))) {
  575. fGetExamCurePrcpList(grd_mainordlist);
  576. }
  577. ]]>
  578. </script>
  579. <script type="javascript" ev:event="onaftersort">
  580. <![CDATA[
  581. grd_mainordlist.gridToInstance();
  582. ]]>
  583. </script>
  584. </datagrid>
  585. <caption id="caption2" class="tit_2" style="left:5px; top:50px; width:82px; height:13px; ">예약 환자</caption>
  586. <button id="button4" class="btn3_letter9" style="left:4px; top:630px; width:164px; height:22px; ">
  587. <caption>날짜별실시완료출력</caption>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. model.setValue("/root/hidden/data/srchdate1",getCurrentDate());
  591. model.setValue("/root/hidden/data/srchdate2",getCurrentDate());
  592. grp_pirnt.visible = true;
  593. model.refresh();
  594. ]]>
  595. </script>
  596. </button>
  597. <button id="button6" class="btn3_letter7" style="left:147px; top:630px; width:116px; height:22px; ">
  598. <caption>날짜별예약출력</caption>
  599. <script type="javascript" ev:event="DOMActivate">
  600. <![CDATA[
  601. grp_pirnt.visible = false;
  602. // 출력 조건 설정
  603. fSetPrintSrch("3");
  604. // model.removenode("/root/tmpdata");
  605. //
  606. // model.makeValue("/root/tmpdata/rsrvdd", getCurrentDate());
  607. // model.makeValue("/root/tmpdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  608. // model.makeValue("/root/tmpdata/excuroomcd", model.getValue("/root/send/data/initexcuroom"));
  609. //
  610. // var posinstcd = getUserInfo("posinstcd");
  611. // model.makeValue("/root/tmpdata/instcd", posinstcd);
  612. ]]>
  613. </script>
  614. </button>
  615. <group id="grp_pirnt" visibility="hidden" style="left:90px; top:470px; width:315px; height:105px; ">
  616. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:300px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  617. <select1 id="rdo_srch" ref="/root/hidden/data/srchflag" appearance="full" cols="2" overflow="visible" style="left:95px; top:15px; width:120px; height:20px; border-style:none; ">
  618. <choices>
  619. <item>
  620. <label>당일</label>
  621. <value>1</value>
  622. </item>
  623. <item>
  624. <label>기간별</label>
  625. <value>2</value>
  626. </item>
  627. </choices>
  628. <script type="javascript" ev:event="xforms-select">
  629. <![CDATA[
  630. var srchflag = model.getValue("/root/hidden/data/srchflag");
  631. if ( srchflag == "1") {
  632. model.setValue("/root/hidden/data/srchdate1",getCurrentDate());
  633. model.setValue("/root/hidden/data/srchdate2",getCurrentDate());
  634. ipt_srchdate1.disabled = true;
  635. ipt_srchdate2.disabled = true;
  636. model.refresh();
  637. } else {
  638. model.setValue("/root/hidden/data/srchdate1",getCurrentDate());
  639. model.setValue("/root/hidden/data/srchdate2",getCurrentDate());
  640. ipt_srchdate1.disabled = false;
  641. ipt_srchdate2.disabled = false;
  642. model.refresh();
  643. }
  644. ]]>
  645. </script>
  646. </select1>
  647. <caption id="caption3" class="search_name" style="left:6px; top:42px; width:91px; height:17px; ">적용일자 :</caption>
  648. <input id="ipt_srchdate1" ref="/root/hidden/data/srchdate1" class="input_default" disabled="true" inputtype="date" style="left:96px; top:42px; width:90px; height:19px; "/>
  649. <input id="ipt_srchdate2" ref="/root/hidden/data/srchdate2" class="input_default" disabled="true" inputtype="date" style="left:196px; top:42px; width:90px; height:19px; "/>
  650. <caption id="caption4" class="search_name" style="left:6px; top:15px; width:91px; height:17px; ">조회구분 :</caption>
  651. <button id="button1" class="btn4_letter2" style="left:249px; top:75px; width:56px; height:22px; ">
  652. <caption>닫기</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. grp_pirnt.visible = false;
  656. ]]>
  657. </script>
  658. </button>
  659. <button id="button2" class="btn4_letter2" style="left:190px; top:75px; width:56px; height:22px; ">
  660. <caption>출력</caption>
  661. <script type="javascript" ev:event="DOMActivate">
  662. <![CDATA[
  663. // 출력 조건 설정
  664. fSetPrintSrch("2");
  665. // model.removenode("/root/tmpdata");
  666. //
  667. // model.makeValue("/root/tmpdata/srchdate1", model.getValue("/root/hidden/data/srchdate1"));
  668. // model.makeValue("/root/tmpdata/srchdate2", model.getValue("/root/hidden/data/srchdate2"));
  669. // model.makeValue("/root/tmpdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  670. // model.makeValue("/root/tmpdata/excuroomcd", model.getValue("/root/send/data/initexcuroom"));
  671. // var posinstcd = getUserInfo("posinstcd");
  672. // model.makeValue("/root/tmpdata/instcd", posinstcd);
  673. ]]>
  674. </script>
  675. </button>
  676. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:310px; height:102px; "/>
  677. </group>
  678. <select1 id="cmb_excuroomgrp" ref="/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:275px; top:22px; width:118px; height:19px; ">
  679. <choices>
  680. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  681. <label ref="excuroomgrpcdnm"/>
  682. <value ref="excuroomgrpcdid"/>
  683. </itemset>
  684. </choices>
  685. <script type="javascript" ev:event="xforms-select">
  686. <![CDATA[
  687. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  688. model.removenode("/root/main/ordlist1");
  689. model.removenode("/root/main/ordlist2");
  690. model.removenode("/root/main/subordlist");
  691. model.makeValue("/root/send/data/excuroomgrp", excuroomgrpcdid);
  692. // 검사실 그룹 변경 시 이벤트
  693. fExcuRoomGrpChoi(excuroomgrpcdid);
  694. grp_pirnt.visible = false;
  695. grd_mainordlist.fixedcellischeck(0,2) = false;
  696. fGetExamCureAcptList();
  697. ]]>
  698. </script>
  699. </select1>
  700. <caption id="caption6" class="search_name" style="left:195px; top:23px; width:80px; height:17px; ">검사실 :</caption>
  701. <select1 id="cmb_excuroom" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid" class="combo_default" appearance="minimal" style="left:395px; top:22px; width:130px; height:19px; ">
  702. <choices>
  703. <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
  704. <label ref="excuroomcdnm"/>
  705. <value ref="excuroomcdid"/>
  706. </itemset>
  707. </choices>
  708. <script type="javascript" ev:event="xforms-select">
  709. <![CDATA[
  710. fInitGrid();
  711. fGetExamCureAcptList()
  712. ]]>
  713. </script>
  714. </select1>
  715. <select1 id="cmb_acptlistflag" ref="/root/send/data/acptlistflag" appearance="minimal" style="left:75px; top:22px; width:105px; height:19px; ">
  716. <choices>
  717. <item>
  718. <label>예약</label>
  719. <value>R</value>
  720. </item>
  721. <item>
  722. <label>실시완료</label>
  723. <value>S</value>
  724. </item>
  725. </choices>
  726. <script type="javascript" ev:event="xforms-select">
  727. <![CDATA[
  728. grp_pirnt.visible = false;
  729. grd_mainordlist.fixedcellischeck(0,2) = false;
  730. fGetExamCureAcptList();
  731. ]]>
  732. </script>
  733. </select1>
  734. <caption id="caption7" class="search_name" style="left:10px; top:23px; width:65px; height:17px; ">상태 :</caption>
  735. <select1 id="radio1" ref="/root/send/data/sortbase" appearance="full" cols="2" overflow="visible" style="left:275px; top:632px; width:140px; height:20px; border-style:none; ">
  736. <choices>
  737. <item>
  738. <label>검사별</label>
  739. <value>P</value>
  740. </item>
  741. <item>
  742. <label>예약시간별</label>
  743. <value>T</value>
  744. </item>
  745. </choices>
  746. <script type="javascript" ev:event="xforms-select">
  747. <![CDATA[
  748. var srchflag = model.getValue("/root/hidden/data/srchflag");
  749. if ( srchflag == "1") {
  750. model.setValue("/root/hidden/data/srchdate1",getCurrentDate());
  751. model.setValue("/root/hidden/data/srchdate2",getCurrentDate());
  752. ipt_srchdate1.disabled = true;
  753. ipt_srchdate2.disabled = true;
  754. model.refresh();
  755. } else {
  756. model.setValue("/root/hidden/data/srchdate1",getCurrentDate());
  757. model.setValue("/root/hidden/data/srchdate2",getCurrentDate());
  758. ipt_srchdate1.disabled = false;
  759. ipt_srchdate2.disabled = false;
  760. model.refresh();
  761. }
  762. ]]>
  763. </script>
  764. </select1>
  765. </xhtml:body>
  766. </xhtml:html>