123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <main>
- <unpreprecinfo>
- <unprepreclist>
- <status/>
- <indschflag/>
- <pid/>
- <hngnm/>
- <dschdd/>
- <indd/>
- <unprepstat/>
- <doctkindflag/>
- <unprepdrnm/>
- <unprepdeptnm/>
- <formnm/>
- <degnitemnm/>
- <formrecdd/>
- <medirecalertcnts/>
- <drcnfmdt/>
- <dralertcnts/>
- <fstrgstrnm/>
- <fstrgstdt/>
- <lastupdtrnm/>
- <lastupdtdt/>
- </unprepreclist>
- <unprepreccnt>
- <patcnt/>
- <unprepcnt/>
- </unprepreccnt>
- </unpreprecinfo>
- <cond>
- <unpreppatbase>
- <pid/>
- <hngnm/>
- <chosinfo/>
- <indd/>
- <cretno/>
- <orderby/>
- <scrnflag/>
- </unpreppatbase>
- <unprepdrbase>
- <dschflag>D</dschflag>
- <unprepstat>1 3</unprepstat>
- <unprepdrnm/>
- <unprepdrid/>
- <doctkindflag>-</doctkindflag>
- <srchflag>dsch</srchflag>
- <fromdd/>
- <todd/>
- <deptflag>unprep</deptflag>
- <orddeptcd>-</orddeptcd>
- <unprepstatlist/>
- <unprepsign/>
- <dayflag>N</dayflag>
- <orderby/>
- <scrnflag/>
- <detldept/>
- <detldeptcd/>
- </unprepdrbase>
- <srchflag/>
- <patcnt/>
- <reccnt/>
- <excelcond>
- <startdate/>
- <enddate/>
- <steps>3</steps>
- </excelcond>
- </cond>
- <patinfo>
- <pathistlist/>
- </patinfo>
- <unprepdrinfo>
- <unprepdrlist>
- <checkflag/>
- <orddeptnm/>
- <orddeptcd/>
- <jobposnm/>
- <orddrid/>
- <orddrnm/>
- </unprepdrlist>
- </unprepdrinfo>
- <delivefact>
- <medirecalertcnts/>
- <dralertcnts/>
- </delivefact>
- <unprepiteminfo>
- <unprepiteminfo/>
- </unprepiteminfo>
- <patreclist>
- <patreclist/>
- </patreclist>
- <unprepdeptcd>
- <detldeptcd/>
- <unprepdeptcd/>
- </unprepdeptcd>
- <medalertinfo>
- <medalertlist/>
- </medalertinfo>
- <dralertinfo>
- <dralertlist/>
- </dralertinfo>
- </main>
- <send/>
- <hidden/>
- <init>
- <orddept/>
- <popupmenu>
- <menu>
- <item>
- <name>배치미비</name>
- <func>fSetUnPrepRecInfo0</func>
- </item>
- <item>
- <name>미비확인</name>
- <func>fSetUnPrepRecInfo1</func>
- </item>
- <item>
- <name>의사확인</name>
- <func>fSetUnPrepRecInfo2</func>
- </item>
- <item>
- <name>재미비</name>
- <func>fSetUnPrepRecInfo3</func>
- </item>
- <item>
- <name>완료</name>
- <func>fSetUnPrepRecInfo4</func>
- </item>
- <item>
- <name>미비삭제</name>
- <func>fDelUnPrepRecInfo</func>
- </item>
- <item>
- <name/>
- <func/>
- </item>
- <item>
- <name>의사변경</name>
- <func>fChngUnPrepDrInfo</func>
- </item>
- <item>
- <name>직종변경(I.)</name>
- <func>fChngUnPrepInternPos</func>
- </item>
- <item>
- <name>직종변경(R.)</name>
- <func>fChngUnPrepResiPos</func>
- </item>
- <item>
- <name>직종변경(St.)</name>
- <func>fChngUnPrepStaffPos</func>
- </item>
- <item>
- <name/>
- <func/>
- </item>
- <item>
- <name>미비과변경</name>
- <func>fOpenUnPrepDeptCD</func>
- </item>
- <item>
- <name>미비분과변경</name>
- <func>fOpenUnPrepDeltDeptCD</func>
- </item>
- <item>
- <name>변경취소</name>
- <func>fCnclSetPrepRecInfo</func>
- </item>
- <item>
- <name>기록연결 해제</name>
- <func>fCnclFormRecSeq</func>
- </item>
- <!-- 2010.02.18 이남익(이은영GJ 요청 삭제)
- <item>
- <name/>
- <func/>
- </item>
- <item>
- <name>전달사항 이력관리</name>
- <func>fManageAlert</func>
- </item>
- <item>
- <name>의료정보팀</name>
- <func>fManageAlertCnts</func>
- </item>
- <item>
- <name>의사</name>
- <func>fManageDrAlertCnts</func>
- </item>
- <item>
- <name/>
- <func/>
- </item>
- -->
- </menu>
- </popupmenu>
- <unprepdeptcd/>
- <M0501>
- </M0501>
- <M0502>
- </M0502>
- <M0503>
- </M0503>
- <M0504>
- <M0504/>
- </M0504>
- <openday/>
- <hardcd/>
- <merge>1</merge>
- </init>
- <temp>
- <unpreprecinfo/>
- <userinfo/>
- </temp>
- <tmp>
- <pid/>
- <hngnm/>
- <srchcond/>
- <autoflag/>
- </tmp>
- </root>
- </instance>
- <submission id="TRMRI02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo"/>
- <submission id="TRMRI02106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreprecinfo"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRI02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unprepdrinfo"/>
- <submission id="TRMRI02107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreprecinfo"/>
- <submission id="TXMRI02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unpreprecinfo"/>
- <submission id="TXMRI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unpreprecinfo"/>
- <submission id="TRMRI02108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/excelfile"/>
- <submission id="TXMRI01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMRI01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unprepiteminfo"/>
- <submission id="TRMRI01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recreqdata" resultref="/root/main/patreclist"/>
- <submission id="TRMRI01706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/medalertinfo"/>
- <submission id="TRMRI01707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/dralertinfo"/>
- <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00104" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- mmbfGetHardCodeInfoNm("/root/send/reqhardcd", "/root/init/hardcd", 1240);
-
-
- //미비기록리스트의 merge기본 설정을 false로 처리
- grd_unprepreclist.autoMerge = false;
- for(var i = 0; i < grd_unprepreclist.cols; i++){
- grd_unprepreclist.mergeCol(i) = false;
- }
-
- zbcfGetKindCodeList(new Array("M0037"), new Array("M0546"), new Array("/root/init/openday"), false);
-
- //그리드의 짝수행의 색변화를 제거
- grd_unprepreclist.backColorAlternate = "#ffffff";
-
- //조회구분일자(퇴원, 작업) 설정
- model.setValue("/root/main/cond/unprepdrbase/fromdd", getCurrentDate());
- model.setValue("/root/main/cond/unprepdrbase/todd" , getCurrentDate());
-
- //미비과, 퇴원과설정
- fGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A", getCurrentDate());
- addComboItem("cmb_orddept", "전체", "-", "above");
- addComboItem("cmb_orddept", "호스피스과", "3100000000", "below");
-
- // //Count예외 미비항목 조회
- // reqGetUnPrepBaseExptCnt();
-
- //미비기록리스트 grid 초기화
- model.removeNodeset("/root/main/unpreprecinfo/unprepreclist");
- model.refresh();
-
- // //차트분서관리 화면 연동 처리
- // if(checkOpener()){
- //
- // var recvparam = opener.javascript.getParameter("SMMRI01700_Param");
- // if(recvparam != ""){
- // recvparam = recvparam.split("▩");
- // data = recvparam[1].split("▦");
- // model.setValue("/root/main/cond/unpreppatbase/pid", data[0]);
- //
- // fReqGetUnPrepPatChosInfo(data[0], "I", "A");
- //
- // cmb_chosinfo.select(0);
- // var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
- // var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
- // var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
- // var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
- // model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
- // model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
- // model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
- // model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
- // model.refresh();
- // }
- // }
-
- zbcfGetCodeList(new Array("M0501", "M0502", "M0503"), new Array("/root/init/M0501", "/root/init/M0502", "/root/init/M0503"));
- var ls_pid = opener.javascript.getParameter("SPMRI03800_pid");
-
- // knuh_20110801_추가
- var ls_indd = opener.javascript.getParameter("SPMRI03800_indd");
- if (ls_pid != "")
- {
- model.setValue("/root/main/cond/unpreppatbase/pid", ls_pid);
-
- // knuh_20110801_추가
- model.setValue("/root/main/cond/unpreppatbase/indd", ls_indd);
-
- model.refresh();
- // btn_requnpreppatbase.dispatch("DOMActivate");
- chk_unprepflagA.dispatch("xforms-select");
- ipt_pid.dispatch("onkeypress");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- group1.attribute("height") = 0;
- group3.attribute("height") = 0;
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/unprepmngtweb/js/SPMRI03800.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * 하드코드 조회
- *
- * @param
- * ref reference path
- * rsltref result reference path
- * hardcd - 하드코드
- */
- function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
- var mmb_rsltref = "/root/hidden/mmb/hardcd";
- model.removeNode(mmb_rsltref);
- model.makeNode(mmb_rsltref);
- model.removeNode(ref);
- model.makeValue(ref + "/hardcd", hardcd);
- if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
- model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
- }
- model.refresh();
- }
-
- function mmbfGetHardCodeInfoNm(ref, rsltref, hardcd){
- var mmb_rsltref = "/root/hidden/mmb/hardcd";
- model.removeNode(mmb_rsltref);
- model.makeNode(mmb_rsltref);
- model.removeNode(ref);
- model.makeValue(ref + "/hardcd", hardcd);
- if(submit("TRMMB04105", "false", ref, mmb_rsltref)==true){
- model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" visibility="hidden" appearance="roundrect" style="left:400px; top:14px; width:793px; height:91px; "/>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자별미비상세조회</caption>
- <caption id="caption10" class="tit_2" visibility="hidden" style="left:600px; top:736px; width:131px; height:13px; ">전달사항 From의사</caption>
- <textarea id="textarea1" ref="/root/main/delivefact/dralertcnts" visibility="hidden" editable="false" style="left:600px; top:749px; width:594px; height:35px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(grd_unprepreclist.row > 0){
- if(sDRALERT == textarea1.value){
- return;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- sDRALERT = textarea1.value;
- ]]>
- </script>
- </textarea>
- <textarea id="textarea2" ref="/root/main/delivefact/medirecalertcnts" visibility="hidden" editable="false" style="left:0px; top:749px; width:591px; height:35px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(grd_unprepreclist.row > 0){
- if(sMEDIALERT == textarea2.value){
- return;
-
- }else{
- var status = model.getValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status");
- if(status == ""){
- model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status", "ua");
- }
- model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/medirecalertcnts", textarea2.value);
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- sMEDIALERT = textarea2.value;
- ]]>
- </script>
- </textarea>
- <caption id="caption9" class="tit_2" visibility="hidden" style="left:0px; top:736px; width:170px; height:13px; ">전달사항 From의료정보팀</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:1194px; y2:21px; "/>
- <shape id="roundrect2" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:395px; height:90px; color:#3366ff; "/>
- <select id="chk_unprepflagR" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:736px; top:61px; width:56px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>재미비</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagDel.deselect(0);
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagA" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:493px; top:61px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagB.disabled = true;
- chk_unprepflagB.deselect(0);
- chk_unprepflagC.disabled = true;
- chk_unprepflagC.deselect(0);
- chk_unprepflagD.disabled = true;
- chk_unprepflagD.deselect(0);
- chk_unprepflagR.disabled = true;
- chk_unprepflagR.deselect(0);
- chk_unprepflagS.disabled = true;
- chk_unprepflagS.deselect(0);
- chk_unprepflagDel.disabled = true;
- chk_unprepflagDel.deselect(0);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- chk_unprepflagB.disabled = false;
- chk_unprepflagC.disabled = false;
- chk_unprepflagD.disabled = false;
- chk_unprepflagR.disabled = false;
- chk_unprepflagS.disabled = false;
- chk_unprepflagDel.disabled = false;
- ]]>
- </script>
- </select>
- <button id="btn_patreq" class="icon_search" visibility="hidden" style="left:158px; top:29px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/tmp/pid" , model.getValue("/root/main/cond/unpreppatbase/pid"));
- model.setValue("/root/tmp/hngnm" , model.getValue("/root/main/cond/unpreppatbase/hngnm"));
- if(model.getValue("/root/main/cond/unpreppatbase/pid") == ""){
- model.setValue("/root/tmp/srchcond", 1);
- }else{
- model.setValue("/root/tmp/srchcond", 2);
- }
- model.setValue("/root/tmp/autoflag", "Y");
- model.refresh();
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
- ]]>
- </script>
- </button>
- <select id="chk_unprepflagS" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:793px; top:61px; width:46px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>완료</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagDel.deselect(0);
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagB" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:539px; top:61px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>배치미비</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagDel.deselect(0);
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagC" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:604px; top:61px; width:66px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미비확인</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagDel.deselect(0);
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select1 id="cmb_inoutddflag" ref="/root/main/cond/unprepdrbase/srchflag" disabled="true" visibility="hidden" appearance="minimal" style="left:571px; top:83px; width:78px; height:19px; ">
- <choices>
- <item>
- <label>퇴원일자</label>
- <value>dsch</value>
- </item>
- <item>
- <label>입원일자</label>
- <value>indd</value>
- </item>
- <item>
- <label>진료일자</label>
- <value>orddd</value>
- </item>
- </choices>
- </select1>
- <select id="chk_unprepflagD" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:670px; top:61px; width:65px; height:20px; color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>의사확인</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagDel.deselect(0);
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <input id="ipt_unprepdrnm" ref="/root/main/cond/unprepdrbase/unprepdrnm" visibility="hidden" style="left:494px; top:19px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //enter입력시
- if(event.keyCode == 13){
- model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", ipt_unprepdrnm.currentText);
- var unprepdrnm = ipt_unprepdrnm.currentText;
- if(isNumber(unprepdrnm.charAt(0))){
- fReqGetUnPrepDrSmplList("id", unprepdrnm);
- }else{
- fReqGetUnPrepDrSmplList("nm", unprepdrnm);
- }
-
- var nodelist = model.instances(0).selectNodes("/root/temp/userinfo/usercombo");
- if(nodelist.length == 0){
- messageBox("의사 정보가", "I004");
- return;
-
- }else if(nodelist.length == 1){
- model.setValue("/root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
- model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
-
- }else if(nodelist.length > 1){
- setParameter("SPMRI02900_stnddd" , getCurrentDate());
- setParameter("SPMRI02900_orddrnm", ipt_unprepdrnm.currentText);
- modal("SPMRI02900");
- if(getParameter("SPMRI02900_useyn")=="Y"){
- var doctinfo = getParameter("SPMRI02900_rtnparam");
- doctinfo = doctinfo.split("^");
- model.setValue("root/main/cond/unprepdrbase/unprepdrid", doctinfo[3]);
- model.setValue("root/main/cond/unprepdrbase/unprepdrnm", doctinfo[4]);
- }
-
- }else{
- model.setValue("root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrid"));
- model.setValue("root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrnm"));
-
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/main/cond/unpreppatbase/pid" class="input_search" visibility="hidden" style="left:89px; top:28px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // if(event.keycode == 13){
- fReqGetUnPrepPatChosInfo(ipt_pid.currentText, "I", "A");
- // knuh_20110801_수정
- //cmb_chosinfo.select(0);
- var indd = model.getValue("/root/main/cond/unpreppatbase/indd");
-
- //alert(model.getValue("/root/main/patinfo/pathistlist[orddd = '" + indd +"']/rowcnt"));
- var rowcnt = model.getValue("/root/main/patinfo/pathistlist[orddd = '" + indd +"']/rowcnt");
- //alert(rowcnt);
-
- //model.setValue("/root/main/cond/unpreppatbase/chosinfo/rowcnt", rowcnt);
- cmb_chosinfo.select(rowcnt-1);
-
- var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
- var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
- var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
- var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
- var dschdd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/dschdd");
- if(dschdd != '재원중'){
- indschflag = "D";
- }else{
- indschflag = "I";
- }
- model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
- model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
- model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
- model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
-
- model.setValue("/root/main/delivefact/medirecalertcnts", "");
- model.setValue("/root/main/delivefact/dralertcnts", "");
-
- model.refresh();
-
- btn_requnpreppatbase.dispatch("DOMActivate");
-
- // var wndobj = getOpenWindow("SPMRI02700");
- // if(wndobj != null){
- // setParameter("SPMRI02700_pid", pid);
- // wndobj.javascript.fReqGetUnPrepOpList();
- // wndobj.model.setFocus("grd_unprepoplist");
- // wndobj.model.refresh();
- // }
- //
- // var wndobj2 = getOpenWindow("SPMRI02600");
- // if(wndobj2 != null){
- // wndobj2.javascript.gRecLoad = "N";
- // wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
- //
- // }
- //
- // //미비기록 연동창이 떠 있는 경우, 재조회 처리함
- // //2009. 02. 18 오지훈
- // if(grd_patreclist.visible == true){
- // fReqGetPatRecList(pid, indd, cretno);
- // sBFPID = pid;
- // sBFORDDD = indd;
- // sBFCRETNO = cretno;
- // }
- // }
- ]]>
- </script>
- </input>
- <caption id="caption1" visibility="hidden" style="left:742px; top:83px; width:15px; height:15px; ">~</caption>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:407px; top:39px; width:86px; height:17px; ">재원구분 :</caption>
- <select1 id="rdo_inoutflag" ref="/root/main/cond/unprepdrbase/dschflag" visibility="hidden" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:494px; top:39px; width:199px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- <item>
- <label>재원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //재원구분 퇴원
- if(rdo_inoutflag.value == "D"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "dsch");
-
- }else if(rdo_inoutflag.value == "I"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "indd");
-
- }else if(rdo_inoutflag.value == "O"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
-
- }else if(rdo_inoutflag.value == "E"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:4px; top:52px; width:86px; height:17px; ">내원정보</caption>
- <select1 id="combo2" ref="/root/main/cond/unprepdrbase/doctkindflag" visibility="hidden" appearance="minimal" style="left:668px; top:19px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>스태프</label>
- <value>St</value>
- </item>
- <item>
- <label>레지던트</label>
- <value>R</value>
- </item>
- <item>
- <label>인턴</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" visibility="hidden" style="left:407px; top:61px; width:86px; height:17px; ">미비구분 :</caption>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:4px; top:28px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_todd" ref="/root/main/cond/unprepdrbase/todd" disabled="true" visibility="hidden" inputtype="date" style="left:755px; top:83px; width:90px; height:19px; "/>
- <caption id="cap_reqflag" class="search_name" visibility="hidden" style="left:406px; top:83px; width:86px; height:17px; ">조회구분 :</caption>
- <caption id="caption6" class="search_name" visibility="hidden" style="left:581px; top:19px; width:99px; height:17px; ">의사구분 :</caption>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:407px; top:19px; width:89px; height:17px; ">미비의사 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/unprepdrbase/orddeptcd" class="combo_search" visibility="hidden" appearance="minimal" editmode="inputsearch" style="left:861px; top:18px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 외과, 소아청소년과, 산부인과 세부 분과 활성화함.
- var orddeptcd = model.getValue("/root/main/cond/unprepdrbase/orddeptcd");
-
- if(orddeptcd == "2040000000"
- || orddeptcd == "2110000000"
- || orddeptcd == "2100000000")
- {
- radio_detldept.disabled = false;
- radio_detldept.value = "Y";
- cmb_detldept.disabled = false;
-
- //미비과에 따라 미비분과 combo정보를 변경
- if(orddeptcd == "2040000000"){ //외과
- cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0501/M0501";
- }else if(orddeptcd == "2100000000"){ //산부인과
- cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0502/M0502";
- }else if(orddeptcd == "2110000000"){ //소아과
- cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0503/M0503";
- }
- addComboItem("cmb_detldept", "전체", "ALL", "above");
- cmb_detldept.select(0);
- cmb_detldept.refresh();
- }
- else
- {
- radio_detldept.disabled = true;
- radio_detldept.value = "N";
- cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0504/M0504";
- model.setValue("/root/main/cond/unprepdrbase/detldeptcd", "");
- cmb_detldept.disabled = true;
- cmb_detldept.refresh();
- }
-
-
-
- ]]>
- </script>
- </select1>
- <select1 id="rdo_deptflag" ref="/root/main/cond/unprepdrbase/deptflag" visibility="hidden" appearance="full" cols="4" rows="1" overflow="visible" style="left:748px; top:19px; width:113px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>미비과</label>
- <value>unprep</value>
- </item>
- <item>
- <label>퇴원과</label>
- <value>dsch</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/cond/unprepdrbase/fromdd" disabled="true" visibility="hidden" inputtype="date" style="left:651px; top:83px; width:90px; height:19px; "/>
- <caption id="caption20" class="tit_2" visibility="hidden" style="left:3px; top:114px; width:108px; height:13px; ">
- <![CDATA[미비기록리스트]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(chk_merge.visible == false)
- {
- chk_merge.visible = true;
- return;
- }
-
- if(chk_merge.visible == true)
- {
- chk_merge.visible = false;
- return;
- }
- ]]>
- </script>
- </caption>
- <input id="input1" ref="/root/main/cond/unpreppatbase/hngnm" class="input_search" visibility="hidden" style="left:177px; top:28px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_chosinfo" ref="/root/main/cond/unpreppatbase/chosinfo" visibility="hidden" appearance="minimal" style="left:12px; top:74px; width:370px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/patinfo/pathistlist">
- <label ref="chosinfo"/>
- <value ref="rowcnt"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/pid");
- var indd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/orddd");
- var cretno= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/cretno");
- var dschdd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/dschdd");
-
- model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
- model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
- model.setValue("/root/main/cond/unpreppatbase/cretno" , cretno);
- model.refresh();
-
- btn_requnpreppatbase.dispatch("DOMActivate");
-
- if(dschdd != '재원중'){
- indschflag = "D";
- }else{
- indschflag = "I";
- }
-
- var wndobj = getOpenWindow("SPMRI02700");
- if(wndobj != null){
- setParameter("SPMRI02700_pid", pid);
- wndobj.javascript.fReqGetUnPrepOpList();
- wndobj.model.setFocus("grd_unprepoplist");
- wndobj.model.refresh();
- }
-
- var wndobj2 = getOpenWindow("SPMRI02600");
- if(wndobj2 != null){
- wndobj2.javascript.gRecLoad = "N";
- wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
-
- }
-
- //미비기록 연동창이 떠 있는 경우, 재조회 처리함
- //2009. 02. 18 오지훈
- if(grd_patreclist.visible == true){
- fReqGetPatRecList(pid, indd, cretno);
- sBFPID = pid;
- sBFORDDD = indd;
- sBFCRETNO = cretno;
- }
- ]]>
- </script>
- </select1>
- <button id="btn_requnpreppatbase" class="btn1_letter2" visibility="hidden" style="left:327px; top:34px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqGetUnPrepRecList();
-
- model.setValue("/root/main/delivefact/medirecalertcnts", "");
- model.setValue("/root/main/delivefact/dralertcnts", "");
- ]]>
- </script>
- </button>
- <line id="line2" visibility="hidden" style="x1:318px; y1:25px; x2:318px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_formcd" ref="/root/main/cond/reccnt" class="output_fix" visibility="hidden" appearance="output" style="left:373px; top:109px; width:30px; height:19px; "/>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:116px; top:110px; width:99px; height:17px; ">미비환자수 :</caption>
- <output id="opt_pid" ref="/root/main/cond/patcnt" class="output_fix" visibility="hidden" appearance="output" style="left:213px; top:109px; width:30px; height:19px; "/>
- <caption id="caption11" class="search_name" visibility="hidden" style="left:261px; top:110px; width:112px; height:17px; ">미비기록건수 :</caption>
- <group id="group1" style="left:812px; top:183px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="caption12" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">미비과</caption>
- <button id="btn_cnfm" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group1.attribute("height") = 0;
-
- fReqSetUnPrepDeptCD();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group1.attribute("height") = 0;
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/init/unprepdeptcd" appearance="minimal" style="left:52px; top:5px; width:156px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_totrec" class="btn2_letter6" style="left:1063px; top:1px; width:86px; height:19px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var currow = grd_unprepreclist.row;
- var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var monitorNumber = app.monitorNumber;
- var monitorResolutions = app.monitorResolution;
- var monitorResolutionsArr = monitorResolutions.split('|');
-
- var resolution = monitorResolutionsArr[monitorNumber-1];
- var resolution_width = resolution.split(',')[0];
- var resolution_height = resolution.split(',')[1];
-
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", pid);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400", monitorNumber, 0, 0);
- }
- ]]>
- </script>
- </button>
- <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/dayflag" style="left:491px; top:82px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool1.value == "Y"){
- cmb_inoutddflag.disabled = false;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }else{
- cmb_inoutddflag.disabled = true;
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption15" visibility="hidden" style="left:516px; top:83px; width:50px; height:20px; ">날짜조회</caption>
- <button id="button4" style="left:440px; top:0px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_right.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = false;
- grd_unprepreclist.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" style="left:412px; top:0px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_left.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = true;
- grd_unprepreclist.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_patreclist" nodeset="/root/main/patreclist/patreclist" visibility="hidden" caption="X^formrecseq^기록일시^시간^oprsrvno^srcformcd^formcd^서식명^확정^StaffSign^caption1^작성과^caption2^작성자" colsep="^" colwidth="26, 0, 71, 41, 0, 0, 0, 143, 53, 62, 0, 61, 0, 62" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:664px; top:180px; width:529px; height:489px; ">
- <col ref="check" type="output"/>
- <col ref="formrecseq"/>
- <col ref="formrecdd" format="yyyy-mm-dd"/>
- <col ref="formrechm" format="hh:nn"/>
- <col ref="oprsrvno"/>
- <col ref="srcformcd"/>
- <col ref="formcd"/>
- <col ref="formnm"/>
- <col ref="certyn"/>
- <col ref="cosignyn"/>
- <col ref="formrecdeptcd" visibility="hidden"/>
- <col ref="formrecdeptnm"/>
- <col ref="formrecuserid" visibility="hidden"/>
- <col ref="formrecusernm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currow = grd_patreclist.row;
- var curcol = grd_patreclist.col;
- // 그리드 header의 X를 클릭하면 그리드 hidden
- if(currow == 0 && curcol == grd_patreclist.colRef("check")){
- grd_patreclist.attribute("visibility") = "hidden";
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- var trgtrow = grd_unprepreclist.row;
- var srcrow = grd_patreclist.row;
- if(srcrow > 0){
- var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
- var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + srcrow + "]/srcformcd");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- var trgtrow = grd_unprepreclist.row;
- var srcrow = grd_patreclist.row;
- var trgtformrecseq = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq");
- var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/srcformcd");
-
- var formrecseq = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/formrecseq");
- var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
- var oprsrvno = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/oprsrvno");
-
- if(formrecseq <= 0){
- return;
- }
-
- if(trgtsrcformcd == srcformcd){
- var checkcol = grd_unprepreclist.colRef("check");
- model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq", formrecseq);
- model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/check" , "V");
- model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/status", "uf");
- model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/oprsrvno", oprsrvno);
-
- model.setValue(grd_patreclist.nodeset + "[" + srcrow + "]/check", "<<");
- grd_unprepreclist.cellStyle("background-color", trgtrow, checkcol, trgtrow, checkcol) = "#800080";
-
- }else{
- messageBox("서로 다른 서식", "I009");
- return;
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patreclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // ESC 키 이벤트
- if(event.KeyCode == 27){
- var cloakval = grd_patreclist.attribute("visibility");
- if(cloakval == "visible"){
- grd_patreclist.attribute("visibility")="hidden";
-
- }else{
- var currow = grd_unprepreclist.row;
- var pid = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/pid");
- var orddd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/indd");
- var cretno= model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/cretno");
-
- if(pid != sBFPID ||
- (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
- (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
- {
- fReqGetPatRecList(pid, orddd, cretno);
-
- sBFPID = pid;
- sBFORDDD = orddd;
- sBFCRETNO= cretno;
- }
-
- grd_patreclist.attribute("visibility")="visible";
- grd_patreclist.attribute("visibility")="visible";
- }
- grd_patreclist.refresh();
- }
- ]]>
- </script>
- <group id="group2" style="left:480px; top:305px; width:245px; height:0px; border-style:solid; ">
- <button id="button7" class="btn2_letter2" style="left:149px; top:39px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group2.attribute("height") = 0;
-
- reqGetUnPrepCreateExcelFile();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter2" style="left:194px; top:39px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group2.attribute("height") = 0;
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/main/cond/excelcond/steps" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:4px; top:19px; width:185px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>1개월</label>
- <value>1</value>
- </item>
- <item>
- <label>2개월</label>
- <value>2</value>
- </item>
- <item>
- <label>3개월</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" class="tit_2" style="left:4px; top:4px; width:218px; height:13px; ">excel화일 생성 기간지정</caption>
- <caption id="caption13" class="search_name" visibility="hidden" style="left:-1px; top:44px; width:86px; height:17px; ">시작일자 :</caption>
- <caption id="caption16" class="search_name" visibility="hidden" style="left:-1px; top:39px; width:86px; height:17px; ">종료일자 :</caption>
- <input id="input2" ref="/root/main/cond/excelcond/startdate" visibility="hidden" inputtype="date" style="left:89px; top:44px; width:90px; height:19px; "/>
- <input id="input3" ref="/root/main/cond/excelcond/enddate" visibility="hidden" inputtype="date" style="left:89px; top:39px; width:90px; height:19px; "/>
- </group>
- <group id="group3" style="left:870px; top:230px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="caption17" style="left:5px; top:5px; width:54px; height:20px; font-weight:bold; vertical-align:middle; ">미비분과</caption>
- <button id="button9" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group3.attribute("height") = 0;
-
- fSetDetlDeptCD();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_unprepreclist.disabled = false;
- btn_requnpreppatbase.disabled = false;
- btn_requnprepdrbase.disabled = false;
- btn_realunprep.disabled = false;
- btn_opinfo.disabled = false;
- btn_totrec.disabled = false;
- btn_unprepcert.disabled = false;
- btn_del.disabled = false;
- btn_ex.disabled = false;
- btn_save.disabled = false;
- group3.attribute("height") = 0;
- ]]>
- </script>
- </button>
- <select1 id="cmb_detldeptcd" ref="/root/main/unprepdeptcd/detldeptcd" appearance="minimal" style="left:64px; top:5px; width:144px; height:19px; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <select1 id="radio_detldept" ref="/root/main/cond/unprepdrbase/detldept" disabled="true" visibility="hidden" appearance="full" overflow="visible" checkvalue="Y,N" style="left:950px; top:40px; width:73px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미비분과</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_detldept" ref="/root/main/cond/unprepdrbase/detldeptcd" disabled="true" visibility="hidden" appearance="minimal" style="left:971px; top:18px; width:62px; height:19px; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_unprepflagDel" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:843px; top:61px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>기록삭제</label>
- <value>8</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- chk_unprepflagB.deselect(0);
- chk_unprepflagC.deselect(0);
- chk_unprepflagD.deselect(0);
- chk_unprepflagR.deselect(0);
- chk_unprepflagS.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_merge" ref="/root/init/merge" visibility="hidden" overflow="visible" appearance="full" style="left:570px; top:110px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>셀머지</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fDoMergeUnPrepRecList();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- fDoUnMergeUnPrepRecList();
- ]]>
- </script>
- </select>
- <datagrid id="grd_medalertlist" nodeset="/root/main/medalertinfo/medalertlist" visibility="hidden" autoresize="true" caption="작성일자^전달사항 From 의료정보팀" colsep="^" colwidth="120, 250" mergecellsfixedrows="bycolrec" rowsep="|" style="left:65px; top:320px; width:395px; height:240px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="medirecalertcnts"/>
- </datagrid>
- <datagrid id="grd_dralertlist" nodeset="/root/main/dralertinfo/dralertlist" visibility="hidden" autoresize="true" caption="작성일자^전달사항 From 의사" colsep="^" colwidth="120, 250" mergecellsfixedrows="bycolrec" rowsep="|" style="left:470px; top:320px; width:395px; height:240px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="dralertcnts"/>
- </datagrid>
- <button id="btn_opinfo" class="btn2_letter6" style="left:976px; top:1px; width:86px; height:19px; ">
- <caption>수술정보조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = "";
- if(model.getValue("/root/init/hardcd/hardcd/hardcd") == "Y")
- {
- if(grd_unprepreclist.rows > 0)
- {
- var currow = grd_unprepreclist.row;
- if(currow > 0)
- pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid"); // 미비조회 버튼으로 조회한 환자의 PID로 검색
- else
- pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // PID로 조회한 환자의 PID로 수술정보를 검색
- }
- }
- else
- {
- pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // 조회한 환자의 PID로 검색
- }
-
- if(pid != ""){
- setParameter("SPMRI02700_pid", pid);
- open("SPMRI02700", 1, 400, 0);
- }else{
- messageBox("등록번호를", "C001");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_ex" class="btn2_letter2" style="left:1150px; top:1px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_unprepreclist.saveExcel(fileName, "colhiddenextend:false;col_0:label;col_1:label;col_2:label;col_3:label;col_4:label;col_5:label;col_6:label;col_7:label;col_8:label;col_9:label;col_10:label;col_11:label;col_12:label;col_13:label;col_14:label;col_15:label;col_16:label;col_17:label;col_18:label;col_19:label;col_20:label;col_21:label;col_22:label;col_23:label;col_24:label;col_25:label;col_26:label;col_27:label;col_28:label;col_29:label;col_30:label;col_31:label;col_32:label;col_33:label;col_34:label;");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_unprepreclist" nodeset="/root/main/unpreprecinfo/unprepreclist" disabled="false" caption="status^^delyn^^등록번호^cretno^환자명^formrecseq^dschdeptcd^퇴원과^미비번호^퇴원일^입원일^전문의^원미비상태^미비상태^직종^orgdoctkindflag^미비의사^orgunprepdrnm^미비과^미비분과^orgdetldeptnm^detldeptcd^orgdetldeptcd^orgunprepdeptnm^orddeptcd^orgorddeptcd^unprepdrid^orgunprepdrid^formcd^서식명^oprsrvno^항목명^진료일자^unprepitemcd^전달사항 From 의료정보팀^전달사항 From의사^의사확인일시^srcformcd^최초생성자^최초생성일시^최종수정자^최종수정일시^최종삭제자^최종삭제자ID^최종삭제일시" colsep="^" colwidth="0, 30, 0, 0, 80, 0, 65, 0, 0, 45, 100, 75, 75, 55, 0, 64, 35, 0, 90, 0, 48, 68, 11, 11, 10, 0, 0, 0, 0, 0, 0, 130, 0, 60, 75, 0, 152, 125, 100, 0, 75, 120, 75, 120, 75, 75, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:22px; width:1194px; height:754px; ">
- <col disabled="true" ref="status" type="combo">
- <choices>
- <item>
- <label>신규</label>
- <value>i</value>
- </item>
- <item>
- <label>수정</label>
- <value>u</value>
- </item>
- <item>
- <label>삭제</label>
- <value>d</value>
- </item>
- <item>
- <label>수정</label>
- <value>ua</value>
- </item>
- <item>
- <label>수정</label>
- <value>ud</value>
- </item>
- <item>
- <label>수정</label>
- <value>uo</value>
- </item>
- <item>
- <label>수정</label>
- <value>up</value>
- </item>
- </choices>
- </col>
- <col ref="check" type="output"/>
- <col ref="delyn" visibility="hidden"/>
- <col ref="indschflag" type="output" visibility="hidden"/>
- <col ref="pid" visibility="hidden" style="vertical-align:top; "/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden" style="vertical-align:top; "/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="dschdeptcd" visibility="hidden"/>
- <col ref="dschdeptnm" style="vertical-align:top; "/>
- <col ref="unprepno" visibility="hidden"/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
- <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
- <col ref="medispclnm" style="vertical-align:top; "/>
- <col ref="orgunprepstat" visibility="hidden"/>
- <col disabled="true" ref="unprepstat" type="combo">
- <choices>
- <item>
- <label>배치미비</label>
- <value>0</value>
- </item>
- <item>
- <label>미비확인</label>
- <value>1</value>
- </item>
- <item>
- <label>의사확인</label>
- <value>2</value>
- </item>
- <item>
- <label>재미비</label>
- <value>3</value>
- </item>
- <item>
- <label>완료</label>
- <value>4</value>
- </item>
- <item>
- <label>기록삭제</label>
- <value>8</value>
- </item>
- </choices>
- </col>
- <col ref="doctkindflag"/>
- <col ref="orgdoctkindflag" visibility="hidden"/>
- <col ref="unprepdrnm" style="text-align:center; "/>
- <col ref="orgunprepdrnm" visibility="hidden"/>
- <col ref="unprepdeptnm" style="text-align:left; "/>
- <col ref="detldeptnm" style="text-align:left; "/>
- <col ref="orgdetldeptnm" visibility="hidden"/>
- <col ref="detldeptcd" visibility="hidden"/>
- <col ref="orgdetldeptcd" visibility="hidden"/>
- <col ref="orgunprepdeptnm" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orgorddeptcd" visibility="hidden"/>
- <col ref="unprepdrid" visibility="hidden"/>
- <col ref="orgunprepdrid" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="formnm" style="text-align:left; "/>
- <col ref="oprsrvno" visibility="hidden"/>
- <col ref="unprepitemnm"/>
- <col ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="unprepitemcd" visibility="hidden"/>
- <col ref="medirecalertcnts"/>
- <col editable="false" ref="dralertcnts" type="output"/>
- <col ref="drcnfmdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="srcformcd"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="delusernm"/>
- <col ref="deluserid" visibility="hidden"/>
- <col ref="deldt" format="yyyy-mm-dd hh:nn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currow = grd_unprepreclist.row;
- var curcol = grd_unprepreclist.col;
-
- if(isDataCell()){
- var medirecalertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/medirecalertcnts");
- var dralertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/dralertcnts");
- model.setValue("/root/main/delivefact/medirecalertcnts", medirecalertcnts);
- model.setValue("/root/main/delivefact/dralertcnts" , dralertcnts);
-
- //미비기록관리 check 컬럼을 클릭한 경우, 환자의 기록을 조회
- //이전 환자수진 정보와 동일한 경우, 조회하지 않는다.
- //2008. 1. 7 오지훈
- if(curcol == grd_unprepreclist.colRef("check")){
- var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
- var orddd = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/indd");
- var cretno = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/cretno");
-
- if(pid != sBFPID ||
- (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
- (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
- {
- fReqGetPatRecList(pid, orddd, cretno);
- sBFPID = pid;
- sBFORDDD = orddd;
- sBFCRETNO = cretno;
- }
- grd_patreclist.attribute("visibility")="visible";
- }
- model.refresh();
- }else{
- //그리드 Header를 클릭한 경우,
- if(currow == 0){
- var srchflag = model.getValue("/root/main/cond/srchflag");
- if(sORDERBY == "desc"){
- sORDERBY = "asc";
- }else{
- sORDERBY = "desc";
- }
-
- var orderby = grd_unprepreclist.colAttribute(curcol, "ref") + " " + sORDERBY;
-
- if(srchflag == "dr"){
- model.setValue("/root/main/cond/unprepdrbase/orderby", orderby);
- fReqGetUnPrepRecDrBaseList(model.getValue("/root/main/cond/unprepdrbase/unprepsign"));
-
- }else if(srchflag == "pat"){
- model.setValue("/root/main/cond/unpreppatbase/orderby", orderby);
- fReqGetUnPrepRecList();
-
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|