123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMI03000_외출외박확인.xrw
- * 설 명 : 외출외박확인
- * 설 계 자 : 홍영표
- * 작 성 자 : 홍영표
- * 작 성 일 : 2007.08.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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>외출외박확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <srchcond1>3</srchcond1>
- <pid/>
- <s_goso>
- <goso_status/>
- </s_goso>
- <sess_posinstcd>012</sess_posinstcd>
- <gootdd/>
- <wardcd/>
- <formcd/>
- </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_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_insukind/>
- </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_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>
- <ocrinfo/>
- </main>
- <hidden>
- <rcv>
- <goso/>
- </rcv>
- <original>
- <goso/>
- </original>
- <flag>
- <rcv_flag>
- <goso_count/>
- </rcv_flag>
- </flag>
- <temp>
- </temp>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr2/>
- </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="TRPMI01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ocrinfo"/>
- <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/atadocrdata" resultref="/root/hidden/insocrtag"/>
- </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" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0418"), new Array("/root/init/P0418list"));
- submit("TRPMI00106");
-
- model.setValue("/root/send/gootdd" ,getCurrentDate());
- ipt_gootdd.refresh();
-
- var spid = model.getValue("/root/hidden/target/pid");
-
- if (spid != null && spid != "") {
- model.setValue("/root/send/pid",model.getValue("/root/hidden/target/pid"));
- fQuery();
- }else {
- // 상단정보체크 2007.10.20 간호요청
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- if(paminfo.length > 0) {//원무 정보(기본 정보)가 있는 경우
- model.removenode("/root/main/paminfo");
- model.makeNode("/root/main/paminfo");
- setCSVToNode("/root/main/paminfo", paminfo);
-
- var pid = model.getValue("/root/main/paminfo/list/pid");
- model.setValue("/root/send/pid",pid);
- model.setValue("/root/send/wardcd",model.getValue("/root/main/paminfo/list/wardcd"));
- fQuery();
- }else {
- //model.setValue("/root/send/wardcd" ,getUserInfo("dutplcecd")); // 사용자(접속자)의 병동코드를 가져온다.
- fQuery();
- }
- }
-
- if (getUserInfo("dutplceinstcd") != "031") {
- button1.visible = true;
- }
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 외출외박환자리스트 조회
- function fQuery(){
-
- 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 == 'C'){ // 확인등록 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 (model.getValue("/root/main/goso/goso_rtncnfmyn") != 'Y'){
- if (messageBox("귀원확인여부가 체크되지 않았습니다. 수정하시겠습니까?", "Q") == "6") {
- return;
- }
- }
-
-
-
- if ( goso_flag == 'C' ) {
- submit("TXPMI01101");
- } else {
- messageBox("변경된 내역이","I004");
- }
-
- // alert("goso_flag:"+goso_flag);
-
- if (model.getValue("/root/hidden/flag/rcv_flag/goso_count") == '1'){
- fQuery();
- }
- }
-
- // 전과신청내역의 필수 입력항목 체크
- 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_orgrtntm = model.getValue("/root/main/goso/goso_orgrtntm");
- var goso_nonaprvresn = model.getValue("/root/main/goso/goso_nonaprvresn");
- var goso_rtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
-
- 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 (model.getValue("/root/main/goso/goso_rtncnfmyn") == 'Y') {
- if (goso_orgrtndd == null || goso_orgrtndd == ""){
- rtn = "실제귀원일자가";
- } else if (goso_orgrtntm == null || goso_orgrtntm == ""){
- rtn = "실제귀원시간이";
- }
- } else if (goso_rtncnfmyn == null || goso_rtncnfmyn == ""){
- rtn = "귀원확인여부가";
- }
-
- if (goso_acptflagcd == '1' ){
- rtn = "승인여부가";
- }else if (goso_acptflagcd == '3' ){
- 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);
- }
- return rtn;
- }
-
- function fOCRSave() {
-
- // 파라미터 세팅
- var ocrtagno = model.getValue("/root/main/ocrinfo/ocrtag");
- var pid = model.getValue("/root/main/goso/goso_pid");
- var orddd = model.getValue("/root/main/goso/goso_indd");
- var cretno = model.getValue("/root/main/goso/goso_cretno");
- var ordtype = "I";
- var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
- var orddrid = model.getValue("/root/main/goso/goso_atdoctid");
- var formcd = model.getValue("/root/main/ocrinfo/formcd");
- var formfromdt = model.getValue("/root/main/ocrinfo/formfromdt");
- var pagecnt = "1";
-
- if(!fSaveOCRIF(ocrtagno, pid, orddd, cretno, ordtype, orddeptcd, orddrid, formcd, formfromdt, "", "", pagecnt)){
-
- messageBox("통합기록 연동중 오류가 발생하였습니다. ","C999");
-
- return false;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" pageheight="610" guideline="1,899;" 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; "/>
- <caption id="caption50" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_srchcond1" ref="/root/send/srchcond1" class="combo_search" appearance="minimal" style="left:304px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>3</value>
- </item>
- <item>
- <label>원무승인전</label>
- <value>4</value>
- </item>
- <item>
- <label>귀원전</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var ipatrefflag = model.getValue("/root/send/srchcond1");
- if (ipatrefflag == '3'||ipatrefflag == '4'){
- btn_srch.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption25" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="ipt_gootdd" ref="/root/send/gootdd" navindex="14" inputtype="date" appearance="input" style="left:105px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:404px; top:8px; width:62px; height:17px; ">병동 :</caption>
- <select1 id="combo1" ref="/root/send/wardcd" appearance="minimal" style="left:471px; top:8px; width:134px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:321px; width:150px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:700px; y2:65px; "/>
- <datagrid id="grd_gootspotlist" nodeset="/root/main/gosolist" caption="상태^환자번호^환자성명^병실^외출일자^외출시간^귀원일자^귀원시간^실귀원일자^실귀원시간^귀원확인여부^외출사유^연락처1^연락처2^진료과^전문의^병동^병실^보험유형^승인의사^원무승인자^실귀원확인자^불승인사유^비고^최초접수자^최초접수일시^최종수정담당자^최종수정일시" colsep="^" colwidth="53, 70, 80, 84, 100, 60, 100, 60, 100, 70, 80, 100, 108, 100, 88, 80, 100, 100, 80, 100, 100, 100, 100, 100, 90, 115, 90, 115" dataheight="23" defaultrows="0" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="12" style="left:0px; top:70px; width:700px; height:241px; ">
- <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 ref="goso_roomcd"/>
- <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_tel1"/>
- <col ref="goso_tel2"/>
- <col ref="goso_orddeptcd"/>
- <col ref="goso_atdoctid"/>
- <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 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_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"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- 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 srtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
- var sgoottm = model.getValue("/root/main/goso/goso_goottm");
- var srtntm = model.getValue("/root/main/goso/goso_rtntm");
- var sgoottmtm = sgoottm.substr(0,2);
- var sgoottmmin = sgoottm.substr(2,2);
- var srtntmtm = srtntm.substr(0,2);
- var srtntmmin = srtntm.substr(2,2);
-
- 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);
-
- if (srtncnfmyn == "Y"){
- ipt_orgrtndd.disabled = true;
- ipt_orgrtntm.disabled = true;
- }else{
- ipt_orgrtndd.disabled = false;
- ipt_orgrtntm.disabled = false;
- }
-
- // 자보의 경우 보험유형 배경색 설정
- if (model.getValue("/root/main/goso/goso_insukind") == "31") {
- combo2.attribute("background-color") = "#ff99cc";
- } else {
- combo2.attribute("background-color") = "#ECEBEC";
- }
-
- combo2.refresh();
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:5px; top:50px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박확인</caption>
- <line id="line8" class="line_2" style="x1:1px; y1:464px; x2:697px; y2:464px; "/>
- <output id="opt_sex" ref="/root/main/goso/goso_sex" class="output_fix" style="left:520px; top:343px; width:37px; height:19px; text-align:center; "/>
- <line id="line9" class="line_2" style="x1:1px; y1:489px; x2:697px; y2:489px; "/>
- <select1 id="cmb_goottm" ref="/root/main/goso/goso_goottmtm" disabled="true" navindex="2" appearance="minimal" style="left:206px; top:392px; 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>
- <input id="ipt_rem" ref="/root/main/goso/goso_rem" disabled="true" navindex="10" imemode="hangul" style="left:103px; top:467px; width:595px; height:19px; "/>
- <select1 id="cmb_rtntm" ref="/root/main/goso/goso_rtntmtm" disabled="true" navindex="5" appearance="minimal" style="left:206px; top:417px; 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_rtntmmin" ref="/root/main/goso/goso_rtntmmin" disabled="true" navindex="6" appearance="minimal" style="left:276px; top:417px; 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>
- <line id="line10" class="line_2" style="x1:1px; y1:514px; x2:697px; y2:514px; "/>
- <input id="ipt_rtndd" ref="/root/main/goso/goso_rtndd" disabled="true" navindex="4" inputtype="date" style="left:103px; top:417px; 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>
- <input id="ipt_orgrtntm" ref="/root/main/goso/goso_orgrtntm" maxlength="4" format="hh:nn" style="left:205px; top:517px; width:50px; height:19px; text-align:center; "/>
- <bool id="ipt_rtncnfmyn" navindex="8" checkvalue="Y,N" appearance="bool" ref="/root/main/goso/goso_rtncnfmyn" style="left:520px; top:517px; width:25px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- ipt_rtncnfmyn.attribute("_value") = ipt_rtncnfmyn.value;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sValue = ipt_rtncnfmyn.value;
- if (sValue == "N"){
- var sOrgrtndd = model.getValue("/root/main/goso/goso_orgrtndd");
- var sCurrentDate = getCurrentDate();
-
- if (sOrgrtndd == sCurrentDate){
- model.setValue("/root/main/goso/goso_orgrtndd","");
- model.setValue("/root/main/goso/goso_orgrtntm","");
- ipt_orgrtndd.disabled = false;
- ipt_orgrtntm.disabled = false;
- model.refresh();
- }else{
- ipt_rtncnfmyn.value = ipt_rtncnfmyn.attribute("_value");
- messageBox("당일이 아니면 취소할수","I004");
- }
- }else if (sValue == "Y"){
-
- var sAcptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
- if (sAcptflagcd != "2") {
- ipt_rtncnfmyn.value = ipt_rtncnfmyn.attribute("_value");
- messageBox("승인상태가 아니므로 귀원확인 할수","I004");
- }
- if (model.getValue("/root/main/goso/goso_orgrtndd") == "") {
- model.setValue("/root/main/goso/goso_orgrtndd",getCurrentDate());
- }
- if (model.getValue("/root/main/goso/goso_orgrtntm") == "") {
- var sCurrentTime = getCurrentTime();
- model.setValue("/root/main/goso/goso_orgrtntm",sCurrentTime.substr(0,4));
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- <line id="line11" class="line_3" style="x1:0px; y1:539px; x2:697px; y2:539px; "/>
- <output id="opt_hngnm" ref="/root/main/goso/goso_hngnm" class="output_fix" style="left:309px; top:343px; width:105px; height:19px; text-align:center; "/>
- <input id="ipt_nonaprvresn" ref="/root/main/goso/goso_nonaprvresn" disabled="true" navindex="10" imemode="hangul" style="left:309px; top:492px; width:389px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:366px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:416px; width:100px; height:23px; vertical-align:middle; ">귀원일시</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:466px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
- <caption id="caption22" class="cell_1" style="left:206px; top:366px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
- <caption id="caption11" style="left:258px; top:392px; width:15px; height:20px; ">시</caption>
- <output id="opt_pid" ref="/root/main/goso/goso_pid" class="output_fix" style="left:103px; top:343px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption12" style="left:330px; top:392px; width:15px; height:20px; ">분</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:441px; width:100px; height:23px; vertical-align:middle; ">외출사유</caption>
- <select1 id="cmb_roomcd" ref="/root/main/goso/goso_roomcd" class="combo_default" disabled="true" appearance="minimal" style="left:620px; top:368px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_tel1" ref="/root/main/goso/goso_tel1" disabled="true" navindex="7" style="left:520px; top:392px; width:178px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:417px; top:391px; width:100px; height:23px; vertical-align:middle; ">연락처1</caption>
- <caption id="caption13" style="left:258px; top:417px; width:15px; height:20px; ">시</caption>
- <caption id="caption24" class="cell_1" style="left:417px; top:516px; width:100px; height:23px; vertical-align:middle; ">귀원확인여부</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:341px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
- <select1 id="cmb_goottmmin" ref="/root/main/goso/goso_goottmmin" disabled="true" navindex="3" appearance="minimal" style="left:276px; top:392px; 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="caption14" style="left:330px; top:417px; width:15px; height:20px; ">분</caption>
- <input id="ipt_tel2" ref="/root/main/goso/goso_tel2" disabled="true" navindex="8" style="left:520px; top:417px; width:178px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/goso/goso_orddeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:368px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/goso/goso_gootdd" disabled="true" navindex="1" inputtype="date" style="left:103px; top:392px; 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="caption15" class="cell_1" style="left:417px; top:416px; width:100px; height:23px; vertical-align:middle; ">연락처2</caption>
- <select1 id="cmb_gootresn" ref="/root/main/goso/goso_gootresn" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:442px; 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_orgrtndd" ref="/root/main/goso/goso_orgrtndd" navindex="4" inputtype="date" style="left:103px; top:517px; 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>
- <line id="line3" class="line_2" style="x1:1px; y1:364px; x2:697px; y2:364px; "/>
- <caption id="caption7" class="cell_1" style="left:206px; top:341px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
- <select1 id="cmb_wardcd" ref="/root/main/goso/goso_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:520px; top:368px; width:98px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_acptflagcd" ref="/root/main/goso/goso_acptflagcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:492px; 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>
- <caption id="caption16" class="cell_1" style="left:206px; top:491px; width:100px; height:23px; vertical-align:middle; ">불승인사유</caption>
- <output id="opt_age" ref="/root/main/goso/goso_age" class="output_fix" style="left:559px; top:343px; width:37px; height:19px; text-align:center; "/>
- <caption id="caption8" class="cell_1" style="left:417px; top:341px; width:100px; height:23px; vertical-align:middle; ">성별/나이/보험</caption>
- <line id="line4" class="line_2" style="x1:1px; y1:389px; x2:697px; y2:389px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:491px; 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:368px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="cell_1" style="left:417px; top:366px; width:100px; height:23px; vertical-align:middle; ">병동/병실1</caption>
- <line id="line5" class="line_2" style="x1:1px; y1:414px; x2:697px; y2:414px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:391px; width:100px; height:23px; vertical-align:middle; ">외출일시</caption>
- <line id="line6" class="line_2" style="x1:1px; y1:439px; x2:697px; y2:439px; "/>
- <caption id="caption19" class="cell_1" style="left:0px; top:516px; width:100px; height:23px; vertical-align:middle; ">실제귀원일시</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:336px; x2:700px; y2:336px; "/>
- <select1 id="combo2" ref="/root/main/goso/goso_insukind" disabled="false" appearance="minimal" style="left:598px; top:343px; width:100px; height:19px; text-align:center; background-color:#ECEBEC; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </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("C"); // Confirm
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter5" visibility="hidden" style="left:486px; top:3px; width:92px; height:22px; ">
- <caption>신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/main/goso/goso_pid");
-
- if (isNull(pid)) {
- messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
- return;
- }
-
- model.makeValue("/root/send/formcd", "1600018617"); // 외출외박신청서 1600018617
-
- // OCR 연동처리를 위한 정보 조회
- submit("TRPMI01103");
-
- var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
- if (isNull(ocrtag)) {
- messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
- return;
- }
-
- model.makeValue("/root/main/goso/ocrtag", ocrtag);
- model.makeValue("/root/main/goso/usernm", getUserName());
- model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
-
- var fromdd = model.getValue("/root/main/goso/goso_gootdd");
- var todd = model.getValue("/root/main/goso/goso_rtndd");
- model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
-
- var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
- model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
- model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
-
-
- var resncd = model.getValue("/root/main/goso/goso_gootresn");
- model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
-
- // 외출외박 신청서
- exeReportPreview("RPPMI03000","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
-
- // 통합기록연동처리
- fOCRSave();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter9" style="left:344px; top:3px; width:140px; height:22px; ">
- <caption>신청 및 동의서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // var pid = model.getValue("/root/main/goso/goso_pid");
- //
- // if (isNull(pid)) {
- // messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
- // return;
- // }
- //
- // setParameter("SPPMB03500_formcd", "1100011237");
- // setParameter("SPPMB03500_cnt", "1");
- // setParameter("SPPMB03500_pid", pid);
- // setParameter("SPPMB03500_orddd", model.getValue ( "/root/main/goso/goso_indd" ));
- // setParameter("SPPMB03500_cretno", model.getValue ( "/root/main/goso/goso_cretno" ));
- // setParameter("SPPMB03500_ordtype", "I");
- // setParameter("SPPMB03500_orddrid", model.getValue ( "/root/main/goso/goso_atdoctid" ));
- // setParameter("SPPMB03500_orddeptcd", model.getValue ( "/root/main/goso/goso_orddeptcd" ));
- //
- // var xpt = window.screenleft + 50;
- // var ypt = window.screenTop + 50;
- // var coord = getRelativeCoordinate ( xpt, ypt );
- // var mon = coord[0];
- // xpt = coord[1];
- // ypt = coord[2];
- //
- // modal ( "SPPMB03500", mon, xpt, ypt, "SPPMB03500", "","", "", false );
- //
- // clearParameter("SPPMB03500_formcd");
- // clearParameter("SPPMB03500_cnt");
- // clearParameter("SPPMB03500_pid");
- // clearParameter("SPPMB03500_orddd");
- // clearParameter("SPPMB03500_cretno");
- // clearParameter("SPPMB03500_ordtype");
- // clearParameter("SPPMB03500_orddrid");
- // clearParameter("SPPMB03500_orddeptcd");
- // 동의서 -> 신청 및 동의서 통합
- var pid = model.getValue("/root/main/goso/goso_pid");
-
- if (isNull(pid)) {
- messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
- return;
- }
-
- model.makeValue("/root/send/formcd", "1700019251");
-
- // OCR 연동처리를 위한 정보 조회
- submit("TRPMI01103");
-
- var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
- if (isNull(ocrtag)) {
- messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
- return;
- }
-
- model.makeValue("/root/main/goso/ocrtag", ocrtag);
- model.makeValue("/root/main/goso/usernm", getUserName());
- model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
-
- var fromdd = model.getValue("/root/main/goso/goso_gootdd");
- var todd = model.getValue("/root/main/goso/goso_rtndd");
- model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
-
- var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
- model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
- model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
-
-
- var resncd = model.getValue("/root/main/goso/goso_gootresn");
- model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
-
- // 외출외박 신청 및 동의서
- exeReportPreview("RPPMI03002","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
-
- // 통합기록연동처리
- fOCRSave();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter7" visibility="hidden" style="left:5px; top:3px; width:116px; height:22px; ">
- <caption>자보신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/main/goso/goso_pid");
-
- if (isNull(pid)) {
- messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
- return;
- }
-
- if (model.getValue("/root/main/goso/goso_insukind") != "31") {
- messageBox("자보신청서는 자보환자만 출력가능합니다.", "E000");
- return;
- }
-
- model.makeValue("/root/send/formcd", "1600018617"); // 외출외박신청서 1600018617
-
- // OCR 연동처리를 위한 정보 조회
- submit("TRPMI01103");
-
- var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
- if (isNull(ocrtag)) {
- messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
- return;
- }
-
- model.makeValue("/root/main/goso/ocrtag", ocrtag);
- model.makeValue("/root/main/goso/usernm", getUserName());
- model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
-
- var fromdd = model.getValue("/root/main/goso/goso_gootdd");
- var todd = model.getValue("/root/main/goso/goso_rtndd");
- model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
-
- var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
- model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
- model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
-
-
- var resncd = model.getValue("/root/main/goso/goso_gootresn");
- model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
-
- // 외출외박 신청서
- exeReportPreview("RPPMI03000","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
-
- // 통합기록연동처리
- fOCRSave();
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|