SMMNW20020_외상소생구역환자대장.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. <cond>
  11. <deptcd/>
  12. <pid/>
  13. <fromdd/>
  14. <todd/>
  15. <acptflag/>
  16. <exceptflag>Y</exceptflag>
  17. <multicheck/>
  18. <exceptflag2>Y</exceptflag2>
  19. <deptnm/>
  20. <name/>
  21. </cond>
  22. <trmsinfo>
  23. <trmslist/>
  24. </trmsinfo>
  25. </main>
  26. <send>
  27. <reqdata/>
  28. <savedata/>
  29. </send>
  30. <init/>
  31. <temp/>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. //grd_trmsinfo.fixedcellcheckbox(0, grd_trmsinfo.colRef("chkyn")) = true;
  37. // model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
  38. // model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  39. // submit("TRMNW00001", false);
  40. // var userid = getUserInfo("userid") ;
  41. //
  42. // //IV팀이면. 활성화
  43. // if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
  44. // btn_cmpl.disabled = false;
  45. // btn_savrem.disabled = false;
  46. // btn_cncl.disabled = false;
  47. // } else { // IV팀이 아니면 비활성화
  48. // btn_cmpl.disabled = true;
  49. // btn_savrem.disabled = true;
  50. // btn_cncl.disabled = true;
  51. // }
  52. var sWardcd = "3041601000"
  53. var instcd = getUserInfo("dutplceinstcd");
  54. var standard_yn = "orduseyn";
  55. var ord_deptflag = 'W';
  56. var rslt_ref = "/root/init/dept";
  57. var sort_field = "depthngnm";
  58. var sort_method = "asc";
  59. var dt = getCurrentDate();
  60. submit("TRMNW11001", false);
  61. addComboItem("cmb_deptcd", "전 체", "", "above");
  62. for (var i = 0; i < grd_trmsinfo.cols; i++) {
  63. if( i < 3 ) {
  64. grd_trmsinfo.mergecol(i)=true;
  65. } else {
  66. grd_trmsinfo.mergecol(i)=false;
  67. }
  68. grd_trmsinfo.mergecells="byrestriccol";
  69. }
  70. model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
  71. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  72. model.setValue(cmb_deptcd.attribute("ref"), sWardcd);
  73. model.makeValue("/root/main/cond/name", "외상소생구역 환자대장");
  74. cmb_deptcd.refresh();
  75. ipt_fromdd.refresh();
  76. ipt_todd.refresh();
  77. // if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
  78. //
  79. // } else { // IV팀이 아니면 비활성화
  80. //
  81. // if(getUserInfo("userid") == "ENR") {
  82. // model.setValue(cmb_deptcd.attribute("ref"), "");
  83. // cmb_deptcd.refresh();
  84. // } else {
  85. //
  86. // model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  87. // cmb_deptcd.refresh();
  88. // }
  89. // }
  90. fSearch() ;
  91. ]]>
  92. </script>
  93. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  94. <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
  95. <submission id="TRMNW20020" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/trmsinfo"/>
  96. <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  97. <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
  98. </model>
  99. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  100. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript">
  106. <![CDATA[
  107. function fSearch() {
  108. model.copyNode("/root/send/reqdata", "/root/main/cond");
  109. submit("TRMNW20020");
  110. // var nodePath = grd_trmsinfo.nodeset;
  111. //
  112. // for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
  113. // if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
  114. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  115. // }else{
  116. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
  117. // }
  118. // if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
  119. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  120. // }else{
  121. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
  122. // }
  123. // if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
  124. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  125. // }else{
  126. // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
  127. // }
  128. // }
  129. }
  130. ]]>
  131. </script>
  132. </xhtml:head>
  133. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  134. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  135. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; font-family:굴림; ">외상소생구역 환자대장</caption>
  136. <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:40px; vertical-align:top; ">
  137. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
  138. <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1010px; top:11px; width:56px; height:22px; ">
  139. <caption>조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. fSearch() ;
  143. ]]>
  144. </script>
  145. </button>
  146. <caption id="caption3" class="search_name" style="left:215px; top:11px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
  147. <line id="line2" class="line_4" style="x1:990px; y1:10px; x2:990px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  148. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:284px; top:11px; width:95px; height:19px; font-family:굴림; ">
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. ]]>
  152. </script>
  153. </input>
  154. <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
  155. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:80px; top:11px; width:125px; height:19px; font-family:굴림; ">
  156. <choices>
  157. <itemset nodeset="/root/init/deptinfo/deptlist">
  158. <label ref="depthngnm"/>
  159. <value ref="deptcd"/>
  160. </itemset>
  161. </choices>
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. fSearch();
  165. ]]>
  166. </script>
  167. </select1>
  168. <caption id="caption2" class="search_name" visibility="hidden" style="left:675px; top:11px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
  169. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" navindex="4" visibility="hidden" appearance="minimal" style="left:765px; top:11px; width:55px; height:19px; font-family:굴림; ">
  170. <choices>
  171. <itemset nodeset="/root/init/ward">
  172. <label ref="depthngnm"/>
  173. <value ref="deptcd"/>
  174. </itemset>
  175. </choices>
  176. <script type="javascript" ev:event="onkeyup">
  177. <![CDATA[
  178. inputEnterKey("btn_ref", "DOMActivate");
  179. ]]>
  180. </script>
  181. </input>
  182. <button id="button2" class="btn1_letter2" navindex="8" style="left:1128px; top:11px; width:56px; height:22px; ">
  183. <caption>엑셀</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. // var fileName = window.fileDialog("save", ",", false, "소아IV팀 호출 현황 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  187. // grd_trmsinfo.saveExcel(fileName, "sheetname;colhiddenextend:true;exportfalsecols:1,2,8,9,10;col_3:label;col_16:label;col_18:label;col_19:label;");
  188. // if(getScreenMenuParameter() == '708'){
  189. // var sTitle = "외상병동 환자대장";
  190. // } else if(getScreenMenuParameter() == 'TICU') {
  191. // var sTitle = "외상중환자실 환자대장";
  192. // }
  193. var sTitle = "외상소생구역 환자대장"
  194. var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  195. if (fileName != ""){
  196. grd_trmsinfo.saveExcel(fileName, sTitle, true, true, "", "", true);
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:394px; top:11px; width:95px; height:19px; font-family:굴림; "/>
  202. <caption id="caption4" style="left:377px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  203. <button id="button7" class="btn1_letter2" style="left:1068px; top:11px; width:56px; height:22px; ">
  204. <caption>출력</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. model.setValue("/root/main/cond/deptnm", cmb_deptcd.label);
  208. model.removeNodeset("/root/temp");
  209. model.makeNode("/root/temp");
  210. //alert(instance1.selectNodesXml("/root/temp"));
  211. // model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  212. // model.makeValue("/root/send/nursid", model.getValue("/root/main/cond/settingrnid"));
  213. // submit("TRMNW00211");
  214. // model.copyNode("/root/send/ipatgroup/ipatlistinfo", "/root/main_nm/wardpatinfo"); // 추가20080915
  215. model.duplicate("/root/temp", "root/main/trmsinfo");
  216. model.duplicate("/root/temp", "root/main/cond");
  217. //alert(instance1.selectNodesXml("/root/temp"));
  218. exeReportPreview("RPMNW20020", "XMLSTR");
  219. // exeReportPreview("RPMNW00700", "XMLSTR", "", "","true","","","","","true"); // 바로 출력
  220. // exeReportPreview("RPMNW00210", "XMLSTR", "", "", "", "", "", "", "", "", "", "grp"); //미리보기출력
  221. // if(grd_wardpatlist.rows < 1) {
  222. // messageBox("Vital Sign을 출력할 정보가 존재하지 않습니다.", "E");
  223. // return;
  224. // } else {
  225. //
  226. // exeReportPreview("RPMNW00700", "XMLSTR", "", "","true","","","","","true");
  227. // }
  228. ]]>
  229. </script>
  230. </button>
  231. </group>
  232. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:1194px; y2:63px; "/>
  233. <datagrid id="grd_trmsinfo" nodeset="/root/main/trmsinfo/trmslist" class="datagrid2" caption="일자^구역^중증^KTAS^등록번호^성명^S/A^진단코드^진단명^진료과^전문의^담당의^내원일시^내원일시^퇴실일시^퇴실일시^퇴실종류^전출의료기관^입원병실^입원병실^체류시간(분)" colsep="^" colwidth="70, 72, 30, 23, 55, 55, 45, 75, 114, 70, 55, 55, 70, 45, 70, 45, 34, 88, 49, 40, 45" explorerbar="sort" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:68px; width:1194px; height:692px; ">
  234. <col ref="basedd" format="yyyy-mm-dd"/>
  235. <col ref="bednm"/>
  236. <col ref="serflag"/>
  237. <col ref="ktas"/>
  238. <col ref="pid"/>
  239. <col ref="patnm"/>
  240. <col ref="sexage"/>
  241. <col ref="diagcd"/>
  242. <col ref="diagnm"/>
  243. <col ref="orddeptnm"/>
  244. <col ref="jatdoctnm"/>
  245. <col ref="datdoctnm"/>
  246. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  247. <col ref="intm" format="hh:nn" style="text-align:center; "/>
  248. <col ref="eroutdd" format="yyyy-mm-dd" style="text-align:center; "/>
  249. <col ref="erouttm" format="hh:nn" style="text-align:center; "/>
  250. <col ref="outrmnm"/>
  251. <col ref="chnghospnm"/>
  252. <col ref="chngwardnm"/>
  253. <col ref="chngroomcd"/>
  254. <col ref="durtime"/>
  255. <script type="javascript" ev:event="onaftersort">
  256. <![CDATA[
  257. grd_trmsinfo.gridToInstance();
  258. ]]>
  259. </script>
  260. </datagrid>
  261. <select id="checkbox1" ref="/root/main/cond/exceptflag" visibility="hidden" overflow="visible" appearance="full" style="left:835px; top:34px; width:66px; height:13px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>완료제외</label>
  265. <value>Y</value>
  266. </item>
  267. </choices>
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. fSearch() ;
  271. ]]>
  272. </script>
  273. </select>
  274. <select id="checkbox2" ref="/root/main/cond/exceptflag2" visibility="hidden" overflow="visible" appearance="full" style="left:907px; top:34px; width:71px; height:13px; border-style:none; ">
  275. <choices>
  276. <item>
  277. <label>취소제외</label>
  278. <value>Y</value>
  279. </item>
  280. </choices>
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. fSearch() ;
  284. ]]>
  285. </script>
  286. </select>
  287. </group>
  288. </xhtml:body>
  289. </xhtml:html>