SMAEA02100_포터블조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. <mian>
  10. <portprcp>
  11. <portprcplist>
  12. <pid/>
  13. <patnm/>
  14. <prcpdd/>
  15. <roomcd/>
  16. <prcpgenrflag/>
  17. <portprcpflag/>
  18. <calcscorcd/>
  19. <prcpnm/>
  20. <execprcpstatcd/>
  21. <orddrnm/>
  22. <orddepthngnm/>
  23. <prcpexecdeptnm/>
  24. <execdeptnm/>
  25. <rsrvdt/>
  26. <rcptdd/>
  27. <acptdt/>
  28. <execdt/>
  29. <cnfmdt/>
  30. <prcpdelivefact/>
  31. </portprcplist>
  32. </portprcp>
  33. </mian>
  34. <send>
  35. <globalinstance>
  36. <instance1/>
  37. </globalinstance>
  38. <cmb_info>
  39. <initexecroom>
  40. <excuroomcdid/>
  41. </initexecroom>
  42. </cmb_info>
  43. <srchpid/>
  44. <srchdate1/>
  45. <srchdate2/>
  46. <term/>
  47. <actflag>A</actflag>
  48. <genrflag>A</genrflag>
  49. <portflag>A</portflag>
  50. </send>
  51. <init>
  52. <baseinfo>
  53. <initexecprcpstatcd/>
  54. </baseinfo>
  55. <cmb_info>
  56. <initexcuroomcd>
  57. <excuroomcd/>
  58. </initexcuroomcd>
  59. <initexecroom>
  60. <excuroomcdid/>
  61. <excuroomcdnm/>
  62. </initexecroom>
  63. <initexecrid1>
  64. <execrid1cdnm/>
  65. <execrid1cdid/>
  66. </initexecrid1>
  67. <prcpexecdeptcdlist>
  68. <prcpexecdeptcd/>
  69. </prcpexecdeptcdlist>
  70. <suppdept>
  71. <suppdeptcd/>
  72. <depthngnm/>
  73. </suppdept>
  74. </cmb_info>
  75. </init>
  76. <hidden/>
  77. <init2>
  78. <cmb_info2>
  79. <initexcuroomcd>
  80. <excuroomcdnm/>
  81. <excuroomcdid/>
  82. </initexcuroomcd>
  83. </cmb_info2>
  84. </init2>
  85. </root>
  86. </instance>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. aezfSetSuppDeptcd();
  90. // submit("TRAEA02102",false);
  91. //처방상태 공통코드 갖고오기
  92. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  93. submit("TRZBC00101", false);
  94. ipt_date1.value = getCurrentDate();
  95. ipt_date2.value = getCurrentDate();
  96. submit("TRAEA01301"); // 검사치료실 가져오기
  97. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  98. model.setValue("/root/send/globalinstance/instance1", "");
  99. }
  100. //*********************************************************************************************************************************************
  101. //담당 검사실 갖고오기
  102. submit("TRAEA01115",false);
  103. //담당 검사실 세팅
  104. model.setValue("/root/send/cmb_info/initexecroom/excuroomcdid",model.getValue("/root/init2/cmb_info/initexcuroomcd[1]/excuroomcd"));
  105. //*********************************************************************************************************************************************
  106. /*
  107. //담당 검사실 세팅
  108. var excuroomcd = "";
  109. for(var i = 0; i < grd_temproom.rows; i++){
  110. excuroomcd = model.getValue("/root/init/cmb_info/initexcuroomcd["+i+"]/excuroomcd");
  111. }
  112. model.setValue("root/send/cmb_info/initexecroom/excuroomcdid",excuroomcd);
  113. if(model.getValue("root/send/cmb_info/initexecroom/excuroomcdid") == "") {
  114. cmb_excuroom.select(0);
  115. }
  116. */
  117. // var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  118. // if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  119. // // model.setValue("/root/send/data/pid", gv_pid);
  120. // }
  121. btn_sea.dispatch("DOMActivate");
  122. ]]>
  123. </script>
  124. <submission id="TRAEA02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/mian/portprcp"/>
  125. <submission id="TRAEA02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  126. <submission id="TRZBC00101"/>
  127. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  128. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init2/cmb_info"/>
  129. </model>
  130. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  133. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  135. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  136. </xhtml:head>
  137. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  138. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">포터블조회</caption>
  139. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  140. <caption id="caption3" class="search_name" style="left:10px; top:24px; width:91px; height:17px; ">지원부서 :</caption>
  141. <caption id="caption1" class="search_name" visibility="visible" style="left:909px; top:25px; width:86px; height:17px; ">등록번호 :</caption>
  142. <input id="input2" ref="/root/send/srchpid" class="input_search" visibility="visible" style="left:998px; top:24px; width:100px; height:19px; "/>
  143. <line id="line2" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  144. <button id="button51" class="btn2_letter2" style="left:1153px; top:78px; width:42px; height:19px; ">
  145. <caption>엑셀</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. var file_name = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  149. grd_portprcp.saveExcel(file_name);
  150. ]]>
  151. </script>
  152. </button>
  153. <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:33px; width:56px; height:22px; ">
  154. <caption>조회</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. submit("TRAEA02101");
  158. ]]>
  159. </script>
  160. </button>
  161. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:760px; width:56px; height:22px; ">
  162. <caption>출력</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. exeReportPreview("RPAEA02100", "XMLSTR", "/root/mian/portprcp/portprcplist");
  166. ]]>
  167. </script>
  168. </button>
  169. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" class="combo_default" appearance="minimal" style="left:100px; top:24px; width:140px; height:19px; ">
  170. <choices>
  171. <itemset nodeset="/root/init/cmb_info/suppdept">
  172. <label ref="depthngnm"/>
  173. <value ref="suppdeptcd"/>
  174. </itemset>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  179. submit("TRAEA01301");
  180. ]]>
  181. </script>
  182. </select1>
  183. <line id="line13" class="line_4" style="x1:1114px; y1:24px; x2:1114px; y2:66px; "/>
  184. <datagrid id="grd_portprcp" nodeset="/root/mian/portprcp/portprcplist" scroll="vertical" autoresize="true" caption="등록번호^성명^처방일자^병실^I/O^구분^처방코드^처방명^처방상태^진료의사^진료과^처방시행부서^실시부서^예약일시^수납일자^접수일자^실시일시^판독일자^처방전달사항" colsep="^" colwidth="75, 71, 70, 47, 33, 39, 64, 113, 63, 64, 95, 85, 85, 100, 70, 70, 100, 100, 125" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1195px; height:652px; ">
  185. <col ref="pid"/>
  186. <col ref="patnm"/>
  187. <col ref="prcpdd" format="yyyy-mm-dd"/>
  188. <col ref="roomcd"/>
  189. <col ref="prcpgenrflag" visibility="hidden"/>
  190. <col ref="portprcpflag"/>
  191. <col ref="calcscorcd"/>
  192. <col ref="prcpnm"/>
  193. <col disabled="true" ref="execprcpstatcd" type="combo">
  194. <choices>
  195. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  196. <label ref="cdnm"/>
  197. <value ref="cdid"/>
  198. </itemset>
  199. </choices>
  200. </col>
  201. <col ref="orddrnm"/>
  202. <col ref="orddepthngnm"/>
  203. <col ref="prcpexecdeptnm"/>
  204. <col ref="execdeptnm"/>
  205. <col ref="rsrvdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
  206. <col ref="rcptdd" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
  207. <col ref="acptdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
  208. <col ref="execdt" format="yyyy-mm-dd hh:nn"/>
  209. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn"/>
  210. <col ref="prcpdelivefact"/>
  211. <script type="javascript" ev:event="onaftersort">
  212. <![CDATA[
  213. grd_portprcp.gridToInstance();
  214. ]]>
  215. </script>
  216. </datagrid>
  217. <select1 id="cmb_term" ref="/root/send/term" class="combo_default" visibility="visible" appearance="minimal" style="left:806px; top:24px; width:80px; height:19px; ">
  218. <choices>
  219. <item>
  220. <label>15일</label>
  221. <value>15</value>
  222. </item>
  223. <item>
  224. <label>30일</label>
  225. <value>30</value>
  226. </item>
  227. <item>
  228. <label>60일</label>
  229. <value>60</value>
  230. </item>
  231. <item>
  232. <label>일자선택</label>
  233. <value>0</value>
  234. </item>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-select">
  237. <![CDATA[
  238. if(cmb_term.value == "0" )
  239. {
  240. ipt_date1.disabled = false;
  241. ipt_date2.disabled = false;
  242. }
  243. else
  244. {
  245. var date2 = ipt_date2.value;
  246. var term = cmb_term.value;
  247. ipt_date1.value = date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") ;
  248. ipt_date1.disabled = true;
  249. ipt_date2.disabled = true;
  250. }
  251. ]]>
  252. </script>
  253. </select1>
  254. <caption id="caption14" style="left:700px; top:27px; width:15px; height:15px; ">~</caption>
  255. <caption id="caption5" class="search_name" style="left:519px; top:24px; width:91px; height:17px; ">처방일자 :</caption>
  256. <input id="ipt_date1" ref="/root/send/srchdate1" class="input_default" inputtype="date" style="left:608px; top:24px; width:90px; height:19px; "/>
  257. <input id="ipt_date2" ref="/root/send/srchdate2" class="input_default" inputtype="date" style="left:714px; top:24px; width:90px; height:19px; "/>
  258. <datagrid id="grd_temproom" nodeset="/root/init/cmb_info/initexcuroomcd" visibility="hidden" caption="caption3" colsep="^" colwidth="127" mergecellsfixedrows="bycolrec" rowsep="|" style="left:670px; top:190px; width:130px; height:135px; ">
  259. <col ref="excuroomcd"/>
  260. </datagrid>
  261. <caption id="caption12" class="search_name" style="left:264px; top:25px; width:106px; height:17px; ">검사/치료실 :</caption>
  262. <select1 id="cmb_excuroom" ref="/root/send/cmb_info/initexecroom/excuroomcdid" class="combo_default" navindex="1" appearance="minimal" editmode="inputsearch" style="left:372px; top:24px; width:128px; height:19px; ">
  263. <choices>
  264. <itemset nodeset="/root/init2/cmb_info/initexecroom">
  265. <label ref="excuroomcdnm"/>
  266. <value ref="excuroomcdid"/>
  267. </itemset>
  268. </choices>
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. btn_sea.dispatch("DOMActivate");
  272. ]]>
  273. </script>
  274. </select1>
  275. <caption id="caption2" class="search_name" style="left:10px; top:50px; width:91px; height:17px; ">실시구분 :</caption>
  276. <select id="chk_focus" ref="/root/send/genrflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:372px; top:51px; width:228px; height:15px; border-style:none; ">
  277. <choices>
  278. <item>
  279. <label>전체</label>
  280. <value>A</value>
  281. </item>
  282. <item>
  283. <label>입원</label>
  284. <value>I</value>
  285. </item>
  286. <item>
  287. <label>외래</label>
  288. <value>O</value>
  289. </item>
  290. <item>
  291. <label>응급</label>
  292. <value>E</value>
  293. </item>
  294. <item>
  295. <label>건진</label>
  296. <value>S</value>
  297. </item>
  298. </choices>
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. var genrflag = model.getValue("/root/send/genrflag");
  302. for(var i = 0 ; i < genrflag.length ; i++) {
  303. if(genrflag.substr(i,1) == "A" ) {
  304. chk_focus.value = "A";
  305. }
  306. }
  307. ]]>
  308. </script>
  309. </select>
  310. <caption id="caption4" class="search_name" style="left:264px; top:50px; width:106px; height:17px; ">처방구분 :</caption>
  311. <select1 id="radio3" ref="/root/send/actflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:100px; top:50px; width:155px; height:19px; border-style:none; ">
  312. <choices>
  313. <item>
  314. <label>전체</label>
  315. <value>A</value>
  316. </item>
  317. <item>
  318. <label>미실시</label>
  319. <value>N</value>
  320. </item>
  321. <item>
  322. <label>실시</label>
  323. <value>Y</value>
  324. </item>
  325. </choices>
  326. </select1>
  327. <caption id="caption6" class="search_name" style="left:647px; top:50px; width:106px; height:17px; ">포터블구분 :</caption>
  328. <select1 id="radio1" ref="/root/send/portflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:750px; top:50px; width:245px; height:19px; border-style:none; ">
  329. <choices>
  330. <item>
  331. <label>전체</label>
  332. <value>A</value>
  333. </item>
  334. <item>
  335. <label>진료포터블</label>
  336. <value>portprcpflag</value>
  337. </item>
  338. <item>
  339. <label>간호포터블접수</label>
  340. <value>etcprcpflag</value>
  341. </item>
  342. </choices>
  343. </select1>
  344. </xhtml:body>
  345. </xhtml:html>