123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <ahbmcalcinfo>
- <item>
- <healexamflag/>
- <healexamdetlflag/>
- <todd/>
- <instcd/>
- <fromdd/>
- <basecalcscorappflag/>
- <addcalcscorappflag/>
- <corpactaddrate/>
- <corpactaddrate2/>
- </item>
- </ahbmcalcinfo>
- </main>
- <send>
- <save>
- <instcd/>
- <savecalc/>
- </save>
- <srch>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchcalcstat/>
- </srch>
- </send>
- <init>
- <baseinfo>
- <healexamflaglst>
- <cdid/>
- <cdnm/>
- </healexamflaglst>
- <healexamdetlflaglst>
- <item>
- <cdid/>
- <cdnm/>
- </item>
- </healexamdetlflaglst>
- <chedetlflaglst/>
- <ghedetlflaglst/>
- <srchhealexamflaglst>
- <item/>
- </srchhealexamflaglst>
- <srchhealexamflaglst>
- <item/>
- </srchhealexamflaglst>
- </baseinfo>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fGetBaseInfo();
- //fGetCalcList();
- ]]>
- </script>
- <submission id="TRAHA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/ahbmcalcinfo"/>
- <submission id="TXAHA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- <submission id="TRZBC00101"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
- /*
- * 공통코드에서 건진구분 가져오기
- */
- function fGetBaseInfo(){
- // 선택된화면의 건진구분자를 가져온다.
- var vHeFgLen = fGetHealExamFlag().length;
- var vHeFg = fGetHealExamFlag();
- var vHeFgCd = "";
- if( vHeFg.substr(0,1) == "C" ){
- vHeFgCd = "A0069";
- }
- else{
- vHeFgCd = "A0070";
- }
-
- zbcfGetCodeList( new Array("A0068" ,"A0068" ,"A0069","A0070")
- ,new Array("/root/init/baseinfo/healexamflaglst"
- ,"/root/init/baseinfo/srchhealexamflaglst"
- , "/root/init/baseinfo/chedetlflaglst"
- , "/root/init/baseinfo/ghedetlflaglst") );
-
- //건진구분 콤보에 전체가 들어가게 한다.
- addComboItem("cmb_healexamflag","전체","","above");
- copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item" , "/root/init/baseinfo/chedetlflaglst/A0069","replace");
- copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item" , "/root/init/baseinfo/ghedetlflaglst/A0070","after");
-
- submit("TRZBC00101");
-
- // 선택된 화면의 건진구분을 setting
- cmb_healexamflag.value = vHeFg.substr(0,1);
- cmb_healexamflag.dispatch("xforms-value-changed");
- }
-
-
- /**=================================================================================
- @desc : 선택된 건진 구분을 가져온다.
- *=================================================================================*/
- function fGetHealExamFg(){
- return model.getValue("/root/send/srchhealexamflag");
- }
-
- /**=================================================================================
- @desc : 건진상세구분바꾸기
- *=================================================================================*/
- function fSetHealExamDetlFlag(){
- var vItem = "";
- var vHealexamflag = cmb_healexamflag.value;
-
- //건진구분 선택시 건진상세분류가 '전체'로 값이 셋팅되게한다.
- cmb_srchhealexamdetlflag.value = "";
- if(vHealexamflag == "C"){
- copyNodesetType("/root/init/baseinfo/srchhealexamflaglst/item" , "/root/init/baseinfo/chedetlflaglst/A0069","replace");
- }
- else if(vHealexamflag == "G"){
- copyNodesetType("/root/init/baseinfo/srchhealexamflaglst/item" , "/root/init/baseinfo/ghedetlflaglst/A0070","replace");
- }else {
- model.resetInstanceNode(cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset")); //
- }
- }
- /**=================================================================================
- @desc : 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- *=================================================================================*/
- function fInit() {
- model.resetInstanceNode("/root/main/ahbmcalcinfo/item");
- model.resetInstanceNode("/root/send");
- model.refresh();
- }
-
- /**=================================================================================
- @desc : 부담율조회
- *=================================================================================*/
- function fGetCalcList(){
- var updtdata = getGridUpdateData(grd_ahbmcalclist);
- if(submit("TRAHA03501")) {
- }
- }
- /**=================================================================================
- @desc : 데이터체크
- *=================================================================================*/
- function fDatacheck(){
- var rsv_cnt = grd_ahbmcalclist.rows ;
- var sNode = grd_ahbmcalclist.nodeset+ "[";
- var scdid1 = "";
- var scdid2 = "";
- for( var i = 1; i < rsv_cnt ; i++){
- if( model.getValue(sNode + i + "]/healexamflag" ) == "") {
- alert("건진구분의 값이 비어있습니다.");
- return false;
- }
-
- // 건진구분과 건진상세분를 서로 비교하여 다르면 Error Check
- if (grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamflag")) !=
- grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamdetlflag")).substr(0,1)) {
- if (grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamflag")) == "C" ) {
- alert("종합건진의 건진상세분류만 가능합니다");
- } else {
- alert("일반건진의 건진상세분류만 가능합니다");
- }
- grd_ahbmcalclist.row = i;
- return false;
- }
-
- if( model.getValue(sNode + i + "]/todd" ) == "") {
- alert("종료일자의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/fromdd" ) == "") {
- alert("적용시작일의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/basecalcscorappflag" ) == "") {
- alert("기본검사적용수가의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/addcalcscorappflag" ) == "") {
- alert("추가검사적용수가의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/corpactaddrate" ) == "") {
- alert("행위가산율의 값이 비어있습니다.");
- return false;
- }
-
- //if( eval(model.getValue(sNode + i + "]/corpactaddrate" )) > 100) {
- //alert("행위가산율 값이 100위로 올라갈수 없습니다.");
- //return ;
- //}
- scdid1 = model.getValue("/root/main/ahbmcalcinfo/item[" + i + "]/healexamdetlflag");
- var k = i + 1;
- for (var j = k; j < grd_ahbmcalclist.rows; j++){
- scdid2 = model.getValue("/root/main/ahbmcalcinfo/item[" + j + "]/healexamdetlflag");
- if (i != j){
- if (scdid1 == scdid2){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
-
- /**=================================================================================
- @desc : 저장
- *=================================================================================*/
- function fSaveCalc() {
- if( messageBox("조합코드정보를","Q002") == 6){
-
- model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/save/savecalc", grd_ahbmcalclist.getUpdateData());
-
- if (submit("TXAHA03501")){
- fGetCalcList();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">유형별 계산기준</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:1195px; height:681px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1190px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCalcList();
- //alert(grd_ahbmcalclist.colflag.choices.itemset.attribute("nodeset"));
- /*if(fCheckKey())
- {
- return;
- }*/
-
-
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:10px; top:12px; width:87px; height:17px; ">건진구분 :</caption>
- <line id="line3" class="line_4" style="x1:1115px; y1:9px; x2:1115px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select id="checkbox1" ref="/root/send/srch/srchcalcstat" overflow="visible" appearance="full" cols="1" style="left:310px; top:12px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetCalcList();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="search_name" style="left:220px; top:12px; width:90px; height:17px; ">삭제포함 :</caption>
- <select1 id="cmb_healexamflag" ref="/root/send/srch/srchhealexamflag" appearance="minimal" style="left:100px; top:12px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflaglst/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetCalcList();
- //fSetHealExamDetlFlag();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; "/>
- <caption id="cap_titlist" class="tit_2" style="left:3px; top:65px; width:190px; height:14px; ">청구방법별 부담율</caption>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1081px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ahbmcalclist.addRow();
- var cur_date = getCurrentDate();
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", model.getValue("/root/send/srchhealexamflag"));
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamdetlflag", model.getValue("/root/send/srchhealexamdetlflag"));
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/fromdd", cur_date);
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/todd", "29991231");
- if (model.getValue("/root/send/srch/srchhealexamflag") == "") {
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", "C");
- } else {
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", model.getValue("/root/send/srch/srchhealexamflag"));
- }
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/corpactaddrate", "0");
- model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/corpactaddrate2", "0");
- //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 Detail 그리드에 저장한다.
- // grd_ahbmuncolist.valueMatrix(grd_ahbmuncolist.row, grd_ahbmuncolist.colRef("instcd")) = opt_instcd.value;
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1136px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_ahbmcalclist,true);
- //grd_ahbmuncolist.deleteRow(grd_ahbmuncolist.row);
- ]]>
- </script>
- </button>
- <datagrid id="grd_ahbmcalclist" nodeset="/root/main/ahbmcalcinfo/item" caption="건진구분^건진상세분류^종료일자^기관코드^적용시작일^기본검사적용수가^추가검사적용수가^행위가산율1^행위가산율2" colsep="^" colwidth="134, 171, 120, 2, 120, 120, 120, 120, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1190px; height:550px; ">
- <col disabled="true" ref="healexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/srchhealexamflaglst/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col id="colflag" disabled="true" ref="healexamdetlflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflaglst/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="todd" type="input" format="yyyy-mm-dd"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fromdd" type="input" format="yyyy-mm-dd"/>
- <col ref="basecalcscorappflag" type="input"/>
- <col ref="addcalcscorappflag" type="input"/>
- <col ref="corpactaddrate" type="input"/>
- <col ref="corpactaddrate2" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ahbmcalclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:645px; width:1195px; height:37px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fDatacheck() == false){
- return;
- }
- fSaveCalc();
-
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_ahbmcalclist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInit();
- fGetCalcList();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|