123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <disccdspec>
- <disccdspeclist>
- </disccdspeclist>
- </disccdspec>
- <result/>
- <P0004list>
- <P0004>
- <cdnm/>
- <cdid/>
- </P0004>
- </P0004list>
- <PK027list/>
- <P6572list/>
- </main>
- <send>
- <srchcond>A</srchcond>
- <srchcnts/>
- <basedd/>
- <clsflag/>
- <discuncoflag/>
- <updatedata>
- <discuncocd/>
- <discunconm/>
- <medfeeapprate/>
- <earncls/>
- <calcscorcd/>
- <outpayapprate/>
- <outnopyapprate/>
- <outspecapprate/>
- <inpayapprate/>
- <innopyapprate/>
- <inspecapprate/>
- <basehealexamapprate/>
- <addhealexamapprate/>
- <fromdd/>
- <todd/>
- <discuncocls/>
- <autappyn/>
- <seqno/>
- <workflag/>
- <discuncoflag/>
- <prity/>
- <aftrcptyn/>
- <kioskpossyn/>
- <reductexptexptyn/>
- <realuseyn/>
- <orderbyseq/>
- <fmlychkyn/>
- <holyordflag/>
- <famyown/>
- <famymate/>
- <famyacdt/>
- <reference/>
- </updatedata>
- </send>
- <hidden>
- <desc>
- <discuncocd/>
- <discunconm/>
- <medfeeapprate/>
- <earncls/>
- <calcscorcd/>
- <outpayapprate/>
- <outnopyapprate/>
- <outspecapprate/>
- <inpayapprate/>
- <innopyapprate/>
- <inspecapprate/>
- <basehealexamapprate/>
- <addhealexamapprate/>
- <fromdd/>
- <todd/>
- <discuncocls/>
- <autappyn/>
- <seqno/>
- <discuncoflag/>
- <prity/>
- <aftrcptyn/>
- <kioskpossyn/>
- <reductexptexptyn/>
- <realuseyn/>
- <orderbyseq/>
- <fmlychkyn/>
- </desc>
- </hidden>
- <init>
- <earncls>
- <cdnm/>
- <cdid/>
- </earncls>
- </init>
- <temp>
- <calcscorcd/>
- </temp>
- </root>
- </instance>
- <submission id="TRPMB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/disccdspec"/>
- <submission id="TXPMB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMB00402" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- ipt_srchcnts.disabled = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //조회조건부,입력부,조회부
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/hidden/desc");
- model.removeNodeset("/root/main/disccdspec/disccdspeclist");
- model.setFocus("cmb_srchcond");
- model.setValue("/root/send/srchcond","A");
-
- zbcfGetCodeList( new Array("P0004"), new Array("/root/main/P0004list") );
- pamfGetCodeList( new Array("PK027", "P6572"), new Array("/root/main/PK027list", "/root/main/P6572list"));
- submit("TRPMB00402");
- model.refresh();
- }
-
- //입력창의 내용이 기존내용과 비교하여 변경된 내역이 있는지 체크한다.
- //return : 변경된 경우 True, 변경된 내역이 없을 경우 False
- function fCheckModify() {
-
- //입력창에 매핑된 send Node 와 변경 전 데이타인 hidden Node 를 비교한다.
- //변경되었으면, return true
- if ( (model.getValue("/root/hidden/desc/discuncocd") ) != ( model.getValue("/root/send/updatedata/discuncocd")) ) return true; //할인코드
- if ( (model.getValue("/root/hidden/desc/discunconm") ) != ( model.getValue("/root/send/updatedata/discunconm")) ) return true; //할인코드명
- if ( (model.getValue("/root/hidden/desc/medfeeapprate") ) != ( model.getValue("/root/send/updatedata/medfeeapprate")) ) return true; //할인코드명
- if ( (model.getValue("/root/hidden/desc/earncls") ) != ( model.getValue("/root/send/updatedata/earncls")) ) return true; //수익분류
- if ( (model.getValue("/root/hidden/desc/calcscorcd") ) != ( model.getValue("/root/send/updatedata/calcscorcd")) ) return true; //수가코드
- if ( (model.getValue("/root/hidden/desc/outpayapprate") ) != ( model.getValue("/root/send/updatedata/outpayapprate")) ) return true; //외래급여할인률
- if ( (model.getValue("/root/hidden/desc/outnopyapprate") ) != ( model.getValue("/root/send/updatedata/outnopyapprate")) ) return true; //외래비급여할인률
- if ( (model.getValue("/root/hidden/desc/outspecapprate") ) != ( model.getValue("/root/send/updatedata/outspecapprate")) ) return true; //외래특진료할인률
- if ( (model.getValue("/root/hidden/desc/inpayapprate") ) != ( model.getValue("/root/send/updatedata/inpayapprate")) ) return true; //입원급여할인률
- if ( (model.getValue("/root/hidden/desc/innopyapprate") ) != ( model.getValue("/root/send/updatedata/innopyapprate")) ) return true; //입원비급여할인률
- if ( (model.getValue("/root/hidden/desc/inspecapprate") ) != ( model.getValue("/root/send/updatedata/inspecapprate")) ) return true; //입원특진료할인률
- if ( (model.getValue("/root/hidden/desc/basehealexamapprate") ) != ( model.getValue("/root/send/updatedata/basehealexamapprate")) ) return true; //기본건진할인률
- if ( (model.getValue("/root/hidden/desc/addhealexamapprate") ) != ( model.getValue("/root/send/updatedata/addhealexamapprate")) ) return true; //추가건진할인률
- if ( (model.getValue("/root/hidden/desc/fromdd") ) != ( model.getValue("/root/send/updatedata/fromdd")) ) return true; //시작일자
- if ( (model.getValue("/root/hidden/desc/todd") ) != ( model.getValue("/root/send/updatedata/todd")) ) return true; //종료일자
- if ( (model.getValue("/root/hidden/desc/discuncocls") ) != ( model.getValue("/root/send/updatedata/discuncocls")) ) return true; //분류구분
- if ( (model.getValue("/root/hidden/desc/autappyn") ) != ( model.getValue("/root/send/updatedata/autappyn")) ) return true; //자동산정여부
- if ( (model.getValue("/root/hidden/desc/aftrcptyn") ) != ( model.getValue("/root/send/updatedata/aftrcptyn")) ) return true; //수납VIP
- if ( (model.getValue("/root/hidden/desc/kioskpossyn") ) != ( model.getValue("/root/send/updatedata/kioskpossyn")) ) return true; //무인수납여부
- if ( (model.getValue("/root/hidden/desc/realuseyn") ) != ( model.getValue("/root/send/updatedata/realuseyn")) ) return true; //자동산정여부
- if ( (model.getValue("/root/hidden/desc/orderbyseq") ) != ( model.getValue("/root/send/updatedata/orderbyseq")) ) return true; //자동산정여부
- if ( (model.getValue("/root/hidden/desc/reductexptexptyn") ) != ( model.getValue("/root/send/updatedata/reductexptexptyn")) ) return true; //감면예외의 예외
- if ( (model.getValue("/root/hidden/desc/prity") ) != ( model.getValue("/root/send/updatedata/prity")) ) return true; // 우선순위
- if ( (model.getValue("/root/hidden/desc/fmlychkyn") ) != ( model.getValue("/root/send/updatedata/fmlychkyn")) ) return true; // 감면정보 예외
- if ( (model.getValue("/root/hidden/desc/holyordflag") ) != ( model.getValue("/root/send/updatedata/holyordflag")) ) return true; // 직원구분
- if ( (model.getValue("/root/hidden/desc/famyown") ) != ( model.getValue("/root/send/updatedata/famyown")) ) return true; // 관계구분 본인
- if ( (model.getValue("/root/hidden/desc/famymate") ) != ( model.getValue("/root/send/updatedata/famymate")) ) return true; // 관계구분 배우자
- if ( (model.getValue("/root/hidden/desc/famyacdt") ) != ( model.getValue("/root/send/updatedata/famyacdt")) ) return true; // 관계구분 존비속
- if ( (model.getValue("/root/hidden/desc/reference") ) != ( model.getValue("/root/send/updatedata/reference")) ) return true; // 참고사항
- return false;
-
- }
-
- /**
- * 기준자료에 등록된 사용자라면 과거 자료의 참고사항에 입력 가능하도록 수정
- * 2015.01.05
- * 이정택
- */
- function fUserCheck(){
-
- var cnt = getNodeSetCnt("/root/main/P6572list/P6572[cdid='" + getUserInfo("userid") + "']");
- var vtodd = model.getValue("/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]/todd");
- if (vtodd == "") {
- vtodd = "99991231"
- }
-
- if(cnt==0){
- if (vtodd <= getCurrentDate()) {
- messageBox("이미 종료된 내역은 수정하실 수 없습니다.","I999","");
- return false;
- }else{
- return true;
- }
- }else{
- if (vtodd <= getCurrentDate()) {
- ipt_discuncocd.disabled=true;
- input1.disabled=true;
- ipt_fromdd.disabled=true;
- ipt_todd.disabled=true;
- radio1.disabled=true;
- ipt_discunconm.disabled=true;
- ipt_outpayapprate.disabled=true;
- ipt_outnopyapprate.disabled=true;
- ipt_outspecapprate.disabled=true;
- ipt_basehealexamapprate.disabled=true;
- ipt_addhealexamapprate.disabled=true;
- radio2.disabled=true;
- cmb_earncls.disabled=true;
- ipt_calcscorcd.disabled=true;
- ipt_inpayapprate.disabled=true;
- ipt_innopyapprate.disabled=true;
- ipt_inspecapprate.disabled=true;
- cmb_discuncocls.disabled=true;
- rdo_autappyn.disabled=true;
- checkbox1.disabled=true;
- input2.disabled=true;
- radio3.disabled=true;
- input3.disabled=true;
- radio4.disabled=true;
- radio5.disabled=true;
- checkbox2.disabled=true;
- checkbox3.disabled=true;
- checkbox4.disabled=true;
- return true;
- }else{
- ipt_discuncocd.disabled=false;
- input1.disabled=false;
- ipt_fromdd.disabled=false;
- ipt_todd.disabled=false;
- radio1.disabled=false;
- ipt_discunconm.disabled=false;
- ipt_outpayapprate.disabled=false;
- ipt_outnopyapprate.disabled=false;
- ipt_outspecapprate.disabled=false;
- ipt_basehealexamapprate.disabled=false;
- ipt_addhealexamapprate.disabled=false;
- radio2.disabled=false;
- cmb_earncls.disabled=false;
- ipt_calcscorcd.disabled=false;
- ipt_inpayapprate.disabled=false;
- ipt_innopyapprate.disabled=false;
- ipt_inspecapprate.disabled=false;
- cmb_discuncocls.disabled=false;
- rdo_autappyn.disabled=false;
- checkbox1.disabled=false;
- input2.disabled=false;
- radio3.disabled=false;
- input3.disabled=false;
- radio4.disabled=false;
- radio5.disabled=false;
- checkbox2.disabled=false;
- checkbox3.disabled=false;
- checkbox4.disabled=false;
- return true;
- }
- }
- }
-
- // 노드셋 갯수 카운트를 구함
- // 2015/01/05 이정택
- function getNodeSetCnt(path){
- var insXml = model.instances(0);
- var nodeList = insXml.selectNodes(path);
- return nodeList.length;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">할인코드관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <input id="ipt_outspecapprate" ref="/root/send/updatedata/outspecapprate" class="input_default" appearance="input" style="left:633px; top:124px; width:40px; height:19px; text-align:right; "/>
- <input id="ipt_outnopyapprate" ref="/root/send/updatedata/outnopyapprate" class="input_default" appearance="input" style="left:571px; top:124px; width:40px; height:19px; text-align:right; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:145px; x2:1194px; y2:145px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:18px; width:86px; height:17px; ">검색조건 :</caption>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption21" class="search_name" style="left:722px; top:8px; width:86px; height:17px; ">기준일자 :</caption>
- <caption id="caption17" class="search_name" style="left:722px; top:32px; width:86px; height:17px; ">분류구분 :</caption>
- <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:18px; width:155px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>코드</label>
- <value>C</value>
- </item>
- <item>
- <label>명칭</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (model.getValue("/root/send/srchcond") == "A") {
- ipt_srchcnts.disabled = true;
- } else {
- ipt_srchcnts.disabled = false;
- }
-
- ]]>
- </script>
- </select1>
- <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_s_essential" style="left:263px; top:18px; width:327px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- var vsrchcnts = ipt_srchcnts.currentText;
- model.setValue("/root/send/srchcnts", vsrchcnts);
-
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_basedd" ref="/root/send/basedd" class="input_search" inputtype="date" style="left:811px; top:8px; width:155px; height:19px; "/>
- <select1 id="cmb_clsflag" ref="/root/send/clsflag" class="combo_search" appearance="minimal" style="left:811px; top:32px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/P0004list/P0004">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //입력부, 조회부 초기화 후, 조회
- model.removeNodeset("/root/main/disccdspec/disccdspeclist");
- model.resetInstanceNode("/root/send/updatedata");
- model.resetInstanceNode("/root/hidden/desc");
-
- model.setValue("/root/send/discuncoflag","D");
- submit("TRPMB00401");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:79px; width:95px; height:14px; ">할인코드내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:99px; width:127px; height:23px; ">할인코드</caption>
- <caption id="caption8" class="cell_1" style="left:348px; top:123px; width:164px; height:23px; ">외래할인률(급여/비급/선택)</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:123px; width:127px; height:23px; ">할인코드명</caption>
- <caption id="caption5" class="cell_1" style="left:348px; top:147px; width:164px; height:23px; ">입원할인률(급여/비급/선택)</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:147px; width:127px; height:23px; ">수익분류/수가코드</caption>
- <caption id="caption10" class="cell_1" style="left:693px; top:99px; width:135px; height:23px; ">시작일자/종료일자</caption>
- <caption id="caption13" class="cell_1" style="left:693px; top:147px; width:135px; height:23px; ">분류구분/자동산정여부</caption>
- <caption id="caption14" class="cell_1" style="left:348px; top:99px; width:164px; height:23px; ">진찰료 할인률</caption>
- <caption id="caption20" class="tit_2" style="left:5px; top:234px; width:139px; height:13px; ">할인코드내역 리스트</caption>
- <button id="btn_excsave" class="btn2_letter2" style="left:1152px; top:230px; 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_disccdlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <caption id="caption27" class="cell_1" style="left:1030px; top:99px; width:69px; height:23px; ">무인수납</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:250px; x2:1194px; y2:250px; "/>
- <caption id="caption4" style="left:555px; top:124px; width:19px; height:19px; ">%</caption>
- <caption id="caption11" style="left:611px; top:124px; width:16px; height:19px; ">%</caption>
- <button id="button54" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 신규 입력을 위해 입력창을 초기화한다.
- // 입력창은 send Node와 매핑되어 있으므로, send Node를 초기화한다.
- // 입력전 데이터와 비교하기 위해, hidden Node 를 초기화한다.
- model.resetInstanceNode("/root/hidden/desc");
- model.resetInstanceNode("/root/send/updatedata");
-
- model.setValue("/root/send/updatedata/autappyn","N");
- model.setValue("/root/send/updatedata/aftrcptyn","N");
- model.setValue("/root/send/updatedata/kioskpossyn","N");
-
- //신규입력 작업구분 : I 세팅
- model.makeValue("/root/send/updatedata/workflag","I");
-
- model.setValue("/root/send/updatedata/fromdd", getCurrentDate());
- model.setValue("/root/send/updatedata/todd", "99991231");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption15" style="left:673px; top:124px; width:16px; height:19px; vertical-align:middle; ">%</caption>
- <caption id="caption18" style="left:611px; top:148px; width:16px; height:19px; vertical-align:middle; ">%</caption>
- <caption id="caption19" style="left:555px; top:148px; width:19px; height:19px; vertical-align:middle; ">%</caption>
- <caption id="caption22" style="left:673px; top:148px; width:16px; height:19px; vertical-align:middle; ">%</caption>
- <caption id="caption12" style="left:862px; top:124px; width:25px; height:19px; vertical-align:middle; ">%</caption>
- <caption id="caption16" class="cell_1" style="left:693px; top:123px; width:135px; height:23px; vertical-align:middle; ">건진할인률(기본/추가)</caption>
- <caption id="caption23" style="left:911px; top:124px; width:25px; height:19px; vertical-align:middle; ">%</caption>
- <input id="ipt_discuncocd" ref="/root/send/updatedata/discuncocd" class="input_default" maxlength="4" appearance="input" style="left:130px; top:100px; width:210px; height:19px; "/>
- <input id="ipt_discunconm" ref="/root/send/updatedata/discunconm" class="input_default" style="left:130px; top:124px; width:210px; height:19px; "/>
- <input id="ipt_calcscorcd" ref="/root/send/updatedata/calcscorcd" class="input_default" style="left:227px; top:148px; width:93px; height:19px; "/>
- <button id="btn_calcscorcd" class="icon_search" style="left:324px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("iParam_mother_view", "SMPMB00400_할인코드관리");
-
- //이동재 2009-02-19 OLD
- //open("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
-
- //이동재 2009-02-19 NEW
- modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
-
- //open("SMPIC00200", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
- //modal("../../../pam/calcscormngtweb/xrw/SMPIC00200", "1","150", "150", "SMPIC00200", "/root/source", "/root/send");
- //window.load ("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회.xrw","xrw","","");
-
- var cur_row = grd_disccdlist.row;
-
- //이동재 2009-02-19 NEW
- if(model.getvalue("/root/temp/calcscorcd") != ""){
- model.setvalue("/root/send/updatedata/calcscorcd", model.getValue ("/root/temp/calcscorcd"));
- model.setvalue("/root/main/disccdspec/disccdspeclist[" + cur_row + "]/calcscorcd", model.getValue ("/root/temp/calcscorcd"));
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_earncls" ref="/root/send/updatedata/earncls" class="combo_search" appearance="minimal" style="left:130px; top:148px; width:93px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/earncls">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/updatedata/fromdd" class="input_default" inputtype="date" appearance="input" style="left:831px; top:100px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/send/updatedata/fromdd");
- var todd = model.getValue("/root/send/updatedata/todd");
- var today = getCurrentDate();
- if (fromdd < today) {
- messageBox("시작일자를 금일 이전으로 설정할 수 없습니다.", "E");
- model.setValue("/root/send/updatedata/fromdd", today);
- model.refresh();
- } else if ( fromdd > todd ) {
- messageBox("시작일자를 종료일자 이후로 설정할 수 없습니다.", "E");
- model.setValue("/root/send/updatedata/fromdd", today);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/updatedata/todd" class="input_default" inputtype="date" appearance="input" style="left:934px; top:100px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/send/updatedata/fromdd");
- var todd = model.getValue("/root/send/updatedata/todd");
- var today = getCurrentDate();
- if (todd < today) {
- messageBox("종료일자를 금일 이전으로 설정할 수 없습니다.", "E");
- model.setValue("/root/send/updatedata/todd", "99991231");
- model.refresh();
- } else if ( fromdd > todd ) {
- messageBox("종료일자를 시작일자 이전으로 설정할 수 없습니다.", "E");
- model.setValue("/root/send/updatedata/todd", "99991231");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_outpayapprate" ref="/root/send/updatedata/outpayapprate" class="input_default" appearance="input" style="left:515px; top:124px; width:40px; height:19px; text-align:right; "/>
- <input id="ipt_inpayapprate" ref="/root/send/updatedata/inpayapprate" class="input_default" appearance="input" style="left:515px; top:148px; width:40px; height:19px; text-align:right; "/>
- <input id="ipt_innopyapprate" ref="/root/send/updatedata/innopyapprate" class="input_default" appearance="input" style="left:571px; top:148px; width:40px; height:19px; text-align:right; "/>
- <input id="ipt_inspecapprate" ref="/root/send/updatedata/inspecapprate" class="input_default" appearance="input" style="left:633px; top:148px; width:40px; height:19px; text-align:right; "/>
- <input id="ipt_basehealexamapprate" ref="/root/send/updatedata/basehealexamapprate" class="input_default" appearance="input" style="left:831px; top:124px; width:30px; height:19px; text-align:right; "/>
- <input id="ipt_addhealexamapprate" ref="/root/send/updatedata/addhealexamapprate" class="input_default" appearance="input" style="left:880px; top:124px; width:30px; height:19px; text-align:right; "/>
- <select1 id="cmb_discuncocls" ref="/root/send/updatedata/discuncocls" class="combo_default" appearance="minimal" style="left:831px; top:148px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/P0004list/P0004">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_disccdlist" nodeset="/root/main/disccdspec/disccdspeclist" caption="할인코드^할인명^수익분류^수가코드^진찰료할인률^외래할인률^외래할인률^외래할인률^입원할인률^입원할인률^입원할인률^기본(공단)
건진할인율^추가건진할인률^시작일자^종료일자^분류구분^직원구분^관계종류^관계종류^관계종류^우선순위^무인수납
여부^감면정보
예외^수납VIP^실사용
여부^표시
순서^참고사항^자동산정^수정일시^수정자^caption1|할인코드^할인명^수익분류^수가코드^진찰료할인률^급여^비급여^선택^급여^비급여^선택^기본(공단)
건진할인율^추가건진할인률^시작일자^종료일자^분류구분^직원구분^본인^배우자^존비속^우선순위^무인수납
여부^감면정보
예외^수납VIP^실사용
여부^표시
순서^참고사항^자동산정^수정일시^수정자^caption1" colsep="^" colwidth="57, 190, 57, 63, 47, 42, 42, 42, 42, 42, 42, 68, 57, 75, 75, 32, 60, 35, 45, 45, 35, 60, 60, 50, 50, 40, 261, 35, 128, 67, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:255px; width:1195px; height:485px; ">
- <col class="text_center" ref="discuncocd"/>
- <col class="text_left" ref="discunconm"/>
- <col class="text_center" ref="earncls"/>
- <col class="text_center" ref="calcscorcd"/>
- <col class="text_right" ref="medfeeapprate"/>
- <col class="text_right" ref="outpayapprate"/>
- <col class="text_right" ref="outnopyapprate"/>
- <col class="text_right" ref="outspecapprate"/>
- <col class="text_right" ref="inpayapprate"/>
- <col class="text_right" ref="innopyapprate"/>
- <col class="text_right" ref="inspecapprate"/>
- <col class="text_right" ref="basehealexamapprate"/>
- <col class="text_right" ref="addhealexamapprate"/>
- <col class="text_center" ref="fromdd" format="yyyy-mm-dd"/>
- <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
- <col class="text_center" disabled="true" ref="discuncocls" type="combo">
- <choices>
- <itemset nodeset="/root/main/P0004list/P0004">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="holyordflag" type="combo">
- <choices>
- <itemset nodeset="/root/main/PK027list/PK027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="famyown"/>
- <col ref="famymate"/>
- <col ref="famyacdt"/>
- <col ref="prity"/>
- <col ref="kioskpossyn"/>
- <col ref="fmlychkyn"/>
- <col ref="aftrcptyn"/>
- <col ref="realuseyn"/>
- <col ref="orderbyseq"/>
- <col ref="reference"/>
- <col class="text_center" ref="autappyn" visibility="hidden"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="left:1118px; top:25px; width:150px; height:25px; "/>
- <col class="text_center" ref="lastupdtrid"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //조회된 리스트를 선택 시, hidden Node 와 입력창(send Node)에 세팅한다.
- //입력창은 send Node 와 매핑된다.
- if ( grd_disccdlist.row-1 > 0 ) {
- model.resetInstanceNode("/root/send/updatedata");
- model.resetInstanceNode("/root/hidden/desc");
-
- if(!fUserCheck()){
- return;
- }
- model.copyNode("/root/send/updatedata","/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]");
- model.copyNode("/root/hidden/desc","/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]");
-
- //seqno 세팅
- model.makeValue("/root/send/updatedata/seqno",model.getValue("/root/hidden/desc/seqno"));
-
- //기존내역 수정, 작업구분 : U 세팅
- model.makeValue("/root/send/updatedata/workflag","U");
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_autappyn" ref="/root/send/updatedata/autappyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:934px; top:149px; width:88px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/updatedata/kioskpossyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:1103px; top:100px; width:88px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption24" style="left:920px; top:100px; width:21px; height:19px; vertical-align:middle; ">-</caption>
- <input id="input1" ref="/root/send/updatedata/medfeeapprate" class="input_default" appearance="input" style="left:515px; top:100px; width:40px; height:19px; text-align:right; "/>
- <caption id="caption25" style="left:555px; top:100px; width:19px; height:19px; ">%</caption>
- <input id="input2" ref="/root/send/updatedata/prity" class="input_default" appearance="input" style="left:130px; top:172px; width:93px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:1030px; top:123px; width:69px; height:23px; ">수납VIP</caption>
- <select1 id="radio2" ref="/root/send/updatedata/aftrcptyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:1103px; top:125px; width:88px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption29" class="cell_1" style="left:1030px; top:147px; width:96px; height:23px; ">감면예외의 예외</caption>
- <select id="checkbox1" ref="/root/send/updatedata/reductexptexptyn" overflow="visible" appearance="full" style="left:1145px; top:148px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>.</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/reductexptexptyn");
- model.setValue("/root/send/updatedata/reductexptexptyn","Y");
- checkbox1.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/reductexptexptyn");
- model.setValue("/root/send/updatedata/reductexptexptyn","");
- checkbox1.refresh();
- ]]>
- </script>
- </select>
- <line id="line3" class="line_2" style="x1:0px; y1:169px; x2:1194px; y2:169px; "/>
- <caption id="caption30" class="cell_1" style="left:0px; top:171px; width:127px; height:23px; ">우선순위</caption>
- <caption id="caption31" class="cell_1" style="left:348px; top:171px; width:164px; height:23px; ">실사용여부</caption>
- <caption id="caption32" class="cell_1" style="left:693px; top:171px; width:135px; height:23px; ">표시순서(정렬순서)</caption>
- <caption id="caption33" class="cell_1" style="left:1000px; top:171px; width:85px; height:23px; ">감면정보 예외</caption>
- <line id="line7" class="line_3" style="x1:1px; y1:221px; x2:1195px; y2:221px; "/>
- <select1 id="radio3" ref="/root/send/updatedata/realuseyn" appearance="full" cols="2" overflow="visible" style="left:515px; top:173px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/send/updatedata/orderbyseq" class="input_default" style="left:831px; top:172px; width:85px; height:19px; "/>
- <select1 id="radio4" ref="/root/send/updatedata/fmlychkyn" appearance="full" cols="2" overflow="visible" style="left:1095px; top:175px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption26" class="cell_1" style="left:0px; top:196px; width:60px; height:23px; ">직원구분</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:194px; x2:1194px; y2:194px; "/>
- <caption id="caption34" class="cell_1" style="left:693px; top:196px; width:135px; height:23px; ">관계구분</caption>
- <select1 id="radio5" ref="/root/send/updatedata/holyordflag" appearance="full" cols="4" overflow="visible" style="left:65px; top:200px; width:200px; height:15px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/PK027list/PK027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox2" ref="/root/send/updatedata/famyown" overflow="visible" appearance="full" style="left:835px; top:200px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>본인</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famyown");
- model.setValue("/root/send/updatedata/famyown", "Y");
- checkbox2.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famyown");
- model.setValue("/root/send/updatedata/famyown", "N");
- checkbox2.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/send/updatedata/famymate" overflow="visible" appearance="full" style="left:885px; top:200px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>배우자</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famymate");
- model.setValue("/root/send/updatedata/famymate", "Y");
- checkbox3.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famymate");
- model.setValue("/root/send/updatedata/famymate", "N");
- checkbox3.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="/root/send/updatedata/famyacdt" overflow="visible" appearance="full" style="left:945px; top:200px; width:65px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>존비속</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famyacdt");
- model.setValue("/root/send/updatedata/famyacdt", "Y");
- checkbox4.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.resetInstanceNode("/root/send/updatedata/famyacdt");
- model.setValue("/root/send/updatedata/famyacdt", "N");
- checkbox4.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption35" class="cell_1" style="left:348px; top:195px; width:57px; height:23px; ">참고사항</caption>
- <input id="input4" ref="/root/send/updatedata/reference" style="left:406px; top:197px; width:284px; height:19px; "/>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_update" class="btn4_letter2" style="left:1010px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //처음 세팅된 데이타와 비교하여 변경된 내역이 있는지 확인한다.
- // return 값이 false 이면, 변경된 내역이 없다.
- if ( fCheckModify() == false ) {
- messageBox("변경된 내역이 없습니다", "E999","");
- return;
- }
-
-
-
- //빈값 채움
- var vcalcscorcd = model.getValue("/root/send/updatedata/calcscorcd");
- var vearncls = model.getValue("/root/send/updatedata/earncls");
- var vreductexptexptyn = model.getValue("/root/send/updatedata/reductexptexptyn");
-
- if (vcalcscorcd == null || vcalcscorcd == "" ||vcalcscorcd== " " ) {
- model.setValue("/root/send/updatedata/calcscorcd","-");
- }
- if (vearncls == null || vearncls =="" || vearncls==" " ) {
- model.setValue("/root/send/updatedata/earncls","-");
- }
- if (vreductexptexptyn == null || vreductexptexptyn =="" || vreductexptexptyn==" " ) {
- model.setValue("/root/send/updatedata/reductexptexptyn","N");
- }
-
- //필수사항과 입력타입을 체크한다.
- if(isRequiredControls("ipt_discuncocd","ipt_discunconm","cmb_earncls","ipt_calcscorcd","ipt_outpayapprate","ipt_outnopyapprate","ipt_outspecapprate",
- "ipt_inpayapprate","ipt_innopyapprate","ipt_inspecapprate","ipt_basehealexamapprate","ipt_addhealexamapprate",
- "ipt_fromdd","cmb_discuncocls")) {
- //messageBox("모든 필수값이 입력이","I002");
- }
- else {
- return;
- }
-
- model.setValue("/root/send/updatedata/discuncoflag","D");
- //실사용여부 체크
- if( model.getValue("/root/send/updatedata/realuseyn") != 'N' ){
- model.setValue("/root/send/updatedata/realuseyn", "Y");
- }
- //할인코드 저장 처리
- if (submit("TXPMB00401") == true) {
- btn_search.dispatch("DOMActivate"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //삭제확인-선택하신 할인코드를 삭제하시겠습니까? Yes(6),No(7)
- if (messageBox("선택하신 할인코드를 ", "Q001") == '6') {
- //Yes 이면, 할인코드 삭제처리
-
- //삭제 작업구분 : D 세팅
- model.makeValue("/root/send/updatedata/workflag","D");
- //model.setValue("/root/send/updatedata/discuncoflag","D");
- if (submit("TXPMB00401") == true) {
- btn_search.dispatch("DOMActivate"); //삭제처리 후, 내역 재조회(조회 이벤트 호출)
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //화면 초기화
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|