SMABS10800_조혈모세포입고현황통계.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <cellinout>
  11. <cellinoutlist>
  12. <codenm/>
  13. <monthcnt01/>
  14. <monthcnt02/>
  15. <monthcnt03/>
  16. <monthcnt04/>
  17. <monthcnt05/>
  18. <monthcnt06/>
  19. <monthcnt07/>
  20. <monthcnt08/>
  21. <monthcnt09/>
  22. <monthcnt10/>
  23. <monthcnt11/>
  24. <monthcnt12/>
  25. <monthcnttotal/>
  26. <beforeyearcnt/>
  27. <cntaddper/>
  28. <bonebank/>
  29. </cellinoutlist>
  30. </cellinout>
  31. </main>
  32. <send>
  33. <req>
  34. <cwinfromdd/>
  35. <cwintodd/>
  36. <cwinfromdd2/>
  37. <cwintodd2/>
  38. <deliveflag/>
  39. <searchflag>I</searchflag>
  40. </req>
  41. </send>
  42. <init>
  43. <cmbinfo>
  44. <deliveflag>
  45. <A0157>
  46. <cdid/>
  47. <cdnm/>
  48. </A0157>
  49. </deliveflag>
  50. </cmbinfo>
  51. </init>
  52. <hidden/>
  53. </root>
  54. </instance>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. zbcfGetCodeList( new Array("A0157"),
  61. new Array("/root/init/cmbinfo/deliveflag") );
  62. var scurrentdd = getCurrentDate();
  63. model.setValue("/root/send/req/cwinfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  64. model.setValue("/root/send/req/cwintodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  65. model.setValue("/root/send/req/cwinfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  66. model.setValue("/root/send/req/cwintodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  67. model.refresh();
  68. ]]>
  69. </script>
  70. <script type="javascript">
  71. <![CDATA[
  72. /* @group : 조혈모세포 입고 현황
  73. * @ver : 2008.07.16
  74. * @by : 박중규
  75. * @type : function
  76. * @access : public
  77. * @desc : 조혈모세포 입고 건수
  78. * @param :
  79. */
  80. function fGetCellInOutInfo(){
  81. submit("TRABS10801");
  82. // 전년도 대비 증감율을 구한다.
  83. for (var i = 1; i < grd_cellinoutlist.rows ; i ++) {
  84. var iMonthCntTotal = model.getValue("/root/main/cellinout/cellinoutlist[" + i + "]/monthcnttotal");
  85. var iBeforeYearCnt = model.getValue("/root/main/cellinout/cellinoutlist[" + i + "]/beforeyearcnt");
  86. if ( iMonthCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
  87. model.setValue("/root/main/cellinout/cellinoutlist[" + i + "]/cntaddper", "");
  88. } else {
  89. var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
  90. model.setValue("/root/main/cellinout/cellinoutlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
  91. }
  92. }
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. <submission id="TRABS10801" ref="/root/send/req" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/cellwin"/>
  98. </model>
  99. </xhtml:head>
  100. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  101. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  102. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">조혈모세포 입고 현황</caption>
  103. </group>
  104. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  105. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:210px; height:13px; ">조혈모세포 입고 현황</caption>
  106. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  107. <button id="button2" class="btn2_letter4" style="left:1129px; top:76px; width:64px; height:19px; ">
  108. <caption>엑셀저장</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. var fileName = window.fileDialog("save", ",", false, "조혈모세포입고현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  112. if (fileName != "")
  113. {
  114. grd_cellinoutlist.saveExcel(fileName);
  115. }
  116. ]]>
  117. </script>
  118. </button>
  119. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  120. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(입고일) :</caption>
  122. <caption id="caption7" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
  123. <button id="button3" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  124. <caption>조회</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. fGetCellInOutInfo()
  128. ]]>
  129. </script>
  130. </button>
  131. <line id="line2" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:51px; "/>
  132. <input id="input2" ref="/root/send/req/cwinfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  133. <input id="input3" ref="/root/send/req/cwintodd" class="input_s_essential" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; "/>
  134. <caption id="caption8" class="search_name" style="left:468px; top:9px; width:86px; height:17px; ">입고장소 :</caption>
  135. <select1 id="combo2" ref="/root/send/req/deliveflag" class="combo_search" appearance="minimal" style="left:557px; top:8px; width:130px; height:19px; ">
  136. <choices>
  137. <itemset nodeset="/root/init/cmbinfo/deliveflag/A0157">
  138. <label ref="cdnm"/>
  139. <value ref="cdid"/>
  140. </itemset>
  141. </choices>
  142. </select1>
  143. <caption id="caption9" class="search_name" style="left:15px; top:35px; width:112px; height:17px; ">비교(입고일) :</caption>
  144. <input id="input1" ref="/root/send/req/cwinfromdd2" class="input_s_essential" inputtype="date" style="left:130px; top:34px; width:100px; height:19px; "/>
  145. <caption id="caption2" class="search_no_b" style="left:233px; top:36px; width:12px; height:17px; ">~</caption>
  146. <input id="input4" ref="/root/send/req/cwintodd2" class="input_s_essential" inputtype="date" style="left:248px; top:34px; width:100px; height:19px; "/>
  147. </group>
  148. <datagrid id="grd_cellinoutlist" nodeset="/root/main/cellinout/cellinoutlist" caption="구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total^전년도^증감율^^7)^8)" colwidth="88, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 63, 100, 100" dataheight="23" defaultrows="3" extendlastcol="scroll" fixedcols="1" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:101px; width:1194px; height:600px; text-align:center; ">
  149. <col ref="codenm" type="output"/>
  150. <col ref="monthcnt01" type="output"/>
  151. <col ref="monthcnt02"/>
  152. <col ref="monthcnt03"/>
  153. <col ref="monthcnt04"/>
  154. <col ref="monthcnt05"/>
  155. <col ref="monthcnt06"/>
  156. <col ref="monthcnt07"/>
  157. <col ref="monthcnt08"/>
  158. <col ref="monthcnt09"/>
  159. <col ref="monthcnt10"/>
  160. <col ref="monthcnt11"/>
  161. <col ref="monthcnt12"/>
  162. <col ref="monthcnttotal"/>
  163. <col ref="beforeyearcnt"/>
  164. <col ref="cntaddper"/>
  165. </datagrid>
  166. </group>
  167. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  168. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  169. <caption>출력</caption>
  170. </button>
  171. </group>
  172. </xhtml:body>
  173. </xhtml:html>