SMLBP01800_NAT접수확인.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBP01800_NAT접수확인.xrw
  4. * 설 명 : NAT접수확인
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2008.02.18
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>NAT접수확인</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <natcnfm>
  20. <dnorlist>
  21. <tnsrpid/>
  22. <patnm/>
  23. <dnorno/>
  24. <dnornm/>
  25. <bcno/>
  26. <brgstno/>
  27. <bcolldt/>
  28. <spcacptdt/>
  29. <cnfmyn/>
  30. <execprcpuniqno/>
  31. <dnorseqno/>
  32. </dnorlist>
  33. <acptinfo>
  34. <bcollcnt/>
  35. <acptcnt/>
  36. <cnfmcnt/>
  37. </acptinfo>
  38. </natcnfm>
  39. </main>
  40. <send>
  41. <fromdd/>
  42. <todd/>
  43. <refgbn/>
  44. <grddata/>
  45. </send>
  46. <init>
  47. </init>
  48. <hidden>
  49. <ref>
  50. <fromdd/>
  51. <todd/>
  52. <refgbn/>
  53. </ref>
  54. </hidden>
  55. </root>
  56. </instance>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. fSetInit();
  62. ]]>
  63. </script>
  64. <submission id="TRLBP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/natcnfm"/>
  65. <submission id="TXLBP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 초기화
  70. function fSetInit() {
  71. model.resetInstanceNode("/root/send");
  72. model.resetInstanceNode("/root/main/natcnfm/acptinfo");
  73. model.removeNodeset("/root/main/natcnfm/dnorlist");
  74. grd_dnor.rebuild();
  75. model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
  76. model.setValue("/root/hidden/ref/todd", getCurrentDate());
  77. model.setValue("/root/hidden/ref/refgbn", "1"); // 0- 성분헌혈전송 1- 혈액은행접수 2- comfirm 완료
  78. model.refresh();
  79. }
  80. // 조회버튼
  81. function fGetNatAcpt(){
  82. model.resetInstanceNode("/root/main/natcnfm/acptinfo");
  83. model.removeNodeset("/root/main/natcnfm/dnorlist");
  84. grd_dnor.rebuild();
  85. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  86. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  87. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  88. submit("TRLBP01801");
  89. }
  90. // 저장버튼
  91. function fExeSave(){
  92. //if(model.getValue("/root/hidden/ref/refgbn")=="0"){
  93. // messageBox("접수된 검체만 comfirm완료 할 수 있습니다. ", "I");
  94. //}
  95. if(model.getValue("/root/hidden/ref/refgbn")=="1"){ // 혈액은행접수 라디오 선택
  96. var grddata = grd_dnor.getUpdateData();
  97. /*
  98. var chkyn = "";
  99. for(i=1; i< grd_dnor.rows; i++){
  100. if(model.getValue("/root/main/natcnfm/dnorlist["+i+"]/cnfmyn")=="Y"){
  101. chkyn += "1";
  102. }
  103. }
  104. if(chkyn==""){
  105. messageBox("confirm 할 검체 전송칸에 V체크 해주세요 ", "I");
  106. }else{
  107. */
  108. model.setValue("/root/send/grddata", grddata);
  109. if(submit("TXLBP01801")){
  110. fGetNatAcpt();
  111. }
  112. //}
  113. }
  114. }
  115. // 출력버튼
  116. function fExePrint(){
  117. }
  118. // 라디오버튼 선택시마다
  119. function fSetRadioSelect(){
  120. if(model.getValue("/root/hidden/ref/refgbn")=="0"){
  121. btn_save.disabled = "true";
  122. grd_dnor.colDisabled(9) = "ture";
  123. }else if(model.getValue("/root/hidden/ref/refgbn")=="1"){
  124. btn_save.disabled = "false";
  125. grd_dnor.colDisabled(9) = "false";
  126. }else if(model.getValue("/root/hidden/ref/refgbn")=="2"){
  127. btn_save.disabled = "true";
  128. grd_dnor.colDisabled(9) = "ture";
  129. }
  130. }
  131. // 엑셀 저장
  132. function fExeExcel(pGridId) {
  133. var fileName = window.fileDialog("save", ",", false, "NAT접수_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  134. if (fileName != "")
  135. {
  136. pGridId.saveExcel(fileName, "", "", "", "", "0");
  137. }
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="group4" style="left:0px; top:40px; width:1195px; height:744px; ">
  144. <caption id="caption11" class="tit_2" style="left:5px; top:55px; width:94px; height:13px; ">접수정보</caption>
  145. <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:586px; y2:70px; "/>
  146. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; ">
  147. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:35px; "/>
  148. <input id="input1" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
  149. <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  150. <caption>조회</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. // 조회버튼
  154. fGetNatAcpt();
  155. ]]>
  156. </script>
  157. </button>
  158. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">접수일시 :</caption>
  159. <caption id="caption1" class="search_name" style="left:345px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  160. <line id="line13" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  161. <input id="input2" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:225px; top:8px; width:100px; height:19px; "/>
  162. <caption id="caption4" class="search_no_b" style="left:209px; top:9px; width:15px; height:17px; ">~</caption>
  163. <select1 id="rdo_refgbn" ref="/root/hidden/ref/refgbn" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:440px; top:10px; width:317px; height:13px; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>성분헌혈 전송</label>
  167. <value>0</value>
  168. </item>
  169. <item>
  170. <label>혈액은행 접수</label>
  171. <value>1</value>
  172. </item>
  173. <item>
  174. <label>Confirm 완료</label>
  175. <value>2</value>
  176. </item>
  177. </choices>
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. fSetRadioSelect();
  181. ]]>
  182. </script>
  183. </select1>
  184. </group>
  185. <caption id="caption3" class="tit_2" style="left:5px; top:107px; width:109px; height:13px; ">공여자 리스트</caption>
  186. <line id="line2" class="line_1" style="x1:0px; y1:122px; x2:1194px; y2:122px; "/>
  187. <caption id="caption12" class="cell_1" style="left:0px; top:75px; width:90px; height:23px; vertical-align:middle; ">성분헌혈 전송</caption>
  188. <output id="output3" ref="/root/main/natcnfm/acptinfo/bcollcnt" class="output_fix" style="left:93px; top:76px; width:100px; height:19px; "/>
  189. <caption id="caption6" class="cell_1" style="left:196px; top:75px; width:90px; height:23px; vertical-align:middle; ">혈액은행 접수</caption>
  190. <output id="output1" ref="/root/main/natcnfm/acptinfo/acptcnt" class="output_fix" style="left:289px; top:76px; width:100px; height:19px; "/>
  191. <caption id="caption7" class="cell_1" style="left:392px; top:75px; width:90px; height:23px; vertical-align:middle; ">Confirm 완료</caption>
  192. <output id="output2" ref="/root/main/natcnfm/acptinfo/cnfmcnt" class="output_fix" style="left:486px; top:76px; width:100px; height:19px; "/>
  193. <line id="line8" class="line_3" style="x1:0px; y1:97px; x2:586px; y2:97px; "/>
  194. <datagrid id="grd_dnor" nodeset="/root/main/natcnfm/dnorlist" caption="등록번호^환자성명^공여자번호^공여자명^바코드번호^헌혈증번호^성분헌혈 출고 일시^혈액은행 접수 일시^전송^uniqno^dnorseqno" colsep="^" colwidth="80, 80, 80, 80, 120, 120, 200, 200, 50, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:127px; width:1194px; height:600px; ">
  195. <col ref="tnsrpid"/>
  196. <col ref="patnm"/>
  197. <col ref="dnorno"/>
  198. <col ref="dnornm"/>
  199. <col ref="bcno"/>
  200. <col ref="brgstno"/>
  201. <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss"/>
  202. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss"/>
  203. <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
  204. <col ref="execprcpuniqno"/>
  205. <col ref="dnorseqno"/>
  206. </datagrid>
  207. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:101px; width:64px; height:19px; ">
  208. <caption>엑셀저장</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fExeExcel(grd_dnor);
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  217. <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">혈액은행 NAT 접수 확인</caption>
  218. </group>
  219. <group id="group3" style="left:0px; top:13px; width:1195px; height:27px; ">
  220. <button id="btn_cle" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  221. <caption>초기화</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. fSetInit();
  225. ]]>
  226. </script>
  227. </button>
  228. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  229. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  230. <caption>출력</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. fExePrint();
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  238. <caption>저장</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fExeSave();
  242. ]]>
  243. </script>
  244. </button>
  245. </group>
  246. </xhtml:body>
  247. </xhtml:html>