SMSTL00100_수탁검사통계.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPS00100_검사항목별통계.xrw
  4. * 설 명 : 검사항목별통계 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.08.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사항목별통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <statstinfo>
  20. <statsinfolist>
  21. <instcd/>
  22. <item01/>
  23. <item02/>
  24. <item03/>
  25. <item04/>
  26. <item05/>
  27. <item06/>
  28. <item07/>
  29. <item08/>
  30. <item09/>
  31. <item10/>
  32. <val01/>
  33. <val02/>
  34. <val03/>
  35. <val04/>
  36. <val05/>
  37. <val06/>
  38. <val07/>
  39. <val08/>
  40. <val09/>
  41. <val10/>
  42. <val11/>
  43. <val12/>
  44. <val13/>
  45. <val14/>
  46. <val15/>
  47. <val16/>
  48. <val17/>
  49. <val18/>
  50. <val19/>
  51. <val20/>
  52. <val21/>
  53. <val22/>
  54. <val23/>
  55. <val24/>
  56. <val25/>
  57. <val26/>
  58. <val27/>
  59. <val28/>
  60. <val29/>
  61. <val30/>
  62. <val31/>
  63. <val32/>
  64. <val33/>
  65. <val34/>
  66. <val35/>
  67. <val36/>
  68. <val37/>
  69. <val38/>
  70. <val39/>
  71. <val40/>
  72. </statsinfolist>
  73. </statstinfo>
  74. </main>
  75. <send/>
  76. <init>
  77. <fromdd/>
  78. <todd/>
  79. <refmthdcd>0</refmthdcd>
  80. <seaval/>
  81. <dispcondcd/>
  82. <testflagcd/>
  83. <statsworkflagcd/>
  84. <sysdt>
  85. <sysdtinfo>
  86. <sysdd/>
  87. <systm/>
  88. </sysdtinfo>
  89. </sysdt>
  90. <resncd>
  91. <resncdlist>
  92. <instcd/>
  93. <baseflagcd/>
  94. <resncd/>
  95. <resncnts/>
  96. </resncdlist>
  97. </resncd>
  98. </init>
  99. <hidden>
  100. </hidden>
  101. <message/>
  102. </root>
  103. </instance>
  104. <bind id="bind01" ref="/root/main/statstinfo/statsinfolist/day01" readonly="../choi/@readonly = 'true'"/>
  105. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  109. <script type="javascript" ev:event="xforms-ready">
  110. <![CDATA[
  111. fExeInitialize();
  112. ]]>
  113. </script>
  114. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  115. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  116. <submission id="SMSLP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
  117. </model>
  118. <script type="javascript">
  119. <![CDATA[
  120. /* @group : 검사항목별통계 화면
  121. * @ver : 2007.02.24 (CMCDEV-0001)
  122. * @by : 유동철(ACK)
  123. * @-----------------------------------
  124. * @type : function
  125. * @access : public
  126. * @desc : 화면초기화 함수
  127. */
  128. function fExeInitialize() {
  129. //---------------------------------------------------------
  130. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  131. //----------------
  132. // 시스템일자 조회
  133. model.removeNodeset("/root/send");
  134. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  135. submit("TRLPZ00102");
  136. //------------------
  137. // 통계구분코드 조회
  138. model.makeValue("/root/send/baseflagcd", "'84'" );
  139. submit("TRLPZ00103");
  140. //------------
  141. // 초기값 설정
  142. model.makeValue("/root/hidden/seaval", ""); // 검색값
  143. model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  144. model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  145. model.makeValue("/root/hidden/refmthdcd", "0"); // 검색방법(일별)
  146. model.makeValue("/root/hidden/dispcondcd", "0"); // 표시조건(접수)
  147. model.makeValue("/root/hidden/testflagcd", "0"); // 검사구분코드(내부)
  148. cbo_statsflagcd.select(0);
  149. //----------------
  150. fExeRadioChange();
  151. }
  152. /* @group : 검사항목별통계 화면
  153. * @ver : 2007.08.2 (CMCDEV-0001)
  154. * @by : 유동철(ACK)
  155. * @-----------------------------------
  156. * @type : function
  157. * @access : public
  158. * @desc : 감사판독 소요시간 조회 처리 함수
  159. */
  160. function fGetStatsInfoList() {
  161. //--------------------------------
  162. model.removeNodeset("/root/send");
  163. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  164. //--------------------------------------------------------------------------
  165. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  166. model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd"));
  167. model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd"));
  168. model.makeValue("/root/send/refmthdcd", model.getValue("/root/hidden/refmthdcd"));
  169. model.makeValue("/root/send/dispcondcd", model.getValue("/root/hidden/dispcondcd"));
  170. model.makeValue("/root/send/testflagcd", model.getValue("/root/hidden/testflagcd"));
  171. model.makeValue("/root/send/statsworkflagcd", "'"+model.getValue("/root/hidden/statsworkflagcd")+"'");
  172. model.makeValue("/root/send/scrnno", "10");
  173. //-------------------
  174. submit("SMSLP00101");
  175. }
  176. /* @group : 검사항목별통계
  177. * @ver : 2007.08.24 (CMCDEV-0001)
  178. * @by : 유동철(ACK)
  179. * @-----------------------------------
  180. * @type : function
  181. * @access : public
  182. * @desc : 검사항목별통계 Excel저장 처리 Function
  183. */
  184. function fExeSaveToExcel() {
  185. var sTitle = "";
  186. switch (model.getValue("/root/hidden/refmthdcd")) {
  187. case "0" : sTitle = "검사항목별 (일별) 통계";
  188. break;
  189. case "1" : sTitle = "검사항목별 (월별) 통계";
  190. break;
  191. case "2" : sTitle = "검사항목별 (년별) 통계";
  192. break;
  193. }
  194. grd_statsinfolist.saveExcel("C:\\SMLPS00100_검사항목별통계.xls", sTitle, false, false);
  195. }
  196. /* @group : 검사항목별통계
  197. * @ver : 2007.08.25 (CMCDEV-0001)
  198. * @by : 유동철(ACK)
  199. * @-----------------------------------
  200. * @type : function
  201. * @access : public
  202. * @desc : 그리드 컬럼 숨김 처리 Function
  203. */
  204. function fExeRadioChange() {
  205. var iFromNo = 0;
  206. var iToNo = 0;
  207. var iWidth = 0;
  208. var bState = false;
  209. var iYear = 0;
  210. var sFromDD = model.getValue("/root/hidden/acptfromdd");
  211. var sToDD = model.getValue("/root/hidden/acpttodd");
  212. var sText = "구분코드^검사코드^검사실^검사항목";
  213. //----------------------------------------------------
  214. if (model.getValue("/root/hidden/refmthdcd") == "0") {
  215. iFromNo = 5;
  216. iToNo = grd_statsinfolist.cols;
  217. iWidth = 31;
  218. bState = false;
  219. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  220. } else if (model.getValue("/root/hidden/refmthdcd") == "1") {
  221. iFromNo = 17;
  222. iToNo = 35;
  223. iWidth = 75;
  224. bState = true;
  225. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  226. } else {
  227. iFromNo = 25;
  228. iToNo = 35;
  229. iWidth = 47;
  230. bState = true;
  231. //---------------------------------------------------------------------------------------
  232. for (var iNo=Number(sFromDD.substr(0,4)); iNo <= Number(sFromDD.substr(0,4))+20; iNo++) {
  233. sText += "^"+iNo;
  234. }
  235. }
  236. //---------------------------------
  237. for (var iNo=5; iNo <= grd_statsinfolist.cols; iNo++) {
  238. if (iFromNo <= iNo && iToNo >= iNo) {
  239. grd_statsinfolist.colHidden(iNo) = bState;
  240. grd_statsinfolist.colWidth(iNo) = iWidth;
  241. } else {
  242. grd_statsinfolist.colHidden(iNo) = !bState;
  243. grd_statsinfolist.colWidth(iNo) = iWidth;
  244. }
  245. }
  246. //--------------------------------
  247. grd_statsinfolist.caption = sText;
  248. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  249. //-------------
  250. model.refresh();
  251. }
  252. ]]>
  253. </script>
  254. </xhtml:head>
  255. <xhtml:body>
  256. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  257. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  258. <button id="button13" class="btn6_letter5" navindex="9" style="left:5px; top:3px; width:92px; height:22px; ">
  259. <caption>EXCEL저장</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fExeSaveToExcel();
  263. ]]>
  264. </script>
  265. </button>
  266. </group>
  267. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  268. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">검사항목별통계</caption>
  269. </group>
  270. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  271. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:13px; ">접수검사목록</caption>
  272. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  273. <datagrid id="grd_statsinfolist" nodeset="/root/main/statstinfo/statsinfolist" class="datagrid2" autoresize="true" caption="구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총&#xA;건수" colsep="^" colwidth="0, 0, 65, 100, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="8" style="left:0; top:75px; width:1194px; height:653px; ">
  274. <col ref="workflagcd"/>
  275. <col ref="testcd"/>
  276. <col class="text_center" ref="resncnts"/>
  277. <col class="text_center" ref="testnm"/>
  278. <col class="text_right" ref="day01" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
  279. <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
  280. <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
  281. <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
  282. <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
  283. <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
  284. <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
  285. <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
  286. <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
  287. <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
  288. <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
  289. <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
  290. <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
  291. <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
  292. <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
  293. <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
  294. <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
  295. <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
  296. <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
  297. <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
  298. <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
  299. <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
  300. <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
  301. <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
  302. <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
  303. <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
  304. <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
  305. <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
  306. <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
  307. <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
  308. <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
  309. <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
  310. <script type="javascript" ev:event="onaftersort">
  311. <![CDATA[
  312. grd_statsinfolist.gridToInstance();
  313. ]]>
  314. </script>
  315. </datagrid>
  316. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  317. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  318. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  319. <caption id="caption2" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">마감일자 :</caption>
  320. <caption id="caption5" class="search_no_b" style="left:207; top:8px; width:12px; height:17px; ">~</caption>
  321. <button id="btn_sea" class="btn1_letter2" navindex="7" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  322. <caption>조회</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. fGetStatsInfoList();
  326. ]]>
  327. </script>
  328. </button>
  329. <input id="ipt_cnclfromdd" ref="/root/init/fromdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:104; top:8px; width:100px; height:19px; ">
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. fExeRadioChange();
  333. ]]>
  334. </script>
  335. </input>
  336. <input id="ipt_cncltodd" ref="/root/init/todd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:223; top:8px; width:100px; height:19px; "/>
  337. <caption id="caption1" class="search_name" style="left:936px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  338. <select1 id="cbo_refmthdcd" ref="/root/init/refmthdcd" navindex="3" appearance="minimal" style="left:1025px; top:8px; width:70px; height:19px; ">
  339. <choices>
  340. <item>
  341. <label>월별</label>
  342. <value>1</value>
  343. </item>
  344. <item>
  345. <label>년별</label>
  346. <value>2</value>
  347. </item>
  348. </choices>
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. fExeRadioChange();
  352. ]]>
  353. </script>
  354. </select1>
  355. </group>
  356. </group>
  357. </xhtml:body>
  358. </xhtml:html>