SMABS11000_처방코드별처리건수(진검).xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. <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. <prcpcd/>
  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. <prcpexecdeptcd/>
  79. <searchflag>D</searchflag>
  80. <monthdayflag/>
  81. </req>
  82. </send>
  83. <init>
  84. </init>
  85. <hidden/>
  86. </root>
  87. </instance>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. // 시행부서처방도 가져오기 위해서 현재 로그인 한 사람의 실제 근무지를 가져온다.
  94. model.setValue("/root/send/req/prcpexecdeptcd", getUserInfo("dutplcecd"));
  95. model.refresh();
  96. rdo_monthday.select(1);
  97. model.setValue("/root/send/req/monthdayflag", "D");
  98. fSetDefaultDD();
  99. ]]>
  100. </script>
  101. <script type="javascript">
  102. <![CDATA[
  103. /* @group : 처방별 조혈모세포처리건수
  104. * @ver : 2008.08.29
  105. * @by : 김은지
  106. * @type : function
  107. * @access : public
  108. * @desc : 월별/일별 디폴트 날짜 지정
  109. * @param :
  110. */
  111. function fSetDefaultDD(){
  112. var scurrentdd = getCurrentDate();
  113. if(model.getValue("/root/send/req/monthdayflag") == "D"){
  114. model.setValue("/root/send/req/execfromdd", scurrentdd);
  115. model.setValue("/root/send/req/exectodd", scurrentdd);
  116. model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  117. model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  118. }
  119. else{
  120. var scurrentdd2 = scurrentdd.toDate().getAddDate(-30).getDateFormat("YYYYMMDD");
  121. model.setValue("/root/send/req/execfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  122. model.setValue("/root/send/req/exectodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  123. model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  124. model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  125. }
  126. model.refresh();
  127. }
  128. /* @group : 처방별 조혈모세포처리건수
  129. * @ver : 2008.07.16
  130. * @by : 박중규
  131. * @type : function
  132. * @access : public
  133. * @desc : 이식처리건수
  134. * @param :
  135. */
  136. function fGetCellTrpeInfo(){
  137. if(model.getValue("/root/send/req/monthdayflag") == "D"){
  138. submit("TRABS10202");
  139. }
  140. else{
  141. submit("TRABS10201");
  142. }
  143. if(model.getValue("/root/send/req/monthdayflag") == "M"){
  144. // 전년 대비 증감율을 구한다.
  145. var nodelist = instance1.selectNodes("/root/main/celltret/celltretlist");
  146. for (var i = 1; i <= nodelist.length ; i ++) {
  147. var iMonthCntTotal = model.getValue("/root/main/celltret/celltretlist[" + i + "]/monthcnttotal");
  148. var iBeforeYearCnt = model.getValue("/root/main/celltret/celltretlist[" + i + "]/beforeyearcnt");
  149. if ( iMonthCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  150. model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", "");
  151. } else {
  152. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  153. model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  154. }
  155. }
  156. }
  157. else{
  158. // 전월도 대비 증감율을 구한다.
  159. var nodelist2 = instance1.selectNodes("/root/main/celltret/daycelltretlist");
  160. for (var i = 1; i <= nodelist2.length ; i ++) {
  161. var iDayCntTotal = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/daycnttotal");
  162. var iBeforeYearCnt = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/beforeyearcnt");
  163. if ( iDayCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  164. model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", "");
  165. } else {
  166. var dCntAddPer = ((parseFloat(iDayCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  167. model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  168. }
  169. }
  170. }
  171. model.refresh();
  172. }
  173. ]]>
  174. </script>
  175. <submission id="TRABS10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
  176. <submission id="TRABS10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
  177. </model>
  178. </xhtml:head>
  179. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  180. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  181. <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="70, 250, 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; ">
  182. <col ref="codenm" type="output"/>
  183. <col ref="codenm2" type="output"/>
  184. <col ref="daycnt01" type="output"/>
  185. <col ref="daycnt02"/>
  186. <col ref="daycnt03"/>
  187. <col ref="daycnt04"/>
  188. <col ref="daycnt05"/>
  189. <col ref="daycnt06"/>
  190. <col ref="daycnt07"/>
  191. <col ref="daycnt08"/>
  192. <col ref="daycnt09"/>
  193. <col ref="daycnt10"/>
  194. <col ref="daycnt11"/>
  195. <col ref="daycnt12"/>
  196. <col ref="daycnt13"/>
  197. <col ref="daycnt14"/>
  198. <col ref="daycnt15"/>
  199. <col ref="daycnt16"/>
  200. <col ref="daycnt17"/>
  201. <col ref="daycnt18"/>
  202. <col ref="daycnt19"/>
  203. <col ref="daycnt20"/>
  204. <col ref="daycnt21"/>
  205. <col ref="daycnt22"/>
  206. <col ref="daycnt23"/>
  207. <col ref="daycnt24"/>
  208. <col ref="daycnt25"/>
  209. <col ref="daycnt26"/>
  210. <col ref="daycnt27"/>
  211. <col ref="daycnt28"/>
  212. <col ref="daycnt29"/>
  213. <col ref="daycnt30"/>
  214. <col ref="daycnt31"/>
  215. <col ref="daycnttotal"/>
  216. <col ref="beforeyearcnt"/>
  217. <col ref="cntaddper"/>
  218. </datagrid>
  219. <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="70, 250, 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; ">
  220. <col ref="codenm" type="output"/>
  221. <col ref="codenm2" type="output"/>
  222. <col ref="monthcnt01" type="output"/>
  223. <col ref="monthcnt02"/>
  224. <col ref="monthcnt03"/>
  225. <col ref="monthcnt04"/>
  226. <col ref="monthcnt05"/>
  227. <col ref="monthcnt06"/>
  228. <col ref="monthcnt07"/>
  229. <col ref="monthcnt08"/>
  230. <col ref="monthcnt09"/>
  231. <col ref="monthcnt10"/>
  232. <col ref="monthcnt11"/>
  233. <col ref="monthcnt12"/>
  234. <col ref="monthcnttotal"/>
  235. <col ref="beforeyearcnt"/>
  236. <col ref="cntaddper"/>
  237. </datagrid>
  238. <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:210px; height:13px; ">처방별 조혈모세포처리 현황</caption>
  239. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  240. <button id="button2" class="btn2_letter4" style="left:1129px; top:56px; width:64px; height:19px; ">
  241. <caption>엑셀저장</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. if(model.getValue("/root/send/req/monthdayflag") == "M") {
  245. var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(월별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  246. if (fileName != "")
  247. {
  248. grd_monthcelltret.saveExcel(fileName);
  249. }
  250. }
  251. else{
  252. var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(일별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  253. if (fileName != "")
  254. {
  255. grd_daycelltret.saveExcel(fileName);
  256. }
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  262. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  263. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(적용일) :</caption>
  264. <caption id="caption7" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  265. <button id="button3" class="btn1_letter2" style="left:1123px; top:9px; width:56px; height:22px; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fGetCellTrpeInfo();
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line2" class="line_4" style="x1:1107px; y1:9px; x2:1107px; y2:31px; "/>
  274. <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; ">
  275. <script type="javascript" ev:event="xforms-value-changed">
  276. <![CDATA[
  277. var fromdd = model.getValue("/root/send/req/execfromdd");
  278. var oCurYear = fromdd.toDate().getDateFormat("YYYY");
  279. var oCurMonth = fromdd.toDate().getDateFormat("MM");
  280. var flag = "";
  281. var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
  282. var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
  283. if(rdo_monthday.value == "D"){
  284. flag = "M";
  285. }else {
  286. flag = "Y";
  287. }
  288. if(flag == "M" && oMaxDay == fromdd.toDate().getDateFormat("DD")){
  289. model.setValue("/root/send/req/execfromdd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
  290. }else{
  291. model.setValue("/root/send/req/execfromdd2", (fromdd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
  292. }
  293. model.refresh();
  294. ]]>
  295. </script>
  296. </input>
  297. <input id="ipt_exectodd" ref="/root/send/req/exectodd" class="input_s_essential" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; ">
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. var todd = model.getValue("/root/send/req/exectodd");
  301. var oCurYear = todd.toDate().getDateFormat("YYYY");
  302. var oCurMonth = todd.toDate().getDateFormat("MM");
  303. var flag = "";
  304. var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
  305. var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
  306. if(rdo_monthday.value == "D"){
  307. flag = "M";
  308. }else {
  309. flag = "Y";
  310. }
  311. if(flag == "M" && oMaxDay == todd.toDate().getDateFormat("DD")){
  312. model.setValue("/root/send/req/exectodd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
  313. }else{
  314. model.setValue("/root/send/req/exectodd2", (todd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
  315. }
  316. model.refresh();
  317. ]]>
  318. </script>
  319. </input>
  320. <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; ">
  321. <choices>
  322. <item>
  323. <label>월별</label>
  324. <value>M</value>
  325. </item>
  326. <item>
  327. <label>일별</label>
  328. <value>D</value>
  329. </item>
  330. </choices>
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. fSetDefaultDD();
  334. var fromdd = model.getValue("/root/send/req/execfromdd");
  335. var todd = model.getValue("/root/send/req/exectodd");
  336. if(rdo_monthday.value == "D"){
  337. grd_monthcelltret.attribute("visibility") = "hidden";
  338. grd_daycelltret.attribute("visibility") = "visible";
  339. ipt_execfromdd.attribute("maxlength") = "8";
  340. ipt_exectodd.attribute("maxlength") = "8";
  341. ipt_execfromdd2.attribute("maxlength") = "8";
  342. ipt_exectodd2.attribute("maxlength") = "8";
  343. ipt_execfromdd.attribute("format") = "yyyy-mm-dd";
  344. ipt_exectodd.attribute("format") = "yyyy-mm-dd";
  345. ipt_execfromdd2.attribute("format") = "yyyy-mm-dd";
  346. ipt_exectodd2.attribute("format") = "yyyy-mm-dd";
  347. }
  348. else{
  349. grd_monthcelltret.attribute("visibility") = "visible";
  350. grd_daycelltret.attribute("visibility") = "hidden";
  351. ipt_execfromdd.attribute("format") = "yyyy-mm";
  352. ipt_exectodd.attribute("format") = "yyyy-mm";
  353. ipt_execfromdd2.attribute("format") = "yyyy-mm";
  354. ipt_exectodd2.attribute("format") = "yyyy-mm";
  355. model.setValue("/root/send/req/execfromdd2", (fromdd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
  356. model.setValue("/root/send/req/exectodd2", (todd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
  357. }
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </select1>
  362. <caption id="caption9" class="search_name" visibility="hidden" style="left:492px; top:6px; width:112px; height:17px; ">비교(적용일) :</caption>
  363. <input id="ipt_execfromdd2" ref="/root/send/req/execfromdd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:607px; top:5px; width:100px; height:19px; "/>
  364. <caption id="caption2" class="search_no_b" visibility="hidden" style="left:710px; top:7px; width:12px; height:17px; ">~</caption>
  365. <input id="ipt_exectodd2" ref="/root/send/req/exectodd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:725px; top:5px; width:100px; height:19px; "/>
  366. </group>
  367. </group>
  368. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  369. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">처방별 조혈모세포처리 현황</caption>
  370. </group>
  371. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  372. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  373. <caption>출력</caption>
  374. </button>
  375. </group>
  376. </xhtml:body>
  377. </xhtml:html>