12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMI02800_외출외박승인.xrw
- * 설 명 : 외출외박승인
- * 설 계 자 : 홍영표
- * 작 성 자 : 홍영표
- * 작 성 일 : 2007.08.22
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>외출외박승인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <srchcond1>2</srchcond1>
- <pid/>
- <insukind/>
- <goso_caller/>
- <s_goso>
- <goso_status/>
- </s_goso>
- <sess_posinstcd>012</sess_posinstcd>
- <data1>
- <goso_pid/>
- <goso_indd/>
- <goso_cretno/>
- <goso_appdd/>
- <goso_seqno/>
- <goso_caller/>
- </data1>
- <ioflag/>
- </send>
- <main>
- <goso>
- <goso_status/>
- <goso_pid/>
- <goso_indd/>
- <goso_cretno/>
- <goso_seqno/>
- <goso_instcd/>
- <goso_histstat/>
- <goso_acptflagcd/>
- <goso_appdd/>
- <goso_apptm/>
- <goso_appid/>
- <goso_pamacptdd/>
- <goso_pamacpttm/>
- <goso_pamacptid/>
- <goso_orddeptcd/>
- <goso_atdoctid/>
- <goso_wardcd/>
- <goso_roomcd/>
- <goso_gootdd/>
- <goso_goottm/>
- <goso_goottmtm/>
- <goso_goottmmin/>
- <goso_rtndd/>
- <goso_rtntm/>
- <goso_rtntmtm/>
- <goso_rtntmmin/>
- <goso_orgrtndd/>
- <goso_orgrtntm/>
- <goso_orgrtntmtm/>
- <goso_orgrtntmmin/>
- <goso_orgrtnacptid/>
- <goso_rtncnfmyn/>
- <goso_tel1/>
- <goso_tel2/>
- <goso_gootresn/>
- <goso_nonaprvresn/>
- <goso_rem/>
- <goso_fstrgstrid/>
- <goso_fstrgstdt/>
- <goso_lastupdtrid/>
- <goso_lastupdtdt/>
- <goso_hngnm/>
- <goso_sex/>
- <goso_age/>
- </goso>
- <gosolist>
- <goso_pid/>
- <goso_indd/>
- <goso_cretno/>
- <goso_seqno/>
- <goso_instcd/>
- <goso_histstat/>
- <goso_acptflagcd/>
- <goso_appdd/>
- <goso_apptm/>
- <goso_appid/>
- <goso_pamacptdd/>
- <goso_pamacpttm/>
- <goso_pamacptid/>
- <goso_orddeptcd/>
- <goso_atdoctid/>
- <goso_wardcd/>
- <goso_roomcd/>
- <goso_gootdd/>
- <goso_goottm/>
- <goso_goottmtm/>
- <goso_goottmmin/>
- <goso_rtndd/>
- <goso_rtntm/>
- <goso_rtntmtm/>
- <goso_rtntmmin/>
- <goso_orgrtndd/>
- <goso_orgrtntm/>
- <goso_orgrtntmtm/>
- <goso_orgrtntmmin/>
- <goso_orgrtnacptid/>
- <goso_rtncnfmyn/>
- <goso_tel1/>
- <goso_tel2/>
- <goso_gootresn/>
- <goso_nonaprvresn/>
- <goso_rem/>
- <goso_fstrgstrid/>
- <goso_fstrgstdt/>
- <goso_lastupdtrid/>
- <goso_lastupdtdt/>
- <goso_hngnm/>
- <goso_sex/>
- <goso_age/>
- </gosolist>
- </main>
- <hidden>
- <rcv>
- <goso/>
- </rcv>
- <original>
- <goso/>
- </original>
- <flag>
- <rcv_flag>
- <goso_count/>
- <goso_pid/>
- <goso_indd/>
- <goso_cretno/>
- </rcv_flag>
- </flag>
- <temp>
- </temp>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- <gr/>
- <ty/>
- </roomcd>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- </init>
- <source/>
- <target/>
- </hidden>
- <init>
- <P0418list>
- <P0418>
- <cdnm/>
- <cdid/>
- </P0418>
- </P0418list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TRPMI01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/h_gosoprint"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0418"), new Array("/root/init/P0418list"));
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddeptcd[orddeptflag = 'D']"
- model.setValue("/root/send/ioflag","I");
-
- submit("TRPMI00106");
-
- var sPid = "";
- var sSrchCond = "";
-
- if (isPopup()) {
- sSrchCond = opener.javascript.getParameter("SMPAI00100_Param2");
- sPid = opener.javascript.getParameter("SMPAI00100_Param3");
-
- opener.javascript.clearParameter("SMPAI00100_Param2");
- opener.javascript.clearParameter("SMPAI00100_Param3");
-
- model.setValue("/root/send/srchcond1", sSrchCond);
- cmb_srchcond1.dispatch("xforms-select");
- } else {
- sPid = model.getValue("/root/hidden/target/pid");
- }
-
- if (!isNull(sPid)) {
- model.setValue("/root/send/pid", sPid);
- fInitSetting(true, false);
- fQuery();
- }else {
- fInitSetting(true, false);
- }
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 초기값 셋팅
- function fInitSetting(arg1, arg2){
- ipt_srchpid.visible = arg1;
- cmb_insukind.visible = arg2;
- if(arg1 == false){
- model.setValue("/root/send/pid","");
- }
- group2.refresh();
- }
-
- // 조회조건 컨트롤 조정
- function fipatrefchlind(ipatrefflag)
- {
- if (ipatrefflag == '1') {
- ipt_srchpid.attribute("top") = "8xp";
- ipt_srchpid.attribute("left") = "220px";
- ipt_srchpid.visible = true;
- cmb_insukind.visible = false;
- model.setFocus("ipt_srchpid");
- } else if (ipatrefflag == '2') {
- ipt_srchpid.visible = false;
- cmb_insukind.visible = false;
- } else if (ipatrefflag == '3') {
- ipt_srchpid.visible = false;
- cmb_insukind.visible = false;
- } else if (ipatrefflag == '6') {
- ipt_srchpid.visible = false;
- cmb_insukind.attribute("top") = "8xp";
- cmb_insukind.attribute("left") = "220px";
- cmb_insukind.visible = true;
- model.setFocus("cmb_insukind");
- } else if (ipatrefflag == '7') {
- ipt_srchpid.visible = true;
- cmb_insukind.visible = false;
- }
- }
-
- // 외출외박환자리스트 조회
- function fQuery(){
-
- model.setValue("/root/send/goso_caller" , "SMPMI02800"); //289
-
- if (submit("TRPMI01101","false") == true){
- model.resetInstanceNode("/root/main");
-
- copyNodesetType("/root/hidden/original/goso","/root/hidden/rcv/goso","replace");
- copyNodesetType("/root/main/gosolist","/root/hidden/rcv/goso[goso_acptflagcd != null]","replace");
-
- grd_gootspotlist.rebuild();
- model.refresh();
- }
- }
-
- // 외출외박 승인 등록,취소
- function fChangeSave(arg1){
- var goso_flag = null;
- goso_flag = arg1;
-
- model.removeNodeset("/root/send/s_goso/goso");
-
- if (goso_flag == 'U'){ // 승인등록 Routin
-
- // 간호귀가확인후에는 수정을 못하도록 처리한다.
- var srtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
- if ( srtncnfmyn == 'Y'){
- messageBox("귀가확인처리된 데이터이므로 수정할수","I004");
- return;
- }
-
- // 필수입력항목체크
- var sValCheck = fValCheck();
- if (sValCheck != 'Y') {
- messageBox(sValCheck,"I004");
- return;
- }
-
- model.setValue("/root/main/goso/goso_status",goso_flag);
- copyNodeType("/root/send/s_goso", "/root/main/goso", "replace");
-
- } else {
- messageBox("변경된 내역이","I004");
- return;
-
- }
-
- if ( goso_flag == 'U' ) {
- submit("TXPMI01101");
- } else {
- messageBox("변경된 내역이","I004");
- }
- var sAcptFlag = model.getValue("/root/main/goso/goso_acptflagcd");
-
- if (sAcptFlag != "3") {
- //승인 후 외출외박신청서 출력
- var inc_goso_seqno = model.getValue("/root/main/goso/goso_seqno");
- inc_goso_seqno= parseInt(inc_goso_seqno)+1;
-
- // fGoSoPrint(model.getValue("/root/main/goso/goso_pid")
- // , model.getValue("/root/main/goso/goso_indd")
- // , model.getValue("/root/main/goso/goso_cretno")
- // , model.getValue("/root/main/goso/goso_appdd")
- // , inc_goso_seqno);
- }
-
- // alert("goso_flag:"+goso_flag);
-
- fQuery();
- }
-
- //2007.12.12 외출외박신청서 출력
- function fGoSoPrint(vpid, vindd, vcretno, vappdd, vseqno)
- {
- model.removeNodeset("/root/hidden/h_gosoprint/gosoprint");
-
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_pid"); //등록번호
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_hngnm");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rrgstno");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_orddeptcd");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_medispclid");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_wardcd");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_roomcd");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_insukind");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_tel1");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_tel2");
-
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_gootdd");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_goottm");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtndd");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtntm");
-
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_gootyy");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_gootmm");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_gootdd1");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_goothh");
-
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtnyy");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtnmm");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtndd1");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtnhh");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rtnday");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_gootresn");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_rem");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_logo");
-
-
- model.setValue("/root/send/data1/goso_pid",vpid);
- model.setValue("/root/send/data1/goso_indd",vindd);
- model.setValue("/root/send/data1/goso_cretno",vcretno);
- model.setValue("/root/send/data1/goso_appdd",vappdd);
- model.setValue("/root/send/data1/goso_seqno",vseqno);
- model.setValue("/root/send/data1/goso_caller","SMPMI02800"); //402
- if (submit("TRPMI01102") == true) {
- var goso_node = instance1.selectSingleNode("/root/hidden/h_gosoprint/gosoprint");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_atdoctidnm");
- model.makeNode("/root/hidden/h_gosoprint/gosoprint/goso_appidnm");
- if (goso_node != null) {
- var goso_gootdd = model.getValue("/root/hidden/h_gosoprint/gosoprint/goso_gootdd");
- var goso_goottm = model.getValue("/root/hidden/h_gosoprint/gosoprint/goso_goottm");
- var goso_rtndd = model.getValue("/root/hidden/h_gosoprint/gosoprint/goso_rtndd");
- var goso_rtntm = model.getValue("/root/hidden/h_gosoprint/gosoprint/goso_rtntm");
- var goso_rrgstno = model.getValue("/root/hidden/h_gosoprint/gosoprint/goso_rrgstno");
-
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_gootyy",goso_gootdd.substr(0,4));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_gootmm",goso_gootdd.substr(4,2));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_gootdd1",goso_gootdd.substr(6,2));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_goothh",goso_goottm.substr(0,2));
-
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_rtnyy",goso_rtndd.substr(0,4));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_rtnmm",goso_rtndd.substr(4,2));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_rtndd1",goso_rtndd.substr(6,2));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_rtnhh",goso_rtntm.substr(0,2));
-
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_rrgstno",goso_rrgstno.substr(0,6) + "-" + goso_rrgstno.substr(6,7));
-
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_atdoctidnm", model.getValue("/root/main/gosolist["+grd_gootspotlist.row+"]/goso_atdoctidnm"));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_appidnm", model.getValue("/root/main/gosolist["+grd_gootspotlist.row+"]/goso_appidnm"));
- model.setValue("/root/hidden/h_gosoprint/gosoprint/goso_logo", getLogoImageURL()); // 병원로고
-
- exeReportPreview("RPPMI02801", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true", "", "");
- }
- }
- }
-
- // 전과신청내역의 필수 입력항목 체크
- function fValCheck(){
- var rtn = "Y";
-
- var goso_pid = model.getValue("/root/main/goso/goso_pid");
- var goso_indd = model.getValue("/root/main/goso/goso_indd");
- var goso_cretno = model.getValue("/root/main/goso/goso_cretno");
- var goso_histstat = model.getValue("/root/main/goso/goso_histstat");
- var goso_acptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
- var goso_appdd = model.getValue("/root/main/goso/goso_appdd");
- var goso_apptm = model.getValue("/root/main/goso/goso_apptm");
- var goso_gootdd = model.getValue("/root/main/goso/goso_gootdd");
- var goso_goottmtm = model.getValue("/root/main/goso/goso_goottmtm");
- var goso_goottmmin = model.getValue("/root/main/goso/goso_goottmmin"); // 외출일시의 분(temp)
- var goso_rtndd = model.getValue("/root/main/goso/goso_rtndd");
- var goso_rtntmtm = model.getValue("/root/main/goso/goso_rtntmtm");
- var goso_rtntmmin = model.getValue("/root/main/goso/goso_rtntmmin"); // 귀가일시의 분(temp)
- var goso_orgrtndd = model.getValue("/root/main/goso/goso_orgrtndd");
- var goso_orgrtntmtm = model.getValue("/root/main/goso/goso_orgrtntmtm");
- var goso_orgrtntmmin = model.getValue("/root/main/goso/goso_orgrtntmmin"); // 실제귀가일시의 분(temp)
- var goso_nonaprvresn = model.getValue("/root/main/goso/goso_nonaprvresn");
-
- if (goso_pid == null || goso_pid == ""){
- rtn = "환자등록번호가";
- } else if (goso_indd == null || goso_indd == ""){
- rtn = "입원일자가";
- } else if (goso_cretno == null || goso_cretno == ""){
- rtn = "입원등록키가";
- } else if (goso_histstat == null || goso_histstat == ""){
- rtn = "상태값이";
- } else if (goso_acptflagcd == null || goso_acptflagcd == ""){
- rtn = "접수상태가";
- } else if (goso_appdd == null || goso_appdd == ""){
- rtn = "신청일자가";
- } else if (goso_apptm == null || goso_apptm == ""){
- rtn = "신청시간이";
- } else if (goso_gootdd == null || goso_gootdd == ""){
- rtn = "외출일자가";
- } else if (goso_goottmtm == null || goso_goottmtm == ""){
- rtn = "외출시간중 시가";
- } else if (goso_goottmmin == null || goso_goottmmin == ""){
- rtn = "외출시간중 분이";
- } else if (goso_rtndd == null || goso_rtndd == ""){
- rtn = "귀가일자가";
- } else if (goso_rtntmtm == null || goso_rtntmtm == ""){
- rtn = "귀가시간중 시가";
- } else if (goso_rtntmmin == null || goso_rtntmmin == ""){
- rtn = "귀가시간중 분이";
- // }else if (goso_orgrtndd == null || goso_orgrtndd == ""){
- // rtn = "실제귀가일자가";
- // } else if (goso_orgrtntmtm == null || goso_orgrtntmtm == ""){
- // rtn = "실제귀가시간중 시가";
- // } else if (goso_orgrtntmmin == null || goso_orgrtntmmin == ""){
- // rtn = "실제귀가시간중 분이";
- }
-
- if (goso_acptflagcd == '1' ){
- rtn = "승인여부가";
- }else if (goso_acptflagcd == '3' ){
- if (goso_nonaprvresn == null || goso_nonaprvresn == "" || goso_nonaprvresn == " "){
- rtn = "불승인 사유가";
- }
- }
-
- if (rtn == 'Y'){ // 외출시간이나 귀가시간에서 시와 분으로 나누어진것을 더해서 데이터 저장을 한다.
- model.setValue("/root/main/goso/goso_goottm",goso_goottmtm+goso_goottmmin);
- model.setValue("/root/main/goso/goso_rtntm",goso_rtntmtm+goso_rtntmmin);
- model.setValue("/root/main/goso/goso_orgrtntm",goso_orgrtntmtm+goso_orgrtntmmin);
- }
- return rtn;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" pageheight="600" guideline="1,900;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:700px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">외출외박승인</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:700px; height:542px; ">
- <group id="group2" style="left:0px; top:5px; width:700px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:700px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="15" style="left:630px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fQuery();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:615px; y1:7px; x2:615px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchpid" ref="/root/send/pid" class="input_search" navindex="14" visibility="hidden" style="left:215px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption50" class="search_name" style="left:20px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_srchcond1" ref="/root/send/srchcond1" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:102px; height:19px; ">
- <choices>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>미승인</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>3</value>
- </item>
- <item>
- <label>보험유형</label>
- <value>6</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var ipatrefflag = model.getValue("/root/send/srchcond1");
- model.resetInstanceNode("/root/send/pid");
- ipt_srchpid.refresh();
- fipatrefchlind(ipatrefflag);
- if (ipatrefflag == '2'||ipatrefflag == '3'){
- btn_srch.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" visibility="hidden" appearance="minimal" style="left:240px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- btn_srch.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:280px; width:150px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:295px; x2:700px; y2:295px; "/>
- <datagrid id="grd_gootspotlist" nodeset="/root/main/gosolist" caption="상태^환자번호^환자성명^보험유형^외출일자^외출시간^귀가일자^귀가시간^실귀가일자^실귀가시간^귀가확인여부^외출사유^주민번호^주소^연락처1^연락처2^진료과^전문의^병동^병실^승인의사^원무승인자^실귀가확인자^불승인사유^비고^최초접수자^최초접수일시^최종수정담당자^최종수정일시^indd^cretno^appdd^seqno^status^instcd^histstat^apptm^pamacptdd^pamacpttm^goottmtm^goottmmin^rtntmtm^rtntmmin^sex^age^atdoctidnm^appidnm^dschdclrtyn^dschnotiyn" colsep="^" colwidth="53, 70, 80, 88, 100, 60, 100, 60, 100, 70, 80, 100, 130, 206, 108, 100, 88, 80, 100, 100, 100, 100, 100, 100, 100, 90, 115, 90, 115, 10, 10, 10, 10, 11, 31, 15, 16, 24, 19, 12, 22, 28, 28, 29, 21, 31, 33, 25, 14" dataheight="23" defaultrows="0" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="12" style="left:0px; top:300px; width:700px; height:240px; ">
- <col disabled="true" ref="goso_acptflagcd" type="combo">
- <choices>
- <item>
- <label>신청</label>
- <value>1</value>
- </item>
- <item>
- <label>승인</label>
- <value>2</value>
- </item>
- <item>
- <label>불승인</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="goso_pid"/>
- <col ref="goso_hngnm"/>
- <col disabled="true" ref="goso_insukind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="goso_gootdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goso_goottm" format="hh:nn" style="text-align:center; "/>
- <col ref="goso_rtndd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goso_rtntm" format="hh:nn" style="text-align:center; "/>
- <col ref="goso_orgrtndd" format="yyyy-mm-dd"/>
- <col ref="goso_orgrtntm" format="hh:nn"/>
- <col ref="goso_rtncnfmyn"/>
- <col ref="goso_gootresn"/>
- <col ref="goso_rrgstno" format="999999-9999999"/>
- <col ref="goso_zipnm"/>
- <col ref="goso_tel1"/>
- <col ref="goso_tel2"/>
- <col disabled="true" ref="goso_orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="goso_atdoctid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="goso_wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="goso_roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="goso_appid"/>
- <col ref="goso_pamacptid"/>
- <col ref="goso_orgrtnacptid"/>
- <col ref="goso_nonaprvresn"/>
- <col ref="goso_rem"/>
- <col ref="goso_fstrgstrid"/>
- <col ref="goso_fstrgstdt"/>
- <col ref="goso_lastupdtrid"/>
- <col ref="goso_lastupdtdt"/>
- <col ref="goso_indd" visibility="hidden"/>
- <col ref="goso_cretno" visibility="hidden"/>
- <col ref="goso_appdd" visibility="hidden"/>
- <col ref="goso_seqno" visibility="hidden"/>
- <col ref="goso_status" visibility="hidden"/>
- <col ref="goso_instcd" visibility="hidden"/>
- <col ref="goso_histstat" visibility="hidden"/>
- <col ref="goso_apptm" visibility="hidden"/>
- <col ref="goso_pamacptdd" visibility="hidden"/>
- <col ref="goso_pamacpttm" visibility="hidden"/>
- <col ref="goso_goottmtm" visibility="hidden"/>
- <col ref="goso_goottmmin" visibility="hidden"/>
- <col ref="goso_rtntmtm" visibility="hidden"/>
- <col ref="goso_rtntmmin" visibility="hidden"/>
- <col ref="goso_sex" visibility="hidden"/>
- <col ref="goso_age" visibility="hidden"/>
- <col ref="goso_atdoctidnm" visibility="hidden"/>
- <col ref="goso_appidnm" visibility="hidden"/>
- <col ref="goso_dschdclrtyn" visibility="hidden"/>
- <col ref="goso_dschnotiyn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- model.makeNode("/root/main/goso/goso_orgrtntmtm");
- model.makeNode("/root/main/goso/goso_orgrtntmmin");
- model.makeNode("/root/main/goso/goso_goottmtm");
- model.makeNode("/root/main/goso/goso_goottmmin");
- model.makeNode("/root/main/goso/goso_rtntmtm");
- model.makeNode("/root/main/goso/goso_rtntmmin");
-
-
-
- if( grd_gootspotlist.isCell(event.target) && grd_gootspotlist.row >= grd_gootspotlist.fixedRows ){
- curruntrow = grd_gootspotlist.row;
- if(curruntrow < 1) return false; // 스크롤시 onclick 이벤트가 적용되므로
- else
- {
- // 각종환자정보 조회 ( 현재 선택된 재원내역 Row )
- copyNodeType("/root/main/goso","/root/main/gosolist[" + curruntrow + "]","replace");
-
- var result = getNodesetCount("/root/main/goso/goso_orgrtntmtm");
- if (result <= 0) {
- model.makeNode("/root/main/goso/goso_orgrtntmtm");
- model.makeNode("/root/main/goso/goso_orgrtntmmin");
- model.makeNode("/root/main/goso/goso_goottmtm");
- model.makeNode("/root/main/goso/goso_goottmmin");
- model.makeNode("/root/main/goso/goso_rtntmtm");
- model.makeNode("/root/main/goso/goso_rtntmmin");
- }
-
- var sgoottm = model.getValue("/root/main/goso/goso_goottm");
- var srtntm = model.getValue("/root/main/goso/goso_rtntm");
- var sorgrtntm = model.getValue("/root/main/goso/goso_orgrtntm");
- var sgoottmtm = sgoottm.substr(0,2);
- var sgoottmmin = sgoottm.substr(2,2);
- var srtntmtm = srtntm.substr(0,2);
- var srtntmmin = srtntm.substr(2,2);
-
- if (sorgrtntm != null && sorgrtntm != " " && sorgrtntm != "") {
- var sorgrtntmtm = sorgrtntm.substr(0,2);
- var sorgrtntmmin = sorgrtntm.substr(2,2);
- model.setValue("/root/main/goso/goso_orgrtntmtm",sorgrtntmtm);
- model.setValue("/root/main/goso/goso_orgrtntmmin",sorgrtntmmin);
- }
-
- model.setValue("/root/main/goso/goso_goottmtm",sgoottmtm);
- model.setValue("/root/main/goso/goso_goottmmin",sgoottmmin);
- model.setValue("/root/main/goso/goso_rtntmtm",srtntmtm);
- model.setValue("/root/main/goso/goso_rtntmmin",srtntmmin);
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_gootspotlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:6px; top:50px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박승인</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:65px; x2:700px; y2:65px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:120px; width:100px; height:23px; vertical-align:middle; ">외출일시</caption>
- <input id="ipt_gootdd" ref="/root/main/goso/goso_gootdd" navindex="1" inputtype="date" style="left:103px; top:121px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_gootdd.value < getCurrentDate() ){
- messageBox("오늘일자보다 작을수 ", "I004");
- ipt_gootdd.value = ipt_gootdd.attribute("_value");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- ipt_gootdd.attribute("_value") = ipt_gootdd.value;
- ]]>
- </script>
- </input>
- <caption id="caption21" class="cell_1" style="left:0px; top:95px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption22" class="cell_1" style="left:206px; top:95px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
- <select1 id="cmb_atdoctid" ref="/root/main/goso/goso_atdoctid" class="combo_default" disabled="true" appearance="minimal" style="left:309px; top:97px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_roomcd" ref="/root/main/goso/goso_roomcd" class="combo_default" disabled="true" appearance="minimal" style="left:620px; top:97px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/main/goso/goso_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:520px; top:97px; width:98px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/main/goso/goso_orddeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:97px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="cell_1" style="left:417px; top:95px; width:100px; height:23px; vertical-align:middle; ">병동/병실1</caption>
- <line id="line3" class="line_2" style="x1:1px; y1:93px; x2:697px; y2:93px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:145px; width:100px; height:23px; vertical-align:middle; ">귀가일시</caption>
- <input id="ipt_rtndd" ref="/root/main/goso/goso_rtndd" navindex="4" inputtype="date" style="left:103px; top:146px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_rtndd.value < getCurrentDate() || ipt_rtndd.value < ipt_gootdd.value){
- messageBox("오늘일자나 외출일자보다 작을수 ", "I004");
- ipt_rtndd.value = ipt_rtndd.attribute("_value");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- ipt_rtndd.attribute("_value") = ipt_rtndd.value;
- ]]>
- </script>
- </input>
- <caption id="caption3" class="cell_1" style="left:0px; top:170px; width:100px; height:23px; vertical-align:middle; ">외출사유</caption>
- <caption id="caption4" class="cell_1" style="left:417px; top:120px; width:100px; height:23px; vertical-align:middle; ">연락처1</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
- <caption id="caption7" class="cell_1" style="left:206px; top:70px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
- <caption id="caption8" class="cell_1" style="left:417px; top:70px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <input id="ipt_tel1" ref="/root/main/goso/goso_tel1" navindex="7" style="left:520px; top:121px; width:178px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:195px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="ipt_rem" ref="/root/main/goso/goso_rem" navindex="10" imemode="hangul" style="left:103px; top:196px; width:595px; height:19px; "/>
- <output id="opt_pid" ref="/root/main/goso/goso_pid" class="output_fix" style="left:103px; top:72px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_hngnm" ref="/root/main/goso/goso_hngnm" class="output_fix" style="left:309px; top:72px; width:105px; height:19px; text-align:center; "/>
- <output id="opt_sex" ref="/root/main/goso/goso_sex" class="output_fix" style="left:520px; top:72px; width:50px; height:19px; text-align:center; "/>
- <output id="opt_age" ref="/root/main/goso/goso_age" class="output_fix" style="left:575px; top:72px; width:48px; height:19px; text-align:center; "/>
- <select1 id="cmb_goottm" ref="/root/main/goso/goso_goottmtm" navindex="2" appearance="minimal" style="left:206px; top:121px; width:49px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>01</label>
- <value>01</value>
- </item>
- <item>
- <label>02</label>
- <value>02</value>
- </item>
- <item>
- <label>03</label>
- <value>03</value>
- </item>
- <item>
- <label>04</label>
- <value>04</value>
- </item>
- <item>
- <label>05</label>
- <value>05</value>
- </item>
- <item>
- <label>06</label>
- <value>06</value>
- </item>
- <item>
- <label>07</label>
- <value>07</value>
- </item>
- <item>
- <label>08</label>
- <value>08</value>
- </item>
- <item>
- <label>09</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- <item>
- <label>19</label>
- <value>19</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>21</label>
- <value>21</value>
- </item>
- <item>
- <label>22</label>
- <value>22</value>
- </item>
- <item>
- <label>23</label>
- <value>23</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_goottmmin" ref="/root/main/goso/goso_goottmmin" navindex="3" appearance="minimal" style="left:276px; top:121px; width:49px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" style="left:258px; top:121px; width:15px; height:20px; ">시</caption>
- <caption id="caption12" style="left:330px; top:121px; width:15px; height:20px; ">분</caption>
- <caption id="caption13" style="left:258px; top:146px; width:15px; height:20px; ">시</caption>
- <select1 id="cmb_rtntm" ref="/root/main/goso/goso_rtntmtm" navindex="5" appearance="minimal" style="left:206px; top:146px; width:49px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>01</label>
- <value>01</value>
- </item>
- <item>
- <label>02</label>
- <value>02</value>
- </item>
- <item>
- <label>03</label>
- <value>03</value>
- </item>
- <item>
- <label>04</label>
- <value>04</value>
- </item>
- <item>
- <label>05</label>
- <value>05</value>
- </item>
- <item>
- <label>06</label>
- <value>06</value>
- </item>
- <item>
- <label>07</label>
- <value>07</value>
- </item>
- <item>
- <label>08</label>
- <value>08</value>
- </item>
- <item>
- <label>09</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- <item>
- <label>19</label>
- <value>19</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>21</label>
- <value>21</value>
- </item>
- <item>
- <label>22</label>
- <value>22</value>
- </item>
- <item>
- <label>23</label>
- <value>23</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" style="left:330px; top:146px; width:15px; height:20px; ">분</caption>
- <select1 id="cmb_rtntmmin" ref="/root/main/goso/goso_rtntmmin" navindex="6" appearance="minimal" style="left:276px; top:146px; width:49px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:417px; top:145px; width:100px; height:23px; vertical-align:middle; ">연락처2</caption>
- <input id="ipt_tel2" ref="/root/main/goso/goso_tel2" navindex="8" style="left:520px; top:146px; width:178px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:1px; y1:118px; x2:697px; y2:118px; "/>
- <line id="line5" class="line_2" style="x1:1px; y1:143px; x2:697px; y2:143px; "/>
- <line id="line6" class="line_2" style="x1:1px; y1:168px; x2:697px; y2:168px; "/>
- <line id="line8" class="line_2" style="x1:1px; y1:193px; x2:697px; y2:193px; "/>
- <line id="line9" class="line_2" style="x1:1px; y1:218px; x2:697px; y2:218px; "/>
- <line id="line10" class="line_2" style="x1:1px; y1:243px; x2:697px; y2:243px; "/>
- <input id="ipt_nonaprvresn" ref="/root/main/goso/goso_nonaprvresn" navindex="10" imemode="hangul" style="left:309px; top:221px; width:389px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:206px; top:220px; width:100px; height:23px; vertical-align:middle; ">불승인사유</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:220px; width:100px; height:23px; vertical-align:middle; ">승인여부</caption>
- <select1 id="cmb_acptflagcd" ref="/root/main/goso/goso_acptflagcd" class="combo_default" appearance="minimal" style="left:103px; top:221px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>승인</label>
- <value>2</value>
- </item>
- <item>
- <label>불승인</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sacptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
- if (sacptflagcd == '2') {
- model.resetInstanceNode("/root/main/goso/goso_nonaprvresn");
- ipt_nonaprvresn.disabled = true;
- }else if (sacptflagcd == '3') {
- model.resetInstanceNode("/root/main/goso/goso_nonaprvresn");
- ipt_nonaprvresn.disabled = false;
- }
- ipt_nonaprvresn.refresh();
- ]]>
- </script>
- </select1>
- <line id="line11" class="line_3" style="x1:1px; y1:268px; x2:697px; y2:268px; "/>
- <input id="ipt_orgrtndd" ref="/root/main/goso/goso_orgrtndd" disabled="true" navindex="4" inputtype="date" style="left:103px; top:246px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_orgrtndd.value > getCurrentDate() || ipt_orgrtndd.value < ipt_gootdd.value){
- messageBox("오늘일자보다 크거나 외출일자보다 작을수 ", "I004");
- ipt_orgrtndd.value = ipt_orgrtndd.attribute("_value");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- ipt_orgrtndd.attribute("_value") = ipt_orgrtndd.value;
- ]]>
- </script>
- </input>
- <caption id="caption19" class="cell_1" style="left:0px; top:245px; width:100px; height:23px; vertical-align:middle; ">실제귀가일시</caption>
- <bool id="ipt_rtncnfmyn" disabled="true" navindex="8" checkvalue="Y,N" appearance="bool" ref="/root/main/goso/goso_rtncnfmyn" style="left:520px; top:246px; width:50px; height:19px; text-align:center; "/>
- <caption id="caption24" class="cell_1" style="left:417px; top:245px; width:100px; height:23px; vertical-align:middle; ">귀가확인여부</caption>
- <select1 id="cmb_gootresn" ref="/root/main/goso/goso_gootresn" class="combo_default" appearance="minimal" style="left:103px; top:171px; width:595px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0418list/P0418">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_orgrtntm" ref="/root/main/goso/goso_orgrtntm" maxlength="4" format="hh:nn" style="left:206px; top:246px; width:50px; height:19px; text-align:center; "/>
- </group>
- <group id="group5" style="left:0px; top:555px; width:700px; height:27px; ">
- <button id="btn_exit" class="btn4_letter2" navindex="16" style="left:643px; top:3px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_app" class="btn4_letter2" navindex="11" style="left:585px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeSave("U");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="11" style="left:527px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/goso/goso_pid");
- if(isNull(sPid)) {
- messageBox("출력할 항목을 선택하십시오!", "I");
- } else {
- var sAcptFlag = model.getValue("/root/main/goso/goso_acptflagcd");
- if (sAcptFlag == "2") {
- //2007.12.12 외출외박신청서 출력
- fGoSoPrint(model.getValue("/root/main/goso/goso_pid")
- , model.getValue("/root/main/goso/goso_indd")
- , model.getValue("/root/main/goso/goso_cretno")
- , model.getValue("/root/main/goso/goso_appdd")
- , model.getValue("/root/main/goso/goso_seqno") );
- } else {
- messageBox("승인내역만 출력할 수 있습니다!", "I");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter6" style="left:0px; top:3px; width:80px; height:22px; ">
- <caption>입원/퇴원수납</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPid = model.getValue("/root/main/goso/goso_pid");
- if(isNull(sPid)) {
- messageBox("환자선택을 먼저 하십시오!", "I");
- } else {
- // Top section에 파라미터 설정
- var topViewer = getViewer("patientInfo");
- if (topViewer != null) {
- topViewer.window.javascript.setParameter("SMPAI00100_Param1", sPid);
- }
-
- // 입원수납 팝업
- modal("SMPAI00100");
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="button3" class="btn2_letter4" style="left:635px; top:288px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_gootspotlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|