SPLMR90900_미생물추가처방.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : PCR,방사선결과.xrw
  4. * 설 명 : PCR,방사선결과
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2006.11.11
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>미생물추가처방</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root>
  17. <main>
  18. <prcplist>
  19. <chk/>
  20. <prcpcd/>
  21. <prcpnm/>
  22. <reptrslt/>
  23. </prcplist>
  24. <barcdprntsetup/>
  25. </main>
  26. <send>
  27. <pid/>
  28. <bcno/>
  29. <ioflag/>
  30. <data1/>
  31. <userdeptflagcd/>
  32. <bcdgbn/>
  33. <scrnid/>
  34. </send>
  35. <init>
  36. </init>
  37. <hidden>
  38. <inparam>
  39. <pid/>
  40. <bcno/>
  41. </inparam>
  42. <patinfo>
  43. <pid/>
  44. <patnm/>
  45. <rrgstno/>
  46. <rrgstno2/>
  47. <sex/>
  48. <age/>
  49. <orddeptnm/>
  50. <orddd/>
  51. <wardroom/>
  52. <dschnotiyn/>
  53. <ref>
  54. <printcnt>1</printcnt>
  55. </ref>
  56. <ioflag/>
  57. <msg/>
  58. </patinfo>
  59. <barcode/>
  60. <dethmsg>
  61. <dethyn/>
  62. <msg/>
  63. </dethmsg>
  64. </hidden>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  72. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  73. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  74. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  75. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. getPatCBBaseInfo();
  79. ]]>
  80. </script>
  81. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  82. <submission id="TRLMR90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist"/>
  83. <submission id="TRLMR90902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
  84. <submission id="TXLMR90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/dethmsg"/>
  85. <submission id="TRMNC00999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_diaginfo" replace="instance" resultref="/root/diaginfo"/>
  86. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
  87. <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
  88. <submission id="TRLLJ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcode"/>
  89. </model>
  90. <script type="javascript">
  91. <![CDATA[
  92. function getPatCBBaseInfo(){
  93. model.setValue("/root/send/pid", model.getValue("/root/hidden/inparam/pid"));
  94. model.setValue("/root/send/bcno", model.getValue("/root/hidden/inparam/bcno"));
  95. submit("TRLMR90902");
  96. if(model.getValue("/root/hidden/patinfo/dschnotiyn") == "Y"){
  97. alert("퇴원확정 된 환자입니다. 추가처방을 발행할 수 없습니다. ");
  98. return;
  99. }
  100. if(model.getValue("/root/hidden/patinfo/msg") != ""){
  101. messageBox(model.getValue("/root/hidden/patinfo/msg"), "I");
  102. }
  103. //추가 입원 외래 환자 구분이 용이하도록 taskno 48893
  104. /*
  105. if(model.getValue("/root/hidden/patinfo/ioflag") == "I"){
  106. caption9.attribute("background-color") = "#b9e5fb";
  107. caption9.value = "입원환자 입니다."
  108. }else{
  109. caption9.attribute("background-color") = "#fec34d";
  110. caption9.value = "외래환자 입니다."
  111. }
  112. */
  113. submit("TRLMR90901");
  114. model.setValue("/root/send/scrnid", getScreenID());
  115. submit("TRLLC90101");
  116. lzzfMakeBrcdPrntObjHanDo("CommAX");
  117. }
  118. function fExePrcp(){
  119. var ioflag = model.getValue("/root/hidden/patinfo/ioflag");
  120. if(ioflag == "O"){
  121. var setPid = model.getValue("/root/hidden/patinfo/pid");
  122. var setDd = getCurrentDate();
  123. setParameter("preDiagCond", "Etc▦"+setPid+"▦"+setDd+"▦▦▦/root");
  124. fFindDiagInfo();
  125. var sParamArr = getParameter("preDiagResult").split("▦");
  126. var sOrddd_Old = sParamArr[1];
  127. var sIndd_Old = sParamArr[2];
  128. var sCretno_Old = sParamArr[3];
  129. var sGenrflagcd_Old = sParamArr[4];
  130. if( sGenrflagcd_Old != 'O' ){
  131. model.makeValue("/root/send/orddd_old", sIndd_Old);
  132. }else{
  133. model.makeValue("/root/send/orddd_old", sOrddd_Old);
  134. }
  135. model.makeValue("/root/send/cretno_old", sCretno_Old);
  136. model.makeValue("/root/send/genrflagcd_old", sGenrflagcd_Old);
  137. model.makeValue("/root/send/orddeptcd_old", "");
  138. model.makeValue("/root/send/copyflag", "Y");
  139. }
  140. var grd_prcplistRow = grd_prcplist.rows;
  141. for(var Ro = 1; Ro <= grd_prcplistRow ; Ro++){
  142. var chkVal = model.getValue("/root/main/prcplist["+Ro+"]/chk");
  143. var prcpyn = model.getValue("/root/main/prcplist["+Ro+"]/prcpyn");
  144. if(chkVal == "true"){
  145. if(prcpyn == "Y"){
  146. alert("이미 추가 처방 되었습니다.");
  147. grd_prcplist.rowStatus(Ro) = 0;
  148. }else{
  149. grd_prcplist.rowStatus(Ro) = 2;
  150. }
  151. }else{
  152. grd_prcplist.rowStatus(Ro) = 0;
  153. }
  154. }
  155. model.setValue("/root/send/data1", grd_prcplist.getUpdateData());
  156. model.setValue("/root/send/pid", model.getValue("/root/hidden/patinfo/pid"));
  157. model.setValue("/root/send/ioflag", model.getValue("/root/hidden/patinfo/ioflag"));
  158. //alert(grd_prcplist.getUpdateData());
  159. if(submit("TXLMR90901")){
  160. if(model.getValue("/root/hidden/dethmsg/dethyn") == "Y"){
  161. messageBox(model.getValue("/root/hidden/dethmsg/msg"), "I");
  162. }
  163. }
  164. submit("TRLMR90901");
  165. }
  166. //바코드출력
  167. function fExeBarcdReprnt() {
  168. //model.removeNodeset("/root/hidden/barcode");
  169. var bcno = "";
  170. var bcollTF = false;
  171. for(i=1; i< grd_prcplist.rows; i++){
  172. if(model.getValue("/root/main/prcplist["+i+"]/chk")=="true"){
  173. bcno = bcno + "'" + model.getvalue("/root/main/prcplist["+i+"]/bcno") + "'" + ",";
  174. bcollTF = true;
  175. }
  176. }
  177. if(bcollTF == false){
  178. alert("출력할 검체를 선택하십시오. ");
  179. }
  180. if(bcollTF) {
  181. bcno = bcno.substring( 0 ,bcno.length );
  182. model.makeValue("/root/send/bcnolist" , bcno);
  183. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  184. bcno = bcno.substring( 0 ,bcno.length - 1);
  185. model.makeValue("/root/send/bcnolist" , bcno);
  186. model.setValue("/root/send/bcdgbn", "1");
  187. submit("TRLLJ00402");
  188. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  189. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  190. if( prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){ // sato 바코드
  191. fLisSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo");
  192. }else if(prtkind == "8" ){ // B472
  193. fLisSpcBarcodePrint3("/root/hidden/barcode/barcodeinfo");
  194. }else{ // ZEBRA & 기타
  195. fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo");
  196. }
  197. model.removeNodeset("/root/hidden/barcode");
  198. }
  199. }
  200. function fSetPrint() {
  201. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  202. if(count == 0) {
  203. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  204. }
  205. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  206. }
  207. ]]>
  208. </script>
  209. </xhtml:head>
  210. <xhtml:body pagewidth="900" pageheight="600" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  211. <group id="group1" style="left:0px; top:0px; width:770px; height:565px; ">
  212. <caption id="caption1" class="tit_2" style="left:0px; top:5px; width:100px; height:14px; ">환자정보</caption>
  213. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
  214. <input id="ipt_wbc" ref="/root/hidden/patinfo/pid" class="input_default" disabled="true" navindex="2" appearance="input" style="left:75px; top:31px; width:120px; height:19px; "/>
  215. <line id="line2" class="line_2" style="x1:0px; y1:53px; x2:765px; y2:53px; "/>
  216. <caption id="cpt_wbc" class="cell_1" style="left:0px; top:30px; width:72px; height:23px; ">등록번호</caption>
  217. <input id="input1" ref="/root/hidden/patinfo/patnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:275px; top:31px; width:120px; height:19px; "/>
  218. <caption id="caption2" class="cell_1" style="left:200px; top:30px; width:72px; height:23px; ">성 명</caption>
  219. <caption id="caption3" class="cell_1" style="left:400px; top:30px; width:72px; height:23px; ">주민번호</caption>
  220. <input id="input2" ref="/root/hidden/patinfo/rrgstno" class="input_default" disabled="true" navindex="2" appearance="input" style="left:475px; top:31px; width:60px; height:19px; "/>
  221. <input id="input3" ref="/root/hidden/patinfo/rrgstno2" class="input_default" disabled="true" navindex="2" appearance="input" style="left:537px; top:31px; width:70px; height:19px; "/>
  222. <input id="input4" ref="/root/hidden/patinfo/orddeptnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:75px; top:56px; width:120px; height:19px; "/>
  223. <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:72px; height:23px; ">진 료 과</caption>
  224. <caption id="caption5" class="cell_1" style="left:200px; top:55px; width:72px; height:23px; ">진 료 일</caption>
  225. <input id="input5" ref="/root/hidden/patinfo/orddd" class="input_default" disabled="true" navindex="2" appearance="input" style="left:275px; top:56px; width:120px; height:19px; "/>
  226. <caption id="caption6" class="cell_1" style="left:610px; top:30px; width:72px; height:23px; ">성별/나이</caption>
  227. <input id="input6" ref="/root/hidden/patinfo/sex" class="input_default" disabled="true" navindex="2" appearance="input" style="left:685px; top:31px; width:40px; height:19px; "/>
  228. <input id="input7" ref="/root/hidden/patinfo/age" class="input_default" disabled="true" navindex="2" appearance="input" style="left:728px; top:31px; width:37px; height:19px; "/>
  229. <caption id="caption7" class="cell_1" style="left:400px; top:55px; width:72px; height:23px; ">병 실</caption>
  230. <input id="input8" ref="/root/hidden/patinfo/wardroom" class="input_default" disabled="true" navindex="2" appearance="input" style="left:475px; top:56px; width:85px; height:19px; "/>
  231. <line id="line3" class="line_2" style="x1:0px; y1:78px; x2:765px; y2:78px; "/>
  232. <caption id="caption8" class="tit_2" style="left:0px; top:90px; width:100px; height:14px; ">처방목록</caption>
  233. <line id="line4" class="line_1" style="x1:0px; y1:105px; x2:765px; y2:105px; "/>
  234. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist" class="datagrid2" caption="^처방코드^처방명칭^처방여부^결과값^바코드번호" colsep="▦" colwidth="26, 100, 340, 75, 100, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:765px; height:434px; ">
  235. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  236. <col ref="prcpcd" type="output" format="yyyy-mm-dd"/>
  237. <col ref="prcpnm" type="output"/>
  238. <col ref="prcpyn" type="output"/>
  239. <col ref="reptrslt" type="combo">
  240. <choices>
  241. <item>
  242. <label>POSITIVE</label>
  243. <value>POSITIVE</value>
  244. </item>
  245. <item>
  246. <label>NEGATIVE</label>
  247. <value>NEGATIVE</value>
  248. </item>
  249. <item>
  250. <label>추가 검사 처방 항목입니다.</label>
  251. <value>추가 검사 처방 항목입니다.</value>
  252. </item>
  253. <item>
  254. <label/>
  255. <value/>
  256. </item>
  257. </choices>
  258. </col>
  259. <col ref="bcno" type="input"/>
  260. <script type="javascript" ev:event="onaftersort">
  261. <![CDATA[
  262. grd_prcplist.gridToInstance();
  263. ]]>
  264. </script>
  265. </datagrid>
  266. <button id="button145" class="btn5_letter5" style="left:690px; top:85px; width:75px; height:19px; ">
  267. <caption>후인증저장</caption>
  268. <script type="javascript" ev:event="onclick">
  269. <![CDATA[
  270. fExePrcp();
  271. ]]>
  272. </script>
  273. </button>
  274. <button id="btn_prntset" class="btn3_letter5" style="left:672px; top:2px; width:92px; height:22px; ">
  275. <caption>프린터설정</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. fSetPrint();
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="button1" class="btn5_letter5" style="left:611px; top:85px; width:75px; height:19px; ">
  283. <caption>바코드출력</caption>
  284. <script type="javascript" ev:event="onclick">
  285. <![CDATA[
  286. fExeBarcdReprnt();
  287. ]]>
  288. </script>
  289. </button>
  290. <caption id="caption9" style="left:565px; top:56px; width:200px; height:20px; "/>
  291. </group>
  292. </xhtml:body>
  293. </xhtml:html>