123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <fromdd/>
- <todd/>
- <pid/>
- <orddd/>
- <cretno/>
- <wardcd/>
- <pname/>
- </cond>
- <drainchkinfo/>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- </send>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dt = getCurrentDate();
-
- var sPamInfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
- var sPID = model.getValue("/root/main/paminfo/pamlist/pid");
- var sORDDD= model.getValue("/root/main/paminfo/pamlist/indd");
- var sCRETNO= model.getValue("/root/main/paminfo/pamlist/cretno");
- var sWARDCD= model.getValue("/root/main/paminfo/pamlist/wardcd");
- var sPNAME= model.getValue("/root/main/paminfo/pamlist/hngnm2");
- var sDschnotidt= model.getValue("/root/main/paminfo/pamlist/dschnotidt");
-
- if(sDschnotidt != null && sDschnotidt != '-'){
- var sDschnotidd = sDschnotidt.substring(0,8);
- model.setValue("root/main/cond/todd", sDschnotidd);
- }else{
- model.setValue("root/main/cond/todd", dt);
- }
- model.setValue("root/main/cond/fromdd", sORDDD);
- model.setValue("/root/main/cond/pid",sPID);
- model.setValue("/root/main/cond/orddd",sORDDD);
- model.setValue("/root/main/cond/cretno",sCRETNO);
- model.setValue("/root/main/cond/wardcd",sWARDCD);
- model.setValue("/root/main/cond/pname",sPNAME);
-
- ipt_pid.refresh();
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- if(model.getValue("/root/main/cond/pid") == null || model.getValue("/root/main/cond/pid") == ""){
- messageBox("환자를 선택해주십시오.", "I");
- window.close();
- }else{
- fSearch();
- }
- ]]>
- </script>
- <submission id="TRMNR12000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/drainchkinfo"/>
- <submission id="TRMNR12001" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/temp/tmInfo"/>
- </model>
- <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.removeNodeset("/root/tmp");
- var cnt = [];
- var k = 1;
-
- if(model.getValue("/root/main/cond/fromdd") == "" || model.getValue("/root/main/cond/fromdd") == null || model.getValue("/root/main/cond/todd") == "" || model.getValue("/root/main/cond/todd") == null){
- messageBox("업무일자를 입력하십시오.", "I");
- return;
- }else{
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- if(submit("TRMNR12001")==true){
- submit("TRMNR12000");
- caption5.visible = true;
- caption6.visible = true;
- output1.visible = true;
- output2.visible = true;
-
- if(getNodesetCount("/root/main/drainchkinfo/drainchklist") > 0){
- for (i=1 ; i <= getNodesetCount("/root/main/drainchkinfo/drainchklist"); i++) {
- if (model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagendnm") == '제거' ) {
- var dd = model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/dd"); // 제거일자
- var seqnogubun= model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/seqnogubun"); //제거한 삽입부위
- for( j=i; j <= getNodesetCount("/root/main/drainchkinfo/drainchklist"); j++) {
- if(dd < model.getValue("/root/main/drainchkinfo/drainchklist[" + j + "]/dd")){ // 제거일자 이후
- if(seqnogubun == model.getValue("/root/main/drainchkinfo/drainchklist[" + j + "]/seqnogubun") ){ // 같은 삽입부위
- cnt[j] = j;
- }
- }
- }
- }
-
- // 삽관 제거 이후 자료는 제외(삽관부위별)한 나머지 자료만 추출
- if(cnt[i] == null){
-
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/dd", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/dd"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/itemnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/itemnm"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/loc", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/loc"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/opflagnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagnm"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/quantity", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/quantity"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/numcnt", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/numcnt"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/rmk", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/rmk"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/charcnt", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/charcnt"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/seqnogubun", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/seqnogubun"));
- model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/opflagendnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagendnm"));
-
- k++;
- }
- }
- model.refresh();
- }
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1050" pageheight="750" style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group" style="left:0px; top:0px; width:1030px; height:720px; font-family:굴림; vertical-align:middle; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; font-family:굴림; vertical-align:middle; ">배액감시</caption>
- <group id="grp_sea" style="left:0px; top:25px; width:1030px; height:40px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1030px; height:40px; font-family:굴림; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" disabled="true" style="left:465px; top:10px; width:65px; height:19px; font-family:굴림; "/>
- <caption id="caption2" class="search_name" style="left:330px; top:10px; width:132px; height:17px; font-family:굴림; ">등록번호/환자명 :</caption>
- <caption id="caption3" class="search_name" style="left:10px; top:10px; width:86px; height:17px; font-family:굴림; ">업무일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:10px; width:95px; height:19px; font-family:굴림; "/>
- <caption id="caption4" style="left:193px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:210px; top:10px; width:95px; height:19px; font-family:굴림; "/>
- <button id="button2" class="btn1_letter2" style="left:960px; top:10px; width:56px; height:22px; font-family:굴림; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/send/prtinfo");
- model.makeNode("/root/send/prtinfo");
- model.copyNode("/root/send/prtinfo","/root/main/drainchkinfo");
-
- exeReportPreview("RPMNR09000", "XMLSTR");
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/cond/pname" class="input_search" disabled="true" style="left:535px; top:10px; width:100px; height:19px; font-family:굴림; "/>
- </group>
- <button id="button1" class="btn1_letter2" navindex="7" style="left:900px; top:35px; width:56px; height:22px; font-family:굴림; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:135px; height:14px; font-family:굴림; ">배액감시 리스트</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:90px; x2:1030px; y2:90px; font-family:굴림; "/>
- <datagrid id="grd_drainchklist" nodeset="/root/tmp/drainchkinfo/drainchklist" caption="업무일자^배액종류^삽입부위^삽입/교환/제거^배액량^일자별기록건수(배액량)^기타^일자별기록건수(기타)" colsep="^" colwidth="85, 139, 120, 90, 80, 140, 150, 130" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:1030px; height:625px; font-family:굴림; ">
- <col ref="dd" format="yyyy-mm-dd" style="font-family:굴림; text-align:center; "/>
- <col ref="itemnm" style="font-family:굴림; "/>
- <col ref="loc" style="font-family:굴림; "/>
- <col ref="opflagnm" style="font-family:굴림; "/>
- <col ref="quantity" style="font-family:굴림; text-align:right; "/>
- <col ref="numcnt" style="font-family:굴림; text-align:right; "/>
- <col ref="rmk" style="font-family:굴림; "/>
- <col ref="charcnt" style="font-family:굴림; text-align:right; "/>
- </datagrid>
- <line id="line2" class="line_4" style="x1:890px; y1:35px; x2:890px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <caption id="caption5" visibility="hidden" style="left:0px; top:725px; width:325px; height:20px; font-family:굴림; color:#0000ff; ">* 삽관/교환/제거 : 당일 00:00~당일 23:59 * 용량 : 당일</caption>
- <output id="output1" ref="/root/temp/temp/tmInfo/dfromtm" visibility="hidden" format="hh:nn" style="left:325px; top:725px; width:30px; height:19px; color:#0000ff; "/>
- <output id="output2" ref="/root/temp/temp/tmInfo/ntotm" visibility="hidden" format="hh:nn" style="left:390px; top:725px; width:30px; height:19px; color:#0000ff; "/>
- <caption id="caption6" visibility="hidden" style="left:355px; top:725px; width:35px; height:20px; color:#0000ff; ">~익일</caption>
- </xhtml:body>
- </xhtml:html>
|