1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000 |
- <?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>
- <wardcd/>
- <pid/>
- <fromdd/>
- <todd/>
- <rsrvfromdd/>
- <exceptflag>Y</exceptflag>
- <exceptflag2>Y</exceptflag2>
- <deptcd/>
- <roomcd/>
- <roomflag>room</roomflag>
- <zonecd/>
- <instcd/>
- <patnm/>
- <upinfoyn/>
- <ordtype/>
- <orddd/>
- <refflag>room</refflag>
- <settingrnid/>
- <multicheck/>
- <rsrvyn/>
- <rsrvtodd/>
- </cond>
- <examtrnsinfo>
- <examtrnslist/>
- <patserchinfolist>
- <instcd/>
- <pid/>
- <indd/>
- <cretno/>
- <wardcd/>
- <roomcd/>
- <patnm/>
- <sexage/>
- <sex/>
- <brthdd/>
- </patserchinfolist>
- </examtrnsinfo>
- <examtrnsinfo2>
- <examtrnslist/>
- </examtrnsinfo2>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init/>
- <temp>
- <zoneinfo/>
- </temp>
- <tmp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // cap_roomcd.visible = true;
- // cmb_roomcd.visible = true;
- // cap_Zone.visible = false;
- // cmb_Zone.visible = false;
-
- var pCode = "'197','N02'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- addComboItem("cmb_deptcd", "-", "", "above");
- cmb_deptcd.refresh();
-
- var instcd = getUserInfo("dutplceinstcd");
- var plcecd = getUserInfo("dutplcecd");
- 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();
- var df = ((dt.toDate("YYYYMMDD")).getAddDate(-1, "M")).getDateFormat("YYYYMMDD") ;
- var userkind = getUserInfo("jobkindcd");
-
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, dt);
- addComboItem("cmb_wardcd", "-", "", "above");
-
- model.setValue(ipt_fromdd.attribute("ref"), df);
- model.setValue(ipt_todd.attribute("ref"), dt);
-
-
- var deptcd = model.getValue("/root/init/codeinfo/codelist[cdgrupid='197' and cdid ='" + plcecd +"']/cdid");
-
- if(deptcd == null || deptcd == "") {
- } else {
- model.setValue(cmb_deptcd.attribute("ref"), plcecd);
- }
- if(userkind == "1140"){
- button8.disabled = false;
- model.setValue(cmb_wardcd.attribute("ref"),plcecd);
-
- if(model.getValue("/root/main/cond/wardcd") != ""){
- fGetRoomList();
- fGetSettringInfoRef();
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- fPatInfoRef();
- }
- }
- model.refresh();
-
- fSearch() ;
-
- //grd_examtrnsinfo.deleteRow(grd_examtrnsinfo.fixedRows);
- grd_examtrnsinfo2.deleteRow(grd_examtrnsinfo2.fixedRows);
-
- ]]>
- </script>
- <submission id="TRMNR00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/room"/>
- <!--submission id="TRMNR06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/zoneinfo"/ 응급의료센터 구역정보-->
- <submission id="TRMNW10903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patinfo"/>
- <submission id="TRMNW10910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/settinginfo"/>
- <submission id="TRMNW10902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roominfo"/>
- <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="TRMNW15201" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send" replace="instance" resultref="/root/main/examtrnsinfo"/>
- <submission id="TXMNW15000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMNW15100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/examtrnslist" resultref="/root/main/examtrnsinfo"/>
- </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", "/root/main/cond");
-
- submit("TRMNW15201");
-
- model.setValue("/root/main/cond/multicheck", false );
- model.refresh();
- var pid = model.getValue("/root/main/cond/pid");
-
- if(pid != ""){
-
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
-
- if(instcd != ""){
-
- condparam = model.getValue("/root/main/examtrnsinfo/patserchinfolist/ordtype")
- + "▦" + model.getValue("/root/main/cond/pid")
- + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/indd")
- + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/cretno")
- + "▦" + model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd")
- + "▦" + getCurrentDate();
-
- setParameter("condparam", condparam);
-
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
- }
- }
- }
-
- function fGetRoomList(){
- model.setValue("/root/main/cond/roomcd", "");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copynode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNR00602");
-
- model.refresh();
- }
-
- // function fnZoneDisp() {
- //
- // submit("TRMNR06302");
- //
- // model.refresh();
- // }
-
- function fPatInfoRef() {
-
- model.setValue("/root/main/cond/upinfoyn", "N");
- model.setValue("/root/main/cond/ordtype", "I");
- model.setValue("/root/main/cond/orddd", getCurrentDate());
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copynode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRMNW10903");
-
- model.refresh();
- }
-
- function fGetSettringInfoRef() {
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd") );
- submit("TRMNW10910");
-
- cmb_settingrn.refresh();
- }
-
- function fGetPatInfo() {
-
- var settingnurid = model.getValue("/root/main/cond/settingrnid");
-
- if(settingnurid == null || settingnurid == "") {
- cmb_roomcd.disabled = false;
- } else {
- cmb_roomcd.disabled = true;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
-
- submit("TRMNW10902", false);
- if(model.getValue("/root/main/cond/settingrnid") != ""){
- model.setValue("/root/main/cond/roomcd", "-"); //해당 병실 셋팅
- cmb_roomcd.refresh();
- }else{
- model.setValue("/root/main/cond/roomcd", ""); //해당 병실 셋팅
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- model.refresh();
- fSearch() ;
- }
-
-
-
- //해당 병실의 환자 조회
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/orddd", getCurrentDate());
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/reqdata/roomcd", model.getValue("/root/main/cond/roomcd"));
- model.makeValue("/root/send/reqdata/refflag", "room");
- model.makeValue("/root/send/reqdata/ordtype", "I");
-
- model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
-
- submit("TRMNW10903", false);
-
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- model.refresh();
-
- }
- ]]>
- </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; font-family:굴림; ">
- <datagrid id="grd_examtrnsinfo2" nodeset="/root/main/examtrnsinfo2/examtrnslist" class="datagrid2" autoresize="true" caption="^병동^병실^등록번호^환자명^S/A^실시일자^예약일시^검사실^처방명^처방 전달사항^지원부서^간호 전달사항^간호 작성일자^간호
작성자^간호
연락처^검사실 전달사항^검사실 작성일자^검사실
작성자^검사실
연락처^간호확인일시^확인자" colsep="^" colwidth="23, 90, 55, 66, 54, 36, 100, 85, 100, 100, 100, 100, 100, 85, 46, 43, 100, 100, 43, 44, 85, 56, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:390px; width:1194px; height:370px; font-family:굴림; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="font-family:굴림; "/>
- <col ref="wardcd" type="combo" style="font-family:굴림; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="font-family:굴림; "/>
- <col ref="pid" style="font-family:굴림; "/>
- <col ref="patnm" style="font-family:굴림; "/>
- <col ref="sexage" style="font-family:굴림; "/>
- <col ref="execdd" style="font-family:굴림; text-align:center; "/>
- <col ref="rsrvdt" format="yyyy/mm/dd hh:nn" style="font-family:굴림; "/>
- <col ref="examroom" style="font-family:굴림; "/>
- <col ref="prcpnm" style="font-family:굴림; "/>
- <col ref="prcpdelivefact" style="font-family:굴림; "/>
- <col ref="prcpexecdeptcd" type="combo" style="font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="nrmrk" type="input" style="font-family:굴림; "/>
- <col ref="nrdt" style="font-family:굴림; "/>
- <col ref="nrid" style="font-family:굴림; "/>
- <col ref="nrtel" type="input" style="font-family:굴림; "/>
- <col ref="examrmrmk" type="input" style="font-family:굴림; "/>
- <col ref="examrmdt" style="font-family:굴림; "/>
- <col ref="examrmid" style="font-family:굴림; "/>
- <col ref="examrmtel" type="input" style="font-family:굴림; "/>
- <col ref="nrckdt" style="font-family:굴림; "/>
- <col ref="nrckid" style="font-family:굴림; "/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvtm" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_examtrnsinfo" nodeset="/root/main/examtrnsinfo/examtrnslist" class="datagrid2" autoresize="true" caption="^예약
여부^병동^병실^등록번호^환자명^S/A^실시일자^예약일시^검사실^처방명^처방 전달사항^지원부서^간호 전달사항^간호 전달사항^간호
작성일자^간호
작성자^간호
연락처^검사실 전달사항^검사실
작성일자^검사실
작성자^검사실
연락처^간호
확인일시^확인자^최초
작성일자" colsep="^" colwidth="23, 30, 50, 40, 55, 54, 36, 75, 75, 80, 110, 60, 95, 100, 110, 75, 60, 43, 210, 75, 60, 44, 75, 45, 75, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:165px; width:1194px; height:595px; font-family:굴림; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="font-family:굴림; "/>
- <col disabled="true" ref="rsrvyn" style="text-align:center; "/>
- <col disabled="true" ref="wardcd" type="combo" style="font-family:굴림; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="font-family:굴림; "/>
- <col ref="pid" style="font-family:굴림; text-align:center; "/>
- <col ref="patnm" style="font-family:굴림; "/>
- <col ref="sexage" style="font-family:굴림; text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="font-family:굴림; text-align:center; "/>
- <col ref="rsrvdt" type="input" format="yyyy-mm-dd hh:nn" maxlength="14" style="font-family:굴림; text-align:center; "/>
- <col ref="examroom" type="input" maxlength="100" style="font-family:굴림; "/>
- <col ref="prcpnm" type="input" maxlength="300" style="font-family:굴림; "/>
- <col ref="prcpdelivefact" type="input" maxlength="1000" style="font-family:굴림; "/>
- <col ref="prcpexecdeptcd" type="combo" style="font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="nrrmkcd" type="combo" style="font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='N02']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="nrrmk" type="input" maxlength="1000" style="font-family:굴림; "/>
- <col ref="nrdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
- <col ref="nrid" type="inputbutton" style="font-family:굴림; "/>
- <col ref="nrtel" type="input" maxlength="20" style="font-family:굴림; "/>
- <col ref="examrmrmk" type="input" maxlength="1000" style="font-family:굴림; "/>
- <col ref="examrmdt" format="yyyy-mm-dd hh:nn" style="left:1103px; top:32px; width:100px; height:23px; font-family:굴림; text-align:center; "/>
- <col ref="examrmid" type="inputbutton" style="font-family:굴림; "/>
- <col ref="examrmtel" type="input" maxlength="20" style="font-family:굴림; "/>
- <col ref="nrckdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
- <col ref="nrckid" style="font-family:굴림; text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="font-family:굴림; text-align:center; "/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvtm" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- var dt = getCurrentDate() + getCurrentTime();
-
-
- if(grd_examtrnsinfo.col == grd_examtrnsinfo.colRef("nrid")) {
- grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("nrid")) = getUserInfo("usernm");
- grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("nrdt")) = dt;
-
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("seqno")) != ""){
- grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '2';
- }else{
- grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '1';
- }
-
- }else if(grd_examtrnsinfo.col == grd_examtrnsinfo.colRef("examrmid")) {
- grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examrmid")) = getUserInfo("usernm");
- grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examrmdt")) = dt;
-
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("seqno")) != ""){
- grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '2';
- }else{
- grd_examtrnsinfo.rowStatus(grd_examtrnsinfo.row) = '1';
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("rsrvdt") ){
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("rsrvdt")) = true;
- }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("rsrvdt")) = false;
- }
- }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("examroom") ){
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("examroom")) = true;
- }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("examroom")) = false;
- }
- }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("prcpnm") ){
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpnm")) = true;
- }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpnm")) = false;
- }
- }else if ( grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("prcpdelivefact") ){
- if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "Y"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpdelivefact")) = true;
- }else if(grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("rsrvyn"))== "N"){
- grd_examtrnsinfo.colDisabled(grd_examtrnsinfo.colRef("prcpdelivefact")) = false;
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("rsrvyn") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("wardcd") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("roomcd")
- || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("pid") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("patnm") || grd_examtrnsinfo.mouseCol == grd_examtrnsinfo.colRef("sexage") ){
-
- model.setValue("/root/main/cond/pid",grd_examtrnsinfo.valueMatrix(grd_examtrnsinfo.row , grd_examtrnsinfo.colRef("pid")));
- fSearch() ;
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_examtrnsinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:15px; font-family:굴림; ">검사실 전달사항</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:110px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:110px; font-family:굴림; "/>
- <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1000px; top:25px; width:56px; height:22px; font-family:굴림; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" border-eft-style="solid" style="x1:985px; y1:10px; x2:985px; y2:61px; font-family:굴림; border-color:#ffe4bb; "/>
- <caption id="caption29" class="search_name" style="left:15px; top:16px; width:70px; height:17px; font-family:굴림; ">병 동 :</caption>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" navindex="1" appearance="minimal" style="left:90px; top:16px; width:105px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(model.getValue("/root/main/cond/wardcd") == '2280200000'){
- // cap_roomcd.visible = false;
- // cmb_roomcd.visible = false;
- // cap_Zone.visible = true;
- // cmb_Zone.visible = true;
- // fnZoneDisp();
- // }else{
- // cap_roomcd.visible = true;
- // cmb_roomcd.visible = true;
- // cap_Zone.visible = false;
- // cmb_Zone.visible = false;
- // fGetRoomList();
- // }
-
- fGetRoomList();
- fGetSettringInfoRef();
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- fPatInfoRef();
-
- ]]>
- </script>
- </select1>
- <button id="button2" class="btn1_letter2" navindex="8" style="left:1063px; top:25px; width:56px; height:22px; font-family:굴림; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "검사실 전달사항 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_examtrnsinfo.saveExcel(fileName, "sheetname:sheet1;exportfalsecols:1;col_2:label;col_3:label;col_13:label;");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:330px; top:50px; width:90px; height:17px; font-family:굴림; ">예약일자 :</caption>
- <input id="ipt_rsrvfromdd" ref="/root/main/cond/rsrvfromdd" class="input_search" navindex="2" inputtype="date" style="left:420px; top:50px; width:95px; height:19px; font-family:굴림; "/>
- <button id="button1" class="btn3_letter4" style="left:901px; top:80px; width:80px; height:22px; font-family:굴림; ">
- <caption>통합결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- if(pid == "") {
- messageBox("환자를 선택해주십시오.", "I");
- return;
-
- }
-
- if(instcd == "") {
- messageBox("해당 환자의 정보가 없습니다.", "I");
- return;
- }
-
- open("SMMMI00100");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter4" style="left:988px; top:80px; width:80px; height:22px; font-family:굴림; ">
- <caption>통합기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- if(pid == "") {
- messageBox("환자를 선택해주십시오.", "I");
- return;
-
- }
-
- if(instcd == "") {
- messageBox("해당 환자의 정보가 없습니다.", "I");
- return;
- }
-
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:1075px; top:80px; width:104px; height:22px; font-family:굴림; ">
- <caption>Consult관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- if(pid == "") {
- messageBox("환자를 선택해주십시오.", "I");
- return;
-
- }
-
- if(instcd == "") {
- messageBox("해당 환자의 정보가 없습니다.", "I");
- return;
- }
-
- open("SMMMR05000");
- ]]>
- </script>
- </button>
- <caption id="cap_roomcd" class="search_name" style="left:220px; top:16px; width:72px; height:17px; font-family:굴림; ">병 실 :</caption>
- <!--caption id="cap_Zone" class="search_name" style="left:200px; top:16px; width:92px; height:17px; font-family:굴림; ">구 역 :</caption>
- <select1 id="cmb_Zone" ref="/root/main/cond/zonecd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:290px; top:16px; width:95px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/temp/zoneinfo/zonelist">
- <label ref="bednm"/>
- <value ref="bedcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- fPatInfoRef();
- ]]>
- </script>
- </select1-->
- <select1 id="cmb_roomcd" ref="/root/main/cond/roomcd" class="combo_search" navindex="1" appearance="minimal" style="left:295px; top:16px; width:90px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/room/room">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cond/patnm", "");
- model.setValue("/root/main/cond/pid", "");
- fPatInfoRef();
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/main/cond/pid" style="left:765px; top:16px; width:85px; height:19px; font-family:굴림; "/>
- <caption id="caption2" class="search_name" style="left:575px; top:16px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
- <select1 id="cmb_patnm" ref="/root/main/cond/patnm" class="combo_search" appearance="minimal" style="left:665px; top:16px; width:95px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/patinfo/patlist">
- <label ref="patnm"/>
- <value ref="pid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/patnm");
- model.setValue("/root/main/cond/pid", pid);
- ipt_pid.refresh();
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:15px; top:50px; width:90px; height:17px; font-family:굴림; ">작성일자 :</caption>
- <caption id="caption4" style="left:203px; top:50px; width:20px; height:20px; 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:220px; top:50px; width:95px; height:19px; font-family:굴림; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:110px; top:50px; width:95px; height:19px; font-family:굴림; "/>
- <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:483px; top:16px; width:75px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/settinginfo/settingrn">
- <label ref="settingrnnm"/>
- <value ref="settingrnid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetPatInfo();
- ]]>
- </script>
- </select1>
- <caption id="cap_settingrn" class="search_name" style="left:405px; top:16px; width:75px; height:17px; font-family:굴림; ">내환자 :</caption>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_search" navindex="1" appearance="minimal" style="left:735px; top:50px; width:115px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='197' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:645px; top:50px; width:92px; height:17px; font-family:굴림; ">지원부서 :</caption>
- <caption id="caption6" class="search_name" style="left:330px; top:80px; width:90px; height:17px; font-family:굴림; ">예약여부 :</caption>
- <select1 id="rdo_rsrvyn" ref="/root/main/cond/rsrvyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:420px; top:80px; width:265px; height:20px; font-family:굴림; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>예약 검사건</label>
- <value>Y</value>
- </item>
- <item>
- <label>미예약 검사건</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_rsrvtodd" ref="/root/main/cond/rsrvtodd" class="input_search" navindex="2" inputtype="date" style="left:535px; top:50px; width:95px; height:19px; font-family:굴림; "/>
- <caption id="caption8" style="left:515px; top:50px; width:20px; height:20px; font-family:굴림; text-align:center; ">~</caption>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:145px; width:170px; height:13px; font-family:굴림; ">검사실 전달사항 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:160px; x2:1194px; y2:160px; font-family:굴림; "/>
- <button id="btn_savrem" class="btn5_letter2" style="left:1081px; top:140px; width:42px; height:19px; font-family:굴림; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var deptcdcnt= 0;
- var prcpexecdeptcd;
-
- for(var i=grd_examtrnsinfo.fixedRows; i <grd_examtrnsinfo.rows; i++) {
- if(grd_examtrnsinfo.rowStatus(i) == 1 || grd_examtrnsinfo.rowStatus(i) == 2 || grd_examtrnsinfo.rowStatus(i) == 3){
- prcpexecdeptcd = grd_examtrnsinfo.valueMatrix(i, grd_examtrnsinfo.colRef("prcpexecdeptcd"));
-
- if(prcpexecdeptcd == ""){ //지원부서
- deptcdcnt++;
- }
- }
- }
- if(deptcdcnt > 0){
- messageBox("지원부서를 입력하여 주십시오.", "E");
- return;
- }
-
- var data = getGridUpdateData(grd_examtrnsinfo) ;
-
- if(data == "") {
- messageBox("저장 할 내역이", "I004");
- return;
- }
-
- model.makeValue("/root/send/savedata/examtrnslist", data);
- submit("TXMNW15000");
-
- fSearch() ;
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/main/cond/exceptflag" overflow="visible" appearance="full" style="left:15px; top:100px; width:110px; height:13px; font-family:굴림; border-style:none; ">
- <choices>
- <item>
- <label>검사완료건 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button3" class="btn1_letter2" style="left:1125px; top:45px; width:56px; height:22px; font-family:굴림; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 1;
- var chkyn = "";
- var prtNode = "/root/temp/prtinfo";
-
- model.removeNodeset("/root/temp/prtinfo");
- model.makeNode("/root/temp/prtinfo");
- var node = instance1.selectNodes(grd_examtrnsinfo.nodeset + "[chkyn='Y']");
-
- if(node.length == 0){
- messageBox("출력할 내역을 선택해주십시오.", "I");
- return;
- }
-
- if(node.length > 0) {
- for(var i = grd_examtrnsinfo.fixedRows; i < grd_examtrnsinfo.rows; i++) {
- chkyn = grd_examtrnsinfo.valueMatrix(i, grd_examtrnsinfo.colRef("chkyn"));
-
- if(chkyn == "Y") {
- model.makeValue(prtNode + "[" + cnt + "]/wardcd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("wardcd")));
- model.makeValue(prtNode + "[" + cnt + "]/roomcd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("roomcd")));
- model.makeValue(prtNode + "[" + cnt + "]/pid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("pid")));
- model.makeValue(prtNode + "[" + cnt + "]/patnm" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("patnm")));
- model.makeValue(prtNode + "[" + cnt + "]/sexage" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("sexage")));
- model.makeValue(prtNode + "[" + cnt + "]/rsrvdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("rsrvdt")));
- model.makeValue(prtNode + "[" + cnt + "]/examroom" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examroom")));
- model.makeValue(prtNode + "[" + cnt + "]/prcpnm" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpnm")));
- model.makeValue(prtNode + "[" + cnt + "]/prcpdelivefact" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpdelivefact")));
- model.makeValue(prtNode + "[" + cnt + "]/nrrmk" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrrmk")));
- model.makeValue(prtNode + "[" + cnt + "]/nrdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrdt")));
- model.makeValue(prtNode + "[" + cnt + "]/nrid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrid")));
- model.makeValue(prtNode + "[" + cnt + "]/nrtel" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrtel")));
- model.makeValue(prtNode + "[" + cnt + "]/examrmrmk" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmrmk")));
- model.makeValue(prtNode + "[" + cnt + "]/examrmdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmdt")));
- model.makeValue(prtNode + "[" + cnt + "]/examrmid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmid")));
- model.makeValue(prtNode + "[" + cnt + "]/examrmtel" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("examrmtel")));
- model.makeValue(prtNode + "[" + cnt + "]/nrckdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrckdt")));
- model.makeValue(prtNode + "[" + cnt + "]/nrckid" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("nrckid")));
- model.makeValue(prtNode + "[" + cnt + "]/fstrgstdt" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("fstrgstdt")));
- model.makeValue(prtNode + "[" + cnt + "]/indd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("indd")));
- model.makeValue(prtNode + "[" + cnt + "]/cretno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("cretno")));
- model.makeValue(prtNode + "[" + cnt + "]/prcpdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpdd")));
- model.makeValue(prtNode + "[" + cnt + "]/prcpno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpno")));
- model.makeValue(prtNode + "[" + cnt + "]/prcphistno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcphistno")));
- model.makeValue(prtNode + "[" + cnt + "]/sex" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("sex")));
- model.makeValue(prtNode + "[" + cnt + "]/brthdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("brthdd")));
- model.makeValue(prtNode + "[" + cnt + "]/seqno" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("seqno")));
- model.makeValue(prtNode + "[" + cnt + "]/execdd" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("execdd")));
- model.makeValue(prtNode + "[" + cnt + "]/prcpexecdeptcd", grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("prcpexecdeptcd")));
- model.makeValue(prtNode + "[" + cnt + "]/rsrvyn" , grd_examtrnsinfo.labelMatrix(i, grd_examtrnsinfo.colRef("rsrvyn")));
- cnt++;
- }
- }
- exeReportPreview("RPMNW15000", "XMLSTR");
- } else {
-
- }
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1025px; top:140px; width:53px; height:19px; font-family:굴림; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var xPathExamTrnsList = "/root/main/examtrnsinfo/examtrnslist";
-
- if ( model.getValue(xPathExamTrnsList+"[" + grd_examtrnsinfo.row + "]/fstrgstdt") != "") {
- grd_examtrnsinfo.addStatus(grd_examtrnsinfo.row, "delete");
-
- } else {
- grd_examtrnsinfo.deleteItem(grd_examtrnsinfo.row);
- }
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:969px; top:140px; width:53px; height:19px; font-family:굴림; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/main/cond/pid");
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- if(pid == "") {
- messageBox("환자를 선택해주십시오.", "I");
- return;
- }
-
- if(instcd == "") {
- messageBox("해당 환자의 정보가 없습니다.", "I");
- return;
- }
-
-
- if (grd_examtrnsinfo.rows > 1 ){
- grd_examtrnsinfo.insertRow(1, "above");
- }else if (grd_examtrnsinfo.rows == 1 ){
- grd_examtrnsinfo.addRow(true, true);
- }
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'N';
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("instcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/cretno");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/indd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/wardcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/roomcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/pid");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/patnm");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/sexage");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/sex");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = model.getValue("/root/main/examtrnsinfo/patserchinfolist/brthdd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = model.getValue("/root/main/cond/deptcd");
-
-
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter4" disabled="true" style="left:1126px; top:140px; width:64px; height:19px; font-family:굴림; ">
- <caption>간호확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var data = "" ;
-
- var xCertCpapListPath = "/root/main/examtrnsinfo/examtrnslist";
-
- for(var i = 0 ; i < grd_examtrnsinfo.rows;i++) {
-
- if(model.getValue("/root/main/cond/multicheck") == "true"){
-
- data = grd_examtrnsinfo.getupdatedataAll("i")
-
- }else if(model.getValue(xCertCpapListPath + "[" + i + "]/chkyn") == "Y"){
- data = getGridUpdateData(grd_examtrnsinfo);
- }
- }
-
- if(data == "") {
- messageBox("선택된 내역이", "I004");
- return;
- }
-
- model.makeValue("/root/send/savedata/examtrnslist", data);
-
- submit("TXMNW15100");
-
- fSearch() ;
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/main/cond/exceptflag2" overflow="visible" appearance="full" style="left:145px; top:100px; width:140px; height:13px; font-family:굴림; border-style:none; ">
- <choices>
- <item>
- <label>최종확인완료건 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button9" class="btn2_letter6" style="left:879px; top:140px; width:86px; height:19px; font-family:굴림; ">
- <caption>처방 당겨오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var instcd = model.getValue("/root/main/examtrnsinfo/patserchinfolist/instcd");
- if(pid == "") {
- messageBox("환자를 선택해주십시오.", "I");
- return;
-
- }
-
- if(instcd == "") {
- messageBox("해당 환자의 정보가 없습니다.", "I");
- return;
- }
-
- setParameter("SMMNW15100_PARAM1", pid);
- modal("SPMNW15200","1", "400", "400");
-
- model.copyNode("/root/main/examtrnsinfo2","/root/tmp");
-
- var cnt = getNodesetCount("/root/main/examtrnsinfo2/examtrnslist");
-
- var row1 = 1;
-
- if (cnt ==1){
-
- grd_examtrnsinfo.addRow();
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'Y';
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/wardcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/roomcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/pid");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/patnm");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/sexage");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvdt")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/rsrvdt");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examroom")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/examroom");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpnm")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpnm");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdelivefact")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpdelivefact");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpexecdeptcd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("execdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/execdd");
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/sex");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/brthdd");
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/indd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/cretno");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdd")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpdd");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcpno");
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcphistno")) = model.getValue("/root/main/examtrnsinfo2/examtrnslist/prcphistno");
-
-
- }else if(cnt > 1){
-
- for(var i = 1; i <= cnt ; i++ ){
- grd_examtrnsinfo.addRow();
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvyn")) = 'Y';
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("wardcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("wardcd"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("roomcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("roomcd"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("pid")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("pid"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("patnm")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("patnm"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sexage")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("sexage"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("rsrvdt")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("rsrvdt"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("examroom")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("examroom"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpnm")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpnm"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdelivefact")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpdelivefact"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpexecdeptcd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpexecdeptcd"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("execdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("execdd"));
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("sex")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("sex"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("brthdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("brthdd"));
-
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("indd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("indd"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("cretno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("cretno"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpdd")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpdd"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcpno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcpno"));
- grd_examtrnsinfo.valuematrix(grd_examtrnsinfo.row, grd_examtrnsinfo.colRef("prcphistno")) = grd_examtrnsinfo2.valuematrix(i, grd_examtrnsinfo2.colRef("prcphistno"));
-
- }
- }
-
- model.removeNodeset("/root/tmp");
- model.makeNode("/root/tmp");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:22px; top:165px; width:20px; height:30px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var multicheck = model.getValue("/root/main/cond/multicheck");
- var xCertCpapListPath = "/root/main/examtrnsinfo/examtrnslist";
- var nodeCnt = getNodesetCount(xCertCpapListPath);
-
-
- for(var i = 1; i <= nodeCnt; i++){
- if(multicheck == "true"){
- model.setValue(xCertCpapListPath + "[" + i + "]/chkyn", "Y");
- }else{
- model.setValue(xCertCpapListPath + "[" + i + "]/chkyn", "N");
- }
- }
-
- ]]>
- </script>
- </bool>
- </group>
- </xhtml:body>
- </xhtml:html>
|