SMSDT00700_의료원용병원별원목업무총집계표.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT00700.병원별원목업무총집계표.xrw
  4. * 설 명 : 병원별원목업무총집계표
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2008.11.08
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>월별 원목업무 총 집계표</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <fthinfo>
  19. <fthinfolist>
  20. <lrgnm/>
  21. <mdlnm/>
  22. <smlnm/>
  23. <col1/>
  24. <col2/>
  25. <col3/>
  26. <col4/>
  27. <col5/>
  28. <col6/>
  29. <col7/>
  30. <col8/>
  31. <col9/>
  32. <col10/>
  33. <col11/>
  34. <col12/>
  35. <col13/>
  36. <col14/>
  37. <col15/>
  38. <col16/>
  39. <sum/>
  40. <presum/>
  41. <increase/>
  42. <lrgcd/>
  43. <mdlcd/>
  44. <smlcd/>
  45. </fthinfolist>
  46. </fthinfo>
  47. <cond>
  48. <viewflag>1</viewflag>
  49. </cond>
  50. </main>
  51. <send>
  52. <reqdata/>
  53. </send>
  54. <init>
  55. <comcodelist>
  56. </comcodelist>
  57. </init>
  58. <hidden/>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fGetComCdList();
  70. ]]>
  71. </script>
  72. <submission id="TRSDT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthinfo"/>
  73. <submission id="TRAYA00101" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
  74. <bind id="sum" ref="/root/main/fthinfo/fthinfolist/sum" calculate="../col1 +../col2 +../col3 +../col4 +../col5 +../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12"/>
  75. <bind id="increase" ref="/root/main/fthinfo/fthinfolist/increase" calculate="( ../sum - ../presum ) div ../presum * 100"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. /**========================================================================================================================================
  80. * 원목자조회, 그리드초기화
  81. =========================================================================================================================================*/
  82. function fGetComCdList(){
  83. var currentDate = getCurrentDate();
  84. var currentYear = currentDate.substring(0, 4);
  85. // 그리드초기화
  86. model.removeNodeset("/root/main/ftninfo/fthinfolist");
  87. model.setValue("/root/main/cond/endyy",currentYear);
  88. model.setValue("/root/main/cond/entryy",currentYear);
  89. model.removeNodeset(grd_fthendstatsmonthlist.nodeset);
  90. model.refresh();
  91. }
  92. /**========================================================================================================================================
  93. * 월별원목업무총집계표 조회
  94. =========================================================================================================================================*/
  95. function fGetFthInfoList(){
  96. var endyy = model.getValue("/root/main/cond/endyy");
  97. if( endyy == ""){
  98. messageBox("조회년도를","C001" );
  99. model.refresh();
  100. return;
  101. }
  102. model.removeNodeset("/root/send/reqdata");
  103. model.makeNode("/root/send/reqdata");
  104. model.copyNode("/root/send/reqdata", "/root/main/cond");
  105. //grid merge
  106. grd_fthendstatsmonthlist.mergeCells = "bycolrec";
  107. grd_fthendstatsmonthlist.mergeCol(0) = true;
  108. grd_fthendstatsmonthlist.mergeCol(1) = true;
  109. grd_fthendstatsmonthlist.mergeCol(2) = true;
  110. grd_fthendstatsmonthlist.mergeCol(3) = false;
  111. grd_fthendstatsmonthlist.mergeCol(4) = false;
  112. grd_fthendstatsmonthlist.mergeCol(5) = false;
  113. grd_fthendstatsmonthlist.mergeCol(6) = false;
  114. grd_fthendstatsmonthlist.mergeCol(7) = false;
  115. grd_fthendstatsmonthlist.mergeCol(8) = false;
  116. grd_fthendstatsmonthlist.mergeCol(9) = false;
  117. grd_fthendstatsmonthlist.mergeCol(10) = false;
  118. grd_fthendstatsmonthlist.mergeCol(11) = false;
  119. grd_fthendstatsmonthlist.mergeCol(12) = false;
  120. grd_fthendstatsmonthlist.mergeCol(13) = false;
  121. grd_fthendstatsmonthlist.mergeCol(14) = false;
  122. grd_fthendstatsmonthlist.mergeCol(15) = false;
  123. grd_fthendstatsmonthlist.mergeCol(16) = false;
  124. grd_fthendstatsmonthlist.mergeCol(17) = false;
  125. grd_fthendstatsmonthlist.mergeCol(18) = false;
  126. grd_fthendstatsmonthlist.mergeCol(19) = false;
  127. grd_fthendstatsmonthlist.mergeCol(20) = false;
  128. grd_fthendstatsmonthlist.mergeCol(21) = false;
  129. submit("TRSDT00201");
  130. }
  131. /**========================================================================================================================================
  132. * 엑셀저장 버튼 클릭시
  133. =========================================================================================================================================*/
  134. function fExcel() {
  135. if (grd_fthendstatsmonthlist.rows <= 1) {
  136. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  137. return;
  138. }
  139. var fileName = window.fileDialog("save", ",", false, "월별 원목업무 총집계표", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  140. if (fileName != ""){
  141. grd_fthendstatsmonthlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  142. }
  143. }
  144. /**========================================================================================================================================
  145. * 월별원목업무총집계표 초기화
  146. =========================================================================================================================================*/
  147. function fInitialize()
  148. {
  149. // 그리드초기화
  150. model.removeNodeset("/root/main/ftninfo/fthinfolist");
  151. model.removeNodeset("/root/main/cond/fthendyy");
  152. model.removeNodeset(grd_fthendstatsmonthlist.nodeset);
  153. cmb_conslrid.select(0);
  154. model.refresh();
  155. }
  156. ]]>
  157. </script>
  158. </xhtml:head>
  159. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  160. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  161. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">월별 원목업무 총 집계표</caption>
  162. </group>
  163. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  164. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  165. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  166. <caption>초기화</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. fInitialize();
  170. ]]>
  171. </script>
  172. </button>
  173. </group>
  174. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  175. <caption id="caption21" class="tit_2" style="left:0px; top:50px; width:190px; height:14px; ">월별 원목업무 총 집계표</caption>
  176. <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:73px; "/>
  177. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  178. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  179. <button id="button2" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. fGetFthInfoList();
  184. ]]>
  185. </script>
  186. </button>
  187. <caption id="caption23" class="search_name" style="left:370px; top:8px; width:91px; height:17px; ">병원코드 :</caption>
  188. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  189. <caption id="caption1" class="search_name" style="left:20px; top:10px; width:91px; height:17px; ">조회기간 :</caption>
  190. </group>
  191. <datagrid id="grd_fthendstatsmonthlist" nodeset="/root/main/fthinfo/fthinfolist" autoresize="true" caption="항목^세부단위 업무^세부단위 업무^성모^성모^강남성모^강남성모^의정부성모^의정부성모^성바오로^성바오로^성모자애^성모자애^부천성모^부천성모^성빈센트^성빈센트^대전성모^대전성모^합계^lrgcd^mdlcd^smlcd^이전합계^증감율(%)|항목^세부단위 업무^세부단위 업무^성모^성모^강남성모^강남성모^의정부성모^의정부성모^성바오로^성바오로^성모자애^성모자애^부천성모^부천성모^성빈센트^성빈센트^대전성모^대전성모^합계^lrgcd^mdlcd^smlcd^이전합계^증감율(%)|항목^세부단위 업무^세부단위 업무^합계^증감율^합계^증감율^합계^증감율^합계^증감율^합계^증감율^합계^증감율^합계^증감율^합계^증감율^합계^lrgcd^mdlcd^smlcd^이전합계^증감율(%)" colsep="^" colwidth="80, 120, 125, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 65, 3, 3, 3, 65, 65" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:77px; width:1195px; height:662px; ">
  192. <col ref="lrgnm" style="text-align:center; "/>
  193. <col ref="mdlnm" style="text-align:center; "/>
  194. <col ref="smlnm" style="text-align:center; "/>
  195. <col ref="col1" format="#,###" style="text-align:center; "/>
  196. <col ref="col2" format="#,###" style="text-align:center; "/>
  197. <col ref="col3" format="#,###" style="text-align:center; "/>
  198. <col ref="col4" format="#,###" style="text-align:center; "/>
  199. <col ref="col5" format="#,###" style="text-align:center; "/>
  200. <col ref="col6" format="#,###" style="text-align:center; "/>
  201. <col ref="col7" format="#,###" style="text-align:center; "/>
  202. <col ref="col8" format="#,###" style="text-align:center; "/>
  203. <col ref="col9" format="#,###" style="text-align:center; "/>
  204. <col ref="col10" format="#,###" style="text-align:center; "/>
  205. <col ref="col11" format="#,###" style="text-align:center; "/>
  206. <col ref="col12" format="#,###" style="text-align:center; "/>
  207. <col ref="col13" format="#,###" style="text-align:center; "/>
  208. <col ref="col14" format="#,###" style="text-align:center; "/>
  209. <col ref="col15" format="#,###" style="text-align:center; "/>
  210. <col ref="col16" format="#,###" style="text-align:center; "/>
  211. <col ref="sum" format="#,###" style="text-align:center; "/>
  212. <col ref="lrgcd" visibility="hidden" style="text-align:right; "/>
  213. <col ref="mdlcd" visibility="hidden" style="text-align:right; "/>
  214. <col ref="smlcd" visibility="hidden" style="text-align:right; "/>
  215. <col ref="presum" format="#,###" style="text-align:center; "/>
  216. <col ref="increase" format="(-)#,###.99" style="text-align:center; "/>
  217. </datagrid>
  218. <select1 id="rdo_viewflag" ref="/root/main/cond/viewflag" overflow="visible" appearance="full" cols="2" rows="1" style="left:1027px; top:48px; width:93px; height:20px; border-style:none; ">
  219. <choices>
  220. <item>
  221. <label>전체</label>
  222. <value>1</value>
  223. </item>
  224. <item>
  225. <label>기본</label>
  226. <value>2</value>
  227. </item>
  228. </choices>
  229. <script type="javascript" ev:event="onclick">
  230. <![CDATA[
  231. if(rdo_viewflag.value =='1'){
  232. grd_fthendstatsmonthlist.rowHidden(35) = false;
  233. grd_fthendstatsmonthlist.rowHidden(36) = false;
  234. grd_fthendstatsmonthlist.rowHidden(37) = false;
  235. grd_fthendstatsmonthlist.rowHidden(38) = false;
  236. grd_fthendstatsmonthlist.rowHidden(39) = false;
  237. grd_fthendstatsmonthlist.rowHidden(40) = false;
  238. grd_fthendstatsmonthlist.rowHidden(41) = false;
  239. grd_fthendstatsmonthlist.rowHidden(42) = false;
  240. grd_fthendstatsmonthlist.rowHidden(43) = false;
  241. grd_fthendstatsmonthlist.rowHidden(44) = false;
  242. grd_fthendstatsmonthlist.rowHidden(45) = false;
  243. grd_fthendstatsmonthlist.rowHidden(46) = false;
  244. grd_fthendstatsmonthlist.rowHidden(47) = false;
  245. grd_fthendstatsmonthlist.rowHidden(48) = false;
  246. grd_fthendstatsmonthlist.rowHidden(49) = false;
  247. grd_fthendstatsmonthlist.rowHidden(50) = false;
  248. grd_fthendstatsmonthlist.rowHidden(51) = false;
  249. grd_fthendstatsmonthlist.rowHidden(52) = false;
  250. grd_fthendstatsmonthlist.rowHidden(53) = false;
  251. grd_fthendstatsmonthlist.rowHidden(54) = false;
  252. grd_fthendstatsmonthlist.rowHidden(55) = false;
  253. grd_fthendstatsmonthlist.rowHidden(56) = false;
  254. grd_fthendstatsmonthlist.rowHidden(57) = false;
  255. grd_fthendstatsmonthlist.rowHidden(58) = false;
  256. model.refresh();
  257. }
  258. else if(rdo_viewflag.value == '2'){
  259. grd_fthendstatsmonthlist.rowHidden(35) = true;
  260. grd_fthendstatsmonthlist.rowHidden(36) = true;
  261. grd_fthendstatsmonthlist.rowHidden(37) = true;
  262. grd_fthendstatsmonthlist.rowHidden(38) = true;
  263. grd_fthendstatsmonthlist.rowHidden(39) = true;
  264. grd_fthendstatsmonthlist.rowHidden(40) = true;
  265. grd_fthendstatsmonthlist.rowHidden(41) = true;
  266. grd_fthendstatsmonthlist.rowHidden(42) = true;
  267. grd_fthendstatsmonthlist.rowHidden(43) = true;
  268. grd_fthendstatsmonthlist.rowHidden(44) = true;
  269. grd_fthendstatsmonthlist.rowHidden(45) = true;
  270. grd_fthendstatsmonthlist.rowHidden(46) = true;
  271. grd_fthendstatsmonthlist.rowHidden(47) = true;
  272. grd_fthendstatsmonthlist.rowHidden(48) = true;
  273. grd_fthendstatsmonthlist.rowHidden(49) = true;
  274. grd_fthendstatsmonthlist.rowHidden(50) = true;
  275. grd_fthendstatsmonthlist.rowHidden(51) = true;
  276. grd_fthendstatsmonthlist.rowHidden(52) = true;
  277. grd_fthendstatsmonthlist.rowHidden(53) = true;
  278. grd_fthendstatsmonthlist.rowHidden(54) = true;
  279. grd_fthendstatsmonthlist.rowHidden(55) = true;
  280. grd_fthendstatsmonthlist.rowHidden(56) = true;
  281. grd_fthendstatsmonthlist.rowHidden(57) = true;
  282. grd_fthendstatsmonthlist.rowHidden(58) = true;
  283. model.refresh();
  284. }
  285. ]]>
  286. </script>
  287. </select1>
  288. <caption id="caption29" class="cell_1" style="left:944px; top:46px; width:79px; height:21px; text-align:center; vertical-align:middle; ">표시구분</caption>
  289. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:46px; width:64px; height:19px; ">
  290. <caption>엑셀저장</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. fExcel();
  294. ]]>
  295. </script>
  296. </button>
  297. <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:940px; top:43px; width:185px; height:27px; "/>
  298. </group>
  299. </xhtml:body>
  300. </xhtml:html>