123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPMI01700_전실신청.xrw
- * 설 명 : 전실신청
- * 설 계 자 : 홍영표
- * 작 성 자 : 홍영표
- * 작 성 일 : 2007.05.14
- * 수정이력 :
- * 기 타 :
- * 구현예정 :
- -->
- <?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>
- <ipatflag>1</ipatflag>
- <srchcond1>5</srchcond1>
- <srchcond2/>
- <pid/>
- <indd/>
- <todd/>
- <cretno/>
- <mskind>M</mskind>
- <instcd/>
- <s_cdcr>
- <cdcr_status/>
- </s_cdcr>
- <sess_posinstcd>012</sess_posinstcd>
- <mycheck/>
- <flag>2</flag>
- <apptflagcd>1</apptflagcd>
- <isolationroom/>
- <deisolation/>
- <wardcd/>
- <roomcd/>
- <antivirus/>
- </send>
- <main>
- <cdcr>
- <cdcr_status/>
- <cdcr_pid/>
- <cdcr_indd/>
- <cdcr_cretno/>
- <cdcr_seqno/>
- <cdcr_instcd/>
- <cdcr_mskind/>
- <cdcr_histstat/>
- <cdcr_acptflagcd/>
- <cdcr_appflagcd/>
- <cdcr_appdd/>
- <cdcr_apptm/>
- <cdcr_appid/>
- <cdcr_pamacptdd/>
- <cdcr_pamacpttm/>
- <cdcr_pamacptid/>
- <cdcr_prestwardcd/>
- <cdcr_prestroomcd/>
- <cdcr_prestbedcd/>
- <cdcr_prestroomgrde/>
- <cdcr_prestroomtype/>
- <cdcr_prestcentcd/>
- <cdcr_prestsuporddeptcd/>
- <cdcr_prestorddeptcd/>
- <cdcr_prestmedispclid/>
- <cdcr_prestatdoctid/>
- <cdcr_chngwardcd/>
- <cdcr_chngroomcd/>
- <cdcr_chngbedcd/>
- <cdcr_chngroomgrde/>
- <cdcr_chngroomtype/>
- <cdcr_oxyyn/>
- <cdcr_suctyn/>
- <cdcr_chngcentcd/>
- <cdcr_chngsuporddeptcd/>
- <cdcr_chngorddeptcd/>
- <cdcr_chngmedispclid/>
- <cdcr_chngatdoctid/>
- <cdcr_specordyn/>
- <cdcr_enddd/>
- <cdcr_endtm/>
- <cdcr_endid/>
- <cdcr_prestremcd/>
- <cdcr_chngprestrem/>
- <cdcr_fstrgstrid/>
- <cdcr_fstrgstdt/>
- <cdcr_lastupdtrid/>
- <cdcr_lastupdtdt/>
- <cdcr_bedcnt/>
- <cdcr_bsex/>
- <cdcr_emptbedcnt/>
- </cdcr>
- <icdr/>
- </main>
- <hidden>
- <rcv>
- <wdrm/>
- <inpt/>
- <icdr/>
- <cdcr/>
- </rcv>
- <original>
- <inpt/>
- <icdr>
- <icdr_status/>
- <icdr_pid/>
- <icdr_indd/>
- <icdr_cretno/>
- <icdr_fromdd/>
- <icdr_seqno/>
- <icdr_instcd/>
- <icdr_mskind/>
- <icdr_todd/>
- <icdr_histstat/>
- <icdr_centcd/>
- <icdr_dutdeptcd/>
- <icdr_suporddeptcd/>
- <icdr_orddeptcd/>
- <icdr_medispclid/>
- <icdr_atdoctid/>
- <icdr_specordyn/>
- <icdr_wardcd/>
- <icdr_roomcd/>
- <icdr_bedcd/>
- <icdr_roomgrdecd/>
- <icdr_roomtypecd/>
- <icdr_wardcd2/>
- <icdr_roomcd2/>
- <icdr_bedcd2/>
- <icdr_roomgrdecd2/>
- <icdr_roomtypecd2/>
- <icdr_fstrgstrid/>
- <icdr_fstrgstdt/>
- <icdr_lastupdtrid/>
- <icdr_lastupdtdt/>
- <icdr_hngnm/>
- <icdr_sex/>
- <icdr_age/>
- <icdr_bedcnt/>
- <icdr_bsex/>
- <icdr_hngnm2/>
- </icdr>
- <icdrlist>
- <icdr_status/>
- <icdr_pid/>
- <icdr_indd/>
- <icdr_cretno/>
- <icdr_fromdd/>
- <icdr_seqno/>
- <icdr_instcd/>
- <icdr_mskind/>
- <icdr_todd/>
- <icdr_histstat/>
- <icdr_centcd/>
- <icdr_dutdeptcd/>
- <icdr_suporddeptcd/>
- <icdr_orddeptcd/>
- <icdr_medispclid/>
- <icdr_atdoctid/>
- <icdr_specordyn/>
- <icdr_wardcd/>
- <icdr_roomcd/>
- <icdr_bedcd/>
- <icdr_roomgrdecd/>
- <icdr_roomtypecd/>
- <icdr_wardcd2/>
- <icdr_roomcd2/>
- <icdr_bedcd2/>
- <icdr_roomgrdecd2/>
- <icdr_roomtypecd2/>
- <icdr_fstrgstrid/>
- <icdr_fstrgstdt/>
- <icdr_lastupdtrid/>
- <icdr_lastupdtdt/>
- <icdr_hngnm/>
- <icdr_sex/>
- <icdr_age/>
- <icdr_bedcnt/>
- <icdr_bsex/>
- </icdrlist>
- <cdcr>
- <cdcr_status/>
- <cdcr_pid/>
- <cdcr_indd/>
- <cdcr_cretno/>
- <cdcr_seqno/>
- <cdcr_instcd/>
- <cdcr_mskind/>
- <cdcr_histstat/>
- <cdcr_acptflagcd/>
- <cdcr_appflagcd/>
- <cdcr_appdd/>
- <cdcr_apptm/>
- <cdcr_appid/>
- <cdcr_pamacptdd/>
- <cdcr_pamacpttm/>
- <cdcr_pamacptid/>
- <cdcr_prestwardcd/>
- <cdcr_prestroomcd/>
- <cdcr_prestbedcd/>
- <cdcr_prestroomgrde/>
- <cdcr_prestroomtype/>
- <cdcr_prestcentcd/>
- <cdcr_prestsuporddeptcd/>
- <cdcr_prestorddeptcd/>
- <cdcr_prestmedispclid/>
- <cdcr_prestatdoctid/>
- <cdcr_chngwardcd/>
- <cdcr_chngroomcd/>
- <cdcr_chngbedcd/>
- <cdcr_chngroomgrde/>
- <cdcr_chngroomtype/>
- <cdcr_oxyyn/>
- <cdcr_suctyn/>
- <cdcr_chngcentcd/>
- <cdcr_chngsuporddeptcd/>
- <cdcr_chngorddeptcd/>
- <cdcr_chngmedispclid/>
- <cdcr_chngatdoctid/>
- <cdcr_specordyn/>
- <cdcr_enddd/>
- <cdcr_endtm/>
- <cdcr_endid/>
- <cdcr_prestremcd/>
- <cdcr_chngprestrem/>
- <cdcr_fstrgstrid/>
- <cdcr_fstrgstdt/>
- <cdcr_lastupdtrid/>
- <cdcr_lastupdtdt/>
- </cdcr>
- </original>
- <flag>
- <rcv_flag>
- <cdcr_count/>
- </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>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- <rm/>
- </roomcd>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- </init>
- <currenttime/>
- <wdrminfo>
- <wdrm/>
- </wdrminfo>
- <source>
- <pid/>
- <hngnm/>
- <indd/>
- <cretno/>
- <mskind/>
- </source>
- <target/>
- <roomgrdelist>
- <roomgrde>
- <cdid/>
- <cdnm/>
- </roomgrde>
- </roomgrdelist>
- <orgroominfo>
- <grdecd/>
- <typecd/>
- </orgroominfo>
- <ervisityn/>
- </hidden>
- <init>
- <P0313list>
- <P0313>
- <cdid/>
- <cdnm/>
- </P0313>
- </P0313list>
- <P0360list>
- <P0360>
- <cdid/>
- <cdnm/>
- </P0360>
- </P0360list>
- <P0391list>
- <P0391>
- <cdid/>
- <cdnm/>
- </P0391>
- </P0391list>
- <pamcomcode>
- <PK107list/>
- <PK115list/>
- </pamcomcode>
- </init>
- <temp>
- <traumadiaginfo/>
- </temp>
- </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="TRPMI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/original/icdr" resultref="/root/hidden/rcv/isocheck"/>
- <submission id="TRPMI01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/orgroominfo"/>
- <submission id="TXPMI01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TXPMI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TRPMI01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/roomgrdelist"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/pamcomcode"/>
- <submission id="TRPMI01706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cdcr" resultref="/root/temp/traumadiaginfo"/>
- </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="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- var currentrow = 0;
-
- // 초기값설정
- function fInit(){
-
- }
-
- // 승인상태가 신청중이 아닌 데이터는 삭제하지 못하도록 체크박스를 Disabled시킨다.
- function fDisabled(){
- var cnt = instance1.selectNodes("/root/hidden/original/cdcr").length;
- for(i=1; i<=cnt; i++) {
- var v_rowgubun = model.getValue("/root/hidden/original/cdcr["+ i + "]/cdcr_acptflagcd");
- if (v_rowgubun != '1'){
- datagrid3.isReadOnly((i + parseInt(datagrid3.fixedRows)-1),0) = true;
- }
- }
- }
-
- // 층별 병상현황 조회
- function fQuery_Wardcond(){
-
- submit("TRPMI01701");
- copyNodeType("/root/hidden/wdrminfo", "/root/hidden/rcv", "replace");
- datagrid1.rebuild();
- datagrid1.subtotalposition = "after";
- //datagrid1.subtotal("sum", -1, 5, "#,###", "", 1, "총빈병상수");
- datagrid1.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "총빈병상수");
- }
-
-
- // 조회조건에 따른 조회문장
- function fQuery1()
- {
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden/original");
- model.resetInstanceNode("/root/hidden/original/inpt");
- output3.refresh();
- output4.refresh();
- output7.refresh();
- output13.refresh();
-
- submit("TRPMI00401",false);
-
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "replace");
-
- datagrid2.rebuild();
- model.refresh();
-
- }
-
- // 환자이력 정보 조회
- function fQuery(currentrow)
- {
- var sCareInRoomDD = model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_careinrmdd");
- if (isNull(sCareInRoomDD) || sCareInRoomDD == "-") {
- messageBox("입실시간이 없습니다. 전실신청 할 수 없습니다!", "I");
- }
-
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_pid"));
- model.setValue("/root/send/indd", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_indd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_dschdd"));
- model.setValue("/root/send/cretno", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_cretno"));
- model.setValue("/root/send/mskind", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_mskind"));
- model.setValue("/root/send/instcd", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_instcd"));
- // 기존의 값은 Reset해야함. ( 값이 없을경우 기존의 값이 현재의 값처럼 오인될수 있음 )
- model.resetInstanceNode("/root/main/cdcr");
- model.resetInstanceNode("/root/hidden/original/icdr");
- model.resetInstanceNode("/root/hidden/original/cdcr");
-
- // 기존의 노드를 삭제하지 않으면 현재의 노드가 추가되는 경우가 있음
- model.removeNodeset("/root/hidden/original/icdr");
- model.removeNodeset("/root/hidden/original/cdcr");
- model.removeNodeset("/root/hidden/rcv/inpt"); // 세부조회사항이 없으면 기존의 inpt를 다시카피한다. 이를 방지한다.
- submit("TRPMI01702",false); // 전실신청내역 및 전실내역을 조회한다.
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
- datagrid3.rebuild();
- //2008.05.06 전실신청 정보와 현재 재원정보를 한 인스턴스에 저장하여 오류가 발생되어 수정함. 한윤희
- //model.removeNodeset("/root/hidden/original/icdr");
- model.removeNodeset("/root/hidden/original/icdrlist");
- submit("TRPMI01901"); // 전과전실조회
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
- datagrid4.rebuild();
-
- fDisabled();
-
- // 간호요청에 의해서 환자선택시 자동이 아니라 copy 버튼 선택시 copy 되도록 수정함. 2007.09.03 홍영표
- var icdr_flag = instance1.selectSingleNode("/root/hidden/original/icdr");
- if ( icdr_flag != null){
- model.setValue("/root/main/cdcr/cdcr_pid",model.getValue("/root/hidden/original/icdr/icdr_pid"));
- model.setValue("/root/main/cdcr/cdcr_indd",model.getValue("/root/hidden/original/icdr/icdr_indd"));
- model.setValue("/root/main/cdcr/cdcr_cretno",model.getValue("/root/hidden/original/icdr/icdr_cretno"));
- model.setValue("/root/main/cdcr/cdcr_instcd",model.getValue("/root/hidden/original/icdr/icdr_instcd"));
- model.setValue("/root/main/cdcr/cdcr_mskind",model.getValue("/root/hidden/original/icdr/icdr_mskind"));
- model.setValue("/root/main/cdcr/cdcr_histstat",model.getValue("/root/hidden/original/icdr/icdr_histstat"));
- model.setValue("/root/main/cdcr/cdcr_acptflagcd","1");
- model.setValue("/root/main/cdcr/cdcr_appflagcd","1");
- model.setValue("/root/main/cdcr/cdcr_appdd",getCurrentDate());
- var CurrentTime = getCurrentTime();
- model.setValue("/root/main/cdcr/cdcr_apptm",CurrentTime.substr(0,4));
- model.setValue("/root/main/cdcr/cdcr_prestwardcd",model.getValue("/root/hidden/original/icdr/icdr_wardcd"));
- model.setValue("/root/main/cdcr/cdcr_prestroomcd",model.getValue("/root/hidden/original/icdr/icdr_roomcd"));
- model.setValue("/root/main/cdcr/cdcr_prestbedcd",model.getValue("/root/hidden/original/icdr/icdr_bedcd"));
- model.setValue("/root/main/cdcr/cdcr_prestroomgrde",model.getValue("/root/hidden/original/icdr/icdr_roomgrdecd"));
- model.setValue("/root/main/cdcr/cdcr_prestroomtype",model.getValue("/root/hidden/original/icdr/icdr_roomtypecd"));
- model.setValue("/root/main/cdcr/cdcr_prestcentcd",model.getValue("/root/hidden/original/icdr/icdr_centcd"));
- model.setValue("/root/main/cdcr/cdcr_prestsuporddeptcd",model.getValue("/root/hidden/original/icdr/icdr_suporddeptcd"));
- model.setValue("/root/main/cdcr/cdcr_prestorddeptcd",model.getValue("/root/hidden/original/icdr/icdr_orddeptcd"));
- model.setValue("/root/main/cdcr/cdcr_prestmedispclid",model.getValue("/root/hidden/original/icdr/icdr_medispclid"));
- model.setValue("/root/main/cdcr/cdcr_prestatdoctid",model.getValue("/root/hidden/original/icdr/icdr_atdoctid"));
- // model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/original/icdr/icdr_wardcd"));
- // model.setValue("/root/main/cdcr/cdcr_chngroomcd",model.getValue("/root/hidden/original/icdr/icdr_roomcd"));
- // model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/original/icdr/icdr_roomgrdecd"));
- // model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/original/icdr/icdr_roomtypecd"));
- model.setValue("/root/main/cdcr/cdcr_chngcentcd",model.getValue("/root/hidden/original/icdr/icdr_centcd"));
- model.setValue("/root/main/cdcr/cdcr_chngsuporddeptcd",model.getValue("/root/hidden/original/icdr/icdr_suporddeptcd"));
- model.setValue("/root/main/cdcr/cdcr_chngorddeptcd",model.getValue("/root/hidden/original/icdr/icdr_orddeptcd"));
- model.setValue("/root/main/cdcr/cdcr_chngmedispclid",model.getValue("/root/hidden/original/icdr/icdr_medispclid"));
- model.setValue("/root/main/cdcr/cdcr_chngatdoctid",model.getValue("/root/hidden/original/icdr/icdr_atdoctid"));
- model.setValue("/root/main/cdcr/cdcr_specordyn",model.getValue("/root/hidden/original/icdr/icdr_specordyn"));
- // model.setValue("/root/main/cdcr/cdcr_bedcnt",model.getValue("/root/hidden/original/icdr/icdr_bedcnt"));
- // model.setValue("/root/main/cdcr/cdcr_bsex",model.getValue("/root/hidden/original/icdr/icdr_bsex"));
- // model.setValue("/root/main/cdcr/cdcr_emptbedcnt",model.getValue("/root/hidden/original/icdr/icdr_emptbedcnt"));
- }
-
- model.refresh();
-
- }
-
- // 전실신청내역의 필수 입력항목 체크
- function fValCheck(){
- var rtn = "Y";
- var cdcr_pid = model.getValue("/root/main/cdcr/cdcr_pid");
- var cdcr_indd = model.getValue("/root/main/cdcr/cdcr_indd");
- var cdcr_cretno = model.getValue("/root/main/cdcr/cdcr_cretno");
- var cdcr_mskind = model.getValue("/root/main/cdcr/cdcr_mskind");
- var cdcr_histstat = model.getValue("/root/main/cdcr/cdcr_histstat");
- var cdcr_acptflagcd = model.getValue("/root/main/cdcr/cdcr_acptflagcd");
- var cdcr_appflagcd = model.getValue("/root/main/cdcr/cdcr_appflagcd");
- var cdcr_chngwardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- var cdcr_chngroomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
- var cdcr_chngroomgrde = model.getValue("/root/main/cdcr/cdcr_chngroomgrde");
- var cdcr_chngroomtype = model.getValue("/root/main/cdcr/cdcr_chngroomtype");
- var cdcr_chngorddeptcd = model.getValue("/root/main/cdcr/cdcr_chngorddeptcd");
- var cdcr_chngmedispclid = model.getValue("/root/main/cdcr/cdcr_chngmedispclid");
- var cdcr_chngatdoctid = model.getValue("/root/main/cdcr/cdcr_chngatdoctid");
- var cdcr_specordyn = model.getValue("/root/main/cdcr/cdcr_specordyn");
- if (cdcr_pid == null || cdcr_pid == ""){
- rtn = "환자등록번호가";
- } else if (cdcr_indd == null || cdcr_indd == ""){
- rtn = "입원일자가";
- } else if (cdcr_cretno == null || cdcr_cretno == ""){
- rtn = "입원등록키가";
- } else if (cdcr_mskind == null || cdcr_mskind == ""){
- rtn = "주부유형이";
- } else if (cdcr_histstat == null || cdcr_histstat == ""){
- rtn = "상태값이";
- } else if (cdcr_acptflagcd == null || cdcr_acptflagcd == ""){
- rtn = "접수상태가";
- } else if (cdcr_appflagcd == null || cdcr_appflagcd == ""){
- rtn = "접수유형이";
- } else if (cdcr_chngwardcd == null || cdcr_chngwardcd == ""){
- rtn = "병동정보가";
- } else if (cdcr_chngroomcd == null || cdcr_chngroomcd == ""){
- rtn = "병실정보가";
- } else if (cdcr_chngroomgrde == null || cdcr_chngroomgrde == ""){
- rtn = "병실등급이";
- } else if (cdcr_chngroomtype == null || cdcr_chngroomtype == ""){
- rtn = "병실형태가";
- } else if (cdcr_chngorddeptcd == null || cdcr_chngorddeptcd == ""){
- rtn = "진료부서코드가";
- } else if (cdcr_chngmedispclid == null || cdcr_chngmedispclid == ""){
- rtn = "전문의코드가";
- } else if (cdcr_chngatdoctid == null || cdcr_chngatdoctid == ""){
- rtn = "주치의코드가";
- } else if (cdcr_specordyn == null || cdcr_specordyn == ""){
- rtn = "특진여부가";
- }
- return rtn;
- }
- // 전실신청내역의 필수 입력항목 체크 ( 간호 요청으로 병동, 병동병실, 등급, 형태, O2, Suction, 비고 중 1가지만 입력시 신청되도록 수정 2007.09.03 홍영표 )
- function fValCheck1(){
- var rtn = "Y";
- var cdcr_pid = model.getValue("/root/main/cdcr/cdcr_pid");
- var cdcr_indd = model.getValue("/root/main/cdcr/cdcr_indd");
- var cdcr_cretno = model.getValue("/root/main/cdcr/cdcr_cretno");
- var cdcr_mskind = model.getValue("/root/main/cdcr/cdcr_mskind");
- var cdcr_histstat = model.getValue("/root/main/cdcr/cdcr_histstat");
- var cdcr_acptflagcd = model.getValue("/root/main/cdcr/cdcr_acptflagcd");
- var cdcr_appflagcd = model.getValue("/root/main/cdcr/cdcr_appflagcd");
- var cdcr_chngwardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- var cdcr_chngroomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
- var cdcr_chngbedcd = model.getValue("/root/main/cdcr/cdcr_chngbedcd");
- var cdcr_chngroomgrde = model.getValue("/root/main/cdcr/cdcr_chngroomgrde");
- var cdcr_chngroomtype = model.getValue("/root/main/cdcr/cdcr_chngroomtype");
- var cdcr_oxyyn = model.getValue("/root/main/cdcr/cdcr_oxyyn");
- var cdcr_suctyn = model.getValue("/root/main/cdcr/cdcr_suctyn");
- var cdcr_prestremcd = model.getValue("/root/main/cdcr/cdcr_prestremcd");
- if (cdcr_pid == null || cdcr_pid == ""){
- //rtn = "환자등록번호가";
- rtn = "N";
- } else if (cdcr_indd == null || cdcr_indd == ""){
- //rtn = "입원일자가";
- rtn = "N";
- } else if (cdcr_cretno == null || cdcr_cretno == ""){
- //rtn = "입원등록키가";
- rtn = "N";
- } else if (cdcr_mskind == null || cdcr_mskind == ""){
- //rtn = "주부유형이";
- rtn = "N";
- } else if (cdcr_histstat == null || cdcr_histstat == ""){
- //rtn = "상태값이";
- rtn = "N";
- } else if (cdcr_acptflagcd == null || cdcr_acptflagcd == ""){
- //rtn = "접수상태가";
- rtn = "N";
- } else if (cdcr_appflagcd == null || cdcr_appflagcd == ""){
- //rtn = "접수유형이";
- rtn = "N";
- }
-
- // 2008.07.22 병동, 병실 선택하지 않더라도 전실신청 가능하도록 주석처리
-
- if (cdcr_chngwardcd == null || cdcr_chngwardcd == "" || cdcr_chngwardcd == "-" ){
- messageBox("전실할 병동정보를 입력하지 않았습니다. 확인 후 전실신청하세요!", "E999", "");
- rtn = "N";
- return rtn;
- } else if (cdcr_chngroomcd == null || cdcr_chngroomcd == "" || cdcr_chngroomcd == "-" ){
- messageBox("전실할 병실정보를 입력하지 않았습니다. 확인 후 전실신청하세요!", "E999", "");
- rtn = "N";
- return rtn;
- } else if (cdcr_chngbedcd == null || cdcr_chngbedcd == "" || cdcr_chngbedcd == "-" ){
- messageBox("전실할 병상정보를 입력하지 않았습니다. 확인 후 전실신청하세요!", "E999", "");
- rtn = "N";
- return rtn;
- } else if (cdcr_chngroomgrde == null || cdcr_chngroomgrde == "" || cdcr_chngroomgrde == "-" ){
- messageBox("전실할 병실등급 정보를 입력하지 않았습니다. 확인 후 전실신청하세요!", "E999", "");
- rtn = "N";
- return rtn;
- } else if (cdcr_chngroomtype == null || cdcr_chngroomtype == "" || cdcr_chngroomtype == "-" ){
- messageBox("전실할 병실형태 정보를 입력하지 않았습니다. 확인 후 전실신청하세요!", "E999", "");
- rtn = "N";
- return rtn;
- }
- return rtn;
- }
-
- // 진행중인 신청내역이 있는지 체크
- function fDoubleCheck(){
-
- var rtn = -1;
- var rtn1 = -1;
-
- rtn = datagrid3.findrow("1", 1, 2);
- rtn1 = datagrid3.findrow("2", 1, 2);
-
- if (rtn > 0) {
- return rtn;
- } else if (rtn1 > 0) {
- return rtn1;
- } else if (rtn < 0 && rtn1 < 0 ) {
- return rtn;
- }
-
- }
-
- // 전실 신청 등록,취소
- function fChangeSave(arg1){
-
- var icdr_flag = null;
- cdcr_flag = arg1;
-
- model.removeNodeset("/root/send/s_cdcr/cdcr");
-
- if (cdcr_flag == 'I'){ // 신청등록 Routin
-
- // 20170511 응급실에서 전실신청 방지 by 조중래
- if (model.getValue("/root/hidden/original/icdr/icdr_wardcd") == "3120400000"
- || model.getValue("/root/hidden/original/icdr/icdr_wardcd") == "2360800000"
- || model.getValue("/root/hidden/original/icdr/icdr_wardcd") == "2280200000") {
- messageBox("응급실/일일수술실/항암주사실에서 병동으로의 전실은 \r\n입원의뢰서를 통해 처리하십시오.", "I");
- return;
- }
-
- // 2008.10.07 - 입실체크되어 있지 않으면 전과전실 blocking
- var sCdcrPid = model.getValue("/root/main/cdcr/cdcr_pid");
- var sCareInRoomDD = model.getValue("/root/hidden/original/inpt[inpt_pid = '" + sCdcrPid + "']/inpt_careinrmdd");
-
- if (isNull(sCareInRoomDD) || sCareInRoomDD == "-") {
- messageBox("입실시간이 없습니다. 전실신청 할 수 없습니다!", "I");
- return;
- }
-
- // 이중신청 블럭킹
- var sDoubleCheck = fDoubleCheck();
- if (sDoubleCheck != -1) {
- messageBox("신청중인 내역 또는 승인한 내역이 있습니다. 이중신청할수","I004");
- return;
- }
-
- // 필수입력항목체크
- var sValCheck = fValCheck1();
- if (sValCheck != 'Y') {
- if (sValCheck == 'N'){
- messageBox("하나이상의 항목을 ","C002");
- }else {
- messageBox("선택되어진 환자가 ","I004");
- }
- return;
- }
-
- // 2008.07.22 병동, 병실 코드 없어도 전실신청할 수 있도록 수정
- // null 값일 경우 '-'로 입력
- // 2008.09.17 최소한 비고는 입력되도록 체크추가
-
- var sChngWardCd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- var sChngRoomCd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
- var sChngBedCd = model.getValue("/root/main/cdcr/cdcr_chngbedcd");
- var sChngRoomGrde = model.getValue("/root/main/cdcr/cdcr_chngroomgrde");
- var sChngRoomType = model.getValue("/root/main/cdcr/cdcr_chngroomtype");
- var sPrestremcd = model.getValue("/root/main/cdcr/cdcr_prestremcd"); // 비고
-
- if (isNull(sChngWardCd)) {
- //model.setValue("/root/main/cdcr/cdcr_chngwardcd", model.getValue("/root/main/cdcr/cdcr_prestwardcd"));
- model.setValue("/root/main/cdcr/cdcr_chngwardcd", '-');
- messageBox("병동정보를 입력하세요", "E999");
- return false;
- }
-
- if (isNull(sChngRoomCd)) {
- //model.setValue("/root/main/cdcr/cdcr_chngroomcd",model.getValue("/root/main/cdcr/cdcr_prestroomcd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomcd", "-");
- messageBox("병실정보를 입력하세요", "E999");
- return false;
- }
-
- if (isNull(sChngBedCd)) {
- //model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/main/cdcr/cdcr_prestroomtype"));
- model.setValue("/root/main/cdcr/cdcr_chngbedcd", "-");
- messageBox("병상정보를 입력하세요", "E999");
- return false;
- }
-
- if (isNull(sChngRoomGrde)) {
- //model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/main/cdcr/cdcr_prestroomgrde"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde", "-");
- messageBox("병실등급정보를 입력하세요", "E999");
- return false;
- }
-
- if (isNull(sChngRoomType)) {
- //model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/main/cdcr/cdcr_prestroomtype"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype", "-");
- messageBox("병실타입정보를 입력하세요", "E999");
- return false;
- }
-
- // 응급실로 전실금지처리
- if (sChngWardCd == "2280200000") {
- messageBox("응급실로의 전실은 불가합니다. 퇴원처리 후 응급실 접수하시기 바랍니다.", "E999");
- return false;
- }
-
- // 외상병동운영에 따른 상병유효성 체크 추가 by 조중래 20160405
- var traumaward = model.getValue("/root/init/pamcomcode/PK107list/PK107[cdid='" + sChngWardCd + "']/cdnm");
-
- // 지정된 병동이 외상병동인 경우에만 검증처리
- if (!isNull(traumaward)) {
-
- // 외상상병코드 검증처리
- if (submit("TRPMI01706")) {
-
- // 외상상병이 존재하지않는 경우
- if (model.getValue("/root/temp/traumadiaginfo/traumadiagyn") != "Y") {
-
- messageBox("외상관련 진단정보가 존재하지 않습니다. \r\n외상상병코드를 입력하고 전실신청하십시오.", "C000");
- return false;
- }
- }
- }
-
- // 마약/향정약 미처리건 체크실시 by 조중래 20120716
- var ivrObjt = document.all("ivr_drug");
-
- if (ivrObjt == null) {
- body.createChild("xforms:iviewer", "id:ivr_drug; src:../../../emr/wardcareweb/xrw/SMMNW01100_당일입원전과전실리스트.xrw");
- ivrObjt = document.all("ivr_drug");
- }
-
- var retMsg = ivrObjt.window.javascript.fMDrugCheck(
- model.getValue("/root/main/cdcr/cdcr_pid"),
- model.getValue("/root/main/cdcr/cdcr_indd"),
- model.getValue("/root/main/cdcr/cdcr_cretno")
- );
-
- // 처리를 중단하는 경우(미처리건 처리후 전실 실시하는 케이스)
- if (retMsg == "0") {
-
- return;
- }
-
- model.setValue("/root/main/cdcr/cdcr_status",cdcr_flag);
- copyNodeType("/root/send/s_cdcr", "/root/main/cdcr", "replace");
-
- } else if (cdcr_flag == 'U'){ // 신청취소 루틴
-
- var checkRow = 0;
- var cnt = instance1.selectNodes("/root/hidden/original/cdcr").length;
-
- for(i=1; i<=cnt; i++) {
- var v_rowgubun = model.getValue("/root/hidden/original/cdcr["+ i + "]/cdcr_status");
- var v_acptflagcd = model.getValue("/root/hidden/original/cdcr["+ i + "]/cdcr_acptflagcd");
-
- if (v_rowgubun == 'U'){
- if (v_acptflagcd == '1'){
- checkRow = checkRow +1 ;
- copyNodeType("/root/send/s_cdcr", "/root/hidden/original/cdcr["+ i + "]", "replace");
-
- } else{
- messageBox("처리중인 데이터라 취소할수","I004");
- return;
-
- }
- }
- }
-
- if (checkRow < 1) {
- messageBox("선택된 데이터가","I004");
- return;
-
- }else if (checkRow > 1) {
- messageBox("멀티로 취소할수","I004");
- return;
-
- }
-
- } else {
- messageBox("변경된 내역이","I004");
- return;
-
- }
-
- if ( cdcr_flag == 'U' || cdcr_flag == 'I' ) {
-
- if (submit("TXPMI01701")) {
-
- // 퇴원수납화면 응급실전실환자 출력물 제어용
- if (model.getValue("/root/hidden/ervisityn") == "Y" && cdcr_flag == "I") {
- opener.model.setValue("/root/hidden/ervisityn", "Y");
- opener.model.setValue("/root/hidden/erroomcd", model.getValue("/root/main/cdcr/cdcr_chngwardcd"));
-
- } else if (model.getValue("/root/hidden/ervisityn") == "Y" && cdcr_flag == "U") {
- opener.model.setValue("/root/hidden/ervisityn", "N");
- }
- }
-
- } else {
- messageBox("변경된 내역이","I004");
- }
-
- // alert("cdcr_flag:"+cdcr_flag);
-
- // 등급 비활성화 처리
- cmb_roomgrdecd2.disabled = true;
-
- if (model.getValue("/root/hidden/flag/rcv_flag/cdcr_count") == '1'){
- fQuery1();
- }
-
- // 변경이 성공하면 세부사항을 최신DB내역으로 갱신한다. 안그러면 연속 변경저장시 오류발생함.
- // currentrow는 원래 선택해서 변수에 담은 재원내역 Row
- // 구현예정 : 리턴값 체크해서 성공시에만 재조회한다. 그리고 INPT의 변경사항에 대한 변경값 REFRESH기능 필요
-
- // fQuery1();
-
- // 구현예정 : fQuery(currentrow);
-
- }
-
- //병실 성별 체크
- // 2008.07.29 10세미만일 때 성별체크 하지 않음
- function fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, rrgstno)
- {
- if (fRoomSexGubunCheck(rrgstno)) {
- return true;
- }
-
- if (ptbs_sex != inpt_sex) {
- if (inpt_sex != "A" && inpt_sex != "" && inpt_sex != " " && inpt_sex != null) {
-
- messageBox("선택하신 병실의 성별과 환자의 성별이 서로 틀립니다.\r\n\r\n"
- + "[혼성입원 연령제한 안내]\r\n\r\n"
- + "우리 병원에서는 만 6세미만의 경우에만 혼성입원이 가능합니다.\r\n"
- + "만 6세이상의 환자에 대하여 혼성입원이 필요한 경우 원무팀으로 연락바랍니다.\r\n"
- + "( 입원결정 및 전실신청시 해당 )\r\n\r\n"
- + "☎ 문의사항 ☎\r\n"
- + "본원 원무팀 : 재원파트 5064 / 5065, 응급수납 5058 / 5068\r\n"
- + "칠곡 원무팀 : 재원파트 2065 / 2066, 응급수납 2108", "E000");
- return false;
- }
- }
- //분만실("2100300000")일 경우 남자 체크
- if (inpt_wardcd == "2100300000") {
- if (ptbs_sex == "M") {
- messageBox("성별이 남자입니다. 다른병동을","C002");
- model.setValue("/root/main/cdcr/cdcr_chngwardcd", model.getValue("/root/hidden/original/icdr/icdr_wardcd"));
- //model.setValue("/root/main/inpt/inpt_roomcd","");
- //model.setValue("/root/main/inpt/inpt_roomgrdecd","");
- //model.setValue("/root/main/inpt/inpt_roomtypecd","");
- model.refresh();
- return false;
- }
- }
-
- return true;
- model.refresh();
- }
-
- // 간호확인(임시)
- function fCareCnfm(arg1){
- var icdr_flag = null;
- cdcr_flag = arg1;
-
- model.removeNodeset("/root/send/s_cdcr/cdcr");
-
- if (cdcr_flag == 'U'){ // 신청취소 루틴
-
- var v_acptflagcd = null;
- var curruntrow = datagrid3.row;
-
- if( curruntrow >= datagrid3.fixedRows ){
-
- if(curruntrow < 1) return false; // 스크롤시 onclick 이벤트가 적용되므로
- else
- {
- var rownum = curruntrow - datagrid3.fixedRows + 1;
- v_acptflagcd = model.getValue("/root/hidden/original/cdcr["+ rownum + "]/cdcr_acptflagcd");
- if (v_acptflagcd == '2'){
- copyNodeType("/root/send/s_cdcr", "/root/hidden/original/cdcr["+ rownum + "]", "replace");
- model.setValue("/root/send/s_cdcr/cdcr_status",cdcr_flag);
-
- } else{
- messageBox("승인상태인 데이터가 아니라 간호확인을 할수 ","I004");
- return;
- }
- }
-
- if ( cdcr_flag == 'U' ) {
- submit("TXPMI01702");
-
- } else {
- messageBox("변경된 내역이","I004");
- }
-
- if (model.getValue("/root/hidden/flag/rcv_flag/cdcr_count") == '1'){
- fQuery1();
- }
- } else{
- messageBox("선택된 승인건이","I004");
- }
- }
- }
-
- // 진료과,병동,병실의 콤보값을 셋팅한다.
- function fComboNodeSet(arg1){
- if (arg1 == 0){
- // 병동에 따른 병실 셋팅
- var swardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- if (swardcd == null || swardcd == " " || swardcd == "") {
- cmb_roomcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd"
- cmb_roomcd2.refresh();
- //2010-10-04 이동식 추가 병상정보 세팅
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd"
- cmb_bedcd2.refresh();
- } else {
- cmb_roomcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd + "' ]";
- cmb_roomcd2.refresh();
- //2010-10-04 이동식 추가 병상정보 세팅
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd + "' ]";
- cmb_bedcd2.refresh();
- }
-
- // 형태에 따른 등급셋팅
- var sroomtypecd = model.getValue("/root/main/cdcr/cdcr_chngroomtype");
- if (sroomtypecd == null || sroomtypecd == " " || sroomtypecd == "") {
- //cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd"
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde"
- cmb_roomgrdecd2.refresh();
- } else {
-
- // NICU의 경우 원무 공통코드에 정의된 등급으로 처리
- if (swardcd == "2110201000") {
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/init/pamcomcode/PK115list/PK115";
- } else {
- //cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd[typecd = '" + sroomtypecd + "' ]";
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + sroomtypecd + "' ]";
- }
-
- cmb_roomgrdecd2.refresh();
- }
- }else if (arg1 == 1){ // 병동선택시 병실노드셋 변경
- var swardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- if (swardcd == null || swardcd == " " || swardcd == "") {
- cmb_roomcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd"
- cmb_roomcd2.refresh();
- //2010-10-04 이동식 추가 병상정보 세팅
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd"
- cmb_bedcd2.refresh();
- } else {
- cmb_roomcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd + "' ]";
- cmb_roomcd2.refresh();
- //2010-10-04 이동식 추가 병상정보 세팅
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd + "' ]";
- cmb_bedcd2.refresh();
- }
- }else if (arg1 == 2){ // 병실선택시 형태에 따른 등급 셋팅
- var sroomtypecd = model.getValue("/root/main/cdcr/cdcr_chngroomtype");
- if (sroomtypecd == null || sroomtypecd == " " || sroomtypecd == "") {
- //cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd"
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde"
- cmb_roomgrdecd2.refresh();
- } else {
- //cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd[typecd = '" + sroomtypecd + "' ]";
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + sroomtypecd + "' ]";
- cmb_roomgrdecd2.refresh();
- }
- }
- }
-
-
- // Popup용 데이터 생성
- function fCopyPopup(currentrow){
- model.setValue("/root/hidden/source/pid", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_pid"));
- model.setValue("/root/hidden/source/hngnm", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_hngnm"));
- model.setValue("/root/hidden/source/indd", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_indd"));
- model.setValue("/root/hidden/source/cretno", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_cretno"));
- model.setValue("/root/hidden/source/mskind", model.getValue("/root/hidden/original/inpt["+currentrow+"]/inpt_mskind"));
- }
-
-
- //세션정보
- function fGetUserInfosSampling()
- {
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- var dutplceinstcd = UserInfosS_Array[6]; //근무지기관코드
- var dutplceinstnm = UserInfosS_Array[7]; //근무지기관명
- var dutplcecd = UserInfosS_Array[8]; //근무지부서코드
- var dutplcenm = UserInfosS_Array[9]; //근무지부서명
-
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "dutplcecd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",dutplceinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- // JHP, 2009.06.22, 기관코드가 012로 박아져 있어서 그걸 세션정보의 dutplcecd로 다시 set한다.
- model.setValue("/root/send/sess_posinstcd",dutplceinstcd);
-
- model.refresh();
- }
-
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 공통코드 조회
- zbcfGetCodeList(new Array("P0313","P0360","P0391"), new Array("/root/init/P0313list","/root/init/P0360list","/root/init/P0391list"));
-
- // 원무공통코드 조회
- pamfGetCodeList(new Array("PK107", "PK115"), new Array("/root/init/pamcomcode/PK107list","/root/init/pamcomcode/PK115list"));
-
- submit("TRPMI00106");
- //세션정보
- fGetUserInfosSampling();
-
- // 살아있는 병실등급 조회
- submit("TRPMB00303");
-
- if (model.getValue("/root/hidden/session/dutplcecd") == "2280200000" && model.getValue("/root/hidden/session/posinstcd") == "012") {
- button2.disabled = true;
- button6.disabled = true;
- }
-
- /* 2007.11.27
- 1.파라메터
- 2.상단정보
- 3.사용자소속부서
- */
- //****************************************************************************************************
- 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 spid = model.getValue("/root/main/paminfo/list/pid"); //등록번호
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/paminfo/list/wardcd")); //병동
- model.setValue("/root/hidden/ervisityn", model.getValue("/root/main/paminfo/list/ervisityn")); // 응급실 전실여부 저장
-
- fQuery1(); //병동환자리스트 조회
- var aa = instance1.selectSingleNode("/root/hidden/original");
- var node = aa.childNodes; // ("/root/hidden/original/inpt")
- // var cur_row = datagrid2.findRow(spid,datagrid2.fixedRows,2); 해당값을 찾아 row를 반환한다
- for (i = 1; i <= node.length; i++ )
- {
- var aaa = model.getValue("/root/hidden/original/inpt["+i+"]/inpt_pid");
-
- if (aaa == spid) {
- var cur_row = i;
- datagrid2.isSelected(cur_row + 1) = true;
- datagrid2.topRow = cur_row;
- fQuery(cur_row);
- fCopyPopup(cur_row);// Popup용 데이터 전달
- fComboNodeSet(0);// 병동,병실의 콤보값을 셋팅한다.
- fQuery_Wardcond();
- output11.text = getCurrentDate();
- output11.refresh();
- return false;
- }
- }
- }else {
- model.setValue("/root/send/srchcond2",getUserInfo("dutplcecd")); // 사용자(접속자)의 병동코드를 가져온다.
- fQuery1(); //병동환자리스트 조회
- }
- fQuery_Wardcond();
- output11.text = getCurrentDate();
- output11.refresh();
- // fInit();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1185px; height:760px; ">
- <caption id="caption40" class="tit_2" style="left:5px; top:55px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">층별 병상현황</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:70px; x2:340px; y2:70px; "/>
- <button id="button4" class="btn3_letter6" visibility="hidden" style="left:0px; top:736px; width:104px; height:22px; ">
- <caption>전과전실조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/source/pid") != null && model.getValue("/root/hidden/source/pid") != ""){
- modal("../../../pam/ipatmngtweb/xrw/SPPMI01900", "1","50", "50", "SPPMI01900", "/root/hidden/source", "/root/hidden/target");
- }
- ]]>
- </script>
- </button>
- <group id="group3" style="left:350px; top:10px; width:835px; height:720px; ">
- <select1 id="combo13" ref="/root/main/cdcr/cdcr_bsex" class="combo_default" disabled="true" appearance="minimal" style="left:678px; top:132px; width:155px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo12" ref="/root/hidden/original/icdr/icdr_bsex" class="combo_default" disabled="true" appearance="minimal" style="left:386px; top:244px; width:155px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo11" ref="/root/hidden/original/icdr/icdr_sex" class="combo_default" disabled="true" appearance="minimal" style="left:386px; top:154px; width:77px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <group id="group2" style="left:0px; top:0px; width:270px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:270px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">병동 :</caption>
- <select1 id="combo1" ref="/root/send/srchcond2" class="combo_search" appearance="minimal" style="left:83px; top:8px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQuery1();
- ]]>
- </script>
- </select1>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/mycheck" style="left:194px; top:8px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fQuery1();
- ]]>
- </script>
- </bool>
- <caption id="caption3" style="left:215px; top:9px; width:40px; height:20px; ">내환자</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:45px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">환자리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:272px; y2:60px; "/>
- <datagrid id="datagrid2" nodeset="/root/hidden/original/inpt" caption="병실(상)^병실(상)^환자명(표)^등록번호^Sex/Age^Sex/Age^Sex^Age|병실(상)^병실(상)^환자명(표)^등록번호^Sex/Age^Sex/Age^Sex^Age" colsep="^" colwidth="47, 19, 67, 60, 36, 25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:272px; height:655px; ">
- <col ref="inpt_roomcd" style="text-align:center; "/>
- <col ref="inpt_bedno" style="text-align:center; "/>
- <col ref="inpt_hngnm2" style="text-align:center; "/>
- <col ref="inpt_pid" style="text-align:center; "/>
- <col disabled="true" ref="inpt_sex" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpt_age" style="text-align:right; padding-right:2; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- currentrow = datagrid2.row - datagrid2.fixedRows +1;
-
- if(currentrow < 1) {
- return false;
- }else{
- // 재원환자정보 조회 ( 현재 선택된 재원내역 Row )
- fQuery(currentrow);
- // Popup용 데이터 전달
- fCopyPopup(currentrow);
-
- // 병동,병실의 콤보값을 셋팅한다.
- fComboNodeSet(0);
-
- model.setValue("/root/send/deisolation", "");
- chk_deisol.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:288px; top:45px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">현재재원정보</caption>
- <line id="line3" class="line_1" style="x1:283px; y1:60px; x2:543px; y2:60px; "/>
- <caption id="caption5" class="tit_2" style="left:580px; top:45px; width:170px; height:14px; font-family:돋움; vertical-align:middle; ">전실신청정보</caption>
- <line id="line4" class="line_1" style="x1:575px; y1:60px; x2:835px; y2:60px; "/>
- <caption id="caption6" class="cell_1" style="left:283px; top:65px; width:100px; height:20px; ">병동</caption>
- <caption id="caption7" class="cell_1" style="left:283px; top:88px; width:100px; height:20px; ">병실 / 병상</caption>
- <caption id="caption8" class="cell_1" style="left:283px; top:110px; width:100px; height:20px; ">환자명 / 표시명</caption>
- <caption id="caption9" class="cell_1" style="left:283px; top:132px; width:100px; height:20px; ">등록번호</caption>
- <caption id="caption10" class="cell_1" style="left:283px; top:154px; width:100px; height:20px; ">Sex/Age</caption>
- <caption id="caption11" class="cell_1" style="left:283px; top:176px; width:54px; height:20px; ">등급</caption>
- <caption id="caption12" class="cell_1" style="left:283px; top:222px; width:100px; height:20px; ">병실정원</caption>
- <caption id="caption13" class="cell_1" style="left:283px; top:244px; width:100px; height:20px; ">병실성별</caption>
- <button id="button5" class="icon_right" style="left:545px; top:150px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //격리병실 초기화
- model.setValue("/root/send/isolationroom", "N");
-
- // 무균(다인)병실 초기화
- model.setValue("/root/send/antivirus", "N");
-
- // 구현예정 : 현재재원정보를 전실신청정보로 복사한다.
- var icdr_flag = instance1.selectSingleNode("/root/hidden/original/icdr");
- if ( icdr_flag != null){
- model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/original/icdr/icdr_wardcd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomcd",model.getValue("/root/hidden/original/icdr/icdr_roomcd"));
- model.setValue("/root/main/cdcr/cdcr_chngbedcd",model.getValue("/root/hidden/original/icdr/icdr_bedcd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/original/icdr/icdr_roomgrdecd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/original/icdr/icdr_roomtypecd"));
- model.setValue("/root/main/cdcr/cdcr_bedcnt",model.getValue("/root/hidden/original/icdr/icdr_bedcnt"));
- model.setValue("/root/main/cdcr/cdcr_bsex",model.getValue("/root/hidden/original/icdr/icdr_bsex"));
- model.setValue("/root/main/cdcr/cdcr_emptbedcnt",model.getValue("/root/hidden/original/icdr/icdr_emptbedcnt"));
-
- // 호스피스병동 등급 수정가능 처리
- // NICU 환자 상태에 따른 산정요율변경에 따라 NICU 추가 by 조중래 20161025
- if(model.getValue("/root/main/cdcr/cdcr_chngwardcd") == '3050136000'
- || model.getValue("/root/main/cdcr/cdcr_chngwardcd") == '2110201000'){
- cmb_roomgrdecd2.disabled = false;
- } else {
- cmb_roomgrdecd2.disabled = true;
- }
-
- if (model.getValue("/root/main/cdcr/cdcr_chngwardcd") == '2110201000') {
-
- }
-
- fComboNodeSet(0);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_2" style="x1:283px; y1:85px; x2:543px; y2:85px; "/>
- <line id="line7" class="line_2" style="x1:283px; y1:107px; x2:543px; y2:107px; "/>
- <line id="line8" class="line_2" style="x1:283px; y1:129px; x2:543px; y2:129px; "/>
- <line id="line9" class="line_2" style="x1:283px; y1:151px; x2:543px; y2:151px; "/>
- <line id="line10" class="line_2" style="x1:283px; y1:219px; x2:543px; y2:219px; "/>
- <line id="line11" class="line_2" style="x1:283px; y1:241px; x2:543px; y2:241px; "/>
- <line id="line12" class="line_2" style="x1:283px; y1:173px; x2:543px; y2:173px; "/>
- <line id="line13" class="line_3" style="x1:283px; y1:266px; x2:543px; y2:266px; "/>
- <output id="output3" ref="/root/hidden/original/icdr/icdr_hngnm" class="output_fix" style="left:386px; top:110px; width:82px; height:19px; "/>
- <output id="output4" ref="/root/hidden/original/icdr/icdr_pid" class="output_fix" style="left:386px; top:132px; width:155px; height:19px; "/>
- <output id="output7" ref="/root/hidden/original/icdr/icdr_bedcnt" class="output_fix" style="left:386px; top:222px; width:155px; height:19px; text-align:center; "/>
- <line id="line14" class="line_2" style="x1:575px; y1:129px; x2:835px; y2:129px; "/>
- <line id="line15" class="line_2" style="x1:575px; y1:151px; x2:835px; y2:151px; "/>
- <line id="line16" class="line_2" style="x1:575px; y1:195px; x2:835px; y2:195px; "/>
- <line id="line17" class="line_2" style="x1:575px; y1:217px; x2:835px; y2:217px; "/>
- <line id="line18" class="line_2" style="x1:575px; y1:173px; x2:835px; y2:173px; "/>
- <line id="line19" class="line_3" style="x1:575px; y1:265px; x2:835px; y2:265px; "/>
- <caption id="caption14" class="cell_1" style="left:575px; top:154px; width:54px; height:20px; ">등급</caption>
- <caption id="caption15" class="cell_1" style="left:575px; top:176px; width:54px; height:20px; ">형태</caption>
- <caption id="caption16" class="cell_1" style="left:575px; top:198px; width:100px; height:20px; ">O2 /Suction사용</caption>
- <caption id="caption17" class="cell_1" style="left:575px; top:220px; width:100px; height:42px; ">비고</caption>
- <caption id="caption18" class="cell_1" style="left:575px; top:65px; width:100px; height:20px; ">병동</caption>
- <caption id="caption19" class="cell_1" style="left:575px; top:88px; width:100px; height:20px; ">병실 / 병상</caption>
- <caption id="caption20" class="cell_1" style="left:575px; top:110px; width:100px; height:20px; ">병실정원/빈병상</caption>
- <line id="line20" class="line_2" style="x1:575px; y1:85px; x2:835px; y2:85px; "/>
- <caption id="caption21" class="cell_1" style="left:575px; top:132px; width:100px; height:20px; ">병실성별</caption>
- <line id="line21" class="line_2" style="x1:575px; y1:107px; x2:835px; y2:107px; "/>
- <output id="output9" ref="/root/main/cdcr/cdcr_bedcnt" class="output_fix" style="left:678px; top:110px; width:77px; height:19px; text-align:center; "/>
- <select1 id="cmb_wardcd2" ref="/root/main/cdcr/cdcr_chngwardcd" class="combo_default" disabled="true" appearance="minimal" style="left:678px; top:65px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/cdcr/cdcr_chngroomcd");
- // 병실 정보셋팅
- fComboNodeSet(1);
- ]]>
- </script>
- </select1>
- <select1 id="cmb_roomcd2" ref="/root/main/cdcr/cdcr_chngroomcd" class="combo_default" disabled="true" appearance="minimal" style="left:678px; top:88px; width:77px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sroomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
-
- model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/wd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/gr"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/ty"));
- model.setValue("/root/main/cdcr/cdcr_bedcnt",model.getValue("/root/hidden/wdrminfo/wdrm[wdrm_roomcd = '" + sroomcd + "' ]/wdrm_bedcnt"));
- model.setValue("/root/main/cdcr/cdcr_bsex",model.getValue("/root/hidden/wdrminfo/wdrm[wdrm_roomcd = '" + sroomcd + "' ]/wdrm_sex"));
- model.setValue("/root/main/cdcr/cdcr_emptbedcnt",model.getValue("/root/hidden/wdrminfo/wdrm[wdrm_roomcd = '" + sroomcd + "' ]/wdrm_roomemptbedcnt"));
-
- //2010-10-04 이동식 추가 병상정보 세팅
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[rm = '" + sroomcd + "' ]";
- cmb_bedcd2.refresh();
-
- // 병실의 성별이 현재환자의 성별과 상이하면 메세지 표시
- var sroomsex = model.getValue("/root/main/cdcr/cdcr_bsex");
- var ssex = model.getValue("/root/hidden/original/icdr/icdr_sex");
- var chkAge = model.getValue("/root/hidden/original/icdr/icdr_age");
-
- if (chkAge > 0 && chkAge < 10 ) {
- if ( sroomsex != 'A') { // A는 공통
- if ( sroomsex != ssex){
- var smsgrtn = messageBox("성별이 맞지 않지만 10세를 넘기지 않습니다. 성별이 다른 병실 등록을","Q003");
- if (smsgrtn == '6') {
- ;
- }else {
- model.setValue("/root/main/cdcr/cdcr_chngroomcd","");
- model.refresh();
- return false;
- }
- }
- }
- }else {
-
- if ( sroomsex != 'A') { // A는 공통
- if ( sroomsex != ssex){
- messageBox("병실의 성별이 환자의 성별과 ","E004");
- model.setValue("/root/main/cdcr/cdcr_chngroomcd","");
- model.refresh();
- return false;
- }
- }
- }
- // 형태에 따른 등급셋팅
- fComboNodeSet(2);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_roomgrdecd2" ref="/root/main/cdcr/cdcr_chngroomgrde" class="combo_default" disabled="true" appearance="minimal" style="left:632px; top:153px; width:201px; height:19px; ">
- <choices>
- <!--2009/06/19 김주희 "전실신청정보 -> 등급" 부분 병실등급 수가종료 된것에 대해 빼기 roomgrdecd -> roomgrde-->
- <!--<itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>-->
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo5" ref="/root/main/cdcr/cdcr_prestremcd" class="combo_default" appearance="minimal" style="left:678px; top:220px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0360list/P0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line22" class="line_2" style="x1:675px; y1:241px; x2:835px; y2:241px; "/>
- <button id="button2" class="btn4_letter4" style="left:755px; top:267px; width:80px; height:22px; ">
- <caption>전실신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- bool2.dispatch("xforms-value-changed");
-
- fChangeSave("I");
-
- //격리병실신청 정보 클리어
- model.setValue("/root/send/isolationroom", "N");
-
- // 무균(다인)병실 초기화
- model.setValue("/root/send/antivirus", "N");
- ]]>
- </script>
- </button>
- <caption id="caption22" class="tit_2" style="left:283px; top:290px; width:147px; height:13px; font-family:돋움; vertical-align:middle; ">환자별 전과전실 현황</caption>
- <line id="line23" class="line_1" style="x1:283px; y1:305px; x2:835px; y2:305px; "/>
- <datagrid id="datagrid3" nodeset="/root/hidden/original/cdcr" caption="^변경일^승인^구분^From^From^From^From^From^To^To^To^To^To^To^To|^변경일^승인^구분^병동^병실^병상^과^전문의^병동^병실^병상^과^전문의^O2^Suction" colsep="^" colwidth="26, 70, 40, 50, 73, 51, 51, 110, 60, 73, 51, 51, 110, 60, 34, 46" mergecellsfixedrows="bycolrec" rowsep="|" style="left:283px; top:310px; width:550px; height:165px; ">
- <col checkvalue="U,N" ref="cdcr_status" type="checkbox"/>
- <col ref="cdcr_enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cdcr_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 disabled="true" ref="cdcr_appflagcd" 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 disabled="true" ref="cdcr_prestwardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_prestroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_prestbedcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_prestorddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_prestmedispclid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_chngwardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_chngroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_chngbedcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_chngorddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cdcr_chngmedispclid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cdcr_oxyyn"/>
- <col ref="cdcr_suctyn"/>
- </datagrid>
- <button id="button6" class="btn4_letter6" style="left:438px; top:282px; width:104px; height:22px; ">
- <caption>전실신청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeSave("U");
- ]]>
- </script>
- </button>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/cdcr/cdcr_oxyyn" style="left:685px; top:198px; width:20px; height:20px; "/>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/cdcr/cdcr_suctyn" style="left:765px; top:198px; width:20px; height:20px; "/>
- <caption id="caption23" style="left:705px; top:199px; width:30px; height:20px; ">사용</caption>
- <caption id="caption24" style="left:785px; top:199px; width:30px; height:20px; ">사용</caption>
- <select1 id="cmb_roomtypecd2" ref="/root/main/cdcr/cdcr_chngroomtype" class="combo_default" disabled="true" appearance="minimal" style="left:632px; top:176px; width:201px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/cdcr/cdcr_chngroomgrde");
- fComboNodeSet(2);
- ]]>
- </script>
- </select1>
- <output id="output13" ref="/root/hidden/original/icdr/icdr_age" class="output_fix" style="left:466px; top:154px; width:75px; height:19px; text-align:center; "/>
- <input id="input1" ref="/root/main/cdcr/cdcr_chngprestrem" style="left:678px; top:243px; width:155px; height:19px; "/>
- <output id="output14" ref="/root/main/cdcr/cdcr_emptbedcnt" class="output_fix" style="left:758px; top:110px; width:75px; height:19px; text-align:center; "/>
- <select1 id="cmb_wardcd1" ref="/root/hidden/original/icdr/icdr_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:386px; top:65px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_roomcd1" ref="/root/hidden/original/icdr/icdr_roomcd" class="combo_default" disabled="true" appearance="minimal" style="left:386px; top:88px; width:77px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_roomgrdecd1" ref="/root/hidden/original/icdr/icdr_roomgrdecd" class="combo_default" disabled="true" appearance="minimal" style="left:340px; top:176px; width:201px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_roomtypecd1" ref="/root/hidden/original/icdr/icdr_roomtypecd" class="combo_default" disabled="true" appearance="minimal" style="left:340px; top:200px; width:201px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_2" style="x1:283px; y1:196px; x2:543px; y2:196px; "/>
- <caption id="caption25" class="cell_1" style="left:283px; top:199px; width:54px; height:20px; ">형태</caption>
- <datagrid id="datagrid4" nodeset="/root/hidden/original/icdrlist" caption="접수구분^신청구분^적용일자^종료일자^병동1^병실1^병상1^등급1^형태1^병동2^병실2^병상2^등급2^형태2^진료과^전문의^담당의^선택여부^Oxy여부^Suction여부^비고1^비고2^SNo^S^최종수정담당자^최종수정일시" colsep="^" colwidth="60, 60, 80, 80, 70, 60, 60, 100, 70, 70, 60, 60, 100, 70, 130, 100, 100, 62, 60, 75, 140, 100, 30, 30, 110, 110" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:283px; top:510px; width:550px; height:210px; ">
- <col disabled="true" ref="icdr_acptflagcd" type="combo" style="text-align:center; ">
- <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 disabled="true" ref="icdr_appflagcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>전실</label>
- <value>1</value>
- </item>
- <item>
- <label>전과</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="icdr_fromdd" format="yyyy-mm-dd"/>
- <col ref="icdr_todd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="icdr_wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_roomcd"/>
- <col ref="icdr_bedcd"/>
- <col disabled="true" ref="icdr_roomgrdecd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_roomtypecd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_wardcd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_roomcd2"/>
- <col ref="icdr_bedcd2"/>
- <col disabled="true" ref="icdr_roomgrdecd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_roomtypecd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_medispclid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_atdoctid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_specordyn"/>
- <col ref="icdr_oxyyn" style="text-align:center; "/>
- <col ref="icdr_suctyn" style="text-align:center; "/>
- <col disabled="true" ref="icdr_prestremcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0360list/P0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_chngprestrem"/>
- <col ref="icdr_seqno"/>
- <col ref="icdr_histstat"/>
- <col ref="icdr_lastupdtrid"/>
- <col ref="icdr_lastupdtdt"/>
- </datagrid>
- <caption id="caption26" class="tit_2" style="left:283px; top:495px; width:95px; height:13px; ">전과전실정보</caption>
- <select1 id="cmb_bedcd1" ref="/root/hidden/original/icdr/icdr_bedcd" class="combo_default" disabled="true" appearance="minimal" style="left:466px; top:88px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_bedcd2" ref="/root/main/cdcr/cdcr_chngbedcd" class="combo_default" disabled="true" appearance="minimal" style="left:758px; top:88px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button7" class="icon_search" style="left:817px; top:89px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/hidden/target");
- model.makeNode("/root/hidden/target");
- setParameter("SMPMI00100_Param1", model.getValue("/root/hidden/original/icdr/icdr_orddeptcd"));
- setParameter("SMPMI00100_orduseyn", "H");
- modal("SPPMI02001", "1","50", "50", "SPPMI02001", "", "");
- var swardcd = instance1.selectSingleNode("/root/hidden/target/grdbedspec/wardcd");
- if (swardcd != null){
- var inpt_wardcd = model.getValue("/root/hidden/target/grdbedspec/wardcd");
- var inpt_roomcd = model.getValue("/root/hidden/target/grdbedspec/roomcd");
- //var ptbs_sex = model.getValue("/root/hidden/original/inpt/inpt_sex");
- var ptbs_sex = model.getValue("/root/hidden/original/icdr/icdr_sex");
- var inpt_sex = model.getValue("/root/hidden/target/grdbedspec/sex");
-
- // 주민번호 세팅
- var nodelist = instance1.selectNodes("/root/hidden/original/inpt");
- var icdr_pid = model.getValue("/root/hidden/original/icdr/icdr_pid");
- var ptbs_rrgstno = "";
- for (i = 1 ; i <= nodelist.length; i++) {
-
- if (icdr_pid == model.getValue("/root/hidden/original/inpt[" + i + "]/inpt_pid")) {
-
- ptbs_rrgstno = model.getValue("/root/hidden/original/inpt[" + i + "]/inpt_rrgstno");
-
- break;
- }
- }
-
- cmb_roomcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + inpt_wardcd + "' ]";
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + inpt_wardcd + "' ]";
- // 20090601 JHP 수정 : 병실등급 살아있는걸로만...(기존거는 주석처리)
- //cmb_roomgrdecd.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd"
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde"
- cmb_roomtypecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomtypecd"
- if( model.getValue("/root/hidden/target/grdbedspec/roomtypecd") != 'S02' ){
- if (fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, ptbs_rrgstno) == false) {
- //alert("2121");
- return false;
- }
- }
-
-
- model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/target/grdbedspec/wardcd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomcd",model.getValue("/root/hidden/target/grdbedspec/roomcd"));
- cmb_bedcd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[rm = '" + model.getValue("/root/main/cdcr/cdcr_chngroomcd") + "' ]";
- model.setValue("/root/main/cdcr/cdcr_chngbedcd",model.getValue("/root/hidden/target/grdbedspec/bedcd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/target/grdbedspec/roomgrdecd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/target/grdbedspec/roomtypecd"));
- model.setValue("/root/main/cdcr/cdcr_bsex", inpt_sex);
- //fComboNodeSet(2);
-
- //격리병실 신청 체크 해제
- model.setValue("/root/send/isolationroom", "N");
-
- // 호스피스병동 등급 수정가능 처리
- if(model.getValue("/root/main/cdcr/cdcr_chngwardcd") == '3050136000'){
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + model.getValue("/root/main/cdcr/cdcr_chngroomtype") + "' ]";
- cmb_roomgrdecd2.refresh();
- cmb_roomgrdecd2.disabled = false;
- } else {
-
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde";
- cmb_roomgrdecd2.refresh();
- cmb_roomgrdecd2.disabled = true;
- }
-
- model.refresh();
- }
- //}
- ]]>
- </script>
- </button>
- <bool id="bool4" checkvalue="Y, N" ref="/root/send/isolationroom" style="left:573px; top:268px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var valYN = model.getValue("/root/send/isolationroom");
-
- if( valYN == 'Y' ){
-
- model.setValue("/root/send/deisolation", "");
- chk_deisol.refresh();
-
- if( model.getValue("/root/main/cdcr/cdcr_chngwardcd") == ''
- || model.getValue("/root/main/cdcr/cdcr_chngroomcd") == ''
- || model.getValue("/root/main/cdcr/cdcr_chngbedcd") == ''){
-
- messageBox("전실신청할 병동/병실/병상 정보를 선택 후 격리체크 하세요!", "E999", "");
-
- model.setValue("/root/send/isolationroom", "N");
- bool4.refresh();
- return false;
- }
-
- var retVal = messageBox("격리병실로 전실신청 하시겠습니까?", "Q999", "");
- if( retVal == '6' ){
-
- //격리병실 신청여부 체크
- model.removeNodeset("/root/hidden/rcv/rcv/isocheck");
- model.makeNode("/root/hidden/rcv/rcv/isocheck");
- submit("TRPMI01703");
-
- if( model.getValue("/root/hidden/rcv/rcv/isocheck/appyn") != "Y" ){
-
- messageBox("아직 격리신청이 되지 않았습니다. 격리병실로 지정할 수 없습니다.\n주치의가 격리신청 후 격리신청 가능합니다.", "E999", "");
- model.setValue("/root/send/isolationroom", "N");
- bool4.refresh();
-
- return false;
- }
-
- // S02 집중치료실의 경우 pam.picmmapp.sourcecdmapp에 매핑되어있는 등급으로 처리 by 조중래 20160922
- if (model.getValue("/root/main/cdcr/cdcr_chngroomtype") == "S02") {
-
- var newroomgrde = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid='" + model.getValue("/root/main/cdcr/cdcr_chngroomgrde") + "']/sourcecdmapp");
-
- if (newroomgrde == null || newroomgrde == "" || newroomgrde == "-") {
-
- alert("해당 집중치료실에는 격리등급이 생성되어있지 않습니다.\r\n수가팀(본원:6132, 칠곡:2181)으로 문의하십시오.");
-
- model.setValue("/root/send/isolationroom", "N");
- model.refresh();
- return false;
- }
-
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde", newroomgrde); //격리병실입원료
-
- } else {
-
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde", "S0701"); //격리병실입원료
- model.setValue("/root/main/cdcr/cdcr_chngroomtype", "S07"); //격리
- }
-
- // cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = 'S07']";
- // cmb_roomgrdecd2.refresh();
- fComboNodeSet(2);
-
- }else{
-
- model.setValue("/root/send/isolationroom", "N");
-
- var sroomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
-
- //model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/wd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/gr"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/ty"));
- fComboNodeSet(2);
- }
-
- }else{
-
- var sroomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
-
- //model.setValue("/root/main/cdcr/cdcr_chngwardcd",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/wd"));
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/gr"));
- model.setValue("/root/main/cdcr/cdcr_chngroomtype",model.getValue("/root/hidden/init/roomcd[cd = '" + sroomcd + "' ]/ty"));
- fComboNodeSet(2);
- }
-
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption27" style="left:592px; top:269px; width:100px; height:20px; ">격리병실신청</caption>
- <output id="output1" ref="/root/hidden/original/icdr/icdr_hngnm2" class="output_fix" style="left:466px; top:110px; width:75px; height:19px; "/>
- <select id="chk_deisol" ref="/root/send/deisolation" overflow="visible" appearance="full" style="left:665px; top:270px; width:90px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>격리병실해제</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (model.getValue("/root/send/deisolation") != "Y") {
- return;
- }
-
- model.setValue("/root/send/isolationroom", "N");
-
- var wardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- var roomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
-
- if (wardcd == "" || roomcd == "") {
- messageBox("격리해제할 병동/병실 정보를 선택하세요!", "E999");
- model.setValue("/root/send/deisolation", "");
- chk_deisol.refresh();
- return;
- }
-
- model.setValue("/root/send/wardcd", wardcd);
- model.setValue("/root/send/roomcd", roomcd);
-
- submit("TRPMI01704");
-
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde", model.getValue("/root/hidden/orgroominfo/grdecd"));
-
- var typecd = model.getValue("/root/hidden/orgroominfo/typecd");
- model.setValue("/root/main/cdcr/cdcr_chngroomtype", typecd);
-
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + typecd + "' ]";
- cmb_roomgrdecd2.refresh();
-
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox1" ref="/root/send/antivirus" overflow="visible" appearance="full" style="left:574px; top:287px; width:80px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>무균(다인)</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var wardcd1 = model.getValue("/root/hidden/original/icdr/icdr_wardcd");
- var wardcd2 = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
-
- if (wardcd1 == null || wardcd1 == "" || wardcd2 == null || wardcd2 == "") {
- alert("현재재원정보 또는 전실신청정보가 선택되지 않았습니다.");
- model.setValue("/root/send/antivirus", "")
- model.refresh();
- return;
- }
-
- var grdecd = "";
- var typecd = "";
-
- // 무균실 설정
- if (model.getValue("/root/send/antivirus") == "Y") {
-
- grdecd = "S1001"; // 등급 : 무균다인실
- typecd = "S10"; // 형태 : 무균
-
- // 무균실 해제(원복)
- } else {
-
- var wardcd = model.getValue("/root/main/cdcr/cdcr_chngwardcd");
- var roomcd = model.getValue("/root/main/cdcr/cdcr_chngroomcd");
-
- model.setValue("/root/send/wardcd", wardcd);
- model.setValue("/root/send/roomcd", roomcd);
-
- submit("TRPMI01704");
-
- grdecd = model.getValue("/root/hidden/orgroominfo/grdecd");
- typecd = model.getValue("/root/hidden/orgroominfo/typecd");
- }
-
- model.setValue("/root/main/cdcr/cdcr_chngroomgrde", grdecd); // 등급
- model.setValue("/root/main/cdcr/cdcr_chngroomtype", typecd); // 형태
-
- // 병실등급 재설정
- cmb_roomgrdecd2.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[cdid = '" + grdecd + "' ]";
- cmb_roomgrdecd2.refresh();
-
- // 병실형태 재설정
- cmb_roomtypecd2.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomtypecd[cd = '" + typecd + "' ]";
- cmb_roomtypecd2.refresh();
-
- model.refresh();
- ]]>
- </script>
- </select>
- </group>
- <datagrid id="datagrid1" nodeset="/root/hidden/wdrminfo/wdrm" caption="층^병동^빈병상^상세정보^상세정보^상세정보|층^병동^빈병상^병실^성별^빈병상" colsep="^" colwidth="40, 85, 45, 62, 39, 51" fixedcols="3" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:340px; height:655px; ">
- <col ref="wdrm_posinfocd"/>
- <col ref="wdrm_wardnm"/>
- <col ref="wdrm_wardemptbedcnt" style="text-align:right; "/>
- <col ref="wdrm_roomcd"/>
- <col disabled="true" ref="wdrm_sex" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="wdrm_roomemptbedcnt" style="text-align:right; "/>
- </datagrid>
- <output id="output11" ref="/root/hidden/currenttime" class="output_fix" format="yyyy-mm-dd" style="left:245px; top:50px; width:95px; height:19px; text-align:center; "/>
- <button id="button1" class="btn2_letter4" style="left:275px; top:10px; width:64px; height:19px; ">
- <caption>병상조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fQuery_Wardcond();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter4" visibility="hidden" style="left:1000px; top:735px; width:80px; height:22px; ">
- <caption>간호확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCareCnfm("U");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn3_letter6" visibility="visible" style="left:1081px; top:736px; width:104px; height:22px; ">
- <caption>병실맞바꾸기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPMI06000", "1","", "", "SMPMI06000", "", "");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|