SMPAS02600_미시행처방조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. <unexecprcplist>
  11. <prcptm/>
  12. <rsrvtm/>
  13. <pid/>
  14. <hngnm/>
  15. <sexage/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpstats/>
  19. <orddeptnm/>
  20. <usernm/>
  21. <execdeptnm/>
  22. <prcpdd/>
  23. <roomcd/>
  24. <execdd/>
  25. <prcpgenrflag/>
  26. <execprcpuniqno/>
  27. <orddd/>
  28. <basesuppdeptcd/>
  29. </unexecprcplist>
  30. <patinfo>
  31. <patinfolist/>
  32. </patinfo>
  33. </main>
  34. <send>
  35. <srchfromdd/>
  36. <srchtodd/>
  37. <srchprcpexecdept/>
  38. <srchpid/>
  39. <srchflag/>
  40. <ioflag/>
  41. <include/>
  42. </send>
  43. <init>
  44. <orddeptlist>
  45. <dept>
  46. <depth/>
  47. <deptcd/>
  48. <depthngnm/>
  49. <cdgrupid/>
  50. </dept>
  51. </orddeptlist>
  52. <flag>
  53. <item>
  54. <name>미시행(당일예약)</name>
  55. <id>unxr</id>
  56. </item>
  57. <item>
  58. <name>미시행(당일처방)</name>
  59. <id>unxp</id>
  60. </item>
  61. <item>
  62. <name>미예약</name>
  63. <id>rsrv</id>
  64. </item>
  65. </flag>
  66. <ioflag>
  67. <item>
  68. <name>외래</name>
  69. <id>O</id>
  70. </item>
  71. <item>
  72. <name>입원</name>
  73. <id>I</id>
  74. </item>
  75. <item>
  76. <name>전체</name>
  77. <id>ALL</id>
  78. </item>
  79. </ioflag>
  80. </init>
  81. <hidden>
  82. <tmp/>
  83. <popupmenu>
  84. <menu>
  85. <item>
  86. <label>처방상세내역</label>
  87. <func>fOpenPrcpList</func>
  88. </item>
  89. </menu>
  90. </popupmenu>
  91. </hidden>
  92. <source>
  93. <autoflag/>
  94. </source>
  95. </root>
  96. </instance>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  104. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. submit("TRPAS02602");//시행부서를 가져온다.
  108. rdo_flag.select(0);
  109. radio1.select(0);
  110. fDateSet();//조회기간을 셋팅한다.
  111. fDeptSet();//시행부서를 셋팅한다.
  112. ]]>
  113. </script>
  114. <script type="javascript">
  115. <![CDATA[
  116. //조회기간을 셋팅한다.
  117. function fDateSet(){
  118. var cur_date = getCurrentDate();
  119. model.setValue("/root/send/srchtodd" , cur_date);
  120. ipt_srchtodd.refresh();
  121. model.setValue("/root/send/srchfromdd",cur_date);
  122. ipt_srchfromdd.refresh();
  123. }//fDateSet end
  124. function fDeptSet(){
  125. var sUserInfosS = getUserInfos();
  126. sUserInfosS = sUserInfosS + "|";
  127. var UserInfosS_Array = sUserInfosS.split("|");
  128. var posinstcd = UserInfosS_Array[6]; //소속기관코드
  129. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  130. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  131. var dutplcecd = getUserInfo("dutplcecd") ;
  132. if(dutplcecd == "1000000000" || dutplcecd == "4070300000" || dutplcecd == "11112233"){dutplcecd = "ALL" ;}
  133. model.setValue("/root/send/srchprcpexecdept", dutplcecd);
  134. cmb_srchprcpexecdept.refresh();
  135. }//fDeptSet end
  136. function fGetUnExec(){
  137. var fromdd = ipt_srchfromdd.value;
  138. var todd = ipt_srchtodd.value;
  139. var interval = getDateInterval(fromdd, todd);
  140. var pid = model.getValue("/root/send/srchpid");
  141. var uPath = "/root/main/unexecprcplist";
  142. // if(interval > 0 && pid == ""){
  143. // alert("등록번호 입력없이 최대 1일간 조회 가능합니다.");
  144. // }
  145. // else if(interval > 30 && pid != ""){
  146. // alert("최대 30일간 조회 가능합니다.");
  147. // }else {
  148. for(i=1; i<grd_unexecprcplist.rows; i++){
  149. grd_unexecprcplist.rowstyle(i, "data", "background-color") = "white";
  150. }
  151. submit("TRPAS02601");
  152. // }
  153. for(i=1; i<grd_unexecprcplist.rows; i++){
  154. var execdd = model.getValue(uPath+"["+i+"]/execdd");
  155. if(execdd == "00000000"){
  156. grd_unexecprcplist.rowstyle(i, "data", "background-color") = '#FFCCCC';
  157. }
  158. }
  159. }
  160. // 팝업 메뉴
  161. function fOpenPrcpList() {
  162. modal("SPAEA01102","","","","","/root/main/unexecprcplist["+grd_unexecprcplist.row+"]","/root/init/popupdata");
  163. }
  164. ]]>
  165. </script>
  166. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  167. <submission id="TRPIC00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/orddeptlist"/>
  168. <submission id="TRPAS02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unexecprcplist"/>
  169. <submission id="TRPAS02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/orddeptlist"/>
  170. </model>
  171. </xhtml:head>
  172. <xhtml:body guideline="1,1193;2,784;2,754;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  173. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  174. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:14px; ">미시행처방조회</caption>
  175. </group>
  176. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  177. <group id="group4" style="left:0px; top:10px; width:1195px; height:70px; vertical-align:top; ">
  178. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  179. <caption id="caption4" class="search_name" style="left:10px; top:9px; width:66px; height:17px; ">기간 :</caption>
  180. <caption id="caption8" class="search_n_b" style="left:186px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  181. <button id="button6" class="btn1_letter2" style="left:1076px; top:18px; width:56px; height:22px; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fGetUnExec();
  186. ]]>
  187. </script>
  188. </button>
  189. <line id="line3" style="x1:1016px; y1:8px; x2:1016px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  190. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:72px; top:9px; width:105px; height:19px; "/>
  191. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:217px; top:9px; width:105px; height:19px; "/>
  192. <select1 id="cmb_srchprcpexecdept" ref="/root/send/srchprcpexecdept" appearance="minimal" style="left:455px; top:9px; width:265px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/init/orddeptlist/dept">
  195. <label ref="depthngnm"/>
  196. <value ref="deptcd"/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <caption id="caption1" class="search_name" style="left:360px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
  201. <caption id="caption2" class="search_name" style="left:10px; top:34px; width:86px; height:17px; ">등록번호 :</caption>
  202. <input id="input1" ref="/root/send/srchpid" class="input_search" style="left:100px; top:35px; width:85px; height:19px; ">
  203. <script type="javascript" ev:event="onkeydown">
  204. <![CDATA[
  205. if (event.keycode == 13)
  206. {
  207. input1.value = input1.currentText;
  208. fGetUnExec();
  209. model.refresh();
  210. }
  211. ]]>
  212. </script>
  213. </input>
  214. <button id="btn_pid" class="icon_search" navindex="-1" style="left:191px; top:36px; width:16px; height:16px; ">
  215. <caption/>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  219. model.setValue("/root/source/autoflag", "Y");
  220. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  221. model.setValue("/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  222. model.refresh();
  223. //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  224. ]]>
  225. </script>
  226. </button>
  227. <select1 id="rdo_flag" ref="/root/send/srchflag" appearance="full" cols="3" overflow="visible" style="left:335px; top:35px; width:280px; height:20px; border-style:none; ">
  228. <choices>
  229. <itemset nodeset="/root/init/flag/item">
  230. <label ref="/name"/>
  231. <value ref="/id"/>
  232. </itemset>
  233. </choices>
  234. </select1>
  235. <caption id="caption3" class="search_name" style="left:740px; top:9px; width:61px; height:17px; ">구분 :</caption>
  236. <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="3" overflow="visible" style="left:810px; top:10px; width:85px; height:20px; border-style:none; ">
  237. <choices>
  238. <itemset nodeset="/root/init/ioflag/item">
  239. <label ref="/name"/>
  240. <value ref="/id"/>
  241. </itemset>
  242. </choices>
  243. </select1>
  244. <select id="checkbox1" ref="/root/send/include" overflow="visible" appearance="full" style="left:230px; top:35px; width:70px; height:20px; border-style:none; ">
  245. <choices>
  246. <item>
  247. <label>액팅포함</label>
  248. <value>Y</value>
  249. </item>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-select">
  252. <![CDATA[
  253. var deptcd = model.getValue("/root/send/srchprcpexecdept");
  254. if(deptcd == "ALL"){
  255. messageBox("시행부서를", "C002");
  256. checkbox1.deselect(0);
  257. }
  258. ]]>
  259. </script>
  260. </select>
  261. </group>
  262. <datagrid id="grd_unexecprcplist" nodeset="/root/main/unexecprcplist" caption="처방등록일시^예약시간^등록번호^환자명^S/A^처방코드^처방명^상태^진료과^진료의^시행부서^처방일자^병실^실시일자^처방구분^실시처방번호^진료일자^부서" colsep="^" colwidth="122, 108, 74, 73, 43, 85, 376, 55, 91, 76, 92, 73, 80, 0, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:105px; width:1190px; height:631px; ">
  263. <col ref="prcptm" format="yyyy-mm-dd hh:mm:ss"/>
  264. <col ref="rsrvtm" format="yyyy-mm-dd hh:mm"/>
  265. <col ref="pid"/>
  266. <col ref="hngnm"/>
  267. <col ref="sexage"/>
  268. <col ref="prcpcd"/>
  269. <col ref="prcpnm"/>
  270. <col ref="prcpstats"/>
  271. <col ref="orddeptnm"/>
  272. <col ref="usernm"/>
  273. <col ref="execdeptnm"/>
  274. <col ref="prcpdd" format="yyyy-mm-dd"/>
  275. <col ref="roomcd"/>
  276. <col ref="execdd"/>
  277. <col ref="prcpgenrflag"/>
  278. <col ref="execprcpuniqno"/>
  279. <col ref="orddd"/>
  280. <col ref="basesuppdeptcd"/>
  281. <script type="javascript" ev:event="onaftersort">
  282. <![CDATA[
  283. grd_unexecprcplist.gridToInstance();
  284. for(i=1; i<grd_unexecprcplist.rows; i++){
  285. grd_unexecprcplist.rowstyle(i, "data", "background-color") = "white";
  286. }
  287. var uPath = "/root/main/unexecprcplist";
  288. for(i=1; i<grd_unexecprcplist.rows; i++){
  289. var execdd = model.getValue(uPath+"["+i+"]/execdd");
  290. if(execdd == "00000000"){
  291. grd_unexecprcplist.rowstyle(i, "data", "background-color") = '#FFCCCC';
  292. }
  293. }
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="onmousedown">
  297. <![CDATA[
  298. setPopupMenu("grd_unexecprcplist", false, "/root/hidden/popupmenu/menu/item", "label", "func");
  299. ]]>
  300. </script>
  301. <script type="javascript" ev:event="DOMFocusOut">
  302. <![CDATA[
  303. initPopupMenu();
  304. ]]>
  305. </script>
  306. </datagrid>
  307. <button id="button95" class="btn2_letter4" visibility="visible" style="left:1126px; top:87px; width:64px; height:19px; ">
  308. <caption>액셀저장</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. //엑셀저장 여부(타이틀별)
  312. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  313. if (fileName != "")
  314. {
  315. grd_unexecprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  316. }
  317. ]]>
  318. </script>
  319. </button>
  320. <caption id="caption5" style="left:20px; top:85px; width:890px; height:15px; font-weight:bold; color:#0000ff; ">★ 입원인 경우 미시행(당일예약)은 처방일자를 기준으로 조회됩니다. ★</caption>
  321. </group>
  322. <group id="grp_btn" style="left:0px; top:756px; width:1195px; height:28px; ">
  323. <button id="button33" class="btn4_letter3" style="left:1118px; top:4px; width:68px; height:22px; ">
  324. <caption>초기화</caption>
  325. <script type="javascript" ev:event="onclick">
  326. <![CDATA[
  327. model.reset();
  328. ]]>
  329. </script>
  330. </button>
  331. </group>
  332. </xhtml:body>
  333. </xhtml:html>