SPLBT90200_특수혈액간호부전송.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SPLBT90200_특수혈액간호부전송.xrw
  4. * 설 명 : 특수혈액간호부전송
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2009.02.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>
  18. <main>
  19. <spclblodlist>
  20. <getspclblodlist>
  21. <chk/>
  22. <pid/>
  23. <patnm/>
  24. <prcpdd/>
  25. <prcphopedt/>
  26. <blodcomcd/>
  27. <tclsscrnnm/>
  28. <tnsreqacptdt/>
  29. <tnsreqacptno/>
  30. <iryn/>
  31. <prcperflag/>
  32. <reqty/>
  33. <btype/>
  34. <prcpgenrflag/>
  35. <orddeptnm/>
  36. <spclblodreqyn/>
  37. <trsmyn/>
  38. <trsmnm/>
  39. <trsmdt/>
  40. <nurstrsmnm/>
  41. <nurstrsmdt/>
  42. </getspclblodlist>
  43. </spclblodlist>
  44. </main>
  45. <send>
  46. <codeflag/>
  47. <trsmgbn/>
  48. <grddata/>
  49. <pid/>
  50. </send>
  51. <init>
  52. </init>
  53. <hidden>
  54. <ref>
  55. <trsmgbn/>
  56. <pid/>
  57. </ref>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB1101"/>
  65. <submission id="TRLBT90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclblodlist"/>
  66. <submission id="TXLBT90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. finit();
  70. ]]>
  71. </script>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. // 초기값
  76. function finit(){
  77. model.setValue("/root/send/codeflag", "1101|");
  78. submit("TRLZZ00101");
  79. //등록번호 초기화 및 포커스
  80. model.setFocus("ipt_pid");
  81. model.setValue("/root/hidden/ref/pid", "");
  82. btn_trsm.disabled = false;
  83. chk_trsmgbn.deselect(0);
  84. grd_spclblodlist.fixedcellcheckbox(0,1)=true; //해더에 전체체크박스 기능
  85. grd_spclblodlist.fixedcellischeck(0,1) = false; //전체체크 해제
  86. grd_spclblodlist.colHidden(1) = false; //체크박스 컬럼 보이기
  87. model.removeNodeset("/root/main/spclblodlist");
  88. model.refresh();
  89. fGetSpclBlodList();
  90. }
  91. //조회
  92. function fGetSpclBlodList(){
  93. model.removeNodeset("/root/main/getblodprcplist");
  94. model.refresh();
  95. model.setValue("/root/send/pid" , model.getValue("/root/hidden/ref/pid"));
  96. model.setValue("/root/send/trsmgbn" , model.getValue("/root/hidden/ref/trsmgbn"));
  97. submit("TRLBT90201");
  98. }
  99. //간호부전송
  100. function fSpclNursTrsmSave(){
  101. var cnt = getNodesetCount("/root/main/spclblodlist/getspclblodlist");
  102. var TF = false;
  103. for(iRow = 1; iRow <= cnt; iRow++){
  104. if(model.getValue("/root/main/spclblodlist/getspclblodlist["+iRow+"]/chk") == "Y"){
  105. grd_spclblodlist.addStatus(iRow, "insert");
  106. TF = true;
  107. }
  108. }
  109. if(TF){
  110. //alert(grd_spclblodlist.getUpdateData("insert"));
  111. model.setValue("/root/send/grddata" , grd_spclblodlist.getUpdateData("insert"));
  112. submit("TXLBT90201");
  113. grd_spclblodlist.clearStatus();
  114. grd_spclblodlist.fixedcellischeck(0,1) = false;
  115. grd_spclblodlist.refresh();
  116. fGetSpclBlodList();
  117. }else{
  118. messageBox("간호부 전송 할 내역이 없습니다." , "I");
  119. return;
  120. }
  121. }
  122. //전송완료포함 체크하면 간호부전송 버튼 disabled
  123. function fGridSetting(param){
  124. if(param == "Y"){
  125. btn_trsm.disabled = true;
  126. grd_spclblodlist.colHidden(1) = true;
  127. }else{
  128. btn_trsm.disabled = false;
  129. grd_spclblodlist.colHidden(1) = false;
  130. }
  131. }
  132. //키이벤트 엔터키 입력시
  133. function fKeyEvent(){
  134. if(event.keyCode == "13"){
  135. // 등록번호 바코드 리딩시
  136. if(event.target == "ipt_pid"){
  137. model.setvalue("/root/hidden/ref/pid", ipt_pid.currentText);
  138. fGetSpclBlodList();
  139. }
  140. }
  141. }
  142. ]]>
  143. </script>
  144. </xhtml:head>
  145. <xhtml:body pagewidth="1150" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  146. <group id="grp_btn" style="left:0px; top:0px; width:1130px; height:24px; ">
  147. <button id="btn_trsm" class="btn4_letter5" style="left:957px; top:1px; width:92px; height:22px; ">
  148. <caption>간호부전송</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. fSpclNursTrsmSave();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_clear" class="btn4_letter3" style="left:1051px; top:1px; width:68px; height:22px; ">
  156. <caption>초기화</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. finit();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:199px; height:13px; ">LRSDP 간호부전송</caption>
  164. </group>
  165. <group id="group1" scroll="auto" style="left:0px; top:25px; width:1130px; height:745px; ">
  166. <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:1120px; y2:55px; "/>
  167. <caption id="caption5" class="tit_2" style="left:5px; top:40px; width:270px; height:13px; ">처방 목록</caption>
  168. <group id="group2" style="left:0px; top:0px; width:1125px; height:35px; vertical-align:top; ">
  169. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1120px; height:35px; "/>
  170. <line id="line1" class="line_4" style="x1:360px; y1:5px; x2:360px; y2:27px; "/>
  171. <caption id="caption4" class="search_name" visibility="visible" style="left:11px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  172. <button id="btn_pid" class="btn1_letter2" style="left:375px; top:5px; width:56px; height:22px; ">
  173. <caption>조회</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. fGetSpclBlodList();
  177. ]]>
  178. </script>
  179. </button>
  180. <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_button" inputtype="button" style="left:100px; top:9px; width:100px; height:19px; "/>
  181. <select id="chk_trsmgbn" ref="/root/hidden/ref/trsmgbn" overflow="visible" appearance="full" style="left:230px; top:10px; width:100px; height:20px; border-style:none; ">
  182. <choices>
  183. <item>
  184. <label>전송완료 포함</label>
  185. <value>Y</value>
  186. </item>
  187. </choices>
  188. <script type="javascript" ev:event="onclick">
  189. <![CDATA[
  190. fGridSetting(chk_trsmgbn.value);
  191. fGetSpclBlodList();
  192. ]]>
  193. </script>
  194. </select>
  195. </group>
  196. <datagrid id="grd_spclblodlist" nodeset="/root/main/spclblodlist/getspclblodlist" class="datagrid2" caption="^전송&#xA;여부^등록번호^환자명^처방^Type^I^수량^E^처방부서^예약일시^접수일시^특수혈액&#xA;신청여부^간호부&#xA;전송일시^간호부&#xA;전송자^재접수일시^재접수자^성분제제코드^접수번호^prcpgenrflag" colsep="^" colwidth="25, 60, 80, 70, 60, 70, 30, 50, 30, 85, 102, 102, 0, 102, 51, 102, 60, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:60px; width:1120px; height:675px; ">
  197. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  198. <col ref="trsmyn" style="font-weight:bold; text-align:center; "/>
  199. <col ref="pid" style="font-weight:bold; text-align:center; "/>
  200. <col ref="patnm" style="font-weight:bold; text-align:center; "/>
  201. <col ref="tclsscrnnm" style="text-align:center; "/>
  202. <col ref="btype"/>
  203. <col ref="iryn" style="text-align:center; "/>
  204. <col ref="reqty" style="text-align:center; "/>
  205. <col ref="prcperflag" style="text-align:center; "/>
  206. <col ref="orddeptnm"/>
  207. <col ref="prcphopedt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  208. <col ref="tnsreqacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  209. <col ref="spclblodreqyn" style="text-align:center; "/>
  210. <col ref="trsmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  211. <col ref="trsmnm" style="text-align:center; "/>
  212. <col ref="nurstrsmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  213. <col ref="nurstrsmnm" style="text-align:center; "/>
  214. <col ref="blodcomcd" style="text-align:center; "/>
  215. <col ref="tnsreqacptno" style="text-align:center; "/>
  216. <col ref="prcpgenrflag" style="text-align:center; "/>
  217. <script type="javascript" ev:event="onaftersort">
  218. <![CDATA[
  219. //sort 후에 인스턴스 재정렬
  220. grd_spclblodlist.gridToInstance();
  221. ]]>
  222. </script>
  223. </datagrid>
  224. </group>
  225. <script type="javascript" ev:event="onkeypress">
  226. <![CDATA[
  227. fKeyEvent();
  228. ]]>
  229. </script>
  230. </xhtml:body>
  231. </xhtml:html>