SMAHS02500_패키지별건진현황.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. <pkgspeclst>
  11. <item>
  12. <healexamflagnm/>
  13. <pkgnm/>
  14. <pkgcnt/>
  15. <pkgamt/>
  16. <pkgcd/>
  17. <healexamflag/>
  18. <healexamdetlflag/>
  19. <pkgamt/>
  20. <fromdd/>
  21. <todd/>
  22. </item>
  23. </pkgspeclst>
  24. <pkgspecdetllst>
  25. <item>
  26. <pid/>
  27. <hngnm/>
  28. <sex/>
  29. <pkgnm/>
  30. <hopedd/>
  31. </item>
  32. </pkgspecdetllst>
  33. </main>
  34. <send>
  35. <srchfromdd/>
  36. <srchtodd/>
  37. <srchhealexamdetlflag/>
  38. <detl/>
  39. </send>
  40. <hidden>
  41. </hidden>
  42. <init>
  43. <baseinfo>
  44. <healexamflag>
  45. <A0068>
  46. <cdid/>
  47. <cdnm/>
  48. </A0068>
  49. </healexamflag>
  50. <healexamdetlflaglist1/>
  51. <healexamdetlflaglist2/>
  52. <healexamdetlflaglist>
  53. <item/>
  54. </healexamdetlflaglist>
  55. </baseinfo>
  56. </init>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. // 일자초기화
  62. model.setValue("/root/send/srchfromdd" , getCurrentDate());
  63. model.setValue("/root/send/srchtodd" , getCurrentDate());
  64. // 공통코드 조회
  65. zbcfGetCodeList( new Array("A0068","A0069" ,"A0070" ),
  66. new Array("/root/init/baseinfo/healexamflag" ,"/root/init/baseinfo/healexamdetlflaglist1" , "/root/init/baseinfo/healexamdetlflaglist2" ) );
  67. addComboItem("cmb_healexamdetlflag");
  68. copyNodesetType("/root/init/baseinfo/healexamdetlflaglist/item","/root/init/baseinfo/healexamdetlflaglist2/A0070", "after");
  69. model.refresh();
  70. ]]>
  71. </script>
  72. <submission id="TRZBC00101"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. /*
  76. * 건진종류 소계 및 총계를 생성한다.
  77. */
  78. function fSetRcptSum() {
  79. // 그리드 merge 및 합계 초기화
  80. grd_dyrcptlst.autoMerge = false;
  81. grd_dyrcptlst.mergeCells = "bycolrec";
  82. grd_dyrcptlst.subtotalPosition = "below";
  83. grd_dyrcptlst.multiTotals = true;
  84. grd_dyrcptlst.subtotal("clear", 0, 0);
  85. for(var i =0; i < grd_dyrcptlst.cols ; i++) {
  86. // 소계
  87. if(i >= grd_dyrcptlst.colRef("totamt") && i <= grd_dyrcptlst.colRef("restamt")) {
  88. grd_dyrcptlst.subtotal("sum", grd_dyrcptlst.colRef("healexamkind") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamkind") , "소계" );
  89. grd_dyrcptlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamkind") , "총계" );
  90. }
  91. // 화면 merge
  92. if( i == grd_dyrcptlst.colRef("healexamkind")) {
  93. grd_dyrcptlst.mergeCol(i) = true;
  94. }else{
  95. grd_dyrcptlst.mergeCol(i) = false;
  96. }
  97. }
  98. grd_dyrcptlst.merge();
  99. }
  100. ]]>
  101. </script>
  102. <submission id="TRAHS02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pkgspeclst"/>
  103. <submission id="TRAHS02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detl" resultref="/root/main/pkgspecdetllst"/>
  104. </model>
  105. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  111. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  112. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  113. </xhtml:head>
  114. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1041;">
  115. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  116. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">패키지별검진현황</caption>
  117. </group>
  118. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  119. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  120. <caption id="caption2" class="search_name" style="left:5px; top:9px; width:221px; height:17px; ">건진일자 : ~</caption>
  121. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  122. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  123. <caption>조회</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. var ret = submit("TRAHS02501");
  127. if(ret) {
  128. model.resetInstanceNode(grd_pkgdetllst.nodeset);
  129. //fSetRcptSum();
  130. model.refresh();
  131. }
  132. ]]>
  133. </script>
  134. </button>
  135. <select1 id="cmb_healexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:435px; top:8px; width:150px; height:19px; ">
  136. <choices>
  137. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglist/item">
  138. <label ref="cdnm"/>
  139. <value ref="cdid"/>
  140. </itemset>
  141. </choices>
  142. </select1>
  143. <caption id="caption3" class="search_name" style="left:346px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
  144. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="7" inputtype="date" style="left:227px; top:8px; width:105px; height:19px; "/>
  145. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="7" inputtype="date" style="left:97px; top:8px; width:105px; height:19px; "/>
  146. </group>
  147. <datagrid id="grd_pkgspeclst" nodeset="/root/main/pkgspeclst/item" caption="건진구분^검진명^건수^금액^pkgcd^healexamflag^healexamdetlflag^fromdd^todd" colsep="^" colwidth="100, 260, 50, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:88px; width:525px; height:691px; ">
  148. <col ref="healexamflagnm" style="text-align:left; "/>
  149. <col ref="pkgnm" style="text-align:left; "/>
  150. <col ref="pkgcnt" style="text-align:left; "/>
  151. <col ref="pkgamt" format="(-,+)#,###" style="text-align:left; "/>
  152. <col ref="pkgcd" visibility="hidden"/>
  153. <col ref="healexamflag" visibility="hidden"/>
  154. <col ref="healexamdetlflag" visibility="hidden"/>
  155. <col ref="fromdd" visibility="hidden"/>
  156. <col ref="todd" visibility="hidden"/>
  157. <script type="javascript" ev:event="ondblclick">
  158. <![CDATA[
  159. if(isDataCell()) {
  160. copyNodesetType("/root/send/detl", grd_pkgspeclst.nodeset + "[" + grd_pkgspeclst.row + "]" , "replace");
  161. submit("TRAHS02502");
  162. }
  163. ]]>
  164. </script>
  165. </datagrid>
  166. <datagrid id="grd_pkgdetllst" nodeset="/root/main/pkgspecdetllst/item" caption="등록번호^성명^성별^거래처명^건진일" colsep="^" colwidth="100, 100, 60, 270, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:534px; top:88px; width:673px; height:691px; ">
  167. <col ref="pid" style="text-align:left; "/>
  168. <col ref="hngnm" style="text-align:left; "/>
  169. <col ref="sex" style="text-align:center; "/>
  170. <col ref="pkgnm" style="text-align:left; "/>
  171. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  172. </datagrid>
  173. <button id="btn_excsave" class="btn2_letter4" style="left:466px; top:63px; width:64px; height:19px; ">
  174. <caption>엑셀저장</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  178. grd_pkgspeclst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  179. ]]>
  180. </script>
  181. </button>
  182. <line id="line1" class="line_1" style="x1:5px; y1:83px; x2:530px; y2:83px; "/>
  183. <button id="button1" class="btn2_letter4" style="left:1144px; top:63px; width:64px; height:19px; ">
  184. <caption>엑셀저장</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  188. grd_pkgdetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  189. ]]>
  190. </script>
  191. </button>
  192. <line id="line3" class="line_1" style="x1:535px; y1:83px; x2:1208px; y2:83px; "/>
  193. </xhtml:body>
  194. </xhtml:html>