SMAHS03400_검진고객현황.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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. <zone>
  11. <item>
  12. <zone1/>
  13. <daegu/>
  14. <kyungpook/>
  15. <etc/>
  16. </item>
  17. </zone>
  18. <area>
  19. <item>
  20. <zone2/>
  21. <junggu/>
  22. <namgu/>
  23. <seogu/>
  24. <bookgu/>
  25. <donggu/>
  26. <susung/>
  27. <dalseo/>
  28. <dalseong/>
  29. <chilgok/>
  30. <youngchun/>
  31. <gumi/>
  32. <etc/>
  33. </item>
  34. </area>
  35. <sex>
  36. <item>
  37. <zone3/>
  38. <man/>
  39. <female/>
  40. </item>
  41. </sex>
  42. <age>
  43. <item>
  44. <zone4/>
  45. <aa/>
  46. <bb/>
  47. <cc/>
  48. <dd/>
  49. <ee/>
  50. <ff/>
  51. </item>
  52. </age>
  53. <export/>
  54. </main>
  55. <send>
  56. <srchfromdd/>
  57. <srchtodd/>
  58. <srchinstcd/>
  59. <srchhealexamflag/>
  60. </send>
  61. <hidden>
  62. </hidden>
  63. <init>
  64. <baseinfo>
  65. <yearlst/>
  66. <recmpkglst/>
  67. <healexamplacecd/>
  68. <healexamflag>
  69. <A0068>
  70. <cdid/>
  71. <cdnm/>
  72. </A0068>
  73. </healexamflag>
  74. </baseinfo>
  75. <srch>
  76. <fromdd/>
  77. <todd/>
  78. <year/>
  79. <qurtyy/>
  80. <ddflag>1</ddflag>
  81. </srch>
  82. </init>
  83. </root>
  84. </instance>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. // 일자초기화
  88. model.setValue("/root/init/srch/fromdd" , getCurrentDate());
  89. model.setValue("/root/init/srch/todd" , getCurrentDate());
  90. model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
  91. model.setValue("/root/init/srch/qurtyy" , "03");
  92. // 기관코드 초기화
  93. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  94. // 공통코드 조회
  95. zbcfGetCodeList( new Array("P0167","R0009","A0068"), new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst", "/root/init/baseinfo/healexamflag" ) );
  96. // 건진 공통코드 조회
  97. healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
  98. rdo_ddflag.dispatch("xforms-select");
  99. //건진구분 초기화
  100. model.setValue("root/send/srchhealexamflag", getScreenMenuParameter());
  101. model.refresh();
  102. ]]>
  103. </script>
  104. <script type="javascript">
  105. <![CDATA[
  106. /*
  107. * 화면merge와 소계 및 총계를 생성한다.
  108. */
  109. function fSetRcptSum(vFlag) {
  110. // 그리드 merge 및 합계 초기화
  111. // if(vFlag == "A") {
  112. // grd_recmlst.subtotalPosition = "below";
  113. // grd_recmlst.multiTotals = true;
  114. // grd_recmlst.subtotal("clear", 0, 0);
  115. //
  116. // // 추천현황
  117. // for(var i = 0; i < grd_recmlst.cols ; i++) {
  118. //
  119. // // 소계
  120. // if(i > grd_recmlst.colRef("pos") && i <= grd_recmlst.colRef("recmpoint") ) {
  121. // grd_recmlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmlst.colRef("instnm") , "합 계" );
  122. // }
  123. // }
  124. // }else if(vFlag == "B"){
  125. // grd_recmdetllst.subtotalPosition = "below";
  126. // grd_recmdetllst.multiTotals = true;
  127. // grd_recmdetllst.subtotal("clear", 0, 0);
  128. //
  129. // // 추천내역
  130. // for(var i =0; i < grd_recmdetllst.cols ; i++) {
  131. //
  132. // // 건수
  133. // if(i == grd_recmdetllst.colRef("pkgcd") ) {
  134. // grd_recmdetllst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
  135. // }
  136. // // 소계
  137. // if( i >= grd_recmdetllst.colRef("recmpoint") && i <= grd_recmdetllst.colRef("recmpoint") ) {
  138. // grd_recmdetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_recmdetllst.colRef("pid") , "건수/계" );
  139. //
  140. // }
  141. //
  142. // }
  143. // }
  144. }
  145. /*
  146. * 일자 활성화 및 일자초기화
  147. */
  148. function fSetDate() {
  149. if(rdo_ddflag.value == "1") {
  150. // 분기별
  151. ipt_fromdd.disabled = true;
  152. ipt_todd.disabled = true;
  153. cmb_year.disabled = false;
  154. cmb_qurtyy.disabled = false;
  155. // 일자초기화
  156. var year = cmb_year.value;
  157. var month = cmb_qurtyy.value;
  158. var todd = new Date(year , parseInt(month,10) + 2 , 0 );
  159. // 시작일
  160. model.setValue("/root/send/srchfromdd" , year + month + "01");
  161. // 종료일
  162. model.setValue("/root/send/srchtodd", new String(todd.getYear()) + new String(todd.getMonth() + 1).getLeftPad(2,"0") + new String(todd.getDate()) );
  163. }else if(rdo_ddflag.value == "2") {
  164. // 기간별
  165. ipt_fromdd.disabled = false;
  166. ipt_todd.disabled = false;
  167. cmb_year.disabled = true;
  168. cmb_qurtyy.disabled = true;
  169. // 일자초기화
  170. model.setValue("/root/send/srchfromdd" , ipt_fromdd.value);
  171. model.setValue("/root/send/srchtodd" , ipt_todd.value);
  172. }
  173. }
  174. ]]>
  175. </script>
  176. <submission id="TRZBC00101"/>
  177. <submission id="TRAHA00001"/>
  178. <submission id="TRAHS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/zone"/>
  179. <submission id="TRAHS03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/area"/>
  180. <submission id="TRAHS03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sex"/>
  181. <submission id="TRAHS03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/age"/>
  182. </model>
  183. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  184. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  185. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  186. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  189. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  190. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  191. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  192. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  193. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  194. </xhtml:head>
  195. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  196. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  197. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">검진고객 현황</caption>
  198. </group>
  199. <group id="group2" style="left:4px; top:23px; width:1203px; height:70px; ">
  200. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  201. <line id="line2" class="line_4" style="x1:1132px; y1:2px; x2:1132px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  202. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. var idx = swt_recm.selectedIndex;
  207. var ret = false;
  208. if(idx == "0") {
  209. ret = submit("TRAHS03401");
  210. if(ret) {
  211. grd_zone.rebuild();
  212. }
  213. }else if(idx == "1"){
  214. ret = submit("TRAHS03402");
  215. if(ret) {
  216. grd_area.rebuild();
  217. }
  218. }else if(idx == "2") {
  219. ret = submit("TRAHS03403");
  220. if(ret) {
  221. grd_sex.rebuild();
  222. }
  223. }else if(idx == "3") {
  224. ret = submit("TRAHS03404");
  225. if(ret) {
  226. grd_age.rebuild();
  227. }
  228. }
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </button>
  233. <input id="ipt_fromdd" ref="/root/init/srch/fromdd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:67px; top:8px; width:105px; height:19px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. fSetDate();
  237. ]]>
  238. </script>
  239. </input>
  240. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1046px; top:7px; width:80px; height:22px; ">
  241. <caption>액셀저장</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. var idx = swt_recm.selectedIndex;
  245. if(idx == "0") {
  246. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  247. grd_zone.saveExcel(fileName, "SheetName", true, true, "", "", false);
  248. }else if(idx == "1") {
  249. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  250. grd_area.saveExcel(fileName, "SheetName", true, true, "", "", false);
  251. }else if(idx == "2") {
  252. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  253. grd_sex.saveExcel(fileName, "SheetName", true, true, "", "", false);
  254. }else if(idx == "3") {
  255. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  256. grd_age.saveExcel(fileName, "SheetName", true, true, "", "", false);
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <caption id="caption93" class="search_n_b" style="left:173px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  262. <input id="ipt_todd" ref="/root/init/srch/todd" class="input_search" disabled="true" navindex="7" inputtype="date" style="left:185px; top:8px; width:105px; height:19px; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. fSetDate();
  266. ]]>
  267. </script>
  268. </input>
  269. <caption id="caption2" class="search_name" style="left:5px; top:9px; width:73px; height:17px; ">기간 :</caption>
  270. <caption id="caption1" class="search_name" style="left:485px; top:9px; width:73px; height:17px; ">분기 :</caption>
  271. <caption id="caption3" class="search_name" style="left:305px; top:9px; width:73px; height:17px; ">연도 :</caption>
  272. <select1 id="cmb_year" ref="/root/init/srch/year" disabled="true" appearance="minimal" style="left:370px; top:8px; width:100px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-select">
  280. <![CDATA[
  281. fSetDate();
  282. ]]>
  283. </script>
  284. </select1>
  285. <select1 id="cmb_qurtyy" ref="/root/init/srch/qurtyy" disabled="true" appearance="minimal" style="left:550px; top:8px; width:100px; height:19px; ">
  286. <choices>
  287. <item>
  288. <label>1분기</label>
  289. <value>03</value>
  290. </item>
  291. <item>
  292. <label>2분기</label>
  293. <value>06</value>
  294. </item>
  295. <item>
  296. <label>3분기</label>
  297. <value>09</value>
  298. </item>
  299. <item>
  300. <label>4분기</label>
  301. <value>12</value>
  302. </item>
  303. </choices>
  304. <script type="javascript" ev:event="xforms-select">
  305. <![CDATA[
  306. fSetDate();
  307. ]]>
  308. </script>
  309. </select1>
  310. <caption id="caption4" class="search_name" style="left:800px; top:10px; width:79px; height:17px; ">장소구분:</caption>
  311. <select1 id="rdo_ddflag" ref="/root/init/srch/ddflag" appearance="full" cols="2" overflow="visible" style="left:675px; top:8px; width:115px; height:20px; border-style:none; ">
  312. <choices>
  313. <item>
  314. <label>분기별</label>
  315. <value>1</value>
  316. </item>
  317. <item>
  318. <label>기간별</label>
  319. <value>2</value>
  320. </item>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-select">
  323. <![CDATA[
  324. fSetDate();
  325. ]]>
  326. </script>
  327. </select1>
  328. <select1 id="cmb_srchhealexamplacecd" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:885px; top:10px; width:80px; height:19px; ">
  329. <choices>
  330. <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
  331. <label ref="cdnm"/>
  332. <value ref="cdid"/>
  333. </itemset>
  334. </choices>
  335. </select1>
  336. </group>
  337. <switch id="swt_recm" style="left:4px; top:124px; width:1203px; height:656px; ">
  338. <case id="case_zone" selected="true">
  339. <datagrid id="grd_zone" nodeset="/root/main/zone/item" caption="^대구^경북^기타" colsep="^" colwidth="170, 170, 170,170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  340. <col ref="zone1" format="#,###" style="font-weight:bold; text-align:center; "/>
  341. <col ref="daegu" format="#,###" style="font-weight:bold; text-align:center; "/>
  342. <col ref="kyungpook" format="#,###" style="font-weight:bold; text-align:center; "/>
  343. <col ref="etc" format="#,###" style="font-weight:bold; text-align:center; "/>
  344. </datagrid>
  345. </case>
  346. <case id="case_area">
  347. <datagrid id="grd_area" nodeset="/root/main/area/item" caption="^중구^남구^서구^북구^동구^수성구^달서구^달성군^칠곡군^영천시^구미^기타" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  348. <col ref="zone2" style="font-weight:bold; text-align:center; "/>
  349. <col ref="junggu" format="#,###" style="font-weight:bold; text-align:center; "/>
  350. <col ref="namgu" format="#,###" style="font-weight:bold; text-align:center; "/>
  351. <col ref="seogu" format="#,###" style="font-weight:bold; text-align:center; "/>
  352. <col ref="bookgu" format="#,###" style="font-weight:bold; text-align:center; "/>
  353. <col ref="donggu" format="#,###" style="font-weight:bold; text-align:center; "/>
  354. <col ref="susung" format="#,###" style="font-weight:bold; text-align:center; "/>
  355. <col ref="dalseo" format="#,###" style="font-weight:bold; text-align:center; "/>
  356. <col ref="dalseong" format="#,###" style="font-weight:bold; text-align:center; "/>
  357. <col ref="chilgok" format="#,###" style="font-weight:bold; text-align:center; "/>
  358. <col ref="youngchun" format="#,###" style="font-weight:bold; text-align:center; "/>
  359. <col ref="gumi" format="#,###" style="font-weight:bold; text-align:center; "/>
  360. <col ref="etc" format="#,###" style="font-weight:bold; text-align:center; "/>
  361. </datagrid>
  362. </case>
  363. <case id="case_sex">
  364. <datagrid id="grd_sex" nodeset="/root/main/sex/item" caption="^남성^여성" colsep="^" colwidth="100, 170, 170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  365. <col ref="zone3" style="font-weight:bold; text-align:center; "/>
  366. <col ref="man" format="#,###" style="font-weight:bold; text-align:center; "/>
  367. <col ref="female" format="#,###" style="font-weight:bold; text-align:center; "/>
  368. </datagrid>
  369. </case>
  370. <case id="case_age">
  371. <datagrid id="grd_age" nodeset="/root/main/age/item" caption="^20대미만^30대^40대^50대^60대^70대이상" colsep="^" colwidth="100, 170, 170, 170, 170, 170, 170" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
  372. <col ref="zone4" style="font-weight:bold; text-align:center; "/>
  373. <col ref="aa" format="#,###" style="font-weight:bold; text-align:center; "/>
  374. <col ref="bb" format="#,###" style="font-weight:bold; text-align:center; "/>
  375. <col ref="cc" format="#,###" style="font-weight:bold; text-align:center; "/>
  376. <col ref="dd" format="#,###" style="font-weight:bold; text-align:center; "/>
  377. <col ref="ee" format="#,###" style="font-weight:bold; text-align:center; "/>
  378. <col ref="ff" format="#,###" style="font-weight:bold; text-align:center; "/>
  379. </datagrid>
  380. </case>
  381. </switch>
  382. <button id="btn_zone" class="btn_sw" group="tab" selected="true" style="left:5px; top:102px; width:90px; height:22px; ">
  383. <caption>지역별</caption>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. model.toggle("case_zone");
  387. btn_zone.selected = true;
  388. ]]>
  389. </script>
  390. </button>
  391. <button id="btn_area" class="btn_sw" group="tab" style="left:94px; top:102px; width:104px; height:22px; ">
  392. <caption>구역별</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. model.toggle("case_area");
  396. btn_area.selected = true;
  397. ]]>
  398. </script>
  399. </button>
  400. <button id="btn_sex" class="btn_sw" group="tab" style="left:199px; top:102px; width:104px; height:22px; ">
  401. <caption>성별</caption>
  402. <script type="javascript" ev:event="DOMActivate">
  403. <![CDATA[
  404. model.toggle("case_sex");
  405. btn_sex.selected = true;
  406. ]]>
  407. </script>
  408. </button>
  409. <button id="btn_age" class="btn_sw" group="tab" style="left:304px; top:102px; width:104px; height:22px; ">
  410. <caption>연령별</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. model.toggle("case_age");
  414. btn_age.selected = true;
  415. ]]>
  416. </script>
  417. </button>
  418. </xhtml:body>
  419. </xhtml:html>