12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>예약시간관리</xhtml:title>
- <model id="model1">
- <![CDATA[//]]>
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rsrvtmcreate>
- <rsrvtmlist>
- <rsrvno/>
- <rsrvtm/>
- <maxoutcnt/>
- <maxincnt/>
- <maxhealexamcnt/>
- <maxtrustcnt/>
- <maxallcnt/>
- <sum/>
- <rsrvdd/>
- <excuroomcd/>
- <suppdeptcd/>
- <openflag/>
- <pseudo/>
- <sortby/>
- <yeyakflag/>
- <allday/>
- </rsrvtmlist>
- </rsrvtmcreate>
- <rsrvtmappprescond>
- <rsrvtmlist>
- <rsrvno/>
- <rsrvtm/>
- <maxoutcnt/>
- <maxincnt/>
- <maxhealexamcnt/>
- <maxtrustcnt/>
- <maxallcnt/>
- <sum/>
- <rsrvdd/>
- <excuroomcd/>
- <suppdeptcd/>
- </rsrvtmlist>
- <rsrvtminfo>
- <rsrvtm/>
- <outcnt/>
- <incnt/>
- <healexamcnt/>
- <trustcnt/>
- <allcnt/>
- </rsrvtminfo>
- <updtresn>
- <updtresndesc/>
- </updtresn>
- </rsrvtmappprescond>
- </main>
- <send>
- <rsrvdd/>
- <excuroomcd/>
- <year/>
- <month/>
- <data2>
- <frdt/>
- <todt/>
- <excuroomcd/>
- <suppdeptcd/>
- </data2>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data3>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- </initexecroom>
- <suppdept>
- <suppdeptcd/>
- </suppdept>
- </cmb_info>
- </data3>
- <req>
- <data/>
- <flag/>
- </req>
- </send>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- <initexcuroomcd>
- <excuroomcd/>
- </initexcuroomcd>
- </cmb_info>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- <max/>
- </rsrvcalendar>
- </curerprescondlist>
- <calenlist>
- <calendinfo>
- <basedd/>
- <dutflag/>
- </calendinfo>
- </calenlist>
- <rsrvidinfo/>
- </init>
- <hidden>
- <tminfo>
- <frdt/>
- <todt/>
- <frtm/>
- <totm/>
- <term/>
- <icnt/>
- <ocnt/>
- <hcnt/>
- <tcnt/>
- <allcnt/>
- <gweekday/>
- <suppdept/>
- <rsrvdd/>
- <excuroomcd/>
- <allday/>
- <hofrdt/>
- <hotodt/>
- <gb>9</gb>
- </tminfo>
- <data/>
- <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>
- <rsrvdd>
- <rsrvtmlist>
- <rsrvdd/>
- <excuroomcd/>
- </rsrvtmlist>
- </rsrvdd>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- ipt_startrsrvdd.value = getCurrentDate();
- ipt_endrsrvdd.value = getCurrentDate();
-
- //검사실코드 갖고오기
- submit("TRAEA01301", false);
- if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
- caption15.visible = true;
- cmb_deptcd.visible = true;
- btn_crettm.disabled = true;
- btn_grdadd.disabled = true;
- btn_grddel.disabled = true;
- btn_save.disabled = true;
- button8.disabled = true;
- button19.disabled = true;
- button7.disabled = true;
- button39.disabled = true;
- btn_del.disabled = true;
- }else{
- caption15.visible = false;
- cmb_deptcd.visible = false;
- btn_crettm.disabled = false;
- btn_grdadd.disabled = false;
- btn_grddel.disabled = false;
- btn_save.disabled = false;
- button8.disabled = false;
- button19.disabled = false;
- button7.disabled = false;
- button39.disabled = false;
- btn_del.disabled = false;
- }
- //*********************************************************************************************************************************************
- //담당 검사실 갖고오기
- submit("TRAEA01115",false);
-
- //담당 검사실 세팅
- model.setValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid",model.getValue("/root/init/cmb_info/initexcuroomcd[1]/excuroomcd"));
- //*********************************************************************************************************************************************
-
- model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
- fInitialize();
-
- //요청번호 : 20170420002, 신경과 검사실 업무제한요청건
- //20170424 by kya 진료지원 공통코드에서 수정자격 가져오기 'T0002'
- fSetAutho();
-
- // 처음 선택된 검사실의 월요일 시간이 조호됨.
- btn_mon.dispatch("DOMActivate");
- initCalendar();
- /*
- model.setValue("/root/hidden/tminfo/gweekday","00000001");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- initCalendar();
- submit("TRAEB00901", false);
- */
- fGridSetSum(grd_rsrvtmcreate);
- setGridRsrvddCheck();
-
- fRsrvtmmdf("select");
-
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRAEB00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmcreate"/>
- <submission id="TXAEB00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/data"/>
- <submission id="TXAEB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/data"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmappprescond"/>
- <submission id="TRAEB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmappprescond"/>
- <submission id="TXAEB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/data"/>
- <submission id="TXAEB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/data"/>
- <submission id="TRAEB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/rsrvdd"/>
- <submission id="TRAEA01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAAA00001"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.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="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript">
- <![CDATA[
- function setGridRsrvddCheck() {
- // 해당하는 검사실에 따른 예약 달력에 표시
- model.setValue("/root/send/year",model.getValue("/root/hidden/calendar/year"));
- model.setValue("/root/send/month",model.getValue("/root/hidden/calendar/month"));
-
- submit("TRAEB00903");
-
-
- for (var i = 1; i < grd_temp.rows; i++) {
- var rsrvdd = model.getValue("/root/hidden/rsrvdd/rsrvtmlist[" + i + "]/rsrvdd"); // 예약날짜
- var isMonth = model.getValue("/root/hidden/calendar/month"); //현재 월
- var isYear = model.getValue("/root/hidden/calendar/year"); //현재 년도
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y'); // 날짜형식으로
- var startDay = isDate.getDay(); // 현재 월의 시작 날짜
-
- var colidx = rsrvdd.toDate().getDay(); //시작날짜의 index
-
- for(var h = 1; h<grd_calendar.rows;h++) {
-
- for(var j = 0; j < 7 ; j++) {
- var dd = model.getValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"));
-
- if(dd<10)
- dd= "0"+dd;
-
- // alert("rsrvdd : #"+rsrvdd.substr(6,2)+"# || dd : #"+dd+"# ("+h+" , "+j+")");
-
- if( dd == rsrvdd.substr(6,2)) {
- // alert( dd+ " = "+rsrvdd.substr(6,2));
- if(dd<10)
- dd=dd.substr(1,1);
- // model.setValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"), dd );
- model.setValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"), dd +" *");
-
- }
- }
- }
-
- }
- grd_calendar.refresh();
- }
-
-
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(curDate);
- }
-
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- //grd_calendar.rebuild()
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- fCalendar();
-
- setRsrvPresCondByMonth();
- }
-
- function setRsrvPresCondByMonth() {
-
- submit("TRAEA01107");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
-
- for (var i = 1; i < grd_temp1.rows; i++) {
- var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
- }
- }
-
- function fCalendar(){
- if (submit("TRAEA02012")){
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- var startDay = isDate.getDay();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("i==" + i + "==dutflag==" + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag"));
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- grd_calendar.refresh();
- }
- }
-
- //==============================================================================================
- // 요청번호 : 20170420002, 신경과 검사실 업무제한요청건
- // 20170424 by kya 진료지원 공통코드에서 수정자격 가져오기 'T0003'
- //==============================================================================================
- function fSetAutho() {
- model.resetInstanceNode("/root/init/rsrvidinfo");
-
- suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- astGetComboList( new Array("T0003"), new Array("/root/init/rsrvidinfo"), suppdeptcd );
- submit("TRAAA00001", false);
-
- var idx_rsrv = 0;
- var rsrvidCnt = getNodesetCount("/root/init/rsrvidinfo/T0003");
-
- for( var i = 1 ; i<= rsrvidCnt ; i++){
- if( model.getValue("/root/init/rsrvidinfo/T0003["+ i +"]/cdid") == getUserId() ){
- idx_rsrv++;
- }
- }
-
- //alert( "idx_rsrv = " + idx_rsrv );
-
- if( idx_rsrv == 0 ){
- btn_crettm.disabled = false;
- button39.disabled = false;
- btn_del.disabled = false;
- }else {
- btn_crettm.disabled = true;
- button39.disabled = true;
- btn_del.disabled = true;
- }
- }
-
- function setCellColor(gridObj) {
-
- var calRow = gridObj.row;
- var calCol = gridObj.col;
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- //gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- }
- function fInitialize() {
-
-
- submit("TRAEA01301");
-
-
- model.refresh();
- }
-
- function fGenTime(gWeekDay){
- model.refresh();
- var frtm = model.getValue("/root/hidden/tminfo/frtm"); //시작일자
- var totm = model.getValue("/root/hidden/tminfo/totm"); //종료일자
- var term = model.getValue("/root/hidden/tminfo/term"); //간격
-
- if(!isValidDateTime(frtm, "hhmm")) {
- messageBox("시작 시간형식이 정확하지 않습니다. 다시", "C001");
- return;
- }
-
- if(!isValidDateTime(totm, "hhmm")) {
- messageBox("종료 시간형식이 정확하지 않습니다. 다시", "C001");
- return;
- }
-
- if(frtm > totm) {
- messageBox("시작시간이더 큽니다. 다시", "C001");
- return;
- }
-
- if(term == "") {
- messageBox("간격을", "C001");
- return;
- }
-
- var iTerm = parseInt(term);
- var tm = getTimeInterval(frtm, totm) / 60;
- if(iTerm > tm) {
- messageBox("시작시간과 종료시간의 차가 분간격보다 작습니다. 다시", "C001");
- return;
- }
-
- if (model.getValue("/root/hidden/tminfo/hofrdt") != ""){
- if(!isValidDateTime(model.getValue("/root/hidden/tminfo/hofrdt"), "hhmm")) {
- messageBox("휴무 시작 시간형식이 정확하지 않습니다. 다시", "C001");
- return;
- }
- }
- if (model.getValue("/root/hidden/tminfo/hotodt") != ""){
- if(!isValidDateTime(model.getValue("/root/hidden/tminfo/hotodt"), "hhmm")) {
- messageBox("휴무 종료 시간형식이 정확하지 않습니다. 다시", "C001");
- return;
- }
- }
- if (model.getValue("/root/hidden/tminfo/hofrdt") != ""){
- if (model.getValue("/root/hidden/tminfo/hotodt") == ""){
- messageBox("휴무 종료 시간을", "C001");
- return;
- }
- }
- if (model.getValue("/root/hidden/tminfo/hotodt") != ""){
- if (model.getValue("/root/hidden/tminfo/hofrdt") == ""){
- messageBox("휴무 시작 시간을", "C001");
- return;
- }
- }
- if (model.getValue("/root/hidden/tminfo/ocnt")== "" && model.getValue("/root/hidden/tminfo/icnt")== "" &&model.getValue("/root/hidden/tminfo/hcnt")== "" &&model.getValue("/root/hidden/tminfo/tcnt")== "" &&model.getValue("/root/hidden/tminfo/allcnt")== "" ){
- if (model.getValue("/root/hidden/tminfo/hofrdt") == ""){
- messageBox("외래/입원/건진/응급/ALL 중 해당인원을", "C001");
- return;
- }
- }
-
- var ocnt = model.getValue("/root/hidden/tminfo/ocnt");
- var icnt = model.getValue("/root/hidden/tminfo/icnt");
- var hcnt = model.getValue("/root/hidden/tminfo/hcnt");
- var tcnt = model.getValue("/root/hidden/tminfo/tcnt");
- var allcnt = model.getValue("/root/hidden/tminfo/allcnt");
-
-
- if(allcnt != "") {
- ocnt="0";
- icnt="0";
- hcnt="0";
- tcnt="0";
- }
- else if (allcnt =="") {
- allcnt ="0";
- }
-
- //기존것 삭제
- if (model.getValue("/root/hidden/tminfo/gb") != "2"){
- model.removeNodeset("/root/main/rsrvtmcreate/rsrvtmlist");
- }
- /*
- if (model.getValue("/root/hidden/tminfo/gb") == "9"){
- model.removeNodeset("/root/main/rsrvtmcreate/rsrvtmlist");
- }else if (model.getValue("/root/hidden/tminfo/gb") == "1"){
- for (var i = grd_rsrvtmcreate.rows;i < 1;i--){
- if (model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvtm") < "1201"){
- grd_rsrvtmcreate.deleteRow(i);
- }
- }
- }else if (model.getValue("/root/hidden/tminfo/gb") == "2"){
- for (var i = grd_rsrvtmcreate.rows;i < 1;i--){
- if (model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvtm") > "1200"){
- grd_rsrvtmcreate.deleteRow(i);
- }
- }
- }
- */
- // model.gridRebuild("grd_rsrvtmlist");
- grd_rsrvtmcreate.rebuild();
-
- model.refresh();
- frtm = "20040101" + frtm; //시간으로 변환하기 위해서 붙인다.
- totm = "20040101" + totm;
- var hofrtm = "20040101" + model.getValue("/root/hidden/tminfo/hofrdt");
- var hototm = "20040101" + model.getValue("/root/hidden/tminfo/hotodt");
- var hofrtm1 = model.getValue("/root/hidden/tminfo/hofrdt");
- var hototm1 = model.getValue("/root/hidden/tminfo/hotodt");
- var dFrtm = frtm.toDate("YYYYMMDDhhmm");
- var dTotm = totm.toDate("YYYYMMDDhhmm");
- //var row = 1;
- var row = grd_rsrvtmcreate.rows;
- var d = dFrtm;
- //var i = 1;
- var irow = grd_rsrvtmcreate.rows - 1;
- var i = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + irow + "]/rsrvno");
- if (i == "" || i == null){
- i = 1;
- }else{
- i = parseInt(i) + 1;
- }
- if (hofrtm1 != ""){
- dTotm = hofrtm.toDate("YYYYMMDDhhmm");
- }
- while(d < dTotm) {
- grd_rsrvtmcreate.addRow(false);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvno",i);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvtm", d.getDateFormat("hhmm"));
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxoutcnt", ocnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxincnt", icnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxhealexamcnt", hcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxtrustcnt", tcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxallcnt", allcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/allday","day");
- fGridCellSum("grd_rsrvtmcreate", row);
-
- d = d.getAddDate(iTerm, "m");
- row++;
- i++;
- }
- //model.gridRefresh("grid1");
- if (hototm1 != "" && hototm <= totm ){
- d = hototm.toDate("YYYYMMDDhhmm");
- dTotm = totm.toDate("YYYYMMDDhhmm");
- while(d <= dTotm) {
- grd_rsrvtmcreate.addRow(false);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvno",i);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvtm", d.getDateFormat("hhmm"));
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxoutcnt", ocnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxincnt", icnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxhealexamcnt", hcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxtrustcnt", tcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxallcnt", allcnt);
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/allday","day");
- fGridCellSum("grd_rsrvtmcreate", row);
-
- d = d.getAddDate(iTerm, "m");
- row++;
- i++;
- }
- }
- for (var i = 1; i < grd_rsrvtmcreate.rows;i++){
- grd_rsrvtmcreate.rowStatus(i) = 1;
- }
-
- grd_rsrvtmcreate.refresh();
-
- }
-
- //합계 내기
- function fGridCellSum(grid, row){
- var list = "";
- if(grid == "grd_rsrvtmcreate")
- list = "rsrvtmcreate";
- if(grid == "grd_rsrvtmappprescond")
- list = "rsrvtmappprescond";
-
- var maxoutcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxoutcnt");
- //maxoutcnt.lvStripWhite();
- var maxincnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxincnt");
- //maxincnt.lvStripWhite();
- var maxhealexamcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxhealexamcnt");
- //maxmedexamcnt.lvStripWhite();
- var maxtrustcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxtrustcnt");
- //maxtrstcnt.lvStripWhite();
- var maxallcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxallcnt");
- //maxallcnt.lvStripWhite();
-
- var imaxoutcnt = 0;
- var imaxincnt = 0;
- var imaxhealexamcnt = 0;
- var imaxtrustcnt = 0;
- var imaxallcnt = 0;
- var sum = 0;
-
- if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
- if(maxincnt != "") imaxincnt = parseInt(maxincnt);
- if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
- if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
- if(maxallcnt != "") imaxallcnt = parseInt(maxallcnt);
- sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt + imaxallcnt;
-
- model.setValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/sum", sum);
- grd_rsrvtmcreate.refresh();
-
- }
-
-
- function fGetTime(){
- model.removenode("/root/main/rsrvtmcreate");
- //var examroom = model.getValue("/root/hidden/tminfo/examroom");
-
- //if(examroom == "") {
- // model.alert("검사실을 선택해 주십시요");
- // return;
- //}
-
- //var rsrvdd = "0000000" + gWeekDay;
-
- //model.setValue("/root/hidden/tminfo/rsrvdd", rsrvdd);
- //model.setValue("/root/hidden/tminfo/suppdept", gSuppDept);
- //copyNode("/root/hidden/tminfo", "/root/send/data");
- //이부분 부터
- // fSetFunction(gMode, "getDefaultYeYakSiGan", "OAC_YeYakSiGanGwanRi_View2");
-
- // fRequestAction("reqAction", gAction, "/root/SendData", "/root/MainData/list1/content");
-
-
- // for(var i = grd_rsrvtmcreate.fixedrows; i < grd_rsrvtmcreate.rows; i++) {
- // fGridCellSum("grd_rsrvtmcreate", i);
- // }
- grd_rsrvtmcreate.refresh();
- grd_rsrvtmcreate.clearStatus();
-
- // model.resetInstanceNode("/root/send");
- // TFSetMessage("/root/main");
- }
-
- function gridOnCellChanged(grid){
- var list = "";
- var grd_col = "";
- if(grid.attribute("id") == "grd_rsrvtmcreate") {
- list = "rsrvtmcreate";
- grd_col = grd_rsrvtmcreate.col;
- }
- if(grid.attribute("id") == "grd_rsrvtmappprescond") {
- list = "rsrvtmappprescond";
- grd_col = grd_rsrvtmappprescond.col;
-
- }
- if(grd_col==7){
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxoutcnt","0");
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxincnt","0");
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxhealexamcnt","0");
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxtrustcnt","0");
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/sum", model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxallcnt"));
- model.refresh();
- }
- else
- {
- var maxoutcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxoutcnt");
- var maxincnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxincnt");
- var maxhealexamcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxhealexamcnt");
- var maxtrustcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxtrustcnt");
-
- var imaxoutcnt = 0;
- var imaxincnt = 0;
- var imaxhealexamcnt = 0;
- var imaxtrustcnt = 0;
- var sum = 0;
-
- if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
- if(maxincnt != "") imaxincnt = parseInt(maxincnt);
- if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
- if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
- sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt;
-
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxallcnt","0");
- model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/sum", sum);
- model.refresh();
- }
- }
-
- function fTimeGen(){
- var fromdd = model.getValue("/root/hidden/tminfo/frdt");
- var todd = model.getValue("/root/hidden/tminfo/todt");
-
- var term = getDateInterval(fromdd, todd);
-
- if(term > 365) {
- model.alert("생성구간이 365일 이상입니다.. 1년으로 제한합니다.");
- return;
- }
-
- if(fChkDate() == false) return;
-
- }
-
- function fChkDate(){
- var frdt = model.getValue("/root/hidden/tminfo/frdt");
- var todt = model.getValue("/root/hidden/tminfo/todt");
-
- if(frdt == "") {
- model.alert("적용시작일자를 입력해 주십시요");
- return false;
- }
- if(todt == "") {
- model.alert("적용종료일자를 입력해 주십시요");
- return false;
- }
- if(frdt > todt) {
- model.alert("적용시작일자가 적용종료일자보다 큽니다.");
- return false;
- }
-
- }
-
- function fGridSetSum(grid){
- var list = "";
- if(grid.attribute("id") == "grd_rsrvtmcreate")
- list = "rsrvtmcreate";
- if(grid.attribute("id") == "grd_rsrvtmappprescond")
- list = "rsrvtmappprescond";
-
- for(i=1;i<grid.rows;i++)
- {
- var maxoutcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxoutcnt");
- var maxincnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxincnt");
- var maxhealexamcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxhealexamcnt");
- var maxtrustcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxtrustcnt");
- var maxallcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxallcnt");
- var rsrvdd = model.getValue("/root/send/rsrvdd");
- var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- var excuroomcd = model.getValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid");
- //var excuroomcd = model.getValue("/root/send/excuroomcd");
-
-
- var imaxoutcnt = 0;
- var imaxincnt = 0;
- var imaxhealexamcnt = 0;
- var imaxtrustcnt = 0;
- var imaxallcnt=0;
- var sum = 0;
-
- if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
- if(maxincnt != "") imaxincnt = parseInt(maxincnt);
- if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
- if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
- if(maxallcnt != "") imaxallcnt = parseInt(maxallcnt);
-
- sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt + imaxallcnt;
-
- model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/sum",sum);
- model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/rsrvdd",rsrvdd);
- model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/excuroomcd",excuroomcd);
- model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/suppdeptcd",suppdeptcd);
-
-
- //grid.refresh();
- }
- grid.refresh();
- }
-
- function fRsrvtmmdf(flag){
- if(flag=="modify"){
- grd_rsrvtmappprescond.visible = true;
- datagrid2.visible = false;
- button7.disabled = false;
- button8.disabled = false;
- button19.disabled = false;
- }else if(flag=="select"){
- grd_rsrvtmappprescond.visible = false;
- datagrid2.visible = true;
- button7.disabled = true;
- button8.disabled = true;
- button19.disabled = true;
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예약시간관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:450px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:10px; top:25px; width:73px; height:17px; ">검사실 :</caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:459px; top:20px; width:317px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:465px; top:25px; width:86px; height:17px; ">적용일자 :</caption>
- <button id="btn_mon" class="btn_sw" group="tab" selected="true" style="left:5px; top:145px; width:37px; height:22px; ">
- <caption>월</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/hidden/tminfo/gweekday","00000001");
- fGetTime();
-
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum( grd_rsrvtmcreate);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_tue" class="btn_sw" group="tab" selected="false" style="left:40px; top:145px; width:36px; height:22px; ">
- <caption>화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000002");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_wed" class="btn_sw" group="tab" selected="false" style="left:75px; top:145px; width:36px; height:22px; ">
- <caption>수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000003");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_thu" class="btn_sw" group="tab" selected="false" style="left:110px; top:145px; width:36px; height:22px; ">
- <caption>목</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000004");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_fri" class="btn_sw" group="tab" selected="false" style="left:145px; top:145px; width:36px; height:22px; ">
- <caption>금</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000005");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sat" class="btn_sw" group="tab" selected="false" style="left:180px; top:145px; width:36px; height:22px; ">
- <caption>토</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000006");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- checkbox1.value = "";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sun" class="btn_sw" group="tab" selected="false" style="left:215px; top:145px; width:36px; height:22px; ">
- <caption>일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/tminfo/gweekday","00000007");
- fGetTime();
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
- submit("TRAEB00901");
- fGridSetSum(grd_rsrvtmcreate);
- checkbox1.value = "";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button22" class="btn1_letter6" visibility="hidden" style="left:0px; top:762px; width:104px; height:22px; ">
- <caption>예약현황조회</caption>
- </button>
- <line id="line2" class="line_1" style="x1:459px; y1:73px; x2:894px; y2:74px; "/>
- <caption id="caption22" class="tit_2" style="left:902px; top:339px; width:100px; height:13px; ">예약변동내역</caption>
- <caption id="caption9" style="left:109px; top:99px; width:25px; height:20px; vertical-align:middle; ">분</caption>
- <line id="line3" class="line_1" style="x1:900px; y1:356px; x2:1195px; y2:357px; "/>
- <button id="button7" class="btn2_letter2" navindex="21" style="left:853px; top:52px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridSetSum(grd_rsrvtmappprescond);
-
- model.setValue("/root/send/req/data",getGridUpdateData(grd_rsrvtmappprescond));
-
- if ( messageBox("","Q002")==6 )
- {
- submit("TXAEB00903");
- submit("TRAEB00902");
- grd_rsrvtmappprescond.visible = true;
- datagrid2.visible = false;
- fGridSetSum(grd_rsrvtmappprescond);
-
- initCalendar();
- fGridSetSum(grd_rsrvtmcreate);
- setGridRsrvddCheck();
- model.refresh();
- }
- else
- {
- submit("TRAEB00902");
- grd_rsrvtmappprescond.visible = true;
- datagrid2.visible = false;
- fGridSetSum(grd_rsrvtmappprescond);
-
- model.refresh();
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" navindex="19" style="left:743px; top:52px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_rsrvtmappprescond.addItem();
- grd_rsrvtmappprescond.visible = true;
- datagrid2.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button19" class="btn2_letter3" navindex="20" style="left:798px; top:52px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_rsrvtmappprescond.addStatus(grd_rsrvtmappprescond.row,"delete");
- grd_rsrvtmappprescond.visible = true;
- datagrid2.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" navindex="23" style="left:839px; top:25px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/data2/frdt",model.getValue("/root/hidden/tminfo/frdt"));
- model.setValue("/root/send/data2/todt",model.getValue("/root/hidden/tminfo/todt"));
-
- model.setValue("/root/send/data2/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
- model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
- model.setValue("/root/send/data2/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
-
- if ( messageBox("","Q004")==6 )
- {
- submit("TXAEB00904");
- }
-
- initCalendar();
- setGridRsrvddCheck();
- fRsrvtmmdf("select");
-
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" navindex="14" style="left:301px; top:146px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_rsrvtmcreate.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" navindex="15" style="left:357px; top:146px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for ( var i =0 ; i < grd_rsrvtmcreate.selectedRows ; i++){
- grd_rsrvtmcreate.addStatus( grd_rsrvtmcreate.selectedRow(i) ,"delete");
- }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" navindex="16" style="left:412px; top:146px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(checkbox1.value=="Y") {
- for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist["+j+"]/allday","Y");
- }
- }else{
- //2010.12.27 기존데이터 수정 및 삭제시 전부 삭제되는 현상 수정 - 박재영
- // var daycnt = 0;
- // for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
- // var rowstatus = grd_rsrvtmcreate.rowStatus(j);
- // if(rowstatus == 0){
- // daycnt++;
- // }
- // }
- // if(daycnt == 0){
- for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
- model.setValue("/root/main/rsrvtmcreate/rsrvtmlist["+j+"]/allday","day");
- }
- // }
- }
-
- var loop = grd_rsrvtmcreate.rows - grd_rsrvtmcreate.fixedRows;
-
- for ( var i = 1 ; i <= loop ; i++)
- {
- // alert( grd_rsrvtmcreate.rowStatus(i) );
- //0:new ,1 : insert , 2: update, 3:delete
- //2010.12.27 기존데이터 수정 및 삭제시 전부 삭제되는 현상 수정 - 박재영
- if(grd_rsrvtmcreate.rowStatus(i) == "0" || grd_rsrvtmcreate.rowStatus(i) == "2") {
- grd_rsrvtmcreate.addStatus(i,"insert");
- }
- }
-
- for (var i = 1; i < grd_rsrvtmcreate.rows; i++){
- var rsrvno = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvno");
- if ( rsrvno == ""){
- messageBox("정렬할 No는 필수 입력항목입니다. ", "E999", "");
- return;
- }
- var k = i + 1;
- for (var j = k; j < grd_rsrvtmcreate.rows; j++){
- rsrvno2 = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + j + "]/rsrvno");
- if (i != j){
- if (rsrvno == rsrvno2){
- messageBox(j + "번째에서 중복된 순번 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- fGridSetSum(grd_rsrvtmcreate);
-
- model.setValue("/root/send/req/data",getGridUpdateData(grd_rsrvtmcreate));
-
-
-
- if ( messageBox("","Q002")==6 )
- {
- submit("TXAEB00901");
- // btn_mon.dispatch("DOMActivate");
- if( btn_mon.selected == true ) {
- btn_mon.dispatch("DOMActivate");
- }
- if( btn_tue.selected == true ) {
- btn_tue.dispatch("DOMActivate");
- }
- if( btn_wed.selected == true ) {
- btn_wed.dispatch("DOMActivate");
- }
- if( btn_thu.selected == true ) {
- btn_thu.dispatch("DOMActivate");
- }
- if( btn_fri.selected == true ) {
- btn_fri.dispatch("DOMActivate");
- }
- if( btn_sat.selected == true ) {
- btn_sat.dispatch("DOMActivate");
- }
- if( btn_sun.selected == true ) {
- btn_sun.dispatch("DOMActivate");
- }
-
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- }
- else
- {
- btn_mon.dispatch("DOMActivate");
- fGridSetSum(grd_rsrvtmcreate);
- model.refresh();
- return;
- }
- model.setValue("/root/send/req/flag","");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_excuroom" ref="/root/send/data3/cmb_info/initexecroom/excuroomcdid" class="combo_default" navindex="1" appearance="minimal" style="left:87px; top:25px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/excuroomcd", model.getValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid"));
-
- btn_mon.selected = true;
-
-
- initCalendar();
- fGridSetSum(grd_rsrvtmcreate);
- setGridRsrvddCheck();
-
- fRsrvtmmdf("select");
-
- // model.setValue("/root/hidden/tminfo/gweekday","00000001");
- btn_mon.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <datagrid id="grd_rsrvtmappprescond" nodeset="/root/main/rsrvtmappprescond/rsrvtmlist" scroll="vertical" caption="No^시간^외래^입원^건진^응급^All^합계^rsrvdd^excuroomcd^suppdeptcd" colsep="^" colwidth="36, 60, 50, 50, 50, 50, 50, 50, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:459px; top:77px; width:435px; height:679px; border-color:#e6e5e5; border-style:solid; ">
- <col ref="rsrvno" type="input"/>
- <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="maxoutcnt" type="input" style="text-align:center; "/>
- <col ref="maxincnt" type="input" style="text-align:center; "/>
- <col ref="maxhealexamcnt" type="input" style="text-align:center; "/>
- <col ref="maxtrustcnt" type="input" style="text-align:center; "/>
- <col ref="maxallcnt" type="input" style="text-align:center; "/>
- <col ref="sum" type="input" style="text-align:center; "/>
- <col ref="rsrvdd"/>
- <col ref="excuroomcd"/>
- <col ref="suppdeptcd"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- gridOnCellChanged(grd_rsrvtmappprescond);
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rsrvtmcreate" nodeset="/root/main/rsrvtmcreate/rsrvtmlist" scroll="vertical" caption="No^시간^외래^입원^건진^응급^All^합계^rsrvdd^excuroomcd^suppdeptcd^openflag^pseudo^sortby^yeyakflag^allday" colsep="^" colwidth="44, 60, 50, 50, 50, 50, 50, 56, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:171px; width:450px; height:585px; border-color:#e6e5e5; border-style:solid; ">
- <col ref="rsrvno" type="input"/>
- <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="maxoutcnt" type="input" style="text-align:center; "/>
- <col ref="maxincnt" type="input" style="text-align:center; "/>
- <col ref="maxhealexamcnt" type="input" style="text-align:center; "/>
- <col ref="maxtrustcnt" type="input" style="text-align:center; "/>
- <col ref="maxallcnt" type="input" style="text-align:center; "/>
- <col ref="sum" style="text-align:center; "/>
- <col ref="rsrvdd" type="input"/>
- <col ref="excuroomcd" type="input"/>
- <col ref="suppdeptcd" type="input"/>
- <col ref="openflag" type="input"/>
- <col ref="pseudo"/>
- <col ref="sortby"/>
- <col ref="yeyakflag"/>
- <col ref="allday"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- gridOnCellChanged(grd_rsrvtmcreate);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if (isDataCell()) {
-
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_starttm" ref="/root/hidden/tminfo/frtm" class="input_default" navindex="3" maxlength="4" format="hh:nn" style="left:64px; top:78px; width:33px; height:19px; "/>
- <input id="ipt_endtm" ref="/root/hidden/tminfo/totm" class="input_default" navindex="4" maxlength="4" format="hh:nn" style="left:159px; top:78px; width:33px; height:19px; "/>
- <input id="ipt_ocnt" ref="/root/hidden/tminfo/ocnt" class="input_default" navindex="7" style="left:64px; top:100px; width:33px; height:19px; text-align:right; "/>
- <input id="ipt_icnt" ref="/root/hidden/tminfo/icnt" class="input_default" navindex="8" style="left:159px; top:100px; width:33px; height:19px; text-align:right; "/>
- <input id="ipt_startrsrvdd" ref="/root/hidden/tminfo/frdt" class="input_default" navindex="17" inputtype="date" style="left:554px; top:25px; width:100px; height:19px; "/>
- <input id="ipt_endrsrvdd" ref="/root/hidden/tminfo/todt" class="input_default" navindex="18" inputtype="date" style="left:669px; top:25px; width:100px; height:19px; "/>
- <group id="grp_calendar" style="left:900px; top:25px; width:295px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:295px; height:40px; "/>
- <button id="button31" class="icon_pre_year" style="left:53px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- setGridRsrvddCheck();
- ]]>
- </script>
- </button>
- <button id="button32" class="icon_next_year" style="left:228px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- setGridRsrvddCheck();
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:72px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- setGridRsrvddCheck();
- ]]>
- </script>
- </button>
- <button id="button34" class="icon_next_month" style="left:209px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- setGridRsrvddCheck();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:98px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:148px; top:9px; width:30px; height:19px; "/>
- <caption id="caption12" class="calendar_output" style="left:128px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption13" class="calendar_output" style="left:178px; top:9px; width:20px; height:19px; ">월</caption>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="42, 42, 42, 42, 42, 42, 41" dataheight="20" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:900px; top:65px; width:295px; height:265px; ">
- <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[
- for (var i = 1; i < grd_calendar.rows; i ++){
- for (var j = 0; j < 14; j ++){
- //grd_calendar.rowstyle(i, "data", "background-color") = "#ffffff";
- grd_calendar.cellStyle("background-color", i, j) = "#ffffff";
- }
- }
- grd_calendar.refresh();
- setCellColor(grd_calendar);
-
- //달력에서 선택한 날짜값 얻기
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
-
- if( calCol >= 7 )
- calCol -= 7;
-
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list["+calRow+"]/"+grd_calendar.colAttribute(calCol,"ref"));
-
- dd = dd.substr(0, getStringLength(dd) - 2);
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- //dd = dd.substr(0,2); // 숫자만 얻기
-
- var isDate = yyyy + mm + dd;
-
- model.setValue("/root/send/rsrvdd",isDate);
-
- submit("TRAEB00904");
-
- fGridSetSum(grd_rsrvtmappprescond);
-
- fRsrvtmmdf("select");
- model.refresh();
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- </multilinegrid>
- <datagrid id="grd_temp" nodeset="/root/hidden/rsrvdd/rsrvtmlist" visibility="hidden" caption="rsrvdd^excuroomcd^rsrvdd^suppdept^excuroomcd^openflag" colsep="^" colwidth="106, 74, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:540px; top:355px; width:215px; height:200px; border-color:#e6e5e5; border-style:solid; ">
- <col ref="rsrvdd" type="input"/>
- <col ref="excuroomcd" type="input"/>
- <col ref="rsrvdd" type="input"/>
- <col ref="excuroomcd" type="input"/>
- <col ref="suppdept" type="input"/>
- <col ref="openflag" type="input"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- gridOnCellChanged(grd_rsrvtmcreate);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_temp1" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="81, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:430px; width:180px; height:275px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <line id="line8" class="line_2" style="x1:5px; y1:98px; x2:455px; y2:98px; "/>
- <caption id="caption2" class="cell_1" style="left:99px; top:78px; width:58px; height:20px; vertical-align:middle; ">종료시간</caption>
- <caption id="caption3" class="cell_1" style="left:99px; top:100px; width:58px; height:20px; vertical-align:middle; ">입원</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:78px; width:58px; height:20px; vertical-align:middle; ">시작시간</caption>
- <caption id="caption8" class="cell_1" style="left:5px; top:100px; width:58px; height:20px; vertical-align:middle; ">외래</caption>
- <caption id="caption16" class="cell_1" style="left:194px; top:78px; width:53px; height:20px; vertical-align:middle; ">간격</caption>
- <caption id="caption4" class="cell_1" style="left:194px; top:100px; width:53px; height:20px; vertical-align:middle; ">건진</caption>
- <caption id="caption6" class="cell_1" style="left:284px; top:100px; width:53px; height:20px; vertical-align:middle; ">응급</caption>
- <caption id="caption14" class="cell_1" style="left:374px; top:100px; width:48px; height:20px; vertical-align:middle; ">All</caption>
- <input id="ipt_pcnt" ref="/root/hidden/tminfo/tcnt" class="input_default" navindex="10" style="left:339px; top:100px; width:33px; height:19px; text-align:right; "/>
- <input id="ipt_scnt" ref="/root/hidden/tminfo/hcnt" class="input_default" navindex="9" style="left:249px; top:100px; width:33px; height:19px; text-align:right; "/>
- <input id="ipt_allcnt" ref="/root/hidden/tminfo/allcnt" class="input_default" navindex="11" style="left:424px; top:100px; width:31px; height:19px; text-align:right; "/>
- <button id="btn_crettm" class="btn4_letter2" style="left:399px; top:121px; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGenTime();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_3" style="x1:5px; y1:142px; x2:455px; y2:142px; "/>
- <select id="checkbox1" ref="/root/hidden/tminfo/allday" navindex="6" overflow="visible" appearance="full" style="left:311px; top:80px; width:109px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>월~금 일괄적용</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (checkbox1.value == "Y"){
- btn_mon.selected = true;
- btn_mon.dispatch("DOMActivate");
- }else{
- btn_sat.selected = true;
- btn_sat.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select>
- <caption id="caption10" style="left:290px; top:81px; width:20px; height:15px; ">분</caption>
- <input id="ipt_term" ref="/root/hidden/tminfo/term" class="input_default" navindex="5" style="left:249px; top:78px; width:33px; height:19px; text-align:right; "/>
- <caption id="caption15" class="search_name" style="left:240px; top:25px; width:86px; height:17px; ">지원부서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" navindex="2" appearance="minimal" style="left:330px; top:25px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
- submit("TRAEA01301", false);
- btn_mon.selected = true;
- initCalendar();
- fGridSetSum(grd_rsrvtmcreate);
- setGridRsrvddCheck();
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption17" class="cell_1" style="left:5px; top:122px; width:58px; height:20px; vertical-align:middle; ">휴무시간</caption>
- <input id="input1" ref="/root/hidden/tminfo/hofrdt" navindex="12" format="hh:nn" style="left:64px; top:122px; width:33px; height:19px; text-align:center; "/>
- <input id="input2" ref="/root/hidden/tminfo/hotodt" navindex="13" format="hh:nn" style="left:124px; top:122px; width:33px; height:19px; text-align:center; "/>
- <caption id="caption18" style="left:103px; top:124px; width:15px; height:20px; text-align:center; ">~</caption>
- <caption id="caption20" class="cell_1" style="left:194px; top:122px; width:53px; height:20px; vertical-align:middle; ">구분</caption>
- <select1 id="radio1" ref="/root/hidden/tminfo/gb" appearance="full" cols="3" overflow="visible" style="left:248px; top:124px; width:147px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>새로생성</label>
- <value>9</value>
- </item>
- <item>
- <label>이어서생성</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:280px; top:435px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/rsrvtmappprescond/updtresn" autoresize="true" caption="변동사유" colsep="^" colwidth="292" mergecellsfixedrows="bycolrec" rowsep="|" style="left:900px; top:360px; width:295px; height:396px; ">
- <col ref="updtresndesc"/>
- </datagrid>
- <datagrid id="grd_temproom" nodeset="/root/init/cmb_info/initexcuroomcd" visibility="hidden" caption="caption3" colsep="^" colwidth="127" mergecellsfixedrows="bycolrec" rowsep="|" style="left:145px; top:280px; width:130px; height:135px; ">
- <col ref="excuroomcd"/>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/rsrvtmappprescond/rsrvtminfo" visibility="hidden" scroll="vertical" caption="시간^외래^입원^건진^응급^합계^rsrvdd^excuroomcd^suppdeptcd" colsep="^" colwidth="64, 68, 65, 65, 68, 66" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:459px; top:77px; width:435px; height:679px; border-color:#e6e5e5; border-style:solid; ">
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="outcnt" style="text-align:center; "/>
- <col ref="incnt" style="text-align:center; "/>
- <col ref="healexamcnt" style="text-align:center; "/>
- <col ref="trustcnt" style="text-align:center; "/>
- <col ref="allcnt" style="text-align:center; "/>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:461px; top:58px; width:105px; height:13px; ">적용현황</caption>
- <button id="button90" class="btn5_letter2" style="left:699px; top:52px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRsrvtmmdf("modify");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_2" style="x1:5px; y1:120px; x2:455px; y2:120px; "/>
- <line id="line5" class="line_1" style="x1:5px; y1:73px; x2:455px; y2:73px; "/>
- <line id="line4" class="line_1" style="x1:5px; y1:166px; x2:455px; y2:166px; "/>
- <caption id="caption21" class="tit_2" style="left:6px; top:58px; width:100px; height:13px; ">예약시간생성</caption>
- <caption id="caption23" style="left:654px; top:26px; width:15px; height:20px; text-align:center; ">~</caption>
- <button id="button39" class="btn4_letter2" navindex="22" style="left:782px; top:25px; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTimeGen();
- model.setValue("/root/send/data2/frdt",model.getValue("/root/hidden/tminfo/frdt"));
- model.setValue("/root/send/data2/todt",model.getValue("/root/hidden/tminfo/todt"));
- model.setValue("/root/send/data2/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
- model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
- model.setValue("/root/send/data2/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
-
-
-
- if ( messageBox("","Q004")==6 )
- {
- submit("TXAEB00902");
-
- }
- initCalendar();
- setGridRsrvddCheck();
- fRsrvtmmdf("select");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|