SPASI00400_전과전동내역조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. <fstdeptfstwardinfo>
  11. </fstdeptfstwardinfo>
  12. <cond>
  13. <pid/>
  14. <fromdd/>
  15. <todd/>
  16. </cond>
  17. <patinfo>
  18. <pname/>
  19. <sa/>
  20. </patinfo>
  21. </main>
  22. <send>
  23. <reqdata/>
  24. </send>
  25. <hidden/>
  26. <init>
  27. <initdate>
  28. <today/>
  29. </initdate>
  30. </init>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fInitialize();
  36. model.removeNodeset("/root/main/fstdeptfstwardinfo");
  37. model.setValue("/root/main/patinfo/pname", "");
  38. model.setValue("/root/main/patinfo/sa", "");
  39. try {
  40. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/pid", opener.model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
  41. btn_cnfm.visible = true;
  42. } catch(E) {
  43. btn_cnfm.visible = false;
  44. }
  45. model.refresh();
  46. ]]>
  47. </script>
  48. <submission id="TRASI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/fstdeptfstwardinfo"/>
  49. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  50. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  51. </model>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. function fInitialize() {
  60. var today = getCurrentDate();
  61. var idate = new Date();
  62. var peveDate = idate.getAddDate(-1, "M");
  63. model.setValue("/root/init/initdate/today", today);
  64. model.makeValue("/root/send/cond/trgtmancnt", "I");
  65. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  66. model.makeValue("/root/send/cond/todd", today);
  67. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  68. model.setValue("/root/main/cond/todd", today);
  69. model.refresh();
  70. }
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="1116" pageheight="619" guideline="2,-3;" style="margin-left:8; margin-right:8; ">
  75. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:592px; ">
  76. <line id="line56" class="line_3" style="x1:0px; y1:51px; x2:1100px; y2:51px; "/>
  77. <caption id="caption1" class="tit_2" style="left:5px; top:8px; width:121px; height:14px; ">전과전동내역조회</caption>
  78. <line id="line7" class="line_1" style="x1:0px; y1:23px; x2:1100px; y2:23px; "/>
  79. <caption id="caption3" style="left:365px; top:30px; width:15px; height:20px; ">~</caption>
  80. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:378px; top:29px; width:113px; height:19px; "/>
  81. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:247px; top:29px; width:113px; height:19px; "/>
  82. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_s_essential" disabled="false" style="left:58px; top:30px; width:103; height:19px; ">
  83. <script type="javascript" ev:event="onkeyup">
  84. <![CDATA[
  85. inputEnterKey("btn_search", "DOMActivate");
  86. ]]>
  87. </script>
  88. </input>
  89. <datagrid id="grd_fstdeptfstwardlist" nodeset="/root/main/fstdeptfstwardinfo/fstdeptfstwardlist" caption="성명^성별/나이^구분^전과전동일시^전과^전병동코드^전병동^전병실^전동전입원기간^전스탭id(전문의)^전스탭(전문의)^전주치의^현병동입실기간^후과^후병동^후병실^후스탭id(전문의)^후스탭(전문의)^후주치의" colsep="^" colwidth="7, 7, 53, 110, 95, 7, 95, 90, 10, 10, 90, 90, 8, 95, 95, 90, 5, 90, 90" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:53px; width:1100px; height:537px; ">
  90. <col ref="pname" visibility="hidden"/>
  91. <col ref="sa" visibility="hidden"/>
  92. <col disabled="true" ref="adflag" type="combo">
  93. <choices>
  94. <item>
  95. <label>전실</label>
  96. <value>1</value>
  97. </item>
  98. <item>
  99. <label>전과</label>
  100. <value>2</value>
  101. </item>
  102. <item>
  103. <label>입원(W)</label>
  104. <value>3</value>
  105. </item>
  106. <item>
  107. <label>입원</label>
  108. <value>4</value>
  109. </item>
  110. <item>
  111. <label>퇴원</label>
  112. <value>5</value>
  113. </item>
  114. </choices>
  115. </col>
  116. <col ref="fstdeptfstwarddt" format="yyyy-mm-dd hh:nn"/>
  117. <col disabled="true" ref="latdeptnm"/>
  118. <col ref="fstwardcd" visibility="hidden"/>
  119. <col disabled="true" ref="latwardnm"/>
  120. <col ref="latroomcd"/>
  121. <col ref="fstwardfstindd" visibility="hidden"/>
  122. <col ref="fstmedispclid" visibility="hidden"/>
  123. <col ref="latmedispcl"/>
  124. <col ref="latatdoct"/>
  125. <col ref="prestdeptwardindd" visibility="hidden"/>
  126. <col disabled="true" ref="fstdeptnm"/>
  127. <col ref="fstwardnm"/>
  128. <col ref="fstroomcd"/>
  129. <col ref="latmedispclid" visibility="hidden"/>
  130. <col ref="fstmedispcl"/>
  131. <col ref="fstatdoct"/>
  132. <col ref="fstdeptfstwarddd" visibility="hidden"/>
  133. <col ref="fstdeptfstwardtm" visibility="hidden"/>
  134. <script type="javascript" ev:event="ondblclick">
  135. <![CDATA[
  136. if((grd_fstdeptfstwardlist.mouseRow > 0) && ( grd_fstdeptfstwardlist.mouseRow <= grd_fstdeptfstwardlist.rows )) {
  137. var iRow = grd_fstdeptfstwardlist.row;
  138. try {
  139. var fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstwardcd");
  140. // 최초 입원 병동의 경우 latwardcd 값 사용
  141. if ( fstwardcd == null || fstwardcd == "" ) {
  142. fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latwardcd");
  143. }
  144. var fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstroomcd");
  145. // 최초 입원 병실의 경우 latroomcd 값 사용
  146. if ( fstroomcd == null || fstroomcd == "" ) {
  147. fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latroomcd");
  148. }
  149. // 부모창의 전문의 정보를 전과전동 후스탭(전문의)로 설정한다 ( 2010-07-05 )
  150. var fstmedispcl = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstmedispcl");
  151. var fstmedispclid = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstmedispclid");
  152. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", fstwardcd);
  153. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", fstroomcd);
  154. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwarddd"));
  155. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomtm", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwardtm"));
  156. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtnm", fstmedispcl);
  157. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtcd", fstmedispclid);
  158. opener.model.refresh();
  159. window.close();
  160. } catch(E) {
  161. }
  162. }
  163. ]]>
  164. </script>
  165. <script type="javascript" ev:event="onaftersort">
  166. <![CDATA[
  167. grd_fstdeptfstwardlist.gridToInstance();
  168. ]]>
  169. </script>
  170. </datagrid>
  171. <button id="btn_search" class="btn1_letter2" style="left:1042px; top:28px; width:56px; height:22px; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. if( !isRequiredControls("ipt_pid","ipt_fromdd","ipt_todd") ){
  176. return;
  177. }
  178. model.makeNode("/root/send/reqdata");
  179. model.copyNode("/root/send/reqdata", "/root/main/cond");
  180. submit("TRASI00401");
  181. model.setValue("/root/main/patinfo/pname", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist/pname"));
  182. model.setValue("/root/main/patinfo/sa", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist/sa"));
  183. model.refresh();
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="btn_cnfm" class="btn2_letter2" visibility="hidden" style="left:1055px; top:2px; width:42px; height:19px; ">
  188. <caption>확인</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. var iRow = grd_fstdeptfstwardlist.row;
  192. try {
  193. var fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstwardcd");
  194. // 최초 입원 병동의 경우 latwardcd 값 사용
  195. if ( fstwardcd == null || fstwardcd == "" ) {
  196. fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latwardcd");
  197. }
  198. var fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstroomcd");
  199. // 최초 입원 병실의 경우 latroomcd 값 사용
  200. if ( fstroomcd == null || fstroomcd == "" ) {
  201. fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latroomcd");
  202. }
  203. // 부모창의 전문의 정보를 전과전동 후스탭(전문의)로 설정한다 ( 2010-07-05 )
  204. var latmedispcl = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latmedispcl");
  205. var latmedispclid = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latmedispclid");
  206. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", fstwardcd);
  207. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", fstroomcd);
  208. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwarddd"));
  209. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomtm", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwardtm"));
  210. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtnm", latmedispcl);
  211. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtcd", latmedispclid);
  212. opener.model.refresh();
  213. window.close();
  214. } catch(E) {
  215. window.close();
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="cap_pid" class="cell_1" style="left:0px; top:28px; width:55px; height:23px; vertical-align:middle; ">등록번호</caption>
  221. <caption id="cap_fromdd" class="cell_1" style="left:164px; top:28px; width:79px; height:23px; vertical-align:middle; ">전과전동기간</caption>
  222. <caption id="cap_todd" class="cell_1" visibility="hidden" style="left:164px; top:28px; width:79px; height:23px; vertical-align:middle; ">전과전동기간</caption>
  223. <caption id="cap_pname" ref="/root/main/patinfo/pname" class="cell_3" style="left:559px; top:28px; width:111px; height:23px; vertical-align:middle; "/>
  224. <caption id="cap_age" ref="/root/main/patinfo/sa" class="cell_3" style="left:674px; top:28px; width:41px; height:23px; vertical-align:middle; "/>
  225. </group>
  226. <group id="grp_btn" style="left:0px; top:592px; width:1100px; height:27px; ">
  227. <button id="btn_print" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
  228. <caption>출력</caption>
  229. </button>
  230. <button id="btn_init" class="btn4_letter3" style="left:1028px; top:3px; width:68px; height:22px; ">
  231. <caption>초기화</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. model.removeNodeset("/root/main/fstdeptfstwardinfo");
  235. model.setValue("/root/main/patinfo/pname", "");
  236. model.setValue("/root/main/patinfo/sa", "");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="button2" class="btn4_letter3" style="left:60px; top:3px; width:59px; height:22px; ">
  242. <caption>Excel</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  246. if (fileName != ""){
  247. grd_fstdeptfstwardlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  248. }
  249. ]]>
  250. </script>
  251. </button>
  252. </group>
  253. </xhtml:body>
  254. </xhtml:html>