SMAES03900_심혈관촬영실월별조영제사용현황.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. <list>
  11. <item>
  12. <basecdnm/>
  13. <month1/>
  14. <month2/>
  15. <month3/>
  16. <month4/>
  17. <month5/>
  18. <month6/>
  19. <month7/>
  20. <month8/>
  21. <month9/>
  22. <month10/>
  23. <month11/>
  24. <month12/>
  25. <sumcnt/>
  26. </item>
  27. </list>
  28. </main>
  29. <send>
  30. <execfromdd/>
  31. <exectodd/>
  32. <globalinstance>
  33. <instance1/>
  34. </globalinstance>
  35. <suppdeptcd/>
  36. <cdgrupid/>
  37. <lrgcd/>
  38. <mdlcd/>
  39. <flag/>
  40. <basecdflag/>
  41. </send>
  42. <init>
  43. <cmb_lrgcd/>
  44. <cmb_mdlcd/>
  45. </init>
  46. <hidden>
  47. <comcd/>
  48. </hidden>
  49. </root>
  50. </instance>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. /*** ***/
  60. function setTitle() {
  61. model.removenode("/root/main/list");
  62. var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
  63. var dtYearMonth = stYearMonth.toDate();
  64. var stEndMonth = model.getValue("/root/send/exectodd") + "01";
  65. var dtEndMonth = stEndMonth.toDate();
  66. var stYearHeader = "구분^구분^";
  67. var stMonthHeader = "구분^구분^";
  68. //for (var i = 1; i <= 12; i++) {
  69. for (var i = 2; i <= 13; i++) {
  70. // 년도
  71. var stYear = dtYearMonth.getDateFormat("YYYY");
  72. // 월
  73. var stMonth = dtYearMonth.getDateFormat("MM");
  74. stYearHeader = stYearHeader + stYear + "년^";
  75. stMonthHeader = stMonthHeader + stMonth + "월^";
  76. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  77. grd_list.colHidden(1 + i) = true;
  78. } else {
  79. grd_list.colHidden(1 + i) = false;
  80. }
  81. dtYearMonth.getAddDate(1, "M");
  82. }
  83. stYearHeader = stYearHeader + "합계|";
  84. stMonthHeader = stMonthHeader + "합계";
  85. grd_list.caption = stYearHeader + stMonthHeader;
  86. }
  87. ]]>
  88. </script>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. aezfSetSuppDeptcd();
  92. var fromdd = getCurrentDate().substr(0,4) + "01";
  93. var todd = getCurrentDate().substr(0,6);
  94. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  95. model.setValue("/root/send/execfromdd", fromdd);
  96. model.setValue("/root/send/exectodd", todd);
  97. model.setValue("/root/send/basecdflag", "R");
  98. submit("TRAES01502", false);
  99. addComboItem("cmb_lrgcd","--전체--","","above");
  100. model.refresh();
  101. setTitle();
  102. model.refresh();
  103. ]]>
  104. </script>
  105. <submission id="TRAES03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  106. <submission id="TRAES01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
  107. <submission id="TRAER01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_mdlcd"/>
  108. </model>
  109. </xhtml:head>
  110. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  111. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  112. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">조영제 사용현황</caption>
  113. </group>
  114. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  115. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">조영제 사용현황</caption>
  116. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  117. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
  118. <caption>엑셀저장</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  122. if (fileName != "") {
  123. grd_list.saveExcel(fileName);
  124. }
  125. ]]>
  126. </script>
  127. </button>
  128. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="caption1^구분^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^전년도합계^증감(%)|caption1^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^전년도합계^증감(%)" colsep="^" colwidth="0, 310, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 82" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1195px; height:670px; ">
  129. <col ref="ord" visibility="hidden"/>
  130. <col ref="basecdnm"/>
  131. <col ref="month1" style="text-align:right; "/>
  132. <col ref="month2" style="text-align:right; "/>
  133. <col ref="month3" style="text-align:right; "/>
  134. <col ref="month4" style="text-align:right; "/>
  135. <col ref="month5" style="text-align:right; "/>
  136. <col ref="month6" style="text-align:right; "/>
  137. <col ref="month7" style="text-align:right; "/>
  138. <col ref="month8" style="text-align:right; "/>
  139. <col ref="month9" style="text-align:right; "/>
  140. <col ref="month10" style="text-align:right; "/>
  141. <col ref="month11" style="text-align:right; "/>
  142. <col ref="month12" style="text-align:right; "/>
  143. <col ref="sumcnt" style="text-align:right; "/>
  144. </datagrid>
  145. <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  146. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  147. <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
  148. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. setTitle();
  153. openLoadingBar("조영제 사용현황을 조회 중입니다....") ;
  154. if (submit("TRAES03901")) {
  155. var ord = "";
  156. for ( var i = 1; i <= grd_list.rows; i++ ) {
  157. ord = grd_list.valueMatrix(i, grd_list.colRef("ord"));
  158. if ( ord == "2" ) {
  159. grd_list.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  160. grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
  161. }
  162. }
  163. }
  164. model.refresh();
  165. closeLoadingBar() ;//처리중 화면을 close한다.
  166. ]]>
  167. </script>
  168. </button>
  169. <caption id="caption2" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  170. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:202px; top:6px; width:80px; height:19px; ">
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  174. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  175. if(execfromdd.getAddDate(11, "M") < exectodd)
  176. {
  177. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  178. exectodd = execfromdd;
  179. }
  180. model.setValue("/root/send/exectodd", exectodd.getDateFormat("YYYYMM"));
  181. exectodd = exectodd.getAddDate(-12, "M");
  182. exectodd = exectodd.getDateFormat("YYYYMM");
  183. setTitle();
  184. model.refresh();
  185. ]]>
  186. </script>
  187. </input>
  188. <caption id="caption5" class="search_no_b" style="left:187px; top:6px; width:12px; height:17px; ">~</caption>
  189. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:104px; top:6px; width:80px; height:19px; ">
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  193. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  194. if(execfromdd < exectodd.getAddDate(-11, "M"))
  195. {
  196. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  197. execfromdd = exectodd;
  198. }
  199. model.setValue("/root/send/execfromdd", execfromdd.getDateFormat("YYYYMM"));
  200. execfromdd = execfromdd.getAddDate(-12, "M");
  201. execfromdd = execfromdd.getDateFormat("YYYYMM");
  202. //model.setValue("/root/send/comparefromdd", execfromdd);
  203. setTitle();
  204. model.refresh();
  205. ]]>
  206. </script>
  207. </input>
  208. <caption id="caption7" class="search_name" style="left:310px; top:7px; width:86px; height:17px; ">대분류 :</caption>
  209. <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" appearance="minimal" style="left:390px; top:5px; width:80px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/cmb_lrgcd/lrgcdlist">
  212. <label ref="cdnm"/>
  213. <value ref="cdid"/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. </group>
  218. </group>
  219. </xhtml:body>
  220. </xhtml:html>