SPMRC03140_음성기록파일관리.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPMRC03200_음성기록파일관리.xrw
  4. * 작 성 자 : 조중래
  5. * 작 성 일 : 2013.01.23
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>음성기록 파일관리</xhtml:title>
  11. <model id="model1">
  12. <![CDATA[/>]]>
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <send>
  16. <pid/>
  17. <orddd/>
  18. <cretno/>
  19. <ocrtag/>
  20. <vococrtag/>
  21. </send>
  22. <main>
  23. <ordhistinfo>
  24. <ordhistlist/>
  25. </ordhistinfo>
  26. <vocemrinfo>
  27. <vocemrlist/>
  28. </vocemrinfo>
  29. </main>
  30. <init/>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. var ocrtag = opener.javascript.getParameter("SPMRC03200_param_ocrtag");
  36. model.setValue("/root/send/ocrtag", ocrtag);
  37. model.refresh();
  38. // 화면 아이템 컨트롤
  39. // ocrtag를 전달하는 경우에는 환자별 조회 불가능하도록 hidden 처리
  40. if (ocrtag != "") {
  41. // 확장
  42. // datagrid2.attribute("left") = "5";
  43. // datagrid2.attribute("width") = "805";
  44. // line1.attribute("visibility") = "hidden";
  45. input2.disabled = true;
  46. input1.disabled = true;
  47. input4.disabled = true;
  48. // 자동조회 실시
  49. fSearch();
  50. } else {
  51. // 축소
  52. // datagrid2.attribute("left") = "358";
  53. // datagrid2.attribute("width") = "452";
  54. // line1.attribute("visibility") = "visible";
  55. input2.disabled = false;
  56. input1.disabled = false;
  57. input4.disabled = false;
  58. }
  59. // FTP서비스 초기화
  60. LTPInit("192.168.100.194", "2500", "user");
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fSearch() {
  67. if (model.getValue("/root/send/ocrtag") == "" && model.getValue("/root/send/pid") == "") {
  68. messageBox("OCRTAG 또는 환자번호는 필수입니다.", "C000");
  69. return;
  70. }
  71. // 수진이력 조회
  72. submit("TRMRC03200");
  73. // 검색결과가 1건인 경우 자동으로 파일정보 취득
  74. if (datagrid1.rows - 1 == 1) {
  75. model.setValue("/root/send/vococrtag", model.getValue("/root/main/ordhistinfo/ordhistlist[1]/ocrtag"));
  76. submit("TRMRC03201");
  77. }
  78. }
  79. ]]>
  80. </script>
  81. <submission id="TRMRC03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordhistinfo/ordhistlist"/>
  82. <submission id="TRMRC03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vocemrinfo/vocemrlist"/>
  83. <submission id="TRMRC03202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  92. <script type="javascript" src="../../../emr/imgemrweb/js/SSMRC03130_LC.js"/>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="830" pageheight="280" style="margin-left:8; margin-top:8; ">
  95. <group id="group3" scroll="auto" style="left:0px; top:0px; width:815px; height:250px; ">
  96. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:22px; width:705px; height:32px; "/>
  97. <caption id="caption5" class="tit_2" style="left:0px; top:5px; width:139px; height:14px; ">음성기록 파일조회</caption>
  98. <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; ">
  99. <script type="javascript" ev:event="onkeypress">
  100. <![CDATA[
  101. if(event.keyCode == "13") {
  102. setInputNodeCurText();
  103. fSearch();
  104. }
  105. ]]>
  106. </script>
  107. </input>
  108. <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; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fSearch();
  113. ]]>
  114. </script>
  115. </button>
  116. <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; ">
  117. <script type="javascript" ev:event="onkeypress">
  118. <![CDATA[
  119. if(event.keyCode == "13") {
  120. setInputNodeCurText();
  121. fSearch();
  122. }
  123. ]]>
  124. </script>
  125. </input>
  126. <caption id="caption8" class="search_name" style="left:241px; top:30px; width:80px; height:17px; ">환자번호</caption>
  127. <caption id="caption10" class="search_name" style="left:426px; top:30px; width:85px; height:17px; ">진료일자</caption>
  128. <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; ">
  129. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  130. <choices>
  131. <item>
  132. <label>외래</label>
  133. <value>O</value>
  134. </item>
  135. <item>
  136. <label>입원</label>
  137. <value>I</value>
  138. </item>
  139. <item>
  140. <label>응급</label>
  141. <value>E</value>
  142. </item>
  143. <item>
  144. <label>DSC/CHEMO</label>
  145. <value>D</value>
  146. </item>
  147. </choices>
  148. </col>
  149. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  150. <col ref="orddeptnm" style="text-align:left; padding-left:5; "/>
  151. <col ref="orddrnm" style="text-align:center; "/>
  152. <col ref="formnm"/>
  153. <col ref="formcd"/>
  154. <col ref="ocrtag"/>
  155. <col ref="pid" visibility="hidden"/>
  156. <col ref="cretno" visibility="hidden"/>
  157. <script type="javascript" ev:event="ondblclick">
  158. <![CDATA[
  159. var row = datagrid1.row;
  160. if (row < 1 || model.getValue("/root/main/ordhistinfo/ordhistlist[" + row + "]/orddd") == "") {
  161. messageBox("선택된 열이 없습니다.", "C000");
  162. return;
  163. } else {
  164. model.setValue("/root/send/vococrtag", model.getValue("/root/main/ordhistinfo/ordhistlist[" + row + "]/ocrtag"));
  165. // 음성기록 조회
  166. submit("TRMRC03201");
  167. }
  168. ]]>
  169. </script>
  170. </datagrid>
  171. <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; ">
  172. <col ref="seq" style="text-align:center; "/>
  173. <col ref="filenm"/>
  174. <col ref="filepath"/>
  175. </datagrid>
  176. <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; ">
  177. <caption>파일저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var curRow = datagrid2.row;
  181. var remoteFileFullPath = model.getValue("/root/main/vocemrinfo/vocemrlist["+curRow+"]/filepath");
  182. if (remoteFileFullPath != "") {
  183. var filenm = model.getValue("/root/main/vocemrinfo/vocemrlist["+curRow+"]/filenm");
  184. var localFileFullPath = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  185. // LTP모듈로 음성파일 다운로드
  186. if (LTPFileGet(remoteFileFullPath, localFileFullPath)) {
  187. messageBox("정상적으로 저장되었습니다.", "I000");
  188. }
  189. // ftp연결해제
  190. LTPClose();
  191. // if (localfile != "") {
  192. // // 음성파일 다운로드
  193. // download("TRMRC03202", "&filepath=" + filepath, localfile);
  194. // }
  195. } else {
  196. messageBox("파일이 없습니다.", "C000");
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. <line id="line2" class="line_1" style="x1:5px; y1:75px; x2:537px; y2:75px; "/>
  202. <caption id="caption1" class="search_name" style="left:20px; top:30px; width:80px; height:17px; ">OCRTAG</caption>
  203. <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; ">
  204. <script type="javascript" ev:event="onkeypress">
  205. <![CDATA[
  206. if(event.keyCode == "13") {
  207. setInputNodeCurText();
  208. fSearch();
  209. }
  210. ]]>
  211. </script>
  212. </input>
  213. <caption id="caption2" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">동의서 리스트</caption>
  214. <caption id="caption3" class="tit_2" style="left:550px; top:60px; width:113px; height:13px; ">음성파일 리스트</caption>
  215. <line id="line1" class="line_1" style="x1:540px; y1:75px; x2:810px; y2:75px; "/>
  216. </group>
  217. <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; ">
  218. <caption>닫기</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. LTPClose();
  222. window.close();
  223. ]]>
  224. </script>
  225. </button>
  226. <object id="f_ltp" clsid="{b8637779-ef35-4290-9c7a-f1842f40c2fe}" style="left:795px; top:5px; width:15px; height:10px; "/>
  227. </xhtml:body>
  228. </xhtml:html>