123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <?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>
- <cond>
- <fromdd/>
- <todd/>
- <srchflag>A</srchflag>
- <pid/>
- <srchkind>2</srchkind>
- <dschflag>A</dschflag>
- </cond>
- <trsmlistinfo>
- <trsmlist>
- <boolflag/>
- <eragstat/>
- <eragindt/>
- <eragintm/>
- <eragidno/>
- <patnm/>
- <grdrage/>
- <eragcmmt/>
- <eragupdt/>
- <eraguptm/>
- <eragoudd/>
- <cretno/>
- <indd/>
- <ordtype/>
- <ptmistat/>
- <ptmiotdt/>
- <ptmidcdt/>
- <outrmcd/>
- <outrmcdnm/>
- </trsmlist>
- </trsmlistinfo>
- </main>
- <send/>
- <hidden>
- <trsmitem>
- <trsmitemlist>
- <cdid>Y</cdid>
- <cdnm>전송완료</cdnm>
- </trsmitemlist>
- <trsmitemlist>
- <cdid>E</cdid>
- <cdnm>전송에러</cdnm>
- </trsmitemlist>
- <trsmitemlist>
- <cdid>N</cdid>
- <cdnm>전송대기</cdnm>
- </trsmitemlist>
- <trsmitemlist>
- <cdid>F</cdid>
- <cdnm>전송대기</cdnm>
- </trsmitemlist>
- </trsmitem>
- </hidden>
- </root>
- </instance>
- <submission id="TRMNE04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trsmlist"/>
- <submission id="TXMNE04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
- <submission id="TXMNE04102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
- <submission id="TXMNE04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- var sUserId = getUserInfo("userid");
- if (fContainsHardCD("486", sUserId)) { // Nedis 전송가능 사용자 버튼 활성화 2015.04.23 엄영만
- btn_send.disabled = false;
- } else {
- btn_send.disabled = true;
- }
-
- datagrid3.fixedcellcheckbox(0,1) = true;
- model.removeNodeset("/root/main/trsmlistinfo");
- var sTodt = getCurrentDate();
- var sFrdt = getDateCalc(sTodt, 7,"-");
- //var sFrdt = getDateCalc(sTodt, 1,"-");
- model.setValue("/root/main/cond/fromdd", sFrdt);
- model.setValue("/root/main/cond/todd" , sTodt);
- button2.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1174;1,1224;1,1235;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급진료정보 미전송내역</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:745px; ">
- <group id="group6" style="left:0px; top:11px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption15" class="search_name" style="left:5px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; "/>
- <select1 id="combo3" ref="/root/main/cond/srchkind" class="combo_search" appearance="minimal" style="left:32px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>퇴원일</label>
- <value>1</value>
- </item>
- <item>
- <label>내원일</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:124px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption16" style="left:221px; top:12px; width:15px; height:13px; ">~</caption>
- <input id="input2" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:235px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" style="left:422px; top:8px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- setInputNodeCurText(); // 현재 인풋값 노드 반영
- button2.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" style="left:848px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid3.rebuildStyle();
- model.removenodeSet("/root/send");
- model.removeNodeset("/root/main/trsmlistinfo");
- model.makeValue("/root/send/fromdd" , model.getValue("/root/main/cond/fromdd"));
- model.makeValue("/root/send/todd" , model.getValue("/root/main/cond/todd"));
- model.makeValue("/root/send/srchflag" , model.getValue("/root/main/cond/srchflag"));
- model.makeValue("/root/send/srchkind" , model.getValue("/root/main/cond/srchkind"));
- model.makeValue("/root/send/pid" , model.getValue("/root/main/cond/pid"));
- model.makeValue("/root/send/dschflag" , model.getValue("/root/main/cond/dschflag"));
- submit("TRMNE04101");
- for(var i = 1 ; i <= datagrid3.rows; i++ ){
- if( datagrid3.valueMatrix(i, 2) == "E"){
- datagrid3.cellStyle("color", i, 2 ) = "#ff0000";
- }else if( datagrid3.valueMatrix(i, 2) == "T"){
- datagrid3.cellStyle("color", i, 2 ) = "#0000ff";
- }
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn1_letter2" style="left:1049px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getNodesetCount("/root/main/trsmlistinfo/trsmlist") < 1 ){
- messageBox("출력할 데이터가 존재하지 않습니다.", "E");
- return;
- }
- model.copyNode("/root/send", "/root/main");
- exeReportPreview("RPMNE04100","XMLSTR","");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn1_letter4" style="left:1108px; top:7px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = "";
- if(radio2.value == "A"){
- fileName = window.fileDialog("save", ",", false, "응급자료전송(전체 리스트)_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }else if (radio2.value == "T"){
- fileName = window.fileDialog("save", ",", false, "응급자료전송(전송완료 리스트)_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }else if (radio2.value == "E"){
- fileName = window.fileDialog("save", ",", false, "응급자료전송(전송실패 리스트)_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }else if (radio2.value == "Y"){
- fileName = window.fileDialog("save", ",", false, "응급자료전송(전송대기 리스트)_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }
-
- if (fileName != "") {
- datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:841px; y1:7px; x2:841px; y2:29px; "/>
- <button id="button6" class="btn1_letter4" style="left:907px; top:7px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
- <caption>전송준비</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datagrid3.findRow("Y", 0, 1 ) < 0 ){
- messageBox("선택한 목록이 존재하지 않습니다.", "I");
- return;
- }
-
- // for(var i = 1 ; i <= datagrid3.rows; i++ ){
- // if (model.getValue("/root/main/trsmlistinfo/trsmlist[" + i + "]/boolflag") == "Y") {
- //
- // eragindt = model.getValue("/root/main/trsmlistinfo/trsmlist[" + i + "]/eragindt");
- // eroutdt = model.getValue("/root/main/trsmlistinfo/trsmlist[" + i + "]/eroutdt");
- // eragoudd = model.getValue("/root/main/trsmlistinfo/trsmlist[" + i + "]/eragoudd");
- //
- // }
- // }
-
- model.removenodeSet("/root/send");
- model.makeValue("/root/send/sfrdt", model.getValue("/root/main/cond/fromdd") );
- model.makeValue("/root/send/stodt", model.getValue("/root/main/cond/todd") );
- model.makeValue("/root/send/retrsmlist" ,datagrid3.getupdatedataAll("i") );
- alert(instance1.selectNodesXml("/root/send/retrsmlist"));
-
- submit("TXMNE04102");
- //alert("전송준비 작업이 완료되었습니다.");
- ]]>
- </script>
- </button>
- <button id="btn_send" class="btn1_letter2" disabled="true" style="left:990px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 서비스로 호출 시 해당 주석 삭제 TXMNE04105 호출
- if (datagrid3.findRow("Y", 0, 1 ) < 0 ){
- messageBox("선택한 목록이 존재하지 않습니다.", "I");
- return;
- }
- model.removenodeSet("/root/send");
- model.makeValue("/root/send/sfrdt", model.getValue("/root/main/cond/fromdd") );
- model.makeValue("/root/send/stodt", model.getValue("/root/main/cond/todd") );
- model.makeValue("/root/send/retrsmlist" ,datagrid3.getupdatedataAll("i") );
- */
- if ("6" == messageBox("전송 하시겠습니까?", "Q")) {
- submit("TXMNE04103");
- alert("전송이 완료되었습니다.");
- }
- ]]>
- </script>
- </button>
- <caption id="caption17" class="search_name" style="left:499px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색조건 :</caption>
- <caption id="caption20" class="search_name" style="left:335px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">환자번호 :</caption>
- <select1 id="radio2" ref="/root/main/cond/srchflag" class="radio_search" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:586px; top:9px; width:250px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>전송실패</label>
- <value>E</value>
- </item>
- <item>
- <label>전송대기</label>
- <value>Y</value>
- </item>
- <item>
- <label>전송완료</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/main/cond/dschflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:585px; top:10px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>퇴실</label>
- <value>E</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line6" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="datagrid3" nodeset="/root/main/trsmlistinfo/trsmlist" caption="^전송상태^NEDIS상태^내원일자^내원시간^등록번호^환자명^S/A^전송상세내역^수정일자^퇴실일자^퇴원일자^응급진료결과^생성번호^입실일자" colsep="^" colwidth="46, 80, 100, 90, 60, 100, 100, 60, 275, 85, 85, 85, 120, 0, 0, 0" dataheight="25" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:670px; ">
- <col checkvalue="Y,N" ref="boolflag" type="checkbox" style="text-align:center; "/>
- <col disabled="true" ref="eragstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/trsmitem/trsmitemlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ptmistat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>전송오류</label>
- <value>E</value>
- </item>
- <item>
- <label>삭제</label>
- <value>K</value>
- </item>
- <item>
- <label>실시간전송</label>
- <value>H</value>
- </item>
- <item>
- <label>퇴실전송</label>
- <value>G</value>
- </item>
- <item>
- <label>재검토필요</label>
- <value>B</value>
- </item>
- <item>
- <label>재검토필요</label>
- <value>Y</value>
- </item>
- <item>
- <label>퇴원전송</label>
- <value>S</value>
- </item>
- <item>
- <label>재검토필요</label>
- <value>N</value>
- </item>
- <item>
- <label>재검토필요</label>
- <value>Z</value>
- </item>
- <item>
- <label>기타</label>
- <value>AA</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="eragindt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eragintm" format="hh:nn" style="text-align:center; "/>
- <col ref="eragidno" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="grdrage" style="text-align:center; "/>
- <col ref="eragcmmt"/>
- <col ref="eragupdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eroutdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eragoudd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="outrmcdnm"/>
- <col ref="cretno"/>
- <col ref="indd"/>
- <col ref="ordtype"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(datagrid3.row < 1 ){
- return;
- }
- var sOrdtype = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/ordtype" );
- var sPid = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/eragidno" );
- var sIndd = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/indd" );
- var sCretno = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/cretno" );
- var sInstcd = getUserInfo("posinstcd");
- var sSrcdd = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/eragoudd" );
- if(sSrcdd == "99991231"){
- sSrcdd = getCurrentDate();
- }
-
- var param = sOrdtype + "▦"
- + sPid + "▦"
- + sIndd + "▦"
- + sCretno + "▦"
- + sInstcd + "▦"
- + sSrcdd + "▦" ;
-
- setParameter("condparam", param);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
- sPatInfo = model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/eragidno")+"▦"
- + model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/indd")+"▦"
- + model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/cretno")+"▦"
- + model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/eragindt")
- + model.getValue("/root/main/trsmlistinfo/trsmlist["+ datagrid3.row +"]/eragintm") +"▩";
- setParameter("SMMNE001_Param",sPatInfo);
- open("SMMNE00100");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid3.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption18" class="tit_2" style="left:5px; top:55px; width:155px; height:18px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">
- <![CDATA[응급진료정보 전송내역]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(button5.attribute("visibility") == "hidden" ){
- button5.attribute("visibility") = "visible";
- }else{
- button5.attribute("visibility") = "hidden";
- }
- ]]>
- </script>
- </caption>
- <button id="button10" class="btn2_letter5" style="left:1119px; top:49px; width:75px; height:19px; background-image:../../../com/commonweb/images/btn4_letter9.gif; ">
- <caption>WEB LINK</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openHtml("http://portal.nemc.or.kr/", "", "");
- ]]>
- </script>
- </button>
- <caption id="caption19" class="tit_2" style="left:892px; top:53px; width:222px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">
- <![CDATA[국가 응급환자 진료정보망(NEDIS)]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(button5.attribute("visibility") == "hidden" ){
- button5.attribute("visibility") = "visible";
- }else{
- button5.attribute("visibility") = "hidden";
- }
- ]]>
- </script>
- </caption>
- <button id="button5" class="btn4_letter9" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter9.gif" style="left:165px; top:48px; width:140px; height:22px; background-image:../../../com/commonweb/images/btn4_letter9.gif; ">
- <caption>검색내역 재전송준비</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenodeSet("/root/send");
- model.makeValue("/root/send/sfrdt", model.getValue("/root/main/cond/fromdd") );
- model.makeValue("/root/send/stodt", model.getValue("/root/main/cond/todd") );
- model.makeValue("/root/send/sptno", "9999999999");
-
- submit("TXMNE04101");
- //alert("재전송준비 완료");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" style="left:1165px; top:760px; width:30px; height:20px; text-align:right; ">[표]</caption>
- </xhtml:body>
- </xhtml:html>
|