SMMNW20000_외상병동환자대장.xrw 14 KB

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