1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>재활치료예약</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rehbprcplist>
- <rehbprcp>
- <pid/>
- <hngnm/>
- <roomcd/>
- <depthngnm/>
- <deptcd/>
- <ioflag/>
- <orddd/>
- <orddrid/>
- <orddrnm/>
- <prcpgenrflag/>
- <rrgstno1/>
- <rrgstno2/>
- <rsrvyn/>
- <sex/>
- <aftrcptinfo/>
- </rehbprcp>
- </rehbprcplist>
- <patinfo>
- <patinfolist>
- <hngnm/>
- </patinfolist>
- </patinfo>
- <rsrvposstmlist>
- <rsrvposstm>
- <rsrvtm/>
- <count/>
- </rsrvposstm>
- </rsrvposstmlist>
- <rehbprcpsubinfolist>
- <rehbprcpsubinfo>
- <check/>
- <lvl/>
- <prcpdd/>
- <prcpnm/>
- <prcpdayno/>
- <rmnddayno/>
- <prcptims/>
- <rehbprcpcurefreqflagnm/>
- <rsrvdd/>
- <rsrvtm/>
- <curoom/>
- <curoomcd/>
- <curer/>
- <curerid/>
- <orddrnm/>
- <orddrrsrvyn/>
- <execprcpuniqno/>
- <prcpgenrflag/>
- <prcpkindcd/>
- <excupartcd/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <prcpcd/>
- <pid/>
- <prcpno/>
- <centcd/>
- </rehbprcpsubinfo>
- <rsrvprescond>
- <rsrvday/>
- </rsrvprescond>
- <isolinfo>
- <isoldispcd/>
- </isolinfo>
- </rehbprcpsubinfolist>
- <baseconfinfo>
- <baseconflist>
- <basedd/>
- <basecnt/>
- </baseconflist>
- </baseconfinfo>
- <rsrvlist>
- <execprcpuniqno/>
- <pid/>
- <hngnm/>
- <rsrvdt/>
- <excuroomnm/>
- <prcpnm/>
- <examgoal/>
- <logoimg/>
- <rsrvtm/>
- </rsrvlist>
- <excrlist>
- <excrinfo>
- <execrid/>
- <excuroomcd/>
- </excrinfo>
- </excrlist>
- <codelist/>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <excuroomcd/>
- <pid/>
- <ioflag/>
- <deptcd/>
- <rsrvflag/>
- <subinfopid/>
- <req>
- <data/>
- <flag/>
- </req>
- <rsrvposstmcheck>
- <rsrvtm/>
- <curoomcd/>
- </rsrvposstmcheck>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <rsrvdd/>
- <retroomcd/>
- <hngnm/>
- <sex/>
- <orddeptcd/>
- <popdata>
- <pid/>
- <hngnm/>
- <sex/>
- </popdata>
- <satdayflag/>
- <prcprem/>
- <rsrvpaper>
- <fromdd/>
- <todd/>
- <pid/>
- <basesuppdeptcd/>
- </rsrvpaper>
- <grupcdid/>
- <jciyn/>
- <searchflag>false</searchflag>
- <centcd/>
- </send>
- <senda>
- <pid/>
- <ioflag/>
- </senda>
- <init>
- <excuroomlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomlist>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- </rsrvcalendar>
- </curerprescondlist>
- <calen/>
- <battm/>
- <treeflag>true</treeflag>
- <autocheck/>
- <calenlist>
- <calendinfo>
- <basedd/>
- <dutflag/>
- </calendinfo>
- </calenlist>
- <cmb_info/>
- <baseinfo>
- <initautoroom/>
- <initsuppdeptcd/>
- </baseinfo>
- </init>
- <hidden>
- <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>
- <popmenu>
- <rsrvlist>
- <item>
- <name>예약지출력</name>
- <func>fexeRsrvReport</func>
- </item>
- </rsrvlist>
- <jcilist>
- <item>
- <name>예약지출력</name>
- <func>fexeRsrvReport</func>
- </item>
- <item>
- <name>다학제간</name>
- <func>fPateduSync</func>
- </item>
- <item>
- <name>CarePlan</name>
- <func>fCarePlanSync</func>
- </item>
- </jcilist>
- </popmenu>
- <boolcontrol>
- <bool/>
- </boolcontrol>
- <isolinfo>
- <isoldata/>
- </isolinfo>
- <diaginfo/>
- </hidden>
- <temp>
- <count/>
- <rsrvyddlist>
- <date>
- <yyyymmdd/>
- </date>
- </rsrvyddlist>
- <progressnote>
- <list>
- <cretno/>
- <ioflag/>
- <orddrid/>
- </list>
- </progressnote>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- if(checkOpener()){
- var deptcd = opener.javascript.getParameter("SMAEA01900_Param_doctorYn");
-
- if (deptcd == "Y") {
- model.setValue("/root/send/globalinstance/instance1", "2220000000");
- }
- }
-
-
-
-
- initCalendar();
- fCalendar();
-
-
- model.removeNodeset("/root/main/rehbprcplist/rehbprcp");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- model.removeNodeset("/root/init/curerprescondlist/curerprescond");
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- /*
- //start
- //2012.10.29 by kya 로그인한 사람의 센터코드 가져오기
- var centcd = getUserInfo("ordsupdeptcd");
- //alert(centcd);
- model.setValue("/root/send/centcd",centcd);
- //end
- */
-
- model.setValue("/root/send/ioflag","I");
- model.setValue("/root/send/fromdd",getCurrentDate());//getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd",getCurrentDate());
- model.refresh();
-
- submit("TRAEA01901", false);
- submit("TRAEA01201", false);
-
- model.setFocus("ipt_pid");
- //grd_prcpsubinfo.fixedcellcheckbox(0,0) =true;
- cmb_excuroom.select(0);
-
- //bool1.attribute("checkvalue") = true;
- //20101004 주석처리 예약일자자동생성조회 안되게(불필요한 조회안하게) - 박재영
- //model.setValue("/root/init/autocheck", "true");
-
- /*
- submit("TRAER00110"); //콤보조회
- var gv_exeuroomcd = getGlobalVariable("gv_exeuroomcd", "A");
- if (gv_exeuroomcd != ""){
- model.setValue("/root/send/retroomcd", gv_exeuroomcd);
- }else{
- if (getNodesetCount("/root/main/excrlist/excrinfo") > 0){
- model.setValue("/root/send/retroomcd", model.getValue("/root/main/excrlist/excrinfo/excuroomcd"));
- setGlobalVariable("gv_exeuroomcd", model.getValue("/root/send/retroomcd"), "A");
- }
- }
- */
- astGetComboList( new Array("A520", "A530"), new Array("/root/init/baseinfo/initautoroom", "/root/init/baseinfo/initsuppdeptcd") );
- submit("TRAAA00001", false);
- model.removeNodeset("/root/init/baseinfo/initautoroom/A520[" + 1 + "]");
- model.removeNodeset("/root/init/baseinfo/initsuppdeptcd/A530[" + 1 + "]");
- if (model.getValue("/root/senda/pid") != ""){
- //btn_sea.dispatch("DOMActivate");
- model.setValue("/root/send/pid", model.getValue("/root/senda/pid"));
- if (model.getValue("/root/senda/ioflag") == "I"){
- btn_iprcp.selected= true;
- }else{
- button1.selected= true;
- }
- button3.dispatch("DOMActivate");
- }
-
- // JCI 적용 여부
- model.setValue("/root/send/grupcdid","JCI01");
- model.removenode("/root/main/codelist");
- if (submit("TRAEB00010")) {
- var cnt = getNodesetCount("/root/main/codelist/item");
- if (cnt > 0) {
- var jciyn = model.getValue("/root/main/codelist/item[1]/cdid");
- model.setValue("/root/send/jciyn", jciyn);
- if (jciyn == "Y") {
- btn_patedu.visible = true;
- btn_careplan.visible = true;
- } else {
- btn_patedu.visible = false;
- btn_careplan.visible = false;
- }
- } else {
- btn_patedu.visible = false;
- btn_careplan.visible = false;
- }
- }
-
-
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEA01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomlist"/>
- <submission id="TRAEA01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA01903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rehbprcplist"/>
- <submission id="TRAEA01904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA01905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rehprcpsubinfolist"/>
- <submission id="TRAEA01907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseconfinfo"/>
- <submission id="TXAEA01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRAER00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/progressnote"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <submission id="TRAEA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA01210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvpaper" resultref="/root/main/rsrvlist"/>
- <submission id="TRAER00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/excrlist"/>
- <submission id="TRAAA00001"/>
- <submission id="TRMNC00999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_diaginfo" replace="instance" resultref="/root/hidden/diaginfo"/>
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- 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");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
- //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;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- 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 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();
- }
- }
-
- function setCellColor(gridObj) {
-
-
- var calRow = gridObj.row;
- var calCol = gridObj.col;
- var calCol2 = 0;
-
- if (getStringLength(model.getValue("/root/send/rsrvdd")) == 8) {
-
- if (gridObj.cellStyle("background-color", calRow, calCol) == "#daa7d9") {
- gridObj.cellStyle("background-color", calRow, calCol) = "#ffffff";
-
- var index = grd_temp2.findRow(model.getValue("/root/send/rsrvdd"), 0, 1, true, true);
-
- grd_temp2.row = index;
- deleteSelectedRows(grd_temp2,false);
-
- } else {
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- grd_temp2.addRow(false);
- model.setValue("/root/temp/rsrvyddlist/date[" + grd_temp2.row + "]/yyyymmdd",model.getValue("/root/send/rsrvdd"));
-
- }
- }
-
-
-
- if( calCol < 7 )
- calCol2 = calCol + 7;
- else
- calCol2 = calCol - 7;
-
- gridObj.cellStyle("background-color", calRow, calCol2) = gridObj.cellStyle("background-color", calRow, calCol);
-
- model.refresh();
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2007.05.18
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : calendar 에서 선택한 년월일(YYYYMMDD)를 기준으로 예약시간대와 가용현황을 조회한다.
- */
- function getRsrvPossTm(gridObj) {
-
- if(model.getValue("/root/send/ioflag") == "") {
- messageBox("입원,외래중","C002");
- return;
- } else if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- } else {
- //model.removeNodeset("");
- var calRow = gridObj.row;
- var calCol = gridObj.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 + "]/" + gridObj.colAttribute(calCol, "ref"));
-
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/rsrvdd", yyyy + mm + dd);
-
- //model.refresh(); //20101001 주석
- if (getStringLength(model.getValue("/root/send/rsrvdd")) == 8) {
- //20101001 조건에따른 조회여부 수정 - 박재영
- if(model.getValue("/root/send/searchflag") == "true"){ //스켸쥴부분
- submit("TRAEA01904");
- //setCellColor(grd_calendar);
- }
- if(model.getValue("/root/init/autocheck") == "true"){ //예약일자 자동생성부분
- model.removeNodeset("/root/main/baseconfinfo/baseconflist");
- submit("TRAEA01907");
- setDelRsrvPresCondByMonth();
- }else{
- setCellColor(grd_calendar);
- }
-
- }
-
- //setCellColor(grd_calendar);
-
- }
- }
- /* @group : 치료예약(재활)
- * @ver : 2010.10.04
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력에 일자별로 가용현황을 보여준다.
- */
- function setDelRsrvPresCondByMonth() {
- grd_calendar.rebuildStyle();
- if(model.getValue("/root/init/autocheck") == "true"){ //예약일자 자동생성부분
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- model.refresh();
- grd_temp2.addRow(false);
- model.setValue("/root/temp/rsrvyddlist/date/yyyymmdd",model.getValue("/root/send/rsrvdd"));
- }
- //예약일자선택에 해당 일자가 있으면 선택했을 때 색으로 표시
- for (var k = 1; k < grd_temp2.rows; k++) {
- var dd = model.getValue("/root/temp/rsrvyddlist/date[" + k + "]/yyyymmdd");
-
- var curDate = dd.substr(6,2);
- if (model.getValue("/root/hidden/calendar/month") == dd.substr(4, 2) ) {
-
- var curWeek = dd.toDate().getDayOfWeek("E").toLowerCase();
- var calRow = -1;
- var calCol = -1;
-
- if(curDate.substr(0,1) == "0") {
- curDate = curDate.substr(1,1);
- }
-
-
- switch (curWeek) {
- case "sun":
- calCol = 0;
- break;
- case "mon":
- calCol = 1;
- break;
- case "tue":
- calCol = 2;
- break;
- case "wed":
- calCol = 3;
- break;
- case "thu":
- calCol = 4;
- break;
- case "fri":
- calCol = 5;
- break;
- case "sat":
- calCol = 6;
- break;
- default:
- break;
- }
-
-
- for(var i = 1 ; i < grd_calendar.rows; i++ ) {
- //alert(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) + "########" + curDate);
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) == curDate ) {
- calRow = i;
- }
- }
-
- var tmpCalCol;
-
- if( calCol < 7 )
- tmpCalCol = calCol + 7;
- else
- tmpCalCol = calCol - 7;
-
- //alert(calRow + "///" + calCol + "///" + tmpCalCol);
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#daa7d9";
- }
- }
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2007.05.18
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력에 일자별로 가용현황을 보여준다.
- */
- function setRsrvPresCondByMonth() {
-
- grd_calendar.rebuildStyle();
- //예약일자선택에 해당 일자가 있으면 선택했을 때 색으로 표시
- for (var k = 1; k < grd_temp2.rows; k++) {
- var dd = model.getValue("/root/temp/rsrvyddlist/date[" + k + "]/yyyymmdd");
-
- var curDate = dd.substr(6,2);
- if (model.getValue("/root/hidden/calendar/month") == dd.substr(4, 2) ) {
-
- var curWeek = dd.toDate().getDayOfWeek("E").toLowerCase();
- var calRow = -1;
- var calCol = -1;
-
- if(curDate.substr(0,1) == "0") {
- curDate = curDate.substr(1,1);
- }
-
-
- switch (curWeek) {
- case "sun":
- calCol = 0;
- break;
- case "mon":
- calCol = 1;
- break;
- case "tue":
- calCol = 2;
- break;
- case "wed":
- calCol = 3;
- break;
- case "thu":
- calCol = 4;
- break;
- case "fri":
- calCol = 5;
- break;
- case "sat":
- calCol = 6;
- break;
- default:
- break;
- }
-
-
- for(var i = 1 ; i < grd_calendar.rows; i++ ) {
- //alert(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) + "########" + curDate);
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) == curDate ) {
- calRow = i;
- }
- }
-
- var tmpCalCol;
-
- if( calCol < 7 )
- tmpCalCol = calCol + 7;
- else
- tmpCalCol = calCol - 7;
-
- //alert(calRow + "///" + calCol + "///" + tmpCalCol);
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#daa7d9";
- }
- }
-
- var curerid = grd_curer.valueMatrix(grd_curer.selectedRow(0), grd_curer.colRef("userid"));
- var curerrow = grd_curer.selectedRow(0);
-
- submit("TRAEA01902");
- model.removeNodeset("/root/main/baseconfinfo/baseconflist");
- submit("TRAEA01907");
-
- //20101001 조건에따른 조회여부 수정 - 박재영
- if(model.getValue("/root/send/searchflag") == "false"){
- //예약가용현황조회"/root/send/searchflag" 참조
- submit("TRAEA01904");
- }
-
- if (curerid != "") {
- var new_curerid = grd_curer.valueMatrix(curerrow, grd_curer.colRef("userid"));
- if (new_curerid == curerid) {
- grd_curer.row = curerrow;
- grd_curer.select(curerrow, grd_curer.colRef("usernm")) = true;
- }
- }
- 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_temp.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");
- }
- fCalendar(isDate);
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2007.05.31
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약, 수정, 취소 버튼의 click 이벤트 처리
- */
- function exeRsrvTransaction(str) {
-
- for (var i = 0; i < grd_prcpsubinfo.rows; i++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check") == "Y") {
- if ((str == "rsrv" || str == "upd") && (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/mig") == "Y")){
- messageBox("마이그레이션 자료는 예약변경이 불가능합니다. DC처리한 후 신규처방으로 처리하시기 바랍니다. \n 수납팀에 문의하시기 바랍니다.", "E999", "");
- return;
- }
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/prcpdd",getRemoveFormatter(model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/prcpdd")));
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd",getRemoveFormatter(model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd")));
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm", model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm"));
- }
- }
-
- var nodeList = instance1.selectNodes("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[check='Y'and lvl='2']");
- var rCSV = getNodeListCSV(nodeList);
-
- //alert(rCSV);
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- var row = grd_rehbprcp.row;
- if (model.getValue("/root/main/rehbprcplist/rehbprcp[" + row + "]/ioflag") == "O"){
- var pid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + row + "]/pid");
- var orddd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + row + "]/orddd");
- var orddeptcd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + row + "]/orddeptcd");
- var orddrid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + row + "]/orddrid");
-
- /* 진료일 정보를 이용하여 이전 진단명이 존재 외래수진이력 조회 진단명이 없을 경우 */
- setParameter("preDiagCond", "Etc▦" + pid +"▦"+ orddd +"▦" + orddeptcd + "▦" + orddrid + "▦/root/hidden");
- fFindDiagInfo();
-
- if (model.getValue("/root/hidden/diaginfo/ordinfo/pid") != "") {
- var orddd_old = model.getValue("/root/hidden/diaginfo/ordinfo/orddd");
- var cretno_old = model.getValue("/root/hidden/diaginfo/ordinfo/cretno");
- var genrflagcd_old = "";
- var orddeptcd_old = model.getValue("/root/hidden/diaginfo/ordinfo/orddeptcd");
- var copyflag = "Y";
-
- for (var i =1; i < grd_prcpsubinfo.rows; i++) {
- var check = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check");
- var lvl = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/lvl");
- if (check == "Y" && lvl == "2" ) {
- model.makeValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/orddd_old", orddd_old);
- model.makeValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/cretno_old", cretno_old);
- model.makeValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/genrflagcd_old", model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/ioflag"));
- model.makeValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/orddeptcd_old", orddeptcd_old);
- model.makeValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/copyflag", copyflag);
- }
- }
- nodeList = instance1.selectNodes("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[check='Y'and lvl='2']");
- rCSV = getNodeListCSV(nodeList);
- }
- }
-
- model.setValue("/root/send/req/data", rCSV);
- model.setValue("/root/send/req/flag", str);
-
- //노드 초기화 : 결과 메세지가 계속 누적되는 오류 수정
- model.removeNodeset("/root/count");
- model.makeNode("/root/count");
-
- if (submit("TXAEA01901")){
- //model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- //model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- model.refresh();
-
- // 미수납 건이 존재하면 경고메시지 출력, 20081208, 장준원
- if ( model.getValue("/root/count/rtn_message") != "-" && model.getValue("/root/count/rtn_message") != "" ) {
- messageBox(model.getValue("/root/count/rtn_message"),"I999");
- //alert(model.getValue("/root/temp/count/rtn_message"));
- }
-
- submit("TRAEA01905");
- //setTree(grd_prcpsubinfo, 1, 3, false);
-
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_prcpsubinfo, 1, 3, true);
- } else {
- setTree(grd_prcpsubinfo, 1, 3, false);
- }
- //getRsrvPossTm(grd_calendar);
-
- grd_curer.select(grd_curer.selectedRow(0), grd_curer.colRef("usernm")) = false;
- //grd_calendar.rebuildStyle();
- getCurerPresCond();
- }
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2007.05.31
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 해당 치료실의 치료사와 한달동안의 예약현황을 조회한다.
- */
- function getCurerPresCond() {
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.setValue("/root/send/excuroomcd", model.getValue("/root/init/excuroomlist/excuroom[" + grd_excuroom.row + "]/basecd"));
- model.setValue("/root/send/rsrvdd", model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- setCalendar(model.getValue("/root/send/rsrvdd").toDate());
- //grd_calendar.rebuildStyle();
- //model.removeNodeset("/root/temp/rsrvyddlist/date");
- setRsrvPresCondByMonth();
-
- }
-
- function fsetRsrvYN() {
-
- model.setValue("/root/send/prcprem","");
-
- for(var i = 1; i < grd_rehbprcp.rows; i ++) {
- grd_rehbprcp.rowStyle(i, "data", "background-color") = "#ffffff"; //흰색깔
- if(model.getValue("/root/main/rehbprcplist/rehbprcp[" + i + "]/rsrvyn") == "Y") { //예약인경우
- grd_rehbprcp.rowstyle(i ,"data","color") = "#FF8C00"; //글자색을 주황색으로 표시
- }
-
- }
-
- //2013.02.19 by kya 진료비후불제 색깔 노란색으로 표시
- aezfSetRowStyle("grd_rehbprcp" , "15" , "V" , "aftrcptinfo" );
- model.refresh();
- }
-
- function fexeRsrvReport() {
-
- model.setValue("/root/send/popdata/pid",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row+ "]/pid"));
- model.setValue("/root/send/popdata/hngnm",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row+ "]/hngnm"));
- model.setValue("/root/send/popdata/sex",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row+ "]/sex"));
- modal("SPAEA01901", "", "", "" ,"SPAEA01901", "/root/send/popdata","/root/send/popdata");
- model.refresh();
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2010.03.08
- * @by : 김건기
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 다학제간 환자 교육 연동
- */
- function fPateduSync() {
-
- var pid = "";
- var orddd = "";
- var cretno = "";
- var educd = "";
- var educnts = "";
-
- if (grd_rehbprcp.row > 0) {
- pid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid");
- orddd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/orddd");
- cretno = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/cretno");
- }
-
- setParameter("SPMRJ00200_pid", pid); // 수진키 필수
- setParameter("SPMRJ00200_orddd", orddd); // 수진키 필수
- setParameter("SPMRJ00200_cretno", cretno); // 수진키 필수
- setParameter("SPMRJ00200_educd", educd); // 교육항목 옵션
- setParameter("SPMRJ00200_educnts", educnts); // 교육내용 옵션
-
- modal("SPMRJ00200");
-
- }
-
- /* @group : 치료예약(재활)
- * @ver : 2010.03.08
- * @by : 김건기
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Care Plan 연동
- */
- function fCarePlanSync() {
-
- var pid = "";
- var orddd = "";
- var cretno = "";
- var hngnm = "";
- var ioflag = "";
-
- if (grd_rehbprcp.row > 0) {
- pid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid");
- orddd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/orddd");
- cretno = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/cretno");
- hngnm = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/hngnm");
- ioflag = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/ioflag");
- }
-
- setParameter("SMMRJ00100_pid", pid); // 수진키 필수
- setParameter("SMMRJ00100_orddd", orddd); // 수진키 필수
- setParameter("SMMRJ00100_cretno", cretno); // 수진키 필수
- setParameter("SMMRJ00100_hngnm", hngnm); // 수진키 필수
- setParameter("SMMRJ00100_ioflag", ioflag); // 수진키 필수
-
- modal("SMMRJ00100");
- }
- ]]>
- </script>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_prcpsubinfo" nodeset="/root/main/rehbprcpsubinfolist/rehbprcpsubinfo" caption="^level^처방일자^치료명^전체일^남은일^횟수^빈도^예약일자^시간^치료실^curoomcd^치료사^curerid^처방의^가예약^execprcpuniqno^prcpgenrflag^prcpkindcd^excupartcd^orddd^orddeptcd^orddrid^prcpcd^pid^actorddd^mig" colsep="^" colwidth="37, 30, 67, 213, 42, 42, 30, 50, 67, 35, 75, 100, 55, 70, 55, 42, 80, 80, 80, 80, 80, 80, 80, 80, 61, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:295px; top:85px; width:752px; height:270px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="lvl" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdayno"/>
- <col ref="rmnddayno"/>
- <col ref="prcptims"/>
- <col ref="rehbprcpcurefreqflagnm"/>
- <col ref="rsrvdd" type="input" format="yyyy-mm-dd"/>
- <col ref="rsrvtm" type="input" format="hh:nn"/>
- <col ref="curoom"/>
- <col ref="curoomcd" visibility="hidden" style="left:671px; top:23px; width:100px; height:23px; "/>
- <col ref="curer" style="left:700px; top:23px; width:100px; height:23px; "/>
- <col ref="curerid" visibility="hidden"/>
- <col ref="orddrnm"/>
- <col ref="orddrrsrvyn"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="excupartcd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="actorddd" visibility="hidden"/>
- <col ref="mig" visibility="hidden"/>
- <col ref="centcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + grd_prcpsubinfo.row + "]/lvl") == 1) {
- var check = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + grd_prcpsubinfo.row + "]/check");
-
- var prcpremfact = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo["+ grd_prcpsubinfo.row +"]/prcpdelivefact");
-
- tar_prcpremfact.value = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo["+ grd_prcpsubinfo.row +"]/prcpdelivefact");
-
- if (model.getValue("/root/init/baseinfo/initautoroom/A520[" + 1 + "]/cdid") == "Y"){
- irow = grd_prcpsubinfo.row + 1;
- var sroomcd = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + irow + "]/curoomcd");
- //model.setValue("/root/init/excuroomlist/excuroom/basecd", model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + irow + "]/curoomcd"));
- var krow = grd_excuroom.findRow(sroomcd, 1, grd_excuroom.colRef("basecd"), false, false);
- grd_excuroom.row = krow;
- //grd_excuroom.dispatch("onclick");
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- getCurerPresCond();
- }
- for (var i = grd_prcpsubinfo.row + 1; i < grd_prcpsubinfo.rows; i++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/lvl") == 2) {
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check", check);
- } else {
- return;
- }
- }
- } else {
- var colidx = grd_prcpsubinfo.col; //선택한 cell의 값
- //20101001 예약일자,시간 직접입력 가능하게 수정 - 박재영
- if(grd_prcpsubinfo.colAttribute(colidx, "ref") != "rsrvdd" && grd_prcpsubinfo.colAttribute(colidx, "ref") != "rsrvtm"){
-
-
- var curoom = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + grd_prcpsubinfo.row + "]/curoom");
- var curer = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + grd_prcpsubinfo.row + "]/curer");
-
- grd_excuroom.row = grd_excuroom.findRow(curoom);
-
- getCurerPresCond();
-
- grd_curer.row = grd_curer.findRow(curer);
-
- model.refresh();
- }
- }
-
- /*if (btn_bfrsrv.selected == true && model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + grd_prcpsubinfo.row + "]/check") == "N") {
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("rsrvdd")) ="";
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("rsrvtm")) ="";
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("curoom")) ="";
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("curoomcd")) ="";
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("curer")) ="";
- grd_prcpsubinfo.valueMatrix(grd_prcpsubinfo.row, grd_prcpsubinfo.colRef("curerid")) ="";
- }*/
-
-
-
- }
- ]]>
- </script>
- </datagrid>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">치료예약</caption>
- <caption id="caption5" class="search_name" style="left:8px; top:30px; width:112px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기준일자 :</caption>
- <caption id="caption3" class="search_name" style="left:360px; top:30px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <line id="line2" class="line_1" style="x1:0; y1:81px; x2:281px; y2:81px; "/>
- <line id="line1" class="line_1" style="x1:295px; y1:81px; x2:1047px; y2:81px; "/>
- <caption id="caption22" class="tit_2" style="left:-113px; top:468px; width:138px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">환자이력</caption>
- <caption id="caption1" class="tit_2" style="left:295px; top:423px; width:87px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">치료실</caption>
- <line id="line4" class="line_1" style="x1:293px; y1:440px; x2:479px; y2:440px; "/>
- <line id="line5" class="line_1" style="x1:485px; y1:440px; x2:615px; y2:440px; "/>
- <caption id="caption4" class="tit_2" style="left:488px; top:423px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">치료사</caption>
- <caption id="caption6" class="tit_2" style="left:1055px; top:579px; width:95px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예약일자선택</caption>
- <line id="line6" class="line_1" style="x1:1055px; y1:595px; x2:1195px; y2:595px; "/>
- <caption id="caption7" class="tit_2" style="left:1055px; top:65px; width:95px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예약가용현황</caption>
- <line id="line7" class="line_1" style="x1:1055px; y1:80px; x2:1195px; y2:80px; "/>
- <button id="button61" class="icon_search" style="left:553px; top:30px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/pid","/root/main/send");
-
- //model.setValue("/root/hidden/source/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1130px; top:26px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(ipt_fromdd.value > ipt_todd.value){
- messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- }
-
- if(model.getValue("/root/send/ioflag") =="") {
- model.setValue("/root/send/ioflag","I");
- btn_iprcp.selected= true;
- }
-
- grd_rehbprcp.rebuildStyle();
-
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- submit("TRAEA01903");
-
- fsetRsrvYN();
-
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1139px; top:758px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2011.03.24 취소시 메세지 처리
- var message = messageBox("해당 예약을","Q007");
- if ( message == 6 ) {
- exeRsrvTransaction("cncl");
- }
- ]]>
- </script>
- </button>
- <group id="grp_calendar" scroll="auto" style="left:620px; top:440px; width:430px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:430px; height:40px; "/>
- <button id="button32" class="icon_next_year" style="left:300px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <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();
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:143px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <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();
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button34" class="icon_next_month" style="left:281px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <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();
-
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:170px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:220px; top:9px; width:30px; height:19px; "/>
- <caption id="caption2" class="calendar_output" style="left:200px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption8" class="calendar_output" style="left:250px; top:9px; width:20px; height:19px; ">월</caption>
- <button id="button2" class="icon_pre_year" style="left:125px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <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();
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- getCurerPresCond();
- ]]>
- </script>
- </button>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="61, 61, 61, 61, 61, 61, 61" dataheight="20" focuscolor="transparent" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" mergecellsfixedrows="bycolrec" style="left:620px; top:480px; width:430px; height:275px; ">
- <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" type="input" style="border-top-width:0px; "/>
- <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
- <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
- <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
- <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
- <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
- <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- getRsrvPossTm(grd_calendar);
-
- ]]>
- </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_excuroom" nodeset="/root/init/excuroomlist/excuroom" visibility="visible" overflow="hidden" caption="치료실^caption1" colsep="^" colwidth="185, 100" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:293px; top:444px; width:186px; height:310; ">
- <col ref="basecdflagdesc"/>
- <col ref="basecd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- //grd_calendar.rebuildStyle();
- getCurerPresCond();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_curer" nodeset="/root/init/curerprescondlist/curerprescond" visibility="visible" overflow="hidden" caption="치료사^caption1" colsep="^" colwidth="129, 100" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:485px; top:444px; width:130px; height:310px; ">
- <col ref="usernm"/>
- <col ref="userid" visibility="hidden"/>
- </datagrid>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="3" style="left:450px; top:28px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:123px; top:28px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:218px; top:28px; width:90px; height:19px; "/>
- <button id="btn_iprcp" class="btn_sw" group="tab1" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:59px; width:45px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>입원</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //감염정보
- model.makeValue("/root/hidden/isolinfo/isoldata", "");
-
- grd_rehbprcp.rebuildStyle();
- model.setValue("/root/send/ioflag","I");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- //20160526 속도개선
- if (model.getValue("/root/send/pid") == "" ) {
- //if( ipt_todd.value - ipt_fromdd.value ){
- //messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- if (( ipt_todd.value - ipt_fromdd.value) > 7 ) {
- messageBox("등록번호 없이는 일주일이내만 조회됩니다. 다시","C002");
- return
- }
- }
- submit("TRAEA01903");
- fsetRsrvYN();
- ]]>
- </script>
- </button>
- <button id="btn_bfrsrv" class="btn_sw" group="tab2" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:295px; top:59px; width:72px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>미예약처방</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/rsrvflag","bf");
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- model.refresh();
-
-
- model.setValue("/root/send/subinfopid",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"));
- model.setValue("/root/send/deptcd",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/deptcd"));
- model.setValue("/root/send/ioflag",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/ioflag"));
- if (model.getValue("/root/send/ioflag") == ""){
- return;
- }
- submit("TRAEA01905");
- // 아웃라인바(setTree 초기화)
- setCollapsed(setCollapsed, false);
- grd_prcpsubinfo.outlinebar = 0;
-
- for(var k = 1; k < grd_prcpsubinfo.rows; k++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + k + "]/lvl") == 1) {
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curoom"));
- }
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curer"));
- }
-
- }
- }
- // sort
- //grd_prcpsubinfo.colSort(grd_prcpsubinfo.colRef("prcpdd")) = "asc";
- //grd_prcpsubinfo.sort(grd_prcpsubinfo.fixedRows, grd_prcpsubinfo.fixedCols, grd_prcpsubinfo.rows - 1, grd_prcpsubinfo.cols- 1) = "usersort";
- //grd_prcpsubinfo.gridToInstance();
-
- // setTree
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_prcpsubinfo, 1, 3, true);
- } else {
- setTree(grd_prcpsubinfo, 1, 3, false);
- }
-
- btn_upd.disabled = true;
- btn_can.disabled = true;
- ]]>
- </script>
- </button>
- <button id="btn_allrsrv" class="btn_sw" group="tab2" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:367px; top:59px; width:72px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>전체처방</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/rsrvflag","all");
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- model.refresh();
-
- if (model.getValue("/root/send/ioflag") == ""){
- return;
- }
- submit("TRAEA01905");
- // 아웃라인바(setTree 초기화)
- setCollapsed(setCollapsed, false);
- grd_prcpsubinfo.outlinebar = 0;
-
- for(var k = 1; k < grd_prcpsubinfo.rows; k++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + k + "]/lvl") == 1) {
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curoom"));
- }
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curer"));
- }
-
- }
- }
- // sort
- //grd_prcpsubinfo.colSort(grd_prcpsubinfo.colRef("prcpdd")) = "asc";
- //grd_prcpsubinfo.sort(grd_prcpsubinfo.fixedRows, grd_prcpsubinfo.fixedCols, grd_prcpsubinfo.rows - 1, grd_prcpsubinfo.cols- 1) = "usersort";
- //grd_prcpsubinfo.gridToInstance();
-
- // setTree
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_prcpsubinfo, 1, 3, true);
- } else {
- setTree(grd_prcpsubinfo, 1, 3, false);
- }
-
- //btn_rsrv.disabled = true;
- btn_upd.disabled = false;
- btn_can.disabled = false;
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^가용" colsep="^" colwidth="50, 53" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1055px; top:85px; width:140px; height:330px; ">
- <col ref="rsrvtm" format="hh:nn"/>
- <col ref="count" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- var nodeList = instance1.selectNodes("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if (rCSV == null) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm[" + grd_rsrvposstm.row + "]/count");
- var str = rsrvtm.split("/");
-
- if (str[0] == str[1]) {
- messageBox("가용인원을 ","E003");
- return;
- }
-
- if (grd_curer.row < 1) {
- messageBox("치료사를 " ,"C002");
- return;
- }
-
- var curoom = model.getValue("/root/init/excuroomlist/excuroom[" + grd_excuroom.row + "]/basecdflagdesc");
- var curoomcd = model.getValue("/root/init/excuroomlist/excuroom[" + grd_excuroom.row + "]/basecd");
- var curer = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curer.row + "]/usernm");
- var curerid = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curer.row + "]/userid");
-
- var rsrvyyyymmdd = "";
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm[" + grd_rsrvposstm.row + "]/rsrvtm");
- var idx = grd_temp2.topRow;
- grd_temp2.sort(1, 1, grd_temp2.bottomRow, 1) = "asc";
- grd_temp2.gridToInstance();
-
- var k = 0;
- var k1 = 0;
- var k2 = 0;
- var irow = 0;
- var sdd = "";
- var sdd1 = "";
- var sdd2 = "";
- for (var i = 0; i < grd_prcpsubinfo.rows; i++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check") == "Y") {
-
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/lvl") == 2) {
-
- if (model.getValue("/root/init/autocheck") == "true") { //예약일자 자동 생성
- k = k + 1;
- if (parseFloat(k) > parseFloat(k1)){
- irow = irow + 1;
- sdd = model.getValue("/root/main/baseconfinfo/baseconflist[" + irow + "]/basedd");
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd", sdd);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm", rsrvtm);
- k = 1;
- }else{
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd", sdd);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm", rsrvtm);
- }
- /*
- if ( model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/ioflag") == "I") {
- //입원은 처방일자와 동일
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd", model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/prcpdd"));
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm",rsrvtm);
- } else {
- //외래는 actorddd와 동일
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd", model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/actorddd"));
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm",rsrvtm);
- }
- */
- } else {
- rsrvyyyymmdd = model.getValue("/root/temp/rsrvyddlist/date[" + idx + "]/yyyymmdd");
- if (rsrvyyyymmdd == "") {
- //2010.11.29 수동예약시 선택한 일만큼 예약함 - 박재영
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check","N");
- //messageBox("선택과 예약일자의 수가", "E004");
- //return;
- }else if (rsrvyyyymmdd < getCurrentDate()) {
- messageBox("과거일자로 예약" ,"E001");
- return;
- }else{
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd",rsrvyyyymmdd);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm",rsrvtm);
- }
- //2010.11.29 수동예약시 선택한 일만큼 예약함 else문으로 포함시킴 - 박재영
- //model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvdd",rsrvyyyymmdd);
- //model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/rsrvtm",rsrvtm);
-
- if (idx == grd_temp2.bottomRow) {
- //2010.11.29 수동예약시 선택한 일만큼 예약함. idx = grd_temp2.topRow;주석처리 - 박재영
- //idx = grd_temp2.topRow;
- idx += 1;
- }else {
- idx += 1;
- }
- }
-
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/curoom", curoom);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/curoomcd", curoomcd);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/curerid", curerid);
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/curer", curer);
-
- } else if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/lvl") == 1) {
-
- idx = grd_temp2.topRow;
- k2 = model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/prcptims");
- k1 = k2;
- irow = 1;
- k = 0;
- sdd = model.getValue("/root/main/baseconfinfo/baseconflist[" + irow + "]/basedd");
-
- }
- }
- }
-
- model.refresh();
- //btn_rsrv.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^caption3" colsep="^" colwidth="76, 62" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:700px; top:570px; width:150px; height:170px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- </datagrid>
- <datagrid id="grd_rehbprcp" nodeset="/root/main/rehbprcplist/rehbprcp" caption="등록번호^환자명^병실^진료과^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^나이" colsep="^" colwidth="66, 67, 42, 67, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0; top:85px; width:280px; height:669px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="roomcd"/>
- <col ref="depthngnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orddrnm" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="rsrvyn" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="aftrcptinfo" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
-
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- model.setValue("/root/send/prcprem","");
-
- model.refresh();
- if (grd_rehbprcp.isCell(event.target) && grd_rehbprcp.row >= grd_rehbprcp.fixedRows) {
- model.setValue("/root/send/subinfopid",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"));
- model.setValue("/root/send/deptcd",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/deptcd"));
- model.setValue("/root/send/ioflag",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/ioflag"));
- //setGlobalVariable("gv_pid", model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"), "A");
-
- if (model.getValue("/root/send/rsrvflag") == "" ) {
- model.setValue("/root/send/rsrvflag","bf");
- }
-
- if (model.getValue("/root/send/subinfopid") != "" && model.getValue("/root/send/deptcd") != "") {
- submit("TRAEA01905",false);
-
- model.setValue("/root/send/pid", "");
- model.refresh();
- // 아웃라인바(setTree 초기화)
- setCollapsed(setCollapsed, false);
- grd_prcpsubinfo.outlinebar = 0;
-
- for(var k = 1; k < grd_prcpsubinfo.rows; k++) {
- if (model.getValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + k + "]/lvl") == 1) {
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curoom")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curoom"));
- }
- if(grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) == "") {
- grd_prcpsubinfo.valueMatrix(k, grd_prcpsubinfo.colRef("curer")) = grd_prcpsubinfo.valueMatrix(k+1, grd_prcpsubinfo.colRef("curer"));
- }
- //20101001 예약일자,시간 직접입력 가능하게 수정 - 박재영
- grd_prcpsubinfo.isReadOnly(k, 8, k, 9) =true;
- }
- }
- // sort
- //grd_prcpsubinfo.colSort(grd_prcpsubinfo.colRef("prcpdd")) = "asc";
- //grd_prcpsubinfo.sort(grd_prcpsubinfo.fixedRows, grd_prcpsubinfo.fixedCols, grd_prcpsubinfo.rows - 1, grd_prcpsubinfo.cols- 1) = "usersort";
- //grd_prcpsubinfo.gridToInstance();
-
- // setTree
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_prcpsubinfo, 1, 3, true);
- } else {
- setTree(grd_prcpsubinfo, 1, 3, false);
- }
-
- model.setValue("/root/hidden/boolcontrol/bool", "");
- }
- }
-
- //환자Comment 환자정보 조회
- model.makeValue("/root/hidden/isolinfo/isoldata", "");
- if (model.getValue("/root/main/rehbprcpsubinfolist/isolinfo/isoldispcd") != "") {
- model.setValue("/root/hidden/isolinfo/isoldata", "확인");
- }
- //2011.1.3 c y w 환자예약중 다른환자 선택시 선택되어있던 예약일시 제거
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- setDelRsrvPresCondByMonth();
- model.refresh();
- //btn_rsrv.disabled = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rehbprcp.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_rehbprcp.isCell(event.target) && grd_rehbprcp.mouseRow >= grd_rehbprcp.fixedrows) {
- // 2010.03.08 JCI 관련 다학제간/Care plan 연동 메뉴 추가 김건기
- var jciyn = model.getValue("/root/send/jciyn");
- if (jciyn == "Y") {
- setPopupMenu("grd_rehbprcp", false, "/root/hidden/popmenu/jcilist/item", "name", "func");
- } else {
- setPopupMenu("grd_rehbprcp", false, "/root/hidden/popmenu/rsrvlist/item", "name", "func");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rsrvprescond" nodeset="/root/main/rehbprcpsubinfolist/rsrvprescond" caption="예약일자" colsep="^" colwidth="101" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1055px; top:442px; width:140px; height:135px; ">
- <col ref="rsrvday" format="yyyy-mm-dd"/>
- </datagrid>
- <button id="btn_rsrv" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1027px; top:758px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeRsrvTransaction("rsrv");
- ]]>
- </script>
- </button>
- <button id="btn_upd" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1083px; top:758px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeRsrvTransaction("upd");
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="true" ref="/root/init/autocheck" style="left:915px; top:421px; width:35px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // var gg = model.getValue("/root/init/autocheck");
- // messageBox(gg);
- // getCurerPresCond() ;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var autocheck = model.getValue("/root/init/autocheck");
- if(autocheck == "true"){
- model.removeNodeset("/root/temp/rsrvyddlist/date");
- getCurerPresCond() ;
- }
- ]]>
- </script>
- </bool>
- <caption id="caption9" style="left:945px; top:421px; width:102px; height:20px; ">예약일자 자동생성</caption>
- <button id="btn_prt" class="btn6_letter6" style="left:327px; top:758px; width:104px; height:22px; ">
- <caption>OCR서식출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- aezfOcrListPrint("/root/main/rehbprcplist/rehbprcp", grd_rehbprcp.row, "pid", "orddd", "deptcd", "depthngnm", "orddrid", "orddrnm", "prcpgenrflag", "hngnm", "roomcd", "rrgstno1", "rrgstno2", "cretno");
- ]]>
- </script>
- </button>
- <datagrid id="grd_temp2" nodeset="/root/temp/rsrvyddlist/date" visibility="visible" caption="예약일자선택" colsep="^" colwidth="99" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1055px; top:600px; width:140px; height:154px; ">
- <col ref="yyyymmdd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //20101004 클릭시 예약일자 삭제(달력포함) - 박재영
- if( isDataCell() ){
- deleteSelectedRows(grd_temp2,false);
- setDelRsrvPresCondByMonth();
- }
- ]]>
- </script>
- </datagrid>
- <output id="opt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:575px; top:29px; width:117px; height:19px; "/>
- <select1 id="radio1" ref="/root/init/treeflag" appearance="full" cols="2" overflow="visible" style="left:443px; top:63px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>통합적 보기</label>
- <value>true</value>
- </item>
- <item>
- <label>세부적 보기</label>
- <value>false</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_prcpsubinfo, 1, 3, true);
- } else {
- setTree(grd_prcpsubinfo, 1, 3, false);
- }
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="tit_2" style="left:1055px; top:423px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예약현황</caption>
- <line id="line3" class="line_1" style="x1:1055px; y1:439px; x2:1195px; y2:439px; "/>
- <button id="button1" class="btn_sw" group="tab1" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:45px; top:59px; width:45px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>외래</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //감염정보
- model.makeValue("/root/hidden/isolinfo/isoldata", "");
-
- grd_rehbprcp.rebuildStyle();
- model.setValue("/root/send/ioflag","O");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
-
- //20160526 속도개선
- if (model.getValue("/root/send/pid") == "" ) {
- //if( ipt_todd.value - ipt_fromdd.value ){
- //messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- if (( ipt_todd.value - ipt_fromdd.value) > 7 ) {
- messageBox("등록번호 없이는 일주일이내만 조회됩니다. 다시","C002");
- return
- }
- }
-
- submit("TRAEA01903");
- fsetRsrvYN();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn_sw" group="tab1" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:90px; top:59px; width:45px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>전체</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //감염정보
- model.makeValue("/root/hidden/isolinfo/isoldata", "");
-
- grd_rehbprcp.rebuildStyle();
- model.setValue("/root/send/ioflag","");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- //20160526 속도개선
- if (model.getValue("/root/send/pid") == "" ) {
- //if( ipt_todd.value - ipt_fromdd.value ){
- //messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- if (( ipt_todd.value - ipt_fromdd.value) > 7 ) {
- messageBox("등록번호 없이는 일주일이내만 조회됩니다. 다시","C002");
- return
- }
- }
-
- submit("TRAEA01903");
- fsetRsrvYN();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter7" style="left:0px; top:758px; width:128px; height:22px; ">
- <caption>ProgressNote</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid");
- var orddd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/orddd");
- var cretno = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/cretno");
- var ioflag = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/ioflag");
- var orddeptcd = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/deptcd");
- var orddrid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/orddrid");
- var patnm = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/hngnm");
- var age = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/age");
- var sex = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/sex");
- //var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- var suppdeptcd = model.getValue("/root/init/baseinfo/initsuppdeptcd/A530[" + 1 + "]/cdid");
- // alert(pid+ "." +orddd+ "." +cretno+ "." +ioflag+ "." +orddeptcd+ "." +orddrid);
- model.setValue("/root/send/pid",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid")); //progress note 호출시 pid로 넘겨야함
- model.setValue("/root/send/orddeptcd",model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/deptcd"));
-
- // 퇴원 후 제증명 발급을 위해 외래등록한 경우 외래 수진이력을 재 조회해서
- // Progress Note에 외래 수진이력 넘기는 오류가 발생하여 주석처리함. 2009.07.17 김건기
- // if(ioflag == "I") {
- // submit("TRAER00109", false);
- //
- // pid = model.getValue("/root/send/pid");
- // orddd = model.getValue("/root/temp/progressnote/list/orddd");
- // cretno = model.getValue("/root/temp/progressnote/list/cretno");
- // ioflag = model.getValue("/root/temp/progressnote/list/ioflag");
- // orddeptcd = model.getValue("/root/temp/progressnote/list/orddeptcd");
- // orddrid = model.getValue("/root/temp/progressnote/list/orddrid");
- // patnm = "";
- // age = "";
- // sex = "";
- // suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- //
- // model.setValue("/root/send/pid","");
- // model.refresh();
- //
- // }
-
- setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd );
- // open("SPMMR05400", "", "", "" ,"SPMMR05400", "", "");
-
- modal("SPMMR05400", "", "", "" ,"SPMMR05400", "", "");
- ]]>
- </script>
- </button>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:305px; top:565px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <button id="button5" class="btn3_letter6" style="left:117px; top:758px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- setParameter("SMMRI00400_param_pid", model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"));
- setParameter("SMMRI00400_param_chosflag", model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/prcpgenrflag"));
- //내원구분은 I O S E D 모두 가능
-
- modal("SMMRI00400", "", "", "" ,"SMMMR01600", "", "");
- ]]>
- </script>
- </button>
- <select1 id="cmb_excuroom" ref="/root/send/retroomcd" class="combo_default" navindex="3" appearance="minimal" style="left:805px; top:28px; width:200px; 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[
-
- if(ipt_fromdd.value > ipt_todd.value){
- messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- }
-
- if(model.getValue("/root/send/ioflag") =="") {
- model.setValue("/root/send/ioflag","I");
- btn_iprcp.selected= true;
- }
-
- grd_rehbprcp.rebuildStyle();
-
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo");
- model.removeNodeset("/root/main/rehbprcpsubinfolist/rsrvprescond");
- submit("TRAEA01903");
-
- fsetRsrvYN();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:730px; top:30px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">치료실 :</caption>
- <button id="button6" class="btn3_letter6" style="left:432px; top:758px; width:104px; height:22px; ">
- <caption>AlarmNotify</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //modal("SPAEA02000", "", "", "" ,"SPAEA02000", "", "");
- openInternal("modeless_topmost","SPAEA02000","scn",1,1000,0,0,"","", "min;max:hidden;", 0);
- ]]>
- </script>
- </button>
- <bool id="bool2" ref="/root/hidden/boolcontrol/bool" style="left:304px; top:88px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- for (var i = 1; i < grd_prcpsubinfo.rows; i ++){
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check", "Y");
- }
- grd_prcpsubinfo.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- for (var i = 1; i < grd_prcpsubinfo.rows; i ++){
- model.setValue("/root/main/rehbprcpsubinfolist/rehbprcpsubinfo[" + i + "]/check", "N");
- }
- grd_prcpsubinfo.refresh();
- ]]>
- </script>
- </bool>
- <datagrid id="datagrid1" nodeset="/root/main/baseconfinfo/baseconflist" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="81, 62" mergecellsfixedrows="bycolrec" rowsep="|" style="left:115px; top:505px; width:160px; height:230px; ">
- <col ref="basedd"/>
- <col ref="basecnt"/>
- </datagrid>
- <caption id="caption15" ref="/root/hidden/isolinfo/isoldata" visibility="visible" style="left:150px; top:60px; width:60px; height:20px; font-size:12pt; font-weight:bold; color:#ff0000; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- group7.visible = true;
- cpt_isoldata.visible = true;
- txt_isol.visible = true;
- btn_close.visible = true;
- line_isol.visible = true;
- line_isol2.visible = true;
- cpt_isoltitle.visible = true;
- ]]>
- </script>
- </caption>
- <group id="group7" visibility="hidden" style="left:100px; top:100px; width:279px; height:119px; vertical-align:top; background-color:#080808; ">
- <caption id="cpt_isoldata" visibility="hidden" style="left:2px; top:2px; width:275px; height:115px; font-size:11pt; font-weight:bold; color:#ff0000; background-color:#d6dadc; "/>
- <button id="btn_close" class="btn5_letter2" visibility="hidden" style="left:227px; top:95px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group7.visible = false;
- cpt_isoldata.visible = false;
- txt_isol.visible = false;
- btn_close.visible = false;
- line_isol.visible = false;
- line_isol2.visible = false;
- cpt_isoltitle.visible = false;
- ]]>
- </script>
- </button>
- <line id="line_isol" class="line_1" visibility="hidden" style="x1:10px; y1:21px; x2:270px; y2:21px; "/>
- <line id="line_isol2" class="line_3" visibility="hidden" style="x1:10px; y1:93px; x2:270px; y2:93px; "/>
- <textarea id="txt_isol" ref="/root/main/rehbprcpsubinfolist/isolinfo/isoldispcd" visibility="hidden" style="left:10px; top:26px; width:260px; height:66px; "/>
- <caption id="cpt_isoltitle" class="tit_2" visibility="hidden" style="left:12px; top:7px; width:115px; height:13px; ">감염정보</caption>
- </group>
- <bool id="bool3" checkvalue="true" ref="/root/send/satdayflag" style="left:795px; top:421px; width:35px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/baseconfinfo/baseconflist");
- submit("TRAEA01907");
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption12" style="left:825px; top:421px; width:102px; height:20px; ">토요일제외여부</caption>
- <button id="btn_rsrvpaper" class="btn3_letter3" style="left:537px; top:758px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>예약증</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/subinfopid") == "")
- {
- messageBox("환자를 선택하셔야 합니다.", "E");
- return;
- }
- var ioflag = model.getValue("/root/send/ioflag");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- //2011.05.02 입원환자 예약+10일까지 출력 - 박재영
- if(ioflag == "O"){
- //todd = model.getValue("/root/send/todd");
- }else{
- todd = fromdd.toDate().getAddDate(10,"D").getDateFormat("YYYYMMDD");
- }
-
- model.setValue("/root/send/rsrvpaper/fromdd", fromdd);
- model.setValue("/root/send/rsrvpaper/todd", todd);
- model.setValue("/root/send/rsrvpaper/pid", model.getValue("/root/send/subinfopid"));
- model.setValue("/root/send/rsrvpaper/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- submit("TRAEA01210");
-
- model.makeValue("/root/main/rsrvlist/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/main/rsrvlist/logoimg", getImageURL("biglogo"+getUserInfo("dutplceinstcd"), "jpg"));
- // 2010.12.29 c y w
- // exeReportPreview("RPAEA05200","XMLSTR");
- exeReportPreview("RPAEA05200", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- ]]>
- </script>
- </button>
- <line id="line11" class="line_1" style="x1:295px; y1:376px; x2:1047px; y2:376px; "/>
- <textarea id="tar_prcpremfact" ref="/root/send/prcprem" editable="false" style="left:295px; top:380px; width:752px; height:35px; "/>
- <caption id="caption13" class="tit_2" style="left:295px; top:360px; width:125px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">처방 comment</caption>
- <button id="button8" class="btn3_letter4" style="left:607px; top:758px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>일괄반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_rehbprcp.row > 0 ) {
-
- var sexage = model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/sex") + "/" + model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/age");
- var rrgstno = model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/rrgstno1") +" /" +model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/rrgstno2");
-
- model.makeValue("/root/temp/totaldclist/patinfolist/pid", model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/pid"));
- model.makeValue("/root/temp/totaldclist/patinfolist/sexage", sexage);
- model.makeValue("/root/temp/totaldclist/patinfolist/hngnm", model.getValue("/root/main/rehbprcplist/rehbprcp["+grd_rehbprcp.row+"]/hngnm"));
- model.makeValue("/root/temp/totaldclist/patinfolist/rrgstno", rrgstno);
- modal("SPAEA01201","","","","","/root/temp/totaldclist/patinfolist","/root/temp/patinfolist");
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn3_letter4" style="left:770px; top:758px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>접수관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //navigate("SMAEA01200_접수관리(재활)");
- model.makeNode("/root/senda/pid");
- if (grd_rehbprcp.row > 0){
- model.setValue("/root/senda/pid", model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"));
- }
- open("SMAEA01200", "","","", "SMAEA01200", "/root/senda/pid","/root/send/data/srchpid");
- // modal("SMAEA01200", "","","", "SMAEA01200", "/root/senda/pid","/root/send/data/srchpid");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn3_letter4" style="left:689px; top:758px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>예약현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/senda/pid");
- if (grd_rehbprcp.row > 0){
- model.setValue("/root/senda/pid", model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid"));
- }
- open("SMAEA04100", "","","", "SMAEA04100", "/root/senda/pid","/root/send/srchpid");
- ]]>
- </script>
- </button>
- <button id="btn_patedu" class="btn3_letter4" visibility="hidden" style="left:852px; top:758px; width:80px; height:22px; ">
- <caption>환자교육</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //다학제간 환자 교육 연동
- fPateduSync();
- ]]>
- </script>
- </button>
- <button id="btn_careplan" class="btn3_letter5" visibility="hidden" style="left:934px; top:758px; width:92px; height:22px; ">
- <caption>Care Plan</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Care Plan 연동
- fCarePlanSync();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn3_letter6" style="left:222px; top:758px; width:80px; height:22px; ">
- <caption>환자진료정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/rehbprcplist/rehbprcp[" + grd_rehbprcp.row + "]/pid");
- setParameter ( "SMMMO02500_cond" , pid);
- open("SMMMO02500", 2, "0", "0", "SMMMO02500", "", "/root/init/srchcond2");
- ]]>
- </script>
- </button>
- <bool id="bool4" checkvalue="true" ref="/root/send/searchflag" style="left:660px; top:421px; width:35px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </bool>
- <caption id="caption14" style="left:690px; top:421px; width:100px; height:20px; ">예약가용현황조회</caption>
- <shape id="rectangle3" appearance="rectangle" style="left:645px; top:60px; width:20px; height:15px; background-color:#ffff00; "/>
- <caption id="caption27" style="left:670px; top:60px; width:34px; height:15px; ">VIP</caption>
- </xhtml:body>
- </xhtml:html>
|