SMLBP01400_혈액반납폐기목록조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBP01400_혈액반납폐기목록조회.xrw
  4. * 설 명 : 혈액반납폐기목록조회
  5. * 설 계 자 : (주)에이씨케이 - 윤재한
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007.08.20
  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. <rtnabnlist>
  20. <blodno/>
  21. <comcd/>
  22. <btype/>
  23. <testpsn/>
  24. <acptpsn/>
  25. <rtnabn/>
  26. <cnfmdt/>
  27. <cnfm/>
  28. <rsn/>
  29. </rtnabnlist>
  30. <rtnpsnnm/>
  31. </main>
  32. <send>
  33. <rtnpsn/>
  34. <pid/>
  35. <blodno/>
  36. <flag/>
  37. <appsdt/>
  38. <appedt/>
  39. <abn/>
  40. </send>
  41. <init>
  42. </init>
  43. <hidden>
  44. <rtnpsn/>
  45. <pid/>
  46. <blodno/>
  47. <flag/>
  48. <appsdt/>
  49. <appedt/>
  50. <abn/>
  51. </hidden>
  52. </root>
  53. </instance>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fSetInit();
  59. group3.disabled = true;
  60. group2.disabled = true;
  61. model.setFocus("ID_txt");
  62. ]]>
  63. </script>
  64. <submission id="TRLBP01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  65. <submission id="TRLBP01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnabnlist"/>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. //초기화
  70. function fSetInit() {
  71. var toDay = getCurrentDate();
  72. model.setValue("/root/hidden/rtnpsn", "");
  73. model.setValue("/root/main/rtnpsnnm", "");
  74. model.setValue("/root/hidden/pid", "");
  75. model.setValue("/root/hidden/blodno", "");
  76. model.setValue("/root/hidden/flag", "0");
  77. model.setValue("/root/hidden/appsdt", toDay);
  78. model.setValue("/root/hidden/appedt", toDay);
  79. model.setValue("/root/hidden/abn", "");
  80. opt_abn.value = "";
  81. model.removeNodeset("/root/main/rtnabnlist");
  82. model.refresh();
  83. }
  84. //반환(폐기)자 조회
  85. function fGetRtnPsnNm() {
  86. model.setValue("/root/hidden/rtnpsn", ipt_rtnpsn.currentText);
  87. model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
  88. submit("TRLBP01401");
  89. }
  90. //조회
  91. function fGetRtnAbnList() {
  92. model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
  93. model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
  94. model.setValue("/root/send/blodno", model.getValue("/root/hidden/blodno"));
  95. model.setValue("/root/send/flag", model.getValue("/root/hidden/flag"));
  96. model.setValue("/root/send/appsdt", model.getValue("/root/hidden/appsdt"));
  97. model.setValue("/root/send/appedt", model.getValue("/root/hidden/appedt"));
  98. model.setValue("/root/send/abn", model.getValue("/root/hidden/abn"));
  99. submit("TRLBP01402");
  100. }
  101. //엑셀저장
  102. function fSaveExcel() {
  103. var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*) || *.* ||Excel Files(*.xls) || *.xls");
  104. if(filename != "") {
  105. grd_rtnabnlist.saveExcel(filename);
  106. }
  107. }
  108. //키이벤트발생
  109. function fKeyEvent() {
  110. if(event.keyCode == "13") {
  111. if(event.target == "ipt_rtnpsn") {
  112. fGetRtnPsnNm();
  113. model.setFocus("ipt_pid");
  114. }
  115. }
  116. }
  117. ]]>
  118. </script>
  119. </xhtml:head>
  120. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="group4" style="left:0px; top:40px; width:1195px; height:744px; ">
  122. <caption id="caption11" class="tit_2" style="left:5px; top:80px; width:139px; height:13px; ">반환(폐기) 목록</caption>
  123. <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  124. <datagrid id="grd_rtnabnlist" nodeset="/root/main/rtnabnlist" caption="혈액번호^혈액성분^B Type^검사자^수령자^반환/폐기^확인일시^확인^사유" colsep="^" colwidth="120, 160, 80, 75, 75, 80, 120, 40, 410" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:100px; width:1194px; height:623px; text-align:center; ">
  125. <col ref="blodno"/>
  126. <col ref="comcd"/>
  127. <col ref="btype"/>
  128. <col ref="testpsn"/>
  129. <col ref="acptpsn"/>
  130. <col ref="rtnabn"/>
  131. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn"/>
  132. <col checkvalue="true,false" ref="cnfm" type="checkbox"/>
  133. <col ref="rsn" style="text-align:left; "/>
  134. </datagrid>
  135. <group id="group2" style="left:0px; top:10px; width:1195px; height:60px; ">
  136. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:60px; "/>
  137. <select1 id="rdo_flag" ref="/root/hidden/flag" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:830px; top:10px; width:187px; height:13px; border-style:none; ">
  138. <choices>
  139. <item>
  140. <label>전체</label>
  141. <value>0</value>
  142. </item>
  143. <item>
  144. <label>반환</label>
  145. <value>1</value>
  146. </item>
  147. <item>
  148. <label>폐기</label>
  149. <value>2</value>
  150. </item>
  151. </choices>
  152. </select1>
  153. <input id="ipt_appsdt" ref="/root/hidden/appsdt" class="input_search" inputtype="date" style="left:130px; top:33px; width:90px; height:19px; "/>
  154. <input id="ipt_sppedt" ref="/root/hidden/appedt" class="input_search" inputtype="date" style="left:242px; top:33px; width:90px; height:19px; "/>
  155. <input id="ipt_abn" ref="/root/hidden/abn" class="input_search" style="left:439px; top:33px; width:100px; height:19px; "/>
  156. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
  157. <caption>조회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. fGetRtnAbnList();
  161. ]]>
  162. </script>
  163. </button>
  164. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:111px; height:17px; ">반환(폐기)자 :</caption>
  165. <caption id="caption1" class="search_name" style="left:348px; top:34px; width:90px; height:17px; ">폐기사유 :</caption>
  166. <caption id="caption3" class="search_name" style="left:15px; top:34px; width:89px; height:17px; ">신청일시 :</caption>
  167. <line id="line13" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:52px; "/>
  168. <caption id="caption6" class="search_name" style="left:348px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  169. <caption id="caption7" class="search_name" style="left:762px; top:9px; width:65px; height:17px; ">구분 :</caption>
  170. <input id="ipt_rtnpsn" ref="/root/hidden/rtnpsn" class="input_search" maxlength="10" style="left:130px; top:8px; width:100px; height:19px; ">
  171. <script type="javascript" ev:event="DOMFocusOut">
  172. <![CDATA[
  173. // fGetRtnPsnNm();
  174. ]]>
  175. </script>
  176. </input>
  177. <output id="opt_rtnpsnnm" ref="/root/main/rtnpsnnm" class="output_search" style="left:232px; top:8px; width:100px; height:19px; "/>
  178. <input id="ipt_pid" ref="/root/hidden/pid" class="input_search" style="left:439px; top:8px; width:100px; height:19px; "/>
  179. <caption id="caption8" class="search_name" style="left:555px; top:9px; width:86px; height:17px; ">혈액번호 :</caption>
  180. <input id="ipt_blodno" ref="/root/hidden/blodno" class="input_search" style="left:646px; top:8px; width:100px; height:19px; "/>
  181. <button id="button61" class="icon_search" style="left:542px; top:35px; width:16px; height:16px; ">
  182. <caption/>
  183. </button>
  184. <output id="opt_abn" class="output_search" style="left:564px; top:33px; width:436px; height:19px; "/>
  185. <caption id="caption4" class="search_no_b" style="left:225px; top:34px; width:15px; height:17px; ">~</caption>
  186. </group>
  187. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  188. <caption>엑셀</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fSaveExcel();
  192. ]]>
  193. </script>
  194. </button>
  195. </group>
  196. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  197. <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">혈액반납폐기목록조회</caption>
  198. </group>
  199. <group id="group3" style="left:0px; top:13px; width:1195px; height:27px; ">
  200. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  201. <caption>초기화</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. fSetInit();
  205. ]]>
  206. </script>
  207. </button>
  208. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  209. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  210. <caption>저장</caption>
  211. </button>
  212. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  213. <caption>출력</caption>
  214. </button>
  215. </group>
  216. <script type="javascript" ev:event="onkeypress">
  217. <![CDATA[
  218. fKeyEvent();
  219. ]]>
  220. </script>
  221. <group id="Group_idChk" style="left:476px; top:250px; width:280px; height:165px; background-color:#ff99cc; border-color:#5abaff; border-width:1px; border-style:solid; ">
  222. <caption id="caption9" style="left:19px; top:19px; width:249px; height:70px; font-size:18pt; font-weight:bold; ">반환자를 입력하세요</caption>
  223. <textarea id="ID_txt" overflow="hidden" style="left:34px; top:89px; width:195px; height:55px; font-size:22pt; ">
  224. <script type="javascript" ev:event="onkeypress">
  225. <![CDATA[
  226. if(event.keyCode == "13"){
  227. var I_txt = ID_txt.currentText;
  228. model.setValue("/root/hidden/rtnpsn", I_txt);
  229. model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
  230. submit("TRLBP01401");
  231. if(model.getValue("/root/main/rtnpsnnm") == ""){
  232. }else{
  233. model.setFocus("ipt_pid");
  234. ipt_pid.selBegin = 0;
  235. ipt_pid.selEnd = ipt_pid.currentText.length;
  236. Group_idChk.visible = false;
  237. group3.disabled = false;
  238. group2.disabled = false;
  239. }
  240. }
  241. ]]>
  242. </script>
  243. </textarea>
  244. <button id="button44" style="left:232px; top:119px; width:42px; height:25px; font-size:8pt; font-weight:bold; color:#003399; text-align:center; background-image:../../../lis\commonweb\images\btn_lis.gif; background-repeat:no-repeat; background-stretch:stretch; ">
  245. <caption>닫기</caption>
  246. <script type="javascript" ev:event="onclick">
  247. <![CDATA[
  248. Group_idChk.visible = false;
  249. ]]>
  250. </script>
  251. </button>
  252. </group>
  253. </xhtml:body>
  254. </xhtml:html>