SMABO00300_비혈연공여자검색의뢰.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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 xmlns="">
  9. <main>
  10. <reqlist>
  11. <item>
  12. <hngnm/>
  13. <pid/>
  14. <reqorddept/>
  15. <reqnm/>
  16. <diagnm/>
  17. <reqdd/>
  18. <reqqualyn/>
  19. <reqqualdd/>
  20. <reqcnfmrid/>
  21. <trnptflag/>
  22. <reqid/>
  23. </item>
  24. </reqlist>
  25. <hsctinfo>
  26. <patinfolist>
  27. <hngnm/>
  28. <rrgstno1/>
  29. <age/>
  30. <sex/>
  31. <pid/>
  32. <rrgstno2/>
  33. </patinfolist>
  34. </hsctinfo>
  35. <popupendflag/>
  36. </main>
  37. <send>
  38. <reqfromdd/>
  39. <reqtodd/>
  40. <reqid/>
  41. <trnptflag>U</trnptflag>
  42. <req>
  43. <data/>
  44. </req>
  45. <globalinstance>
  46. <instance1/>
  47. </globalinstance>
  48. <pid/>
  49. </send>
  50. <init>
  51. <cmbinfo>
  52. <atdoctid>
  53. <A0536>
  54. <cdnm/>
  55. <cdid/>
  56. </A0536>
  57. </atdoctid>
  58. </cmbinfo>
  59. </init>
  60. <hidden>
  61. <count/>
  62. <item/>
  63. </hidden>
  64. <temp>
  65. <bmtpatientinfo/>
  66. <tempcodeinfo/>
  67. <tempcodeinfo2/>
  68. </temp>
  69. </root>
  70. </instance>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  74. aboGetCodeList(new Array("A0536"), new Array("/root/init/cmbinfo/atdoctid") );
  75. var reqfromdd = getCurrentDate().substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
  76. ipt_reqfromdd.value = reqfromdd;
  77. var reqtodd = getCurrentDate().substr(0,6) + reqfromdd.toDate().getMonthDay();
  78. ipt_reqtodd.value = reqtodd;
  79. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  80. if ( checkOpener()) {
  81. var param = opener.javascript.getParameter("opener_parameter_id");
  82. if(param != "") // opener parameter value가 있는 경우
  83. {
  84. //parameter value를 이용하여 프로그램 수행
  85. condarray = param.split("▦");
  86. model.setValue("/root/send/pid", condarray[0]);
  87. return;
  88. }
  89. }
  90. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  91. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  92. if ( paminfo != "" ) {
  93. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  94. model.makeNode("/root/temp/paminfo");
  95. setCSVToNode("/root/temp/paminfo", paminfo);
  96. //상단 정보를 이용하여 프로그램 수행
  97. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  98. model.setValue("/root/send/pid", pid);
  99. } else {
  100. //세션에 저장된 PID정보를 가져옴.
  101. var gv_pid = getGlobalVariable("gv_pid", "A");
  102. if(gv_pid != "") {
  103. model.setValue("/root/send/pid", gv_pid);
  104. }
  105. }
  106. //타부서에서는 버튼 비활성화
  107. btn_save.disabled = !checkAuth("X");
  108. model.refresh();
  109. ]]>
  110. </script>
  111. <submission id="TRABO00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqlist"/>
  112. <submission id="TXABO00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data" replace="instance" resultref="/root/hidden/item"/>
  113. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  114. </model>
  115. </xhtml:head>
  116. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  117. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  118. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  119. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  120. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  121. <xhtml:body pagewidth="945" pageheight="650" guideline="1,925;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="grp_tle" style="left:0px; top:0px; width:925px; height:13px; ">
  123. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">비혈연공여자 검색의뢰</caption>
  124. </group>
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:925px; height:600px; ">
  126. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:13px; ">비혈연공여자 검색의뢰 리스트</caption>
  127. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:924px; y2:70px; "/>
  128. <group id="grp_sea" style="left:0px; top:10px; width:925px; height:35px; vertical-align:top; ">
  129. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:924px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  130. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(의뢰일) :</caption>
  131. <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  132. <line id="line13" class="line_4" style="x1:837px; y1:7px; x2:837px; y2:29px; "/>
  133. <input id="ipt_reqfromdd" ref="/root/send/reqfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  134. <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_s_essential" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
  135. <select1 id="cmb_adoct" ref="/root/send/reqid" class="combo_search" appearance="minimal" style="left:440px; top:8px; width:100px; height:19px; ">
  136. <choices>
  137. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  138. <label ref="cdnm"/>
  139. <value ref="cdid"/>
  140. </itemset>
  141. </choices>
  142. </select1>
  143. <caption id="caption4" class="search_name" style="left:364px; top:9px; width:73px; height:17px; ">주치의 :</caption>
  144. <button id="btn_sea" class="btn1_letter2" style="left:853px; top:7px; width:56px; height:22px; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. submit("TRABO00301");
  149. ]]>
  150. </script>
  151. </button>
  152. <input id="ipt_pid" ref="/root/send/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:645px; top:8px; width:100px; height:19px; ">
  153. <script type="javascript" ev:event="onkeyup">
  154. <![CDATA[
  155. inputEnterKey("btn_sea", "DOMActivate");
  156. ]]>
  157. </script>
  158. <script type="javascript" ev:event="xforms-next">
  159. <![CDATA[
  160. model.setFocus( "ipt_pid");
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="onbuttonclick">
  164. <![CDATA[
  165. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  166. model.setValue("/root/send/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  167. ipt_pid.refresh();
  168. ]]>
  169. </script>
  170. </input>
  171. <caption id="caption16" class="search_name" style="left:556px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  172. </group>
  173. <button id="btn_excsave" class="btn2_letter4" style="left:860px; top:50px; width:64px; height:19px; ">
  174. <caption>엑셀저장</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var fileName = window.fileDialog("save", ",", false, "비혈연간공여자검색의뢰", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  178. if (fileName != "")
  179. {
  180. grd_reqlist.saveExcel(fileName);
  181. }
  182. ]]>
  183. </script>
  184. </button>
  185. <datagrid id="grd_reqlist" nodeset="/root/main/reqlist/item" caption="환자명^등록번호^진료과^주치의^진단명^의뢰일^확인^확인일자^trnptflag" colsep="^" colwidth="89, 81, 113, 95, 200, 100, 100, 100, 23" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:924px; height:521px; text-align:center; ">
  186. <col ref="hngnm"/>
  187. <col ref="pid"/>
  188. <col ref="reqorddept"/>
  189. <col ref="reqnm"/>
  190. <col ref="diagnm"/>
  191. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  192. <col checkvalue="Y,N" ref="reqqualyn" type="checkbox"/>
  193. <col ref="reqqualdd" format="yyyy-mm-dd" style="text-align:center; "/>
  194. <col ref="trnptflag" visibility="hidden"/>
  195. <script type="javascript" ev:event="onaftersort">
  196. <![CDATA[
  197. grd_reqlist.gridToInstance();
  198. ]]>
  199. </script>
  200. </datagrid>
  201. </group>
  202. <group id="grp_btn" style="left:0px; top:13px; width:925px; height:27px; ">
  203. <button id="btn_save" class="btn4_letter2" style="left:868px; top:5px; width:56px; height:22px; ">
  204. <caption>저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. model.setValue("/root/send/req/data", grd_reqlist.getUpdateData());
  208. submit("TXABO00301");
  209. submit("TRABO00301");
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  214. <caption>출력</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. exeReportPreview("RPABO00301", "XMLSTR", "/root/main/reqlist");
  218. ]]>
  219. </script>
  220. </button>
  221. </group>
  222. </xhtml:body>
  223. </xhtml:html>