123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?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>Angio 일정등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <userpopupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </userpopupinfo>
- <userinfolist/>
- <popupendflag/>
- </main>
- <send>
- <data>
- <status/>
- <opdd/>
- <wardcd/>
- <roomcd/>
- <pid/>
- <diagcd/>
- <diagnm/>
- <opcd/>
- <opnm/>
- <datarem/>
- <atdoctid/>
- <beeferrem/>
- <dataupdtpwd/>
- <atdoctcmt/>
- <dataupdtflag/>
- <patnm/>
- <sex/>
- <age/>
- <atdoctnm/>
- <srchcond/>
- <optm/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <hidden>
- <count/>
- </hidden>
- <init>
- <cmb_ward>
- <initward>
- <wardcdid/>
- <wardcdnm/>
- </initward>
- </cmb_ward>
- <cmb_room>
- <initwardroom>
- <wardroomcdid/>
- <wardroomcdnm/>
- </initwardroom>
- </cmb_room>
- <openersend>
- <data/>
- </openersend>
- </init>
- <temp>
- <wardlist>
- <wardcd/>
- <roomcd/>
- <wardnm/>
- </wardlist>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- var sOPSCHERECINFO_PATH = "/root/send/data";
-
- /**
- * @desc : 데이터 한글인지 영문인지 구분해주는 함수
- * @param : pData: 한글여부를 비교할 데이터
- * @return : E: 영문, H: 한글
- * @authur : 마정민 2007. 5. 30
- * @---------------------------------------------------
- */
- function fIsHangul(pData) {
- var sBit = pData.charAt(0);
- if (escape(sBit).length <= 4) return "E";
- return "H";
- }
-
- /**
- * @desc : 진단명 검색 팝업 open
- * @
- * @param : pFlag 처리구분 (code : 코드검색, term : 수술명)
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fOpenDiagSearch(pFlag){
- if(pFlag == "code"){
- setParameter("SPMMO00800_cond1", 1);
- setParameter("SPMMO00800_cond2", 1);
- setParameter("SPMMO00800_cond3", "E");
- setParameter("SPMMO00800_cond4", getCurrentDate());
- setParameter("SPMMO00800_cond5", model.getValue(sOPSCHERECINFO_PATH + "/dispdiagcd"));
- }else if(pFlag =="term"){
- var diagnm = model.getValue(sOPSCHERECINFO_PATH + "/diagnm");
- setParameter("SPMMO00800_cond1", 2);
- setParameter("SPMMO00800_cond2", 2);
- setParameter("SPMMO00800_cond3", fIsHangul(diagnm));
- setParameter("SPMMO00800_cond4", getCurrentDate());
- setParameter("SPMMO00800_cond5", diagnm);
- }
- modal("SPMMO00800");
-
- var useyn = getParameter("SPMMO00800_rtn_useyn");
- if(useyn == "Y"){
- setParameter("SPMMO00800_rtn_useyn", "N");
- var rtnparam = getParameter("SPMMO00800_rtn");
- rtnparam = rtnparam.split("▩");
- var tmpstr = rtnparam[1];
-
- tmpstr = tmpstr.split("▦");
- //model.setValue(sOPSCHERECINFO_PATH + "/dispdiagcd", tmpstr[1]);
- model.setValue(sOPSCHERECINFO_PATH + "/diagcd" , tmpstr[9]);
- model.setValue(sOPSCHERECINFO_PATH + "/diagnm" , tmpstr[2]);
- //20101102: 수정가능하도록 하자
- //ipt_diagcd.attribute("editable") = "false";
- //ipt_diagnm.attribute("editable") = "false";
- model.setFocus("ipt_opnm");
- model.refresh();
-
- }else{
- //model.setValue(sOPSCHERECINFO_PATH + "/dispdiagcd", "");
- model.setValue(sOPSCHERECINFO_PATH + "/diagcd" , "");
- model.setValue(sOPSCHERECINFO_PATH + "/diagnm" , "");
- model.refresh();
- }
- }
-
- /**
- * @desc : 수술명 검색 팝업 open
- * @
- * @param : pFlag 처리구분 (code : 코드검색, term : 수술명)
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fOpenOpSearch(pFlag){
- if(pFlag == "code"){
- var param = "1▦" +
- "1▦E▦" +
- getCurrentDate()
- // + "▦" + model.getValue(sOPSCHERECINFO_PATH + "/dispopcd");
- setParameter("SPMMO05200_param", param);
- }else if(pFlag == "term"){
- var opnm = model.getValue("/root/send/data/opnm");
- var param = "2▦3▦" +
- fIsHangul(opnm) + "▦" +
- getCurrentDate() + "▦" +
- opnm;
- setParameter("SPMMO05200_param", param);
- }
- modal("SPMMO05200");
-
- var useyn = getParameter("SPMMO05200_rtn_useyn");
- //alert(useyn);
- if(useyn == "Y"){
- setParameter("SPMMO05200_rtn_useyn", "N");
- var rtnparam = getParameter("SPMMO05200_rtn_param");
- rtnparam = rtnparam.split("▩");
-
- var tmpstr = rtnparam[0];
- tmpstr = tmpstr.split("▦");
- //model.setValue(sOPSCHERECINFO_PATH + "/dispopcd" , tmpstr[0]);
- model.setValue(sOPSCHERECINFO_PATH + "/opcd" , tmpstr[1]);
- model.setValue(sOPSCHERECINFO_PATH + "/opnm" , tmpstr[2]);
- //20101102: 수정가능하도록 하자
- //ipt_opcd.attribute("editable") = "false";
- //ipt_opnm.attribute("editable") = "false";
- model.setFocus("ipt_datarem");
- model.refresh();
- }else{
- //model.setValue(sOPSCHERECINFO_PATH + "/dispopcd", "");
- //alert(model.getValue(sOPSCHERECINFO_PATH + "/opcd"));
- model.setValue(sOPSCHERECINFO_PATH + "/opcd" , "");
- model.setValue(sOPSCHERECINFO_PATH + "/opnm" , "");
- model.refresh();
- }
- }
-
- function fChngSrchRoomCd() {
- if ( model.getValue("/root/send/data/wardcd") == "" ) return;
- model.resetInstanceNode("/root/init/cmb_room/initwardroom");
- submit("TRAEA02403");
- }
-
- function fSrchPatInfo() {
- /* @group : Angio 일정 등록
- * @ver : 2007.7.24
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호를 통한 환자 이름, 성별 및 나이 조회
- */
- model.setValue("/root/send/data/srchcond", "1"); // 검색조건 등록번호로 셋팅
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/data", "/root/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.setValue( "/root/send/data/sex", model.getValue("/root/main/patinfo/patinfolist/sex") ); // 환자 성별
- model.setValue( "/root/send/data/age", model.getValue("/root/main/patinfo/patinfolist/age") ); // 환자 나이
- model.refresh();
-
- submit("TRAEA02407");
- model.setValue("/root/send/data/wardcd", model.getValue("/root/temp/wardlist/wardcd") );
- fChngSrchRoomCd();
- model.setValue("/root/send/data/roomcd", model.getValue("/root/temp/wardlist/roomcd") );
- model.refresh();
- }
-
- function fSrchDrInfo() {
- /* @group : Angio 일정 등록
- * @ver : 2007.7.24
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 사용자ID를 통한 사용자 이름 조회
- */
- model.resetInstanceNode("/root/main/userpopupinfo"); // Instance 초기화
- model.removeNodeset("/root/main/userinfolist/list"); // Instance 초기화
-
- model.setValue("/root/main/userpopupinfo/param", "_OneS"); // 사용자 한 명만을 검색하기 위한 파라미터 설정
- modal("SPZSU10103", "", "200", "200", "SPZSU10103", "/root/main/userpopupinfo", "/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/main/userinfolist", iParam);
- clearParameter("SPZSU10103_");
-
- model.setValue( "/root/send/data/atdoctid", model.getValue("/root/main/userinfolist/list/userid") ); // 사용자 ID
- model.setValue( "/root/send/data/atdoctnm", model.getValue("/root/main/userinfolist/list/usernm") ); // 사용자 이름
-
- model.refresh();
- }
-
- function chkIsChild() {
- var _status = model.getValue("/root/send/data/status");
-
- // 일정관리 화면에서 'Edit'로 본 화면을 호출했을 경우
- if ( _status == "u" ) {
- ipt_opdd.attribute("editable") = "false";
- ipt_pid.attribute("editable") = "false";
- }
-
- // 일정관리 화면에서 'Copy'로 본 화면을 호출했을 경우
- else if ( _status == "i" ) {
- model.resetInstanceNode("/root/send/data/opdd");
- }
-
- // 그 이외의 경우
- else {
- model.setValue("/root/send/data/status", "i");
- model.setValue("/root/send/data/dataupdtflag", "2");
- }
- }
- ]]>
- </script>
- <!-- 첫 화면 로딩시 수행되는 이벤트 -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- var srchLength1 = model.instances(0).selectNodes( "/root/send/data" ).length;
-
- //if ( srchLength1 > 0 ) {
- // model.copyNode ( "/root/send/data", "/root/init/openersend/data" );
- // model.refresh();
- //}
- chkIsChild();
-
- //20101011 해당근무지에 따라 타이틀 변경 - 박재영
- var dutplcenm = getUserInfo("dutplcenm");
- document.title = dutplcenm + " 수술일정등록";
- caption1.text = dutplcenm + " 수술일정등록";
-
- submit("TRAEA02402");
- model.refresh();
-
- if ( srchLength1 > 0 ) {
- submit("TRAEA02407");
- model.setValue("/root/send/data/wardcd", model.getValue("/root/temp/wardlist/wardcd") );
- fChngSrchRoomCd();
- model.setValue("/root/send/data/roomcd", model.getValue("/root/temp/wardlist/roomcd") );
- model.refresh();
- }
- model.setFocus("ipt_opdd"); // 수술날짜 입력란으로 자동 focus
- ]]>
- </script>
- <submission id="TRAEA02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_ward"/>
- <submission id="TRAEA02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_room"/>
- <!-- Angio 일정 등록을 위한 mapping file -->
- <submission id="TXAEA02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEA02406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/pid" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEA02407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/pid" replace="instance" resultref="/root/temp/wardlist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="525" pageheight="350" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:306px; ">
- <caption id="caption13" class="cell_1" style="left:0px; top:23px; width:59px; height:23px; vertical-align:middle; ">수술날짜</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:2px; width:470px; height:13px; ">Angio일정등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:17px; x2:500px; y2:17px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:76px; width:59px; height:23px; vertical-align:middle; ">병실</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:101px; width:59px; height:23px; vertical-align:middle; ">진단명</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:50px; width:59px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:152px; width:59px; height:23px; vertical-align:middle; ">비고</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:126px; width:59px; height:23px; vertical-align:middle; ">수술명</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:204px; width:59px; height:23px; vertical-align:middle; ">비퍼</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:178px; width:59px; height:23px; vertical-align:middle; ">주치의</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:230px; width:59px; height:23px; vertical-align:middle; ">패스워드</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:125px; x2:499px; y2:125px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:150px; x2:499px; y2:150px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:99px; x2:499px; y2:99px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:202px; x2:499px; y2:202px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:228px; x2:499px; y2:228px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:254px; x2:499px; y2:254px; "/>
- <!-- 수술날짜 -->
- <input id="ipt_opdd" ref="/root/send/data/opdd" class="input_default" inputtype="date" style="left:62px; top:24px; width:100px; height:19px; "/>
- <!-- 병동 -->
- <select1 id="cmb_wardcd" ref="/root/send/data/wardcd" class="combo_search" appearance="minimal" editmode="input" style="left:62px; top:78px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_ward/initward">
- <label ref="wardcdnm"/>
- <value ref="wardcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchRoomCd();
- ]]>
- </script>
- </select1>
- <!-- 병실 -->
- <select1 id="cmb_roomcd" ref="/root/send/data/roomcd" class="combo_search" appearance="minimal" editmode="input" style="left:190px; top:78px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_room/initwardroom">
- <label ref="wardroomcdnm"/>
- <value ref="wardroomcdid"/>
- </itemset>
- </choices>
- </select1>
- <!-- 등록번호 -->
- <input id="ipt_pid" ref="/root/send/data/pid" class="input_search" maxlength="10" style="left:62px; top:52px; width:100px; height:19px; "/>
- <!-- 등록번호 조회버튼 (돋보기 모양) -->
- <button id="btn_pidsrch" class="icon_search" style="left:168px; top:53px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchPatInfo();
- ]]>
- </script>
- </button>
- <!-- 성별 -->
- <output id="opt_sex" ref="/root/send/data/sex" class="output_fix" style="left:332px; top:52px; width:60px; height:19px; "/>
- <!-- 나이 -->
- <output id="opt_age" ref="/root/send/data/age" class="output_fix" style="left:434px; top:52px; width:55px; height:19px; "/>
- <!-- 진단코드 -->
- <input id="ipt_diagcd" ref="/root/send/data/diagcd" class="input_search" visibility="hidden" maxlength="500" style="left:62px; top:103px; width:406px; height:19px; "/>
- <!-- 진단명 -->
- <input id="ipt_diagnm" ref="/root/send/data/diagnm" class="input_search" maxlength="500" style="left:62px; top:103px; width:406px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_diagnminfo", "DOMActivate");
- ]]>
- </script>
- </input>
- <!-- 진단명 검색버튼 -->
- <button id="btn_diagnminfo" class="icon_search" style="left:474px; top:104px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( ipt_diagnm.value.length < 3 ){
- messageBox("검색어를 3자이상 " , "C001");
- model.setFocus("ipt_diagnm");
- return ;
- }
- fOpenDiagSearch("term");
- ]]>
- </script>
- </button>
- <!-- 수술코드 -->
- <input id="ipt_opcd" ref="/root/send/data/opcd" class="input_search" visibility="hidden" maxlength="500" style="left:62px; top:128px; width:406px; height:19px; "/>
- <!-- 수술명 -->
- <input id="ipt_opnm" ref="/root/send/data/opnm" class="input_search" maxlength="500" style="left:62px; top:128px; width:406px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_opnminfo", "DOMActivate");
- ]]>
- </script>
- </input>
- <!-- 수술명 검색버튼 -->
- <button id="btn_opnminfo" class="icon_search" style="left:474px; top:129px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( ipt_opnm.value.length < 3 ){
- messageBox("검색어를 3자이상 " , "C001");
- model.setFocus("ipt_opnm");
- return ;
- }
- fOpenOpSearch("term");
- ]]>
- </script>
- </button>
- <!-- 비고 -->
- <input id="ipt_datarem" ref="/root/send/data/datarem" class="input_search" maxlength="900" style="left:62px; top:154px; width:428px; height:19px; "/>
- <!-- 주치의 -->
- <input id="ipt_atdoctid" ref="/root/send/data/atdoctid" class="input_search" visibility="hidden" maxlength="10" style="left:302px; top:179px; width:100px; height:19px; "/>
- <!-- 주치의 조회버튼 (돋보기 모양) -->
- <button id="btn_atdoctidsrch" class="icon_search" style="left:168px; top:181px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchDrInfo();
- ]]>
- </script>
- </button>
- <!-- 비퍼 -->
- <input id="ipt_beeferrem" ref="/root/send/data/beeferrem" class="input_search" maxlength="30" style="left:62px; top:205px; width:100px; height:19px; "/>
- <!-- 패스워드 -->
- <input id="ipt_dataupdtpwd" ref="/root/send/data/dataupdtpwd" class="input_search" maxlength="30" style="left:62px; top:232px; width:100px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var pwd = ipt_dataupdtpwd.currentText;
-
- if ( pwd.length < 2) {
- messageBox("패스워드를 2자 이상으로 입력해 주십시오.", "I999");
- model.setFocus("ipt_dataupdtpwd");
- }
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell_1" style="left:0px; top:256px; width:60px; height:49px; vertical-align:middle; ">소견</caption>
- <!-- 소견 -->
- <textarea id="tar_atdoctcmt" ref="/root/send/data/atdoctcmt" maxlength="300" style="left:63px; top:258px; width:435px; height:45px; "/>
- <!-- Data 상태 flag -->
- <input id="ipt_dataupdtflag" ref="/root/send/data/dataupdtflag" class="input_search" visibility="hidden" style="left:410px; top:25px; width:80px; height:19px; "/>
- <input id="ipt_status" ref="/root/send/data/status" class="input_search" visibility="hidden" style="left:325px; top:25px; width:80px; height:19px; "/>
- <input id="input1" ref="/root/send/data/optm" class="input_search" format="hh:nn" style="left:235px; top:24px; width:60px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:170px; top:23px; width:59px; height:23px; vertical-align:middle; ">수술시간</caption>
- </group>
- <line id="line3" class="line_2" style="x1:0px; y1:47px; x2:499px; y2:47px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:73px; x2:499px; y2:73px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:175px; x2:499px; y2:175px; "/>
- <!--caption id="caption10" style="left:168px; top:24px; width:90px; height:20px; vertical-align:middle; ">예] 2007-10-29</caption-->
- <output id="opt_pathngnm" ref="/root/send/data/patnm" class="output_fix" style="left:190px; top:52px; width:100px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:295px; top:50px; width:35px; height:23px; vertical-align:middle; ">성별</caption>
- <caption id="caption12" class="cell_1" style="left:396px; top:50px; width:35px; height:23px; vertical-align:middle; ">나이</caption>
- <output id="opt_atdoctnm" ref="/root/send/data/atdoctnm" class="output_fix" style="left:63px; top:180px; width:100px; height:19px; "/>
- <caption id="caption14" style="left:165px; top:232px; width:172px; height:20px; vertical-align:middle; ">2자 이상으로 지정해 주십시오.</caption>
- <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:501px; height:27px; ">
- <button id="btn_rgst" class="btn4_letter2" style="left:384px; top:5px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("" , "Q002") == 6 ) { // 등록여부 확인
- var _date = model.getValue("/root/send/data/opdd");
- var _date2 = getCurrentDate();
- var _pid = model.getValue("/root/send/data/pid");
- var _pnm = model.getValue("/root/send/data/patnm");
- var _dataupdtpwd = model.getValue("/root/send/data/dataupdtpwd");
- var _msg = "";
-
- // 수술날짜와 등록번호에 대한 validation 체크 (연월일 입력양식 체크, 수술날짜가 오늘 날짜보다 미래인지 체크)
- if ( isValidDateTime(_date, "YYYYMMDD" ) == false || getDateInterval(_date2, _date) < 0) {
- _msg += "수술일 오류or미래일 ";
- }
-
- if ( _pid == "") {
- _msg += "등록번호";
- }
-
- if ( _pnm == "") {
- _msg += "환자명";
- }
-
- if ( _dataupdtpwd == "") {
- _msg += "패스워드";
- }
-
- if ( _msg != "" ) {
- messageBox("입력하신 내용 중 " + _msg + "에 대한 내용이 빠져있거나 잘못되었습니다. 확인해 주십시오.", "I999");
- return true;
- }
- // 외래환자는 등록을 못하게 처리를 하였다가, 사용자요청으로 처리가능하게 함. 20080221
- // if (submit("TRAEA02406")) {
- //
- // }else {
- //// messageBox("재원여부 확인 조회가 수행되지 못했습니다.", "I999");
- // return;
- // }
-
- if (submit("TXAEA02401")) {
- messageBox("정상적으로 등록되었습니다.", "I999");
- //model.reset();
- model.refresh();
- }else {
- messageBox("등록 실패하였습니다.", "I999");
- return;
- }
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_scheref" class="btn6_letter4" style="left:85px; top:5px; width:80px; height:22px; ">
- <caption>일정조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPAEA00300", "","300","250", "SPAEA00300", "","");
- ]]>
- </script>
- </button>
- <button id="btn_schemngt" class="btn6_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
- <caption>일정관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA02400", "", "50", "50", "SMAEA02400", "", "");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:440px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|