SMABS10100_이식형태별조혈모세포처리건수.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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. <celltret>
  11. <celltretlist>
  12. <codenm/>
  13. <codenm2/>
  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. <trnptcd/>
  30. </celltretlist>
  31. <daycelltretlist>
  32. <codenm/>
  33. <codenm2/>
  34. <daycnt01/>
  35. <daycnt02/>
  36. <daycnt03/>
  37. <daycnt04/>
  38. <daycnt05/>
  39. <daycnt06/>
  40. <daycnt07/>
  41. <daycnt08/>
  42. <daycnt09/>
  43. <daycnt10/>
  44. <daycnt11/>
  45. <daycnt12/>
  46. <daycnt13/>
  47. <daycnt14/>
  48. <daycnt15/>
  49. <daycnt16/>
  50. <daycnt17/>
  51. <daycnt18/>
  52. <daycnt19/>
  53. <daycnt20/>
  54. <daycnt21/>
  55. <daycnt22/>
  56. <daycnt23/>
  57. <daycnt24/>
  58. <daycnt25/>
  59. <daycnt26/>
  60. <daycnt27/>
  61. <daycnt28/>
  62. <daycnt29/>
  63. <daycnt30/>
  64. <daycnt31/>
  65. <daycnttotal/>
  66. <beforeyearcnt/>
  67. <cntaddper/>
  68. <prcpcd/>
  69. </daycelltretlist>
  70. </celltret>
  71. </main>
  72. <send>
  73. <req>
  74. <execfromdd/>
  75. <exectodd/>
  76. <execfromdd2/>
  77. <exectodd2/>
  78. <atdoctid/>
  79. <searchflag>T</searchflag>
  80. <monthdayflag/>
  81. </req>
  82. <lrggrupcd>DI</lrggrupcd>
  83. <hsctlrgcd/>
  84. </send>
  85. <init>
  86. <cmbinfo>
  87. <atdoctid>
  88. <A0536>
  89. <cdid/>
  90. <cdnm/>
  91. </A0536>
  92. </atdoctid>
  93. </cmbinfo>
  94. </init>
  95. <hidden/>
  96. <temp>
  97. <tempcodeinfo/>
  98. </temp>
  99. </root>
  100. </instance>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  106. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  107. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  108. <script type="javascript" ev:event="xforms-ready">
  109. <![CDATA[
  110. aboGetCodeList( new Array("A0536"),
  111. new Array("/root/init/cmbinfo/atdoctid") );
  112. var scurrentdd = getCurrentDate();
  113. rdo_monthday.select(1);
  114. model.setValue("/root/send/req/monthdayflag", "D");
  115. model.refresh();
  116. fSetDefaultDD();
  117. ]]>
  118. </script>
  119. <script type="javascript">
  120. <![CDATA[
  121. /* @group : 처방별 조혈모세포처리건수
  122. * @ver : 2008.08.29
  123. * @by : 김은지
  124. * @type : function
  125. * @access : public
  126. * @desc : 월별/일별 디폴트 날짜 지정
  127. * @param :
  128. */
  129. function fSetDefaultDD(){
  130. var scurrentdd = getCurrentDate();
  131. if(model.getValue("/root/send/req/monthdayflag") == "D"){
  132. model.setValue("/root/send/req/execfromdd", scurrentdd);
  133. model.setValue("/root/send/req/exectodd", scurrentdd);
  134. model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  135. model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  136. }
  137. else{
  138. var scurrentdd2 = scurrentdd.toDate().getAddDate(-30).getDateFormat("YYYYMMDD");
  139. model.setValue("/root/send/req/execfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  140. model.setValue("/root/send/req/exectodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  141. model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  142. model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  143. }
  144. model.refresh();
  145. }
  146. /* @group : 이식형태별 조혈모세포처리건수
  147. * @ver : 2008.07.16
  148. * @by : 박중규
  149. * @type : function
  150. * @access : public
  151. * @desc : 이식처리건수
  152. * @param :
  153. */
  154. function fGetCellTrpeInfo(){
  155. if(model.getValue("/root/send/req/monthdayflag") == "D"){
  156. submit("TRABS10102");
  157. }
  158. else{
  159. submit("TRABS10101");
  160. }
  161. if(model.getValue("/root/send/req/monthdayflag") == "M"){
  162. // 전년 대비 증감율을 구한다.
  163. var nodelist = instance1.selectNodes("/root/main/celltret/celltretlist");
  164. for (var i = 1; i <= nodelist.length ; i ++) {
  165. var iMonthCntTotal = model.getValue("/root/main/celltret/celltretlist[" + i + "]/monthcnttotal");
  166. var iBeforeYearCnt = model.getValue("/root/main/celltret/celltretlist[" + i + "]/beforeyearcnt");
  167. if ( iMonthCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  168. model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", "");
  169. } else {
  170. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  171. model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  172. }
  173. }
  174. }
  175. else{
  176. // 전월도 대비 증감율을 구한다.
  177. var nodelist2 = instance1.selectNodes("/root/main/celltret/daycelltretlist");
  178. for (var i = 1; i <= nodelist2.length ; i ++) {
  179. var iDayCntTotal = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/daycnttotal");
  180. var iBeforeYearCnt = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/beforeyearcnt");
  181. if ( iDayCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  182. model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", "");
  183. } else {
  184. var dCntAddPer = ((parseFloat(iDayCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  185. model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  186. }
  187. }
  188. }
  189. model.refresh();
  190. }
  191. ]]>
  192. </script>
  193. <submission id="TRABS10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
  194. <submission id="TRABS10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
  195. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/tempcodeinfo"/>
  196. </model>
  197. </xhtml:head>
  198. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  199. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">이식형태별 조혈모세포처리 현황</caption>
  201. </group>
  202. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  203. <datagrid id="grd_monthcelltret" nodeset="/root/main/celltret/celltretlist" caption="이식형태^이식형태^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total^전년도^증감율^^7)^8)" colsep="^" colwidth="65, 64, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 63, 100, 100" dataheight="23" defaultrows="3" extendlastcol="scroll" fixedcols="3" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:81px; width:1194px; height:600px; text-align:center; ">
  204. <col ref="codenm" type="output"/>
  205. <col ref="codenm2" type="output"/>
  206. <col ref="monthcnt01" type="output"/>
  207. <col ref="monthcnt02"/>
  208. <col ref="monthcnt03"/>
  209. <col ref="monthcnt04"/>
  210. <col ref="monthcnt05"/>
  211. <col ref="monthcnt06"/>
  212. <col ref="monthcnt07"/>
  213. <col ref="monthcnt08"/>
  214. <col ref="monthcnt09"/>
  215. <col ref="monthcnt10"/>
  216. <col ref="monthcnt11"/>
  217. <col ref="monthcnt12"/>
  218. <col ref="monthcnttotal"/>
  219. <col ref="beforeyearcnt"/>
  220. <col ref="cntaddper"/>
  221. </datagrid>
  222. <datagrid id="grd_daycelltret" nodeset="/root/main/celltret/daycelltretlist" caption="이식형태^이식형태^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^Total^전월도^증감율^^7)^8)" colsep="^" colwidth="65, 64, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 63, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" fixedcols="3" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:81px; width:1194px; height:600px; text-align:center; ">
  223. <col ref="codenm" type="output"/>
  224. <col ref="codenm2" type="output"/>
  225. <col ref="daycnt01" type="output"/>
  226. <col ref="daycnt02"/>
  227. <col ref="daycnt03"/>
  228. <col ref="daycnt04"/>
  229. <col ref="daycnt05"/>
  230. <col ref="daycnt06"/>
  231. <col ref="daycnt07"/>
  232. <col ref="daycnt08"/>
  233. <col ref="daycnt09"/>
  234. <col ref="daycnt10"/>
  235. <col ref="daycnt11"/>
  236. <col ref="daycnt12"/>
  237. <col ref="daycnt13"/>
  238. <col ref="daycnt14"/>
  239. <col ref="daycnt15"/>
  240. <col ref="daycnt16"/>
  241. <col ref="daycnt17"/>
  242. <col ref="daycnt18"/>
  243. <col ref="daycnt19"/>
  244. <col ref="daycnt20"/>
  245. <col ref="daycnt21"/>
  246. <col ref="daycnt22"/>
  247. <col ref="daycnt23"/>
  248. <col ref="daycnt24"/>
  249. <col ref="daycnt25"/>
  250. <col ref="daycnt26"/>
  251. <col ref="daycnt27"/>
  252. <col ref="daycnt28"/>
  253. <col ref="daycnt29"/>
  254. <col ref="daycnt30"/>
  255. <col ref="daycnt31"/>
  256. <col ref="daycnttotal"/>
  257. <col ref="beforeyearcnt"/>
  258. <col ref="cntaddper"/>
  259. </datagrid>
  260. <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:210px; height:13px; ">이식형태별 조혈모세포처리 현황</caption>
  261. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  262. <button id="button2" class="btn2_letter4" style="left:1129px; top:56px; width:64px; height:19px; ">
  263. <caption>엑셀저장</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. if(model.getValue("/root/send/req/monthdayflag") == "M") {
  267. var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(월별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  268. if (fileName != "")
  269. {
  270. grd_monthcelltret.saveExcel(fileName);
  271. }
  272. }
  273. else{
  274. var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(일별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  275. if (fileName != "")
  276. {
  277. grd_daycelltret.saveExcel(fileName);
  278. }
  279. }
  280. ]]>
  281. </script>
  282. </button>
  283. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  284. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  285. <button id="button3" class="btn1_letter2" style="left:1123px; top:9px; width:56px; height:22px; ">
  286. <caption>조회</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fGetCellTrpeInfo()
  290. ]]>
  291. </script>
  292. </button>
  293. <line id="line2" class="line_4" style="x1:1107px; y1:9px; x2:1107px; y2:31px; "/>
  294. <caption id="caption8" class="search_name" style="left:468px; top:9px; width:73px; height:17px; ">처방의 :</caption>
  295. <select1 id="combo2" ref="/root/send/req/atdoctid" class="combo_search" appearance="minimal" style="left:544px; top:8px; width:130px; height:19px; ">
  296. <choices>
  297. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  298. <label ref="cdnm"/>
  299. <value ref="cdid"/>
  300. </itemset>
  301. </choices>
  302. </select1>
  303. <input id="ipt_execfromdd2" ref="/root/send/req/execfromdd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:807px; top:10px; width:100px; height:19px; "/>
  304. <input id="ipt_execfromdd" ref="/root/send/req/execfromdd" class="input_s_essential" inputtype="date" maxlength="6" style="left:130px; top:8px; width:100px; height:19px; ">
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. var fromdd = model.getValue("/root/send/req/execfromdd");
  308. var oCurYear = fromdd.toDate().getDateFormat("YYYY");
  309. var oCurMonth = fromdd.toDate().getDateFormat("MM");
  310. var flag = "";
  311. var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
  312. var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
  313. if(rdo_monthday.value == "D"){
  314. flag = "M";
  315. }else {
  316. flag = "Y";
  317. }
  318. if(flag == "M" && oMaxDay == fromdd.toDate().getDateFormat("DD")){
  319. model.setValue("/root/send/req/execfromdd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
  320. }else{
  321. model.setValue("/root/send/req/execfromdd2", (fromdd + 1).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
  322. }
  323. model.refresh();
  324. ]]>
  325. </script>
  326. </input>
  327. <caption id="caption2" class="search_no_b" visibility="hidden" style="left:910px; top:12px; width:12px; height:17px; ">~</caption>
  328. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(적용일) :</caption>
  329. <input id="ipt_exectodd" ref="/root/send/req/exectodd" class="input_s_essential" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; ">
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. var todd = model.getValue("/root/send/req/exectodd");
  333. var oCurYear = todd.toDate().getDateFormat("YYYY");
  334. var oCurMonth = todd.toDate().getDateFormat("MM");
  335. var flag = "";
  336. var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
  337. var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
  338. if(rdo_monthday.value == "D"){
  339. flag = "M";
  340. }else {
  341. flag = "Y";
  342. }
  343. if(flag == "M" && oMaxDay == todd.toDate().getDateFormat("DD")){
  344. model.setValue("/root/send/req/exectodd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
  345. }else{
  346. model.setValue("/root/send/req/exectodd2", (todd + 1).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
  347. }
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </input>
  352. <caption id="caption7" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  353. <caption id="caption9" class="search_name" visibility="hidden" style="left:692px; top:11px; width:112px; height:17px; ">비교(적용일) :</caption>
  354. <input id="ipt_exectodd2" ref="/root/send/req/exectodd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:925px; top:10px; width:100px; height:19px; "/>
  355. <select1 id="rdo_monthday" ref="/root/send/req/monthdayflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:358px; top:10px; width:90px; height:20px; border-style:none; ">
  356. <choices>
  357. <item>
  358. <label>월별</label>
  359. <value>M</value>
  360. </item>
  361. <item>
  362. <label>일별</label>
  363. <value>D</value>
  364. </item>
  365. </choices>
  366. <script type="javascript" ev:event="xforms-value-changed">
  367. <![CDATA[
  368. fSetDefaultDD();
  369. var fromdd = model.getValue("/root/send/req/execfromdd");
  370. var todd = model.getValue("/root/send/req/exectodd");
  371. if(rdo_monthday.value == "D"){
  372. grd_monthcelltret.attribute("visibility") = "hidden";
  373. grd_daycelltret.attribute("visibility") = "visible";
  374. ipt_execfromdd.attribute("maxlength") = "8";
  375. ipt_exectodd.attribute("maxlength") = "8";
  376. ipt_execfromdd2.attribute("maxlength") = "8";
  377. ipt_exectodd2.attribute("maxlength") = "8";
  378. ipt_execfromdd.attribute("format") = "yyyy-mm-dd";
  379. ipt_exectodd.attribute("format") = "yyyy-mm-dd";
  380. ipt_execfromdd2.attribute("format") = "yyyy-mm-dd";
  381. ipt_exectodd2.attribute("format") = "yyyy-mm-dd";
  382. }
  383. else{
  384. grd_monthcelltret.attribute("visibility") = "visible";
  385. grd_daycelltret.attribute("visibility") = "hidden";
  386. ipt_execfromdd.attribute("format") = "yyyy-mm";
  387. ipt_exectodd.attribute("format") = "yyyy-mm";
  388. ipt_execfromdd2.attribute("format") = "yyyy-mm";
  389. ipt_exectodd2.attribute("format") = "yyyy-mm";
  390. model.setValue("/root/send/req/execfromdd2", (fromdd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
  391. model.setValue("/root/send/req/exectodd2", (todd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
  392. }
  393. model.refresh();
  394. ]]>
  395. </script>
  396. </select1>
  397. </group>
  398. </group>
  399. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  400. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  401. <caption>출력</caption>
  402. </button>
  403. </group>
  404. </xhtml:body>
  405. </xhtml:html>