SMABS10600_조혈모세포이식후사망현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. <trnptlist>
  11. <trnptlist>
  12. <trnptnm/>
  13. <trnptkindnm/>
  14. <monthcnt01/>
  15. <monthcnt02/>
  16. <monthcnt03/>
  17. <monthcnt04/>
  18. <monthcnt05/>
  19. <monthcnt06/>
  20. <monthcnt07/>
  21. <monthcnt08/>
  22. <monthcnt09/>
  23. <monthcnt10/>
  24. <monthcnt11/>
  25. <monthcnt12/>
  26. <monthcnttotal/>
  27. <beforeyearcnt/>
  28. <cntaddper/>
  29. <trnptkindcd/>
  30. </trnptlist>
  31. </trnptlist>
  32. </main>
  33. <send>
  34. <req>
  35. <trnptfrommm/>
  36. <trnpttomm/>
  37. <trnptfrommm2/>
  38. <trnpttomm2/>
  39. <deptcd/>
  40. <diagcd1/>
  41. <trnptinwardcd/>
  42. <atdoctid/>
  43. <dethyn>Y</dethyn>
  44. </req>
  45. <lrggrupcd>DI</lrggrupcd>
  46. </send>
  47. <init>
  48. <cmbinfo>
  49. <deptcd>
  50. <A0478>
  51. <cdid/>
  52. <cdnm/>
  53. </A0478>
  54. </deptcd>
  55. <trnptinwardcd>
  56. <A0479>
  57. <cdid/>
  58. <cdnm/>
  59. </A0479>
  60. </trnptinwardcd>
  61. <atdoctid>
  62. <A0536>
  63. <cdid/>
  64. <cdnm/>
  65. </A0536>
  66. </atdoctid>
  67. <lrglist>
  68. <item>
  69. <hsctlrgcd/>
  70. <hsctlrgnm/>
  71. </item>
  72. </lrglist>
  73. </cmbinfo>
  74. </init>
  75. <hidden/>
  76. <temp>
  77. <tempcodeinfo/>
  78. <tempcodeinfo2/>
  79. </temp>
  80. </root>
  81. </instance>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. // zbcfGetCodeList( new Array("A0478","A0479", "A0536"),
  90. // new Array("/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptinwardcd", "/root/init/cmbinfo/atdoctid") );
  91. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  92. aboGetCodeList(new Array("A0478","A0479", "A0536"),
  93. new Array("/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptinwardcd", "/root/init/cmbinfo/atdoctid") );
  94. submit("TRABO02101");
  95. var scurrentdd = getCurrentDate();
  96. model.setValue("/root/send/req/trnptfrommm", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMM"));
  97. model.setValue("/root/send/req/trnpttomm", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMM"));
  98. model.setValue("/root/send/req/trnptfrommm2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMM"));
  99. model.setValue("/root/send/req/trnpttomm2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMM"));
  100. model.refresh();
  101. ]]>
  102. </script>
  103. <script type="javascript">
  104. <![CDATA[
  105. /* @group : 조혈모세포보관 및 해동현황조회
  106. * @ver : 2009.2.3
  107. * @by : 박상환
  108. * @type : function
  109. * @access : public
  110. * @desc : 조회시 필수입력항목 체크
  111. * @param :
  112. */
  113. function datacheck(){
  114. if (isDate(model.getValue("/root/send/req/trnptfrommm")) == false){
  115. messageBox("기간(이식월) 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  116. return false;
  117. }
  118. if (model.getValue("/root/send/req/trnptfrommm") == ""){
  119. messageBox("기간(이식월) 시작일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  120. return false;
  121. }
  122. if (isDate(model.getValue("/root/send/req/trnpttomm")) == false){
  123. messageBox("기간(이식월) 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  124. return false;
  125. }
  126. if (model.getValue("/root/send/req/trnpttomm") == ""){
  127. messageBox("기간(이식월) 종료일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  128. return false;
  129. }
  130. if (model.getValue("/root/send/req/trnptfrommm") > model.getValue("/root/send/req/trnpttomm")){
  131. messageBox("기간(이식월) 기간일이 잘못 입력되었습니다.", "E999", "");
  132. return false;
  133. }
  134. if (isDate(model.getValue("/root/send/req/trnptfrommm2")) == false){
  135. messageBox("비교(이식월) 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  136. return false;
  137. }
  138. if (model.getValue("/root/send/req/trnptfrommm2") == ""){
  139. messageBox("비교(이식월) 시작일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  140. return false;
  141. }
  142. if (isDate(model.getValue("/root/send/req/trnpttomm2")) == false){
  143. messageBox("비교(이식월) 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  144. return false;
  145. }
  146. if (model.getValue("/root/send/req/trnpttomm2") == ""){
  147. messageBox("비교(이식월) 종료일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  148. return false;
  149. }
  150. if (model.getValue("/root/send/req/trnptfrommm2") > model.getValue("/root/send/req/trnpttomm2")){
  151. messageBox("비교(이식월) 기간일이 잘못 입력되었습니다.", "E999", "");
  152. return false;
  153. }
  154. return true;
  155. }
  156. /* @group : 조혈모세포보관 및 해동현황조회
  157. * @ver : 2007.11.21
  158. * @by : 남수현
  159. * @type : function
  160. * @access : public
  161. * @desc : 날짜 데이터에 대한 형식 체크
  162. * @param :
  163. */
  164. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  165. if (str == "") return true; // 빈건 체크안함
  166. if (trim(str) == "") return true; // 빈건 체크안함
  167. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  168. if (str.length != 6) return false; // 6자리(yyyymm)가 아니면 false
  169. var yy = new Number(str.substring(0, 4));
  170. var mm = new Number(str.substring(4, 6)) - 1;
  171. var date = new Date(yy, mm);
  172. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  173. if (yy != date.getFullYear() ||
  174. mm != date.getMonth() ) {
  175. return false; // 존재하지 않는 날짜
  176. }
  177. return true; // 존재하는 날짜
  178. }
  179. function trim(data){ // 문자에 대한 TRIM 작업
  180. return data.replace(/(^\s*)|(\s*$)/g, "");
  181. }
  182. /* @group : 조혈모세포 이식 현황
  183. * @ver : 2008.07.16
  184. * @by : 박중규
  185. * @type : function
  186. * @access : public
  187. * @desc : 이식한 환자 현황
  188. * @param :
  189. */
  190. /* @group : 조혈모세포 이식 후 사망현황
  191. * @ver : 2008.07.16
  192. * @by : 박중규
  193. * @type : function
  194. * @access : public
  195. * @desc : 이식한 후에 사망한 환자 현황
  196. * @param :
  197. */
  198. function fGetTrnptInfo(){
  199. if (datacheck() == false){
  200. return;
  201. }
  202. // 조혈모세포 이식 현황과 동일한 쿼리 사용하므로 수정시 같이 수정해주자
  203. submit("TRABS10601");
  204. // 전년도 대비 증감율을 구한다.
  205. for (var i = 1; i < grd_trnptlist.rows ; i ++) {
  206. var iMonthCntTotal = model.getValue("/root/main/trnptlist/trnptlist[" + i + "]/monthcnttotal");
  207. var iBeforeYearCnt = model.getValue("/root/main/trnptlist/trnptlist[" + i + "]/beforeyearcnt");
  208. if ( iMonthCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  209. model.setValue("/root/main/trnptlist/trnptlist[" + i + "]/cntaddper", "");
  210. } else {
  211. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  212. model.setValue("/root/main/trnptlist/trnptlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  213. }
  214. }
  215. model.refresh();
  216. }
  217. ]]>
  218. </script>
  219. <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
  220. <submission id="TRABS10601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/trnptlist"/>
  221. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  222. </model>
  223. </xhtml:head>
  224. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  225. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  226. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">조혈모세포 이식 후 사망현황</caption>
  227. </group>
  228. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  229. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:210px; height:13px; ">조혈모세포 이식 후 사망현황</caption>
  230. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  231. <button id="button2" class="btn2_letter4" style="left:1129px; top:76px; width:64px; height:19px; ">
  232. <caption>엑셀저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var fileName = window.fileDialog("save", ",", false, "조혈모세포이식후사망현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  236. if (fileName != "")
  237. {
  238. grd_trnptlist.saveExcel(fileName);
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  244. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  245. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(이식월) :</caption>
  246. <caption id="caption7" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  247. <button id="button3" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  248. <caption>조회</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fGetTrnptInfo();
  252. ]]>
  253. </script>
  254. </button>
  255. <line id="line2" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:51px; "/>
  256. <caption id="caption8" class="search_name" style="left:363px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  257. <select1 id="combo2" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:439px; top:8px; width:130px; height:19px; ">
  258. <choices>
  259. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  260. <label ref="cdnm"/>
  261. <value ref="cdid"/>
  262. </itemset>
  263. </choices>
  264. </select1>
  265. <select1 id="combo3" ref="/root/send/req/atdoctid" class="combo_search" appearance="minimal" style="left:439px; top:34px; width:130px; height:19px; ">
  266. <choices>
  267. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  268. <label ref="cdnm"/>
  269. <value ref="cdid"/>
  270. </itemset>
  271. </choices>
  272. </select1>
  273. <caption id="caption9" class="search_name" style="left:363px; top:35px; width:73px; height:17px; ">주치의 :</caption>
  274. <select1 id="combo4" ref="/root/send/req/trnptinwardcd" class="combo_search" appearance="minimal" style="left:664px; top:8px; width:130px; height:19px; ">
  275. <choices>
  276. <itemset nodeset="/root/init/cmbinfo/trnptinwardcd/A0479">
  277. <label ref="cdnm"/>
  278. <value ref="cdid"/>
  279. </itemset>
  280. </choices>
  281. </select1>
  282. <caption id="caption2" class="search_name" style="left:15px; top:35px; width:112px; height:17px; ">비교(이식월) :</caption>
  283. <input id="input1" ref="/root/send/req/trnptfrommm2" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:130px; top:34px; width:100px; height:19px; "/>
  284. <caption id="caption3" class="search_no_b" style="left:233px; top:35px; width:12px; height:17px; ">~</caption>
  285. <input id="input4" ref="/root/send/req/trnpttomm2" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:248px; top:34px; width:100px; height:19px; "/>
  286. <caption id="caption5" class="search_name" style="left:584px; top:9px; width:73px; height:17px; ">UNIT :</caption>
  287. <select1 id="combo1" ref="/root/send/req/diagcd1" class="combo_search" appearance="minimal" style="left:664px; top:34px; width:130px; height:19px; ">
  288. <choices>
  289. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  290. <label ref="hsctlrgnm"/>
  291. <value ref="hsctlrgcd"/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <caption id="caption10" class="search_name" style="left:584px; top:35px; width:73px; height:17px; ">진단명 :</caption>
  296. <input id="input2" ref="/root/send/req/trnptfrommm" class="input_s_essential" inputtype="date" maxlength="6" format="yyyy-mm" style="left:130px; top:8px; width:100px; height:19px; "/>
  297. <input id="input3" ref="/root/send/req/trnpttomm" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:248px; top:8px; width:100px; height:19px; "/>
  298. </group>
  299. <datagrid id="grd_trnptlist" nodeset="/root/main/trnptlist/trnptlist" caption="이식형태^이식형태^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total^전년도^증감율^^7)^8)" colsep="^" colwidth="80, 120, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 100" dataheight="23" defaultrows="3" explorerbar="sortshow" extendlastcol="scroll" fixedcols="3" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" subtotalposition="below" style="left:0px; top:101px; width:1194px; height:600px; text-align:center; ">
  300. <col ref="trnptnm" type="output"/>
  301. <col ref="trnptkindnm" type="output"/>
  302. <col ref="monthcnt01" type="output"/>
  303. <col ref="monthcnt02"/>
  304. <col ref="monthcnt03"/>
  305. <col ref="monthcnt04"/>
  306. <col ref="monthcnt05"/>
  307. <col ref="monthcnt06"/>
  308. <col ref="monthcnt07"/>
  309. <col ref="monthcnt08"/>
  310. <col ref="monthcnt09"/>
  311. <col ref="monthcnt10"/>
  312. <col ref="monthcnt11"/>
  313. <col ref="monthcnt12"/>
  314. <col ref="monthcnttotal"/>
  315. <col ref="beforeyearcnt"/>
  316. <col ref="cntaddper"/>
  317. <script type="javascript" ev:event="onaftersort">
  318. <![CDATA[
  319. grd_trnptlist.gridToInstance();
  320. ]]>
  321. </script>
  322. </datagrid>
  323. </group>
  324. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  325. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  326. <caption>출력</caption>
  327. </button>
  328. </group>
  329. </xhtml:body>
  330. </xhtml:html>