123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?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>
- <spherechargeamtlist>
- <spherechargeamtstats>
- <depthngnm/>
- <!--<pid/>
- <hngnm/>
- <intotal/>
- <inamt/>
- <banhwan/>
- <cardamt/>
- <cashamt/>
- <rcptflag/>
- <onlineamt/>-->
- </spherechargeamtstats>
- </spherechargeamtlist>
- <search>
- <fromdata/>
- <todata/>
- <datagubun>1</datagubun>
- <erdata>1</erdata>
- <dcgubun>L</dcgubun>
- </search>
- <spherechargelsnmlist>
- <spherechargelsnstats>
- <earncls/>
- <earnclsnm/>
- </spherechargelsnstats>
- </spherechargelsnmlist>
- <spherechargemsnmlist>
- <spherechargemsnmstats>
- <earncls1/>
- <earncls1nm/>
- <earncls2/>
- <earncls2nm/>
- </spherechargemsnmstats>
- </spherechargemsnmlist>
- <spherechargessnmlist>
- <spherechargessnmstats>
- <earncls1/>
- <earncls1nm/>
- <earncls2/>
- <earncls2nm/>
- <earncls3/>
- <earncls3nm/>
- </spherechargessnmstats>
- </spherechargessnmlist>
- </main>
- <send>
- <fromdata/>
- <todata/>
- <datagubun/>
- <erdata/>
- <dcgubun/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
-
- if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
- if (tmpDate < 10) {tmpDate = "0"+tmpDate; }
- model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
- model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
- input7.refresh();
- input1.refresh();
-
- // model.removeNodeset("/root/main/spherechargeamtlist");
- // model.removeNodeset("/root/main/spherechargelsnmlist");
- // model.removeNodeset("/root/main/spherechargemsnmlist");
- // model.removeNodeset("/root/main/spherechargessnmlist");
- // submit("TRPAS01371");
- // submit("TRPAS01374");
- // var line1 = "과제별/행위별";
- // var line2 = "과제별/행위별";
- // model.makeNode("/root/main/spherechargeamtlist/spherechargeamtstats");
- //
- // for (i = 1; i<= getNodesetCount("/root/main/spherechargelsnmlist/spherechargelsnstats"); i++){
- // var capName1 = model.getValue("/root/main/spherechargelsnmlist/spherechargelsnstats["+i+"]/earnclsnm");
- //
- // datagrid1.addColumn("ref:name_1_" + i + "; type:output;",true);
- // datagrid1.addColumn("ref:name_2_" + i + "; type:output;",true);
- // line1 = line1 +"^"+capName1+"^"+capName1 ;
- // line2 = line2 + "^행위료^진찰료";
- // }
- // datagrid1.addColumn("ref:name; type:output;");
- // line1 = line1 +"^합계^합계" ;
- // datagrid1.addColumn("ref:name; type:output;");
- // line2 = line2 + "^행위료^진찰료";
- // datagrid1.caption= line1 + "|" + line2;
- // datagrid1.rebuild();
- ]]>
- </script>
- <submission id="SMPAS001371" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
- <submission id="SMPAS001372" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
- <bind id="bind1" ref="/root/main/spherechargeamtlist/spherechargeamtstats" calculate="now() + ."/>
- </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="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:202px; height:14px; font-family:돋움; vertical-align:middle; ">과별수가종류별 의료수익명세서</caption>
- </group>
- <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:15px; 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 fromdata = model.getValue("/root/main/search/fromdata");
- var todata = model.getValue("/root/main/search/todata");
- if(fromdata==""||fromdata==null){
- messageBox("시작일을 입력","E007");
- model.setFocus("input7");
- return false;
- }
- if(todata==""|| todata==null){
- messageBox("끝일을 입력","E007");
- model.setFocus("input1");
- return false;
- }
- if(fromdata > todata){
- messageBox("시작일이 끝일자보다 클수 ", "C001")
- return false;
- }else{
- model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
- model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
- model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
-
- var line1 = "과제별/행위별";
- var line2 = "과제별/행위별";
- var line3 = "과제별/행위별";
- var line4 = "과제별/행위별";
- datagrid1.caption = "";
-
-
-
- //그리드 초기화
- model.removeNodeset("/root/main/spherechargeamtlist");
- model.makeNode("/root/main/spherechargeamtlist");
-
- model.removeNodeset("/root/main/spherechargelsnmlist");
- model.removeNodeset("/root/main/spherechargemsnmlist");
- model.removeNodeset("/root/main/spherechargessnmlist");
-
- model.refresh();
-
-
- //로드값 있으면 삭제
- var curCols = datagrid1.cols;
- for(var i = 0; i< curCols; i++) {
- datagrid1.removeColumn(false);
- }
- datagrid1.rebuild();
-
-
-
-
- //대중소(L대,M중,S소)서브미션
- var valChang = model.getValue("/root/main/search/dcgubun");
- if(valChang =="L"){
- //model.makeNode("/root/main/spherechargelsnmlist");
- //addColum행위별 서브미션
- submit("SMPAS001371");
- //addColum과별 서브미션
- submit("SMPAS001372");
-
- //대분류 로드
- model.makeNode("/root/main/spherechargelsnmlist");
-
- for (i = 1; i<= getNodesetCount("/root/main/spherechargelsnmlist/spherechargelsnstats"); i++){
- var capName1 = model.getValue("/root/main/spherechargelsnmlist/spherechargelsnstats["+i+"]/earnclsnm");
- datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
- line1 = line1 +"^"+capName1+"^"+capName1 ;
- datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
- line2 = line2 + "^행위료^진찰료";
- }
-
- datagrid1.addColumn("ref:name3; type:output;");
- line1 = line1 +"^합계^합계" ;
- datagrid1.addColumn("ref:name4; type:output;");
- line2 = line2 + "^행위료^진찰료";
- datagrid1.caption= line1 + "|" + line2;
-
- }else if(valChang=="M"){
- //model.makeNode("/root/main/spherechargemsnmlist");
- //addColum행위별 서브미션
- submit("SMPAS001371");
- //addColum과별 서브미션
- submit("SMPAS001372");
-
- //중분류 로드
- model.makeNode("/root/main/spherechargemsnmlist/spherechargemsnmstats");
-
- for (i = 1; i<= getNodesetCount("/root/main/spherechargemsnmlist/spherechargemsnmstats"); i++){
- var capName1 = model.getValue("/root/main/spherechargemsnmlist/spherechargemsnmstats["+i+"]/earncls1nm");
- var capName2 = model.getValue("/root/main/spherechargemsnmlist/spherechargemsnmstats["+i+"]/earncls2nm");
-
- datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
- line1 = line1 + "^" +capName1 + "^" + capName1;
- datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
- line2 = line2 + "^" +capName2 + "^" + capName2;
- line3 = line3 + "^행위료^진찰료";
- }
- datagrid1.addColumn("ref:name; type:output;");
- line1 = line1 +"^합계^합계" ;
- datagrid1.addColumn("ref:name; type:output;");
- line2 = line2 +"^합계^합계" ;
- //datagrid1.addColumn("ref:name; type:output;");
- line3 = line3 + "^행위료^진찰료";
- datagrid1.caption= line1 + "|" + line2 + "|" + line3;
-
- }else if(valChang=="S"){
- //model.makeNode("/root/main/spherechargessnmlist");
- //addColum행위별 서브미션
- submit("SMPAS001371");
- //addColum과별 서브미션
- submit("SMPAS001372");
-
-
- //소분류 로드
- model.makeNode("/root/main/spherechargessnmlist/spherechargessnmstats");
-
- for (i = 1; i<= getNodesetCount("/root/main/spherechargessnmlist/spherechargessnmstats"); i++){
- var capName1 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls1nm");
- var capName2 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls2nm");
- var capName3 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls3nm");
-
- datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
- line1 = line1 +"^"+capName1+"^"+capName1 ;
- datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
- line2 = line2 +"^"+capName2+"^"+capName2 ;
- datagrid1.addColumn("ref:name_3_" + i + "; type:output;");
- line3 = line3 +"^"+capName3+"^"+capName3 ;
- line4 = line4 + "^행위료^진찰료";
- }
- datagrid1.addColumn("ref:name; type:output;");
- line1 = line1 +"^합계^합계" ;
- datagrid1.addColumn("ref:name; type:output;");
- line2 = line2 +"^합계^합계" ;
- datagrid1.addColumn("ref:name; type:output;");
- line3 = line3 + "^합계^합계" ;
- line4 = line4 + "^행위료^진찰료";
- datagrid1.caption= line1 + "|" + line2 + "|" + line3 +"|"+line4;
- }
-
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind1.nodeset;
- if(nodelist.length>0){
- line1.visible =true;
- button95.visible = true;
- }else{
- line1.visible =false;
- button95.visible = false;
- }
- datagrid1.rebuild();
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:98px; top:8px; width:120px; 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>
- <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:243px; top:8px; width:120px; 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>
- <select1 id="combo1" ref="/root/main/search/datagubun" appearance="minimal" style="left:385px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/main/search/dcgubun" appearance="full" cols="3" overflow="visible" style="left:515px; top:10px; width:100px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>대</label>
- <value>L</value>
- </item>
- <item>
- <label>중</label>
- <value>M</value>
- </item>
- <item>
- <label>소</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <button id="button95" class="btn6_letter4" visibility="hidden" style="left:973px; top:7px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //날짜 함수 갖어오기
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
-
- //엑셀저장 여부(타이틀별)
- // model.setValue("/root/documenttitle/title",document.title);
- // model.refresh();
- // var subjectTitle = model.getValue("/root/documenttitle/title");
-
- var fileName = window.fileDialog("save", "", false, "과별수가종류별의료수익명세서"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "과별수가종류별의료수익명세서"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="hidden" style="x1:1060px; y1:7px; x2:1060px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RTPAS00137", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/spherechargeamtlist/spherechargeamtstats" colsep="^" colwidth="250" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:4px; top:60px; width:1203px; height:711px; ">
- <col ref="depthngnm" style="text-align:left; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|