SMABS10400_HLA통계.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>HLA 통계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hlalist>
  11. <hlastats>
  12. <hngnm/>
  13. <boneassocd/>
  14. <pid/>
  15. <dnorid/>
  16. <trnptdd/>
  17. <pata1/>
  18. <pata2/>
  19. <patb1/>
  20. <patb2/>
  21. <patcw1/>
  22. <patcw2/>
  23. <patdrb11/>
  24. <patdrb12/>
  25. <patdq1/>
  26. <patdq2/>
  27. <patdp1/>
  28. <patdp2/>
  29. <dnora1/>
  30. <dnora2/>
  31. <dnorb1/>
  32. <dnorb2/>
  33. <dnorcw1/>
  34. <dnorcw2/>
  35. <dnordrb11/>
  36. <dnordrb12/>
  37. <dnordq1/>
  38. <dnordq2/>
  39. <dnordp1/>
  40. <dnordp2/>
  41. <boneassocd/>
  42. <termdd/>
  43. </hlastats>
  44. </hlalist>
  45. <hsctinfo>
  46. <patinfolist>
  47. <hngnm/>
  48. <rrgstno1/>
  49. <age/>
  50. <sex/>
  51. <pid/>
  52. <rrgstno2/>
  53. </patinfolist>
  54. </hsctinfo>
  55. <popupendflag/>
  56. </main>
  57. <send>
  58. <req>
  59. <trnptfromdd/>
  60. <trnpttodd/>
  61. <trnptyn/>
  62. <trnptflag/>
  63. <boneassocd/>
  64. <pid/>
  65. </req>
  66. </send>
  67. <init>
  68. <cmbinfo>
  69. <boneassocd>
  70. <A0164>
  71. <cdid/>
  72. <cdnm/>
  73. </A0164>
  74. <A0165>
  75. <cdid/>
  76. <cdnm/>
  77. </A0165>
  78. </boneassocd>
  79. </cmbinfo>
  80. </init>
  81. <hidden/>
  82. <temp>
  83. <rcptbase>
  84. <boneassocdlist>
  85. <item/>
  86. </boneassocdlist>
  87. </rcptbase>
  88. <bmtpatientinfo/>
  89. <tempcodeinfo/>
  90. <tempcodeinfo2/>
  91. </temp>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. //zbcfGetCodeList( new Array("A0164", "A0165"), new Array("/root/init/cmbinfo/boneassocd", "/root/init/cmbinfo/boneassocd"));
  97. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  98. aboGetCodeList(new Array("A0164", "A0165"), new Array("/root/init/cmbinfo/boneassocd", "/root/init/cmbinfo/boneassocd2"));
  99. var scurrentdd = getCurrentDate();
  100. model.setValue("/root/send/req/trnptfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  101. model.setValue("/root/send/req/trnpttodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  102. if(model.getValue("/root/send/req/trnptflag") == ""){
  103. model.setValue("/root/send/req/trnptflag", "U");
  104. }
  105. fSetBoneAssocd();
  106. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  107. if ( checkOpener()) {
  108. var param = opener.javascript.getParameter("opener_parameter_id");
  109. if(param != "") // opener parameter value가 있는 경우
  110. {
  111. //parameter value를 이용하여 프로그램 수행
  112. condarray = param.split("▦");
  113. model.setValue("/root/send/req/pid", condarray[0]);
  114. return;
  115. }
  116. }
  117. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  118. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  119. if ( paminfo != "" ) {
  120. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  121. model.makeNode("/root/temp/paminfo");
  122. setCSVToNode("/root/temp/paminfo", paminfo);
  123. //상단 정보를 이용하여 프로그램 수행
  124. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  125. model.setValue("/root/send/req/pid", pid);
  126. } else {
  127. //세션에 저장된 PID정보를 가져옴.
  128. var gv_pid = getGlobalVariable("gv_pid", "A");
  129. if(gv_pid != "") {
  130. model.setValue("/root/send/req/pid", gv_pid);
  131. }
  132. }
  133. model.refresh();
  134. ]]>
  135. </script>
  136. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  137. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  141. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  142. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  143. <script type="javascript" src="../js/AEA0001.js"/>
  144. <submission id="TRABS10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/hlalist"/>
  145. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  146. <script type="javascript">
  147. <![CDATA[
  148. /* @group : HLA 통계
  149. * @ver : 2008.08.05
  150. * @by : 김은지
  151. * @type : function
  152. * @access : public
  153. * @desc : UBMT/CORD 값에 따라 협회 콤보박스의 목록을 세팅한다.
  154. * @param :
  155. */
  156. function fSetBoneAssocd(){
  157. //UBMT의 경우 (UBMT 협회코드 : A0164)
  158. if(model.getValue("/root/send/req/trnptflag") == "U"){
  159. copyNodesetType("/root/temp/rcptbase/boneassocdlist/item", "/root/init/cmbinfo/boneassocd/A0164", "replace");
  160. }
  161. //CORD의 경우 (CORD 협회코드 : A0165)
  162. else{
  163. copyNodesetType("/root/temp/rcptbase/boneassocdlist/item", "/root/init/cmbinfo/boneassocd2/A0165", "replace");
  164. }
  165. model.refresh();
  166. }
  167. ]]>
  168. </script>
  169. </model>
  170. </xhtml:head>
  171. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  172. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  173. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">HLA통계</caption>
  174. </group>
  175. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  176. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:13px; ">HLA통계</caption>
  177. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  178. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  179. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  180. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(이식일) :</caption>
  181. <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  182. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  183. <input id="input1" ref="/root/send/req/trnptfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  184. <input id="input25" ref="/root/send/req/trnpttodd" class="input_s_essential" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
  185. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  186. <caption>조회</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. submit("TRABS10401");
  190. ]]>
  191. </script>
  192. </button>
  193. <select1 id="rdo_trnptflag" ref="/root/send/req/trnptflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:490px; top:10px; width:130px; height:45px; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>UBMT</label>
  197. <value>U</value>
  198. </item>
  199. <item>
  200. <label>CORD</label>
  201. <value>C</value>
  202. </item>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. fSetBoneAssocd(); //UBMT/CORD에 따라 협회 콤보 세팅
  207. ]]>
  208. </script>
  209. </select1>
  210. <select1 id="cmb_assocd" ref="/root/send/req/boneassocd" class="combo_search" appearance="minimal" style="left:690px; top:8px; width:140px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/temp/rcptbase/boneassocdlist/item">
  213. <label ref="cdnm"/>
  214. <value ref="cdid"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <caption id="caption3" class="search_name" style="left:623px; top:10px; width:60px; height:17px; ">협회 :</caption>
  219. <caption id="caption4" class="search_name" style="left:369px; top:10px; width:117px; height:17px; ">UBMT/CORD :</caption>
  220. <input id="ipt_pid" ref="/root/send/req/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:940px; top:8px; width:100px; height:19px; ">
  221. <script type="javascript" ev:event="onkeyup">
  222. <![CDATA[
  223. inputEnterKey("btn_sea", "DOMActivate");
  224. ]]>
  225. </script>
  226. <script type="javascript" ev:event="xforms-next">
  227. <![CDATA[
  228. model.setFocus( "ipt_pid");
  229. ]]>
  230. </script>
  231. <script type="javascript" ev:event="onbuttonclick">
  232. <![CDATA[
  233. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  234. model.setValue("/root/send/req/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  235. ipt_pid.refresh();
  236. ]]>
  237. </script>
  238. </input>
  239. <caption id="caption16" class="search_name" style="left:851px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  240. </group>
  241. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  242. <caption>엑셀저장</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var fileName = window.fileDialog("save", ",", false, "HLA통계", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  246. if (fileName != "")
  247. {
  248. grd_hlalist.saveExcel(fileName);
  249. }
  250. ]]>
  251. </script>
  252. </button>
  253. <datagrid id="grd_hlalist" nodeset="/root/main/hlalist/hlastats" class="datagrid1" caption="환자명^협회^등록번호^공여자 ID^이식일^환자^환자^환자^환자^환자^환자^환자^환자^환자^환자^환자^환자^공여자^공여자^공여자^공여자^공여자^공여자^공여자^공여자^공여자^공여자^공여자^소요기간|환자명^협회^등록번호^공여자 ID^이식일^A^A^B^B^C^C^BRB1^BRB1^DQ^DQ^DP^DP^A^A^B^B^C^BRB1^BRB1^DQ^DQ^DP^DP^등록일^종결일^소요기간" colsep="^" colwidth="80, 80, 100, 80, 86, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 0, 0, 100" dataheight="23" defaultrows="3" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:665px; text-align:center; ">
  254. <col ref="hngnm" type="output"/>
  255. <col ref="boneassonm"/>
  256. <col ref="pid"/>
  257. <col ref="dnorid" type="output"/>
  258. <col ref="trnptdd" format="yyyy-mm-dd"/>
  259. <col ref="pata1"/>
  260. <col ref="pata2"/>
  261. <col ref="patb1"/>
  262. <col ref="patb2"/>
  263. <col ref="patcw1"/>
  264. <col ref="patcw2"/>
  265. <col ref="patdrb11"/>
  266. <col ref="patdrb12"/>
  267. <col ref="patdq1"/>
  268. <col ref="patdq2"/>
  269. <col ref="patdp1"/>
  270. <col ref="patdp2"/>
  271. <col ref="dnora1"/>
  272. <col ref="dnora2"/>
  273. <col ref="dnorb1"/>
  274. <col ref="dnorb2"/>
  275. <col ref="dnorcw1"/>
  276. <col ref="dnorcw2"/>
  277. <col ref="dnordrb11"/>
  278. <col ref="dnordrb12"/>
  279. <col ref="dnordq1"/>
  280. <col ref="dnordq2"/>
  281. <col ref="dnordp1"/>
  282. <col ref="rgstdd"/>
  283. <col ref="prcsenddd"/>
  284. <col ref="termdd"/>
  285. <script type="javascript" ev:event="onaftersort">
  286. <![CDATA[
  287. grd_hlalist.gridToInstance();
  288. ]]>
  289. </script>
  290. </datagrid>
  291. </group>
  292. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  293. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  294. <caption>출력</caption>
  295. </button>
  296. </group>
  297. </xhtml:body>
  298. </xhtml:html>