123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>패키지별검진현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <pkgspeclst>
- <item>
- <healexamflagnm/>
- <pkgnm/>
- <pkgcnt/>
- <pkgamt/>
- <pkgcd/>
- <healexamflag/>
- <healexamdetlflag/>
- <pkgamt/>
- <fromdd/>
- <todd/>
- </item>
- </pkgspeclst>
- <pkgspecdetllst>
- <item>
- <pid/>
- <hngnm/>
- <sex/>
- <pkgnm/>
- <hopedd/>
- </item>
- </pkgspecdetllst>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchhealexamdetlflag/>
- <detl/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <healexamflag>
- <A0068>
- <cdid/>
- <cdnm/>
- </A0068>
- </healexamflag>
- <healexamdetlflaglist1/>
- <healexamdetlflaglist2/>
- <healexamdetlflaglist>
- <item/>
- </healexamdetlflaglist>
- </baseinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 일자초기화
- model.setValue("/root/send/srchfromdd" , getCurrentDate());
- model.setValue("/root/send/srchtodd" , getCurrentDate());
- // 공통코드 조회
- zbcfGetCodeList( new Array("A0068","A0069" ,"A0070" ),
- new Array("/root/init/baseinfo/healexamflag" ,"/root/init/baseinfo/healexamdetlflaglist1" , "/root/init/baseinfo/healexamdetlflaglist2" ) );
-
- addComboItem("cmb_healexamdetlflag");
- copyNodesetType("/root/init/baseinfo/healexamdetlflaglist/item","/root/init/baseinfo/healexamdetlflaglist2/A0070", "after");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <script type="javascript">
- <![CDATA[
- /*
- * 건진종류 소계 및 총계를 생성한다.
- */
- function fSetRcptSum() {
- // 그리드 merge 및 합계 초기화
- grd_dyrcptlst.autoMerge = false;
- grd_dyrcptlst.mergeCells = "bycolrec";
-
- grd_dyrcptlst.subtotalPosition = "below";
- grd_dyrcptlst.multiTotals = true;
-
- grd_dyrcptlst.subtotal("clear", 0, 0);
- for(var i =0; i < grd_dyrcptlst.cols ; i++) {
-
- // 소계
- if(i >= grd_dyrcptlst.colRef("totamt") && i <= grd_dyrcptlst.colRef("restamt")) {
- 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") , "소계" );
- grd_dyrcptlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamkind") , "총계" );
- }
- // 화면 merge
- if( i == grd_dyrcptlst.colRef("healexamkind")) {
- grd_dyrcptlst.mergeCol(i) = true;
- }else{
- grd_dyrcptlst.mergeCol(i) = false;
- }
- }
-
- grd_dyrcptlst.merge();
-
- }
- ]]>
- </script>
- <submission id="TRAHS02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pkgspeclst"/>
- <submission id="TRAHS02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detl" resultref="/root/main/pkgspecdetllst"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1041;">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">패키지별검진현황</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:9px; width:221px; height:17px; ">건진일자 : ~</caption>
- <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ret = submit("TRAHS02501");
- if(ret) {
- model.resetInstanceNode(grd_pkgdetllst.nodeset);
- //fSetRcptSum();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_healexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:435px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflaglist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:346px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="7" inputtype="date" style="left:227px; top:8px; width:105px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="7" inputtype="date" style="left:97px; top:8px; width:105px; height:19px; "/>
- </group>
- <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; ">
- <col ref="healexamflagnm" style="text-align:left; "/>
- <col ref="pkgnm" style="text-align:left; "/>
- <col ref="pkgcnt" style="text-align:left; "/>
- <col ref="pkgamt" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- copyNodesetType("/root/send/detl", grd_pkgspeclst.nodeset + "[" + grd_pkgspeclst.row + "]" , "replace");
- submit("TRAHS02502");
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col ref="pid" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="pkgnm" style="text-align:left; "/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:466px; top:63px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_pkgspeclst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:5px; y1:83px; x2:530px; y2:83px; "/>
- <button id="button1" class="btn2_letter4" style="left:1144px; top:63px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_pkgdetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:535px; y1:83px; x2:1208px; y2:83px; "/>
- </xhtml:body>
- </xhtml:html>
|