123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <imain>
- <masterinfo>
- <masterlist>
- </masterlist>
- </masterinfo>
- <usedeptinfo>
- <usedeptlist/>
- </usedeptinfo>
- <detlinfo>
- <detllist/>
- </detlinfo>
- </imain>
- <isend>
- <reqdata/>
- </isend>
- <iinit/>
- <ihidden>
- <msgrgst>
- <msg/>
- </msgrgst>
- <waitroommsg>
- <msg/>
- </waitroommsg>
- </ihidden>
- <itemp/>
- <icond>
- <con>
- <pid/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <roomcd/>
- <ordroomseq/>
- </con>
- </icond>
- </root>
- </instance>
- <submission id="TRMNV21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/isend/reqdata" replace="instance" resultref="/root/imain/masterinfo"/>
- <submission id="TRMNV21104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/isend/reqdata" replace="instance" resultref="/root/imain/usedeptinfo"/>
- <submission id="TRMNV21202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/isend/reqdata" resultref="/root/imain/detlinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fDeptMstList() //진료과 선택시 대기자 리스트 가져오기
- {
- model.makeValue("/root/isend/reqdata/userid","-");
- model.resetInstanceNode("/root/imain/masterinfo/masterlist");
- model.resetInstanceNode("/root/imain/usedeptinfo/usedeptlist");
- model.resetInstanceNode("/root/imain/detlinfo/detllist");
- submit("TRMNV21201"); // 가야할 곳 마스터 조회
- submit("TRMNV21104"); // 진료/검사실 기준자료
- }
-
- 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_ordschelistinfo.insertRow(toSeq, type, false); // 이동할 위치에 행을 하나 삽입한다.
- model.copyNode("/root/main/ordschelist/ordschelistinfo["+grd_ordschelistinfo.row+"]", "/root/main/ordschelist/ordschelistinfo["+srcSeq+"]");
- // alert("srcSeq위치에행을삭제한다"+srcSeq);
- grd_ordschelistinfo.deleteRow(srcSeq, false);
-
- if(isSeq > toSeq){
-
- startRow = toSeq;
- endRow = isSeq;
- grd_ordschelistinfo.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_ordschelistinfo.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 fOrdPatWaitSeqChng(){
- var pid = model.getValue("/root/icond/con/pid");
- var orddd = model.getValue("/root/icond/con/orddd");
- var cretno= model.getValue("/root/icond/con/cretno");
-
- if(pid<>""){
- for(i=1;i<=grd_detllist.rows;i++){
- model.makeValue("/root/imain/detlinfo/detllist[i]/pid",pid);
- model.makeValue("/root/imain/detlinfo/detllist[i]/orddd",orddd);
- model.makeValue("/root/imain/detlinfo/detllist[i]/cretno",cretno);
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" style="left:0px; top:0px; width:735px; height:663px; ">
- <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:2px; top:606px; width:278px; height:56px; "/>
- <button id="button15" class="btn4_letter2" navindex="17" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:248px; top:525px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/ihidden/msgrgst/status");
- model.refresh();
- fOrdRoomMsgSave();
- ]]>
- </script>
- </button>
- <datagrid id="grd_detllist" nodeset="/root/imain/detlinfo/detllist" caption="표시순서^가야할 곳(이름)^roomcd^orddeptcd" colsep="^" colwidth="31, 280, 9, 6" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:1px; top:27px; width:364px; height:495px; ">
- <col ref="dispord" style="left:20px; top:23px; width:98px; height:18px; text-align:center; "/>
- <col ref="useroomnm" style="text-align:center; "/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- </datagrid>
- <input id="ipt_msgtotm" ref="/root/ihidden/msgrgst/msgtotm" navindex="15" format="nn:ss" style="left:116px; top:636px; width:82px; height:19px; "/>
- <textarea id="tx_msg" ref="/root/ihidden/msgrgst/msg" navindex="13" scroll="autovscroll" maxlength="26" style="left:2px; top:552px; width:364px; height:52px; "/>
- <caption id="caption20" class="tit_2" style="left:374px; top:7px; width:118px; height:13px; ">가야할 곳 마스터</caption>
- <input id="ipt_msgfromtm" ref="/root/ihidden/msgrgst/msgfromtm" navindex="14" format="nn:ss" style="left:14px; top:636px; width:82px; height:19px; "/>
- <caption id="caption10" style="left:100px; top:640px; width:14px; height:11px; font-weight:bold; ">~</caption>
- <button id="button6" class="btn4_letter2" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:310px; top:525px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/ihidden/msgrgst/status","D");
- fOrdRoomMsgSave();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:2px; top:532px; width:320px; height:13px; ">소대기 공지사항 (표시기간동안 표시)</caption>
- <button id="button7" class="icon_top" style="left:181px; top:2px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_top.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_detllist.valuematrix(grd_detllist.mouseRow,grd_detllist.colRef("useroomnm"))!="")
- {
- if ( grd_detllist.row == "1") {
- messageBox("최상위환자입니다.", "I");
- return;
- } else {
- fSetMenuGroupSeq("1", "above");
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[맨위로]]>
- </hint>
- </button>
- <button id="btn_wroom_del" class="btn4_letter2" navindex="21" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:678px; top:525px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetWaitRoomMsg("D");
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_bottom" style="left:271px; top:2px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rdo_condwait.value=='2') //보류 환자 선택시
- {
- messageBox("순서 변경은 대기 환자만","I006");
- return;
- }
- if(grd_ordschelistinfo.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
- // if(grd_ordschelistinfo.row < 3)
- // {
- // messageBox("상위 2명 환자의 순서는 변경할수","E001");
- // return;
- // }
- // else
- // {
- if( grd_ordschelistinfo.rows-grd_ordschelistinfo.fixedRows > grd_ordschelistinfo.row )
- {
- fSetMenuGroupSeq(grd_ordschelistinfo.rows-grd_ordschelistinfo.fixedRows, "below");
- }
- else
- {
- messageBox("최하위 메뉴그룹이","E005");
- }
- // }
- ]]>
- </script>
- <hint>
- <![CDATA[맨아래로]]>
- </hint>
- </button>
- <caption id="caption3" class="tit_2" style="left:374px; top:313px; width:211px; height:14px; ">진료/검사실 기준자료</caption>
- <button id="button9" class="icon_top_direction" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:211px; top:2px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_up.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rdo_condwait.value=='2') //보류 환자 선택시
- {
- messageBox("순서 변경은 대기 환자만","I006");
- return;
- }
- if(grd_detllist.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
- //상위 두명도 순서를 변경할 수 있도록 해달라는 요청으로 기존 로직 삭제 : 2009. 04. 22 김영학 추가
- if (grd_ordschelistinfo.row <= 1 ) {
- messageBox("최상위입니다.","I");
- } else {
- fSetMenuGroupSeq(grd_ordschelistinfo.row-1, "above");
- }
- // end //
- // if(grd_ordschelistinfo.row > 3)
- // {
- // fSetMenuGroupSeq(grd_ordschelistinfo.row-1, "above");
- // }
- // else
- // {
- // messageBox("상위 2명 환자의 순서는 변경할수","E001");
- // }
- ]]>
- </script>
- <hint>
- <![CDATA[위로]]>
- </hint>
- </button>
- <line id="line1" class="line_1" style="x1:2px; y1:548px; x2:366px; y2:548px; "/>
- <button id="btn_wroom_save" class="btn4_letter2" navindex="21" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:616px; top:525px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // fSetWaitRoomMsg("S");
- var size = tar_wroommsg.value.length;
- if (size > "50") {
- messageBox("현재" + size + "자 입력되었습니다. \n최대 50자까지만 입력가능합니다.", "I");
- return;
- } else {
- fSetWaitRoomMsg("S");
- }
- ]]>
- </script>
- </button>
- <caption id="cpt_voluntrflag" class="cell_1" style="left:5px; top:611px; width:269px; height:20px; font-size:10pt; font-weight:bold; vertical-align:middle; ">* 예약지연시간 표시기간(시분)</caption>
- <line id="line2" class="line_1" style="x1:371px; y1:23px; x2:733px; y2:23px; "/>
- <datagrid id="grd_masterlist" nodeset="/root/imain/masterinfo/masterlist" caption="번호^담당의^가야할 곳(이름)" colsep="^" colwidth="14, 90, 224" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:371px; top:26px; width:362px; height:281px; ">
- <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[
- if (isDataCell() == true && grd_masterlist.valuematrix(grd_masterlist.mouseRow,grd_masterlist.colRef("usernm"))!="" && model.getValue("/root/icond/con/pid")!=""){
- model.makeNode("/root/isend/reqdata/mainseqno");
- model.setValue("/root/isend/reqdata/mainseqno", model.getValue("/root/imain/masterinfo/masterlist[" + grd_masterlist.row + "]/mainseqno"));
- model.resetInstanceNode("/root/imain/detlinfo/detllist");
- submit("TRMNV21202");
- model.refresh();
- }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:241px; top:2px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_down.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rdo_condwait.value=='2') //보류 환자 선택시
- {
- messageBox("순서 변경은 대기 환자만","I006");
- return;
- }
- if(grd_ordschelistinfo.row<=0)
- {
- messageBox("환자를 선택","I008");
- return;
- }
- // if(grd_ordschelistinfo.row < 3)
- // {
- // messageBox("상위 2명 환자의 순서는 변경할수","E001");
- // return;
- // }
- // else
- // {
- if( grd_ordschelistinfo.rows-grd_ordschelistinfo.fixedRows > grd_ordschelistinfo.row )
- {
- fSetMenuGroupSeq(grd_ordschelistinfo.row+1, "below");
- }
- else
- {
- messageBox("최하위 메뉴그룹이","E005");
- }
- // }
- // fChgIdxSetPrcpRefInfo("down");
- ]]>
- </script>
- <hint>
- <![CDATA[아래로]]>
- </hint>
- </button>
- <caption id="caption7" class="tit_2" style="left:3px; top:8px; width:118px; height:13px; ">가야할 곳</caption>
- <caption id="caption28" class="tit_2" style="left:370px; top:532px; width:290px; height:13px; ">대대기 공지사항 (삭제할때까지 표시)</caption>
- <line id="line4" class="line_1" style="x1:371px; y1:329px; x2:733px; y2:329px; "/>
- <button id="button12" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:301px; top:2px; width:64px; height:19px; font-weight:bold; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>순서저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOrdPatWaitSeqChng();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_1" style="x1:2px; y1:24px; x2:366px; y2:24px; "/>
- <line id="line6" class="line_1" style="x1:370px; y1:548px; x2:734px; y2:548px; "/>
- <textarea id="tar_wroommsg" ref="/root/ihidden/waitroommsg/msg" navindex="19" scroll="autovscroll" style="left:370px; top:552px; width:364px; height:52px; "/>
- <datagrid id="grd_room" nodeset="/root/imain/usedeptinfo/usedeptlist" caption="코드^가야할 곳(이름)^orddeptcd" colsep="^" colwidth="125, 215, 100" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:371px; top:332px; width:362px; height:190px; ">
- <col ref="roomcd" style="left:20px; top:23px; width:98px; height:18px; text-align:center; "/>
- <col ref="useroomnm" style="text-align:center; "/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // if(model.removenodeset("/root/main/detlinfo/detllist"); /root/main/detlinfo/detllist
- if (isDataCell() == true && grd_room.valuematrix(grd_room.mouseRow,grd_room.colRef("roomcd"))!="" && model.getValue("/root/icond/con/pid")!="") {
- var row = grd_room.row;
- var roomcd = model.getValue("/root/imain/usedeptinfo/usedeptlist[" + row + "]/roomcd");
- var useroomnm = model.getValue("/root/imain/usedeptinfo/usedeptlist[" + row + "]/useroomnm");
- var orddeptcd = model.getValue("/root/imain/usedeptinfo/usedeptlist[" + row + "]/orddeptcd");
-
- grd_detllist.addRow();
- var roomrow = grd_detllist.rows -1;
-
- model.setValue("/root/imain/detlinfo/detllist[" + roomrow + "]/dispord" , roomrow);
- model.setValue("/root/imain/detlinfo/detllist[" + roomrow + "]/roomcd" , roomcd);
- model.setValue("/root/imain/detlinfo/detllist[" + roomrow + "]/useroomnm" , useroomnm);
- model.setValue("/root/imain/detlinfo/detllist[" + roomrow + "]/orddeptcd" , orddeptcd);
- } else {
- messageBox("환자를 선택","I008");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|