123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?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>
- <ahbmuncoinfo>
- <item>
- <uncocd/>
- <todd/>
- <instcd/>
- <unconm/>
- <fromdd/>
- <cmpyrate/>
- <insurate/>
- <cntrrate/>
- <ownrate/>
- </item>
- </ahbmuncoinfo>
- </main>
- <send>
- <save>
- <instcd/>
- <saveunco/>
- </save>
- <req>
- <data/>
- </req>
- <srchtodd/>
- <save2/>
- <srch>
- <srchuncocd/>
- <srchunconm/>
- <srchuncostat>Y</srchuncostat>
- </srch>
- </send>
- <init>
- </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="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- fGetUncocd();
- ]]>
- </script>
- <submission id="TXAHA03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- <submission id="TRAHA03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/ahbmuncoinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/ahbmuncoinfo/item");
- model.resetInstanceNode("/root/send");
- fGetUncocd();
- model.refresh();
- }
-
- function fGetUncocd(){
- var updtdata = getGridUpdateData(grd_ahbmuncolist);
- if(submit("TRAHA03601")) {
- }
- }
-
- function fDatacheck(){
- var rsv_cnt = grd_ahbmuncolist.rows ;
- var sNode = grd_ahbmuncolist.nodeset+ "[";
- var scdid1 = "";
- var scdid2 = "";
- for( var i = 1; i < rsv_cnt ; i++){
- if( model.getValue(sNode + i + "]/uncocd" ) == "") {
- alert("청구방법코드의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/todd" ) == "") {
- alert("종료일자의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/unconm" ) == "") {
- alert("청구방법명칭의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/fromdd" ) == "") {
- alert("적용일자의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/cmpyrate" ) == "") {
- alert("계약처부담율의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/insurate" ) == "") {
- alert("공단부담율의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/cntrrate" ) == "") {
- alert("보건소부담율의 값이 비어있습니다.");
- return false;
- }
- if( model.getValue(sNode + i + "]/ownrate" ) == "") {
- alert("개인부담율의 값이 비어있습니다.");
- return false;
- }
-
- if( eval(model.getValue(sNode + i + "]/cmpyrate" )) > 100) {
- alert("부담율 값이 100위로 올라갈수 없습니다.");
- return false;
- }
- if( eval(model.getValue(sNode + i + "]/insurate" )) > 100) {
- alert("부담율 값이 100위로 올라갈수 없습니다.");
- return false;
- }
- if( eval(model.getValue(sNode + i + "]/cntrrate" )) > 100) {
- alert("부담율 값이 100위로 올라갈수 없습니다.");
- return false;
- }
- if( eval(model.getValue(sNode + i + "]/ownrate" )) > 100) {
- alert("부담율 값이 100위로 올라갈수 없습니다.");
- return false;
- }
- if( eval(model.getValue(sNode + i + "]/cmpyrate" ))
- +eval(model.getValue(sNode + i + "]/insurate" ))
- +eval(model.getValue(sNode + i + "]/cntrrate" ))
- +eval(model.getValue(sNode + i + "]/ownrate" )) > 100) {
- alert("부담율 값의 합이 100위로 올라갈수 없습니다.");
- return false;
- }
-
- scdid1 = model.getValue("/root/main/ahbmuncoinfo/item[" + i + "]/uncocd");
- var k = i + 1;
- for (var j = k; j < grd_ahbmuncolist.rows; j++){
- scdid2 = model.getValue("/root/main/ahbmuncoinfo/item[" + j + "]/uncocd");
- if (i != j){
- if (scdid1 == scdid2){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
-
- function fSaveUncocd() {
- if( messageBox("조합코드정보를","Q002") == 6){
-
- model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/save/saveunco", grd_ahbmuncolist.getUpdateData());
-
- if (submit("TXAHA03601")){
- fGetUncocd();
- }
- }
- }
- ]]>
- </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[
- fGetUncocd();
- /*if(fCheckKey())
- {
- return;
- }*/
-
-
-
- ]]>
- </script>
- </button>
- <input id="ipt_srchunconm" ref="/root/send/srch/srchunconm" class="input_fix" appearance="input" style="left:420px; top:12px; width:135px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:10px; top:12px; width:112px; 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; "/>
- <caption id="caption1" class="search_name" style="left:305px; top:12px; width:112px; height:17px; ">청구방법명칭 :</caption>
- <input id="ipt_srchuncocd" ref="/root/send/srch/srchuncocd" class="input_fix" appearance="input" style="left:125px; top:12px; width:135px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/send/srch/srchuncostat" overflow="visible" appearance="full" cols="1" style="left:685px; 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[
- fGetUncocd();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="search_name" style="left:595px; top:12px; width:90px; height:17px; ">삭제포함 :</caption>
- </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_ahbmuncolist.addRow();
- var cur_date = getCurrentDate();
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/fromdd", cur_date);
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/todd", "29991231");
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/cmpyrate", "0");
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/insurate", "0");
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/cntrrate", "0");
- model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/ownrate", "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_ahbmuncolist,true);
- //grd_ahbmuncolist.deleteRow(grd_ahbmuncolist.row);
- ]]>
- </script>
- </button>
- <datagrid id="grd_ahbmuncolist" nodeset="/root/main/ahbmuncoinfo/item" caption="청구방법코드^종료일자^기관코드^청구방법명칭^적용일자^계약처부담율^공단부담율^보건소(국고)부담율^개인부담율" colsep="^" colwidth="100, 120, 3, 250, 120, 100, 100, 118, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1190px; height:590px; ">
- <col ref="uncocd" type="input"/>
- <col ref="todd" type="input" format="yyyy-mm-dd"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="unconm" type="input"/>
- <col ref="fromdd" type="input" format="yyyy-mm-dd"/>
- <col ref="cmpyrate" type="input"/>
- <col ref="insurate" type="input"/>
- <col ref="cntrrate" type="input"/>
- <col ref="ownrate" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ahbmuncolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:690px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1075px; 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;
- }
- fSaveUncocd();
- ]]>
- </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_ahbmuncolist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|