SMAHS00100_패키지별실적현황.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <pkglist>
  11. <cmpyflag/>
  12. <pkgcd/>
  13. <pkgnm/>
  14. <pkgamt/>
  15. <jan/>
  16. <feb/>
  17. <scnd/>
  18. <apr/>
  19. <may/>
  20. <jun/>
  21. <jul/>
  22. <aug/>
  23. <sep/>
  24. <oct/>
  25. <nov/>
  26. <dec/>
  27. <pkgcnt/>
  28. <pkgavgamt/>
  29. <pkgtotamt/>
  30. <pkgdiscamt/>
  31. </pkglist>
  32. <export/>
  33. </main>
  34. <send>
  35. <srchfromdd/>
  36. <srchtodd/>
  37. <srchhealexamflag/>
  38. <srchhealexamdetlflag/>
  39. <srchstatflag/>
  40. </send>
  41. <hidden>
  42. </hidden>
  43. <init>
  44. <baseinfo>
  45. <healexamflaglist>
  46. <A0068>
  47. <cdid/>
  48. <cdnm>전체</cdnm>
  49. </A0068>
  50. </healexamflaglist>
  51. <healexamdetlflaglist>
  52. <A0070>
  53. <cdid/>
  54. <cdnm>전체</cdnm>
  55. </A0070>
  56. </healexamdetlflaglist>
  57. <statflaglist>
  58. </statflaglist>
  59. <healexamdetlflaglist1>
  60. <A0069>
  61. <cdid/>
  62. <cdnm>전체</cdnm>
  63. </A0069>
  64. </healexamdetlflaglist1>
  65. </baseinfo>
  66. </init>
  67. </root>
  68. </instance>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. zbcfGetCodeList( new Array("A0068","A0070","A0107","A0069"),
  72. new Array("/root/init/baseinfo/healexamflaglist" ,"/root/init/baseinfo/healexamdetlflaglist" ,"/root/init/baseinfo/statflaglist","/root/init/baseinfo/healexamdetlflaglist1") );
  73. model.setValue("/root/send/srchfromdd", getCurrentDate());
  74. model.setValue("/root/send/srchtodd", getCurrentDate());
  75. cmb_srchhealexamflag.refresh();
  76. cmb_srchhealexamdetlflag.refresh();
  77. //cmb_statflag.refresh();
  78. ckb_statflag.refresh();
  79. /*
  80. var vToday = new Date();
  81. var tmpYear = vToday.getYear();
  82. var tmpMonth = vToday.getMonth()+1;
  83. var tmpDate = vToday.getDate();
  84. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  85. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  86. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-1);
  87. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  88. input7.refresh();
  89. input1.refresh();
  90. datagrid1.explorerbar = "sort";
  91. */
  92. model.refresh();
  93. model.setFocus("ipt_fromdd");
  94. ]]>
  95. </script>
  96. <submission id="TRZBC00101"/>
  97. <submission id="TRAHS00101" method="post" ref="/root/send" resultref="/root/main"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  105. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  106. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  107. </xhtml:head>
  108. <xhtml:body pagewidth="1211" pageheight="784">
  109. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  110. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">패키지별실적현황</caption>
  111. </group>
  112. <group id="group2" style="left:4px; top:23px; width:1203px; height:48px; ">
  113. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:46px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <caption id="caption2" class="search_name" style="left:15px; top:15px; width:198px; height:17px; ">기간 ~</caption>
  115. <line id="line2" class="line_4" style="x1:1132px; y1:14px; x2:1132px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  116. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:14px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. /*
  121. model.removeNodeset("/root/main/monthbloodlist/monthbloodstats");
  122. var fromdata = model.getValue("/root/main/search/fromdata");
  123. var todata = model.getValue("/root/main/search/todata");
  124. if(fromdata==""||fromdata==null){
  125. messageBox("시작일을 입력","E007");
  126. model.setFocus("input7");
  127. return false;
  128. }
  129. if(todata==""|| todata==null){
  130. messageBox("끝일을 입력","E007");
  131. model.setFocus("input1");
  132. return false;
  133. }
  134. if(fromdata > todata){
  135. messageBox("시작일이 끝일자보다 클수 ", "C001")
  136. return false;
  137. }else{
  138. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  139. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  140. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  141. model.removeNodeset("/root/main/frontamtlist");
  142. submit("");
  143. }
  144. model.refresh();
  145. */
  146. /*
  147. 20100701 JHP 상태 컨트롤 체크박스 변경에 따른 in형식으로 하게끔 수정
  148. 쿼리에서 해당내용이 안먹어서 내용 주석처리
  149. var stat = model.getValue("/root/send/srchstatflag");
  150. var result = "";
  151. if(stat != null || stat != "" || stat != " "){
  152. var leng = stat.length;
  153. for(var i = 0; i < leng; i++){
  154. var chng = stat.substr(i,1);
  155. if(chng != " "){
  156. if(result == null || result == ""){
  157. result = chng;
  158. }else{
  159. result = result+"','"+chng;
  160. }
  161. }
  162. }
  163. model.setValue("/root/send/srchstatflag",result);
  164. }
  165. */
  166. /* 20110413 서원식 검색기능 IN형 조회 수정 */
  167. var stat = model.getValue("/root/send/srchstatflag");
  168. var j = 1;
  169. if(stat != null || stat != "" || stat != " "){
  170. for(var i = 0; i<stat.length; i++){
  171. var chng = stat.substr(i, 1);
  172. if(chng != " "){
  173. model.makeValue("/root/send/srchstatflag"+ j + "",chng);
  174. j = j+1;
  175. }
  176. }
  177. }
  178. submit("TRAHS00101");
  179. grd_pkglist.subtotalPosition = "below";
  180. for(var i =0; i < grd_pkglist.cols ; i++) {
  181. if(i >= grd_pkglist.colRef("jan") && i <= grd_pkglist.colRef("pkgcnt")) {
  182. grd_pkglist.subtotal("sum", -1, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "총계", false);
  183. }
  184. }
  185. // 화면 merge
  186. if( i == grd_pkglist.colRef("jan")) {
  187. grd_pkglist.mergeCol(i) = true;
  188. }else{
  189. grd_pkglist.mergeCol(i) = false;
  190. }
  191. model.refresh();
  192. ]]>
  193. </script>
  194. </button>
  195. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" style="left:70px; top:14px; width:120px; height:19px; ">
  196. <script type="javascript" ev:event="onkeydown">
  197. <![CDATA[
  198. /*
  199. if( event.keyCode == 13 ) {
  200. var pCurTargetObj = event.ptarget.parent;
  201. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  202. event.keyCode = 9;
  203. pCurTargetObj.dispatch("onkeydown");
  204. }else{
  205. event.keyCode = 9;
  206. }
  207. }
  208. event.stopPropagation(); */
  209. ]]>
  210. </script>
  211. </input>
  212. <input id="input1" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" style="left:215px; top:14px; width:120px; height:19px; ">
  213. <script type="javascript" ev:event="onkeydown">
  214. <![CDATA[
  215. /*
  216. if( event.keyCode == 13 ) {
  217. var pCurTargetObj = event.ptarget.parent;
  218. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  219. event.keyCode = 9;
  220. pCurTargetObj.dispatch("onkeydown");
  221. }else{
  222. event.keyCode = 9;
  223. }
  224. }
  225. event.stopPropagation();
  226. */
  227. ]]>
  228. </script>
  229. </input>
  230. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:560px; top:14px; width:100px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglist/A0070">
  233. <label ref="cdnm"/>
  234. <value ref="cdid"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <select1 id="cmb_srchhealexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:440px; top:14px; width:110px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/baseinfo/healexamflaglist/A0068">
  241. <label ref="cdnm"/>
  242. <value ref="cdid"/>
  243. </itemset>
  244. </choices>
  245. <script type="javascript" ev:event="xforms-value-changed">
  246. <![CDATA[
  247. if(cmb_srchhealexamflag.value == "C"){
  248. cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflaglist1/A0069";
  249. }else if(cmb_srchhealexamflag.value == "G"){
  250. cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflaglist/A0070";
  251. }
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </select1>
  256. <!--
  257. <select1 id="cmb_statflag" ref="/root/send/srchstatflag" class="combo_search" visibility="hidden" appearance="minimal" style="left:1084px; top:14px; width:40px; height:19px; ">
  258. <choices>
  259. <itemset nodeset="/root/init/baseinfo/statflaglist/A0107">
  260. <label ref="cdnm"/>
  261. <value ref="cdid"/>
  262. </itemset>
  263. </choices>
  264. </select1>
  265. -->
  266. <caption id="caption3" class="search_name" style="left:675px; top:15px; width:86px; height:17px; ">상태 :</caption>
  267. <select id="ckb_statflag" ref="/root/send/srchstatflag" overflow="visible" appearance="full" cols="5" rows="2" style="left:740px; top:8px; width:324px; height:32px; padding:0; border-style:none; ">
  268. <choices>
  269. <itemset nodeset="/root/init/baseinfo/statflaglist/A0107">
  270. <label ref="cdnm"/>
  271. <value ref="cdid"/>
  272. </itemset>
  273. </choices>
  274. </select>
  275. </group>
  276. <datagrid id="grd_pkglist" nodeset="/root/main/pkglist" caption="패키지코드^패키지코드^패키지명^금액^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^패키지별건수" colsep="^" colwidth="40, 110, 200, 100, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 87" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:5px; top:100px; width:1203px; height:677px; text-align:center; ">
  277. <col disabled="true" ref="cmpyflag" type="combo">
  278. <choices>
  279. <item>
  280. <label>개인</label>
  281. <value>N</value>
  282. </item>
  283. <item>
  284. <label>단체</label>
  285. <value>Y</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col explorerbar="sortshow" ref="pkgcd" style="text-align:left; "/>
  290. <col explorerbar="sortshow" ref="pkgnm" style="text-align:left; "/>
  291. <col explorerbar="sortshow" ref="pkgamt" format="#,###" style="text-align:right; "/>
  292. <col ref="jan"/>
  293. <col ref="feb"/>
  294. <col ref="scnd"/>
  295. <col ref="apr"/>
  296. <col ref="may"/>
  297. <col ref="jun"/>
  298. <col ref="jul"/>
  299. <col ref="aug"/>
  300. <col ref="sep"/>
  301. <col ref="oct"/>
  302. <col ref="nov"/>
  303. <col ref="dec"/>
  304. <col explorerbar="sortshow" ref="pkgcnt"/>
  305. <script type="javascript" ev:event="onaftersort">
  306. <![CDATA[
  307. grd_pkglist.gridToInstance();
  308. ]]>
  309. </script>
  310. </datagrid>
  311. <caption id="caption1" class="search_name" style="left:350px; top:38px; width:86px; height:17px; ">건진구분 :</caption>
  312. <button id="button1" class="btn2_letter4" style="left:1143px; top:75px; width:64px; height:19px; ">
  313. <caption>액셀저장</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. /*
  317. var vToday = new Date();
  318. var tmpYear = vToday.getYear();
  319. var tmpMonth = vToday.getMonth()+1;
  320. var tmpDate = vToday.getDate();
  321. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  322. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  323. //엑셀저장 여부(타이틀별)
  324. var fileName = window.fileDialog("save", "", false, "수혈대체현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  325. if (fileName != ""){
  326. datagrid1.saveExcel(fileName, "수혈대체현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  327. }
  328. */
  329. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  330. grd_pkglist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  331. ]]>
  332. </script>
  333. </button>
  334. <button id="button2" class="btn2_letter2" visibility="visible" style="left:1100px; top:75px; width:42px; height:19px; ">
  335. <caption>출력</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  339. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  340. exeReportPreview("RPAHS00101", "XMLSTR", "/root/main/export","", "false","","","","","false");
  341. ]]>
  342. </script>
  343. </button>
  344. </xhtml:body>
  345. </xhtml:html>