SMABO01600_교육의뢰리스트.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. <bmteducreq>
  11. <bmteducreqlist>
  12. <wardnm/>
  13. <roomcd/>
  14. <deptnm/>
  15. <pid/>
  16. <hngnm/>
  17. <sex/>
  18. <age/>
  19. <indd/>
  20. <dschdclrdt/>
  21. <reqdd/>
  22. <requsernm/>
  23. <formnm/>
  24. <repldd/>
  25. <recvusernm/>
  26. <cnststat/>
  27. <cretno/>
  28. <reqdeptcd/>
  29. <requserid/>
  30. </bmteducreqlist>
  31. </bmteducreq>
  32. <popupmenu>
  33. <popupmenu>
  34. <item>
  35. <name>타과의뢰</name>
  36. <func>fOpenPopupConsult</func>
  37. </item>
  38. </popupmenu>
  39. </popupmenu>
  40. <hsctinfo>
  41. <patinfolist>
  42. <hngnm/>
  43. <rrgstno1/>
  44. <age/>
  45. <sex/>
  46. <pid/>
  47. <rrgstno2/>
  48. </patinfolist>
  49. </hsctinfo>
  50. <popupendflag/>
  51. </main>
  52. <init>
  53. <cmbinfo>
  54. <sex>
  55. <P0313>
  56. <cdid/>
  57. <cdnm/>
  58. </P0313>
  59. </sex>
  60. </cmbinfo>
  61. </init>
  62. <send>
  63. <req>
  64. <reqfromdd/>
  65. <reqtodd/>
  66. <dschyn/>
  67. <cnststat/>
  68. <pid/>
  69. </req>
  70. </send>
  71. <temp>
  72. <bmtpatientinfo/>
  73. </temp>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  82. <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/pid" replace="instance" resultref="/root/main/hsctinfo"/>
  83. <submission id="TRABO01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bmteducreq"/>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. // 공통코드 가져오기
  87. zbcfGetCodeList( new Array("P0313"), new Array("/root/init/cmbinfo/sex")) ;
  88. var reqfromdd = getCurrentDate().substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
  89. ipt_reqfromdd.value = reqfromdd;
  90. var reqtodd = getCurrentDate().substr(0,6) + reqfromdd.toDate().getMonthDay();
  91. ipt_reqtodd.value = reqtodd;
  92. model.refresh();
  93. // SMMMR05000_param_pinfo"); //pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▦
  94. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  95. if ( checkOpener()) {
  96. var param = opener.javascript.getParameter("opener_parameter_id");
  97. if(param != "") // opener parameter value가 있는 경우
  98. {
  99. //parameter value를 이용하여 프로그램 수행
  100. condarray = param.split("▦");
  101. model.setValue("/root/send/req/pid", condarray[0]);
  102. return;
  103. }
  104. }
  105. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  106. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  107. if ( paminfo != "" ) {
  108. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  109. model.makeNode("/root/temp/paminfo");
  110. setCSVToNode("/root/temp/paminfo", paminfo);
  111. //상단 정보를 이용하여 프로그램 수행
  112. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  113. model.setValue("/root/send/req/pid", pid);
  114. } else {
  115. //세션에 저장된 PID정보를 가져옴.
  116. var gv_pid = getGlobalVariable("gv_pid", "A");
  117. if(gv_pid != "") {
  118. model.setValue("/root/send/req/pid", gv_pid);
  119. }
  120. }
  121. model.refresh();
  122. ]]>
  123. </script>
  124. <script type="javascript">
  125. <![CDATA[
  126. /* @group : 교육의뢰리스트
  127. * @ver : 2008.07.10
  128. * @by : 남수현
  129. * @type : function
  130. * @access : public
  131. * @desc : 타과의뢰 회신화면 호출
  132. * @param :
  133. */
  134. function fOpenPopupConsult() {
  135. var iselectrow = grd_edulist.row;
  136. var spid = model.getValue("/root/main/bmteducreq/bmteducreqlist[" + iselectrow + "]/pid");
  137. var sorddd = model.getValue("/root/main/bmteducreq/bmteducreqlist[" + iselectrow + "]/indd");
  138. var scretno = model.getValue("/root/main/bmteducreq/bmteducreqlist[" + iselectrow + "]/cretno");
  139. var sorddeptcd = model.getValue("/root/main/bmteducreq/bmteducreqlist[" + iselectrow + "]/reqdeptcd");
  140. var srequserid = model.getValue("/root/main/bmteducreq/bmteducreqlist[" + iselectrow + "]/requserid");
  141. //var sflag = spid + "▦" + sorddd + "▦" + scretno + "▦" + "I" + "▦" + sorddeptcd + "▦" + srequserid;
  142. var sflag = spid + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "";
  143. setParameter("SMMMR05000_param_pinfo", sflag);
  144. modal("SMMMR05000", 1, "", 100, "", "", "", "left:0; right:; width:0; height:0; min:hidden, max:hidden;");
  145. }
  146. ]]>
  147. </script>
  148. </model>
  149. </xhtml:head>
  150. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  152. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">교육 의뢰 리스트</caption>
  153. </group>
  154. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  155. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:91px; height:13px; ">교육 의뢰 리스트</caption>
  156. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  157. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  158. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기관(의뢰일) :</caption>
  160. <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  161. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  162. <input id="ipt_reqfromdd" ref="/root/send/req/reqfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  163. <input id="ipt_reqtodd" ref="/root/send/req/reqtodd" class="input_s_essential" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
  164. <select id="checkbox1" ref="/root/send/req/dschyn" class="checkbox_search" overflow="visible" appearance="full" style="left:364px; top:8px; width:120px; height:20px; border-style:none; ">
  165. <choices>
  166. <item>
  167. <label>교육한 환자 제외</label>
  168. <value>checkbox1</value>
  169. </item>
  170. </choices>
  171. </select>
  172. <select id="checkbox2" ref="/root/send/req/cnststat" class="checkbox_search" overflow="visible" appearance="full" style="left:499px; top:8px; width:120px; height:20px; border-style:none; ">
  173. <choices>
  174. <item>
  175. <label>퇴원한 환자 제외</label>
  176. <value>checkbox1</value>
  177. </item>
  178. </choices>
  179. </select>
  180. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. submit("TRABO00001"); //환자 정보 조회;
  185. submit("TRABO01601");
  186. ]]>
  187. </script>
  188. </button>
  189. <output id="output5" ref="/root/main/hsctinfo/patinfolist/age" class="output_search" style="left:919px; top:8px; width:30px; height:19px; text-align:center; "/>
  190. <output id="output6" ref="/root/main/hsctinfo/patinfolist/sex" class="output_search" style="left:952px; top:8px; width:30px; height:19px; text-align:center; "/>
  191. <input id="ipt_pid" ref="/root/send/req/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:734px; top:8px; width:100px; height:19px; ">
  192. <script type="javascript" ev:event="onkeyup">
  193. <![CDATA[
  194. inputEnterKey("btn_sea", "DOMActivate");
  195. ]]>
  196. </script>
  197. <script type="javascript" ev:event="xforms-next">
  198. <![CDATA[
  199. model.setFocus( "ipt_pid");
  200. ]]>
  201. </script>
  202. <script type="javascript" ev:event="onbuttonclick">
  203. <![CDATA[
  204. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  205. model.setValue("/root/send/req/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  206. ipt_pid.refresh();
  207. ]]>
  208. </script>
  209. </input>
  210. <output id="output17" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_search" style="left:836px; top:8px; width:80px; height:19px; text-align:center; "/>
  211. <caption id="caption16" class="search_name" style="left:645px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  212. </group>
  213. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  214. <caption>엑셀저장</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var fileName = window.fileDialog("save", ",", false, "교육의뢰리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  218. if (fileName != "")
  219. {
  220. grd_edulist.saveExcel(fileName);
  221. }
  222. ]]>
  223. </script>
  224. </button>
  225. <datagrid id="grd_edulist" nodeset="/root/main/bmteducreq/bmteducreqlist" caption="UNIT^병실^진료과^등록번호^환자명^성별^나이^입원일^퇴원예정일^의뢰일자^의뢰자^교육명^회신일자^회신자^상태" colsep="^" colwidth="89, 58, 94, 75, 66, 43, 38, 76, 77, 78, 86, 153, 80, 76, 56" dataheight="25" defaultrows="3" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1194px; height:659px; ">
  226. <col ref="wardnm" type="output"/>
  227. <col ref="roomcd"/>
  228. <col ref="deptnm" type="output"/>
  229. <col ref="pid" type="output" style="text-align:center; "/>
  230. <col ref="hngnm" style="text-align:center; "/>
  231. <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
  232. <choices>
  233. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  234. <label ref="cdnm"/>
  235. <value ref="cdid"/>
  236. </itemset>
  237. </choices>
  238. </col>
  239. <col ref="age" style="text-align:center; "/>
  240. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  241. <col ref="dschdclrdt" format="yyyy-mm-dd"/>
  242. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  243. <col ref="requsernm" style="text-align:center; "/>
  244. <col ref="formnm"/>
  245. <col ref="repldd" format="yyyy-mm-dd" style="text-align:center; "/>
  246. <col ref="recvusernm" style="text-align:center; "/>
  247. <col ref="cnststatnm" style="text-align:center; "/>
  248. <script type="javascript" ev:event="onaftersort">
  249. <![CDATA[
  250. grd_edulist.gridToInstance();
  251. ]]>
  252. </script>
  253. <script type="javascript" ev:event="onmousedown">
  254. <![CDATA[
  255. setPopupMenu("body", false, "/root/main/popupmenu/popupmenu/item", "name", "func");
  256. ]]>
  257. </script>
  258. </datagrid>
  259. </group>
  260. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  261. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  262. <caption>출력</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. exeReportPreview("RPABO01601", "XMLSTR", "/root/main/bmteducreq");
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. </xhtml:body>
  271. </xhtml:html>