123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?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>
- <earnlist>
- <rcptlist/>
- </earnlist>
- </main>
- <send>
- <search>
- <fromdd/>
- <todd/>
- <ordtype>O</ordtype>
- <earncls1>01</earncls1>
- <earncls2>%</earncls2>
- <earncls3>%</earncls3>
- <schond>S</schond>
- <lrgchk>L</lrgchk>
- <mdlchk/>
- </search>
- </send>
- <hidden>
- <session/>
- </hidden>
- <init>
- <list1>
- <deptitem>
- <deptcd/>
- <depthngnm/>
- </deptitem>
- </list1>
- <earncls1>
- <earnlrgcls>
- <cdnm/>
- <cdid/>
- </earnlrgcls>
- </earncls1>
- <earncls2>
- <earnmdlcls>
- <cdnm/>
- <cdid/>
- </earnmdlcls>
- </earncls2>
- <earncls3>
- <earnsmlcls>
- <cdnm/>
- <cdid/>
- </earnsmlcls>
- </earncls3>
- <earnlist>
- <rcptlist/>
- <lrglist/>
- <mdllist/>
- </earnlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
- model.setValue("/root/send/search/fromdd", getCurrentDate());
- model.setValue("/root/send/search/todd", getCurrentDate());
- input7.refresh();
- input1.refresh();
-
-
- datagrid1.addColumn("ref:earncls1nm; type:output; style:text-align:left; ");
- datagrid1.addColumn("ref:earncls2nm; type:output; style:text-align:left; ");
- datagrid1.addColumn("ref:earncls3nm; type:output; style:text-align:left; ");
- datagrid1.caption = "수익대분류" + "^" + "수익중분류" + "^" + "수익소분류" ;
-
-
- // 과별 불러오기
- submit("TRPAS01251");
-
- var count = getNodesetCount("/root/init/list1/deptitem");
-
- for ( j=1; j <= count; j++ ) {
- var capName = model.getValue("/root/init/list1/deptitem["+ j +"]/depthngnm");
- datagrid1.addColumn("ref:name"+ (j-1) +"; type:output; format:(-)#,###; style:text-align:right; ");
- datagrid1.caption = datagrid1.caption + "^" + capName;
- if ( datagrid1.caption = datagrid1.caption ) {
- continue;
- } else {
- break;
- }
- }
-
- if ( submit("TRPAS01252") ) {
- if ( submit("TRPAS01253") ) {
- if ( submit("TRPAS01254") ) {
- } else {
- messageBox("수익 소분류 조회 중 오류","E999");
- return;
- }
- } else {
- messageBox("수익 중분류 조회 중 오류","E999");
- return;
- }
- } else {
- messageBox("수익 대분류 조회 중 오류","E999");
- return;
- }
-
- datagrid1.autoSizeMouse = true;
- datagrid1.refresh();
- ]]>
- </script>
- <submission id="TRPAS01251" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/init"/>
- <submission id="TRPAS01252" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls1"/>
- <submission id="TRPAS01253" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls2"/>
- <submission id="TRPAS01254" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earncls3"/>
- <submission id="TRPAS01255" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earnlist"/>
- <submission id="TRPAS01256" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/earnlist"/>
- </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">
- <group id="group2" style="left:4px; top:22px; 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:198px; height:17px; ">기간 ~</caption>
- <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; 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 fromdd = model.getValue("/root/send/search/fromdd");
- var todd = model.getValue("/root/send/search/todd");
-
- if ( fromdd > todd ) {
- messageBox("시작일자가 종료일자보다 클수 ", "C001")
- return;
- }
-
- model.removeNodeset("/root/main/earnlist/rcptlist");
- model.removeNodeset("/root/main/earnlist/lrglist");
- model.removeNodeset("/root/main/earnlist/mdllist");
-
- var rtGubn = model.getValue("/root/send/search/schond");
- var MdlCheck = model.getValue("/root/send/search/mdlchk");
-
- submit("TRPAS01255");
-
- if ( rtGubn == "S") {
- datagrid1.nodeset = "/root/main/earnlist/rcptlist";
- copyNodeListType("/root/main/earnlist","/root/init/earnlist/rcptlist", "after");
- } else {
- if ( MdlCheck == "M" ) {
- datagrid1.nodeset = "/root/main/earnlist/mdllist";
- copyNodeListType("/root/main/earnlist","/root/init/earnlist/mdllist", "after");
- } else {
- datagrid1.nodeset = "/root/main/earnlist/lrglist";
- copyNodeListType("/root/main/earnlist","/root/init/earnlist/lrglist", "after");
- }
- }
-
- model.refresh();
-
- datagrid1.mergeCol(1) = true;
- datagrid1.merge();
-
-
- var row = datagrid1.rows - 1;
-
- //합계 Merge 후 가운데 정렬
- if ( rtGubn == "S" ) {
- datagrid1.mergeByFree(row, 0, row, 2);
- datagrid1.cellstyle("text-align", row, 0, row, 2) = "center";
- } else {
- if ( MdlCheck == "M" ) {
- datagrid1.mergeByFree(row, 0, row, 1);
- datagrid1.cellstyle("text-align", row, 0, row, 1) = "center";
- }
- }
-
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/send/search/fromdd" class="input_default" navindex="7" inputtype="date" style="left:60px; top:9px; width:100px; height:19px; text-align:center; ">
- <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>
- <input id="input1" ref="/root/send/search/todd" class="input_default" navindex="7" inputtype="date" style="left:175px; top:9px; width:100px; height:19px; text-align:center; ">
- <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>
- <select1 id="combo1" ref="/root/send/search/ordtype" appearance="minimal" style="left:342px; top:9px; width:68px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" style="left:285px; top:9px; width:54px; height:19px; font-weight:bold; ">진료형태</caption>
- <select1 id="combo2" ref="/root/send/search/earncls1" visibility="visible" appearance="minimal" style="left:570px; top:10px; width:120px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/earncls1/earnlrgcls">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if ( !submit("TRPAS01253") ) {
- messageBox("수익 중분류 조회 중 오류","E999");
- return;
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/send/search/earncls2" visibility="visible" appearance="minimal" style="left:725px; top:10px; width:155px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/earncls2/earnmdlcls">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if ( !submit("TRPAS01254") ) {
- messageBox("수익 소분류 조회 중 오류","E999");
- return;
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/send/search/earncls3" visibility="visible" appearance="minimal" style="left:900px; top:10px; width:225px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/earncls3/earnsmlcls">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_indyn" ref="/root/send/search/schond" appearance="full" cellspacing="7" cols="2" style="left:421px; top:10px; width:100px; height:20px; font-weight:bold; ">
- <choices>
- <item>
- <label>상세</label>
- <value>S</value>
- </item>
- <item>
- <label>집계</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var schond = model.getValue("/root/send/search/schond");
-
- if ( schond == "A" ) {
- caption1.visible = false;
- caption3.visible = false;
- caption4.visible = false;
- combo2.visible = false;
- combo3.visible = false;
- combo4.visible = false;
-
- checkbox1.visible = true;
- checkbox2.visible = true;
- } else {
- caption1.visible = true;
- caption3.visible = true;
- caption4.visible = true;
- combo2.visible = true;
- combo3.visible = true;
- combo4.visible = true;
-
- checkbox1.visible = false;
- checkbox2.visible = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption1" visibility="visible" style="left:551px; top:10px; width:15px; height:19px; font-weight:bold; ">대</caption>
- <caption id="caption3" visibility="visible" style="left:709px; top:10px; width:15px; height:19px; font-weight:bold; ">중</caption>
- <caption id="caption4" visibility="visible" style="left:885px; top:10px; width:15px; height:19px; font-weight:bold; ">소</caption>
- <select id="checkbox1" ref="/root/send/search/lrgchk" visibility="hidden" overflow="visible" appearance="full" style="left:535px; top:11px; width:30px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>대</label>
- <value>L</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- checkbox1.selected = true;
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/send/search/mdlchk" visibility="hidden" overflow="visible" appearance="full" style="left:568px; top:11px; width:30px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>중</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">수익명세서</caption>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/earnlist/rcptlist" autoresize="true" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:90px; width:1200px; height:680px; "/>
- <button id="button95" class="btn6_letter4" visibility="visible" style="left:1125px; top:60px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "수익명세서 "+getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "수익명세서 "+getCurrentDate(), true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|