123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?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>
- <grd_etclist>
- <etclist>
- <visitdd/>
- <recnursid/>
- <reccontent/>
- <recdd/>
- <pid/>
- <inptdt/>
- <recnursnm/>
- <recseq/>
- <instcd/>
- <rectm/>
- </etclist>
- </grd_etclist>
- <cond>
- <pid/>
- <hngnm/>
- <sex/>
- <visitdd/>
- <recdd1/>
- <recinfo>01</recinfo>
- <recdd2/>
- <inptdt/>
- <instcd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <visitddlist>
- <visitddlist>
- <visitddid/>
- <visitddnm/>
- </visitddlist>
- </visitddlist>
- </init>
- <hidden>
- <recetcinfo>
- <patinfo/>
- </recetcinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removeNodeset("/root/main/grd_etclist");
-
- model.setValue("/root/main/cond/pid", model.getValue("/root/hidden/recetcinfo/patinfo/pid"));
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/hidden/recetcinfo/patinfo/hngnm"));
- model.setValue("/root/main/cond/sex", model.getValue("/root/hidden/recetcinfo/patinfo/sex"));
- model.setValue("/root/main/cond/visitdd", model.getValue("/root/hidden/recetcinfo/patinfo/visitdd"));
- model.setValue("/root/main/cond/inptdt", model.getValue("/root/hidden/recetcinfo/patinfo/inptdt"));
- model.setValue("/root/main/cond/instcd", model.getValue("/root/hidden/recetcinfo/patinfo/instcd"));
- //로컬
- // model.setValue("/root/main/cond/pid", "3661639");
- // model.setValue("/root/main/cond/hngnm", "");
- // model.setValue("/root/main/cond/sex", "");
- // model.setValue("/root/main/cond/visitdd", "20080117");
- // model.setValue("/root/main/cond/inptdt", "20040508000000");
- // model.setValue("/root/main/cond/instcd", "012");
-
- //방문일 조회
- submit("TRMNF03003");
- cmb_recdd2.visible = false;
- ipt_recdd1.visible = true;
- model.setValue("/root/main/cond/recdd1", getCurrentDate());
-
- //기록 기타사항 조회
- submit("TRMNF00405");
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRMNF03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond/pid" resultref="/root/init/visitddlist"/>
- <submission id="TRMNF00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/grd_etclist"/>
- <submission id="TXMNF00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd_etclist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="400" guideline="1,700;2,400" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; ">기타사항 입력 및 조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:680px; y2:25px; "/>
- <button id="button11" class="btn2_letter3" style="left:514px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_etclist.selectedRows;
- if(rows < 1){
- return;
- }
- for (i= rows-1; i >= 0; i--){
- var status = grd_etclist.rowStatus(grd_etclist.selectedrow(i));
- if(status == 1 || status == 3){
- grd_etclist.deleteRow(grd_etclist.selectedrow(i));
- }else{
- grd_etclist.rowStatus(grd_etclist.selectedrow(i))= 4;
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" style="left:459px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_etclist.additem();
-
- var row = grd_etclist.row;
- if(model.getValue("/root/main/cond/recinfo") == '01'){
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd1"));
- }else{
- if(model.getValue("/root/init/visitddlist/visitddlist/visitddid") == ""){
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd1"));
- }else{
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recdd", model.getValue("/root/main/cond/recdd2"));
- }
- }
-
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/visitdd", model.getValue("/root/main/cond/visitdd"));
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recnursid", getUserInfo("userid"));
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/recnursnm", getUserInfo("usernm"));
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/pid", model.getValue("/root/main/cond/pid"));
- model.setValue("/root/main/grd_etclist/etclist[" + row + "]/inptdt", model.getValue("/root/main/cond/inptdt"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_savenewpat" class="btn5_letter2" style="left:586px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_etclist.getUpdateData());
-
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/send/reqdata/visitdd", model.getValue("/root/main/cond/visitdd"));
- model.makeValue("/root/send/reqdata/inptdt", model.getValue("/root/main/cond/inptdt"));
- model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
-
- submit("TXMNF00407");
- ]]>
- </script>
- </button>
- <button id="btn_closenewpat" class="btn2_letter2" style="left:631px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption31" class="cell_1" style="left:0px; top:30px; width:84px; height:19px; font-family:돋움; text-align:center; ">환자정보</caption>
- <input id="input1" ref="/root/main/cond/pid" disabled="true" style="left:85px; top:30px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/main/cond/sex" disabled="true" style="left:289px; top:30px; width:76px; height:19px; "/>
- <input id="input3" ref="/root/main/cond/hngnm" disabled="true" style="left:187px; top:30px; width:100px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:370px; top:30px; width:105px; height:19px; font-family:돋움; text-align:center; ">기록일자 정보</caption>
- <select1 id="rdo_patflag" ref="/root/main/cond/recinfo" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:480px; top:30px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>자동</label>
- <value>01</value>
- </item>
- <item>
- <label>지정</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert(model.getValue("/root/main/cond/recinfo"));
- if(model.getValue("/root/main/cond/recinfo") == '01'){
-
- model.setValue("/root/main/cond/recdd1", getCurrentDate());
- cmb_recdd2.visible = false;
- ipt_recdd1.visible = true;
- }else{
- if(model.getValue("/root/init/visitddlist/visitddlist/visitddid") == ""){
- cmb_recdd2.visible = false;
- ipt_recdd1.visible = true;
- model.setValue("/root/main/cond/recdd1", getCurrentDate());
- }else{
- ipt_recdd1.visible = false;
- cmb_recdd2.visible = true;
- cmb_recdd2.select(0);
- // model.setValue("/root/main/cond/recdd2", model.getValue("/root/init/visitddlist/visitddlist/visitddid"));
- }
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_recdd2" ref="/root/main/cond/recdd2" class="combo_search" appearance="minimal" format="YYYY-MM-DD" style="left:576px; top:29px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/visitddlist/visitddlist">
- <label ref="visitddnm"/>
- <value ref="visitddid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_recdd1" ref="/root/main/cond/recdd1" class="input_default" inputtype="date" style="left:576px; top:30px; width:101px; height:19px; "/>
- <datagrid id="grd_etclist" nodeset="/root/main/grd_etclist/etclist" class="datagrid2" caption="기록일자^기록내용^기록자" colsep="^" colwidth="120, 400, 120" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:52px; width:675px; height:348px; text-align:center; vertical-align:middle; ">
- <col ref="recdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reccontent" type="input" style="text-align:center; "/>
- <col ref="recnursnm" style="left:680px; top:32px; width:100px; height:23px; text-align:center; "/>
- <col ref="recnursid" visibility="hidden" style="left:100px; top:32px; width:300px; height:23px; text-align:left; "/>
- <col ref="visitdd" visibility="hidden" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="inptdt" visibility="hidden" style="text-align:left; "/>
- <col ref="recseq" visibility="hidden" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="rectm" visibility="hidden" style="text-align:left; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|