SMAEA00400_개인별처방이력조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <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. </prcplist>
  27. </prcphist>
  28. <patinfo>
  29. <patinfolist/>
  30. </patinfo>
  31. </main>
  32. <send>
  33. <pid/>
  34. <prcpfromdd/>
  35. <prcptodd/>
  36. <globalinstance>
  37. <instance1/>
  38. </globalinstance>
  39. <suppdeptcd/>
  40. </send>
  41. <init>
  42. <baseinfo>
  43. <initexecprcpstatcd/>
  44. </baseinfo>
  45. <cmb_info>
  46. <suppdeptlist>
  47. <suppdept/>
  48. </suppdeptlist>
  49. </cmb_info>
  50. <suppdeptlist>
  51. <suppdeptcd/>
  52. <depthngnm/>
  53. </suppdeptlist>
  54. </init>
  55. <hidden>
  56. <source>
  57. <pathngnm/>
  58. </source>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <submission id="TRAEA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcphist"/>
  63. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  64. <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  65. <submission id="TRZBC00101"/>
  66. <bind id="bind_prcpstatcd" ref="/root/main/prcphist/prcplist/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. // 2010.12.15 c y w 조회조건으로 지원부서 추가
  70. var suppdeptcd = "";
  71. if (checkOpener()) {
  72. suppdeptcd = opener.javascript.getParameter("SMPEA00100_suppdeptcd");
  73. }
  74. if (suppdeptcd == "") {
  75. suppdeptcd = getScreenMenuParameter();
  76. }
  77. if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null"){
  78. if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null") {
  79. aezfSetSuppDeptcd();
  80. }
  81. } else {
  82. model.setValue("/root/send/globalinstance/instance1", suppdeptcd);
  83. }
  84. var instance = model.getValue("/root/send/globalinstance/instance1");
  85. //지원부서 조회
  86. submit("TRAEA00904", false);
  87. if( instance1.selectSingleNode("/root/init/cmb_info/suppdeptlist/suppdept[suppdeptcd='" + instance + "']") == null ){
  88. model.setValue("root/send/suppdeptcd" , "2180000000"); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영
  89. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  90. }else{
  91. model.setValue("root/send/suppdeptcd" , instance); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영);
  92. }
  93. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  94. submit("TRZBC00101", false);
  95. ipt_startrsrvdd.value = getCurrentDate().toDate().getAddDate(-2,"M").getDateFormat("YYYYMMDD");
  96. ipt_endrsrvdd.value = getCurrentDate();
  97. model.removeNodeset("/root/main/prcphist/prcplist");
  98. model.refresh();
  99. model.setFocus("ipt_pid");
  100. if (model.getValue("/root/send/pid") != ""){
  101. btn_sea.dispatch("DOMActivate");
  102. }else{
  103. // 이부분이 멀까나 ㅠㅠㅠㅠ
  104. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  105. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  106. if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
  107. {
  108. model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  109. model.makeNode("/root/paminfo");
  110. setCSVToNode("/root/paminfo", paminfo);
  111. //상단 정보를 이용하여 프로그램 수행
  112. var pid = model.getValue("/root/paminfo" + "/list/pid");
  113. model.setValue("/root/send/pid", pid);
  114. btn_sea.dispatch("DOMActivate");
  115. }
  116. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  117. model.setValue("/root/send/pid", gv_pid);
  118. btn_sea.dispatch("DOMActivate");
  119. }
  120. }
  121. ]]>
  122. </script>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  128. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  129. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  130. </xhtml:head>
  131. <xhtml:body guideline="1,1195;2,757;2,784;">
  132. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  133. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">개인별 처방이력 조회</caption>
  134. </group>
  135. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  136. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  137. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  138. <caption id="caption1" class="search_name" style="left:380px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
  139. <caption id="caption3" class="search_name" style="left:15px; top:8px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  140. <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; ">
  141. <caption>조회</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. var _pid = model.getValue("/root/send/pid");
  145. var _frdt = model.getValue("/root/send/prcpfromdd");
  146. var _todt = model.getValue("/root/send/prcptodd");
  147. if ( _pid == "" ) {
  148. messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
  149. model.setFocus("ipt_pid");
  150. }
  151. else if ( _frdt == "" && _todt != "" ) {
  152. messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
  153. model.setFocus("ipt_startrsrvdd");
  154. }
  155. else if ( _frdt != "" && _todt == "") {
  156. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  157. model.setFocus("ipt_endrsrvdd");
  158. }
  159. else if ( getDateInterval(_frdt, _todt) < 0 ) {
  160. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
  161. model.setFocus("ipt_startrsrvdd");
  162. }
  163. else {
  164. submit("TRAEA00401");
  165. if ( grd_prcphist.rows == 1) {
  166. messageBox("입력하신 등록번호/일자에 해당하는 환자의 처방이력이 DB에 존재하지 않습니다.", "I999");
  167. }
  168. else {
  169. for (var i = 1; i < parseInt(grd_prcphist.rows); i++) {
  170. // 먼가를 채워야 하는데....
  171. //model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/prcphist/prcplist[" + 1 + "]/no"));
  172. }
  173. model.refresh();
  174. }
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="1" maxlength="10" style="left:105px; top:8px; width:100px; height:19px; ">
  180. <script type="javascript" ev:event="onkeyup">
  181. <![CDATA[
  182. if(event.keyCode == "13") {
  183. setInputNodeCurText();
  184. var pid = ipt_pid.value;
  185. if(pid == ""){
  186. messageBox("환자를 지정하지", "E007")
  187. return ;
  188. }
  189. //환자정보 조회
  190. if(submit("TRAEA00204")) {
  191. model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  192. }
  193. btn_sea.dispatch("DOMActivate");
  194. model.refresh();
  195. }
  196. ]]>
  197. </script>
  198. </input>
  199. <input id="ipt_endrsrvdd" ref="/root/send/prcptodd" class="input_default" navindex="3" inputtype="date" style="left:579px; top:8px; width:100px; height:14px; "/>
  200. <button id="button61" class="icon_search" style="left:210px; top:9px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  201. <caption/>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "/root/send");
  205. model.setValue( "/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
  206. model.setValue( "/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") );
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <output id="opt_pathngnm" ref="/root/hidden/source/pathngnm" class="output_fix" style="left:232px; top:8px; width:100px; height:19px; "/>
  212. <input id="ipt_startrsrvdd" ref="/root/send/prcpfromdd" class="input_default" navindex="2" inputtype="date" style="left:474px; top:8px; width:100px; height:14px; ">
  213. <script type="javascript" ev:event="DOMFocusIn">
  214. <![CDATA[]]>
  215. </script>
  216. <script type="javascript" ev:event="onkeyup">
  217. <![CDATA[
  218. var _str = ipt_pid.currentText;
  219. if ( _str.isNumber() == false ) {
  220. messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
  221. ipt_pid.value = "";
  222. }
  223. btn_sea.dispatch("DOMActivate");
  224. ]]>
  225. </script>
  226. </input>
  227. <select1 id="cmb_deptcd" ref="/root/send/suppdeptcd" class="combo_default" appearance="minimal" editmode="input" style="left:825px; top:8px; width:155px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
  230. <label ref="depthngnm"/>
  231. <value ref="suppdeptcd"/>
  232. </itemset>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. // model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  237. ]]>
  238. </script>
  239. </select1>
  240. <caption id="caption5" class="search_name" style="left:730px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
  241. </group>
  242. <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; ">
  243. <caption>엑셀저장</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. var fileName = window.fileDialog("save", ",", false, "개인별처방이력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  247. if (fileName != "")
  248. {
  249. grd_prcphist.saveExcel(fileName);
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. <datagrid id="grd_prcphist" nodeset="/root/main/prcphist/prcplist" autoresize="true" caption="처방일자^I/O^처방코드^처방명^처방상태^진료의사^진료과^예약일시^수납일자^접수일자^실시일시^판독일자^검사실 정보" colsep="^" colwidth="70, 30, 80, 251, 70, 70, 80, 120, 70, 70, 120, 120, 300" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1px; top:74px; width:1194px; height:670px; ">
  255. <col ref="prcpdd" format="yyyy-mm-dd"/>
  256. <col ref="prcpgenrflag" style="text-align:center; "/>
  257. <col ref="calcscorcd"/>
  258. <col ref="excucdnm"/>
  259. <col ref="execprcpstatcd" type="combo">
  260. <choices>
  261. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  262. <label ref="cdnm"/>
  263. <value ref="cdid"/>
  264. </itemset>
  265. </choices>
  266. </col>
  267. <col ref="usernm"/>
  268. <col ref="depthngnm"/>
  269. <col ref="rsrvdd" format="yyyy-mm-dd hh:nn:ss"/>
  270. <col ref="rcptdd" format="yyyy-mm-dd"/>
  271. <col ref="acptdd" format="yyyy-mm-dd"/>
  272. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn:ss"/>
  273. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn:ss"/>
  274. <col ref="acptrem" style="text-align:left; "/>
  275. <script type="javascript" ev:event="onaftersort">
  276. <![CDATA[
  277. grd_prcphist.gridToInstance();
  278. ]]>
  279. </script>
  280. </datagrid>
  281. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
  282. <caption id="caption14" class="tit_2" style="left:5px; top:54px; width:144px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">개인별 처방이력 조회</caption>
  283. </group>
  284. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  285. <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; ">
  286. <caption>출력</caption>
  287. </button>
  288. </group>
  289. <line id="line13" class="line_4" style="x1:1107px; y1:29px; x2:1107px; y2:51px; "/>
  290. </xhtml:body>
  291. </xhtml:html>