SMLLP02200_유전자검사동의서조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP02200_유전자검사동의서조회.xrw
  4. * 설 명 : 유전자검사동의서조회
  5. * 설 계 자 : (주)에이씨케이 - 이재민
  6. * 작 성 자 : (주)에이씨케이 - 이재민
  7. * 작 성 일 : 2010.01.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>유전자검사동의서조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getSepogetlist>
  20. <hngnm/>
  21. <tclscd/>
  22. <tclsnm/>
  23. <prcpdd/>
  24. <fstprntdt/>
  25. <spcacptdt/>
  26. <spcproccd/>
  27. <spcpossnterm/>
  28. <usernm/>
  29. <inorddeptnm/>
  30. <roomcd/>
  31. <sday/>
  32. <pid/>
  33. <ocrtag/>
  34. <cnfmyn/>
  35. <delivecnfmid/>
  36. <delivecnfmdt/>
  37. </getSepogetlist>
  38. </main>
  39. <send>
  40. <code/>
  41. <fromdd/>
  42. <todd/>
  43. <select/>
  44. <pid/>
  45. <textflag/>
  46. <prntflag/>
  47. <cnfmyn/>
  48. </send>
  49. <init>
  50. </init>
  51. <hidden>
  52. <ref>
  53. <code/>
  54. <fromdd/>
  55. <todd/>
  56. <select/>
  57. <pid/>
  58. <textflag>1</textflag>
  59. <prntflag>-</prntflag>
  60. <cnfmyn>A</cnfmyn>
  61. </ref>
  62. </hidden>
  63. </root>
  64. </instance>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fSetInit();
  73. ]]>
  74. </script>
  75. <submission id="TRLLP02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getlist"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. // 초기화
  80. function fSetInit(){
  81. var toDay = getCurrentDate();
  82. model.removeNodeset("/root/main/getSepogetlist");
  83. model.setValue("/root/hidden/ref/fromdd",toDay);
  84. model.setValue("/root/hidden/ref/todd",toDay);
  85. model.setValue("/root/hidden/ref/select","00");
  86. model.setValue("/root/hidden/ref/pid","");
  87. model.setValue("/root/hidden/ref/code","S");
  88. model.refresh();
  89. }
  90. // 엑셀 저장
  91. function fExeExcel(grd_list){
  92. var fileName = window.fileDialog("save", ",", false, "유전자검사동의서_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  93. if (fileName != ""){
  94. grd_list.saveExcel(fileName);
  95. }
  96. }
  97. // 조회일자 3개월 이전으로 못가게 막기
  98. function fSetFromdd() {
  99. var fromdd = model.getValue("/root/hidden/ref/fromdd");
  100. var todd = model.getValue("/root/hidden/ref/todd");
  101. var mDate = todd.toDate("YYYYMMDD").getAddDate(-3, "M");
  102. if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
  103. messageBox("3개월 이내의 기간만 검색","I006");
  104. return false;
  105. }else if(todd < fromdd) {
  106. messageBox("기간설정이 잘못", "E005");
  107. return false;
  108. }else {
  109. return true;
  110. }
  111. }
  112. // 조회
  113. function fGetSepogetlist(){ //조회일자 check
  114. model.resetInstanceNode("/root/main/getSepogetlist");
  115. model.refresh();
  116. if(!fSetFromdd()){
  117. return;
  118. }
  119. model.removeNodeset("/root/main/getSepogetlist");
  120. model.copyNode("root/send" , "root/hidden/ref");
  121. submit("TRLLP02102");
  122. for(i=1; i< grd_list.rows; i++){ //즉시폐기시 색변환
  123. if(model.getValue("/root/main/getSepogetlist["+i+"]/spcproccd") == "즉시폐기") {
  124. grd_list.cellStyle("background-color", i, grd_list.colRef("spcacptdt"), i, grd_list.colRef("spcacptdt")) = "#f7a08b";
  125. }
  126. if(model.getValue("/root/main/getSepogetlist["+i+"]/spcpossnterm") != "검사종료시") {
  127. if(model.getValue("/root/main/getSepogetlist["+i+"]/spcpossnterm") != "5년") {
  128. grd_list.cellStyle("background-color", i, grd_list.colRef("spcproccd"), i, grd_list.colRef("spcproccd")) = "#93DAFF";
  129. }
  130. }
  131. }
  132. }
  133. function fPopup(){
  134. model.resetInstanceNode("/root/send/iemr");
  135. var row = grd_list.row;
  136. if(model.getValue("/root/main/getSepogetlist["+row+"]/sday") == "스캔") {
  137. model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@cretno"));
  138. model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@formcd"));
  139. model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@pid"));
  140. model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@orddeptcd"));
  141. model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@orddd"));
  142. model.makeValue("/root/send/iemr/ioflag", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@prcpgenrflag"));
  143. model.makeValue("/root/send/iemr/cmc_spcid", "");
  144. model.makeValue("/root/send/iemr/cmc_orddate", "");
  145. model.makeValue("/root/send/iemr/cmc_orderseqno", "");
  146. if(window.children.item("imgemrviewer") == null) {
  147. open("SSMRC03110", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp");
  148. //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  149. }else{
  150. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  151. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  152. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  153. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  154. window.children.item("imgemrviewer").modelesstopmost = true;
  155. window.children.item("imgemrviewer").modelesstopmost = false;
  156. }
  157. }
  158. }
  159. //키이벤트 엔터키 입력시
  160. function fKeyEvent(){
  161. if(event.keyCode == "13"){
  162. if(event.target=="ipt_pid"){
  163. model.setValue("/root/hidden/ref/pid", (ipt_pid.currentText).getTrim().substr(0,13));
  164. //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
  165. fGetSepogetlist();
  166. }
  167. }
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  173. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  174. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  175. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:82px; height:14px; ">환자명단</caption>
  176. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  177. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  178. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:8px; width:56px; height:22px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fGetSepogetlist();
  183. ]]>
  184. </script>
  185. </button>
  186. <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  187. <caption id="caption8" style="left:280px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  188. <input id="ipt_usdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:184px; top:8px; width:90px; height:19px; "/>
  189. <input id="ipt_uedd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:296px; top:8px; width:90px; height:19px; "/>
  190. <caption id="caption13" class="search_name" style="left:887px; top:9px; width:19px; height:17px; "/>
  191. <select1 id="cmb_ref" ref="/root/hidden/ref/textflag" class="combo_search" appearance="minimal" style="left:908px; top:8px; width:90px; height:19px; ">
  192. <choices>
  193. <item>
  194. <label>등록번호</label>
  195. <value>1</value>
  196. </item>
  197. <item>
  198. <label>동의서번호</label>
  199. <value>2</value>
  200. </item>
  201. </choices>
  202. </select1>
  203. <input id="ipt_pid" ref="/root/hidden/ref/pid" inputtype="button" style="left:1000px; top:8px; width:100px; height:19px; ">
  204. <script type="javascript" ev:event="onkeypress">
  205. <![CDATA[
  206. fKeyEvent();
  207. ]]>
  208. </script>
  209. </input>
  210. <caption id="caption14" class="search_name" style="left:395px; top:10px; width:62px; height:17px; ">구분 :</caption>
  211. <select1 id="select" ref="/root/hidden/ref/select" appearance="minimal" style="left:459px; top:9px; width:73px; height:19px; font-weight:normal; ">
  212. <choices>
  213. <item>
  214. <label>- 전체 -</label>
  215. <value>00</value>
  216. </item>
  217. <item>
  218. <label>외래</label>
  219. <value>O</value>
  220. </item>
  221. <item>
  222. <label>입원</label>
  223. <value>I</value>
  224. </item>
  225. <item>
  226. <label>응급</label>
  227. <value>E</value>
  228. </item>
  229. </choices>
  230. </select1>
  231. <select1 id="radio2" ref="/root/hidden/ref/cnfmyn" appearance="full" cols="3" overflow="visible" style="left:542px; top:11px; width:148px; height:15px; border-style:none; ">
  232. <choices>
  233. <item>
  234. <label>미확인</label>
  235. <value>N</value>
  236. </item>
  237. <item>
  238. <label>확인</label>
  239. <value>Y</value>
  240. </item>
  241. <item>
  242. <label>전체</label>
  243. <value>A</value>
  244. </item>
  245. </choices>
  246. </select1>
  247. <caption id="cap_prntflag" class="search_name" style="left:691px; top:9px; width:109px; height:17px; ">동의서상태 :</caption>
  248. <select1 id="cmb_prnt" ref="/root/hidden/ref/prntflag" class="combo_search" appearance="minimal" style="left:795px; top:8px; width:80px; height:19px; text-align:center; ">
  249. <choices>
  250. <item>
  251. <label>- 전체 -</label>
  252. <value>-</value>
  253. </item>
  254. <item>
  255. <label>출력</label>
  256. <value>1</value>
  257. </item>
  258. <item>
  259. <label>반납</label>
  260. <value>2</value>
  261. </item>
  262. <item>
  263. <label>반납확인</label>
  264. <value>3</value>
  265. </item>
  266. <item>
  267. <label>스캔</label>
  268. <value>4</value>
  269. </item>
  270. <item>
  271. <label>삭제</label>
  272. <value>5</value>
  273. </item>
  274. </choices>
  275. </select1>
  276. <select1 id="combo1" ref="/root/hidden/ref/code" appearance="minimal" style="left:100px; top:8px; width:80px; height:19px; ">
  277. <choices>
  278. <item>
  279. <label>접수일자</label>
  280. <value>S</value>
  281. </item>
  282. <item>
  283. <label>처방일자</label>
  284. <value>P</value>
  285. </item>
  286. </choices>
  287. </select1>
  288. <caption id="caption2" class="search_name" style="left:9px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  289. </group>
  290. <button id="btn_excel" class="btn2_letter2" visibility="visible" style="left:1149px; top:49px; width:42px; height:19px; ">
  291. <caption>엑셀</caption>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. fExeExcel(grd_list);
  295. ]]>
  296. </script>
  297. </button>
  298. <button id="btn_left" class="btn2_letter2" visibility="visible" style="left:790px; top:50px; width:42px; height:19px; ">
  299. <caption>▶</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. grd_list.rightCol = grd_list.cols;
  303. ]]>
  304. </script>
  305. </button>
  306. <button id="button1" class="btn2_letter2" visibility="visible" style="left:747px; top:50px; width:42px; height:19px; ">
  307. <caption>◀</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. grd_list.leftCol = 1;
  311. ]]>
  312. </script>
  313. </button>
  314. <datagrid id="grd_list" nodeset="/root/main/getSepogetlist" caption="동의서번호^등록번호^환자명^처방코드^처방명^처방일자^출력일자^접수일자^검체보존^보존기간^진료의사^진료과^병실^상태^^확인자^확인일시" colwidth="100, 80, 80, 80, 190, 90, 90, 90, 70, 100, 90, 90, 90, 90, 25, 70, 120" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1194px; height:660px; font-weight:bold; text-align:center; ">
  315. <col ref="ocrtag" type="output" style="text-align:center; "/>
  316. <col ref="pid" type="output" style="text-align:center; "/>
  317. <col ref="hngnm" type="output" style="text-align:center; "/>
  318. <col ref="tclscd" type="output" style="text-align:left; "/>
  319. <col ref="tclsnm" type="output" style="text-align:left; "/>
  320. <col ref="prcpdd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
  321. <col ref="fstprntdt" format="yyyy-mm-dd" style="text-align:left; "/>
  322. <col ref="spcacptdt" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
  323. <col ref="spcproccd" style="text-align:left; "/>
  324. <col ref="spcpossnterm" style="text-align:left; "/>
  325. <col ref="usernm" type="output" style="text-align:center; "/>
  326. <col ref="inorddeptnm" type="output" style="text-align:center; "/>
  327. <col ref="roomcd" type="output" style="text-align:left; "/>
  328. <col ref="sday" type="output" style="text-align:center; "/>
  329. <col checkvalue="Y,N" disabled="true" ref="cnfmyn" type="checkbox"/>
  330. <col ref="delivecnfmid" type="output" style="text-align:left; "/>
  331. <col ref="delivecnfmdt" type="output" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  332. <script type="javascript" ev:event="ondblclick">
  333. <![CDATA[
  334. fPopup();
  335. ]]>
  336. </script>
  337. <script type="javascript" ev:event="onaftersort">
  338. <![CDATA[
  339. grd_list.gridToInstance();
  340. ]]>
  341. </script>
  342. </datagrid>
  343. </group>
  344. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  345. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  346. <caption>초기화</caption>
  347. <script type="javascript" ev:event="onclick">
  348. <![CDATA[
  349. fSetInit();
  350. ]]>
  351. </script>
  352. </button>
  353. <button id="btn_aprv" class="btn3_letter8" style="left:1px; top:4px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  354. <caption>유전자동의서확인</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. //model.makeValue("/root/init/popup/ioflag", "I");
  358. //open("SPLLJ90400","","","","","/root/init/popup/ioflag","/root/send/ioflag");
  359. //model.removenode("/root/init/ioflag");
  360. open("SPLLJ90400");
  361. ]]>
  362. </script>
  363. </button>
  364. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  365. </group>
  366. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  367. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">유전자검사 동의서 조회</caption>
  368. </group>
  369. </xhtml:body>
  370. </xhtml:html>