123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPMO00300_외래진료예약.xrw
- * 설 명 : 대진예약변경
- * 설 계 자 : 이동식
- * 작 성 자 : 이동식
- * 작 성 일 : 2007.09.13
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>대진예약변경</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <beforersrv>
- <centcd/>
- <orddeptcd/>
- <subdeptcd/>
- <orddrid/>
- <orddd/>
- <ordtmflag/>
- <bfrsrvspec>
- <rsrvspeclist/>
- </bfrsrvspec>
- </beforersrv>
- <afterrsrv>
- <centcd/>
- <orddeptcd/>
- <subdeptcd/>
- <orddrid/>
- <orddd/>
- <ordtmflag/>
- <aftrsrvspec>
- <rsrvspeclist/>
- </aftrsrvspec>
- </afterrsrv>
- <result/>
- <updtcnclresn/>
- <updtcnclresncd/>
- </main>
- <init>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- </orddridlist>
- </orddrid>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddeptcdlist>
- </orddeptcd>
- </init>
- <send>
- <centcd/>
- <orddeptcd/>
- <orddrid/>
- <orddd/>
- <srchflag/>
- <subdeptcd/>
- <ordtmflag/>
- <updtrsrv>
- <updtrsrvlist/>
- </updtrsrv>
- </send>
- <hidden>
- <rcv/>
- <session/>
- <init>
- <before/>
- <after/>
- </init>
- </hidden>
- <init_com>
- <init>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- </init>
- </init_com>
- <tmp/>
- </root>
- </instance>
- <submission id="TRPMO00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outrgst"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMO00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/result"/>
- <submission id="TRPMO00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/tmp"/>
- <submission id="TXPMO00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updtrsrv" resultref="/root/hidden/rcv"/>
- <submission id="TRPMO00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/enrcomncode"/>
- <submission id="TXPMO00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chart" resultref="/root/hidden/rcv"/>
- <submission id="TRZSD00207" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSU10118" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMO00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/centeryn"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling(); //세션
-
- //변경전 그리드 전체선택 체크박스 추가
- datagrid1.fixedcellcheckbox(0,0) = true;
-
- //진료과코드 진료의ID 조회
- pamGetDeptCDDrIDList();
- zbcfGetCodeList(new Array("P0341"), new Array("/root/init_com/init/P0341list"));
-
- model.setValue("/root/main/beforersrv/orddd" , getCurrentDate());
- model.setValue("/root/main/afterrsrv/orddd" , getCurrentDate());
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- model.removeNodeset("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist");
-
- var orddeptcd = '';
- var orddrid = '';
- //var pid = '';
-
- // //센터 선 적용 여부 체크
- // CENTERYN = fCheckCenterYN();
- // if( CENTERYN == 'Y' ){
- // cmb_centcd.visible = true;
- // combo3.visible = false;
- // combo4.visible = false;
- // }else{
- // cmb_centcd.visible = false;
- // combo3.visible = false;
- // combo4.visible = false;
- // }
-
- //간호 요청사항 추가
- var node = getGlobalVariable("paminfo");
- if(node != '' && node != null){
- setCSVToNode("/root/temp/paminfo", node);
- var ioflag = model.getValue("/root/temp/paminfo/list/ioflag");
- if( ioflag == 'O' || ioflag == 'o' ){
- orddrid = model.getValue("/root/temp/paminfo/list/orddrid");
- }else{
- orddrid = model.getValue("/root/temp/paminfo/list/medispclid");
- }
- orddeptcd = model.getValue("/root/temp/paminfo/list/orddeptcd");
- //pid = model.getValue("/root/temp/paminfo/list/pid");
-
- }else if(checkOpener()){ //팝업화면으로 사용될 때
- orddeptcd = opener.javascript.getParameter("SMPMO00900_PARM1");
- orddrid = opener.javascript.getParameter("SMPMO00900_PARM2");
- //pid = opener.javascript.getParameter("SMPMO00900_PARM3");
- setParameter("SMPMO00900_PARM1", "");
- setParameter("SMPMO00900_PARM2", "");
- //setParameter("SMPMO00900_PARM3", "");
- }
-
- //2008-08-06 이동식 추가
- //간호 임미정 선생님 요구사항
- //해당간호 진료과로 세팅..
- if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-"){
- orddeptcd = model.getValue("/root/hidden/session/sess_dutplcecd");
- }
-
-
- //진료과, 진료의, 등록번호가 넘어오면 화면이 열릴 때 조회해준다.
- if(orddeptcd != null && orddeptcd != "" && orddeptcd != " " && orddeptcd != "-"){
- //변경 전
- model.setValue("/root/main/beforersrv/orddeptcd", orddeptcd);
- cmb_bforddeptcd.dispatch("xforms-value-changed");
- //변경 후
- model.setValue("/root/main/afterrsrv/orddeptcd", orddeptcd);
- cmb_aftorddeptcd.dispatch("xforms-value-changed");
- }
- if(orddrid != null && orddrid != "" && orddrid != " " && orddrid != "-"){
- model.setValue("/root/main/beforersrv/orddrid",orddrid); //변경 전
- model.setValue("/root/main/afterrsrv/orddrid",orddrid); //변경 후
- }
- //END..
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //예약내역 변경
- function fUpdtRsrvSpec( rsrvCnt ){
- model.removeNodeset("/root/send/updtrsrv/updtrsrvlist");
- model.makeNode("/root/send/updtrsrv/updtrsrvlist");
- var bfPath = "/root/main/beforersrv/bfrsrvspec/rsrvspeclist";
- var aftPath = "/root/main/afterrsrv/aftrsrvspec/rsrvspeclist";
-
- //2007-10-17 이동식 추가 - 변경취소사유 입력
- modal("SPPMO01000", "1","400", "400", "SPPMO01000", "/root/hidden/enrcomncode", "/root/hidden/enrcomncode");
- var updtcnclresn = getParameter("SPPMO01000_updtcnclresn");
- var updtcnclresncd = getParameter("SPPMO01000_updtcnclresncd");
- model.setValue("/root/main/updtcnclresn", updtcnclresn);
- model.setValue("/root/main/updtcnclresncd", updtcnclresncd);
-
- if(parseInt( rsrvCnt ) == 1){
- var bfRow = fGetRowNum(0, bfPath);
- var aftRow = fGetRowNum(0, aftPath);
-
- if(model.getValue(bfPath + "[" + bfRow + "]/otpt_dracptyn") == "Y"){
- messageBox("이미 진료본 내역입니다!","E999","");
- return false;
- }
-
- copyNodeWithPostfix("/root/send/updtrsrv/updtrsrvlist", bfPath + "[" + bfRow + "]", "_old");
-
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/otpt_flag" , 'U');
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/orddeptcd" , model.getValue( "/root/main/afterrsrv/orddeptcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/subdeptcd" , model.getValue( "/root/main/afterrsrv/subdeptcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/centcd" , model.getValue("/root/main/afterrsrv/centcd"));
-
- var orddrid = model.getValue( "/root/main/afterrsrv/orddrid");
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/orddrid" , orddrid);
-
- var userspec = model.getValue("/root/init/orddrid[cd='"+ orddrid +"']/sp");
- if(userspec == 'Y'){
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/specordyn" , "Y");
- }else{
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/specordyn" , "N");
- }
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/sess_dutplceinstcd" , model.getValue( bfPath + "[" + bfRow + "]/otpt_instcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/sess_userid" , model.getValue( bfPath + "[" + bfRow + "]/otpt_lastupdtrid" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/orddd" , model.getValue( "/root/main/afterrsrv/orddd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/ordtm" , model.getValue( aftPath + "[" + aftRow + "]/otpt_ordtm" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist/updtcnclresn" , model.getValue( "/root/main/updtcnclresn" ));
-
- }else if( parseInt( rsrvCnt ) > 1 ){
- var row = 0;
- for(var i=1; i<=parseInt(rsrvCnt); i++){
- var bfRow = fGetRowNum(row, bfPath);
- row = bfRow;
- //var aftRow = fGetRowNum(0, aftPath);
-
- if(model.getValue( bfPath + "[" + bfRow + "]/otpt_dracptyn" ) == "Y"){
- messageBox("이미 진료본 내역입니다!","E999","");
- return false;
- }
-
- model.makeNode("/root/send/updtrsrv/updtrsrvlist[" + i + "]");
- copyNodeWithPostfix("/root/send/updtrsrv/updtrsrvlist[" + i + "]", bfPath + "[" + bfRow + "]", "_old");
-
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_flag" , 'U');
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/orddeptcd" , model.getValue( "/root/main/afterrsrv/orddeptcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/subdeptcd" , model.getValue( "/root/main/afterrsrv/subdeptcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/centcd" , model.getValue("/root/main/afterrsrv/centcd"));
- var orddrid = model.getValue( "/root/main/afterrsrv/orddrid" );
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/orddrid" , orddrid);
- var userspec = model.getValue("/root/init/orddrid[cd='"+ orddrid +"']/sp");
- if( userspec == 'Y' ){
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/specordyn" , "Y");
- }else{
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/specordyn" , "N");
- }
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/orddd" , model.getValue( "/root/main/afterrsrv/orddd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/ordtm" , model.getValue( bfPath + "[" + bfRow + "]/otpt_ordtm" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/updtcnclresn" , model.getValue( "/root/main/updtcnclresn" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/sess_dutplceinstcd" , model.getValue( bfPath + "[" + bfRow + "]/otpt_instcd" ));
- model.makeValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/sess_userid" , model.getValue( bfPath + "[" + bfRow + "]/otpt_lastupdtrid" ));
- }
- }else{
- return false;
- }
-
- if(submit("TXPMO00302")){
- //차트대출 신청
- // fReqChartLend();
-
- btn_aftsearch.dispatch("DOMActivate");
- btn_bfsearch.dispatch("DOMActivate");
- model.resetInstanceNode("/root/main/updtcnclresn");
- model.resetInstanceNode("/root/main/updtcnclresncd");
- model.refresh();
- }
- }
-
- //차트대출 신청
- function fReqChartLend(){
- var bfChartCnt = getNodesetCount("/root/send/updtrsrv/updtrsrvlist");
- var aftChartCnt = getNodesetCount("/root/hidden/rcv/chart/chartlist");
-
- if( bfChartCnt == aftChartCnt && bfChartCnt > 0){
- if( getNodesetCount("/root/hidden/rcv/chart/chartlist") < 1 ){
- return false;
- }
- model.removeNodeset("/root/send/chart");
-
- for( var i = 1; i <= bfChartCnt; i++){
- if( model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_pid_old").length > 1 && model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_tablename_old") != 'temp' ){
- model.makeValue("/root/send/chart["+ i +"]/high_flag", "U");
- model.makeValue("/root/send/chart["+ i +"]/flag", "D");
- model.makeValue("/root/send/chart["+ i +"]/pid", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_pid_old"));
- model.makeValue("/root/send/chart["+ i +"]/orddd", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_orddd_old"));
- model.makeValue("/root/send/chart["+ i +"]/cretno", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_cretno_old"));
- model.makeValue("/root/send/chart["+ i +"]/acptseqno", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_acptseqno_old"));
- model.makeValue("/root/send/chart["+ i +"]/orddeptcd", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_orddeptcd_old"));
- model.makeValue("/root/send/chart["+ i +"]/orddrid", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_orddrid_old"));
- model.makeValue("/root/send/chart["+ i +"]/ordtm", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_ordtm_old"));
- model.makeValue("/root/send/chart["+ i +"]/fsexamflag", model.getValue("/root/send/updtrsrv/updtrsrvlist[" + i + "]/otpt_fsexamflag_old"));
-
- model.makeValue("/root/send/chart2["+ i +"]/high_flag", "U");
- model.makeValue("/root/send/chart2["+ i +"]/flag", "I");
- model.makeValue("/root/send/chart2["+ i +"]/pid", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_pid"));
- model.makeValue("/root/send/chart2["+ i +"]/orddd", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_orddd"));
- model.makeValue("/root/send/chart2["+ i +"]/cretno", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_cretno"));
- model.makeValue("/root/send/chart2["+ i +"]/acptseqno", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_acptseqno"));
- model.makeValue("/root/send/chart2["+ i +"]/orddeptcd", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_orddeptcd"));
- model.makeValue("/root/send/chart2["+ i +"]/orddrid", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_orddrid"));
- model.makeValue("/root/send/chart2["+ i +"]/ordtm", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_ordtm"));
- model.makeValue("/root/send/chart2["+ i +"]/fsexamflag", model.getValue("/root/hidden/rcv/chart/chartlist[" + i + "]/otpt_fsexamflag"));
- }
- }
- copyNodeType("/root/send/chart", "/root/send/chart2", "after");
-
- submit("TXPMO00105");
- model.removeNodeset("/root/send/chart");
- model.resetInstanceNode("/root/hidden/rcv");
- }
- }
-
- //체크된 ROW 번호를 구한다.
- function fGetRowNum( row , strPath ){
- var count = getNodesetCount( strPath );
- var nextRow = 0;
- for( var i = row + 1; i <= count; i++){
- if( model.getValue( strPath + "[" + i + "]/check") == 'Y' ){
- nextRow = i;
- return nextRow;
- }
- }
- return nextRow;
- }
-
- //선택된 예약내역 카운트
- function fCountCheckValue(strPath){
- var count = getNodesetCount( strPath );
- var check = 0;
- for( var i = 1; i <= count; i++){
- if( model.getValue( strPath + "[" + i + "]/check") == 'Y' ){
- check = check + 1;
- }
- }
-
- return check;
- }
-
- //진료과 의사별 예약리스트 조회..
- function fPatRsrvInfoRef(centcd, orddeptcd, subdeptcd, orddrid, orddd, ordtmflag){
- model.resetInstanceNode("/root/send");
-
- if(!isValidDateTime(orddd, "YYYYMMDD")){
- messageBox("유효한 날짜가 아닙니다. 진료일자를 확인 후 다시 입력해 주세요", "E999", "");
- return false;
- }
-
- model.setValue("/root/send/centcd" , centcd);
- model.setValue("/root/send/orddeptcd" , orddeptcd);
- model.setValue("/root/send/subdeptcd" , subdeptcd);
- model.setValue("/root/send/orddrid" , orddrid);
- model.setValue("/root/send/orddd" , orddd);
- model.setValue("/root/send/ordtmflag" , ordtmflag);
- model.setValue("/root/send/srchflag" , "1");
-
- if(submit("TRPMO00901") == true){
-
- }
- }
-
- //해당일자 진료가 등록된 진료의 아이디 조회
- function fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd){
- model.resetInstanceNode("/root/send");
-
- if(orddd == ''){
- return false;
- }
- if(!isValidDateTime(orddd, "YYYYMMDD")){
- messageBox("유효한 날짜가 아닙니다. 진료일자를 확인 후 다시 입력해 주세요", "E999", "");
- return false;
- }
-
- model.setValue("/root/send/centcd" , centcd);
- model.setValue("/root/send/orddeptcd" , orddeptcd);
- model.setValue("/root/send/subdeptcd" , subdeptcd);
- model.setValue("/root/send/orddd" , orddd);
-
- if(submit("TRPMO00902")){
- model.setValue("/root/main/beforersrv/orddrid", "");
- return true;
- }else{
- messageBox("진료의 정보를 가져오지 못했습니다.","E999", "");
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <datagrid id="datagrid6" nodeset="/root/main/afterrsrv/aftrsrvspec/rsrvspeclist" allowselection="false" caption="^시간^등록번호^성명^수납^예약구분^진료여부^remark" colsep="^" colwidth="20, 45, 60, 70, 45, 55, 60, 200, 100, 100, 100, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:630px; top:130px; width:575px; height:538px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="otpt_ordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="otpt_pid"/>
- <col ref="ptbs_hngnm" style="text-align:center; "/>
- <col disabled="true" ref="otpt_histstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>수납</label>
- <value>R</value>
- </item>
- <item>
- <label>미수납</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="otpt_rsrvflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init_com/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="otpt_dracptyn" style="text-align:center; "/>
- <col disabled="true" editmode="input" ref="otpt_remfact" type="input"/>
- <col ref="ptbs_hometel" visibility="hidden"/>
- <col ref="ptbs_mpphontel" visibility="hidden"/>
- <col disabled="true" ref="otpt_fsexamflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>신환</label>
- <value>F</value>
- </item>
- <item>
- <label>과초</label>
- <value>D</value>
- </item>
- <item>
- <label>재진</label>
- <value>R</value>
- </item>
- <item>
- <label>상초</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="otpt_remfactcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/hidden/enrcomncode/remark">
- <label ref="nm"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <input id="input1" ref="/root/main/updtcnclresn" visibility="hidden" style="left:760px; top:672px; width:445px; height:19px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">대진예약변경</caption>
- <line id="line4" class="line_1" style="x1:630px; y1:125px; x2:1205px; y2:125px; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3 && !datagrid6.isCell(event.target) ) {
- window.setPopupMenu(false);
- }
- ]]>
- </script>
- <caption id="caption14" class="tit_2" visibility="hidden" style="left:655px; top:675px; width:105px; height:13px; ">변경취소사유 :</caption>
- <select1 id="combo2" ref="/root/main/updtcnclresncd" visibility="hidden" appearance="minimal" style="left:1185px; top:672px; width:20px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/enrcomncode/chngcnclresn">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/hidden/con/updtcnclresn", combo2.value);
- ]]>
- </script>
- </select1>
- <group id="group2" style="left:0px; top:60px; width:575px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:575px; height:60px; "/>
- <caption id="caption3" class="search_name" style="left:178px; top:33px; width:86px; height:17px; ">진료일자 :</caption>
- <input id="ipt_bforddd" ref="/root/main/beforersrv/orddd" class="input_s_essential" navindex="3" inputtype="date" style="left:265px; top:32px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당일자 진료가 등록된 진료의 아이디 조회
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
- if(!fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd)){
- return false;
- }
- cmb_bforddrid.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
- combo4.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
-
- model.setValue("/root/main/beforersrv/orddrid", "");
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_bforddrid" ref="/root/main/beforersrv/orddrid" navindex="2" appearance="minimal" style="left:75px; top:32px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_bforddeptcd" ref="/root/main/beforersrv/orddeptcd" navindex="1" appearance="minimal" style="left:252px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당일자 진료가 등록된 진료의 아이디 조회
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- if(centcd == '' || centcd == ' '){
- centcd = '-';
- }
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
- if(!fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd)){
- return false;
- }
- cmb_bforddrid.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_bfsubdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
- model.setValue("/root/main/beforersrv/subdeptcd", "-");
- cmb_bfsubdeptcd.refresh();
-
- combo4.visible = false;
- cmb_bforddrid.visible = true;
-
- //간호과 참고사항 및 변경/취소사항 코드 조회
- //model.resetInstanceNode("/root/send");
- fSubmitBefore();
- fSubmitAfter();
- if(centcd == '-'){
- model.setValue("/root/send/data1", orddeptcd);
- }else{
- model.setValue("/root/send/data1", centcd);
- }
- model.setValue("/root/send/data2", model.getValue("/root/init/orddeptcd[ cd = '" + orddeptcd + "' ]/deptengabbr"));
- if(!submit("TRPMO00305")){
- messageBox("참고사항 및 변경/취소사항 코드를 가져오지 못했습니다.","E999", "");
- return false;
- }
-
- model.removenode("/root/send/data1");
- model.setValue("/root/main/beforersrv/orddrid", "");
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:178px; top:9px; width:74px; height:17px; ">진료과 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:33px; width:87px; height:17px; ">진료의 :</caption>
- <button id="btn_bfsearch" class="btn1_letter2" navindex="4" style="left:514px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
-
- if(orddeptcd == '' || orddrid == '' || orddd == '' || orddeptcd == '-' || orddrid == '-' || orddd == '-'){
- messageBox("진료과/진료의/진료일자 정보를 모두 입력한 후 조회해 주세요.", "E999", "");
- return false;
- }
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec");
- model.makeNode("/root/main/beforersrv/bfrsrvspec");
-
- fPatRsrvInfoRef(centcd, orddeptcd, subdeptcd, orddrid, orddd, ordtmflag);
-
- model.copyNode("/root/main/beforersrv/bfrsrvspec", "/root/main/result");
- datagrid1.rebuild();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:508px; y1:8px; x2:508px; y2:51px; "/>
- <select1 id="cmb_bfsubdeptcd" ref="/root/main/beforersrv/subdeptcd" navindex="1" appearance="minimal" style="left:390px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당일자 진료가 등록된 진료의 아이디 조회
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
- if(!fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd)){
- return false;
- }
- cmb_bforddrid.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
- model.setValue("/root/main/beforersrv/orddrid", "");
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">센터 :</caption>
- <select1 id="combo1" ref="/root/main/beforersrv/centcd" navindex="2" appearance="minimal" style="left:67px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/centcd/centcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- if(centcd == '' || centcd == '-'){
- combo3.visible = false;
- combo4.visible = false;
- cmb_bforddeptcd.visible = true;
- cmb_bforddrid.visible = true;
-
- model.setValue("/root/main/beforersrv/orddeptcd", '-');
- model.setValue("/root/main/beforersrv/subdeptcd", '-');
- model.setValue("/root/main/beforersrv/orddrid", '-');
-
- }else{
- var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- var deptcd = model.getValue("/root/main/beforersrv/centcd");
- var base_dd = new Date().getDateFormat("YYYYMMDD");
- var sort_field = "dispseq"; //정렬필드(출력순서:'dispseq')
- var sort_method = "asc"; //정렬방법(오름차순:'asc')
- zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/before/cntrsuborddeptlist", base_dd);
- // zsufGetCntrOrdDeptDoctorList(instcd, deptcd, 'O', "/root/hidden/init/before/cntrorddeptdoctorlist",sort_field, sort_method, base_dd);
- model.setValue("/root/main/beforersrv/orddeptcd", '-');
- model.setValue("/root/main/beforersrv/subdeptcd", '-');
- model.setValue("/root/main/beforersrv/orddrid", '-');
- //해당일자 진료가 등록된 진료의 아이디 조회
- // var centcd = model.getValue("/root/main/beforersrv/centcd");
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
- if(!fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd)){
- return false;
- }
- combo4.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
-
- combo3.visible = true;
- combo4.visible = true;
- cmb_bforddeptcd.visible = false;
- cmb_bforddrid.visible = false;
-
- model.setValue("/root/main/beforersrv/orddrid", "");
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/main/beforersrv/orddeptcd" visibility="hidden" appearance="minimal" style="left:252px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/before/cntrsuborddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당일자 진료가 등록된 진료의 아이디 조회
- var centcd = model.getValue("/root/main/beforersrv/centcd");
- if(centcd == '' || centcd == ' '){
- centcd = '-';
- }
- var orddeptcd = model.getValue("/root/main/beforersrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/beforersrv/subdeptcd");
- var orddrid = model.getValue("/root/main/beforersrv/orddrid");
- var orddd = model.getValue("/root/main/beforersrv/orddd");
- var ordtmflag = model.getValue("/root/main/beforersrv/ordtmflag");
- if(!fgetOtptDrID(centcd, orddeptcd, subdeptcd, orddd)){
- return false;
- }
- cmb_bforddrid.choices.itemset.attribute("nodeset") = "/root/tmp/orddrid/orddridlist";
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_bfsubdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
- model.setValue("/root/main/beforersrv/subdeptcd", "-");
- cmb_bfsubdeptcd.refresh();
-
- combo4.visible = false;
- cmb_bforddrid.visible = true;
-
- //간호과 참고사항 및 변경/취소사항 코드 조회
- //model.resetInstanceNode("/root/send");
- fSubmitBefore();
- fSubmitAfter();
- if(centcd == '-'){
- model.setValue("/root/send/data1", orddeptcd);
- }else{
- model.setValue("/root/send/data1", centcd);
- }
- model.setValue("/root/send/data2", model.getValue("/root/init/orddeptcd[ cd = '" + orddeptcd + "' ]/deptengabbr"));
- if( ! submit("TRPMO00305")){
- messageBox("참고사항 및 변경/취소사항 코드를 가져오지 못했습니다.","E999", "");
- return false;
- }
-
- model.removenode("/root/send/data1");
- model.setValue("/root/main/beforersrv/orddrid", "");
- model.removeNodeset("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/main/beforersrv/orddrid" visibility="hidden" appearance="minimal" style="left:75px; top:32px; width:97px; height:19px; ">
- <!--
- <choices>
- <itemset nodeset="/root/hidden/init/before/cntrorddeptdoctorlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- -->
- <choices>
- <itemset nodeset="/root/init/centcd/centcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/main/beforersrv/ordtmflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:365px; top:35px; width:130px; height:30px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>오전</label>
- <value>AM</value>
- </item>
- <item>
- <label>오후</label>
- <value>PM</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption1" style="left:5px; top:25px; width:130px; height:35px; font-size:20pt; font-weight:bold; ">[변경 전]</caption>
- <caption id="caption2" style="left:635px; top:25px; width:130px; height:35px; font-size:20pt; font-weight:bold; ">[변경 후]</caption>
- <datagrid id="datagrid1" nodeset="/root/main/beforersrv/bfrsrvspec/rsrvspeclist" allowselection="false" caption="^시간^등록번호^성명^수납^예약구분^진료여부^remark" colsep="^" colwidth="20, 45, 60, 70, 45, 55, 60, 200, 100, 104, 100, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:130px; width:575px; height:538px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="otpt_ordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="otpt_pid"/>
- <col ref="ptbs_hngnm" style="text-align:center; "/>
- <col disabled="true" ref="otpt_histstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>수납</label>
- <value>R</value>
- </item>
- <item>
- <label>미수납</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="otpt_rsrvflag" type="combo" style="left:529px; top:23px; width:54px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init_com/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="otpt_dracptyn" style="text-align:center; "/>
- <col disabled="true" editmode="input" ref="otpt_remfact" type="input"/>
- <col ref="ptbs_hometel" visibility="hidden"/>
- <col ref="ptbs_mpphontel" visibility="hidden"/>
- <col disabled="true" ref="otpt_fsexamflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>신환</label>
- <value>F</value>
- </item>
- <item>
- <label>과초</label>
- <value>D</value>
- </item>
- <item>
- <label>재진</label>
- <value>R</value>
- </item>
- <item>
- <label>상초</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="remfactcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/hidden/enrcomncode/remark">
- <label ref="nm"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var rows = getNodesetCount("/root/main/beforersrv/bfrsrvspec/rsrvspeclist/otpt_ordtm");
- for( var i = 1; i <= rows; i++){
- if( model.getValue("/root/main/beforersrv/bfrsrvspec/rsrvspeclist[" + i + "]/otpt_pid") == '' &&
- model.getValue("/root/main/beforersrv/bfrsrvspec/rsrvspeclist[" + i + "]/ptbs_hngnm") == '' ){
- model.setValue("/root/main/beforersrv/bfrsrvspec/rsrvspeclist[" + i + "]/check", 'N');
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:125px; x2:575px; y2:125px; "/>
- <group id="group1" style="left:630px; top:60px; width:575px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:575px; height:60px; "/>
- <caption id="caption7" class="search_name" style="left:180px; top:33px; width:87px; height:17px; ">진료일자 :</caption>
- <input id="ipt_aftorddd" ref="/root/main/afterrsrv/orddd" class="input_s_essential" navindex="7" inputtype="date" style="left:267px; top:32px; width:95px; height:19px; "/>
- <select1 id="cmb_aftorddrid" ref="/root/main/afterrsrv/orddrid" navindex="6" appearance="minimal" style="left:75px; top:32px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_aftorddeptcd" ref="/root/main/afterrsrv/orddeptcd" navindex="5" appearance="minimal" style="left:254px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/main/afterrsrv/orddeptcd");
- var centcd = model.getValue("/root/main/afterrsrv/centcd");
- if( centcd == '' || centcd == ' ' ){
- centcd = '-';
- }
-
- cmb_aftorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- model.setValue("/root/main/afterrsrv/orddrid", "");
- model.setValue("/root/main/afterrsrv/subdeptcd", "-");
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_aftsubdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
- cmb_aftsubdeptcd.refresh();
-
- combo7.visible = false;
- cmb_aftorddrid.visible = true;
-
- //간호과 참고사항 및 변경/취소사항 코드 조회
- //model.resetInstanceNode("/root/send");
- fSubmitBefore();
- fSubmitAfter();
- if( centcd == '-' ){
- model.setValue("/root/send/data1", orddeptcd);
- }else{
- model.setValue("/root/send/data1", centcd);
- }
- model.setValue("/root/send/data2", model.getValue("/root/init/orddeptcd[ cd = '" + orddeptcd + "' ]/deptengabbr"));
- if( ! submit("TRPMO00305")){
- messageBox("참고사항 및 변경/취소사항 코드를 가져오지 못했습니다.","E999", "");
- return false;
- }
-
- model.removenode("/root/send/data1");
- model.removeNodeset("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:180px; top:9px; width:74px; height:17px; ">진료과 :</caption>
- <caption id="caption9" class="search_name" style="left:5px; top:33px; width:87px; height:17px; ">진료의 :</caption>
- <button id="btn_aftsearch" class="btn1_letter2" navindex="8" style="left:514px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var centcd = model.getValue("/root/main/afterrsrv/centcd");
- var orddeptcd = model.getValue("/root/main/afterrsrv/orddeptcd");
- var subdeptcd = model.getValue("/root/main/afterrsrv/subdeptcd");
- var orddrid = model.getValue("/root/main/afterrsrv/orddrid");
- var orddd = model.getValue("/root/main/afterrsrv/orddd");
- var ordtmflag = model.getValue("/root/main/afterrsrv/ordtmflag");
-
- if( orddeptcd == '' || orddrid == '' || orddd == ''){
- messageBox("진료과/진료의/진료일자 정보를 모두 입력한 후 조회해 주세요.", "E999", "");
- return false;
- }
- model.removeNodeset("/root/main/afterrsrv/aftrsrvspec");
- model.makeNode("/root/main/afterrsrv/aftrsrvspec");
-
- fPatRsrvInfoRef(centcd, orddeptcd, subdeptcd, orddrid, orddd, ordtmflag);
-
- model.copyNode("/root/main/afterrsrv/aftrsrvspec", "/root/main/result");
- datagrid6.rebuild();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:508px; y1:8px; x2:508px; y2:51px; "/>
- <select1 id="cmb_aftsubdeptcd" ref="/root/main/afterrsrv/subdeptcd" navindex="5" appearance="minimal" style="left:377px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var subdeptcd = model.getValue("/root/main/afterrsrv/subdeptcd");
- var orddeptcd = model.getValue("/root/main/afterrsrv/orddeptcd");
-
- // if( subdeptcd != '' && subdeptcd != '-' ){
- //
- // cmb_aftorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + subdeptcd + "']";
- // model.setValue("/root/main/afterrsrv/orddrid", "");
- // }else{
- // cmb_aftorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- // model.setValue("/root/main/afterrsrv/orddrid", "");
- // }
-
- model.setValue("/root/main/afterrsrv/orddrid", "");
- model.removeNodeset("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo5" ref="/root/main/afterrsrv/centcd" navindex="2" appearance="minimal" style="left:67px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/centcd/centcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var centcd = model.getValue("/root/main/afterrsrv/centcd");
-
- if( centcd == '' || centcd == '-' ){
- combo6.visible = false;
- combo7.visible = false;
-
- cmb_aftorddeptcd.visible = true;
- cmb_aftorddrid.visible = true;
-
- model.setValue("/root/main/afterrsrv/orddeptcd", '-');
- model.setValue("/root/main/afterrsrv/subdeptcd", '-');
- model.setValue("/root/main/afterrsrv/orddrid", '-');
-
- }else{
- var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- var deptcd = model.getValue("/root/main/afterrsrv/centcd");
- var base_dd = new Date().getDateFormat("YYYYMMDD");
- var sort_field = "dispseq";//정렬필드(출력순서:'dispseq')
- var sort_method = "asc"; //정렬방법(오름차순:'asc')
- zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/after/cntrsuborddeptlist", base_dd);
- zsufGetCntrOrdDeptDoctorList(instcd, deptcd, 'O', "/root/hidden/init/after/cntrorddeptdoctorlist",sort_field, sort_method, base_dd);
-
- combo6.visible = true;
- combo7.visible = true;
-
- cmb_aftorddeptcd.visible = false;
- cmb_aftorddrid.visible = false;
-
- model.setValue("/root/main/afterrsrv/orddeptcd", '-');
- model.setValue("/root/main/afterrsrv/subdeptcd", '-');
- model.setValue("/root/main/afterrsrv/orddrid", '-');
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">센터 :</caption>
- <select1 id="combo6" ref="/root/main/afterrsrv/orddeptcd" visibility="hidden" appearance="minimal" style="left:254px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/after/cntrsuborddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/main/afterrsrv/orddeptcd");
- var centcd = model.getValue("/root/main/afterrsrv/centcd");
- if( centcd == '' || centcd == ' ' ){
- centcd = '-';
- }
-
- cmb_aftorddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- model.setValue("/root/main/afterrsrv/orddrid", "");
- model.setValue("/root/main/afterrsrv/subdeptcd", "-");
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_aftsubdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
- cmb_aftsubdeptcd.refresh();
-
- combo7.visible = false;
- cmb_aftorddrid.visible = true;
-
- //간호과 참고사항 및 변경/취소사항 코드 조회
- //model.resetInstanceNode("/root/send");
- fSubmitBefore();
- fSubmitAfter();
- if( centcd == '-' ){
- model.setValue("/root/send/data1", orddeptcd);
- }else{
- model.setValue("/root/send/data1", centcd);
- }
- model.setValue("/root/send/data2", model.getValue("/root/init/orddeptcd[ cd = '" + orddeptcd + "' ]/deptengabbr"));
- if( ! submit("TRPMO00305")){
- messageBox("참고사항 및 변경/취소사항 코드를 가져오지 못했습니다.","E999", "");
- return false;
- }
-
- model.removenode("/root/send/data1");
- model.removeNodeset("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="combo7" ref="/root/main/afterrsrv/orddrid" visibility="hidden" appearance="minimal" style="left:75px; top:32px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/after/cntrorddeptdoctorlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/main/afterrsrv/ordtmflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:365px; top:35px; width:130px; height:30px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>오전</label>
- <value>AM</value>
- </item>
- <item>
- <label>오후</label>
- <value>PM</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button3" class="icon_right" style="left:590px; top:340px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var bfCheck = fCountCheckValue("/root/main/beforersrv/bfrsrvspec/rsrvspeclist");
- var aftCheck = fCountCheckValue("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist");
-
- if( getNodesetCount("/root/main/beforersrv/bfrsrvspec/rsrvspeclist") < 1 ){
- messageBox("[변경 전] 예약내역을 조회해 주세요.", "E999", "");
- return false;
- }
-
- if( getNodesetCount("/root/main/afterrsrv/aftrsrvspec/rsrvspeclist") < 1 ){
- messageBox("[변경 후] 예약내역을 조회해 주세요.", "E999", "");
- return false;
- }
-
- var orddd = model.getValue("/root/main/afterrsrv/orddd");
- var today = getCurrentDate();
-
- //20080809 이동식 추가
- //임미정 선생님 요구사항
- //1. 동일진료과 인경우만... 2. 과거일자로 변경 불가 3. 처방존재하는 경우 변경 불가 4. 특진에서 일반으로 변경 가능 5. 일반에서 특진변경은 원무에서만 이루어지기때문에 외래에서는 불가
- if(model.getValue("/root/main/beforersrv/orddeptcd") != model.getValue("/root/main/afterrsrv/orddeptcd")){
- messageBox("동일과인경우에만 대진예약변경 가능합니다. 확인 후에 다시 예약변경 해주세요!", "E999", "");
- return false;
-
- /* currentText 오류발생 주석처리 - 20140320
- if(combo1.currentText == "2430000000" && combo5.currentText == "2430000000"){//신종플루센터
-
- }else{
- messageBox("동일과인경우에만 대진예약변경 가능합니다. 확인 후에 다시 예약변경 해주세요!", "E999", "");
- return false;
- }
- */
- }
-
- var bforddrid = model.getValue("/root/main/beforersrv/orddrid");
- var bforddrspecyn = model.getValue("/root/init/orddrid/orddridlist[ cd = " + bforddrid + "]/sp");
- var aftorddrid = model.getValue("/root/main/afterrsrv/orddrid");
- var aftorddrspecyn = model.getValue("/root/init/orddrid/orddridlist[ cd = " + aftorddrid + "]/sp");
- //일반 -> 특진으로 변경 불가
- if( bforddrspecyn != 'Y' && aftorddrspecyn == 'Y'){
- messageBox("일반의사 -> 특진의사로 대진예약변경을 할 수 없습니다. 확인 후에 다시 예약변경 해주세요!", "E999", "");
- return false;
- }
- if( orddd < today ){
- messageBox("변경 후 진료일이 과거 일자입니다. 확인 후 다시 예약변경 해주세요!", "E999", "");
- return false;
- }
-
- if( parseInt(bfCheck) == 0 ){
- messageBox("[변경 전] 예약내역을 선택해 주세요.", "E999", "");
- return false;
-
- }else if( parseInt( bfCheck ) == 1 ){
- if( parseInt( aftCheck ) < 1 ){
- messageBox("[변경 후] 리스트의 예약시간을 선택해 주세요.", "E999", "");
- return false;
-
- }else if( parseInt( aftCheck ) == 1 ){
- if( messageBox( bfCheck + "건의 예약내역을 변경하시겠습니까?" , "Q999", "") != 6 ) return false;
-
- //예약내역 변경
- fUpdtRsrvSpec(bfCheck);
-
- }else if( parseInt( aftCheck ) > 1 ){
- messageBox("[변경 후] 리스트의 예약시간을 1건만 선택해 주세요.", "E999", "");
- return false;
- }
- }else{
- if( messageBox( bfCheck + "건의 예약내역을 변경하시겠습니까?" , "Q999", "") != 6 ) return false;
-
- //예약내역 변경
- fUpdtRsrvSpec(bfCheck);
- }
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:5px; top:669px; width:1196px; height:91px; ">
- <![CDATA[대진예약변경 방법
- ① [변경전] - 변경전 예약목록(과/의사/예약일) 조회, [변경후] - 변경등록할 예약목록(과/의사/예약일) 조회
- ② [변경전] - 변경시킬 리스트 선택, 1건 변경일 경우는, [변경후] - 변경등록할 리스트 선택
- ③ >> 버튼 클릭 * [변경전]에서 1건만 선택한 경우 - [변경후]의 선택된 시간으로 변경됨. * [변경전]에서 2건이상 multi선택한 경우 - [변경전]과 동일한 시간으로 변경됨
- [제한] 1. 동일진료과 인경우만 변경 가능 2. 과거일자로 변경 불가 3. 처방존재하는 경우 변경 불가 4. 특진에서 일반으로 변경 가능 5. 일반에서 특진변경은 원무에서만 이루어지기때문에 외래에서는 불가
- 5. 단, 센터가 신종플루센터일경우는 1번제외.]]>
- </caption>
- </xhtml:body>
- </xhtml:html>
|