12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187 |
- <?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>BMT 스케쥴관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <hsctinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <diagcd1/>
- <deptcd/>
- <trnptkind/>
- <insuaprvdd/>
- <inschedd/>
- <trnptschedd/>
- <trnptwardcd/>
- <trnptroomcd/>
- <trnptscherem/>
- <trnptdg/>
- <updtresn/>
- <updttrnptschedd/>
- <trnpttype/>
- <flag/>
- </patinfolist>
- </hsctinfo>
- <patientlist>
- <patientlist>
- <pid/>
- <hngnm/>
- <trnptkind/>
- <diagcd1/>
- <deptcd/>
- <insuaprvdd/>
- <inschedd/>
- <trnptschedd/>
- <trnptwardcd/>
- <trnptroomcd/>
- <trnptscherem/>
- <trnptdg/>
- </patientlist>
- </patientlist>
- <popupendflag/>
- <seldate/>
- <patcheck>
- <check>
- <cnt/>
- </check>
- </patcheck>
- </main>
- <send>
- <data>
- <trnptwardcd/>
- <trnptroomcd/>
- <atdoctid/>
- <deptcd/>
- <trnptschedd/>
- <pid/>
- <lrggrupcd>DI</lrggrupcd>
- </data>
- <patientscheinfo>
- <patientscheinfo>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <diagcd1/>
- <orddept/>
- <trnptkind/>
- <insuaprvdd/>
- <inschedd/>
- <trnptschedd/>
- <trnptwardcd/>
- <trnptroomcd/>
- <trnptscherem/>
- <updtresn/>
- <updttrnptschedd/>
- <trnpttype/>
- <flag/>
- </patientscheinfo>
- </patientscheinfo>
- <srchinfo>
- <trnptschedd/>
- <pid/>
- <trnptdg/>
- <hngnm/>
- <printflag/>
- </srchinfo>
- <flag/>
- <lrggrupcd/>
- </send>
- <init>
- <cmbinfo>
- <deptcd>
- <A0478/>
- </deptcd>
- <trnptwardcd>
- <A0479/>
- </trnptwardcd>
- <trnptroomcd>
- <A0480/>
- </trnptroomcd>
- <trnptkind>
- <A0161>
- <cdid/>
- <cdnm/>
- </A0161>
- </trnptkind>
- <lrglist>
- <item>
- <hsctlrgcd/>
- <hsctlrgnm/>
- </item>
- </lrglist>
- <updtlist>
- <A0173>
- <cdid/>
- <cdnm/>
- </A0173>
- </updtlist>
- <sex>
- <P0313/>
- </sex>
- <atdoctid>
- <A0536>
- <cdid/>
- <cdnm/>
- </A0536>
- </atdoctid>
- </cmbinfo>
- </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>
- <comcd/>
- <check>
- <cnt/>
- </check>
- </hidden>
- <temp>
- <templist>
- <calendarlist>
- <pid/>
- <hngnm/>
- <trnptdd/>
- <diagcd1/>
- <trnptkind/>
- <trnpttype/>
- <trnptscherem/>
- </calendarlist>
- <monthschedulecnt>
- <trnptkind/>
- <cnt/>
- </monthschedulecnt>
- <scheprintlist>
- <dayofweek/>
- <trnptschedd/>
- <scheprint/>
- <pid/>
- <hngnm/>
- </scheprintlist>
- </templist>
- <bmtpatientinfo/>
- <popupendflag/>
- <trnptdg>
- <item>
- <cd>1</cd>
- <nm>1차</nm>
- </item>
- </trnptdg>
- <tempcodeinfo/>
- <tempcodeinfo2/>
- </temp>
- <out/>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRABO00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp/templist"/>
- <submission id="TRABO00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patientlist"/>
- <submission id="TRABO00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/hsctinfo"/>
- <submission id="TRABO00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/templist"/>
- <submission id="TXABO00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patientscheinfo" replace="instance" resultref="/root/out"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initCalendar();
- // 공통코드 가져오기
- // zbcfGetCodeList( new Array("A0161", "A0173", "P0313", "A0478", "A0479", "A0480", "A0536"),
- // new Array("/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/updtlist", "/root/init/cmbinfo/sex", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd", "/root/init/cmbinfo/atdoctid") );
- zbcfGetCodeList( new Array("P0313"),
- new Array("/root/init/cmbinfo/sex"));
-
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList(new Array("A0161", "A0173", "A0478", "A0479", "A0480", "A0536"),
- new Array("/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/updtlist", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd", "/root/init/cmbinfo/atdoctid") );
- // bmtcommon.js : 이식종류에 AUTO [00] 추가해주기
- abofSetTrnptKindCdAuto();
- // bmtcommon.js : BMT 진단대분류 조회 : 맨 앞에 공백을 추가해주기 위해서 함수로 변경
- abofGetBmtDIagLrgList();
- fGetMonthRecipientList();
-
- //권한체크
- btn_save.visible = checkAuth("X");
- btn_delete.visible = checkAuth("X");
- btn_update.visible = checkAuth("X");
- //btn_prt.disabled = !checkAuth("P");
- //btn_prt2.disabled = !checkAuth("P");
- ]]>
- </script>
- <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
- <submission id="TRABO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp/trnptdg"/>
- <submission id="TRABO00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/patcheck"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : BMT 환자 이식 스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 선택한 일자 얻기
- * @param : grdObj( calendar grid control )
- */
- function fGetCalendarDate(grdObj){
- var cal_row = grdObj.row;
- var cal_col = grdObj.col;
- if( cal_col > 6) cal_col -= 7;
- var rsrvdd = "";
- if( cal_row > 0 ){
- var dd = model.getValue( grdObj.nodeset + "[" + cal_row + "]/" + grdObj.colAttribute( cal_col,"ref") ) ;
- if( dd.length < 2 ) {
- dd = "0" + dd;
- }
- rsrvdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + dd ;
- }
- return rsrvdd;
- }
-
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 일자별 이식예정환자 조회
- * @param :
- */
- function fGetPatientList(){
- var seldate = fGetCalendarDate(grd_calendar);
- model.setValue("/root/send/srchinfo/trnptschedd",seldate);
- model.setValue("/root/send/srchinfo/pid", "");
- model.setValue("/root/send/srchinfo/trnptdg", "");
- model.resetInstanceNode("/root/main/patientlist/patientlist");
- model.resetInstanceNode("/root/main/hsctinfo/patinfolist");
- submit("TRABO00802");
-
- cap_seldate.value = seldate;
- model.refresh();
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 일자별 이식예정환자에서 선택한 환자의 상세정보 SELECT
- * @param :
- */
- function fGetSelectPatientInfo(){
- var idx = grd_patientlist.row ;
- if(idx < 1) {
- messageBox("환자를 선택하세요","E999");
- return;
- }
- var vPid = model.getValue("/root/main/patientlist/patientlist[" + idx+ "]/pid");
- if( vPid == "" ){
- messageBox("환자를 선택하세요","E999");
- return ;
- }
- model.setValue("/root/send/srchinfo/pid" , vPid);
- model.setValue("/root/send/srchinfo/trnptschedd" , model.getValue("/root/main/patientlist/patientlist[" + idx +"]/trnptschedd"));
- model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/patientlist/patientlist[" + idx +"]/trnptdg"));
- submit("TRABO00803");
- model.setValue("/root/main/hsctinfo/patinfolist/updttrnptschedd", model.getValue("/root/main/hsctinfo/patinfolist/trnptschedd"));
-
- if(checkAuth("X") == true){
- btn_save.disabled = true;
- btn_update.disabled = false;
- btn_delete.disabled = false;
- }
- }
- function fGetPatientInfo(){
- model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/srchinfo/trnptschedd" , "");
- model.setValue("/root/send/srchinfo/trnptdg" , "");
- if ( submit("TRABO00803") ) {
- if ( model.getValue("/root/main/seldate") != "" && instance1.selectSingleNode("/root/main/hsctinfo/patinfolist/trnptschedd")) {
- model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", model.getValue("/root/main/seldate"));
- model.refresh();
- ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
- }
- if(checkAuth("X") == true){
- model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/hsctinfo/patinfolist/trnptdg"));
- submit("TRABO00805");
- if ( model.getValue("/root/main/patcheck/check/cnt") != "0" ) {
- btn_save.disabled = true;
- btn_update.disabled = true;
- btn_delete.disabled = true;
- messageBox("이식 예정일이 저장되어 있는 환자 입니다.", "E999", "");
- }else{
- btn_save.disabled = false;
- btn_update.disabled = true;
- btn_delete.disabled = true;
- }
- }
- }
- //예외 처리, 싱글노드에러
- if(!(instance1.selectSingleNode("/root/main/hsctinfo/patinfolist/pid"))){
- model.makeNode("/root/main/hsctinfo/patinfolist/pid");
- model.makeNode("/root/main/hsctinfo/patinfolist/hngnm");
- model.makeNode("/root/main/hsctinfo/patinfolist/sex");
- model.makeNode("/root/main/hsctinfo/patinfolist/age");
- model.makeNode("/root/main/hsctinfo/patinfolist/diagcd1");
- model.makeNode("/root/main/hsctinfo/patinfolist/deptcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptkind");
- model.makeNode("/root/main/hsctinfo/patinfolist/insuaprvdd");
- model.makeNode("/root/main/hsctinfo/patinfolist/inschedd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptschedd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptwardcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptroomcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptscherem");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptdg");
- model.makeNode("/root/main/hsctinfo/patinfolist/updtresn");
- model.makeNode("/root/main/hsctinfo/patinfolist/updttrnptschedd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnpttype");
- model.makeNode("/root/main/hsctinfo/patinfolist/flag");
- }
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 달력 초기화
- * @param :
- */
- 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);
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 달력 처리
- * @param :
- */
- function setCalendar(dateObj) {
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- 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++;
- }
- }
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 달력 연/월 변경시 처리
- * @param : flagValue( -1, 1 ), flagMonthYear( 'M', 'Y')
- */
- function setCalendarDate(flagValue, flagMonthYear) {
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(flagValue, flagMonthYear);
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- fGetMonthRecipientList();
- }
- 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";
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 이식스케쥴 삭제
- * @param :
- */
- function fDelTrnptSchedule(){
- model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
- model.setValue("/root/send/patientscheinfo/patientscheinfo/updtresn", model.getValue("/root/init/cmbinfo/updtlist/A0173[" + datagrid3.row + "]/cdid"));
- model.setValue("/root/send/patientscheinfo/patientscheinfo/flag", "D");
- submit("TXABO00801");
- model.refresh();
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- fGetMonthRecipientList();
- grd_patientlist.deleteItem( grd_patientlist.row );
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 수정처리할 때
- * @param :
- */
- function fUpdateTrnptSchedule(){
- // 저장버튼 수정시 기본정보 (비교정보 )
- var pid = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/pid");
- var hngnm = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/hngnm");
- var sex = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/sex");
- var age = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/age");
- var diagcd1 = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/diagcd1");
- var deptcd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/deptcd");
- var trnptkind = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptkind");
- var insuaprvdd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/insuaprvdd");
- var inschedd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/inschedd");
- var trnptschedd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptschedd");
- var trnptscherem = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptscherem");
- // 입력할 정보 , 수정할 정보
- var pid_v = model.getValue("/root/main/hsctinfo/patinfolist/pid");
- var hngnm_v = model.getValue("/root/main/hsctinfo/patinfolist/hngnm");
- var sex_v = model.getValue("/root/main/hsctinfo/patinfolist/sex");
- var age_v = model.getValue("/root/main/hsctinfo/patinfolist/age");
- var diagcd1_v = model.getValue("/root/main/hsctinfo/patinfolist/diagcd1");
- var deptcd_v = model.getValue("/root/main/hsctinfo/patinfolist/deptcd");
- var trnptkind_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptkind");
- var insuaprvdd_v = model.getValue("/root/main/hsctinfo/patinfolist/insuaprvdd");
- var inschedd_v = model.getValue("/root/main/hsctinfo/patinfolist/inschedd");
- var trnptschedd_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptschedd");
- var trnptscherem_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptscherem");
- var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- if(pid_v =="" && hngnm_v =="") {
- messageBox("스케줄 항목의 등록번호 및 이름을","C001");
- return;
- }
- if(trnptschedd_v.length != 8) {
- messageBox("달력에 해당 날짜를","C002");
- return;
- }
- model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
- model.setValue("/root/send/patientscheinfo/patientscheinfo/updtresn", model.getValue("/root/init/cmbinfo/updtlist/A0173[" + datagrid3.row + "]/cdid"));
- model.setValue("/root/send/patientscheinfo/patientscheinfo/flag", "U");
- model.refresh();
- if( pid != pid_v || hngnm != hngnm_v) {
- if(pid == "" ){
- model.setValue("/root/send/patientscheinfo/patientscheinfo/flag" , "I");
- } else {
- messageBox("스케줄 선택 목록과 항목의 정보가","E004");
- return ;
- }
- } else {
- model.setValue("/root/send/patientscheinfo/patientscheinfo/flag" , "U");
- }
- if( messageBox("","Q002") !=6 ) {
- return;
- }
- submit("TXABO00801");
- model.refresh();
- 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);
- fGetMonthRecipientList();
- }
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 달력에 월별 이식환자정보 표시
- * @param :
- */
- function fGetMonthRecipientList(){
- model.removeNodeset("/root/temp/templist");
- model.resetInstanceNode("/root/main/patientlist/patientlist");
- model.resetInstanceNode("/root/main/hsctinfo/patinfolist");
- var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") ;
- model.setValue("/root/send/srchinfo/trnptschedd" ,sRsrvMon+"%" );
- model.setValue("/root/send/data/trnptschedd" ,sRsrvMon+"%" );
- submit("TRABO00801");
- sNode = instance1.selectSingleNode("/root/temp/templist/calendarlist");
- if( sNode != null ){
- var dd = null ;
- var iCol = null;
- var iRow = null;
- var firstDay = (sRsrvMon+ "01").toDate().getDay();
- sNode = instance1.selectNodes("/root/temp/templist/calendarlist");
- for( var i = 1 ; i <= sNode.length ; i++){
- dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptdd" ) ;
- dd = dd.substring(6,8);
- iCol = ( sRsrvMon + dd).toDate().getDay();
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- grd_calendar.valueMatrix(iRow , iCol + 7) = "";
- }
- for( var i = 1 ; i <= sNode.length ; i++){
- dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptdd" ) ;
- dd = dd.substring(6,8);
- iCol = ( sRsrvMon + dd).toDate().getDay();
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- if( grd_calendar.valueMatrix(iRow , iCol + 7) == ""){
- grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm") + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/diagcd1") + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnpttype") + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
- } else {
- grd_calendar.valueMatrix(iRow , iCol + 7) = grd_calendar.valueMatrix(iRow , iCol + 7) +"\n"+ model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm" ) + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/diagcd1") + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnpttype") + " " +
- model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
- }
- }
- }
- model.copyNode ("/root/main/monthschedulecnt/monthschedulecnt", "/root/temp/templist/monthschedulecnt");
- model.refresh();
- grd_calendar.rebuild();
- }
-
- /* @group : BMT 환자 이식스케줄관리
- * @ver : 2007.11.20
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 사용자 이름으로 달력에 있는지 검색
- * @param :
- */
- function fKeyEvent() {
- MessageBox("기능구현중", "E999");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,13;2,40;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchinfo/printflag", "N"); //타기관 포함 여부 플래그
- submit("TRABO00804");
-
- var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") ;
- // var firstDay = (sRsrvMon+ "01").toDate().getDay();
- sNode = instance1.selectNodes("/root/temp/templist/scheprintlist");
- for( var i = 1 ; i <= sNode.length ; i++){
- dd = model.getValue("/root/temp/templist/scheprintlist[" +i+ "]/trnptschedd" ) ;
- dd = dd.substring(6,8);
- iCol = ( sRsrvMon + dd).toDate().getDay();
- if(iCol == '1'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","월");
- }else if(iCol == '2'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","화");
- }else if(iCol == '3'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","수");
- }else if(iCol == '4'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","목");
- }else if(iCol == '5'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","금");
- }else if(iCol == '6'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","토");
- }else if(iCol == '7'){
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","일");
- }else {
- model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","-");
- }
- }
- exeReportPreview("RPABO00802", "XMLSTR", "/root/temp/templist/calendarlist");
- ]]>
- </script>
- </button>
- <button id="btn_prt2" class="btn6_letter8" style="left:58px; top:5px; width:128px; height:22px; ">
- <caption>타기관 포함 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchinfo/printflag", "Y"); //타기관 포함 여부 플래그
- submit("TRABO00804");
- exeReportPreview("RPABO00802", "XMLSTR", "/root/temp/templist/calendarlist");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1078px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/main/hsctinfo/patinfolist/pid") == "" ) {
- return false;
- }
- if ( model.getValue( "/root/main/hsctinfo/patinfolist/trnptschedd") == "" ) {
- messageBox("이식예정일은 반드시 선택해야 합니다", "E999", "");
- return false;
- }
- model.setValue("/root/send/flag" , "I");
- model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
- submit("TXABO00801");
- fGetMonthRecipientList();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter9" style="left:271px; top:5px; width:140px; height:22px; ">
- <caption>BMT스케쥴history</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMABO01000 ","","","","","","");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn6_letter4" style="left:188px; top:5px; width:80px; height:22px; ">
- <caption>달력출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPABO00801", "XMLSTR", "/root/hidden/calendar");
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn4_letter2" disabled="true" style="left:1018px; top:5px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( model.getValue("/root/main/hsctinfo/patinfolist/pid") == "" ) {
- return false;
- }
- model.setValue("/root/send/flag", "U");
- switch1.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" disabled="true" style="left:1137px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/flag", "D");
- switch1.visible = true;
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; ">월별 스케쥴</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:885px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:64px; height:17px; ">UNIT :</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:197px; top:9px; width:60px; height:17px; ">병실 :</caption>
- <select1 id="combo1" ref="/root/send/data/trnptroomcd" class="combo_search" appearance="minimal" style="left:260px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/send/data/trnptwardcd" class="combo_search" appearance="minimal" style="left:82px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- // submit("TRABO00104");
- // model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:375px; top:9px; width:73px; height:17px; ">주치의 :</caption>
- <select1 id="combo4" ref="/root/send/data/atdoctid" class="combo_search" appearance="minimal" style="left:451px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo6" ref="/root/send/data/deptcd" class="combo_search" appearance="minimal" style="left:642px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption19" class="search_name" style="left:566px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption23" class="search_name" visibility="hidden" style="left:807px; top:9px; width:73px; height:17px; ">환자명 :</caption>
- <input id="ipt_delivepsnid" ref="/root/main/userinfo/delivepsn/delivepsnid" class="input_search" visibility="hidden" style="left:883px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- initCalendar();
- fGetMonthRecipientList();
- ]]>
- </script>
- </button>
- </group>
- <input id="input21" ref="/root/main/hsctinfo/patinfolist/hngnm" class="input_default" disabled="true" style="left:1019px; top:245px; width:86px; height:19px; "/>
- <caption id="cap_seldate" ref="/root/main/seldate" class="tit_2" format="yyyy-mm-dd" style="left:910px; top:55px; width:130px; height:13px; "/>
- <line id="line15" class="line_1" style="x1:905px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption4" class="tit_2" style="left:910px; top:200px; width:100px; height:13px; ">스케쥴 관리</caption>
- <line id="line2" class="line_1" style="left:907px; x1:905px; y1:215px; x2:1194px; y2:215px; "/>
- <input id="input2" ref="/root/main/hsctinfo/patinfolist/pid" class="input_essential" inputtype="button" style="left:1019px; top:221px; width:174px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo") ) {
- model.makeNode("/root/main/hsctinfo/patinfolist/deptcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptwardcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptroomcd");
- model.makeNode("/root/main/hsctinfo/patinfolist/inschedd" );
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptschedd");
- model.makeNode("/root/main/hsctinfo/patinfolist/trnptscherem");
- model.setValue("/root/main/hsctinfo/patinfolist/deptcd" , "");
- model.setValue("/root/main/hsctinfo/patinfolist/trnptwardcd", "");
- model.setValue("/root/main/hsctinfo/patinfolist/trnptroomcd", "");
- model.setValue("/root/main/hsctinfo/patinfolist/inschedd" , "");
- model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", "");
- model.setValue("/root/main/hsctinfo/patinfolist/trnptscherem", "");
- if ( model.getValue("/root/main/seldate") != "" ) {
- model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", model.getValue("/root/main/seldate"));
- model.refresh();
- ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
- }
-
- if(checkAuth("X") == true){
- model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/hsctinfo/patinfolist/trnptdg"));
- submit("TRABO00805");
- if ( model.getValue("/root/main/patcheck/check/cnt") != "0" ) {
- btn_save.disabled = true;
- btn_update.disabled = true;
- btn_delete.disabled = true;
- messageBox("이식 예정일이 저장되어 있는 환자 입니다.", "E999", "");
- }else{
- btn_save.disabled = false;
- btn_update.disabled = true;
- btn_delete.disabled = true;
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search2", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="combo2" ref="/root/main/hsctinfo/patinfolist/trnptwardcd" class="combo_default" appearance="minimal" style="left:1019px; top:413px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input10" ref="/root/main/hsctinfo/patinfolist/age" class="input_default" disabled="true" style="left:1169px; top:245px; width:25px; height:19px; "/>
- <caption id="caption15" class="tit_2" style="left:910px; top:529px; width:233px; height:13px; ">BMT</caption>
- <line id="line3" class="line_1" style="left:907px; x1:905px; y1:544px; x2:1194px; y2:544px; "/>
- <datagrid id="datagrid2" nodeset="/root/temp/templist/monthschedulecnt" caption="이식종류^인원수: 명(소아)" colsep="^" colwidth="120, 120" dataheight="23" defaultrows="5" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:549px; width:288px; height:168px; text-align:center; ">
- <col ref="trnptkind" type="output"/>
- <col ref="cnt" type="output"/>
- </datagrid>
- <line id="line4" class="line_2" style="left:907px; x1:905px; y1:242px; x2:1194px; y2:242px; "/>
- <line id="line5" class="line_2" style="left:907px; x1:905px; y1:266px; x2:1194px; y2:266px; "/>
- <line id="line6" class="line_2" style="left:907px; x1:905px; y1:290px; x2:1194px; y2:290px; "/>
- <line id="line7" class="line_2" style="left:907px; x1:905px; y1:314px; x2:1194px; y2:314px; "/>
- <line id="line8" class="line_2" style="left:907px; x1:905px; y1:338px; x2:1194px; y2:338px; "/>
- <line id="line9" class="line_2" style="left:907px; x1:905px; y1:362px; x2:1194px; y2:362px; "/>
- <line id="line10" class="line_2" style="left:907px; x1:905px; y1:386px; x2:1194px; y2:386px; "/>
- <line id="line11" class="line_2" style="left:907px; x1:905px; y1:410px; x2:1194px; y2:410px; "/>
- <textarea id="textarea1" ref="/root/main/hsctinfo/patinfolist/trnptscherem" style="left:1019px; top:461px; width:174px; height:56px; "/>
- <caption id="caption10" class="cell_1" style="left:905px; top:316px; width:111px; height:23px; text-align:left; vertical-align:middle; ">이식종류</caption>
- <caption id="caption11" class="cell_1" style="left:905px; top:364px; width:111px; height:23px; text-align:left; vertical-align:middle; ">입원예정일</caption>
- <caption id="caption12" class="cell_1" style="left:905px; top:340px; width:111px; height:23px; text-align:left; vertical-align:middle; ">보험승인일자</caption>
- <caption id="caption13" class="cell_1" style="left:905px; top:388px; width:111px; height:23px; text-align:left; vertical-align:middle; ">이식예정일</caption>
- <caption id="caption14" class="cell_1" style="left:905px; top:412px; width:111px; height:23px; text-align:left; vertical-align:middle; ">UNIT</caption>
- <caption id="caption16" class="cell_1" style="left:905px; top:460px; width:111px; height:58px; text-align:left; vertical-align:middle; ">비고</caption>
- <caption id="caption7" class="cell_1" style="left:905px; top:220px; width:111px; height:23px; text-align:left; vertical-align:middle; ">등록번호</caption>
- <caption id="caption8" class="cell_1" style="left:905px; top:268px; width:111px; height:23px; text-align:left; vertical-align:middle; ">진단명</caption>
- <caption id="caption9" class="cell_1" style="left:905px; top:292px; width:111px; height:23px; text-align:left; vertical-align:middle; ">진료과</caption>
- <caption id="caption18" class="cell_1" style="left:905px; top:244px; width:111px; height:23px; text-align:left; vertical-align:middle; ">환자명</caption>
- <line id="line12" class="line_3" style="left:907px; x1:905px; y1:519px; x2:1194px; y2:519px; "/>
- <line id="line14" class="line_2" style="left:907px; x1:905px; y1:434px; x2:1194px; y2:434px; "/>
- <select1 id="combo5" ref="/root/main/hsctinfo/patinfolist/trnptroomcd" class="combo_default" appearance="minimal" style="left:1019px; top:437px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" class="cell_1" style="left:905px; top:436px; width:111px; height:23px; text-align:left; vertical-align:middle; ">병실</caption>
- <line id="line16" class="line_2" style="left:907px; x1:905px; y1:458px; x2:1194px; y2:458px; "/>
- <group id="grp_calendar" style="left:0px; top:76px; width:885px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:885px; height:40px; "/>
- <button id="btn_preyear" class="icon_pre_year" style="left:340px; top:12px; width:16px; height:16px; text-align:center; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCalendarDate(-1, 'Y');
- ]]>
- </script>
- </button>
- <button id="btn_nextyear" class="icon_next_year" style="left:515px; top:12px; width:16px; height:16px; text-align:center; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCalendarDate(1, 'Y');
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:359px; top:12px; width:16px; height:16px; text-align:center; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCalendarDate(-1, 'M');
- ]]>
- </script>
- </button>
- <button id="btn_nextmonth" class="icon_next_month" style="left:496px; top:12px; width:16px; height:16px; text-align:center; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCalendarDate(1, 'M');
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:385px; top:9px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:435px; top:9px; width:30px; height:19px; text-align:center; "/>
- <caption id="caption20" class="calendar_output" style="left:415px; top:9px; width:20px; height:19px; text-align:center; ">년</caption>
- <caption id="caption21" class="calendar_output" style="left:465px; top:9px; width:20px; height:19px; text-align:center; ">월</caption>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="126, 126, 126, 126, 126, 126, 126" dataheight="48" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:117px; width:885px; height:600px; text-align:left; ">
- <row>
- <col class="color_sun" ref="sun" style="background-color:#E3E3F3; 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="background-color:#E3E3F3; border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="mon_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="tue_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="wed_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="thu_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="fri_memo" type="output" style="text-align:left; border-top-width:0px; "/>
- <col ref="sat_memo" typehi="output" style="text-align:left; border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkAuth("X") == true){
- btn_save.disabled = true;
- btn_delete.disabled = true;
- btn_update.disabled = true;
- }
- var seldate = fGetCalendarDate(grd_calendar);
- // 날짜가 없는 빈 곳을 클릭하면 처리하지 않는다
- if ( seldate.length == 7 ) {
- return
- }
- setCellColor(grd_calendar);
- fGetPatientList();
- if ( grd_patientlist.rows > 1){
- if ( grd_calendar.row <= 4) {
- } else if ( grd_calendar.row > 4 ){
- grp_patlist.attribute ( "top" ) = (grd_calendar.row +1) * 96+46 - 205;
- }
- var grdcol = grd_calendar.col ;
- grp_patlist.visible=true;
- } else {
- grp_patlist.visible=false;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- grp_patlist.visible=false;
- ]]>
- </script>
- </multilinegrid>
- <select1 id="combo7" ref="/root/main/hsctinfo/patinfolist/diagcd1" class="combo_default" disabled="true" appearance="minimal" style="left:1019px; top:269px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/lrglist/item">
- <label ref="hsctlrgnm"/>
- <value ref="hsctlrgcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo8" ref="/root/main/hsctinfo/patinfolist/deptcd" class="combo_default" disabled="false" appearance="minimal" style="left:1019px; top:293px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo9" ref="/root/main/hsctinfo/patinfolist/trnptkind" class="combo_default" disabled="true" appearance="minimal" style="left:1019px; top:317px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_patientlist" nodeset="/root/main/patientlist/patientlist" caption="등록번호^환자명" colsep="^" colwidth="120, 120" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:75px; width:289px; height:115px; text-align:center; ">
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetSelectPatientInfo();
- ]]>
- </script>
- </datagrid>
- <caption id="caption22" style="left:1004px; top:52px; width:40px; height:20px; ">스케쥴</caption>
- <switch id="switch1" visibility="hidden" style="left:630px; top:535px; width:230px; height:170px; ">
- <case id="case1" selected="true">
- <datagrid id="datagrid3" nodeset="/root/init/cmbinfo/updtlist/A0173" class="datagrid1" caption="No^변경사유" colsep="^" colwidth="40, 150" dataheight="7" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:0px; width:220px; height:163px; ">
- <col ref="cdid" style="text-align:center; "/>
- <col ref="cdnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( model.getValue("/root/send/flag") == "U" ) {
- fUpdateTrnptSchedule();
- } else {
- fDelTrnptSchedule();
- fGetMonthRecipientList();
- }
- switch1.visible=false;
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2"/>
- </switch>
- <group id="grp_patlist" visibility="hidden" style="left:0px; top:580px; width:1092px; height:155px; border-style:solid; ">
- <datagrid id="datagrid1" nodeset="/root/main/patientlist/patientlist" caption="등록번호^환자명^이식종류^진단명^진료과^보험승인일자^입원예정일^이식예정일^UNIT^병실^비고^보험여부^이식예정일^입원예정일^UNIT^병실^비고" colsep="^" colwidth="79, 52, 63, 64, 105, 84, 72, 69, 89, 91, 277" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:1px; top:1px; width:1088px; height:148px; text-align:center; ">
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output"/>
- <col ref="trnptkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="diagcd1" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/lrglist/item">
- <label ref="hsctlrgnm"/>
- <value ref="hsctlrgcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insuaprvdd"/>
- <col ref="inschedd"/>
- <col ref="trnptschedd"/>
- <col ref="trnptwardcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="trnptroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="trnptscherem"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetSelectPatientInfo();
- ]]>
- </script>
- </datagrid>
- </group>
- <input id="input1" ref="/root/main/hsctinfo/patinfolist/insuaprvdd" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:1019px; top:341px; width:174px; height:19px; "/>
- <select1 id="combo10" ref="/root/main/hsctinfo/patinfolist/sex" class="combo_default" disabled="true" appearance="minimal" style="left:1108px; top:245px; width:58px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/sex/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_inschedd" ref="/root/main/hsctinfo/patinfolist/inschedd" class="input_default" inputtype="date" style="left:1019px; top:365px; width:174px; height:19px; "/>
- <input id="ipt_trnptschedd" ref="/root/main/hsctinfo/patinfolist/trnptschedd" class="input_default" inputtype="date" style="left:1019px; top:389px; width:174px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
- ]]>
- </script>
- </input>
- <button id="btn_search2" class="btn1_letter2" visibility="hidden" style="left:1115px; top:190px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatientInfo();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">스케줄관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|