123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
- <opinfo>
- <list>
- <pid/>
- <patnm/>
- <sexflag/>
- <rrgstno/>
- <indd/>
- <orddeptcd/>
- <opdd/>
- <dschdd/>
- <opdeptcd/>
- <surgeon/>
- <fstasst/>
- <sndasst/>
- <trdasst/>
- <bfopdiagnm/>
- <aftopdiagnm/>
- <opnm/>
- <biopsyyn/>
- <drains/>
- <wrtedr/>
- </list>
- </opinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <dschfrdd/>
- <dschtodd/>
- <opfrdd/>
- <optodd/>
- <pid/>
- <orddeptcd/>
- <opdeptcd/>
- <patnm/>
- <offset/>
- <pagesize>1000</pagesize>
- </send>
- <init>
- <dept>
- <dept/>
- </dept>
- </init>
- <tmp>
- <autoflag/>
- <srchcond/>
- <pid/>
- </tmp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function listInit()
- {
- cmb_orddeptcd.deselect();
- cmb_opdeptcd.deselect();
- //진료과 리스트를 불러온다.
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- var sort_field = "depthngnm";
- var base_dd ="";
- if(ipt_dsch2.value =="")
- base_dd = ipt_opdd2.value;
- else
- base_dd = ipt_dsch2.value;
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method,base_dd);
- // 진료과 리스트 add
- addComboItem("cmb_orddeptcd", "", "", "above");
- //zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method,base_dd);
- addComboItem("cmb_opdeptcd", "", "", "below");
- }
-
- // 조회 submit 함수
- function formsubmit()
- {
-
- model.removeNodeset("/root/main/opinfo/list");
- model.setValue("/root/send/offset",0);
- submit("TRMMR08201");
- model1.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 현재 날자를 퇴원일자에 셋팅한다.
- var tmpday, today = ""; //today = 오늘날자
- tmpday = new Date();
- today += tmpday.getYear() + "";
- if(tmpday.getMonth() <10)
- today += "0" + (tmpday.getMonth() + 1);
- else
- today += (tmpday.getMonth() + 1) + "";
- if(tmpday.getDate() < 10)
- today += "0" + tmpday.getDate();
- else
- today += tmpday.getDate();
- //ipt_dsch2.value = today;
- ipt_dsch2.value = getCurrentDate();
-
-
- //일주일전 날자를 퇴원일자에 셋팅한다
- var a, makeday= ""; //makeday = 일주일전 날자
- a= new Date();
- var c=a.valueOf()+1000*60*60*24*(-7);
- var tempday=new Date(c);
-
- makeday += tempday.getYear() + "";
- if(tempday.getMonth() <10)
- makeday += "0" + (tempday.getMonth() + 1);
- else
- makeday += (tempday.getMonth() + 1) + "";
- if(tempday.getDate() < 10)
- makeday += "0" + tempday.getDate();
- else
- makeday += tempday.getDate();
- ipt_dsch1.value = makeday;
-
- listInit();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMMR08201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/opinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1184;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:1184px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1187px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">수술 기록 검색</caption>
- </group>
- <button id="button10" class="btn2_letter4" style="left:1114px; top:99px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectValue1 = true;
- var selectValue2 = 1;
- var today = getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, "수술기록지_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_opinfo.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_13:label;col_17:label;col_23:label;");
- }
- ]]>
- </script>
- </button>
- <button id="btn_srchinfo" class="btn1_letter2" style="left:1121px; top:39px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조건 조회 전 유효한 값이 입력되었는지 체크해 준다.
- if(ipt_dsch1.value =="" && ipt_dsch2.value =="" && ipt_opdd1.value =="" && ipt_opdd2.value =="")
- {
- formsubmit();
- }
- else if(ipt_dsch1.value =="" && ipt_dsch2.value =="")
- {
- if(ipt_opdd1.value =="" || ipt_opdd2.value =="")
- {
- messageBox("시작/종료 기간을 정확히","C001");
- }
- else
- formsubmit();
- }
- else if(ipt_opdd1.value =="" && ipt_opdd2.value =="")
- {
- if(ipt_dsch1.value =="" || ipt_dsch2.value =="")
- {
- messageBox("시작/종료 기간을 정확히","C001");
- }
- else
- formsubmit();
- }else if(ipt_dsch1.value !="" && ipt_dsch2.value !="" && ipt_opdd1.value !="" && ipt_opdd2.value !="")
- {
- formsubmit();
- }else
- messageBox("시작/종료 기간을 정확히","C001");
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:19px; width:86px; height:17px; vertical-align:middle; ">퇴원일자 :</caption>
- <line id="line4" style="x1:1115px; y1:22px; x2:1115px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:120px; x2:1183px; y2:120px; "/>
- <datagrid id="grd_opinfo" nodeset="/root/main/opinfo/list" caption="등록번호^환자명^성별^주민등록번호^입원일^진료과^수술일^퇴원일^수술과^Surgeon^1st Ass't^2nd Ass't^3rd Ass't^수술전진단명^수술후진단명^수술명^조직검사여부^Drains^작성의사^Drains^작성의사^Drains^작성의사" colsep="^" colwidth="80, 70, 60, 100, 80, 80, 80, 80, 80, 140, 80, 80, 80, 240, 240, 240, 100, 60, 80" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:125px; width:1183px; height:654px; ">
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexflag"/>
- <col ref="rrgstno" format="999999"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="orddeptcd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="opdeptcd"/>
- <col ref="surgeon"/>
- <col ref="fstasst"/>
- <col ref="sndasst"/>
- <col ref="trdasst"/>
- <col ref="bfopdiagnm"/>
- <col ref="aftopdiagnm"/>
- <col ref="opnm"/>
- <col ref="biopsyyn"/>
- <col ref="drains"/>
- <col ref="wrtedr"/>
- <script type="javascript" ev:event="onscrolldown">
- <![CDATA[
- if(grd_opinfo.vscroll.attribute("max") == grd_opinfo.vscroll.attribute("pos")) {
- model.setValue("/root/send/offset", grd_opinfo.rows-grd_opinfo.fixedRows); // grid의 header row는 제외
- submit("TRMMR08201");
- grd_opinfo.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_dsch1" ref="/root/send/dschfrdd" class="input_s_essential" inputtype="date" style="left:110px; top:20px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 시작일 > 종료일 에러 처리
- if(ipt_opdd2.value !="")
- {
- if(ipt_dsch1.value > ipt_dsch2.value)
- {
- messageBox("종료일 이전 날자만 입력","I006");
- ipt_dsch1.value = "";
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dsch2" ref="/root/send/dschtodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:255px; top:20px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- listInit();
- //퇴원일자 값이 변하면 진료과 와 수술과의 리스트를 갱신한다.
- if(ipt_dsch2.value< ipt_dsch1.value)
- {
- messageBox("시작일 이후 날자만 입력","I006");
- ipt_dsch2.value ="";
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:226px; top:24px; width:15px; height:15px; font-weight:bold; ">~</caption>
- <caption id="caption3" style="left:226px; top:49px; width:15px; height:15px; font-weight:bold; ">~</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:45px; width:86px; height:17px; vertical-align:middle; ">수술일자 :</caption>
- <input id="ipt_opdd1" ref="/root/send/opfrdd" class="input_s_essential" inputtype="date" style="left:110px; top:45px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //시작일 > 종료일 에러 처리
- if(ipt_opdd2.value !="")
- {
- if(ipt_opdd1.value > ipt_opdd2.value)
- {
- messageBox("종료일 이전 날자만 입력","I006");
- ipt_opdd1.value = "";
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_opdd2" ref="/root/send/optodd" class="input_s_essential" inputtype="date" style="left:255px; top:45px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/dschtodd")=="")
- {
- listInit(); // 퇴원일자 값이 없는경우 수술일자에 의거하여 리스트를 갱신한다.
- }
- //종료일 < 시작일 에러 처리
- if(ipt_opdd2.value< ipt_opdd1.value)
- {
- messageBox("시작일 이후 날자만 입력","I006");
- ipt_opdd2.value = "";
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:15px; top:70px; width:86px; height:17px; vertical-align:middle; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" style="left:110px; top:70px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setValue("/root/tmp/srchcond", 1);
- model.setValue("/root/tmp/pid", ipt_pid.currentText);
- srchptnm.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="srchptnm" class="icon_search" style="left:215px; top:70px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자 기록 팝업
- model.setValue("/root/tmp/srchcond", 1);
- model.setValue("/root/tmp/pid", ipt_pid.currentText);
- model.setValue("/root/tmp/autoflag", "Y");
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
- ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- ptnm1.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <output id="ptnm1" ref="/root/send/patnm" class="output_search" style="left:255px; top:70px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:504px; top:21px; width:86px; height:17px; vertical-align:middle; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:582px; top:21px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:504px; top:45px; width:86px; height:17px; vertical-align:middle; ">수술과 :</caption>
- <select1 id="cmb_opdeptcd" ref="/root/send/opdeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:582px; top:45px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="tit_2" style="left:0px; top:105px; width:160px; height:14px; ">수술 기록 검색 목록</caption>
- </xhtml:body>
- </xhtml:html>
|