SMAHS00800_개인별건진추천현황.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <recmlst>
  11. <item>
  12. </item>
  13. </recmlst>
  14. <recmdetllst>
  15. <item>
  16. <instnm/>
  17. <pos/>
  18. <recmempid/>
  19. <recmempnm/>
  20. <hopedd/>
  21. <healexamnm/>
  22. <pid/>
  23. <pkgnm/>
  24. <pkgcd/>
  25. <recmpoint/>
  26. </item>
  27. </recmdetllst>
  28. <export/>
  29. </main>
  30. <send>
  31. <srchfromdd/>
  32. <srchtodd/>
  33. <srchinstcd/>
  34. <srchrecmpkgcd/>
  35. <srchrecmempid/>
  36. <srchrecmemnm/>
  37. <srchcondstnd>1</srchcondstnd>
  38. </send>
  39. <hidden>
  40. </hidden>
  41. <init>
  42. <baseinfo>
  43. <yearlst/>
  44. <recmpkglst/>
  45. </baseinfo>
  46. <srch>
  47. <fromdd/>
  48. <todd/>
  49. <year/>
  50. <qurtyy/>
  51. <ddflag>1</ddflag>
  52. </srch>
  53. </init>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. // 일자초기화
  59. model.setValue("/root/init/srch/fromdd" , getCurrentDate());
  60. model.setValue("/root/init/srch/todd" , getCurrentDate());
  61. model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
  62. model.setValue("/root/init/srch/qurtyy" , "03");
  63. // 기관코드 초기화
  64. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  65. // 공통코드 조회
  66. zbcfGetCodeList( new Array("P0167","R0009"), new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst" ) );
  67. // 건진 공통코드 조회
  68. healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
  69. rdo_ddflag.dispatch("xforms-select");
  70. //추천현황 그리드를 동적으로 그린다.
  71. fMakeRecmGrd();
  72. model.refresh();
  73. ]]>
  74. </script>
  75. <script type="javascript">
  76. <![CDATA[
  77. /*
  78. * 화면merge와 소계 및 총계를 생성한다.
  79. */
  80. function fSetRcptSum(vFlag) {
  81. // 그리드 merge 및 합계 초기화
  82. if(vFlag == "A") {
  83. grd_recmlst.subtotalPosition = "below";
  84. grd_recmlst.multiTotals = true;
  85. grd_recmlst.subtotal("clear", 0, 0);
  86. // 추천현황
  87. for(var i = 0; i < grd_recmlst.cols ; i++) {
  88. // 소계
  89. if(i > grd_recmlst.colRef("pos") && i <= grd_recmlst.colRef("recmpoint") ) {
  90. grd_recmlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmlst.colRef("instnm") , "합 계" );
  91. }
  92. }
  93. }else if(vFlag == "B"){
  94. grd_recmdetllst.subtotalPosition = "below";
  95. grd_recmdetllst.multiTotals = true;
  96. grd_recmdetllst.subtotal("clear", 0, 0);
  97. // 추천내역
  98. for(var i =0; i < grd_recmdetllst.cols ; i++) {
  99. // 건수
  100. if(i == grd_recmdetllst.colRef("pkgcd") ) {
  101. grd_recmdetllst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
  102. }
  103. // 소계
  104. if( i >= grd_recmdetllst.colRef("recmpoint") && i <= grd_recmdetllst.colRef("recmpoint") ) {
  105. grd_recmdetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
  106. }
  107. }
  108. }
  109. }
  110. /*
  111. * 일자 활성화 및 일자초기화
  112. */
  113. function fSetDate() {
  114. if(rdo_ddflag.value == "1") {
  115. // 분기별
  116. ipt_fromdd.disabled = true;
  117. ipt_todd.disabled = true;
  118. cmb_year.disabled = false;
  119. cmb_qurtyy.disabled = false;
  120. // 일자초기화
  121. var year = cmb_year.value;
  122. var month = cmb_qurtyy.value;
  123. var todd = new Date(year , parseInt(month,10) + 2 , 0 );
  124. // 시작일
  125. model.setValue("/root/send/srchfromdd" , year + month + "01");
  126. // 종료일
  127. model.setValue("/root/send/srchtodd", new String(todd.getYear()) + new String(todd.getMonth() + 1).getLeftPad(2,"0") + new String(todd.getDate()) );
  128. }else if(rdo_ddflag.value == "2") {
  129. // 기간별
  130. ipt_fromdd.disabled = false;
  131. ipt_todd.disabled = false;
  132. cmb_year.disabled = true;
  133. cmb_qurtyy.disabled = true;
  134. // 일자초기화
  135. model.setValue("/root/send/srchfromdd" , ipt_fromdd.value);
  136. model.setValue("/root/send/srchtodd" , ipt_todd.value);
  137. }
  138. }
  139. /**
  140. * @desc : 직원정보가져오기
  141. */
  142. function fGetEmpInfo(vEmplNoNode, vEmpNmNode){
  143. model.makeNode("/root/temp/userpopupinfo/param");
  144. model.makeNode("/root/temp/userpopupinfo/flag");
  145. model.makeNode("/root/temp/userpopupinfo/searchitem");
  146. model.setValue("/root/temp/userpopupinfo/param" , "_OneS");
  147. model.setValue("/root/temp/userpopupinfo/flag" , "usernm");
  148. model.setValue("/root/temp/userpopupinfo/searchitem" , "사용자명");
  149. model.removeNodeset("/root/hidden/onerowselect/list");
  150. modal("SPZSU10103_사용자부서조회", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
  151. var iParam = getParameter("SPZSU10103_");
  152. model.makeNode("/root/hidden/onerowselect");
  153. model.makeNode("/root/main/ptbs/ptbs_recmernm");
  154. setCSVToNode("/root/hidden/onerowselect", iParam);
  155. model.setValue(vEmplNoNode , model.getValue("/root/hidden/onerowselect/list/userid") );
  156. model.setValue(vEmpNmNode , model.getValue("/root/hidden/onerowselect/list/usernm") );
  157. clearParameter("SPZSU10103_");
  158. model.removeNodeset("/root/temp/userpopupinfo");
  159. model.refresh();
  160. }
  161. /**
  162. * @desc : 추천현황 그리드를 동적으로 그린다.
  163. */
  164. function fMakeRecmGrd() {
  165. var cap = "";
  166. var addCol = 1;
  167. var front_cap = "기관^사원번호^성명^소속^";
  168. var back_cap = "점수";
  169. grd_recmlst.addColumn("ref:instnm; type:output;");
  170. grd_recmlst.addColumn("ref:recmempid; type:output;");
  171. grd_recmlst.addColumn("ref:usernm; type:output;");
  172. grd_recmlst.addColumn("ref:pos; type:output;");
  173. cap += front_cap;
  174. for(var i=1; i <= getNodesetCount("/root/init/baseinfo/recmpkglst/S210"); i++) {
  175. var cdid = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdid");
  176. var cdnm = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdnm");
  177. if(cdid != "") {
  178. cap += cdid + "^";
  179. grd_recmlst.addColumn("ref:pkg" + addCol + "; type:output;");
  180. addCol++;
  181. }
  182. }
  183. cap += back_cap;
  184. grd_recmlst.addColumn("ref:recmpoint; type:output;");
  185. grd_recmlst.caption = cap;
  186. grd_recmlst.resizeCells();
  187. grd_recmlst.rebuild();
  188. }
  189. ]]>
  190. </script>
  191. <submission id="TRZBC00101"/>
  192. <submission id="TRAHA00001"/>
  193. <submission id="TRAHS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recmlst"/>
  194. <submission id="TRAHS00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recmdetllst"/>
  195. </model>
  196. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  202. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  203. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  204. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  205. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  206. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  207. </xhtml:head>
  208. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  209. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  210. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">개인별 건진 추천 현황</caption>
  211. </group>
  212. <group id="group2" style="left:4px; top:23px; width:1203px; height:70px; ">
  213. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  214. <line id="line2" class="line_4" style="x1:1132px; y1:17px; x2:1132px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  215. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:22px; width:56px; height:22px; ">
  216. <caption>조회</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. var idx = swt_recm.selectedIndex;
  220. var ret = false;
  221. if(idx == "0") {
  222. ret = submit("TRAHS00801");
  223. if(ret) {
  224. grd_recmlst.rebuild();
  225. fSetRcptSum("A");
  226. }
  227. }else {
  228. ret = submit("TRAHS00802");
  229. if(ret) {
  230. fSetRcptSum("B");
  231. }
  232. }
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <input id="ipt_fromdd" ref="/root/init/srch/fromdd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:82px; top:8px; width:105px; height:19px; ">
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. fSetDate();
  241. ]]>
  242. </script>
  243. </input>
  244. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1046px; top:22px; width:80px; height:22px; ">
  245. <caption>액셀저장</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. var idx = swt_recm.selectedIndex;
  249. if(idx == "0") {
  250. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  251. grd_recmlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  252. }else if(idx == "1") {
  253. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  254. grd_recmdetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  255. }
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:975px; top:22px; width:56px; height:22px; ">
  260. <caption>출력</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. // 매개변수
  264. copyNodesetType("/root/main/export","/root/init/srch","replace");
  265. model.makeValue("/root/main/export/srchrecmempid" ,model.getValue("/root/send/srchrecmempid"));
  266. model.makeValue("/root/main/export/posdeptnm" ,model.getValue("/root/hidden/onerowselect/list/posdeptnm"));
  267. model.makeValue("/root/main/export/srchrecmemnm" ,model.getValue("/root/send/srchrecmemnm"));
  268. model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  269. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  270. var idx = swt_recm.selectedIndex;
  271. if(idx == "0") {
  272. exeReportPreview("RPAHS00801", "XMLSTR", "/root/main/export","", "false","","","","","false");
  273. }else if(idx == "1") {
  274. exeReportPreview("RPAHS00802", "XMLSTR", "/root/main/export","", "false","","","","","false");
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. <line id="line3" class="line_4" visibility="hidden" style="x1:1038px; y1:17px; x2:1038px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  280. <caption id="caption93" class="search_n_b" style="left:193px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  281. <input id="ipt_todd" ref="/root/init/srch/todd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:210px; top:8px; width:105px; height:19px; ">
  282. <script type="javascript" ev:event="xforms-value-changed">
  283. <![CDATA[
  284. fSetDate();
  285. ]]>
  286. </script>
  287. </input>
  288. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:73px; height:17px; ">기간 :</caption>
  289. <caption id="caption1" class="search_name" style="left:520px; top:9px; width:73px; height:17px; ">분기 :</caption>
  290. <caption id="caption3" class="search_name" style="left:335px; top:9px; width:73px; height:17px; ">연도 :</caption>
  291. <select1 id="cmb_year" ref="/root/init/srch/year" disabled="true" appearance="minimal" style="left:400px; top:8px; width:100px; height:19px; ">
  292. <choices>
  293. <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
  294. <label ref="cdnm"/>
  295. <value ref="cdid"/>
  296. </itemset>
  297. </choices>
  298. <script type="javascript" ev:event="xforms-select">
  299. <![CDATA[
  300. fSetDate();
  301. ]]>
  302. </script>
  303. </select1>
  304. <select1 id="cmb_qurtyy" ref="/root/init/srch/qurtyy" disabled="true" appearance="minimal" style="left:585px; top:8px; width:100px; height:19px; ">
  305. <choices>
  306. <item>
  307. <label>1분기</label>
  308. <value>03</value>
  309. </item>
  310. <item>
  311. <label>2분기</label>
  312. <value>06</value>
  313. </item>
  314. <item>
  315. <label>3분기</label>
  316. <value>09</value>
  317. </item>
  318. <item>
  319. <label>4분기</label>
  320. <value>12</value>
  321. </item>
  322. </choices>
  323. <script type="javascript" ev:event="xforms-select">
  324. <![CDATA[
  325. fSetDate();
  326. ]]>
  327. </script>
  328. </select1>
  329. <caption id="caption4" class="search_name" style="left:15px; top:39px; width:73px; height:17px; ">패키지 :</caption>
  330. <caption id="caption5" class="search_name" style="left:335px; top:39px; width:73px; height:17px; ">근무자 :</caption>
  331. <button id="btn_rememp" class="icon_search" style="left:519px; top:38px; width:16px; height:16px; ">
  332. <caption/>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. fGetEmpInfo( ipt_recmempid.attribute("ref") , opt_recmempnm.attribute("ref") );
  336. if(ipt_recmempid.currentText !=""){
  337. model.makeValue("/root/main/info/rsrvacptinfo/item/deptcd",model.getValue("/root/hidden/onerowselect/list/posdeptcd"));
  338. model.makeValue("/root/main/info/rsrvacptinfo/item/deptcd",model.getValue("/root/hidden/onerowselect/list/posdeptcd"));
  339. model.makeValue("/root/main/info/rsrvacptinfo/item/clntempid",model.getValue("/root/hidden/onerowselect/list/userid"));
  340. }
  341. ]]>
  342. </script>
  343. </button>
  344. <input id="ipt_recmempid" ref="/root/send/srchrecmempid" class="input_default" maxlength="10" style="left:413px; top:38px; width:100px; height:19px; ">
  345. <script type="javascript" ev:event="onkeyup">
  346. <![CDATA[
  347. inputEnterKey("btn_rememp", "DOMActivate");
  348. ]]>
  349. </script>
  350. </input>
  351. <input id="opt_recmempnm" ref="/root/send/srchrecmemnm" class="output_fix" style="left:540px; top:38px; width:176px; height:19px; ">
  352. <script type="javascript" ev:event="xforms-value-changed">
  353. <![CDATA[
  354. var rtn = messageBox("직원소개 할인을 사용 ", "S001") ;
  355. if(rtn == 6){ model.setValue( cmb_disccd.attribute("ref") , "F83");}
  356. ]]>
  357. </script>
  358. </input>
  359. <select1 id="rdo_ddflag" ref="/root/init/srch/ddflag" overflow="visible" appearance="full" cols="2" style="left:735px; top:8px; width:115px; height:20px; border-style:none; ">
  360. <choices>
  361. <item>
  362. <label>분기별</label>
  363. <value>1</value>
  364. </item>
  365. <item>
  366. <label>기간별</label>
  367. <value>2</value>
  368. </item>
  369. </choices>
  370. <script type="javascript" ev:event="xforms-select">
  371. <![CDATA[
  372. fSetDate();
  373. ]]>
  374. </script>
  375. </select1>
  376. <select1 id="cmb_recmpkg" ref="/root/send/srchrecmpkgcd" appearance="minimal" style="left:95px; top:38px; width:220px; height:19px; ">
  377. <choices>
  378. <itemset nodeset="/root/init/baseinfo/recmpkglst/S210">
  379. <label ref="cdnm"/>
  380. <value ref="cdid"/>
  381. </itemset>
  382. </choices>
  383. </select1>
  384. <select1 id="radio1" ref="/root/send/srchcondstnd" overflow="visible" appearance="full" cols="2" style="left:825px; top:40px; width:115px; height:20px; border-style:none; ">
  385. <choices>
  386. <item>
  387. <label>패키지</label>
  388. <value>1</value>
  389. </item>
  390. <item>
  391. <label>금액</label>
  392. <value>2</value>
  393. </item>
  394. </choices>
  395. </select1>
  396. <caption id="caption6" class="search_name" style="left:735px; top:39px; width:86px; height:17px; ">조회기준 :</caption>
  397. </group>
  398. <switch id="swt_recm" style="left:4px; top:124px; width:1203px; height:656px; ">
  399. <case id="case_recm">
  400. <datagrid id="grd_recmlst" nodeset="/root/main/recmlst/item" autoresize="true" colsep="^" colwidth="135" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  401. <script type="javascript" ev:event="onaftersort">
  402. <![CDATA[
  403. grd_recmlst.gridToInstance();
  404. ]]>
  405. </script>
  406. </datagrid>
  407. </case>
  408. <case id="case_recmdetl" selected="true">
  409. <datagrid id="grd_recmdetllst" nodeset="/root/main/recmdetllst/item" caption="기관^소속^사원번호^직원성명^건진일^건진자명^등록번호^검사명^검사종류^포인트" colsep="^" colwidth="170, 170, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  410. <col ref="instnm"/>
  411. <col ref="pos"/>
  412. <col ref="recmempid"/>
  413. <col ref="recmempnm" style="text-align:left; "/>
  414. <col ref="hopedd" format="yyyy-mm-dd"/>
  415. <col ref="healexamnm"/>
  416. <col ref="pid"/>
  417. <col ref="pkgnm"/>
  418. <col ref="pkgcd" style="text-align:left; "/>
  419. <col ref="recmpoint" style="text-align:left; "/>
  420. <script type="javascript" ev:event="onaftersort">
  421. <![CDATA[
  422. grd_recmdetllst.gridToInstance();
  423. ]]>
  424. </script>
  425. </datagrid>
  426. </case>
  427. </switch>
  428. <button id="btn_recm" class="btn_sw" group="tab" selected="true" style="left:5px; top:102px; width:90px; height:22px; ">
  429. <caption>추천현황</caption>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. model.toggle("case_recm");
  433. btn_recm.selected = true;
  434. ]]>
  435. </script>
  436. </button>
  437. <button id="btn_recmdetl" class="btn_sw" group="tab" style="left:94px; top:102px; width:104px; height:22px; ">
  438. <caption>추천명단</caption>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. model.toggle("case_recmdetl");
  442. btn_recmdetl.selected = true;
  443. ]]>
  444. </script>
  445. </button>
  446. </xhtml:body>
  447. </xhtml:html>