SPLLJ90400_유전자동의서접수.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 : PHIS - SSH
  7. * 작 성 일 : 2010.03.18
  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>
  18. <main>
  19. <aprvlist>
  20. <prntstat/>
  21. <ocrtag/>
  22. <prcpdd/>
  23. <pid/>
  24. <hngnm/>
  25. <sexage/>
  26. <orddept/>
  27. <orddrnm/>
  28. <tclslist/>
  29. <bcno/>
  30. <spcstat/>
  31. <cnfmyn/>
  32. <delivecnfmid/>
  33. <delivecnfmdt/>
  34. <disable/>
  35. <cretno/>
  36. <formcd/>
  37. <orddeptcd/>
  38. <orddd/>
  39. <prcpgenrflag/>
  40. <formnm/>
  41. </aprvlist>
  42. </main>
  43. <send>
  44. <fromdd/>
  45. <todd/>
  46. <textflag>1</textflag>
  47. <text/>
  48. <ioflag>I</ioflag>
  49. <prntflag>-</prntflag>
  50. <cnfmyn>A</cnfmyn>
  51. <ocrtag/>
  52. <execnfmyn/>
  53. <iemr/>
  54. </send>
  55. <init>
  56. </init>
  57. <hidden>
  58. <autom>1</autom>
  59. <autoref>1</autoref>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  68. <bind id="bind1" ref="/root/main/aprvlist/cnfmyn" readonly="../disable = '4' and ../cnfmyn='Y'"/>
  69. <!-- <bind id="bind2" ref="/root/main/aprvlist/cnfmyn" readonly="../ocrtag = if(../cnfmyn = 'Y' and ../spcstat &gt;= '430', ../ocrtag, '')&#xA;"/> -->
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fSetInit();
  73. ]]>
  74. </script>
  75. <submission id="TRLLJ90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/aprvlist"/>
  76. <submission id="TXLLJ90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  77. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  78. </model>
  79. <script type="javascript">
  80. <![CDATA[
  81. iCnt = 1;
  82. var gTimerID;
  83. function fTimer(){
  84. iCnt ++;
  85. if(iCnt%2 == 0){
  86. m = model.getvalue("/root/hidden/autom");
  87. gTimerID = window.setInterval( "fGetAprvList()", m * 60000 );
  88. button89.attribute("text") = "자동조회 On";
  89. input2.disabled = true;
  90. }
  91. else{
  92. model.setvalue("/root/hidden/autoref" , "2");
  93. button89.attribute("text") = "자동조회 Off";
  94. input2.disabled = false;
  95. window.clearInterval(gTimerID) ;
  96. }
  97. }
  98. //초기화
  99. function fSetInit() {
  100. model.setFocus("ipt_pid");
  101. //fBaseInfoRef("0000|");
  102. fTimer();
  103. model.resetInstanceNode("/root/main/bloodprcplist/outprcplist");
  104. model.setValue("/root/send/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
  105. model.setValue("/root/send/todd", getCurrentDate());
  106. model.setValue("/root/send/text", "");
  107. // 화면열때 자동조회
  108. fGetAprvList();
  109. model.refresh();
  110. }
  111. // 조회
  112. function fGetAprvList(){
  113. if(model.getValue("/root/send/ioflag") == ""){
  114. messageBox("재원 구분을 선택하세요", "E");
  115. return;
  116. }
  117. submit("TRLLJ90401");
  118. /*
  119. var sOcrTag;
  120. for(i = 1; i < grd_dnorinfo.rows; i++){
  121. if(grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("cnfmyn")) == true){
  122. sOcrTag = grd_dnorinfo.valueMatrix(i, grd_dnorinfo.colRef("ocrtag"));
  123. if(model.getXPathValue('count(/root/main/aprvlist[ocrtag = "'+ sOcrTag + '"])') > 0){
  124. }
  125. }
  126. }*/
  127. }
  128. //키이벤트 엔터키 입력시
  129. function fKeyEvent(){
  130. if(event.keyCode == "13"){
  131. if(event.target=="ipt_pid"){
  132. model.setValue("/root/send/text", (ipt_pid.currentText).getTrim().substr(0,13));
  133. //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
  134. fGetAprvList();
  135. }
  136. }
  137. }
  138. //검사실 확인 체크
  139. function fSetAprvCnfm(){
  140. model.makeValue("/root/send/ocrtag", model.getValue("/root/main/aprvlist[" + grd_dnorinfo.row + "]/ocrtag"));
  141. model.makeValue("/root/send/execnfmyn", model.getValue("/root/main/aprvlist[" + grd_dnorinfo.row + "]/cnfmyn"));
  142. submit("TXLLJ90401");
  143. fGetAprvList();
  144. }
  145. //bind로 처리 사용안함
  146. function fSort(){
  147. for(i = 1; i <= grd_dnorinfo.rows; i++){
  148. //해당 동의서 가장 상태값 큰게 접수이상이고 확인한 동의서일 경우 검사실확인 컬럼 disable하기위함
  149. if(model.getValue("/root/main/aprvlist[" + i + "]/disable") == "4" && model.getValue("/root/main/aprvlist[" + i + "]/cnfmyn") == "Y"){
  150. grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("cnfmyn"), i, grd_dnorinfo.colRef("cnfmyn")) = true;
  151. }
  152. alert(model.getValue("/root/main/aprvlist[" + i + "]/disable"));
  153. }
  154. model.refresh();
  155. }
  156. //동의서 Viewer
  157. function fViewAprv(){
  158. model.resetInstanceNode("/root/send/iemr");
  159. var row = grd_dnorinfo.row;
  160. if(model.getValue("/root/main/aprvlist[" + row + "]/prntstat") == "스캔") {
  161. // 이윤주수정(20130423)
  162. // model.makeValue("/root/send/iemr/cmc_cretno" , model.getValue("/root/main/aprvlist[" + row + "]/cretno"));
  163. // model.makeValue("/root/send/iemr/docucd" , model.getValue("/root/main/aprvlist[" + row + "]/formcd"));
  164. // model.makeValue("/root/send/iemr/pid" , model.getValue("/root/main/aprvlist[" + row + "]/pid"));
  165. // model.makeValue("/root/send/iemr/orddeptcd" , model.getValue("/root/main/aprvlist[" + row + "]/orddeptcd"));
  166. // model.makeValue("/root/send/iemr/indd" , model.getValue("/root/main/aprvlist[" + row + "]/orddd"));
  167. // model.makeValue("/root/send/iemr/ioflag" , model.getValue("/root/main/aprvlist[" + row + "]/prcpgenrflag"));
  168. // model.makeValue("/root/send/iemr/cmc_spcid" , "");
  169. // model.makeValue("/root/send/iemr/cmc_orddate", "");
  170. // model.makeValue("/root/send/iemr/cmc_orderseqno", "");
  171. model.makeValue("/root/send/iemr/ocrcode" , model.getValue("/root/main/aprvlist[" + row + "]/ocrtag"));
  172. if(window.children.item("imgemrviewer") == null) {
  173. open("SSMRC03130", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp");
  174. }else{
  175. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  176. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  177. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  178. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  179. window.children.item("imgemrviewer").modelesstopmost = true;
  180. window.children.item("imgemrviewer").modelesstopmost = false;
  181. }
  182. }
  183. }
  184. ]]>
  185. </script>
  186. </xhtml:head>
  187. <xhtml:body pagewidth="1160" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  188. <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:1140px; height:756px; ">
  189. <datagrid id="grd_dnorinfo" nodeset="/root/main/aprvlist" class="datagrid3" caption="동의서&#xA;상태^동의서번호^처방일^등록번호^성명^성별/나이^진료과^진료의사^검사명^서식명^바코드번호^검체상태^검사실&#xA;확인^확인자^확인일시^Max검체상태^cretno^formcd^orddeptcd^orddd^prcpgenrflag" colsep="^" colwidth="60, 90, 70, 80, 80, 60, 60, 70, 150, 135, 80, 70, 50, 70, 120, 60, 0, 0, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:1134px; height:655px; text-align:center; ">
  190. <col ref="prntstat" style="text-align:center; "/>
  191. <col ref="ocrtag" style="text-align:center; "/>
  192. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  193. <col ref="pid"/>
  194. <col ref="hngnm"/>
  195. <col ref="sexage" format="yyyy-mm-dd" style="text-align:center; "/>
  196. <col ref="orddept"/>
  197. <col ref="orddrnm"/>
  198. <col ref="tclslist" style="text-align:left; "/>
  199. <col ref="formnm" style="text-align:left; "/>
  200. <col ref="bcno"/>
  201. <col disabled="true" ref="spcstat" type="combo">
  202. <choices>
  203. <item>
  204. <label>처방</label>
  205. <value>000</value>
  206. </item>
  207. <item>
  208. <label>간호확인</label>
  209. <value>100</value>
  210. </item>
  211. <item>
  212. <label>수납</label>
  213. <value>230</value>
  214. </item>
  215. <item>
  216. <label>바코드발행</label>
  217. <value>400</value>
  218. </item>
  219. <item>
  220. <label>채혈</label>
  221. <value>410</value>
  222. </item>
  223. <item>
  224. <label>가접수</label>
  225. <value>420</value>
  226. </item>
  227. <item>
  228. <label>접수</label>
  229. <value>430</value>
  230. </item>
  231. <item>
  232. <label>중간보고</label>
  233. <!-- 예비결과-->
  234. <value>710</value>
  235. </item>
  236. <item>
  237. <label>중간보고</label>
  238. <value>720</value>
  239. </item>
  240. <item>
  241. <label>최종보고</label>
  242. <value>730</value>
  243. </item>
  244. <item>
  245. <label>수정보고</label>
  246. <value>740</value>
  247. </item>
  248. </choices>
  249. </col>
  250. <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
  251. <col ref="delivecnfmid"/>
  252. <col ref="delivecnfmdt" format="yyyy-mm-dd hh:nn"/>
  253. <col ref="disable" visibility="hidden"/>
  254. <col ref="cretno"/>
  255. <col ref="formcd"/>
  256. <col ref="orddeptcd"/>
  257. <col ref="orddd"/>
  258. <col ref="prcpgenrflag"/>
  259. <script type="javascript" ev:event="onaftersort">
  260. <![CDATA[
  261. grd_dnorinfo.gridToInstance();
  262. //정렬시 bind로 처리한 disable가 풀리는 문제점
  263. model.recalculate();
  264. //fSort();
  265. ]]>
  266. </script>
  267. <script type="javascript" ev:event="xforms-value-changed">
  268. <![CDATA[
  269. if(isDataCell() && grd_dnorinfo.col == grd_dnorinfo.colRef("cnfmyn")){
  270. fSetAprvCnfm();
  271. }
  272. ]]>
  273. </script>
  274. <script type="javascript" ev:event="onclick">
  275. <![CDATA[
  276. if(isDataCell()){
  277. window.clipBoardData = grd_dnorinfo.valueMatrix(grd_dnorinfo.row, grd_dnorinfo.col);
  278. }
  279. ]]>
  280. </script>
  281. <script type="javascript" ev:event="ondblclick">
  282. <![CDATA[
  283. fViewAprv();
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <line id="line10" class="line_1" style="x1:5px; y1:70px; x2:1139px; y2:70px; "/>
  288. <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:167px; height:14px; ">유전자 동의서 내역</caption>
  289. <group id="grp_sea" style="left:0px; top:10px; width:1140px; height:35px; vertical-align:top; ">
  290. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1139px; height:35px; "/>
  291. <line id="line13" class="line_4" style="x1:1063px; y1:7px; x2:1063px; y2:29px; "/>
  292. <caption id="caption2" class="search_name" style="left:6px; top:9px; width:94px; height:17px; ">처방일자 :</caption>
  293. <button id="btn_ref" class="btn1_letter2" style="left:1073px; top:7px; width:56px; height:22px; ">
  294. <caption>조회</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. fGetAprvList();
  298. ]]>
  299. </script>
  300. </button>
  301. <caption id="caption3" class="search_no_b" style="left:195px; top:8px; width:15px; height:17px; ">~</caption>
  302. <input id="input26" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:95px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  303. <input id="input1" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:214px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  304. <caption id="caption1" class="search_name" style="left:311px; top:9px; width:94px; height:17px; ">검색구분 :</caption>
  305. <select1 id="cmb_ref" ref="/root/send/textflag" class="combo_search" appearance="minimal" style="left:400px; top:8px; width:90px; height:19px; ">
  306. <choices>
  307. <item>
  308. <label>등록번호</label>
  309. <value>1</value>
  310. </item>
  311. <item>
  312. <label>동의서번호</label>
  313. <value>2</value>
  314. </item>
  315. </choices>
  316. </select1>
  317. <input id="ipt_pid" ref="/root/send/text" inputtype="button" style="left:492px; top:8px; width:100px; height:19px; ">
  318. <script type="javascript" ev:event="onkeypress">
  319. <![CDATA[
  320. fKeyEvent();
  321. ]]>
  322. </script>
  323. </input>
  324. <caption id="cap_prntflag" class="search_name" style="left:596px; top:9px; width:109px; height:17px; ">동의서상태 :</caption>
  325. <select1 id="cmb_prnt" ref="/root/send/prntflag" class="combo_search" appearance="minimal" style="left:700px; top:8px; width:80px; height:19px; text-align:center; ">
  326. <choices>
  327. <item>
  328. <label>- 전체 -</label>
  329. <value>-</value>
  330. </item>
  331. <item>
  332. <label>출력</label>
  333. <value>1</value>
  334. </item>
  335. <item>
  336. <label>반납</label>
  337. <value>2</value>
  338. </item>
  339. <item>
  340. <label>반납확인</label>
  341. <value>3</value>
  342. </item>
  343. <item>
  344. <label>스캔</label>
  345. <value>4</value>
  346. </item>
  347. <item>
  348. <label>삭제</label>
  349. <value>5</value>
  350. </item>
  351. </choices>
  352. </select1>
  353. <input id="input2" ref="/root/hidden/autom" class="input_search" style="left:1021px; top:8px; width:24px; height:19px; "/>
  354. <caption id="caption8" class="search_no_b" style="left:1045px; top:8px; width:15px; height:17px; ">분</caption>
  355. <button id="button89" class="btn5_letter6" style="left:933px; top:8px; width:86px; height:19px; ">
  356. <caption>자동조회 On</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. fTimer();
  360. ]]>
  361. </script>
  362. </button>
  363. <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="3" overflow="visible" style="left:787px; top:2px; width:148px; height:15px; border-style:none; ">
  364. <choices>
  365. <item>
  366. <label>입원</label>
  367. <value>I</value>
  368. </item>
  369. <item>
  370. <label>외래</label>
  371. <value>O</value>
  372. </item>
  373. <item>
  374. <label>전체</label>
  375. <value>A</value>
  376. </item>
  377. </choices>
  378. </select1>
  379. <select1 id="radio2" ref="/root/send/cnfmyn" appearance="full" cols="3" overflow="visible" style="left:787px; top:17px; width:148px; height:15px; border-style:none; ">
  380. <choices>
  381. <item>
  382. <label>미확인</label>
  383. <value>N</value>
  384. </item>
  385. <item>
  386. <label>확인</label>
  387. <value>Y</value>
  388. </item>
  389. <item>
  390. <label>전체</label>
  391. <value>A</value>
  392. </item>
  393. </choices>
  394. </select1>
  395. </group>
  396. <button id="button1" class="btn4_letter2" style="left:1080px; top:731px; width:56px; height:22px; ">
  397. <caption>닫기</caption>
  398. <script type="javascript" ev:event="onclick">
  399. <![CDATA[
  400. window.close();
  401. ]]>
  402. </script>
  403. </button>
  404. </group>
  405. <group id="grp_tle" style="left:0px; top:0px; width:980px; height:13px; ">
  406. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:13px; ">유전자동의서 확인</caption>
  407. </group>
  408. </xhtml:body>
  409. </xhtml:html>