123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPMRC03200_음성기록파일관리.xrw
- * 작 성 자 : 조중래
- * 작 성 일 : 2013.01.23
- -->
- <?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">
- <![CDATA[/>]]>
- <instance id="instance1">
- <root xmlns="">
- <send>
- <pid/>
- <orddd/>
- <cretno/>
- <ocrtag/>
- <vococrtag/>
- </send>
- <main>
- <ordhistinfo>
- <ordhistlist/>
- </ordhistinfo>
- <vocemrinfo>
- <vocemrlist/>
- </vocemrinfo>
- </main>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var ocrtag = opener.javascript.getParameter("SPMRC03200_param_ocrtag");
-
- model.setValue("/root/send/ocrtag", ocrtag);
- model.refresh();
-
- // 화면 아이템 컨트롤
- // ocrtag를 전달하는 경우에는 환자별 조회 불가능하도록 hidden 처리
- if (ocrtag != "") {
-
- // 확장
- // datagrid2.attribute("left") = "5";
- // datagrid2.attribute("width") = "805";
- // line1.attribute("visibility") = "hidden";
-
- input2.disabled = true;
- input1.disabled = true;
- input4.disabled = true;
-
- // 자동조회 실시
- fSearch();
-
- } else {
-
- // 축소
- // datagrid2.attribute("left") = "358";
- // datagrid2.attribute("width") = "452";
- // line1.attribute("visibility") = "visible";
-
- input2.disabled = false;
- input1.disabled = false;
- input4.disabled = false;
- }
-
- // FTP서비스 초기화
- LTPInit("192.168.100.194", "2500", "user");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
-
- if (model.getValue("/root/send/ocrtag") == "" && model.getValue("/root/send/pid") == "") {
- messageBox("OCRTAG 또는 환자번호는 필수입니다.", "C000");
- return;
- }
-
- // 수진이력 조회
- submit("TRMRC03200");
-
- // 검색결과가 1건인 경우 자동으로 파일정보 취득
- if (datagrid1.rows - 1 == 1) {
-
- model.setValue("/root/send/vococrtag", model.getValue("/root/main/ordhistinfo/ordhistlist[1]/ocrtag"));
-
- submit("TRMRC03201");
- }
- }
-
- ]]>
- </script>
- <submission id="TRMRC03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordhistinfo/ordhistlist"/>
- <submission id="TRMRC03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vocemrinfo/vocemrlist"/>
- <submission id="TRMRC03202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../emr/imgemrweb/js/SSMRC03130_LC.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="830" pageheight="280" style="margin-left:8; margin-top:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:815px; height:250px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:22px; width:705px; height:32px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:5px; width:139px; height:14px; ">음성기록 파일조회</caption>
- <input id="input1" ref="/root/send/pid" disabled="true" navindex="1" maxlength="7" style="left:323px; top:29px; width:83px; height:19px; padding-left:5; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fSearch();
- }
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" navindex="3" style="left:640px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/send/orddd" disabled="true" navindex="2" inputtype="date" style="left:511px; top:29px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:241px; top:30px; width:80px; height:17px; ">환자번호</caption>
- <caption id="caption10" class="search_name" style="left:426px; top:30px; width:85px; height:17px; ">진료일자</caption>
- <datagrid id="datagrid1" nodeset="/root/main/ordhistinfo/ordhistlist" caption="구분^진료일자^진료과^진료의사^서식명칭^formcd^ocrtag^환자번호^생성일자" colsep="^" colwidth="52, 75, 135, 69, 223, 100, 100, 65, 54" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:532px; height:165px; ">
- <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>DSC/CHEMO</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="formnm"/>
- <col ref="formcd"/>
- <col ref="ocrtag"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = datagrid1.row;
-
- if (row < 1 || model.getValue("/root/main/ordhistinfo/ordhistlist[" + row + "]/orddd") == "") {
- messageBox("선택된 열이 없습니다.", "C000");
- return;
- } else {
-
- model.setValue("/root/send/vococrtag", model.getValue("/root/main/ordhistinfo/ordhistlist[" + row + "]/ocrtag"));
-
- // 음성기록 조회
- submit("TRMRC03201");
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/vocemrinfo/vocemrlist" visibility="visible" caption="순번^파일명^파일경로" colsep="^" colwidth="37, 227, 522" mergecellsfixedrows="bycolrec" rowsep="|" style="left:540px; top:80px; width:270px; height:165px; ">
- <col ref="seq" style="text-align:center; "/>
- <col ref="filenm"/>
- <col ref="filepath"/>
- </datagrid>
- <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:744px; top:35px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>파일저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var curRow = datagrid2.row;
- var remoteFileFullPath = model.getValue("/root/main/vocemrinfo/vocemrlist["+curRow+"]/filepath");
-
- if (remoteFileFullPath != "") {
-
- var filenm = model.getValue("/root/main/vocemrinfo/vocemrlist["+curRow+"]/filenm");
- var localFileFullPath = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
-
- // LTP모듈로 음성파일 다운로드
- if (LTPFileGet(remoteFileFullPath, localFileFullPath)) {
- messageBox("정상적으로 저장되었습니다.", "I000");
- }
-
- // ftp연결해제
- LTPClose();
-
- // if (localfile != "") {
- // // 음성파일 다운로드
- // download("TRMRC03202", "&filepath=" + filepath, localfile);
- // }
- } else {
- messageBox("파일이 없습니다.", "C000");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:5px; y1:75px; x2:537px; y2:75px; "/>
- <caption id="caption1" class="search_name" style="left:20px; top:30px; width:80px; height:17px; ">OCRTAG</caption>
- <input id="input2" ref="/root/send/ocrtag" disabled="true" navindex="1" maxlength="13" style="left:110px; top:29px; width:110px; height:19px; padding-left:5; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">동의서 리스트</caption>
- <caption id="caption3" class="tit_2" style="left:550px; top:60px; width:113px; height:13px; ">음성파일 리스트</caption>
- <line id="line1" class="line_1" style="x1:540px; y1:75px; x2:810px; y2:75px; "/>
- </group>
- <button id="button3" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:753px; top:254px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- LTPClose();
- window.close();
- ]]>
- </script>
- </button>
- <object id="f_ltp" clsid="{b8637779-ef35-4290-9c7a-f1842f40c2fe}" style="left:795px; top:5px; width:15px; height:10px; "/>
- </xhtml:body>
- </xhtml:html>
|