SMSDT00200_월별원목업무총집계표.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT00200.월별원목업무총집계표.xrw
  4. * 설 명 : 월별 원목업무 총 집계표
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2008.07.31
  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. <sum/>
  36. <presum/>
  37. <increase/>
  38. <lrgcd/>
  39. <mdlcd/>
  40. <smlcd/>
  41. </fthinfolist>
  42. </fthinfo>
  43. <cond>
  44. <yearflag>2</yearflag>
  45. <endyy/>
  46. <conslrid/>
  47. <viewflag>1</viewflag>
  48. <qurtyy/>
  49. <entryy/>
  50. </cond>
  51. </main>
  52. <send>
  53. <reqdata/>
  54. </send>
  55. <init>
  56. <comcodelist>
  57. <conslrlist>
  58. <conslrlistinfo>
  59. <conslrid/>
  60. <conslrnm>전체</conslrnm>
  61. </conslrlistinfo>
  62. </conslrlist>
  63. </comcodelist>
  64. <jobrespcd/>
  65. </init>
  66. <hidden/>
  67. </root>
  68. </instance>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  73. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  74. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. fGetComCdList();
  78. fGetJobrespcd();
  79. ]]>
  80. </script>
  81. <submission id="TRSDT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthinfo"/>
  82. <submission id="TRAYA00101" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
  83. <bind id="sum" ref="/root/main/fthinfo/fthinfolist/sum" calculate="../col1 +../col2 +../col3 +../col4 +../col5 +../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12"/>
  84. <bind id="increase" ref="/root/main/fthinfo/fthinfolist/increase" calculate="( ../sum - ../presum ) div ../presum * 100"/>
  85. </model>
  86. <script type="javascript">
  87. <![CDATA[
  88. /**========================================================================================================================================
  89. * 원목자조회, 그리드초기화
  90. =========================================================================================================================================*/
  91. function fGetComCdList(){
  92. var currentDate = getCurrentDate();
  93. var currentYear = currentDate.substring(0, 4);
  94. // 그리드초기화
  95. model.removeNodeset("/root/main/ftninfo/fthinfolist");
  96. model.setValue("/root/main/cond/endyy",currentYear);
  97. model.setValue("/root/main/cond/entryy",currentYear);
  98. model.removeNodeset(grd_fthendstatsmonthlist.nodeset);
  99. cmb_qurtyy.select(0);
  100. cmb_qurtyy.disabled = true;
  101. // 원목자 조회
  102. model.makeValue("/root/send/reqdata/joblncd", "B");
  103. submit("TRAYA00101", false);
  104. addComboItem("cmb_conslrid", "전체", "", "above");
  105. var code = getUserInfo('jobrespcd');
  106. model.refresh();
  107. }
  108. /**========================================================================================================================================
  109. * 월별원목업무총집계표 조회
  110. =========================================================================================================================================*/
  111. function fGetFthInfoList(){
  112. var endyy = model.getValue("/root/main/cond/endyy");
  113. if( endyy == ""){
  114. messageBox("조회년도를","C001" );
  115. model.refresh();
  116. return;
  117. }
  118. model.removeNodeset("/root/send/reqdata");
  119. model.makeNode("/root/send/reqdata");
  120. model.copyNode("/root/send/reqdata", "/root/main/cond");
  121. //grid merge
  122. grd_fthendstatsmonthlist.mergeCells = "bycolrec";
  123. grd_fthendstatsmonthlist.mergeCol(0) = true;
  124. grd_fthendstatsmonthlist.mergeCol(1) = true;
  125. grd_fthendstatsmonthlist.mergeCol(2) = true;
  126. grd_fthendstatsmonthlist.mergeCol(3) = false;
  127. grd_fthendstatsmonthlist.mergeCol(4) = false;
  128. grd_fthendstatsmonthlist.mergeCol(5) = false;
  129. grd_fthendstatsmonthlist.mergeCol(6) = false;
  130. grd_fthendstatsmonthlist.mergeCol(7) = false;
  131. grd_fthendstatsmonthlist.mergeCol(8) = false;
  132. grd_fthendstatsmonthlist.mergeCol(9) = false;
  133. grd_fthendstatsmonthlist.mergeCol(10) = false;
  134. grd_fthendstatsmonthlist.mergeCol(11) = false;
  135. grd_fthendstatsmonthlist.mergeCol(12) = false;
  136. grd_fthendstatsmonthlist.mergeCol(13) = false;
  137. grd_fthendstatsmonthlist.mergeCol(14) = false;
  138. grd_fthendstatsmonthlist.mergeCol(15) = false;
  139. grd_fthendstatsmonthlist.mergeCol(16) = false;
  140. grd_fthendstatsmonthlist.mergeCol(17) = false;
  141. grd_fthendstatsmonthlist.mergeCol(18) = false;
  142. grd_fthendstatsmonthlist.mergeCol(19) = false;
  143. grd_fthendstatsmonthlist.mergeCol(20) = false;
  144. grd_fthendstatsmonthlist.mergeCol(21) = false;
  145. submit("TRSDT00201");
  146. }
  147. /**========================================================================================================================================
  148. * 엑셀저장 버튼 클릭시
  149. =========================================================================================================================================*/
  150. function fExcel() {
  151. if (grd_fthendstatsmonthlist.rows <= 1) {
  152. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  153. return;
  154. }
  155. var fileName = window.fileDialog("save", ",", false, "월별 원목업무 총집계표", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  156. if (fileName != ""){
  157. grd_fthendstatsmonthlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  158. }
  159. }
  160. /**========================================================================================================================================
  161. * 월별원목업무총집계표 초기화
  162. =========================================================================================================================================*/
  163. function fInitialize()
  164. {
  165. // 그리드초기화
  166. model.removeNodeset("/root/main/ftninfo/fthinfolist");
  167. model.removeNodeset("/root/main/cond/fthendyy");
  168. model.removeNodeset(grd_fthendstatsmonthlist.nodeset);
  169. cmb_conslrid.select(0);
  170. model.refresh();
  171. }
  172. /**========================================================================================================================================
  173. * 원목자 권한
  174. =========================================================================================================================================*/
  175. function fGetJobrespcd(){
  176. //사용자ID (입력자 또는 로그인한 사용자ID)
  177. var userid = getUserInfo("userid");
  178. model.setValue(cmb_conslrid.attribute("ref"), userid);
  179. model.refresh();
  180. var code = getUserInfo('jobrespcd');
  181. if(code == '1070' || code == '1020' || code =='1030' || code =='01'){
  182. cmb_conslrid.disabled = false;
  183. }else{
  184. cmb_conslrid.disabled = true;
  185. }
  186. }
  187. /**========================================================================================================================================
  188. * 년도 구분
  189. =========================================================================================================================================*/
  190. function fYearflaginfo(){
  191. var yearflag = model.getValue("/root/main/cond/yearflag");
  192. if(yearflag == '2'){
  193. cmb_qurtyy.disabled = true;
  194. cmb_qurtyy.select (0);
  195. }else if(yearflag == '1'){
  196. cmb_qurtyy.disabled = false;
  197. }
  198. }
  199. ]]>
  200. </script>
  201. </xhtml:head>
  202. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  203. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  204. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">월별 원목업무 총 집계표</caption>
  205. </group>
  206. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  207. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  208. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  209. <caption>초기화</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. fInitialize();
  213. ]]>
  214. </script>
  215. </button>
  216. </group>
  217. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  218. <caption id="caption21" class="tit_2" style="left:0px; top:50px; width:190px; height:14px; ">월별 원목업무 총 집계표</caption>
  219. <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:73px; "/>
  220. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  221. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  222. <button id="button2" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. fGetFthInfoList();
  227. ]]>
  228. </script>
  229. </button>
  230. <caption id="caption23" class="search_name" style="left:370px; top:8px; width:80px; height:17px; ">원목자 :</caption>
  231. <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" class="combo_default" appearance="minimal" style="left:455px; top:8px; width:130px; height:19px; ">
  232. <choices>
  233. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  234. <label ref="conslrnm"/>
  235. <value ref="conslrid"/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  240. <input id="ipt_year" ref="/root/main/cond/endyy" style="left:170px; top:8px; width:55px; height:19px; "/>
  241. <select1 id="rdo_yearflag" ref="/root/main/cond/yearflag" overflow="visible" appearance="full" cols="2" rows="1" style="left:25px; top:8px; width:140px; height:20px; border-style:none; ">
  242. <choices>
  243. <item>
  244. <label>달력년도</label>
  245. <value>2</value>
  246. </item>
  247. <item>
  248. <label>사업년도</label>
  249. <value>1</value>
  250. </item>
  251. </choices>
  252. <script type="javascript" ev:event="xforms-select">
  253. <![CDATA[
  254. fYearflaginfo();
  255. ]]>
  256. </script>
  257. </select1>
  258. <select1 id="cmb_qurtyy" ref="/root/main/cond/qurtyy" appearance="minimal" style="left:230px; top:8px; width:70px; height:19px; ">
  259. <choices>
  260. <item>
  261. <label>전체</label>
  262. <value/>
  263. </item>
  264. <item>
  265. <label>1분기</label>
  266. <value>1</value>
  267. </item>
  268. <item>
  269. <label>2분기</label>
  270. <value>2</value>
  271. </item>
  272. <item>
  273. <label>3분기</label>
  274. <value>3</value>
  275. </item>
  276. <item>
  277. <label>4분기</label>
  278. <value>4</value>
  279. </item>
  280. </choices>
  281. </select1>
  282. <input id="ipt_entryy" ref="/root/main/cond/entryy" visibility="hidden" style="left:305px; top:8px; width:55px; height:19px; "/>
  283. </group>
  284. <datagrid id="grd_fthendstatsmonthlist" nodeset="/root/main/fthinfo/fthinfolist" autoresize="true" caption="항목^세부단위 업무^세부단위 업무^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^lrgcd^mdlcd^smlcd^ 전년도 (분기) 합계^증감율(%)|항목^세부단위 업무^세부단위 업무^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^lrgcd^mdlcd^smlcd^ 전년도 (분기) 합계^증감율(%)" colsep="^" colwidth="85, 150, 137, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 65, 7, 6, 6, 75, 65" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:77px; width:1195px; height:662px; ">
  285. <col ref="lrgnm" style="text-align:center; "/>
  286. <col ref="mdlnm" style="text-align:center; "/>
  287. <col ref="smlnm" style="text-align:center; "/>
  288. <col ref="col1" format="#,###" style="text-align:center; "/>
  289. <col ref="col2" format="#,###" style="text-align:center; "/>
  290. <col ref="col3" format="#,###" style="text-align:center; "/>
  291. <col ref="col4" format="#,###" style="text-align:center; "/>
  292. <col ref="col5" format="#,###" style="text-align:center; "/>
  293. <col ref="col6" format="#,###" style="text-align:center; "/>
  294. <col ref="col7" format="#,###" style="text-align:center; "/>
  295. <col ref="col8" format="#,###" style="text-align:center; "/>
  296. <col ref="col9" format="#,###" style="text-align:center; "/>
  297. <col ref="col10" format="#,###" style="text-align:center; "/>
  298. <col ref="col11" format="#,###" style="text-align:center; "/>
  299. <col ref="col12" format="#,###" style="text-align:center; "/>
  300. <col ref="sum" format="#,###" style="text-align:center; "/>
  301. <col ref="lrgcd" visibility="hidden" style="text-align:right; "/>
  302. <col ref="mdlcd" visibility="hidden" style="text-align:right; "/>
  303. <col ref="smlcd" visibility="hidden" style="text-align:right; "/>
  304. <col ref="presum" format="#,###" style="text-align:center; "/>
  305. <col ref="increase" format="(-)#,###.99" style="text-align:center; "/>
  306. </datagrid>
  307. <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; ">
  308. <choices>
  309. <item>
  310. <label>전체</label>
  311. <value>1</value>
  312. </item>
  313. <item>
  314. <label>기본</label>
  315. <value>2</value>
  316. </item>
  317. </choices>
  318. <script type="javascript" ev:event="onclick">
  319. <![CDATA[
  320. if(rdo_viewflag.value =='1'){
  321. grd_fthendstatsmonthlist.rowHidden(35) = false;
  322. grd_fthendstatsmonthlist.rowHidden(36) = false;
  323. grd_fthendstatsmonthlist.rowHidden(37) = false;
  324. grd_fthendstatsmonthlist.rowHidden(38) = false;
  325. grd_fthendstatsmonthlist.rowHidden(39) = false;
  326. grd_fthendstatsmonthlist.rowHidden(40) = false;
  327. grd_fthendstatsmonthlist.rowHidden(41) = false;
  328. grd_fthendstatsmonthlist.rowHidden(42) = false;
  329. grd_fthendstatsmonthlist.rowHidden(43) = false;
  330. grd_fthendstatsmonthlist.rowHidden(44) = false;
  331. grd_fthendstatsmonthlist.rowHidden(45) = false;
  332. grd_fthendstatsmonthlist.rowHidden(46) = false;
  333. grd_fthendstatsmonthlist.rowHidden(47) = false;
  334. grd_fthendstatsmonthlist.rowHidden(48) = false;
  335. grd_fthendstatsmonthlist.rowHidden(49) = false;
  336. grd_fthendstatsmonthlist.rowHidden(50) = false;
  337. grd_fthendstatsmonthlist.rowHidden(51) = false;
  338. grd_fthendstatsmonthlist.rowHidden(52) = false;
  339. grd_fthendstatsmonthlist.rowHidden(53) = false;
  340. grd_fthendstatsmonthlist.rowHidden(54) = false;
  341. grd_fthendstatsmonthlist.rowHidden(55) = false;
  342. grd_fthendstatsmonthlist.rowHidden(56) = false;
  343. grd_fthendstatsmonthlist.rowHidden(57) = false;
  344. grd_fthendstatsmonthlist.rowHidden(58) = false;
  345. model.refresh();
  346. }
  347. else if(rdo_viewflag.value == '2'){
  348. grd_fthendstatsmonthlist.rowHidden(35) = true;
  349. grd_fthendstatsmonthlist.rowHidden(36) = true;
  350. grd_fthendstatsmonthlist.rowHidden(37) = true;
  351. grd_fthendstatsmonthlist.rowHidden(38) = true;
  352. grd_fthendstatsmonthlist.rowHidden(39) = true;
  353. grd_fthendstatsmonthlist.rowHidden(40) = true;
  354. grd_fthendstatsmonthlist.rowHidden(41) = true;
  355. grd_fthendstatsmonthlist.rowHidden(42) = true;
  356. grd_fthendstatsmonthlist.rowHidden(43) = true;
  357. grd_fthendstatsmonthlist.rowHidden(44) = true;
  358. grd_fthendstatsmonthlist.rowHidden(45) = true;
  359. grd_fthendstatsmonthlist.rowHidden(46) = true;
  360. grd_fthendstatsmonthlist.rowHidden(47) = true;
  361. grd_fthendstatsmonthlist.rowHidden(48) = true;
  362. grd_fthendstatsmonthlist.rowHidden(49) = true;
  363. grd_fthendstatsmonthlist.rowHidden(50) = true;
  364. grd_fthendstatsmonthlist.rowHidden(51) = true;
  365. grd_fthendstatsmonthlist.rowHidden(52) = true;
  366. grd_fthendstatsmonthlist.rowHidden(53) = true;
  367. grd_fthendstatsmonthlist.rowHidden(54) = true;
  368. grd_fthendstatsmonthlist.rowHidden(55) = true;
  369. grd_fthendstatsmonthlist.rowHidden(56) = true;
  370. grd_fthendstatsmonthlist.rowHidden(57) = true;
  371. grd_fthendstatsmonthlist.rowHidden(58) = true;
  372. model.refresh();
  373. }
  374. ]]>
  375. </script>
  376. </select1>
  377. <caption id="caption29" class="cell_1" style="left:944px; top:46px; width:79px; height:21px; text-align:center; vertical-align:middle; ">표시구분</caption>
  378. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:46px; width:64px; height:19px; ">
  379. <caption>엑셀저장</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. fExcel();
  383. ]]>
  384. </script>
  385. </button>
  386. <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:940px; top:43px; width:185px; height:27px; "/>
  387. </group>
  388. </xhtml:body>
  389. </xhtml:html>