123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736 |
- <?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>
- <masterinfo>
- <masterlist>
- </masterlist>
- </masterinfo>
- <usedeptinfo>
- <usedeptlist/>
- </usedeptinfo>
- <detlinfo>
- <detllist/>
- <saveflag/>
- </detlinfo>
- <ordschelist>
- <ordschelistinfo>
- <pid/>
- <roomcd/>
- <cretno/>
- <orddeptcd/>
- <ordtm/>
- <hngnm/>
- <sa/>
- <rrgstno/>
- <fsexamnm/>
- <orddrnm/>
- </ordschelistinfo>
- </ordschelist>
- <waitpatinfo>
- <waitpatlist/>
- </waitpatinfo>
- </main>
- <send>
- <pid/>
- <hngnm/>
- <cretno/>
- <orddd/>
- <orddeptcd/>
- <orddrid>-</orddrid>
- <userid>-</userid>
- </send>
- <send2>
- <ordflag>-</ordflag>
- <orddrid>-</orddrid>
- <orddeptcd/>
- <orddd/>
- </send2>
- <init/>
- <hidden>
- <msgrgst>
- <msg/>
- </msgrgst>
- <waitroommsg>
- <msg/>
- </waitroommsg>
- <orddrid>-</orddrid>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRMNV21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/masterinfo"/>
- <submission id="TRMNV21105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/usedeptinfo"/>
- <submission id="TRMNV21202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlinfo"/>
- <submission id="TRMNV21303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordschelist"/>
- <submission id="TRMNV21302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlinfo"/>
- <submission id="TXMNV21001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlinfo"/>
- <submission id="TRMNV21304" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send2" resultref="/root/init/subdeptcd"/>
- <submission id="TRMNV21305" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send2" resultref="/root/main/waitpatinfo"/>
- </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">
- <![CDATA[
- function fDeptMstList() //진료과 선택시 대기자 리스트 가져오기
- {
- model.resetInstanceNode("/root/main/masterinfo/masterlist");
- model.resetInstanceNode("/root/main/usedeptinfo/usedeptlist");
- model.resetInstanceNode("/root/main/detlinfo/detllist");
- submit("TRMNV21201"); // 가야할 곳 마스터 조회
- submit("TRMNV21105"); // 진료/검사실 기준자료
- }
-
- function fSetMenuGroupSeq(toSeq, type) // 순서 변경 함수
- {
- var isSeq = grd_detllist.row; //클릭한 로우
- var fixRow = grd_detllist.fixedRows;
-
- if(isSeq > 0){ // 클릭한 로우가 존재할 때
- var srcSeq = (isSeq > toSeq) ? isSeq+1 : isSeq; //클릭한 행과 이동할 행을 비교하여 클릭한 행이 클 때는
-
- grd_detllist.insertRow(toSeq, type, false); // 이동할 위치에 행을 하나 삽입한다.
- model.copyNode("/root/main/detlinfo/detllist["+grd_detllist.row+"]", "/root/main/detlinfo/detllist["+srcSeq+"]");
- // alert("srcSeq위치에행을삭제한다"+srcSeq);
- grd_detllist.deleteRow(srcSeq, false);
-
- if(isSeq > toSeq){
-
- startRow = toSeq;
- endRow = isSeq;
- grd_detllist.row = startRow; //위로 올릴때 포커스는 시작점
- //alert("start"+startRow);
- if(isSeq==startRow) // 순서 위로 변경시 변경한 순서와 처음 순서가 같을 때
- {
- model.makeValue("/root/chkvalue/chk","Y");
- //alert("위"+model.getValue("/root/chkvalue/chk"));
- }
-
- }else{
- startRow = isSeq;
- endRow = toSeq;
- grd_detllist.row = endRow; //밑으로 내릴 때 포커스는 끝나는점
- //alert("end"+endRow);
- if(isSeq==endRow) // 순서 밑으로 변경시 변경한 순서와 처음 순서가 같을 때
- {
- model.makeValue("/root/chkvalue/chk","Y");
- //alert("아래"+model.getValue("/root/chkvalue/chk"));
- }
-
- }
-
- model.refresh();
- }else{
- messageBox("변경할 메뉴그룹을","C002");
- }
- }
-
- function fSchPatinfo() // 환자정보 조회
- {
- model.resetInstanceNode("/root/main/ordschelist");
-
- if(submit("TRMNV21303")){ // 대기자 리스트 조회
-
- var patcnt = getNodesetCount("/root/main/ordschelist/ordschelistinfo");
- if(patcnt==1) {
- model.setValue("/root/send/hngnm",model.getValue("/root/main/ordschelist/ordschelistinfo/hngnm"));
- model.setValue("/root/send/cretno",model.getValue("/root/main/ordschelist/ordschelistinfo/cretno"));
- model.setValue("/root/send/orddeptcd",model.getValue("/root/main/ordschelist/ordschelistinfo/orddeptcd"));
- model.setValue("/root/send/orddrid",'-');
-
- fDeptMstList();
- fOrdScheList();
- model.setValue("/root/send/orddrid",model.getValue("/root/main/ordschelist/ordschelistinfo/orddrid"));
- }else{
- model.setValue("/root/send/hngnm","");
- model.setValue("/root/send/cretno","");
- model.setValue("/root/send/orddeptcd","");
- model.resetInstanceNode("/root/main/detlinfo/detllist");
- messageBox("대기 환자만 적용 가능합니다","I");
- }
-
- }
- model.refresh();
- }
-
- function fOrdScheList() // 가야할 곳 리스트 조회
- {
- if (model.getValue("/root/send/pid")!="" && model.getValue("/root/send/orddeptcd")!="" ){
- model.resetInstanceNode("/root/main/detlinfo/detllist");
-
- submit("TRMNV21302"); // 가야할 곳 리스트 조회
- if(model.getValue("/root/main/detlinfo/saveflag/chkdone")!='-'){
- messageBox("완료된 건이 존재하는 환자입니다.", "I");
- }
-
- model.refresh();
- }else{
- messageBox("환자를 ","C002");
- }
- }
- function fOrdPatWaitSeqChng(){
- var ordtm = model.getValue("/root/main/ordschelist/ordschelistinfo/ordtm");
- var CurrentTime= getCurrentTime();
- CurrentTime = CurrentTime.substr(0,4) ;
- /*var curtm = */
- if (model.getValue("/root/send/pid")!="" && model.getValue("/root/send/orddeptcd")!="" ){
- for (i =1; i<grd_detllist.rows; i++ ) {
- var dispord = model.getValue("/root/main/detlinfo/detllist[" + i + "]/dispord");
- var chk = model.getValue("/root/main/detlinfo/detllist[" + i + "]/status");
- if (isNull(dispord)) {
- messageBox("Plz, Insert the Display Order", "I");
- return;
- }
- // var status = model.getValue("/root/main/detlinfo/detllist[" + i + "]/status");
-
- if(chk != '완료' && grd_detllist.rowStatus(i) !=4 ){
- grd_detllist.rowStatus(i) = 1;
- }
- if(model.getValue("/root/main/detlinfo/detllist[" + i + "]/ordtm")==""){
- model.setValue("/root/main/detlinfo/detllist[" + i + "]/ordtm",ordtm);
- }
- }
- grd_detllist.refresh();
-
- if(CurrentTime <= '1230'){
- var dayflag = "A";
- }else if(CurrentTime >= '1230'){
- var dayflag = "P";
- }
-
- if(ordtm <= '1230'){
- var ordflag = "A";
- }else if(ordtm >= '1230'){
- var ordflag = "P";
- }
-
- if(dayflag != ordflag){
- messageBox("환자의 예약 시간이 현재 적용하려는 진료실 구분과 다릅니다.", "I");
- model.resetInstanceNode("/root/main/detlinfo/detllist");
- return;
- }
-
- model.makeValue("/root/send/savedata", grd_detllist.getUpdateData()); // 분류코드의 업데이트 된 내용을 savedata에 넣는다
-
- submit("TXMNV21001");
- var existroomyn = model.getValue("/root/main/detlinfo/detllist[1]/existroomyn");
- if(existroomyn=="N"){
- var ordroomnm = model.getValue("/root/main/detlinfo/detllist[1]/ordroomnm");
- messageBox("["+ordroomnm+"] 요일 마스터를 확인하세요", "I");
- model.resetInstanceNode("/root/main/detlinfo/detllist");
- }
- if(model.getValue("/root/main/detlinfo/detllist[1]/status")=="C"){
- messageBox("완료된 건이 존재하여 수정할 수 없는 환자입니다.", "I");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var spid = model.getValue("/root/hidden/target/pid");
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/orddd",CurrentDate);
- model.setValue("/root/send/orddrid","-");
- model.setValue("/root/send/userid","-");
- var dutplcecd=getUserInfo("dutplcecd");
- // dutplcecd='2120000000';
- model.setValue("/root/send2/orddd",CurrentDate);
- model.setValue("/root/send2/orddeptcd",dutplcecd);
- model.setValue("/root/send2/orddrid","-");
-
- // 진료과 선택시 담당의, 세부진료과, 담당직원 가져오는 코드 셋팅
- if(submit("TRMNV21304")==true){
- model.makeValue("/root/init/temp/subdeptcd/orddeptdrcdlist/orddeptdrid","-");
- model.makeValue("/root/init/temp/subdeptcd/orddeptdrcdlist/orddeptdrnm","");
- copyNodesetType("/root/init/subdeptcd/orddeptdrcdlist", "/root/init/temp/subdeptcd/orddeptdrcdlist", "before");
- }
- button3.dispatch("DOMActivate");
-
- if (spid != null && spid != "") {
- model.setValue("/root/send/pid",model.getValue("/root/hidden/target/pid"));
- model.setValue("/root/send/hngnm",model.getValue("/root/hidden/target/hngnm"));
- model.setValue("/root/send/cretno",model.getValue("/root/hidden/target/cretno"));
- model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/target/orddeptcd"));
-
- fDeptMstList();
- fOrdScheList();
- } else {
- // 상단정보체크
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- if(paminfo.length > 0) {//원무 정보(기본 정보)가 있는 경우
- model.removenode("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
- setCSVToNode("/root/main/paminfo", paminfo);
- var pid = model.getValue("/root/main/paminfo/list/pid");
- var hngnm = model.getValue("/root/main/paminfo/list/hngnm");
- var cretno = model.getValue("/root/main/paminfo/list/cretno");
- var orddeptcd = model.getValue("/root/main/paminfo/list/orddeptcd");
-
- model.setValue("/root/send/pid",pid);
- model.setValue("/root/send/hngnm",hngnm);
- model.setValue("/root/send/cretno",cretno);
- model.setValue("/root/send/orddeptcd",orddeptcd);
-
- if(!isNull(pid)){
- fSchPatinfo();
- }
- }
- // else {
- // var pid ="19510760";
- // var orddeptcd ="2120000000";
- //
- // model.setValue("/root/send/pid",pid);
- // model.setValue("/root/send/hngnm","");
- // model.setValue("/root/send/cretno","1");
- // model.setValue("/root/send/orddeptcd",orddeptcd);
- //
- // fDeptMstList();
- // fOrdScheList();
- // }
- }
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="750" pageheight="890">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:604px; width:733px; height:35px; "/>
- <group id="group2" style="left:0px; top:0px; width:735px; height:585px; ">
- <datagrid id="grd_detllist" nodeset="/root/main/detlinfo/detllist" caption="순서^가야할 곳(리스트)^구분^진료실^ordroomcd^orddeptcd^seqno^pid^orddd^cretno^mainseqno^patnm^orddrid^status^ordtm" colsep="^" colwidth="30,150,50,90,0,0,0,0,0,0,0,0,0,0,0" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:1px; top:106px; width:364px; height:473px; ">
- <col ref="dispord" style="left:20px; top:23px; width:98px; height:18px; text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- <col disabled="true" ref="roomtype" type="combo">
- <choices>
- <item>
- <label>오전</label>
- <value>A</value>
- </item>
- <item>
- <label>오후</label>
- <value>P</value>
- </item>
- <item>
- <label>전체</label>
- <value>D</value>
- </item>
- <item>
- <label>진료</label>
- <value>O</value>
- </item>
- <item>
- <label>검사실</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="ordroomnm"/>
- <col ref="ordroomcd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="subseqno" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="mainseqno" visibility="hidden"/>
- <col ref="patnm" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <col ref="ordtm" visibility="hidden"/>
- </datagrid>
- <caption id="caption20" class="tit_2" style="left:374px; top:89px; width:118px; height:13px; ">가야할 곳 제목</caption>
- <caption id="caption3" class="tit_2" style="left:373px; top:372px; width:211px; height:13px; ">진료/검사실 기준자료(추가)</caption>
- <button id="button9" class="icon_top_direction" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:216px; top:84px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_up.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_detllist.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
-
- if (grd_detllist.row <= 1 ) {
- messageBox("최상위입니다.","I");
- } else {
- var chk = grd_detllist.valueMatrix(grd_detllist.row,grd_detllist.colRef("status"));
- var nextchk = grd_detllist.valueMatrix(grd_detllist.row-1,grd_detllist.colRef("status"));
- if( chk != '완료' &&nextchk !='완료'){
- fSetMenuGroupSeq(grd_detllist.row-1, "above");
- }else{
- messageBox("이미 완료된 건입니다.","I");
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[위로]]>
- </hint>
- </button>
- <line id="line2" class="line_1" style="x1:371px; y1:105px; x2:733px; y2:105px; "/>
- <datagrid id="grd_masterlist" nodeset="/root/main/masterinfo/masterlist" caption="번호^담당의^가야할 곳 (제목)" colsep="^" colwidth="0, 90, 230" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:371px; top:108px; width:362px; height:259px; ">
- <col ref="mainseqno" visibility="hidden" style="left:20px; top:23px; width:98px; height:18px; text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="titl" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var pid = model.getValue("/root/send/pid");
- var orddd = model.getValue("/root/send/orddd");
- var cretno= model.getValue("/root/send/cretno");
- var patnm= model.getValue("/root/send/hngnm");
- var orddrid= model.getValue("/root/send/orddrid");
- var ordtm = model.getValue("/root/main/ordschelist/ordschelistinfo/ordtm");
- var chkdone = getNodesetCount("/root/main/detlinfo/saveflag/chkdone");
- var saveflag = '-';
- if(chkdone>0){
- var saveflag = model.getValue("/root/main/detlinfo/saveflag/chkdone");
- }
-
- if (isDataCell() == true && model.getValue("/root/send/pid")!="" && model.getValue("/root/send/orddeptcd")!="" && (saveflag == "-"||saveflag =="")){
- model.makeNode("/root/send/reqdata/mainseqno");
- model.setValue("/root/send/reqdata/mainseqno", model.getValue("/root/main/masterinfo/masterlist[" + grd_masterlist.row + "]/mainseqno"));
- model.resetInstanceNode("/root/main/detlinfo/detllist");
- submit("TRMNV21202"); // 가야할곳 마스터 클릭시 상세 리스트 조회
-
- for (i =1; i<grd_detllist.rows; i++ ) {
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/pid",pid);
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/orddd",orddd);
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/cretno",cretno);
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/patnm",patnm);
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/orddrid",orddrid);
- model.makeValue("/root/main/detlinfo/detllist["+i+"]/ordtm",ordtm);
-
- }
- model.refresh();
- }else{
- if(saveflag != "-"){
- return;
- }else{
- messageBox("환자를 선택","I008");
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_to_down" class="icon_bottom_direction" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:246px; top:84px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_down.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_detllist.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
- if( grd_detllist.rows-grd_detllist.fixedRows > grd_detllist.row )
- {
- var chk = grd_detllist.valueMatrix(grd_detllist.row,grd_detllist.colRef("status"));
- var nextchk = grd_detllist.valueMatrix(grd_detllist.row+1,grd_detllist.colRef("status"));
- if( chk != '완료' && nextchk !='완료'){
- fSetMenuGroupSeq(grd_detllist.row+1, "below");
- }else{
- messageBox("이미 완료된 건입니다.","I");
- }
- }
- else
- {
- messageBox("최하위 메뉴그룹이","E005");
- }
- ]]>
- </script>
- <hint>
- <![CDATA[아래로]]>
- </hint>
- </button>
- <caption id="caption7" class="tit_2" style="left:3px; top:89px; width:118px; height:13px; ">환자별 가야할 곳</caption>
- <line id="line4" class="line_1" style="x1:370px; y1:388px; x2:732px; y2:388px; "/>
- <button id="button12" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:321px; top:84px; width:42px; height:19px; font-weight:bold; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOrdPatWaitSeqChng();
- button3.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <line id="line5" class="line_1" style="x1:2px; y1:105px; x2:366px; y2:105px; "/>
- <datagrid id="grd_room" nodeset="/root/main/usedeptinfo/usedeptlist" caption="구분^진료/검사실명^seq^orddeptcd" colsep="^" colwidth="100, 220,0,0" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:370px; top:391px; width:362px; height:190px; ">
- <col disabled="true" ref="ampmflag" type="combo">
- <choices>
- <item>
- <label>오전</label>
- <value>A</value>
- </item>
- <item>
- <label>오후</label>
- <value>P</value>
- </item>
- <item>
- <label>전체</label>
- <value>D</value>
- </item>
- <item>
- <label>진료</label>
- <value>O</value>
- </item>
- <item>
- <label>검사실</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="roomnm"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true && model.getValue("/root/send/pid")!="" && model.getValue("/root/send/orddeptcd")!="" ){
- var row = grd_room.row;
- var ordroomcd = model.getValue("/root/main/usedeptinfo/usedeptlist[" + row + "]/seqno");
- var roomnm = model.getValue("/root/main/usedeptinfo/usedeptlist[" + row + "]/roomnm");
- var orddeptcd = model.getValue("/root/main/usedeptinfo/usedeptlist[" + row + "]/orddeptcd");
- var roomtype = model.getValue("/root/main/usedeptinfo/usedeptlist[" + row + "]/ampmflag");
-
- var pid = model.getValue("/root/send/pid");
- var orddd = model.getValue("/root/send/orddd");
- var cretno= model.getValue("/root/send/cretno");
- var patnm= model.getValue("/root/send/hngnm");
- var orddrid= model.getValue("/root/send/orddrid");
-
- var ordtm = model.getValue("/root/main/ordschelist/ordschelistinfo/ordtm");
-
- grd_detllist.addRow();
- grd_detllist.colDisabled(grd_detllist.colRef("roomtype")) = true;
-
- var roomrow = grd_detllist.rows -1;
- if(grd_detllist.rows>1){
- var mainseqno = grd_detllist.valueMatrix(grd_detllist.rows-2,grd_detllist.colRef("mainseqno"));
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/mainseqno" , mainseqno);
- }
-
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/dispord" , roomrow+1);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/ordroomcd" , ordroomcd);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/roomnm" , roomnm);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/orddeptcd" , orddeptcd);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/roomtype" , roomtype);
-
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/pid" , pid);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/orddd" , orddd);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/cretno" , cretno);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/patnm" , patnm);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/orddrid" , orddrid);
- model.setValue("/root/main/detlinfo/detllist[" + roomrow + "]/ordtm" , ordtm);
-
- } else {
- messageBox("환자를 선택","I008");
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:0px; width:733px; height:58px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:18px; width:733px; height:33px; "/>
- <button id="button1" class="btn1_letter2" navindex="5" style="left:660px; top:24px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOrdScheList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:575px; y1:23px; x2:575px; y2:49px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:185px; height:14px; ">환자별 가야할 곳 적용</caption>
- <input id="ipt_pid" ref="/root/send/pid" style="left:103px; top:25px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
-
- var pid = model.getValue("/root/send/pid");
-
- if(!isNull(pid)){
- fSchPatinfo();
- }else{
- messageBox("대기환자만 적용 가능합니다","I");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:13px; top:26px; width:100px; height:17px; ">등록번호 :</caption>
- <output id="ipt_hngnm" ref="/root/send/hngnm" class="output_fix" disabled="true" appearance="output" style="left:210px; top:26px; width:100px; height:19px; "/>
- <button id="button8" class="btn2_letter9" style="left:325px; top:25px; width:119px; height:19px; ">
- <caption>상단환자 정보 연동</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 상단정보체크
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- if(paminfo.length > 0) {//원무 정보(기본 정보)가 있는 경우
- model.removenode("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
- setCSVToNode("/root/main/paminfo", paminfo);
- var pid = model.getValue("/root/main/paminfo/list/pid");
- var hngnm = model.getValue("/root/main/paminfo/list/hngnm");
- var cretno = model.getValue("/root/main/paminfo/list/cretno");
- var orddeptcd = model.getValue("/root/main/paminfo/list/orddeptcd");
-
- model.setValue("/root/send/pid",pid);
- model.setValue("/root/send/hngnm",hngnm);
- model.setValue("/root/send/cretno",cretno);
- model.setValue("/root/send/orddeptcd",orddeptcd);
-
- if(!isNull(pid)){
- fSchPatinfo();
- }else{
- messageBox("대기환자만 적용 가능합니다","I");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="button2" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:276px; top:84px; width:42px; height:19px; font-weight:bold; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_detllist.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
- var chk = grd_detllist.valueMatrix(grd_detllist.row,grd_detllist.colRef("status"));
- if( chk != '완료' || isNull(chk)){
- grd_detllist.rowStatus(grd_detllist.row) =4;
- }else{
- messageBox("이미 완료된 건입니다.","I");
- }
-
- ]]>
- </script>
- </button>
- <output id="pid" ref="/root/main/ordschelist/ordschelistinfo/pid" class="output_fix" navindex="1" appearance="output" style="left:61px; top:56px; width:87px; height:19px; text-align:center; "/>
- <output id="hngnm" ref="/root/main/ordschelist/ordschelistinfo/hngnm" class="output_fix" navindex="2" imemode="hangul" appearance="output" style="left:148px; top:56px; width:82px; height:19px; text-align:center; "/>
- <output id="sa" ref="/root/main/ordschelist/ordschelistinfo/sa" class="output_fix" appearance="output" style="left:230px; top:56px; width:72px; height:19px; text-align:center; "/>
- <output id="rrgstno" ref="/root/main/ordschelist/ordschelistinfo/rrgstno" class="output_fix" navindex="5" appearance="output" maxlength="6" style="left:302px; top:56px; width:113px; height:19px; text-align:center; "/>
- <caption id="caption85" class="cell_1" style="left:0px; top:56px; width:60px; height:20px; vertical-align:middle; ">환자정보</caption>
- <caption id="caption1" class="cell_1" style="left:416px; top:56px; width:60px; height:20px; vertical-align:middle; ">진료정보</caption>
- <output id="orddrnm" ref="/root/main/ordschelist/ordschelistinfo/orddrnm" class="output_fix" appearance="output" style="left:477px; top:56px; width:70px; height:19px; text-align:center; "/>
- <output id="ordtm" ref="/root/main/ordschelist/ordschelistinfo/ordtm" class="output_fix" appearance="output" style="left:671px; top:56px; width:61px; height:19px; text-align:center; "/>
- <caption id="caption4" class="cell_1" style="left:611px; top:56px; width:60px; height:20px; vertical-align:middle; ">예약시간</caption>
- <output id="fsexamnm" ref="/root/main/ordschelist/ordschelistinfo/fsexamnm" class="output_fix" appearance="output" style="left:547px; top:56px; width:61px; height:19px; text-align:center; "/>
- </group>
- <button id="button3" class="btn1_letter2" navindex="5" style="left:655px; top:613px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRMNV21305"); // 가야할 곳 미등록 대기환자 리스트 조회
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:8px; top:613px; width:100px; height:17px; ">진료구분 :</caption>
- <line id="line1" class="line_4" style="x1:570px; y1:609px; x2:570px; y2:637px; "/>
- <caption id="caption8" class="tit_2" style="left:0px; top:588px; width:175px; height:13px; ">가야할 곳 미등록 대기환자</caption>
- <datagrid id="datagrid1" nodeset="/root/main/waitpatinfo/waitpatlist" caption="진료의^예약시간^도착시간^특이^특이^특이^특이^등록번호^환자명^S/A^초진^재진차트^재진차트^Remark" colsep="^" colwidth="75, 55, 55, 30, 30, 30, 30, 80, 85, 50, 50, 30, 30, 80" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:5px; top:643px; width:725px; height:175px; ">
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="ordtm" style="text-align:center; "/>
- <col ref="nursacptdt"/>
- <col ref="grdevipyn"/>
- <col ref="grdereferyn"/>
- <col ref="grde"/>
- <col disabled="true" ref="uncoamtyn" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>$</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sa"/>
- <col ref="fsexamnm"/>
- <col ref="chrtflag"/>
- <col ref="chrtflage"/>
- <col ref="telrsrvrem"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var pid = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("pid"));
-
- if (isDataCell() == true && pid !=""){
- model.setValue("/root/send/pid",pid);
- fSchPatinfo();
- }else{
- messageBox("환자를 선택","I008");
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_ordflag" ref="/root/send2/ordflag" navindex="7" appearance="full" cols="3" overflow="visible" style="left:105px; top:613px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>오전</label>
- <value>A</value>
- </item>
- <item>
- <label>오후</label>
- <value>P</value>
- </item>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/send2/orddrid" navindex="8" appearance="minimal" style="left:335px; top:613px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/orddeptdrcdlist">
- <label ref="orddeptdrnm"/>
- <value ref="orddeptdrid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:260px; top:613px; width:90px; height:17px; ">담당의 :</caption>
- <button id="button16" class="btn3_letter11" style="left:570px; top:82px; width:164px; height:22px; ">
- <caption>가야할 곳 기준자료 등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMNV21200","1","1","1","SPMNV21200","","","","false");
- ]]>
- </script>
- </button>
- <caption id="caption15" style="left:0px; top:825px; width:730px; height:60px; font-weight:normal; background-color:#ffff99; ">
- <![CDATA[1. '가야할 곳 미등록 대기환자' 리스트 더블 클릭 또는 등록번호 직접 입력하여 '환자별 가야할 곳' 적용 가능함.
- ('가야할 곳 미등록 대기환자'는 전광판 대기자리스트에 조회되지 않음)
- 2. '가야할 곳 제목' 더블 클릭 후 '환자별 가야할 곳' 저장 즉시 가야할 곳 순서대로 전광판 대기자리스트 조회됨.
- 3. '환자별 가야할곳'추가(진료/검사실명 더블클릭)/삭제 시 개인별 수정적용되며, '가야할곳 기준자료'내용은 변경되지 않음.]]>
- </caption>
- <select1 id="combo1" ref="/root/hidden/orddrid" navindex="8" appearance="minimal" style="left:488px; top:83px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/orddeptdrcdlist">
- <label ref="orddeptdrnm"/>
- <value ref="orddeptdrid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddrid = model.getValue("/root/hidden/orddrid");
- var orgorddrid = model.getValue("/root/send/orddrid");
-
- model.setValue("/root/send/orddrid",orddrid);
- model.resetInstanceNode("/root/main/masterinfo/masterlist");
- submit("TRMNV21201"); // 가야할 곳 마스터 조회
- model.setValue("/root/send/orddrid",orgorddrid);
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|