SPLLC90900_채혈데이터검체변경관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>전환처방조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root>
  9. <main>
  10. <bcolllist>
  11. <orddeptnm/>
  12. <orddrnm/>
  13. <orddd/>
  14. </bcolllist>
  15. <prcplist>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpdd/>
  19. <rgstdt/>
  20. <prcpdr/>
  21. <calyn/>
  22. <prcpstatcd/>
  23. <prcpspccd/>
  24. <spccd/>
  25. </prcplist>
  26. </main>
  27. <send>
  28. <pid/>
  29. <prcpdd/>
  30. <prcpno/>
  31. <prcphistno/>
  32. <tclscd/>
  33. <data1/>
  34. </send>
  35. <init>
  36. <spccdlist/>
  37. </init>
  38. <hidden>
  39. <ref>
  40. <searchtext/>
  41. <spccho/>
  42. </ref>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-model-construct-done">
  47. <![CDATA[
  48. fSetInit();
  49. ]]>
  50. </script>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  55. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <submission id="TRLLC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bcolllist"/>
  58. <submission id="TRLLC90902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist"/>
  59. <submission id="TRLLC90903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/spccdlist"/>
  60. <submission id="TXLLC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  61. </model>
  62. <script type="javascript">
  63. <![CDATA[
  64. function fPidRef(){
  65. if(event.keyCode == "13"){
  66. if(event.target == "iptSearch"){
  67. model.setvalue("/root/hidden/ref/searchtext",iptSearch.currentText);
  68. model.refresh();
  69. fGetResultListRef();
  70. iptSearch.selBegin = 0;
  71. iptSearch.selEnd = iptSearch.currentText.length;
  72. }
  73. }
  74. }
  75. function fGetResultListRef(){
  76. model.removeNodeset("/root/main/bcolllist");
  77. model.removeNodeset("/root/main/prcplist");
  78. model.setvalue("/root/hidden/ref/searchtext",iptSearch.currentText);
  79. model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/searchtext"));
  80. submit("TRLLC90901");
  81. if(grd_bcolllist.rows > 1){
  82. fClickbcolllist(1);
  83. }
  84. }
  85. function fClickbcolllist(Row){
  86. model.removeNodeset("/root/main/prcplist");
  87. model.setValue("/root/hidden/ref/spccho", "");
  88. model.setValue("/root/send/prcpdd" , model.getValue("/root/main/bcolllist["+Row+"]/prcpdd"));
  89. model.setValue("/root/send/prcpno" , model.getValue("/root/main/bcolllist["+Row+"]/prcpno"));
  90. model.setValue("/root/send/prcphistno" , model.getValue("/root/main/bcolllist["+Row+"]/prcphistno"));
  91. model.setValue("/root/send/pid" , model.getValue("/root/main/bcolllist["+Row+"]/pid"));
  92. submit("TRLLC90902");
  93. if(prcplist.rows > 1){
  94. for(var i = 1 ; i < prcplist.rows ; i++){
  95. //alert(model.getValue("/root/main/prcplist["+i+"]/prcpspccd").getTrim().toString());
  96. //alert(model.getValue("/root/main/prcplist["+i+"]/spccdnm").getTrim().toString());
  97. if(model.getValue("/root/main/prcplist["+i+"]/prcpspccd").getTrim().toString() == model.getValue("/root/main/prcplist["+i+"]/spccdnm").getTrim().toString()){
  98. }else{
  99. model.setValue("/root/main/prcplist["+i+"]/chk" , "true");
  100. }
  101. }
  102. }
  103. prcplist.allStyle("all","color") = "#4d4d4d";
  104. prcplist.refresh();
  105. model.refresh();
  106. }
  107. function fSetInit(){
  108. model.removeNodeset("/root/main/bcolllist");
  109. model.removeNodeset("/root/main/prcplist");
  110. //model.setValue("/root/hidden/ref/searchtext", "");
  111. model.setValue("/root/hidden/ref/spccho", "");
  112. model.refresh();
  113. fGetResultListRef();
  114. }
  115. function fGetspccd(){
  116. //검체선택한 내역 초기화
  117. model.setValue("/root/hidden/ref/spccho", "");
  118. var mig = model.getValue("/root/main/prcplist["+prcplist.row+"]/migyn");
  119. if(mig == "N"){
  120. messageBox("전환데이터가 아닙니다.", "I");
  121. return;
  122. }
  123. var tclscd = model.getValue("/root/main/prcplist["+prcplist.row+"]/prcpcd");
  124. model.setValue("/root/send/tclscd", tclscd);
  125. submit("TRLLC90903")
  126. //model.setValue("/root/hidden/ref/spccho", model.getValue("/root/init/spccdlist[1]/basespccd"));
  127. model.refresh();
  128. }
  129. function fSetSpccd(){
  130. var spccd = model.getValue("/root/hidden/ref/spccho");
  131. var spcnm = combo1.label;
  132. model.setValue("/root/main/prcplist["+prcplist.row+"]/spccd", spccd);
  133. model.setValue("/root/main/prcplist["+prcplist.row+"]/spccdnm", spcnm);
  134. model.setValue("/root/main/prcplist["+prcplist.row+"]/chk", "true");
  135. prcplist.cellStyle("color", prcplist.row, 1, prcplist.row, 11) = "#0066CC";
  136. //combo1.selected = false;
  137. model.refresh();
  138. }
  139. function fExe(){
  140. for(i = 1 ; i < prcplist.rows ; i++){
  141. if(model.getValue("/root/main/prcplist["+i+"]/chk") == "true"){
  142. if(model.getValue("/root/main/prcplist["+i+"]/migyn") == "Y"){
  143. prcplist.rowStatus(i) = 2;
  144. }else{
  145. prcplist.rowStatus(i) = 0;
  146. }
  147. if(model.getValue("/root/main/prcplist["+i+"]/spccd") == "999" || model.getValue("/root/main/prcplist["+i+"]/spccd") == "998"){
  148. messageBox("검체선택을 해야 합니다.", "I");
  149. prcplist.rowStatus(i) = 0;
  150. }
  151. }else{
  152. prcplist.rowStatus(i) = 0;
  153. }
  154. }
  155. model.setValue("/root/send/data1", prcplist.getUpdateData());
  156. submit("TXLLC90901");
  157. fClickbcolllist(grd_bcolllist.row);
  158. prcplist.allStyle("all","color") = "#4d4d4d";
  159. prcplist.refresh();
  160. window.opener.javascript.fGetOutBCollJoHoi();
  161. window.close();
  162. }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  168. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:265px; y2:70px; "/>
  169. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:164px; height:14px; ">채혈정보</caption>
  170. <datagrid id="grd_bcolllist" nodeset="/root/main/bcolllist" class="datagrid2" caption="진료과^진료의사^진료일자" colsep="▦" colwidth="75, 75, 85" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:265px; height:669px; ">
  171. <col ref="orddeptnm" style="text-align:center; "/>
  172. <col ref="orddrnm" style="text-align:center; "/>
  173. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  174. <script type="javascript" ev:event="onaftersort">
  175. <![CDATA[
  176. grd_bcolllist.gridToInstance();
  177. ]]>
  178. </script>
  179. <script type="javascript" ev:event="onclick">
  180. <![CDATA[
  181. if(grd_bcolllist.isCell(event.target) && grd_bcolllist.row >= grd_bcolllist.fixedRows ){
  182. fClickbcolllist(grd_bcolllist.row);
  183. }
  184. ]]>
  185. </script>
  186. </datagrid>
  187. <group id="group1" style="left:0px; top:10px; width:1190px; height:35px; ">
  188. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
  189. <caption id="caption4" class="search_name" style="left:20px; top:9px; width:90px; height:17px; ">등록번호:</caption>
  190. <input id="iptSearch" ref="/root/hidden/ref/searchtext" class="input_s_button" navindex="1" inputtype="button" style="left:105px; top:8px; width:165px; height:19px; ">
  191. <script type="javascript" ev:event="onbuttonclick">
  192. <![CDATA[
  193. fGetResultListRef();
  194. ]]>
  195. </script>
  196. <script type="javascript" ev:event="onkeypress">
  197. <![CDATA[
  198. fPidRef();
  199. ]]>
  200. </script>
  201. </input>
  202. <select1 id="combo1" ref="/root/hidden/ref/spccho" appearance="minimal" style="left:995px; top:8px; width:160px; height:19px; ">
  203. <choices>
  204. <itemset nodeset="/root/init/spccdlist">
  205. <label ref="nm"/>
  206. <value ref="cd"/>
  207. </itemset>
  208. </choices>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. fSetSpccd();
  212. ]]>
  213. </script>
  214. </select1>
  215. <caption id="caption1" class="search_name" style="left:900px; top:9px; width:90px; height:17px; ">검체선택 :</caption>
  216. </group>
  217. <datagrid id="prcplist" nodeset="/root/main/prcplist" class="datagrid2" caption="^처방코드^처방명칭^처방일자^등록일자^처방의사^수납^처방상태^처방검체^진검검체^전환" colsep="▦" colwidth="20, 70, 170, 85, 125, 70, 31, 60, 100, 115, 45, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:280px; top:75px; width:910px; height:669px; ">
  218. <col checkvalue="true,false" ref="chk" type="checkbox" style="text-align:center; "/>
  219. <col ref="prcpcd" style="text-align:center; "/>
  220. <col ref="prcpnm" style="text-align:center; "/>
  221. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  222. <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  223. <col ref="prcpdr" style="text-align:center; "/>
  224. <col ref="calyn" style="text-align:center; "/>
  225. <col ref="prcpstatcd" style="text-align:center; "/>
  226. <col ref="prcpspccd" style="text-align:center; "/>
  227. <col ref="spccdnm" style="text-align:center; "/>
  228. <col ref="migyn" style="text-align:center; "/>
  229. <col ref="spccd" visibility="hidden" style="text-align:center; "/>
  230. <col ref="prcpno" visibility="hidden" style="text-align:center; "/>
  231. <col ref="prcphistno" visibility="hidden" style="text-align:center; "/>
  232. <script type="javascript" ev:event="onaftersort">
  233. <![CDATA[
  234. prcplist.gridToInstance();
  235. ]]>
  236. </script>
  237. <script type="javascript" ev:event="onclick">
  238. <![CDATA[
  239. if(prcplist.isCell(event.target) && prcplist.row >= prcplist.fixedRows ){
  240. fGetspccd();
  241. }
  242. ]]>
  243. </script>
  244. </datagrid>
  245. <line id="line2" class="line_1" style="x1:280px; y1:70px; x2:1190px; y2:70px; "/>
  246. <caption id="caption3" class="tit_2" style="left:280px; top:55px; width:134px; height:13px; ">처방내역</caption>
  247. </group>
  248. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  249. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  250. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  251. <caption>저장</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. fExe();
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  259. <caption>초기화</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fSetInit();
  263. ]]>
  264. </script>
  265. </button>
  266. </group>
  267. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  268. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">처방조회</caption>
  269. </group>
  270. </xhtml:body>
  271. </xhtml:html>