SMABO01900_환자주소록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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>환자 주소록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <pataddress>
  11. <item>
  12. <chk/>
  13. <pid/>
  14. <hngnm/>
  15. <trnptkind/>
  16. <trnptdd/>
  17. <zipcd/>
  18. <address/>
  19. <cntctel/>
  20. <mpphontel/>
  21. <day100dd/>
  22. <month6dd/>
  23. <year1dd/>
  24. </item>
  25. </pataddress>
  26. <prtpataddress>
  27. <item>
  28. <chk/>
  29. <pid/>
  30. <hngnm/>
  31. <trnptkind/>
  32. <trnptdd/>
  33. <zipcd/>
  34. <address/>
  35. <cntctel/>
  36. <mpphontel/>
  37. <day100dd/>
  38. <month6dd/>
  39. <year1dd/>
  40. </item>
  41. </prtpataddress>
  42. <hsctinfo>
  43. <patinfolist>
  44. <hngnm/>
  45. <rrgstno1/>
  46. <age/>
  47. <sex/>
  48. <pid/>
  49. <rrgstno2/>
  50. </patinfolist>
  51. </hsctinfo>
  52. <popupendflag/>
  53. </main>
  54. <send>
  55. <req>
  56. <trnptfromdd/>
  57. <trnpttodd/>
  58. <address/>
  59. <atdoctid/>
  60. <deptcd/>
  61. <dethyn/>
  62. <pid/>
  63. </req>
  64. </send>
  65. <init>
  66. <cmbinfo>
  67. <deptcd>
  68. <A0478>
  69. <cdid/>
  70. <cdnm/>
  71. </A0478>
  72. </deptcd>
  73. <atdoctid>
  74. <A0536>
  75. <cdid/>
  76. <cdnm/>
  77. </A0536>
  78. </atdoctid>
  79. </cmbinfo>
  80. </init>
  81. <temp>
  82. <printflag/>
  83. <allselect/>
  84. <bmtpatientinfo/>
  85. <tempcodeinfo/>
  86. <tempcodeinfo2/>
  87. </temp>
  88. <hidden>
  89. <count/>
  90. <item/>
  91. </hidden>
  92. </root>
  93. </instance>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  99. <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/pid" replace="instance" resultref="/root/main/hsctinfo"/>
  100. <submission id="TRABO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/pataddress"/>
  101. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  102. <script type="javascript" ev:event="xforms-ready">
  103. <![CDATA[
  104. var trnptfromdd = getCurrentDate().substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
  105. ipt_trnptfromdd.value = trnptfromdd;
  106. var trnpttodd = getCurrentDate().substr(0,6) + trnptfromdd.toDate().getMonthDay();
  107. ipt_trnpttodd.value = trnpttodd;
  108. //zbcfGetCodeList( new Array("A0478", "A0536"), new Array("/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid") );
  109. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  110. aboGetCodeList(new Array("A0478", "A0536"), new Array("/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid"));
  111. grd_pataddress.fixedcellcheckbox(0,1) = true;
  112. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  113. if ( checkOpener()) {
  114. var param = opener.javascript.getParameter("opener_parameter_id");
  115. if(param != "") // opener parameter value가 있는 경우
  116. {
  117. //parameter value를 이용하여 프로그램 수행
  118. condarray = param.split("▦");
  119. model.setValue("/root/send/req/pid", condarray[0]);
  120. return;
  121. }
  122. }
  123. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  124. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  125. if ( paminfo != "" ) {
  126. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  127. model.makeNode("/root/temp/paminfo");
  128. setCSVToNode("/root/temp/paminfo", paminfo);
  129. //상단 정보를 이용하여 프로그램 수행
  130. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  131. model.setValue("/root/send/req/pid", pid);
  132. } else {
  133. //세션에 저장된 PID정보를 가져옴.
  134. var gv_pid = getGlobalVariable("gv_pid", "A");
  135. if(gv_pid != "") {
  136. model.setValue("/root/send/req/pid", gv_pid);
  137. }
  138. }
  139. model.refresh();
  140. ]]>
  141. </script>
  142. </model>
  143. </xhtml:head>
  144. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  145. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  146. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">환자주소록</caption>
  147. </group>
  148. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  149. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:84px; height:13px; ">환자주소록</caption>
  150. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  151. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  152. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  153. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(이식일) :</caption>
  154. <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  155. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:51px; "/>
  156. <caption id="caption33" class="search_name" style="left:635px; top:9px; width:60px; height:17px; ">사망 :</caption>
  157. <input id="ipt_trnptfromdd" ref="/root/send/req/trnptfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  158. <input id="ipt_trnpttodd" ref="/root/send/req/trnpttodd" class="input_s_essential" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
  159. <select1 id="radio10" ref="/root/send/req/dethyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:698px; top:8px; width:174px; height:20px; background-color:transparent; border-style:none; ">
  160. <choices>
  161. <item>
  162. <label>전체</label>
  163. <value>A</value>
  164. </item>
  165. <item>
  166. <label>사망</label>
  167. <value>D</value>
  168. </item>
  169. <item>
  170. <label>생존</label>
  171. <value>L</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <select1 id="combo1" ref="/root/send/req/atdoctid" class="combo_search" appearance="minimal" style="left:455px; top:8px; width:150px; height:19px; ">
  176. <choices>
  177. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  178. <label ref="cdnm"/>
  179. <value ref="cdid"/>
  180. </itemset>
  181. </choices>
  182. </select1>
  183. <caption id="caption3" class="search_name" style="left:379px; top:9px; width:73px; height:17px; ">주치의 :</caption>
  184. <select1 id="combo3" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:455px; top:32px; width:150px; height:19px; ">
  185. <choices>
  186. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  187. <label ref="cdnm"/>
  188. <value ref="cdid"/>
  189. </itemset>
  190. </choices>
  191. </select1>
  192. <caption id="caption7" class="search_name" style="left:379px; top:33px; width:73px; height:17px; ">진료과 :</caption>
  193. <select1 id="radio1" ref="/root/temp/printflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:693px; top:32px; width:126px; height:20px; background-color:transparent; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>주소록</label>
  197. <value>L</value>
  198. </item>
  199. <item>
  200. <label>우편발송</label>
  201. <value>P</value>
  202. </item>
  203. </choices>
  204. </select1>
  205. <caption id="caption8" class="search_name" style="left:635px; top:33px; width:60px; height:17px; ">구분 :</caption>
  206. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  207. <caption>조회</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. submit("TRABO00001"); //환자 정보 조회;
  211. submit("TRABO01901");
  212. ]]>
  213. </script>
  214. </button>
  215. <output id="output5" ref="/root/main/hsctinfo/patinfolist/age" class="output_search" style="left:289px; top:32px; width:30px; height:19px; text-align:center; "/>
  216. <output id="output6" ref="/root/main/hsctinfo/patinfolist/sex" class="output_search" style="left:322px; top:32px; width:30px; height:19px; text-align:center; "/>
  217. <input id="ipt_pid" ref="/root/send/req/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:104px; top:32px; width:100px; height:19px; ">
  218. <script type="javascript" ev:event="onkeyup">
  219. <![CDATA[
  220. inputEnterKey("btn_sea", "DOMActivate");
  221. ]]>
  222. </script>
  223. <script type="javascript" ev:event="xforms-next">
  224. <![CDATA[
  225. model.setFocus( "ipt_pid");
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onbuttonclick">
  229. <![CDATA[
  230. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  231. model.setValue("/root/send/req/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  232. ipt_pid.refresh();
  233. ]]>
  234. </script>
  235. </input>
  236. <output id="output17" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_search" style="left:206px; top:32px; width:80px; height:19px; text-align:center; "/>
  237. <caption id="caption16" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
  238. </group>
  239. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:76px; width:64px; height:19px; ">
  240. <caption>엑셀저장</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var fileName = window.fileDialog("save", ",", false, "환자주소록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  244. if (fileName != "")
  245. {
  246. grd_pataddress.saveExcel(fileName);
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <datagrid id="grd_pataddress" nodeset="/root/main/pataddress/item" caption="^등록번호^환자명^이식종류^이식일^우편번호^주소^연락처^휴대폰^100 day^6 month^1 year" colsep="^" colwidth="30, 75, 70, 120, 75, 60, 365, 80, 85, 70, 70, 70" dataheight="23" defaultrows="2" explorerbar="sort" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:101px; width:1194px; height:639px; ">
  252. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  253. <col disabled="true" ref="pid" type="output" style="text-align:center; "/>
  254. <col disabled="true" ref="hngnm" type="output" style="text-align:center; "/>
  255. <col disabled="true" ref="trnptkind"/>
  256. <col disabled="true" ref="trnptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  257. <col disabled="true" ref="zipcd" style="text-align:center; "/>
  258. <col disabled="true" ref="address"/>
  259. <col disabled="true" ref="cntctel"/>
  260. <col disabled="true" ref="mpphontel"/>
  261. <col disabled="true" ref="day100dd" format="yyyy-mm-dd" style="text-align:center; "/>
  262. <col disabled="true" ref="month6dd" format="yyyy-mm-dd" style="text-align:center; "/>
  263. <col disabled="true" ref="year1dd" format="yyyy-mm-dd" style="text-align:center; "/>
  264. <script type="javascript" ev:event="onaftersort">
  265. <![CDATA[
  266. grd_pataddress.gridToInstance(); //그리드의 인스턴스 재구성
  267. ]]>
  268. </script>
  269. </datagrid>
  270. </group>
  271. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  272. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  273. <caption>출력</caption>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. copyNodeListType("/root/main/prtpataddress", "/root/main/pataddress/item[chk='Y']", "replace");
  277. if ( model.getValue("/root/temp/printflag" ) == "L" ) { //주소록 리포트 출력
  278. exeReportPreview("RPABO01901", "XMLSTR", "/root/main/prtpataddress/item");
  279. } else { //우편발송 리포트 출력
  280. exeReportPreview("RPABO01902", "XMLSTR", "/root/main/prtpataddress/item");
  281. }
  282. ]]>
  283. </script>
  284. </button>
  285. </group>
  286. </xhtml:body>
  287. </xhtml:html>