123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <baseinfo>
- <initexecbaseflag/>
- <initioexamflag/>
- <initrsrvplceflag/>
- </baseinfo>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- </cmb_info>
- </init>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data>
- <memodesc/>
- <memodd/>
- <excuroomcd/>
- <basedeptcd/>
- <pid/>
- <patnm/>
- <showstartdd/>
- <showenddd/>
- </data>
- <hiddenFlag/>
- <search>
- <searchSDate/>
- <searchEDate/>
- <searchPid/>
- <searchRoom/>
- <searchDate/>
- <basedeptcd/>
- </search>
- </send>
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <mm>
- <grdAeahMemoList>
- <excuroomcd/>
- <excuroomnm/>
- <memorgstdd/>
- <pid/>
- <pnm/>
- <memodesc/>
- <showstartdd/>
- <showenddd/>
- <memodd/>
- </grdAeahMemoList>
- </mm>
- <rtn>
- <count/>
- </rtn>
- </main>
- <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>
- <memodd/>
- </hidden>
- </root>
- </instance>
- <!--화면 로딩시 이벤트 시작-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- var _sc = model.getValue("/root/send/globalinstance/instance1");
- _sc = _sc.substring(0, 4);
-
- iptSDate.value = getCurrentDate();
- iptEDate.value = getCurrentDate();
-
- var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
- if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
- model.setValue("/root/send/search/searchPid", gv_pid);
- }
- switch (_sc) {
- // 방사선종양학과
- case "2170":
- cmbExcuRoom.disabled = true;
- cmbExcuRoom2.disabled = true;
- break;
- // 방종을 제외한 나머지 학과
- default:
- submit("TRAEA01301"); // 검사치료실 가져오기
- showstartdd.disabled = true;
- showenddd.disabled = true;
- break;
- }
-
- initCalendar(); //달력display
- model.refresh();
- ]]>
- </script>
- <!--검사치료실 -->
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <!--메모내역조회-->
- <submission id="TRAEA02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/mm"/>
- <submission id="TXAEA02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/rtn"/>
- </model>
- <!--공통으로 사용되는 스크립트 추가 dateHelper-->
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <!--session 정보를 가져오는 스크립트 반드시 포함시켜야 함(검사실에 한정).-->
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <!--Body에서 사용되는 Script-->
- <script type="javascript">
- <![CDATA[/* @group : 환자코멘트 관리(기능검사)
- * @ver : 2007.6.22
- * @by : 서영희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 코멘트 조회를 위한 입력 Validation Check
- */
- function funcInputDataCheck(chk)
- {
- //날짜체크
- var Msg ="";
- var sDate =model.getValue("/root/send/search/searchSDate"); //시작날짜
- var eDate =model.getValue("/root/send/search/searchEDate"); //종료날짜
- var room =model.getValue("/root/send/search/searchRoom"); //검사실코드
- var Id =model.getValue("/root/send/search/searchPid"); //등록환자
- model.setValue("/root/send/search/basedeptcd",model.getValue("/root/send/globalinstance/instance1"));
-
- if(chk =='c'){
- var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
- if(yyyymmdd.length == 8){
- model.setValue("/root/send/search/searchDate",yyyymmdd);
- }
- }
- else{
- model.setValue("/root/send/search/searchDate","");
- }
-
-
- if(yyyymmdd=="" && sDate=="" && eDate=="" && room =="" && Id=="")
- {
- messageBox("[조회필수항목]일자/검사.치료실 또는 등록번호를 입력하십시오.","I999");
- return true;
- }
- else
- {
- gab =getDateInterval(sDate, eDate);
- if(gab<0)
- {
- messageBox("[시작일자선택]조회기간을 확인하십시오.","I999");
- return true;
- }
- else
- {
- submit("TRAEA02701"); // 검사메모내역 가져오기
- }
- }
- }
-
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(curDate);
- }
-
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- //grd_calendar.rebuild()
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- }
-
- function setCellColor(gridObj) {
-
- var calRow = gridObj.row;
- var calCol = gridObj.col;
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- }
-
- function ChangeDateFormat() {
- var _frdt = model.getValue("/root/main/mm/grdAeahMemoList/showstartdd");
- var _todt = model.getValue("/root/main/mm/grdAeahMemoList/showenddd");
- var _date = "";
-
- // 메모내역-메모일자 란에 메모 유효기간을 출력 (방사선 종양)
- if ( _frdt != "" && _todt != "" ) {
- for (var i = 1; i <parseInt(grdAeahMemoList.rows); i++) {
- _frdt = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/showstartdd");
- _todt = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/showenddd");
-
- //2009-10-26 메모유효기간 등록안되는 경우가 있음 (1899/11/30 으로 조회되는경우가 있음)-메모등록일자 조회되도록처리
- if (_frdt != "" ) {
- _frdt = _frdt.toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD");
- _todt = _todt.toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD");
- _date = _frdt + " ~ " + _todt;
-
- model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
- }else{
- _date = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd");
- _date = _date.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD");
- model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
- }
- }
- }
-
- // 메모내역-메모일자 란에 메모 등록일자를 출력 (기능검사)
- else {
- for (var i = 1; i <parseInt(grdAeahMemoList.rows); i++) {
- _date = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd");
- _date = _date.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD");
- model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;2,757;2,784;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">환자별Comment관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">일자 :</caption>
- <button id="btnSearch" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- funcInputDataCheck();
- ChangeDateFormat();
- ]]>
- </script>
- </button>
- <input id="iptSDate" ref="/root/send/search/searchSDate" class="input_search" inputtype="date" style="left:76px; top:8px; width:100px; height:19px; "/>
- <caption id="caption4" style="left:180px; top:8px; width:20px; height:20px; text-align:center; ">~</caption>
- <input id="iptEDate" ref="/root/send/search/searchEDate" class="input_search" inputtype="date" style="left:201px; top:8px; width:100px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:318px; top:8px; width:112px; height:17px; ">검사/치료실 :</caption>
- <select1 id="cmbExcuRoom" ref="/root/send/search/searchRoom" class="combo_search" appearance="minimal" style="left:429px; top:8px; width:186px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:635px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
- <!--input id="iptPid" class="input_search" style="left:725px; top:8px; width:186px; height:19px; "/-->
- <input id="ipt_pid" ref="/root/send/search/searchPid" class="input_search" maxlength="10" style="left:725px; top:8px; width:90px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:815px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/search/searchPid","/root/main/send");
-
- model.setValue("/root/send/search/searchPid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption14" class="tit_2" style="left:5px; top:54px; width:147px; height:14px; ">일별현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:527px; y2:70px; "/>
- <line id="line2" class="line_1" style="x1:530px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption66" class="cell_1" style="left:531px; top:76px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="iptPid" ref="/root/send/data/pid" class="input_s_essential" style="left:634px; top:77px; width:150px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var _op = optPname.label;
-
- if ( _op.length >0 )
- model.removeNodeset("/root/send/data/patnm");
- ]]>
- </script>
- </input>
- <output id="optPname" ref="/root/send/data/patnm" class="output_fix" appearance="output" style="left:804px; top:77px; width:131px; height:19px; "/>
- <caption id="caption1" class="tit_2" style="left:529px; top:54px; width:137px; height:13px; ">메모</caption>
- <textarea id="tarMemo" ref="/root/send/data/memodesc" style="left:634px; top:176px; width:560px; height:134px; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:332px; x2:1194px; y2:332px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:317px; width:147px; height:13px; ">메모내역</caption>
- <datagrid id="grdAeahMemoList" nodeset="/root/main/mm/grdAeahMemoList" caption="메모일자^등록번호^환자명^^검사/치료실^메모내용" colsep="^" colwidth="150, 150, 150, 200, 199, 551" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:338px; width:1195px; height:400px; ">
- <!--메모일자-->
- <col ref="memorgstdd" style="text-align:center; "/>
- <!--등록번호-->
- <col ref="pid" style="text-align:center; "/>
- <!--환자명-->
- <col ref="pnm" style="text-align:center; "/>
- <!--검사/치료실Name-->
- <col ref="excuroomcd" visibility="hidden" style="text-align:center; "/>
- <col ref="excuroomnm" style="text-align:center; "/>
- <!--메모내용-->
- <col ref="memodesc" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if ( grdAeahMemoList.row == 0 ) return;
-
- if ( grdAeahMemoList.isCell(event.target) ) {
-
- var i = grdAeahMemoList.row;
- //등록번호
- model.setValue("/root/send/data/pid", model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/pid"));
- //환자명
- optPname.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/pnm");
- //등록일자
- model.setValue("/root/send/data/memodd",model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodd"));
- //치료실 (기능검사실에만 해당)
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/excuroomcd"));
- //메모내용
- model.setValue("/root/send/data/memodesc", model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodesc"));
- tarMemo.value =model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodesc");
- //부서
- model.setValue("/root/send/data/basedeptcd", model.getValue("/root/send/globalinstance/instance1"));
- //메모유효기간 (방사선 종양학과에만 해당)
- showstartdd.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/showstartdd");
- showenddd.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/showenddd");
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="icon_search" style="left:785px; top:79px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/pid","/root/main/send");
-
- model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- model.refresh();
- // 환자조회
- //modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/searchPid","/root/main/send");
- // alert(model.getValue("/root/main/patinfo/patinfolist/pid") + " = " +model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- ]]>
- </script>
- </button>
- <caption id="caption10" class="cell_1" style="left:531px; top:101px; width:100px; height:23px; vertical-align:middle; ">검사/치료실</caption>
- <select1 id="cmbExcuRoom2" ref="/root/send/data/excuroomcd" class="combo_search" appearance="minimal" style="left:634px; top:102px; width:186px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:531px; top:176px; width:100px; height:134px; vertical-align:middle; ">메모내용</caption>
- <line id="line16" class="line_3" style="x1:531px; y1:312px; x2:1190px; y2:312px; "/>
- <caption id="caption12" class="cell_1" style="left:531px; top:126px; width:100px; height:23px; vertical-align:middle; ">메모등록일</caption>
- <output id="outMemodd" ref="/root/send/data/memodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:634px; top:127px; width:131px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:531px; top:151px; width:100px; height:23px; vertical-align:middle; ">메모유효기간</caption>
- <input id="showstartdd" ref="/root/send/data/showstartdd" class="input_search" inputtype="date" style="left:634px; top:152px; width:100px; height:19px; "/>
- <caption id="caption13" style="left:738px; top:152px; width:20px; height:20px; text-align:center; ">~</caption>
- <input id="showenddd" ref="/root/send/data/showenddd" class="input_search" inputtype="date" style="left:759px; top:152px; width:100px; height:19px; "/>
- </group>
- <!-- 달력 시작-->
- <datagrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="75, 75, 75, 75, 75, 75, 75" extendlastcol="noscroll" selectionmode="free" style="left:0px; top:127px; width:527px; height:198px; ">
- <row>
- <col class="color_sun" ref="sun"/>
- <col ref="mon"/>
- <col ref="tue"/>
- <col ref="wed"/>
- <col ref="thu"/>
- <col ref="fri"/>
- <col class="color_sat" ref="sat"/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
- model.setValue("/root/send/data/memodd",yyyymmdd);
- setCellColor(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>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
- //alert(yyyymmdd);
- model.setValue("/root/send/data/memodd",yyyymmdd);
- funcInputDataCheck('c');
- ChangeDateFormat();
- ]]>
- </script>
- </datagrid>
- <group id="grp_calendar" style="left:0px; top:88px; width:528px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:527px; height:40px; "/>
- <button id="button31" class="icon_pre_year" style="left:165px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="button32" class="icon_next_year" style="left:340px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:184px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <button id="button34" class="icon_next_month" style="left:321px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:210px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:260px; top:9px; width:30px; height:19px; "/>
- <caption id="caption9" class="calendar_output" style="left:240px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption15" class="calendar_output" style="left:290px; top:9px; width:20px; height:19px; ">월</caption>
- </group>
- <!--달력 끝-->
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btnClear" class="btn4_letter3" style="left:1068px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("초기화");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
- //alert(yyyymmdd);
- model.setValue("/root/send/data/memodd",yyyymmdd);
- //필수입력 사항 체크 - 메모등록일자/등록번호/메모내용/검사치료실
-
- var _memo = model.getValue("/root/send/data/memodesc");
- var _pid = model.getValue("/root/send/data/pid");
- model.setValue("/root/send/data/basedeptcd",model.getValue("/root/send/globalinstance/instance1"));
- var _message ="";
- var _sc = model.getValue("/root/send/globalinstance/instance1");
- _sc = _sc.substring(0, 4);
-
- switch (_sc) {
- case "2170":
- model.setValue("/root/send/data/memodd", getCurrentDate());
- model.setValue("/root/send/data/excuroomcd", _sc);
- break;
- default:
- break;
- }
- var _memodd = model.getValue("/root/send/data/memodd");
- var _room = model.getValue("/root/send/data/excuroomcd");
- //alert(_memodd);
- if(_memodd =="" || _memodd.length<8){_message +="메모일자/"}
- if(_memo =="" || _memo.length <1 ){_message +="메모내용/"}
- if(_pid =="" || _pid.length <5 ){_message +="등록번호/"}
- if(_room =="" ){_message +="검사치료실"}
-
-
- if(_message !="" && _message.length >0){
- messageBox("[필수입력항목]"+_message+"를(을) 확인하십시오","I999");
- return true;
- }
-
- submit("TXAEA02701");
-
- model.reset();
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line13" class="line_4" style="x1:1107px; y1:29px; x2:1107px; y2:51px; "/>
- </xhtml:body>
- </xhtml:html>
|