SPMMO04901_CVR수신확인.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>CVR(Critical Value Report) 확인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <prid>1M</prid>
  12. <fromdd/>
  13. <todd/>
  14. <confyn>N</confyn>
  15. <allcheck/>
  16. </cond>
  17. <cvrconfinfo>
  18. <cvrconflist/>
  19. </cvrconfinfo>
  20. </main>
  21. <send>
  22. <savedata/>
  23. </send>
  24. <init>
  25. </init>
  26. <hidden/>
  27. </root>
  28. </instance>
  29. <script type="javascript">
  30. <![CDATA[
  31. // CVR 리스트를 조회 한다.
  32. function fReqGetConList() {
  33. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  34. model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
  35. submit("TRMMO04907");
  36. }
  37. // CVR 확인 정보를 저장한다.
  38. function fSaveConfInfo() {
  39. model.removeNode("/root/send/savedata");
  40. model.makeNode("/root/send/savedata");
  41. model.copyNode("/root/send/savedata", "/root/main/cvrconfinfo");
  42. submit("TXMMO04906");
  43. fReqGetConList();
  44. }
  45. ]]>
  46. </script>
  47. <submission id="TRMMO04907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/cvrconfinfo"/>
  48. <submission id="TXMMO04906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cvrconfinfo"/>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
  52. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  53. btn_req.dispatch("DOMActivate");
  54. model.refresh();
  55. ]]>
  56. </script>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  62. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  63. </xhtml:head>
  64. <xhtml:body pagewidth="660" pageheight="370" guideline="1,640;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  65. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:640px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  66. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:280px; height:13px; vertical-align:middle; ">CVR(Critical Value Report) 확인</caption>
  67. <caption id="caption4" style="left:351px; top:3px; width:286px; height:15px; color:#0000ff; ">(미확인 된 항목은 체크후 확인 버튼을 클릭하세요.)</caption>
  68. <caption id="caption2" class="search_name" style="left:5px; top:30px; width:95px; height:17px; vertical-align:middle; ">전송일자 :</caption>
  69. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:92px; top:30px; width:85px; height:19px; "/>
  70. <caption id="caption3" style="left:180px; top:30px; width:15px; height:20px; ">~</caption>
  71. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:30px; width:85px; height:19px; "/>
  72. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:280px; top:30px; width:55px; height:19px; ">
  73. <choices>
  74. <item>
  75. <label>1개월</label>
  76. <value>1M</value>
  77. </item>
  78. <item>
  79. <label>3개월</label>
  80. <value>3M</value>
  81. </item>
  82. <item>
  83. <label>6개월</label>
  84. <value>6M</value>
  85. </item>
  86. <item>
  87. <label>9개월</label>
  88. <value>9M</value>
  89. </item>
  90. <item>
  91. <label>1년</label>
  92. <value>1Y</value>
  93. </item>
  94. <item>
  95. <label>2년</label>
  96. <value>2Y</value>
  97. </item>
  98. </choices>
  99. <script type="javascript" ev:event="xforms-value-changed">
  100. <![CDATA[
  101. var today = getCurrentDate();
  102. var idate = new Date();
  103. var prid = model.getValue("/root/main/cond/prid");
  104. if (prid =="3M") {
  105. var threeMDate = idate.getAddDate(-3, "M");
  106. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  107. model.setValue("/root/main/cond/todd", today);
  108. } else if (prid =="6M") {
  109. var sixMDate = idate.getAddDate(-6, "M");
  110. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  111. model.setValue("/root/main/cond/todd", today);
  112. } else if (prid =="9M") {
  113. var nineMDate = idate.getAddDate(-9, "M");
  114. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  115. model.setValue("/root/main/cond/todd", today);
  116. } else if (prid =="1Y") {
  117. var oneYDate = idate.getAddDate(-1, "Y");
  118. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  119. model.setValue("/root/main/cond/todd", today);
  120. } else if (prid =="2Y") {
  121. var twoYDate = idate.getAddDate(-2, "Y");
  122. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  123. model.setValue("/root/main/cond/todd", today);
  124. }
  125. model.refresh();
  126. ]]>
  127. </script>
  128. </select1>
  129. <line id="line3" style="x1:570px; y1:26px; x2:570px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
  130. <button id="btn_req" class="btn1_letter2" style="left:575px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. fReqGetConList();
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="button3" class="btn3_letter6" style="left:5px; top:335px; width:104px; height:22px; ">
  139. <caption>통합기록조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. var curRow = grd_conflist.row;
  143. if (curRow < 1) return;
  144. var pid = model.getValue("/root/main/cvrconfinfo/cvrconflist["+ curRow +"]/pid");
  145. if(pid == ""){
  146. messageBox("통합기록조회를 검색할 환자를", "C002");
  147. return;
  148. }
  149. var wndobj = getOpenWindow("SMMRI00400");
  150. if(wndobj != null){
  151. setParameter("SMMRI00400_param_pid", pid);
  152. wndobj.javascript.fInitalize();
  153. }else{
  154. setParameter("SMMRI00400_param_pid", pid);
  155. open("SMMRI00400", 2, 0, 0);
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button5" class="btn3_letter6" style="left:114px; top:335px; width:104px; height:22px; ">
  161. <caption>통합결과조회</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. var curRow = grd_conflist.row;
  165. if (curRow < 1) return;
  166. var pid = model.getValue("/root/main/cvrconfinfo/cvrconflist["+ curRow +"]/pid");
  167. model.makeValue("/root/source/pid", pid);
  168. if(pid == ""){
  169. messageBox("통합결과조회를 검색할 환자를", "C002");
  170. return;
  171. }
  172. curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
  173. if(curExamRsltObj != null){
  174. curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
  175. curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
  176. } else {
  177. open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
  178. }
  179. ]]>
  180. </script>
  181. </button>
  182. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:640px; y2:66px; "/>
  183. <datagrid id="grd_conflist" nodeset="/root/main/cvrconfinfo/cvrconflist" autoresize="true" caption="등록일자^일련번호^^환자번호^환자명^CVR 내용^확인^등록시간" colsep="^" colwidth="0, 0, 20, 60, 70, 317, 35, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:70px; width:640px; height:260px; ">
  184. <col ref="colldd" visibility="hidden"/>
  185. <col ref="seq" visibility="hidden"/>
  186. <col checkvalue="Y,N" ref="status" type="checkbox"/>
  187. <col ref="pid" type="input" style="text-align:center; "/>
  188. <col ref="hngnm" style="text-align:center; "/>
  189. <col ref="cmtcnts"/>
  190. <col ref="confyn" style="text-align:center; "/>
  191. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  192. </datagrid>
  193. <caption id="caption5" class="search_name" style="left:380px; top:30px; width:95px; height:17px; vertical-align:middle; ">확인여부 :</caption>
  194. <select1 id="cmb_orddrid" ref="/root/main/cond/confyn" class="combo_default" appearance="minimal" itemcount="30" style="left:467px; top:30px; width:68px; height:19px; ">
  195. <choices>
  196. <item>
  197. <label>전체</label>
  198. <value>A</value>
  199. </item>
  200. <item>
  201. <label>미확인</label>
  202. <value>N</value>
  203. </item>
  204. <item>
  205. <label>확인</label>
  206. <value>Y</value>
  207. </item>
  208. </choices>
  209. </select1>
  210. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/allcheck" style="left:1px; top:72px; width:20px; height:23px; ">
  211. <script type="javascript" ev:event="xforms-value-changed">
  212. <![CDATA[
  213. var allcheck = model.getValue("/root/main/cond/allcheck");
  214. if(allcheck == "Y"){
  215. for(var i = 1; i <= grd_conflist.rows-1; i++){
  216. var status = model.getValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status");
  217. if(status != "Y"){
  218. model.setValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status", "Y");
  219. }
  220. }
  221. } else {
  222. for(var i = 1; i <= grd_conflist.rows-1; i++){
  223. var status = model.getValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status");
  224. if(status != "N"){
  225. model.setValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status", "N");
  226. }
  227. }
  228. }
  229. grd_conflist.refresh();
  230. ]]>
  231. </script>
  232. </bool>
  233. <button id="btn_conf" class="btn4_letter2" style="left:523px; top:335px; width:56px; height:22px; ">
  234. <caption>확인</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. fSaveConfInfo();//확인 정보를 저장한다.
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="btn_close" class="btn4_letter2" style="left:584px; top:335px; width:56px; height:22px; ">
  242. <caption>닫기</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. window.close();
  246. ]]>
  247. </script>
  248. </button>
  249. </xhtml:body>
  250. </xhtml:html>