123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <dyrcptlst>
- <item>
- <instcd/>
- <orddeptcd/>
- <orddeptnm/>
- <pid/>
- <rcptdd/>
- <rcptno/>
- <totamt/>
- <payinsubamt/>
- <payinsucncramt/>
- <payinsuoralamt/>
- <payinsuetcamt/>
- <payhealcntramt/>
- <cmpyamt/>
- <discamt/>
- <cardamt/>
- <cashamt/>
- <ownuncoamt/>
- <mdlrcptamt/>
- <reduamt/>
- <restamt/>
- <rcptrid/>
- <onlinecash/>
- </item>
- </dyrcptlst>
- <export/>
- </main>
- <send>
- <srchinstcd/>
- <srchhealexamflag/>
- <srchorddeptcd/>
- <srchpid/>
- <srchfromdd/>
- <srchtodd/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <healexamflag>
- <A0068>
- <cdid/>
- <cdnm/>
- </A0068>
- </healexamflag>
- <healexamdetlflaglist/>
- <healexamdetlflaglist2/>
- <orddeptcdlst/>
- </baseinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //기관코드 초기화
- model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
- //일자초기화
- 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/healexamdetlflaglist" , "/root/init/baseinfo/healexamdetlflaglist2" ));
- //for(var i = 3; i <= model.getXPathValue("count(/root/init/baseinfo/healexamdetlflaglist2)") + 2 ; i++)
- //2010.02.19 강태훈 공통코드 A0069, A0070 합침
- for(var i = 3; i <= 14 + 2 ; i++){
- model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]");
- model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdid");
- model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdnm");
- model.setValue("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdid" , model.getValue("/root/init/baseinfo/healexamdetlflaglist2/A0070[" + (i - 2) + "]/cdid"));
- model.setValue("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdnm" , model.getValue("/root/init/baseinfo/healexamdetlflaglist2/A0070[" + (i - 2) + "]/cdnm"));
- }
-
- //공통코드 조회 - 진료과 (G, G26)
- healGetComboList("G", new Array("G26"), new Array("/root/init/baseinfo/orddeptcdlst"), false);
-
- //건진구분 초기화
- model.setValue("root/send/srchhealexamflag", getScreenMenuParameter());
-
- //진료과 초기화
- var sUserDeptCd = getUserInfo("dutplcecd");
-
- if(sUserDeptCd == "2370100000" || sUserDeptCd == "2230000000" || sUserDeptCd == "2110000000" || sUserDeptCd == "2241700000"){
- if(sUserDeptCd == "2370100000"){
- model.makeValue("/root/send/srchhealexamflag", "C");
- }else{
- model.makeValue("/root/send/srchhealexamflag", "G");
- }
- model.setValue("/root/send/srchorddeptcd", sUserDeptCd);
- }else{
- model.setValue("/root/send/srchorddeptcd", "ALL");
- model.makeValue("/root/send/srchhealexamflag", "G");
- }
-
- // 2018/01/03 이정택 주석처리
- /*
- if(sUserDeptCd != ""){
- if(getUserInfo("dutplceinstcd") == "031"){
- // addComboItem("cmb_orddeptcd", "건강증진센터", "2370100000", "below");
- //가정의학과, 소아청소년과, 소아치과
- if(sUserDeptCd == "2370100000" || sUserDeptCd == "2230000000" || sUserDeptCd == "2110000000" || sUserDeptCd == "2241700000"){
- model.setValue("/root/send/srchorddeptcd", sUserDeptCd);
- }else{
- model.setValue("/root/send/srchorddeptcd", "2230000000");
- }
- }else{
- //내분비대사센터
- if(sUserDeptCd == "2363400000"){
- model.setValue("/root/send/srchorddeptcd", "2110000000");
- }else{
- model.setValue("/root/send/srchorddeptcd", "2370100000");
- }
- }
- }
- */
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 건진종류 소계 및 총계를 생성한다.
- */
- function fSetRcptSum() {
- grd_dyrcptlst.subtotalPosition = "below";
- grd_dyrcptlst.subtotal("clear", grd_dyrcptlst.colRef("healexamdetlflag") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamdetlflag") , "소 계" );
- grd_dyrcptlst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", grd_dyrcptlst.colRef("healexamdetlflag"), "총 계" );
-
- for(var i=0; i < grd_dyrcptlst.cols ; i++) {
- if(i >= grd_dyrcptlst.colRef("totamt")){
- grd_dyrcptlst.subtotal("sum", grd_dyrcptlst.colRef("healexamdetlflag") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamdetlflag") , "소 계" );
- grd_dyrcptlst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", grd_dyrcptlst.colRef("healexamdetlflag"), "총 계" );
- }
- }
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHB00606"/>
- <submission id="TRAHS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dyrcptlst"/>
- <submission id="TRAHS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dyrcptlst"/>
- <submission id="TXAHS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rcptlist" resultref="/root/main/dyrcptlst"/>
- </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"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
- <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:405px; top:9px; width:73px; 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[
- submit("TRAHS01701");
- fSetRcptSum();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="7" inputtype="date" style="left:472px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- /*
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- */
- ]]>
- </script>
- </input>
- <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //매개변수
- model.makeValue("/root/main/export/weeknm" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDayOfWeek("k"));
- model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD"));
- exeReportPreview("RPAHS00501", "XMLSTR", "/root/main/export","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:720px; top:9px; width:86px; height:17px; ">환자ID :</caption>
- <input id="input1" ref="/root/send/srchpid" style="left:800px; top:8px; width:105px; height:19px; "/>
- <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/srchorddeptcd" class="combo_search" appearance="minimal" style="left:294px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/orddeptcdlst/G26">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:215px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption5" style="left:580px; top:10px; width:20px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="7" inputtype="date" style="left:595px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- /*
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }else{
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- */
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_dyrcptlst" nodeset="/root/main/dyrcptlst/item" caption="기관코드^건진구분^진료과코드^진료과^등록번호^수납일자^영수증번호^총진료비^부담금^부담금^부담금^부담금^부담금^부담금^할인/감액^카드금액^현금금액^개인미수금^중간금^감액^절사액^수납자^|기관코드^건진구분^진료과코드^진료과^등록번호^수납일자^영수증번호^총진료비^공단(1,2차)^공단(암)^공단(구강)^공단(기타)^보건소부담금^사업체부담금^할인/감액^카드금액^현금금액^개인미수금^중간금^감액^절사액^수납자^" colsep="^" colwidth="0, 110, 0, 90, 70, 75, 70, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 70, 70, 70, 70, 90" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:3px; top:65px; width:1203px; height:680px; text-align:center; ">
- <col ref="instcd" type="input" visibility="hidden" style="text-align:center; "/>
- <col ref="healexamdetlflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflaglist/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd" type="input" visibility="hidden"/>
- <col ref="orddeptnm" type="input"/>
- <col ref="pid" type="input"/>
- <col ref="rcptdd" type="input"/>
- <col ref="rcptno" type="input"/>
- <col ref="totamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="payinsubamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="payinsucncramt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="payinsuoralamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="payinsuetcamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="payhealcntramt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="cmpyamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="discamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="cardamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="onlinecash" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="ownuncoamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="mdlrcptamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="reduamt" type="input" visibility="hidden" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="restamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
- <col ref="rcptrid"/>
- </datagrid>
- <button id="btn_save" class="btn4_letter2" disabled="false" style="left:1049px; top:750px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/save/rcptlist");
- var dyrcpt = getGridUpdateData(grd_dyrcptlst);
- if(dyrcpt == ""){
- messageBox("수정 된 내역이", "I004");
- return;
- }
- model.setValue("/root/send/save/rcptlist", dyrcpt);
- submit("TXAHS01701");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter5" style="left:1114px; top:750px; width:92px; height:22px; ">
- <caption>실자료 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ret = submit("TRAHS00501");
- if(ret){
- for(var i = 1 ; i <= grd_dyrcptlst.rows ; i++){
- grd_dyrcptlst.rowStatus(i) = 1;
- }
- fSetRcptSum();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button52" class="btn2_letter3" navindex="8" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1094px; top:62px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_dyrcptlst.addRow();
- var row = grd_dyrcptlst.rows;
- model.setValue("/root/main/dyrcptlst/item/rcptdd", model.getValue("/root/send/srchdd"));
- ]]>
- </script>
- </button>
- <button id="button53" accesskey="f1" class="btn5_letter3" navindex="9" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn5_letter3.gif" style="left:1149px; top:62px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn5_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_dyrcptlst.row;
- if(row < 0){
- messageBox("선택된 행이", "I004");
- }else{
- if( grd_dyrcptlst.rowStatus(row) == 1){
- grd_dyrcptlst.deleteRow(row);
- } else {
- grd_dyrcptlst.addStatus(row, "delete");
- }// inner else end
- }//else end
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|