SMLPS01300_판독의별검사보고시간.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPS01300_판독의별 검사건수/보고시간.xrw
  4. * 설 명 : 판독의별 검사건수/보고시간 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2008.06.16
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <readnm/>
  23. <testcd/>
  24. <testnm/>
  25. <day01/>
  26. <day02/>
  27. <day03/>
  28. <day04/>
  29. <day05/>
  30. <day06/>
  31. <day07/>
  32. <day08/>
  33. <day09/>
  34. <day10/>
  35. <day11/>
  36. <day12/>
  37. <day13/>
  38. <day14/>
  39. <day15/>
  40. <day16/>
  41. <day17/>
  42. <day18/>
  43. <day19/>
  44. <day20/>
  45. <day21/>
  46. <day22/>
  47. <day23/>
  48. <day24/>
  49. <day25/>
  50. <day26/>
  51. <day27/>
  52. <day28/>
  53. <day29/>
  54. <day30/>
  55. <day31/>
  56. <daytot/>
  57. <daytotdd/>
  58. <dayavg/>
  59. <dayavgdd/>
  60. </statsinfolist>
  61. </statstinfo>
  62. </main>
  63. <send/>
  64. <init>
  65. <sysdt>
  66. <sysdtinfo>
  67. <sysdd/>
  68. <systm/>
  69. </sysdtinfo>
  70. </sysdt>
  71. <resncd>
  72. <resncdlist>
  73. <instcd/>
  74. <baseflagcd/>
  75. <resncd/>
  76. <resncnts/>
  77. </resncdlist>
  78. </resncd>
  79. <statsfromdd/>
  80. <statstodd/>
  81. <refmthdcd>0</refmthdcd>
  82. <statsworkflagcd/>
  83. <refflagcd/>
  84. <mdlcdlist>
  85. <mdlcdinfo>
  86. <choi/>
  87. <instcd/>
  88. <baseflagcd/>
  89. <resncd/>
  90. <resncnts/>
  91. <mdlflagcd/>
  92. </mdlcdinfo>
  93. </mdlcdlist>
  94. </init>
  95. <hidden>
  96. <seaval/>
  97. </hidden>
  98. <message/>
  99. </root>
  100. </instance>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  104. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. fExeInitialize();
  108. ]]>
  109. </script>
  110. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  111. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  112. <submission id="TRLPS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
  113. <submission id="TRLPC02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/mdlcdlist/mdlcdinfo"/>
  114. </model>
  115. <script type="javascript">
  116. <![CDATA[
  117. /* @group : 판독의별 검사건수/보고시간 화면
  118. * @ver : 2008.06.16 (CMCDEV-0001)
  119. * @by : 유동철(ACK)
  120. * @-----------------------------------
  121. * @type : function
  122. * @access : public
  123. * @desc : 화면초기화 함수
  124. */
  125. function fExeInitialize() {
  126. //---------------------------------------------------------
  127. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  128. //----------------
  129. // 시스템일자 조회
  130. model.removeNodeset("/root/send");
  131. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  132. submit("TRLPZ00102");
  133. //------------------
  134. // 통계구분코드 조회
  135. //model.makeValue("/root/send/baseflagcd", "'84'" );
  136. //submit("TRLPZ00103");
  137. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  138. model.makeValue("/root/send/delflagcd", "0");
  139. model.makeValue("/root/send/baseflagcd", "ZA");
  140. model.makeValue("/root/send/resncd", "05");
  141. if(submit("TRLPC02802")) {
  142. //---------------------------------
  143. // 전체조회용 Instance생성
  144. var iNodeCnt = Number(getNodesetCount("/root/init/mdlcdlist/mdlcdinfo")) + 1;
  145. model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/resncd", "ZZZZ");
  146. model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/resncnts", "전체");
  147. model.makeValue("/root/init/mdlcdlist/mdlcdinfo[" + iNodeCnt + "]/baseflagcd", "ZA");
  148. }
  149. //------------
  150. // 초기값 설정
  151. model.makeValue("/root/init/statsfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 보고일자(From)
  152. model.makeValue("/root/init/statstodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 보고일자(To)
  153. model.makeValue("/root/init/refmthdcd", "0"); // 검색방법(일별)
  154. model.makeValue("/root/init/refflagcd", "0"); // 검색구분(0:검사건수, 1:보고시간)
  155. model.makeValue("/root/init/statsworkflagcd", "ZZZZ"); // 통계구분
  156. cbo_statsflagcd.select(0);
  157. //----------------
  158. fExeRadioChange();
  159. }
  160. /* @group : 판독의별 검사건수/보고시간 화면
  161. * @ver : 2007.08.2 (CMCDEV-0001)
  162. * @by : 유동철(ACK)
  163. * @-----------------------------------
  164. * @type : function
  165. * @access : public
  166. * @desc : 감사판독 소요시간 조회 처리 함수
  167. */
  168. function fGetStatsInfoList() {
  169. //--------------------------------
  170. model.removeNodeset("/root/send");
  171. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  172. //--------------------------------------------------------------------------
  173. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  174. model.makeValue("/root/send/statsfromdd", model.getValue("/root/init/statsfromdd"));
  175. model.makeValue("/root/send/statstodd", model.getValue("/root/init/statstodd"));
  176. model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd"));
  177. model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
  178. model.makeValue("/root/send/statsworkflagcd", model.getValue("/root/init/statsworkflagcd"));
  179. //-------------------
  180. submit("TRLPS01301");
  181. }
  182. /* @group : 판독의별 검사건수/보고시간
  183. * @ver : 2008.06.16 (CMCDEV-0001)
  184. * @by : 유동철(ACK)
  185. * @-----------------------------------
  186. * @type : function
  187. * @access : public
  188. * @desc : 판독의별 검사건수/보고시간 Excel저장 처리 Function
  189. */
  190. function fExeSaveToExcel() {
  191. var sTitle = "판독의별 ";
  192. //---------------------------------------------------
  193. if (model.getValue("/root/init/refflagcd") == "0") {
  194. //--------------------------------------------------
  195. switch (model.getValue("/root/hidden/refmthdcd")) {
  196. case "0" : sTitle += "검사건수(일별)";
  197. break;
  198. case "1" : sTitle += "검사건수(월별)";
  199. break;
  200. }
  201. } else {
  202. //--------------------------------------------------
  203. switch (model.getValue("/root/hidden/refmthdcd")) {
  204. case "0" : sTitle += "보고시간(일별)";
  205. break;
  206. case "1" : sTitle += "보고시간(월별)";
  207. break;
  208. }
  209. }
  210. //--------------------------------------------
  211. lpzfExeSaveToExcel(grd_statsinfolist, sTitle);
  212. }
  213. /* @group : 판독의별 검사건수/보고시간
  214. * @ver : 2008.06.16 (CMCDEV-0001)
  215. * @by : 유동철(ACK)
  216. * @-----------------------------------
  217. * @type : function
  218. * @access : public
  219. * @desc : 그리드 컬럼 숨김 처리 Function
  220. */
  221. function fExeRadioChange() {
  222. var iFromNo = 0;
  223. var iToNo = 0;
  224. var iWidth = 0;
  225. var bState = false;
  226. var iYear = 0;
  227. var sFromDD = model.getValue("/root/init/statsfromdd");
  228. var sToDD = model.getValue("/root/init/statsttodd");
  229. var sText = "기관코드^판독의^검사코드^검사명";
  230. //--------------------------------------------------
  231. if (model.getValue("/root/init/refmthdcd") == "0") {
  232. iFromNo = 5;
  233. iToNo = grd_statsinfolist.cols;
  234. iWidth = 30;
  235. bState = false;
  236. //---------------------------------------------------
  237. if (model.getValue("/root/init/refflagcd") == "0") {
  238. 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건수^";
  239. } else {
  240. 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시간^총\n일자^평균\n시간^평균\n일자";
  241. }
  242. } else if (model.getValue("/root/init/refmthdcd") == "1") {
  243. iFromNo = 17;
  244. iToNo = 35;
  245. iWidth = 70;
  246. bState = true;
  247. //---------------------------------------------------
  248. if (model.getValue("/root/init/refflagcd") == "0") {
  249. 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건수^";
  250. } else {
  251. 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시간^총\n일자^평균\n시간^평균\n일자";
  252. }
  253. } else {
  254. iFromNo = 25;
  255. iToNo = 35;
  256. iWidth = 47;
  257. bState = true;
  258. //---------------------------------------------------------------------------------------
  259. for (var iNo=Number(sFromDD.substr(0,4)); iNo <= Number(sFromDD.substr(0,4))+20; iNo++) {
  260. sText += "^"+iNo;
  261. }
  262. }
  263. //------------------------------------------------------
  264. for (var iNo=5; iNo <= grd_statsinfolist.cols; iNo++) {
  265. if (iFromNo <= iNo && iToNo >= iNo) {
  266. grd_statsinfolist.colHidden(iNo) = bState;
  267. grd_statsinfolist.colWidth(iNo) = iWidth;
  268. } else {
  269. grd_statsinfolist.colHidden(iNo) = !bState;
  270. grd_statsinfolist.colWidth(iNo) = iWidth;
  271. }
  272. }
  273. //---------------------------------------------
  274. // 검사건수 조회일 경우 평균시간, 총일자, 평균일자 컬럼을 숨긴다.
  275. if (model.getValue("/root/init/refflagcd") == "0") {
  276. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("daytotdd")) = 0;
  277. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("dayavg")) = 0;
  278. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("dayavgdd")) = 0;
  279. } else {
  280. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("daytot")) = "60";
  281. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("daytotdd")) = "40";
  282. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("dayavg")) = iWidth;
  283. grd_statsinfolist.colWidth(grd_statsinfolist.colRef("dayavgdd")) = iWidth;
  284. }
  285. //--------------------------------
  286. grd_statsinfolist.caption = sText;
  287. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  288. //-------------
  289. model.refresh();
  290. }
  291. ]]>
  292. </script>
  293. </xhtml:head>
  294. <xhtml:body>
  295. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  296. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  297. <button id="button13" class="btn6_letter5" navindex="8" style="left:5px; top:3px; width:92px; height:22px; ">
  298. <caption>EXCEL저장</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fExeSaveToExcel();
  302. ]]>
  303. </script>
  304. </button>
  305. </group>
  306. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  307. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:13px; ">판독의별 검사건수/보고시간(시간기준)</caption>
  308. </group>
  309. <group id="grp_biz" style="left:0px; top:40px; width:1195px; height:744px; ">
  310. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:13px; ">접수검사목록</caption>
  311. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  312. <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;시간^총&#xA;일자^평균&#xA;시간^평균&#xA;일자" colsep="^" colwidth="0, 70, 0, 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, 60, 40, 31, 31" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="7" style="left:0px; top:75px; width:1194px; height:653px; ">
  313. <col ref="instcd"/>
  314. <col ref="readnm"/>
  315. <col class="text_center" ref="testcd"/>
  316. <col class="text_center" ref="testnm"/>
  317. <col class="text_right" ref="day01" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
  318. <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
  319. <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
  320. <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
  321. <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
  322. <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
  323. <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
  324. <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
  325. <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
  326. <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
  327. <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
  328. <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
  329. <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
  330. <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
  331. <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
  332. <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
  333. <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
  334. <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
  335. <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
  336. <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
  337. <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
  338. <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
  339. <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
  340. <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
  341. <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
  342. <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
  343. <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
  344. <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
  345. <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
  346. <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
  347. <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
  348. <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
  349. <col class="text_right" ref="daytotdd" format="#,###.#" mask="exclude" showmask="true"/>
  350. <col class="text_right" ref="dayavg" format="#,###" mask="exclude" showmask="true"/>
  351. <col class="text_right" ref="dayavgdd" format="#,###.#" mask="exclude" showmask="true"/>
  352. <script type="javascript" ev:event="onaftersort">
  353. <![CDATA[
  354. grd_statsinfolist.gridToInstance();
  355. ]]>
  356. </script>
  357. </datagrid>
  358. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  359. <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; "/>
  360. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  361. <caption id="caption2" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">보고일자 :</caption>
  362. <caption id="caption5" class="search_no_b" style="left:207; top:8px; width:12px; height:17px; ">~</caption>
  363. <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  364. <caption>조회</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. fGetStatsInfoList();
  368. ]]>
  369. </script>
  370. </button>
  371. <input id="ipt_cnclfromdd" ref="/root/init/statsfromdd" 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; ">
  372. <script type="javascript" ev:event="xforms-value-changed">
  373. <![CDATA[
  374. fExeRadioChange();
  375. ]]>
  376. </script>
  377. </input>
  378. <input id="ipt_cncltodd" ref="/root/init/statstodd" 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; "/>
  379. <caption id="caption1" class="search_name" style="left:391px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  380. <select1 id="cbo_refmthdcd" ref="/root/init/refmthdcd" navindex="3" appearance="minimal" style="left:480px; top:8px; width:70px; height:19px; ">
  381. <choices>
  382. <item>
  383. <label>일별</label>
  384. <value>0</value>
  385. </item>
  386. <item>
  387. <label>월별</label>
  388. <value>1</value>
  389. </item>
  390. </choices>
  391. <script type="javascript" ev:event="xforms-value-changed">
  392. <![CDATA[
  393. fExeRadioChange();
  394. ]]>
  395. </script>
  396. </select1>
  397. <caption id="caption8" class="search_name" style="left:856px; top:9px; width:86px; height:17px; ">통계구분 :</caption>
  398. <select1 id="cbo_statsflagcd" ref="/root/init/statsworkflagcd" navindex="5" appearance="minimal" style="left:945px; top:8px; width:148px; height:19px; ">
  399. <choices>
  400. <itemset nodeset="/root/init/mdlcdlist/mdlcdinfo">
  401. <label ref="resncnts"/>
  402. <value ref="resncd"/>
  403. </itemset>
  404. </choices>
  405. </select1>
  406. <select1 id="combo1" ref="/root/init/refflagcd" navindex="4" appearance="minimal" style="left:705px; top:8px; width:95px; height:19px; ">
  407. <choices>
  408. <item>
  409. <label>검사건수</label>
  410. <value>0</value>
  411. </item>
  412. <item>
  413. <label>보고시간</label>
  414. <value>1</value>
  415. </item>
  416. </choices>
  417. <script type="javascript" ev:event="xforms-value-changed">
  418. <![CDATA[
  419. fExeRadioChange();
  420. ]]>
  421. </script>
  422. </select1>
  423. <caption id="caption3" class="search_name" style="left:616px; top:9px; width:86px; height:17px; ">검색구분 :</caption>
  424. </group>
  425. </group>
  426. </xhtml:body>
  427. </xhtml:html>