1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA00100.xrw
- * 설 명 : 결과상담예약
- * 설 계 자 : 김다영
- * 작 성 자 : 김다영
- * 작 성 일 : 2007.09.03
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <rsrvacptlst>
- <item>
- <chkyn/>
- <rsrvpsnnocnt/>
- <rsrvtm/>
- <pid/>
- <hngnm/>
- <hopedd/>
- <outexamyn/>
- <rsltcnstflag/>
- <ownyn/>
- <visitor/>
- <rsltcnstdr/>
- <visittm/>
- <rsltcnststarttm/>
- <rsltcnstendtm/>
- <rsltcnstendyn/>
- <remcnts/>
- <rsltcnstremcnts/>
- <spcffact/>
- <pkgnm/>
- <healexamflag/>
- <healexamdetlflag/>
- <rsrvdd/>
- <rsrvno/>
- <rsltcnstrsrvstarttm/>
- <rsltcnstrsrvendtm/>
- <rsltcnsthistcd/>
- <visitdd/>
- <chnghistseqno/>
- <rsltcnstseqno/>
- <rsltcnstdd/>
- <mtel/>
- </item>
- </rsrvacptlst>
- <rsltrsrvhistlst>
- <item>
- <rsltcnstdd/>
- <rsltcnsttm/>
- <pid/>
- <hngnm/>
- <hopedd/>
- <mtel/>
- <outexamyn/>
- <rsltcnstflag/>
- <ownyn/>
- <visitor/>
- <rsltcnstdr/>
- <visittm/>
- <rsltcnststarttm/>
- <rsltcnstendtm/>
- <rsltcnstendyn/>
- <remcnts/>
- <rsltcnstremcnts/>
- <spcffact/>
- <pkgnm/>
- <healexamflag/>
- <healexamdetlflag/>
- <rsrvdd/>
- <rsrvno/>
- <rsltcnstrsrvstarttm/>
- <rsltcnstrsrvendtm/>
- <rsltcnsthistcd/>
- <visitdd/>
- <rsltcnstseqno/>
- <chnghistseqno/>
- </item>
- </rsltrsrvhistlst>
- <rsltcnstchnglst>
- <item>
- <rsltcnstdd/>
- <rsltcnsttm/>
- <rsltcnstdr/>
- <chngernm/>
- <chngtm/>
- </item>
- </rsltcnstchnglst>
- <patinfo>
- <pid/>
- </patinfo>
- <rsltcnstchng>
- <after/>
- <chngyn/>
- </rsltcnstchng>
- <pantpatlist/>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchhealexamplacecd/>
- <srchcond/>
- <srchpid/>
- <srchcnstdrid/>
- <srchrsrvdd/>
- <srchrsrvmon/>
- <savecnst/>
- <hist>
- <healexamflag/>
- <healexamdetlflag/>
- <rsrvdd/>
- <rsrvno/>
- <pid/>
- <age/>
- <hngnm/>
- <mtel/>
- </hist>
- <chng>
- <healexamflag/>
- <healexamdetlflag/>
- <pid/>
- <rsrvdd/>
- <rsrvno/>
- <chnghistseqno/>
- </chng>
- <chngsave/>
- </send>
- <init>
- <cnst>
- <drlst>
- <itemdr>
- <drid/>
- <drnm/>
- </itemdr>
- </drlst>
- </cnst>
- <baseinfo>
- <rsltcnstflaglst/>
- </baseinfo>
- </init>
- <hidden/>
- <temp>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- </calendar>
- <templst>
- <calendarlist>
- </calendarlist>
- </templst>
- <cnst>
- <drlst/>
- </cnst>
- <lookaheadyn/>
- </temp>
- <info/>
- <codedata>
- <popupmenu>
- <menu>
- <item>
- <label>종합판정</label>
- <func>fSetColJudg</func>
- </item>
- <item>
- <label>상담시간변경</label>
- <func>fSetChngRsltCnst</func>
- </item>
- <item>
- <label>상담취소</label>
- <func>fSetRsltCnstCncl</func>
- </item>
- </menu>
- </popupmenu>
- </codedata>
- </root>
- </instance>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면권한
- // btn_search.disabled = ! checkAuth("R");
- // btn_save.disabled = ! checkAuth("X");
- var instcd = getUserInfo("dutplceinstcd");
- /*
- if (instcd == "032"){
- btn_rsrv.visible = true;
- }else{
- btn_rsrv.visible = false;
- }
- */
- fInitCtrl(); //초기화 작업
- if(checkOpener()){
- model.setValue("/root/main/patinfo/pid", opener.javascript.getParameter("SMAHR00900_PARAM3"));
-
- if(model.getValue("/root/main/patinfo/pid") != ""){
- btn_hist.selected = true; //이력조회 탭
- btn_hist.dispatch("onclick");
- btn_search.dispatch("DOMActivate");
- }
- }
- chk_lookaheadyn.value = 'Y' //미리보기
-
- ]]>
- </script>
- <submission id="TRAHA00001"/>
- <submission id="TRAHB01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/templst"/>
- <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cnst/drlst"/>
- <submission id="TRAHA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvacptlst"/>
- <submission id="TRAHA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/hist" replace="instance" resultref="/root/main/rsltrsrvhistlst"/>
- <submission id="TRAHA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chng" replace="instance" resultref="/root/main/rsltcnstchnglst"/>
- <submission id="TXAHA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savecnst" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chngsave" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
- /**==========================================================================================================================
- * 초기화 작업
- * SPAHA00100_PARAM1 : 예약조회구분 [건진전체(T), 검사실(R), 상담의별(C)]
- * SPAHA00100_PARAM2 : 예약일자
- * SPAHA00100_PARAM3 : 성별구분(종건예약일정)
- * SPAHA00100_PARAM4 : 예약일자 setting될 부모 nodeset
- * SPAHA00100_PARAM5 : 예약시간 setting될 부모 nodeset
- * SPAHA00100_PARAM6 : 건진구분
- * SPAHA00100_PARAM7 : 결과상담의id가 setting될 node
- *==========================================================================================================================*/
- function fInitCtrl(){
- model.removeNodeset("/root/main/rsrvacptlst"); //결과상담예약 상세내역
-
- model.toggle("case_rsltrsrvdetl");
- btn_rsltrsrvdetl.selected = true; //상세내역 탭
-
- var sFlag = "";
- if(m_vHealexamflag == ""){
- if(isPopup()){
- sFlag = opener.javascript.getParameter("SMAHR00900_PARAM2");
- if(sFlag == ""){
- sFlag = getScreenMenuParameter();
- }
- }else{
- sFlag = getScreenMenuParameter();
- }
-
- if(sFlag == ""){
- m_vHealexamflag = "C";
- m_vHealexamdetlflag = "C01";
- }else{
- m_vHealexamflag = sFlag.substr(0, 1);
- m_vHealexamdetlflag = sFlag;
- }
- }
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
-
- var sRsrvDate = getCurrentDate();
- var curDate = null;
- if(sRsrvDate != ""){
- curDate = sRsrvDate.toDate();
- }else{
- curDate = getCurrentDate().toDate();
- }
- model.setValue("/root/temp/calendar/year" , curDate.getDateFormat('YYYY'));
- model.setValue("/root/temp/calendar/month" , curDate.getDateFormat('MM'));
- model.setValue("/root/send/srchrsrvdd" , "C"); //상담예약 (C) , 건진예약(T)
- model.makeValue("/root/main/rsltcnstchng/chngyn" , "N"); //결과상담 시간변경저장여부
- fGetBaseInfo(); //기본코드 조회
- setCalendar(curDate); //AHA001.js
-
- // grd_calendar.refresh();
- model.refresh();
- }
- /**==========================================================================================================================
- * 기본코드 조회
- *==========================================================================================================================*/
- function fGetBaseInfo(){
- healGetCodeList(new Array("S080"), new Array("/root/init/baseinfo/rsltcnstflaglst")); //결과상담구분(내원, 우편, 전화)
- model.setValue("/root/send/srchcond" , "C"); //건진 의사 조회 : 판정의(J)/처방의(P)/결과상담의(C)
- submit("TRAHB01504");
- }
-
- /**==========================================================================================================================
- * 월별 일별 스케쥴내역 조회.
- * vMode : 1 : 일자별 시간대별 가능인원 조회( 시간대만 조회)
- 2 : 월별 일자별 가능 인원 조회(달력만 조회~)
- 0 : 1, 2 동시 조회
- *==========================================================================================================================*/
- function fGetRsrvSchList(vMode){
- var sRsrvMon = model.getValue("/root/temp/calendar/year") + model.getValue("/root/temp/calendar/month") ;
- model.setValue( "/root/send/srchrsrvmon" , sRsrvMon);
-
- if(vMode == 1){
- model.setValue("/root/send/srchrsrvmon" , "");
- model.setValue("/root/send/srchrsrvdd" , fGetCalendarDate(grd_calendar));
- }else if( vMode == 2 ){
- model.setValue("/root/send/srchrsrvdd" , "" );
- }
-
- //일자별 캐파 초기화
- var firstDay = Number((sRsrvMon+ "01").toDate().getDay());
- var lastDay = Number(fGetCalendarDate(grd_calendar).toDate().getMonthDay());
- for(var i=firstDay; i<=lastDay; i++){
- iRow = Math.ceil( ( firstDay + i ) / 7 );
- iCol = ( sRsrvMon + i ).toDate().getDay();
- grd_calendar.valueMatrix(iRow , iCol + 7) = "" ;
- }
- submit("TRAHB01503");
-
- var sNode = null;
- if((vMode == 0 ) || (vMode == 2)){
- sNode = instance1.selectSingleNode("/root/temp/templst/rsrvddlst");
- if( sNode != null ){
- var dd = null ;
- var iCol = null;
- var iRow = null;
- var firstDay = (sRsrvMon+ "01").toDate().getDay();
- sNode = instance1.selectNodes("/root/temp/templst/rsrvddlst");
-
- for(var i=1; i<=sNode.length; i++){
- dd = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/rsrvdd");
- iCol = ( sRsrvMon + dd).toDate().getDay();
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/psnnocnt");
- }
- }
- }
- model.refresh();
- }
-
- /**==========================================================================================================================
- * 부모창에 예약일자/시간 설정
- *==========================================================================================================================*/
- function fSetRsrvDT(){
- if(checkOpener()){
- var sRsrvdd = fGetCalendarDate(grd_calendar);
- var sRsrvtm = "";
-
- if( sRsrvdd == "" ){
- sRsrvdd = opener.javascript.getParameter("SPAHA00100_PARAM2") ;
- }
-
- var vTmRef = opener.javascript.getParameter("SPAHA00100_PARAM5") ;
- if( vTmRef != "" ) {
- sRsrvtm = fGetGrdTm() ;
- if( sRsrvtm == "" ){
- return ;
- }
- }
-
- if( model.getValue("/root/send/srchcond") == "C" ){
- var vCnstDridNode = opener.javascript.getParameter("SPAHA00100_PARAM7") ;
-
- if( vCnstDridNode != "" ) {
- vCnstDrid = model.getValue(cmb_srchcnstdrid.attribute("ref") );
- if( vCnstDrid == "" ){
- messageBox("결과상담의를 선택하세요", "E999");
- return ;
- }
- opener.model.makeNode(vCnstDridNode);
- opener.model.setValue(vCnstDridNode, vCnstDrid);
- }
- }
-
- if( (sRsrvdd != "" ) && (sRsrvtm != "") ){
- var dtRsrvdd = ( sRsrvdd + " " + sRsrvtm + "00" ).toDate("YYYYMMDD hhmmss");
- if( dtRsrvdd <= getCurrentDateTime().toDate("YYYYMMDD hhmmss") ) {
- messageBox("예약시간이 현재 시간 전입니다. ", "E999");
- return ;
- }
- opener.model.setValue(opener.javascript.getParameter("SPAHA00100_PARAM4") , sRsrvdd ) ;
- opener.model.setValue(vTmRef, sRsrvtm ) ;
- opener.model.refresh();
- window.close();
- }
- }
- }
- /**==========================================================================================================================
- * 예약시간 선택 시 해당 일자 예약자 리스트 조회
- *==========================================================================================================================*/
- function fGetRsrvPatList(sNode){
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
-
- var sRsrvDate = fGetCalendarDate(grd_calendar);
- model.setValue("/root/send/srchrsrvdd" , sRsrvDate);
- //2010.01.13 mykim 수정 결과상담예약이 의사별이 아닌 일별 전체를 보여주기 위함.
- var sSrchcnstdrid = model.getValue("/root/send/srchcnstdrid");
- if(submit("TRAHA00901")){
- fSetMerge();
- }
- }
-
- /**==========================================================================================================================
- * 같은 내용의 결과 상딤내역을 MERGE 하는 기능
- *==========================================================================================================================*/
- function fSetMerge() {
- var start = new Array();
- var end = new Array();
- var mergeCnt = 0;
- var chk = true;
-
- grd_rsrvacptlst.rebuildStyle();
- for(var i =0; i <= grd_rsrvacptlst.rows; i++){
- var rsrvPsnnoCnt = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsrvpsnnocnt"));
- var srcHealExamFg = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("healexamflag"));
- var srcRsrvDD = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsrvdd"));
- var srcRsrvNO = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsrvno"));
- var srcRsltCnstSeqNo = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsltcnstseqno"));
-
- if(rsrvPsnnoCnt == "1") {
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("rsrvpsnnocnt")) = true;
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("outexamyn")) = true;
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("rsltcnstflag")) = true;
- if(grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsltcnstendyn")) == "N" ){
- grd_rsrvacptlst.rowStyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
-
- for(var j=0; j<=grd_rsrvacptlst.rows; j++){
- var desHealExamFg = grd_rsrvacptlst.valueMatrix(j , grd_rsrvacptlst.colRef("healexamflag"));
- var desRsrvDD = grd_rsrvacptlst.valueMatrix(j , grd_rsrvacptlst.colRef("rsrvdd"));
- var desRsrvNO = grd_rsrvacptlst.valueMatrix(j , grd_rsrvacptlst.colRef("rsrvno"));
- var desRsltCnstSeqNo = grd_rsrvacptlst.valueMatrix(j , grd_rsrvacptlst.colRef("rsltcnstseqno"));
-
- if(srcHealExamFg == desHealExamFg && srcRsrvDD == desRsrvDD && srcRsrvNO == desRsrvNO && srcRsltCnstSeqNo == desRsltCnstSeqNo){
- if(chk){
- start[mergeCnt] = j;
- chk = false;
- }
- }
- if(srcHealExamFg != desHealExamFg || srcRsrvDD != desRsrvDD || srcRsrvNO != desRsrvNO || srcRsltCnstSeqNo != desRsltCnstSeqNo){
- if(!chk){
- end[mergeCnt] = j - 1;
- chk= true;
- mergeCnt++;
- }
- }
- }
- }else{
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("rsrvpsnnocnt")) = false;
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("outexamyn")) = false;
- grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("rsltcnstflag")) = false;
- }
- }
- //구역을 MERGE한다.
- for(var k=0; k < grd_rsrvacptlst.cols; k++){
- for(var x = 0; x < start.length; x++){
- if(k >= grd_rsrvacptlst.colRef("pid") || grd_rsrvacptlst.colRef("rsltcnstdd") <= k){
- grd_rsrvacptlst.mergeByFree(start[x], k , end[x] , k);
- }
- }
- }
- }
- /**==========================================================================================================================
- *변경된 상담내역을 동기화 한다.
- *==========================================================================================================================*/
- function fSetSyncData(){
- var srcHealExamFg = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("healexamflag"));
- var srcRsrvDD = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsrvdd"));
- var srcRsrvNO = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsrvno"));
- var srcRsltCnstSeqNo = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsltcnstseqno"));
- var chngVal = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.col);
-
- for(var i=0; i<grd_rsrvacptlst.rows; i++){
- if(true == grd_rsrvacptlst.isReadOnly(i , grd_rsrvacptlst.colRef("rsrvpsnnocnt"))){
- var desHealExamFg = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("healexamflag"));
- var desRsrvDD = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsrvdd"));
- var desRsrvNO = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsrvno"));
- var desRsltCnstSeqNo = grd_rsrvacptlst.valueMatrix(i , grd_rsrvacptlst.colRef("rsltcnstseqno"));
-
- if(srcHealExamFg == desHealExamFg && srcRsrvDD == desRsrvDD && srcRsrvNO == desRsrvNO && srcRsltCnstSeqNo == desRsltCnstSeqNo){
- grd_rsrvacptlst.valueMatrix( i , grd_rsrvacptlst.col ) = chngVal;
- }
- }
- }
- }
-
- /**==========================================================================================================================
- *결과상담예약자의 종합판정 내역을 볼수 있는 팝업을 띄운다.
- *==========================================================================================================================*/
- function fSetColJudg(){
- clearParameter("SMAHR00500_PARAM1");
- clearParameter("SMAHR00500_PARAM2");
- setParameter ("SMAHR00500_PARAM1", grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("healexamflag")));
- setParameter ("SMAHR00500_PARAM2", grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("pid")));
- modal("SMAHR00500");
- }
- /**==========================================================================================================================
- *결과 상담 시간을 변경을 하는 기능
- *==========================================================================================================================*/
- function fSetChngRsltCnst() {
- //체크사항 == > 선택영역에 상담내역 존재여부 , 상담완료 여부체크
- var sIdx = grd_rsrvacptlst.row;
- //건진구분 , 예약일자, 예약번호, 결과상담일련번호
- var sHealExamFg = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("healexamflag"));
- var sHealExamDetlFg = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("healexamdetlflag"));
- var sRsrvDD = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsrvdd"));
- var sRsrvNO = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsrvno"));
- var sRsltCnstSeq = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsltcnstseqno"));
- var sRsltcnstremcnts = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsltcnstremcnts"));
- //결과상담완료여부
- var sRsltCnstEndYN = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsltcnstendyn"));
- if(sHealExamFg == "" || sRsrvDD == "" || sRsrvNO == "" || sRsltCnstSeq == ""){
- messageBox("변경 할 예약을","C002");
- return;
- }
- if(sRsltCnstEndYN == "Y"){
- messageBox("이미 상담이", "I002");
- return;
- }
-
- //수정할 상담내역을 복사한다.
- copyNodesetType("/root/send/chngsave" , grd_rsrvacptlst.nodeset + "[" + sIdx + "]" , "replace");
- model.resetInstanceNode("/root/main/rsltcnstchng/after");
- //수정할 시간 선택 후 최초의 빈 인스턴스 삭제
- model.removeNodeset("/root/main/rsltcnstchng/after[0]");
-
- setParameter ("SPAHA00110_PARAM1", sHealExamFg);
- setParameter ("SPAHA00110_PARAM2", sHealExamDetlFg);
- setParameter ("SPAHA00110_PARAM3", "/root/main/rsltcnstchng/before");
- setParameter ("SPAHA00110_PARAM4", "/root/main/rsltcnstchng/after");
- setParameter ("SPAHA00110_PARAM5", sRsltcnstremcnts);
- modal("SPAHA00110");
-
- //변경여부를 수정한다.. ==> Y,N
- if(model.getValue("/root/hidden/okflag") == "ok"){
- model.makeValue("/root/main/rsltcnstchng/chngyn" , "Y");
- model.makeValue("/root/send/chngsave/chngrsltcnstdr" , model.getValue("/root/main/rsltcnstchng/after/rsltcnstdr")); // 변경 상담의
- model.makeValue("/root/send/chngsave/chngrsltcnstdd" , model.getValue("/root/main/rsltcnstchng/after/rsltcnstdd")); // 변경 상담일자
- model.makeValue("/root/send/chngsave/chngrsltcnstrsrvstarttm" , model.getValue("/root/main/rsltcnstchng/after/rsltcnstrsrvstarttm")); // 변경 시작시간
- model.makeValue("/root/send/chngsave/chngrsltcnstrsrvendtm" , model.getValue("/root/main/rsltcnstchng/after/rsltcnstrsrvendtm")); // 변경 끝시간
- model.makeValue("/root/send/chngsave/chngrsltcnstremcnts" , model.getValue("/root/main/rsltcnstchng/after/rsltcnstremcnts")); // 변경 비고
- }
- }
- /**==========================================================================================================================
- *결과 상담을
- *==========================================================================================================================*/
- function fSetRsltCnstCncl(){
- //체크사항 == > 선택영역에 상담내역 존재여부 , 상담완료 여부체크
- var sIdx = grd_rsrvacptlst.row;
- //건진구분 , 예약일자, 예약번호, 결과상담일련번호
- var sHealExamFg = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("healexamflag"));
- var sHealExamDetlFg = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("healexamdetlflag"));
- var sRsrvDD = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsrvdd"));
- var sRsrvNO = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsrvno"));
- var sRsltCnstSeq = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsltcnstseqno"));
- //결과상담완료여부
- var sRsltCnstEndYN = grd_rsrvacptlst.valueMatrix(sIdx , grd_rsrvacptlst.colRef("rsltcnstendyn"));
- grd_rsrvacptlst.addStatus(sIdx , "delete");
- }
- //=================================
- // 화면 우측 상단에 크기 조절 버튼
- //=================================
- function fGridWidthcontrol(sStatus){
- if(sStatus == "Y") { //늘릴때
- btn_rsltrsrvdetl.attribute("left") ="0px";
- btn_hist.attribute("left") ="84px";
- switch1.attribute("left") ="0px";
- switch1.attribute("width") ="1190px";
- btn_refresh.attribute("left") ="1054px";
- btn_totrsrvdt.attribute("left") ="1119px";
- line2.attribute("x2") ="1183px";
- line9.attribute("x2") ="0px";
- grd_rsrvacptlst.attribute("width") ="1177px";
- group6.attribute("width") ="1187px";
- line18.attribute("x1") ="1115px";
- line18.attribute("x2") ="1115px";
- roundrect3.attribute("width") ="1187px";
- btn_search.attribute("left") ="1125px";
- line3.attribute("x2") ="1183px";
- grd_cnsthistlst.attribute("width") ="1178px";
- line4.attribute("x2") ="1183px";
- grd_chngcnstlst.attribute("width") ="1178px";
- }
- if(sStatus == "N") { //줄일때
- btn_rsltrsrvdetl.attribute("left") ="406px";
- btn_hist.attribute("left") ="490px";
- switch1.attribute("left") ="405px";
- switch1.attribute("width") ="785px";
- btn_refresh.attribute("left") ="649px";
- btn_totrsrvdt.attribute("left") ="714px";
- line2.attribute("x2") ="778px";
- line9.attribute("x2") ="400px";
- grd_rsrvacptlst.attribute("width") ="773px";
- group6.attribute("width") ="782px";
- line18.attribute("x1") ="710px";
- line18.attribute("x2") ="710px";
- roundrect3.attribute("width") ="782px";
- btn_search.attribute("left") ="720px";
- line3.attribute("x2") ="778px";
- grd_cnsthistlst.attribute("width") ="773px";
- line4.attribute("x2") ="778px";
- grd_chngcnstlst.attribute("width") ="773px";
- }
- model.refresh();
- }
- //===========================================================
- // 상담의에 대한 결과상담예약내역 , 결과상담예약 상세내역 초기화
- //2010.01.13 mykim 수정 결과상담예약이 의사별이 아닌 일별 전체를 보여주기 위함.
- //===========================================================
- function fInitInfo(){
- model.setValue("/root/send/srchcnstdrid","");
- //결과상담예약내역
- model.removeNodeset("/root/temp/templst/rsrvddlst");
- //달력의 월별 일자별 가능 인원 조회된 내역 삭제
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/sun_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/mon_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/tue_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/wed_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/thu_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/fri_memo");
- model.resetInstanceNode("/root/temp/calendar/weeklist/list/sat_memo");
- //model.resetInstanceNode("/root/temp/templist/calendarlist");
- //결과상담예약 상세내역
- model.removeNodeset("/root/main/rsrvacptlst/item");
- //달력 초기화
- var curDate = null;
- curDate = getCurrentDate().toDate();
- setCalendar(curDate);
-
- grd_calendar.rebuild();
- grd_rsrvacptlst.rebuild();
- model.refresh();
- }
- /**=============================================================================================
- @desc : 건진결과상담 명단 출력.(선택내역만 출력)
- *=============================================================================================*/
- function fRsltPatListPrnt(){
- var nodeList = instance1.selectNodes(grd_rsrvacptlst.nodeset + "[rsrvpsnnocnt='1']");
- if((nodeList == null) || (nodeList.length < 1)){
- messageBox("출력할 내역이 ", "I004");
- return ;
- }
- model.removeNodeset( "/root/main/prntpatlist");
- model.makeNode("/root/main/prntpatlist");
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/main/prntpatlist", rCSV);
-
- //2017/01/16 이정택(출력물에 진료의 자동으로 변경되도록 수정)
- model.makeValue("/root/tmp/drinfo/orddrid", grd_rsrvdrlst.valueMatrix(grd_rsrvdrlst.row, grd_rsrvdrlst.colRef("drid")));
- model.makeValue("/root/tmp/drinfo/orddrnm", grd_rsrvdrlst.valueMatrix(grd_rsrvdrlst.row, grd_rsrvdrlst.colRef("drnm")));
- //2017/01/16 이정택(출력물에 진료의 자동으로 변경되도록 수정)
-
- if(chk_lookaheadyn.value == "Y"){
- exeReportPreview("RPAHA00407", "XMLSTR");
- }else{
- exeReportPreview("RPAHA00407", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
- }
-
- function getImgURL(imgcd, type){
- if (type == null || type == "") {
- type = "gif";
- }
- return getDomain()+"/himed/webapps/com/commonweb/images/"+imgcd+"." + type;
- }
-
- function Cekday(ckdd)
- {
- var d, ckday, x;
- var x = new Array("일요일", "월요일", "화요일");
- var x = x.concat("수요일","목요일", "금요일");
- var x = x.concat("토요일");
- d = new Date(ckdd.substr(0,4),ckdd.substr(4,2)-1,ckdd.substr(6,2));
- ckday = d.getDay();
- return( x[ckday]);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">결과상담예약관리</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption11" class="tit_2" style="left:0px; top:10px; width:144px; height:15px; ">상담의 리스트</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:30px; x2:400px; y2:30px; "/>
- <multilinegrid id="grd_calendar" nodeset="/root/temp/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="48, 54, 52, 56, 58, 61, 58" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:422px; width:400px; height:315px; ">
- <row>
- <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
- <col ref="mon" style="border-bottom-width:0px; "/>
- <col ref="tue" style="border-bottom-width:0px; "/>
- <col ref="wed" style="border-bottom-width:0px; "/>
- <col ref="thu" style="border-bottom-width:0px; "/>
- <col ref="fri" style="border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" style="border-top-width:0px; "/>
- <col ref="mon_memo" style="border-top-width:0px; "/>
- <col ref="tue_memo" style="border-top-width:0px; "/>
- <col ref="wed_memo" style="border-top-width:0px; "/>
- <col ref="thu_memo" style="border-top-width:0px; "/>
- <col ref="fri_memo" style="border-top-width:0px; "/>
- <col ref="sat_memo" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setCellColor(grd_calendar);
- model.toggle("case_rsltrsrvdetl");
- btn_save.disabled = false;
- btn_rsltrsrvdetl.selected = true;
- var vFlag = model.getValue("/root/temp/flag");
- fGetRsrvPatList();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- </multilinegrid>
- <line id="line1" class="line_1" style="x1:0px; y1:372px; x2:400px; y2:372px; "/>
- <group id="grp_calendar" style="left:0px; top:377px; width:400px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:400px; height:40px; "/>
- <button id="btn_preyear" class="icon_pre_year" style="left:110px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("Y", -1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_nextyear" class="icon_next_year" style="left:285px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("Y", 1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:129px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("M", -1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_nextmonth" class="icon_next_month" style="left:266px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("M", 1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/temp/calendar/year" class="calendar_output" style="left:155px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/temp/calendar/month" class="calendar_output" style="left:205px; top:9px; width:30px; height:19px; "/>
- <caption id="caption8" class="calendar_output" style="left:185px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption9" class="calendar_output" style="left:235px; top:9px; width:20px; height:19px; ">월</caption>
- </group>
- <datagrid id="grd_rsrvdrlst" nodeset="/root/init/cnst/drlst/itemdr" caption="상담의ID^상담의명" colsep="^" colwidth="100, 150" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:35px; width:400px; height:310px; ">
- <col ref="drid"/>
- <col ref="drnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- model.setValue("/root/send/srchcnstdrid", grd_rsrvdrlst.valueMatrix( grd_rsrvdrlst.row, grd_rsrvdrlst.colRef("drid")));
- fGetRsrvSchList(2);
- model.removeNodeset("/root/main/rsrvacptlst/item");
- grd_rsrvacptlst.rebuild();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_clear" class="btn4_letter3" style="left:332px; top:350px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInfo();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:355px; width:144px; height:14px; ">결과상담예약내역</caption>
- <switch id="switch1" style="left:405px; top:30px; width:785px; height:708px; ">
- <case id="case_rsltrsrvdetl" selected="true">
- <datagrid id="grd_rsrvacptlst" nodeset="/root/main/rsrvacptlst/item" caption="선택^예약시간^등록번호^성명^건진일자^전화번호^외래여부^예약내역^본인여부^내원자^상담의^방문시간^상담시작시간^상담종료시간^상담완료^예약접수 전달사항^비고^특이사항^패키지종류^건진구분^건진상세구분^예약일자^예약번호^예약시작시간^예약끝시간^예약이력코드^방문일자^예약변경이력번호^결과상담일련번호^결과상담예약일자" colsep="^" colwidth="30, 60, 60, 60, 90, 70, 55, 70, 55, 70, 0, 0, 0, 0, 55, 158, 150, 150, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:30px; width:773px; height:672px; ">
- <col checkvalue="1,0" ref="rsrvpsnnocnt" type="checkbox"/>
- <col ref="rsrvtm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="mtel"/>
- <col checkvalue="Y,N" ref="outexamyn" type="checkbox"/>
- <col ref="rsltcnstflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/S080">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="ownyn" type="checkbox"/>
- <col class="gridinput" ref="visitor" type="input"/>
- <col disabled="true" ref="rsltcnstdr" type="combo">
- <choices>
- <itemset nodeset="/root/init/cnst/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </col>
- <col ref="visittm" type="inputbutton" format="hh:nn"/>
- <col ref="rsltcnststarttm" type="inputbutton" format="hh:nn"/>
- <col ref="rsltcnstendtm" type="inputbutton" format="hh:nn"/>
- <col checkvalue="Y,N" ref="rsltcnstendyn" type="checkbox"/>
- <col ref="remcnts"/>
- <col ref="rsltcnstremcnts" type="input"/>
- <col ref="spcffact" type="input"/>
- <col ref="pkgnm"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsltcnstrsrvstarttm" visibility="hidden"/>
- <col ref="rsltcnstrsrvendtm" visibility="hidden"/>
- <col ref="rsltcnsthistcd" visibility="hidden"/>
- <col ref="visitdd" visibility="hidden"/>
- <col ref="chnghistseqno" visibility="hidden"/>
- <col ref="rsltcnstseqno" visibility="hidden"/>
- <col ref="rsltcnstdd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell()) {
- if(grd_rsrvacptlst.col == grd_rsrvacptlst.colRef("ownyn")){
- if(grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row, grd_rsrvacptlst.colRef("ownyn")) == "Y"){
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row, grd_rsrvacptlst.colRef("visitor")) = grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row, grd_rsrvacptlst.colRef("hngnm"));
- }else{
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row, grd_rsrvacptlst.colRef("visitor")) = "";
- }
- }
- fSetSyncData();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- model.setValue("/root/send/hist/healexamflag" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("healexamflag")));
- model.setValue("/root/send/hist/healexamdetlflag" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("healexamdetlflag")));
- model.setValue("/root/send/hist/pid" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("pid")));
- model.setValue("/root/send/hist/rsrvdd" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsrvdd")));
- model.setValue("/root/send/hist/rsrvno" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsrvno")));
- model.setValue("/root/main/patinfo/pid" , grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("pid")));
-
- if(submit("TRAHA00902")){
- btn_hist.selected = true;
- model.toggle("case_hist");
- model.resetInstanceNode(grd_chngcnstlst.nodeset);
- btn_save.disabled = true;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var curDate = getCurrentDate();
- var curTime = getNewDate().getDateFormat("hhmm");
- if(grd_rsrvacptlst.col == grd_rsrvacptlst.colRef("visittm")){
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("visittm")) = curTime;
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("visitdd")) = curDate;
- grd_rsrvacptlst.addStatus(grd_rsrvacptlst.row , "update");
- }
- if(grd_rsrvacptlst.col == grd_rsrvacptlst.colRef("rsltcnststarttm")){
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsltcnststarttm")) = curTime;
- grd_rsrvacptlst.addStatus(grd_rsrvacptlst.row , "update");
- }
- if(grd_rsrvacptlst.col == grd_rsrvacptlst.colRef("rsltcnstendtm")){
- grd_rsrvacptlst.valueMatrix(grd_rsrvacptlst.row , grd_rsrvacptlst.colRef("rsltcnstendtm")) = curTime;
- grd_rsrvacptlst.addStatus(grd_rsrvacptlst.row , "update");
- }
- fSetSyncData();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_rsrvacptlst", false, "/root/codedata/popupmenu/menu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- grd_rsrvacptlst.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:152px; height:14px; ">결과상담예약 상세내역</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:778px; y2:25px; "/>
- <button id="btn_totrsrvdt" class="btn2_letter4" style="left:714px; top:5px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != ""){
- grd_rsrvacptlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_refresh" class="btn2_letter4" style="left:649px; top:5px; width:64px; height:19px; ">
- <caption>새로고침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsrvSchList(2);
- fGetRsrvPatList();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_hist">
- <caption id="caption3" class="tit_2" style="left:5px; top:40px; width:144px; height:14px; ">결과상담 내역</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:55px; x2:778px; y2:55px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:355px; width:152px; height:13px; ">결과상담예약 변경내역</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:370px; x2:778px; y2:370px; "/>
- <datagrid id="grd_chngcnstlst" nodeset="/root/main/rsltcnstchnglst/item" caption="예약일자^예약시간^상담의^변경자^변경일자" colsep="^" colwidth="100, 120, 100, 100, 150" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:375px; width:773px; height:327px; ">
- <col ref="rsltcnstdd" format="yyyy-mm-dd"/>
- <col ref="rsltcnsttm"/>
- <col ref="rsltcnstdr" type="combo">
- <choices>
- <itemset nodeset="/root/init/cnst/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </col>
- <col ref="chngernm"/>
- <col ref="chngtm" format="yyyy-mm-dd hh:nn:ss"/>
- </datagrid>
- <group id="group6" style="left:0px; top:0px; width:782px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:782px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:720px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchpid = model.getValue("/root/main/patinfo/pid");
- if(srchpid == ''){
- messageBox("등록번호를 ", "C001");
- model.setFocus("input19");
- return;
- }
- model.setValue("/root/send/hist/healexamflag" , m_vHealexamflag);
- model.setValue("/root/send/hist/healexamdetlflag" , m_vHealexamdetlflag);
- model.setValue("/root/send/hist/pid" , srchpid);
- model.setValue("/root/send/hist/rsrvdd" , "");
- model.setValue("/root/send/hist/rsrvno" , "");
- submit("TRAHA00902");
-
- model.setValue("/root/send/chng/healexamflag" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("healexamflag")));
- model.setValue("/root/send/chng/healexamdetlflag" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("healexamdetlflag")));
- model.setValue("/root/send/chng/pid" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("pid")));
- model.setValue("/root/send/chng/rsrvdd" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("rsrvdd")));
- model.setValue("/root/send/chng/rsrvno" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("rsrvno")));
- model.setValue("/root/send/chng/chnghistseqno" , grd_cnsthistlst.valueMatrix(1 , grd_cnsthistlst.colRef("chnghistseqno")));
- submit("TRAHA00903");
- ]]>
- </script>
- </button>
- <line id="line18" class="line_4" style="x1:710px; y1:7px; x2:710px; y2:29px; border-left-style:solid; "/>
- <input id="input19" ref="/root/main/patinfo/pid" class="input_search" style="left:97px; top:8px; width:83px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- btn_srchpat.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption22" class="search_name" style="left:8px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
- <output id="output2" ref="/root/send/hist/pid" class="output_search" style="left:203px; top:8px; width:57px; height:19px; "/>
- <output id="output1" ref="/root/send/hist/age" class="output_search" style="left:263px; top:8px; width:34px; height:19px; "/>
- <output id="output3" ref="/root/send/hist/hngnm" class="output_search" style="left:300px; top:8px; width:94px; height:19px; "/>
- <button id="btn_srchpat" class="icon_search" navindex="2" style="left:184px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00900", "pid", input19.currentText , "N", "/root/send/hist" ,output2.attribute("ref"), output3.attribute("ref"));
- model.setValue("/root/main/patinfo/pid", model.getValue("/root/send/hist/pid"));
- input19.refresh();
- if(model.getValue("/root/send/hist/pid") != ""){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_cnsthistlst" nodeset="/root/main/rsltrsrvhistlst/item" caption="선택^예약일자^예약시간^등록번호^성명^건진일자^전화번호^외래여부^예약내역^본인여부^내원자^상담의^방문시간^상담시작시간^상담종료시간^상담완료^예약접수 전달사항^비고^특이사항^패키지종류^건진구분^건진상세구분^예약일자^예약번호^에약시삭시간^예약끝시간^예약이력코드^방문일자^결과상담일련번호^예약변경이력번호" colsep="^" colwidth="35, 80, 100, 60, 60, 70, 90, 50, 100, 50, 100, 100, 80, 80, 80, 50, 119, 150, 150, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" frozencols="5" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:5px; top:60px; width:773px; height:292px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="rsltcnstdd" format="yyyy-mm-dd" style="left:0px; top:23px; width:80px; height:23px; "/>
- <col ref="rsltcnsttm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="mtel"/>
- <col checkvalue="Y,N" disabled="false" ref="outexamyn" type="checkbox"/>
- <col ref="rsltcnstflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/S080">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="ownyn" type="checkbox"/>
- <col class="gridinput" ref="visitor" type="input"/>
- <col disabled="true" ref="rsltcnstdr" type="combo">
- <choices>
- <itemset nodeset="/root/init/cnst/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </col>
- <col ref="visittm" type="inputbutton" format="hh:nn"/>
- <col ref="rsltcnststarttm" type="inputbutton" format="hh:nn"/>
- <col ref="rsltcnstendtm" type="inputbutton" format="hh:nn"/>
- <col checkvalue="Y,N" ref="rsltcnstendyn" type="checkbox"/>
- <col ref="remcnts"/>
- <col ref="rsltcnstremcnts" type="input"/>
- <col ref="spcffact" type="input"/>
- <col ref="pkgnm"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsltcnstrsrvstarttm" visibility="hidden"/>
- <col ref="rsltcnstrsrvendtm" visibility="hidden"/>
- <col ref="rsltcnsthistcd" visibility="hidden"/>
- <col ref="visitdd" visibility="hidden"/>
- <col ref="rsltcnstseqno" visibility="hidden"/>
- <col ref="chnghistseqno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- model.setValue("/root/send/chng/healexamflag" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("healexamflag")));
- model.setValue("/root/send/chng/healexamdetlflag" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("healexamdetlflag")));
- model.setValue("/root/send/chng/pid" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("pid")));
- model.setValue("/root/send/chng/rsrvdd" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("rsrvdd")));
- model.setValue("/root/send/chng/rsrvno" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("rsrvno")));
- model.setValue("/root/send/chng/chnghistseqno" , grd_cnsthistlst.valueMatrix(grd_cnsthistlst.row , grd_cnsthistlst.colRef("chnghistseqno")));
- submit("TRAHA00903")
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_rsltrsrvdetl" class="btn_sw" group="tab" selected="true" style="left:405px; top:8px; width:84px; height:22px; ">
- <caption>상세내역</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case_rsltrsrvdetl");
- btn_save.disabled = false;
- ]]>
- </script>
- </button>
- <button id="btn_hist" class="btn_sw" group="tab" selected="true" style="left:489px; top:8px; width:84px; height:22px; ">
- <caption>이력 및 조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case_hist");
- btn_save.disabled = true;
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_pre_month" style="left:1157px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridWidthcontrol("Y");
- ]]>
- </script>
- </button>
- <button id="button2" class="icon_next_month" style="left:1172px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridWidthcontrol("N");
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/srchhealexamflag" visibility="visible" appearance="full" cols="3" overflow="hidden" style="left:265px; top:10px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>종합건진</label>
- <value>C</value>
- </item>
- <item>
- <label>통합건진</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- m_vHealexamflag = model.getValue("/root/send/srchhealexamflag");
- m_vHealexamdetlflag = model.getValue("/root/send/srchhealexamflag") + "01";
- model.setValue("/root/send/srchhealexamdetlflag", model.getValue("/root/send/srchhealexamflag") + "01");
-
- var sRsrvDate = getCurrentDate();
- var curDate = null;
- if(sRsrvDate != ""){
- curDate = sRsrvDate.toDate();
- }else{
- curDate = getCurrentDate().toDate();
- }
- model.setValue("/root/temp/calendar/year" , curDate.getDateFormat('YYYY'));
- model.setValue("/root/temp/calendar/month" , curDate.getDateFormat('MM'));
- model.setValue("/root/send/srchrsrvdd" , "C"); //상담예약 (C) , 건진예약(T)
- model.makeValue("/root/main/rsltcnstchng/chngyn" , "N"); //결과상담 시간변경저장여부
- fGetBaseInfo(); //기본코드 조회
- setCalendar(curDate); //AHA001.js
-
- grd_calendar.refresh();
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:754px; width:1195px; height:28px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //1. 저장할 데이터 존재여부 체크
- //1-1. savedata에 저장할 데이터를 담는다.
- //1-2. savedata에 데이터가 들어있는지 체크..없으면 return
- if(model.getValue("/root/main/rsltcnstchng/chngyn") == "Y"){
- if(submit("TXAHA00902")){
- model.setValue("/root/main/rsltcnstchng/chngyn", "N");
- }
- }
-
- //2. savedata에 data가 있으면 저장.
- if(model.getValue("/root/main/rsltcnstchng/chngyn") == "N"){
- if(messageBox("", "Q002") == 6){
- var savedata = getGridUpdateData(grd_rsrvacptlst);
- model.setValue("/root/send/savecnst", savedata );
- if(submit("TXAHA00901")){
- btn_refresh.dispatch("DOMActivate");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_prntlist" class="btn4_letter2" style="left:1080px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRsltPatListPrnt();
- ]]>
- </script>
- </button>
- <select id="chk_lookaheadyn" ref="/root/temp/lookaheadyn" overflow="visible" appearance="full" style="left:1010px; top:8px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미리보기</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_rsrv" class="btn4_letter3" style="left:943px; top:5px; width:68px; height:22px; ">
- <caption>상담지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = getUserInfo("dutplceinstcd");
- if (instcd == "032"){
- var ckdd = model.getValue("/root/main/rsltrsrvhistlst/item/rsltcnstdd");
- model.makeValue("/root/main/rsltrsrvhistlst/item/logourl", getImgURL("newlogo"+getUserInfo("dutplceinstcd"), "jpg"));
- model.makeValue("/root/main/rsltrsrvhistlst/item/day", Cekday(ckdd) );
- // exeReportPreview("RPAHA00408", "XMLSTR", "", "", "false","","","","","", "", "");
- var cnt = getNodesetCount("/root/main/rsltrsrvhistlst/item");
-
- for(var i = 1; i<=cnt; i++){
- if(model.getValue("/root/main/rsltrsrvhistlst/item['" + i + "']/chkyn")=='Y'){
- model.makeNode("/root/tmp/printinfo");
- model.copyNode("/root/tmp/printinfo", "/root/main/rsltrsrvhistlst/item['" + i + "']");
- exeReportPreview("RPAHA00408", "XMLSTR");
- }else{
- continue;
- }
- }
- }else if(instcd == "031"){
- var ckdd = model.getValue("/root/main/rsltrsrvhistlst/item/rsltcnstdd");
- model.makeValue("/root/main/rsltrsrvhistlst/item/logourl", getImgURL("logo"+getUserInfo("dutplceinstcd")+"gunjin", "jpg"));
- model.makeValue("/root/main/rsltrsrvhistlst/item/day", Cekday(ckdd) );
-
- var cnt = getNodesetCount("/root/main/rsltrsrvhistlst/item");
-
- for(var i = 1; i<=cnt; i++){
- if(model.getValue("/root/main/rsltrsrvhistlst/item['" + i + "']/chkyn")=='Y'){
- model.makeNode("/root/tmp/printinfo");
- model.copyNode("/root/tmp/printinfo", "/root/main/rsltrsrvhistlst/item['" + i + "']");
- exeReportPreview("RPAHA00420", "XMLSTR");
- }else{
- continue;
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|