123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00310.xrw
- * 설 명 : 수가관리
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2012.01.09
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <pkgcdlst>
- <item1>
- <seq/>
- <healexamdetlflag/>
- <pkgflag/>
- <pkgcdkey/>
- <pkgcd/>
- <oldordcd/>
- <pkgnm/>
- <pkgengnm/>
- <pkgamt/>
- <calcscorcd/>
- <calcscornm/>
- <brthareacnts/>
- <gndrflag/>
- <useyn/>
- <uncoflag/>
- <earnclslst/>
- <pkgsumearncls/>
- <remcnts/>
- <lastupdtrid/>
- <lastupdtdt/>
- <pkgdesc/>
- <discyn/>
- <inetyn/>
- <hrmfctr/>
- <cycle/>
- <prntseq/>
- <earnclscd/>
- <dietconstyn/>
- </item1>
- </pkgcdlst>
- <calcscorelst>
- <calcscore>
- <healexamflag/>
- <pkgcd/>
- <gpkgcd/>
- <testcd/>
- <testnm/>
- <mtestcd/>
- <testamt/>
- <todd/>
- <fromdd/>
- <oldtodd/>
- <oldfromdd/>
- <changeoldtodd/>
- <lastupdtrid/>
- <lastupdtdt/>
- </calcscore>
- </calcscorelst>
- <calcscoredetlst>
- <calcscore>
- <healexamflag/>
- <pkgcd/>
- <testcd/>
- <testnm/>
- <testamt/>
- <todd/>
- <fromdd/>
- <oldtodd/>
- <oldfromdd/>
- <lastupdtrid/>
- <lastupdtdt/>
- </calcscore>
- </calcscoredetlst>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchpkgflag>P</srchpkgflag>
- <srchpkgcd/>
- <srchcdflag/>
- <srchpkgnm/>
- <srchuseyn/>
- <pkgcd/>
- <testcd/>
- </send>
- <savecalcscore>
- <calcscore/>
- </savecalcscore>
- <savecalcscoredet>
- <calcscore/>
- </savecalcscoredet>
- <init>
- <baseinfo>
- <healexamflag>
- <A0068>
- <cdid/>
- <cdnm/>
- </A0068>
- </healexamflag>
- <healexamdetlflag>
- <A0069>
- <cdid/>
- <cdnm/>
- </A0069>
- <A0070>
- <cdid/>
- <cdnm/>
- </A0070>
- </healexamdetlflag>
- <pkgflag>
- <item>
- <cdid>P</cdid>
- <cdnm>패키지</cdnm>
- </item>
- <item>
- <cdid>G</cdid>
- <cdnm>묶음처방</cdnm>
- </item>
- </pkgflag>
- <uncolst>
- <A0067>
- <cdid/>
- <cdnm/>
- </A0067>
- </uncolst>
- <earnclslst>
- <A0435>
- <cdid/>
- <cdnm/>
- </A0435>
- </earnclslst>
- <brthareacnts>
- <A0465>
- <cdid/>
- <cdnm/>
- </A0465>
- </brthareacnts>
- </baseinfo>
- </init>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAHB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/pkgcdlst"/>
- <submission id="TRAHB00310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calcscorelst"/>
- <submission id="TRAHB00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calcscoredetlst"/>
- <submission id="TXAHB00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/savecalcscore" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHB00312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/savecalcscoredet" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/init/baseinfo/healexamflag/A0067");
- model.removeNodeset("/root/init/baseinfo/healexamflag/A0068");
- model.removeNodeset("/root/init/baseinfo/healexamflag/A0069");
- model.removeNodeset("/root/init/baseinfo/healexamflag/A0070");
-
- var vHeFgLen = fGetHealExamFlag().length;
- var vHeFg = fGetHealExamFlag();
- var vHeFgCd = "";
- if( vHeFg.substr(0, 1) == "C" ){
- vHeFgCd = "A0069";
- }else{
- vHeFgCd = "A0070";
- }
-
- //공통코드 콤보 호출
- zbcfGetCodeList( new Array("A0068" ,vHeFgCd, "A0067","A0435","A0465")
- ,new Array("/root/init/baseinfo/healexamflag"
- ,"/root/init/baseinfo/healexamdetlflag"
- ,"/root/init/baseinfo/uncolst"
- ,"/root/init/baseinfo/earnclslst"
- ,"/root/init/baseinfo/brthareacnts"));
-
- grd_pkglst.colflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflag/"+ vHeFgCd;
- cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflag/"+ vHeFgCd;
- submit("TRZBC00101");
- fInitCtrl(true); //초기화
- cmb_healexamflag.value = vHeFg.substr(0,1);
- //종건, 일건 구분
- if(vHeFgLen == 1){
- cmb_srchhealexamdetlflag.value = vHeFg + "01";
- }else{
- cmb_srchhealexamdetlflag.value = vHeFg;
- }
-
- fGetPkgList(); //조회
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /**=================================================================================
- @desc : 컨트롤 초기화
- *=================================================================================*/
- function fInitCtrl(bAll){
- if(bAll == true){
- model.removeNodeset("/root/main/pkgcdlst/item1");
- }
- model.removeNodeset("/root/main/calcscorelst/calcscore");
- model.removeNodeset("/root/main/calcscoredetlst/calcscore");
- }
-
- /**=================================================================================
- @desc : 선택된 건진 구분을 가져온다.
- *=================================================================================*/
- function fGetHealExamFg(){
- return model.getValue("/root/send/srchhealexamflag");
- }
- /**=================================================================================
- @desc : 선택된 건진 상세구분을 가져온다.
- *=================================================================================*/
- function fGetHealExamDetlFg(){
- return model.getValue("/root/send/srchhealexamdetlflag");
- }
-
- /**=================================================================================
- @desc : 건진상세구분바꾸기
- *=================================================================================*/
- function fSetHealExamDetlFlag(){
- model.removeNodeset("/root/init/baseinfo/healexamdetlflag/A0069");
- model.removeNodeset("/root/init/baseinfo/healexamdetlflag/A0070");
-
- var vItem = "";
- var vHealexamflag = fGetHealExamFg();
- if(vHealexamflag == "C"){
- vItem = "A0069";
- }else{
- vItem = "A0070"; //일반건진
- }
- zbcfGetCodeList( new Array(vItem), new Array("/root/init/baseinfo/healexamdetlflag"));
- grd_pkglst.colflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflag/"+ vItem;
- cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/healexamdetlflag/"+ vItem;
- submit("TRZBC00101");
-
- cmb_srchhealexamdetlflag.refresh();
- cmb_srchhealexamdetlflag.select(0);
- }
-
- /**=================================================================================
- @desc : 패키지 내역 조회
- *=================================================================================*/
- function fGetPkgList(){
- fInitCtrl(true);
- var vHealexamflag = fGetHealExamFg();
- if(vHealexamflag == "") return false;
-
- model.setValue("/root/send/srchhealexamflag" , vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue(cmb_srchhealexamdetlflag.attribute("ref") ));
- return submit("TRAHB00301");
- }
-
- /**=================================================================================
- @desc : 패키지 수가조회
- *=================================================================================*/
- function fGetCalcScore(){
- fInitCtrl(false);
-
- var idx = grd_pkglst.row;
- if(idx < 1) return;
-
- var vHealexamflag = fGetHealExamFg();
- var vPkgcd = model.getValue("/root/main/pkgcdlst/item1[" + idx + "]/pkgcdkey");
- if((vHealexamflag == "") || (vPkgcd == "")) return;
-
- model.setValue("/root/send/srchhealexamflag" , vHealexamflag);
- model.setValue("/root/send/pkgcd" , vPkgcd);
- var ret = false;
- ret = submit("TRAHB00310");
-
- return ret;
- }
- /**=================================================================================
- @desc : 패키지 상세내역 상태변경
- *=================================================================================*/
- function fSetStatCalcScore(){
- var idx = grd_calcscorelst.rows;
- if(idx < 1) return;
- grd_calcscorelst.rebuildStyle(); // 스타일 초기화
- for(var i=1; i <= grd_calcscorelst.rows; i++) {
- var testcd = grd_calcscorelst.valueMatrix( i , grd_calcscorelst.colRef("testcd"));
- var mtestcd = grd_calcscorelst.valueMatrix( i , grd_calcscorelst.colRef("mtestcd"));
- if(testcd != mtestcd){
- grd_calcscorelst.addStatus(i, "insert");
- grd_calcscorelst.rowStyle(i, "data", "background-color") = "#F6B7B9";
- }
- }
- }
- /**=================================================================================
- @desc : 패키지검사 가격 총계_2011.09.02 By 김금련
- *=================================================================================*/
- function fSetRcptSum() {
- grd_calcscorelst.subtotalPosition = "below";
- grd_calcscorelst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 4, "총계" );
-
- for(var i=0; i < grd_calcscorelst.cols; i++){
- if(i == grd_calcscorelst.colRef("testamt")){
- grd_calcscorelst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:right", 4, "총계" );
- }
- }
- }
- /**=================================================================================
- @desc : 수가이력 조회
- *=================================================================================*/
- function fGetCalcScoreDet(){
- model.removeNodeset("/root/main/calcscoredetlst/calcscore");
-
- var idx = grd_calcscorelst.row;
- if(idx < 1) return;
-
- var vHealexamflag = fGetHealExamFg();
- var vPkgcd = model.getValue("/root/main/calcscorelst/calcscore[" + idx + "]/pkgcd");
- var vTestcd = model.getValue("/root/main/calcscorelst/calcscore[" + idx + "]/testcd");
- if(vHealexamflag == "" || vPkgcd == "") return;
-
- model.setValue("/root/send/srchhealexamflag" , vHealexamflag);
- model.setValue("/root/send/pkgcd" , vPkgcd);
- model.setValue("/root/send/testcd" , vTestcd);
- var ret = false;
- ret = submit("TRAHB00311");
-
- return ret;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1197;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1196px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">건진수가관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12px; width:1196px; height:744px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption8" class="search_name" style="left:10px; top:9px; width:99px; height:17px; ">건진구분:</caption>
- <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:95px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetHealExamDetlFlag();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:200px; top:9px; width:117px; height:17px; ">건진상세분류 :</caption>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:315px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflag/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetPkgList();
- ]]>
- </script>
- </select1>
- <caption id="caption21" class="search_name" style="left:411px; top:9px; width:99px; height:17px; ">패키지코드 :</caption>
- <input id="ipt_srchpkgcd" ref="/root/send/srchpkgcd" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:515px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption22" class="search_name" style="left:630px; top:10px; width:65px; height:17px; ">명칭 :</caption>
- <input id="ipt_srchpkgnm" ref="/root/send/srchpkgnm" class="input_search" style="left:695px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select id="chk_useyn" ref="/root/send/srchuseyn" overflow="visible" appearance="full" style="left:810px; top:10px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사용여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPkgList();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption11" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; ">패키지코드</caption>
- <button id="btn_grdsize" class="btn2_letter3" style="left:346px; top:50px; width:53px; height:19px; ">
- <caption>펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(btn_grdsize.attribute("text") == "펼치기"){
- btn_grdsize.attribute("text") = "줄이기";
- grd_pkglst.attribute("width") = parseInt(grd_pkglst.attribute("width")) + parseInt(grd_calcscorelst.attribute("width")) + parseInt(grd_calcscoredetlst.attribute("width"));
- }else{
- btn_grdsize.attribute("text") = "펼치기";
- grd_pkglst.attribute("width") = parseInt(grd_pkglst.attribute("width")) - parseInt(grd_calcscorelst.attribute("width")) - parseInt(grd_calcscoredetlst.attribute("width"));
- }
- ]]>
- </script>
- </button>
- <button id="btn_excsave1" class="btn2_letter2" style="left:302px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_pkglst.saveExcel(file);
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:5px; y1:70px; x2:400px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:405px; top:55px; width:100px; height:13px; ">수가정보</caption>
- <button id="button5" class="btn2_letter2" style="left:798px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_calcscorelst.saveExcel(file);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:405px; y1:70px; x2:840px; y2:70px; "/>
- <datagrid id="grd_calcscorelst" nodeset="/root/main/calcscorelst/calcscore" caption="건진구분^패키지코드^상세패키지코드^검사코드^검사명^수가검사코드^단가^적용일자^종료일자^최종수정자^최종수정일시^" colsep="^" colwidth="100, 100, 100, 60, 100, 100, 60, 88, 88, 80, 80" ellipsis="true" explorerbar="sortshow" rowheader="update" rowsep="|" tooltip="true" style="left:405px; top:75px; width:435px; height:668px; ">
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="gpkgcd" visibility="hidden"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <col ref="mtestcd" visibility="hidden"/>
- <col ref="testamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="oldfromdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="oldtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="changeoldtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_calcscorelst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRcptSum(); //상세 패키지 단가 합계 출력
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- fGetCalcScoreDet(); //수가이력 조회
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:847px; top:55px; width:100px; height:13px; ">이력정보</caption>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_calcscoredetlst.addRow();
- var vHealexamflag = fGetHealExamFg();
- var vHealExamDetlFlag = fGetHealExamDetlFg();
- var vPkgcd = model.getValue("/root/main/calcscorelst/calcscore[" + grd_calcscorelst.row + "]/pkgcd");
- var vTestcd = model.getValue("/root/main/calcscorelst/calcscore[" + grd_calcscorelst.row + "]/testcd");
- model.setValue("/root/main/calcscoredetlst/calcscore[" + grd_calcscoredetlst.row + "]/healexamflag" , vHealexamflag);
- model.setValue("/root/main/calcscoredetlst/calcscore[" + grd_calcscoredetlst.row + "]/pkgcd" , vPkgcd);
- model.setValue("/root/main/calcscoredetlst/calcscore[" + grd_calcscoredetlst.row + "]/testcd" , vTestcd);
- grd_calcscoredetlst.col = 4;
- grd_calcscoredetlst.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1140px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_calcscoredetlst, true);
- ]]>
- </script>
- </button>
- <!--
- <button id="button1" class="btn2_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_calcscorelst.saveExcel(file);
- ]]>
- </script>
- </button>
- -->
- <line id="line2" class="line_1" style="x1:846px; y1:70px; x2:1193px; y2:70px; "/>
- <datagrid id="grd_calcscoredetlst" nodeset="/root/main/calcscoredetlst/calcscore" caption="건진구분^패키지코드^검사코드^검사명^단가^적용일자^종료일자^최종수정자^최종수정일시^" colsep="^" colwidth="100, 100, 60, 100, 60, 88, 88, 80, 80" ellipsis="true" explorerbar="sortshow" rowheader="update" rowsep="|" tooltip="true" style="left:845px; top:75px; width:348px; height:668px; ">
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="testcd"/>
- <col ref="testnm" visibility="hidden"/>
- <col ref="testamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="oldfromdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="oldtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_calcscorelst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRcptSum(); //상세 패키지 단가 합계 출력
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_pkglst" nodeset="/root/main/pkgcdlst/item1" caption="순번^건진상세구분^코드구분^pkgcd^패키지코드^구코드^패키지명^패키지명(영문)^가격^수가코드^수가명칭^비자국가코드^남여구분^사용여부^미수분류^수익분류^패키지수익분류^비고^최종수정자^최종수정일시^검사설명^할인적용여부^인터넷 적용여부^유해인자^주기^조회순서^earnclscd^dietconstyn" colsep="^" colwidth="30, 85, 75, 55, 80, 100, 100, 100, 60, 70, 85, 90, 80, 100, 125, 100, 100, 100, 100, 100, 100, 90, 100, 100, 100, 60, 0, 0" ellipsis="true" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:75px; width:395px; height:668px; ">
- <col ref="seq"/>
- <col id="colflag" disabled="true" ref="healexamdetlflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="pkgflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pkgflag/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcdkey" visibility="hidden"/>
- <col ref="pkgcd"/>
- <col ref="oldordcd" visibility="hidden" style="left:342px; top:23px; width:100px; height:23px; "/>
- <col ref="pkgnm"/>
- <col ref="pkgengnm" visibility="hidden" style="left:545px; top:23px; width:100px; height:23px; "/>
- <col ref="pkgamt" format="#,###" style="text-align:right; "/>
- <col ref="calcscorcd"/>
- <col ref="calcscornm"/>
- <col disabled="true" ref="brthareacnts" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/brthareacnts/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="gndrflag" type="combo">
- <choices>
- <item>
- <label>공통</label>
- <value>C</value>
- </item>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" disabled="true" ref="useyn" type="checkbox"/>
- <col checkvalue="Y,N" disabled="true" ref="uncoflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/uncolst/A0067">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="earnclslst" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/earnclslst/A0435">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="pkgsumearncls" type="combo" max="2">
- <choices>
- <item>
- <label>가정의학과</label>
- <value>01</value>
- </item>
- <item>
- <label>소화기내과</label>
- <value>02</value>
- </item>
- <item>
- <label>청소년 소아과</label>
- <value>03</value>
- </item>
- <item>
- <label>소아치과</label>
- <value>04</value>
- </item>
- </choices>
- </col>
- <col ref="remcnts"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <col ref="pkgdesc"/>
- <col checkvalue="Y,N" disabled="true" ref="discyn" type="checkbox"/>
- <col checkvalue="Y,N" disabled="true" ref="inetyn" type="checkbox"/>
- <col ref="hrmfctr"/>
- <col ref="cycle"/>
- <col ref="prntseq"/>
- <col ref="earnclscd" visibility="hidden"/>
- <col ref="dietconstyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_pkglst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:754px; width:1195px; height:28px; ">
- <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:785px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("수가 정보를","Q002") == 6){
- var new_fromdd = ""; //신규_적용일자
- var new_todd = ""; //신규_종료일자
- var old_fromdd = ""; //과거_적용일자
- var change_oldtodd = ""; //기존자료_종료일자
- for(var i=1; i < grd_calcscorelst.rows-1; i++){
- //Integer :
- //- 0 : new
- //- 1 : insert
- //- 2 : update
- //- 3 : insert & new
- //- 4 : delete
- //- 5 : delete & insert
- //- 6 : delete & update
- //상태 - 입력, 수정, 삭제
- if(grd_calcscorelst.rowStatus(i) == 1 || grd_calcscorelst.rowStatus(i) == 2 || grd_calcscorelst.rowStatus(i) == 4){
- new_fromdd = grd_calcscorelst.valueMatrix( i , grd_calcscorelst.colRef("fromdd"));
- new_todd = grd_calcscorelst.valueMatrix( i , grd_calcscorelst.colRef("todd"));
- old_fromdd = grd_calcscorelst.valueMatrix( i , grd_calcscorelst.colRef("oldfromdd"));
-
- //상태 - 수정
- if(grd_calcscorelst.rowStatus(i) == 2){
- if(new_fromdd <= old_fromdd){
- messageBox("새로 적용할 일자는 원래적용일자보다 커야합니다. 적용일자를 확인해주십시요!", "E999");
- return;
- }
- if(new_fromdd >= new_todd ){
- messageBox("종료일자가 시작일자 보다 이전이거나 같습니다.", "E999");
- return;
- }
- if(new_todd < getDate()){
- messageBox("종료일자가 오늘일자 보다 이전이거나 같습니다.", "E999");
- return;
- }
- }
- //위에서 기존자료 종료일 받아서 새로운 수가에 시작일로 박아줌
- var thisYear = new_fromdd.substring(0, 4); //현재 입력된 연
- var thisMonth = new_fromdd.substring(4, 6); //현재 입력된 월
- var thisDay = new_fromdd.substring(6, 8); //현재 입력된 일
- var preDate = new Date(thisYear, (thisMonth - 1), thisDay);
- preDate.setHours(-24); //24시간 뒤인 다음날 날짜를 구한다.
- change_oldtodd = "";
- change_oldtodd += preDate.getYear();
-
- if((preDate.getMonth() + 1) < 10){
- change_oldtodd += "0" + (preDate.getMonth() + 1);
- }else {
- change_oldtodd += (preDate.getMonth() + 1);
- }
- if(preDate.getDate() < 10){
- change_oldtodd += "0" + preDate.getDate();
- }else{
- change_oldtodd += preDate.getDate();
- }
- model.setValue("/root/main/calcscorelst/calcscore[" + i + "]/changeoldtodd", change_oldtodd);
- }
- }
-
- //기존자료 종료처리, 새로운 자료 등록
- model.setValue("/root/savecalcscore/calcscore", grd_calcscorelst.getUpdateData());
- if(submit("TXAHB00311")){
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_detlsave" class="btn4_letter2" visibility="visible" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("이력 정보를","Q002") == 6){
- var grd_pkglstRow = grd_pkglst.row;
- var grd_calcscorelstRow = grd_calcscorelst.row;
- model.setValue("/root/savecalcscoredet/calcscore", grd_calcscoredetlst.getUpdateData());
-
- if(submit("TXAHB00312")){
- grd_pkglst.row = grd_pkglstRow;
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
-
- grd_calcscorelst.row = grd_calcscorelstRow;
- fGetCalcScoreDet(); //수가이력 조회
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|