123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>외상병동 환자대장</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <deptcd/>
- <pid/>
- <fromdd/>
- <todd/>
- <acptflag/>
- <exceptflag>Y</exceptflag>
- <multicheck/>
- <exceptflag2>Y</exceptflag2>
- <deptnm/>
- <name/>
- </cond>
- <trmsinfo>
- <trmslist/>
- </trmsinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //grd_trmsinfo.fixedcellcheckbox(0, grd_trmsinfo.colRef("chkyn")) = true;
-
- // model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
- // model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- // submit("TRMNW00001", false);
-
- // var userid = getUserInfo("userid") ;
- //
- // //IV팀이면. 활성화
- // if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
- // btn_cmpl.disabled = false;
- // btn_savrem.disabled = false;
- // btn_cncl.disabled = false;
- // } else { // IV팀이 아니면 비활성화
- // btn_cmpl.disabled = true;
- // btn_savrem.disabled = true;
- // btn_cncl.disabled = true;
- // }
-
- var menuParameter = getScreenMenuParameter();
- var sWardcd = ""
- //alert("menupara :" + menuParameter);
-
- if(menuParameter == '708'){
- document.title = "외상병동 환자대장";
- cpt_title.attribute("text") = "외상병동 환자대장";
- model.makeValue("/root/main/cond/name", "외상병동 환자대장");
- sWardcd = '3050162000'
- } else if(menuParameter == 'TICU') {
- document.title = "외상중환자실 환자대장";
- cpt_title.attribute("text") = "외상중환자실 환자대장";
- model.makeValue("/root/main/cond/name", "외상중환자실 환자대장");
- sWardcd = '3063000000'
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
- submit("TRMNW11001", false);
- addComboItem("cmb_deptcd", "전 체", "", "above");
-
- for (var i = 0; i < grd_trmsinfo.cols; i++) {
- if( i < 4 ) {
- grd_trmsinfo.mergecol(i)=true;
- } else {
- grd_trmsinfo.mergecol(i)=false;
- }
- grd_trmsinfo.mergecells="byrestriccol";
- }
- model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
- model.setValue(cmb_deptcd.attribute("ref"), sWardcd);
-
- cmb_deptcd.refresh();
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- // if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
- //
- // } else { // IV팀이 아니면 비활성화
- //
- // if(getUserInfo("userid") == "ENR") {
- // model.setValue(cmb_deptcd.attribute("ref"), "");
- // cmb_deptcd.refresh();
- // } else {
- //
- // model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- // cmb_deptcd.refresh();
- // }
- // }
- fSearch() ;
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
- <submission id="TRMNW20000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/trmsinfo"/>
- <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
- </model>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNW20000");
- // var nodePath = grd_trmsinfo.nodeset;
- //
- // for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
- // if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
- // }else{
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
- // }
- // if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
- // }else{
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
- // }
- // if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
- // }else{
- // grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
- // }
- // }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; font-family:굴림; ">외상병동 환자대장</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
- <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1010px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:215px; top:11px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
- <line id="line2" class="line_4" style="x1:990px; y1:10px; x2:990px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <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:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
- <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:굴림; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:675px; top:11px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
- <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:굴림; ">
- <choices>
- <itemset nodeset="/root/init/ward">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_ref", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" navindex="8" style="left:1128px; top:11px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "소아IV팀 호출 현황 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- // 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;");
-
- if(getScreenMenuParameter() == '708'){
- var sTitle = "외상병동 환자대장";
- } else if(getScreenMenuParameter() == 'TICU') {
- var sTitle = "외상중환자실 환자대장";
- }
-
- //var sTitle = "외상중환자실 환자대장"
- var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_trmsinfo.saveExcel(fileName, sTitle, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <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:굴림; "/>
- <caption id="caption4" style="left:377px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
- <button id="button7" class="btn1_letter2" style="left:1068px; top:11px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/main/cond/deptnm", cmb_deptcd.label);
- model.removeNodeset("/root/temp");
- model.makeNode("/root/temp");
- //alert(instance1.selectNodesXml("/root/temp"));
- // model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- // model.makeValue("/root/send/nursid", model.getValue("/root/main/cond/settingrnid"));
-
- // submit("TRMNW00211");
- // model.copyNode("/root/send/ipatgroup/ipatlistinfo", "/root/main_nm/wardpatinfo"); // 추가20080915
- model.duplicate("/root/temp", "root/main/trmsinfo");
- model.duplicate("/root/temp", "root/main/cond");
- //alert(instance1.selectNodesXml("/root/temp"));
-
- exeReportPreview("RPMNW20000", "XMLSTR");
- // exeReportPreview("RPMNW00700", "XMLSTR", "", "","true","","","","","true"); // 바로 출력
- // exeReportPreview("RPMNW00210", "XMLSTR", "", "", "", "", "", "", "", "", "", "grp"); //미리보기출력
- // if(grd_wardpatlist.rows < 1) {
- // messageBox("Vital Sign을 출력할 정보가 존재하지 않습니다.", "E");
- // return;
- // } else {
- //
- // exeReportPreview("RPMNW00700", "XMLSTR", "", "","true","","","","","true");
- // }
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:1194px; y2:63px; "/>
- <datagrid id="grd_trmsinfo" nodeset="/root/main/trmsinfo/trmslist" class="datagrid2" caption="no^일자^병실^재원
상태^전실병실^전실병실^중증^등록번호^성명^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; ">
- <col ref="callno"/>
- <col ref="basedd" format="yyyy-mm-dd"/>
- <col ref="roomcd"/>
- <col ref="stat"/>
- <col ref="to_wardcd"/>
- <col ref="to_roomcd"/>
- <col ref="serflag"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sexage"/>
- <col ref="diagnm"/>
- <col ref="jatdoctnm"/>
- <col ref="datdoctnm"/>
- <col ref="hd"/>
- <col ref="pod"/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="intm" format="hh:nn" style="text-align:center; "/>
- <col ref="roomindt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="roomintm" format="hh:nn" style="text-align:center; "/>
- <col ref="opdd" type="output" style="text-align:left; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschtm" format="hh:nn" style="text-align:center; "/>
- <col ref="dcrt"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_trmsinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <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; ">
- <choices>
- <item>
- <label>완료제외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </select>
- <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; ">
- <choices>
- <item>
- <label>취소제외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|