123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616 |
- <?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>SMRWD00700_개인별통화내역</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <telempl>
- <telempllist/>
- </telempl>
- <telpaybase>
- <telpaybaselist/>
- </telpaybase>
- </list>
- </main>
- <send>
- <telempl>
- <instcd/>
- <teldd/>
- <appidflag/>
- <emplno/>
- <emplnm/>
- <unitcostbase/>
- <appdd/>
- </telempl>
- <save>
- <telempllist/>
- </save>
- </send>
- <temp>
- <checklist>
- <sumyn/>
- </checklist>
- </temp>
- <cost>
- <comcd>
- <comcodelist>
- <unitcostbase/>
- </comcodelist>
- </comcd>
- </cost>
- </root>
- </instance>
- <!--<bind id="mntamt" ref="/root/main/list/telempl/telempllist/telamt" calculate="../telmnt *../mntcost"/>-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_telempl);
- misfMsterDetailSet(grd_telempl,null, "TRRWD00701" ,"Y");
- misfComboComCdListMulti("Z0007,R0299,R0300,R0299","cmb_instcd,grd_telempl.appidflag,grd_telempl.telcostflag,cmb_appidflag");
- misfComboCopyItemSet(cmb_instcd, "", grd_telempl, "dutplceinst");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- model.refresh();
- cmb_appidflag.value="01";
- model.setValue(ipt_teldd.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMMDD"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- rwcGridUnitCostBase(grd_telempl,"unitcostbase",model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_teldd.attribute("ref")));
-
-
- ]]>
- </script>
- <submission id="TRRWD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/main/list/telempl"/>
- <submission id="TRRWD00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/main/list/telpaybase"/>
- <submission id="TXRWD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWD01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/temp"/>
- </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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paydedufactmngtweb/js/RWD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- model.removeNodeset("/root/main/list/telempl/telempllist");
- model.refresh();
- //model.setValue("/root/main/disadiffpayitem/notiym", curDate.getDateFormat('YYYYMM'));
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fDefaultSetting() {
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/teldd" , model.getValue(ipt_teldd.attribute("ref")));
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/appidflag" , model.getValue(cmb_appidflag.attribute("ref")));
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/unitcostbase" , "");
- model.refresh();
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_teldd.attribute("ref")).length== 0 )
- {
- messageBox("적용일자를 " ,"C002");
- model.setFocus("ipt_teldd");
- return false;
- }
-
- for(var row = grd_telempl.fixedRows ; row < grd_telempl.rows ; row++)
- {
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("teldd")).length == 0)
- {
- messageBox("통화일자를 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("teldd");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("appidflag")).length == 0)
- {
- messageBox("신청인구분을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("appidflag");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("emplno")).length == 0)
- {
- messageBox("사번을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("emplno");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telcostflag")).length == 0)
- {
- messageBox("통화료구분을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("telcostflag");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("unitcostbase")).length == 0)
- {
- messageBox("요금기준을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("unitcostbase");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telno")).length == 0)
- {
- messageBox("통화번호를 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("telno");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telmnt")).length == 0)
- {
- messageBox("통화분을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("telmnt");
- grd_telempl.editCell();
- return false;
- }
- if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telamt")).length == 0)
- {
- messageBox("통화금액을 " ,"C002");
- grd_telempl.row= row;
- grd_telempl.col= grd_telempl.colRef("telamt");
- grd_telempl.editCell();
- return false;
- }
- }
- return true;
- }
-
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_teldd.attribute("ref")).length== 0 )
- {
- messageBox("통화일자를 " ,"C002");
- model.setFocus("ipt_teldd");
- return false;
- }
- if(model.getValue(cmb_appidflag.attribute("ref")).length== 0 )
- {
- messageBox("신청인구분을 " ,"C002");
- model.setFocus("cmb_appidflag");
- return false;
- }
-
- return true;
- }
- function fTeleAmtSet(str){
-
-
-
- if (grd_telempl.col == grd_telempl.colRef("unitcostbase") || str =="A")
- {
- //요금기준선택시 선택한 요금기준에 해당하는 기준정보를 가져온다
- var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
-
- if(unitcostbase.length > 0)
- {
-
-
- grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"))="";
- grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telamt"))="";
-
- model.removenode("/root/main/list/telpaybase/telpaybaselist");
-
- model.makeNode("/root/main/list/telpaybase/telpaybaselist");
- model.setValue("/root/send/telempl/unitcostbase" , unitcostbase);
- model.setValue("/root/send/telempl/appdd" , model.getValue(ipt_teldd.attribute("ref")));
- submit("TRRWD00601");
-
- if(model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase").length > 0)
- {
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/mntcost", model.getValue("/root/main/list/telpaybase/telpaybaselist/mntcost"));
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/calmthd", model.getValue("/root/main/list/telpaybase/telpaybaselist/calmthd"));
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost", model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost"));
- if(model.getValue("/root/main/list/telpaybase/telpaybaselist/copyyn") == "Y")
- {
- var data = model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase");
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telarea",data);
- model.recalculate();
- }
-
- if(model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost").length > 0 &&
- model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost") > 0)
- {
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/discyn", "Y");
-
- }else{
-
- grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"))="N";
-
- }
-
-
- grd_telempl.row= grd_telempl.row;
- grd_telempl.col = grd_telempl.colRef("telmnt");
- model.refresh();
- grd_telempl.editCell();
- }
- }
- }
- else if (grd_telempl.col == grd_telempl.colRef("telmnt") || grd_telempl.col == grd_telempl.colRef("telamt") || grd_telempl.col == grd_telempl.colRef("mntcost") )
- {
- //bind id="telamt" ref="/root/main/list/telempl/telempllist/telamt" calculate="../telmnt *../mntcost"/>-->
- var telmnt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"));
- var mntcost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("mntcost"));
- var discyn = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"));
- var disccost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("disccost"));
- if(grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd")) == "01")
- {
- var telamt = telmnt * mntcost
-
- if(discyn =='Y')telamt = telmnt * disccost ;
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telamt", telamt);
- model.refresh();
- }
- }
- else if (grd_telempl.col == grd_telempl.colRef("discyn"))
- {
- var discyn = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"));
- var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
- var telmnt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"));
- var calmthd = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd"));
- var telamt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telamt"));
-
- model.removenode("/root/main/list/telpaybase/telpaybaselist");
- model.makeNode("/root/main/list/telpaybase/telpaybaselist");
- model.setValue("/root/send/telempl/unitcostbase" , unitcostbase);
- submit("TRRWD00601");
-
- if(model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase").length > 0)
- {
- var mntcost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("mntcost"));
- var disccost = model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost");
- if(calmthd == "01")
- {
- telamt = telmnt * mntcost;
-
- if(discyn == "Y")
- {
- if(disccost > 0)
- {
- telamt = telmnt * disccost;
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost",disccost);
- }else{
- telamt = telmnt * mntcost;
- grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"))="N";
- }
- }
- else
- {
- //model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost","0");
- }
- model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telamt",telamt);
- }
- else
- {
- if(discyn == "N")model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost","0");
- else model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost",disccost);
- }
- }
- model.refresh();
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별전화내역관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_telempl);
- if (updtdata != "") {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
- }
- if(fCheckRetrieveData() == false)return;
- model.resetInstanceNode("/root/main/list/telpaybase/telpaybaselist");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_telempl, "A");
-
- fDefaultSetting((grd_telempl.row - grd_telempl.fixedRows + 1));
- cmb_unitcostbase.selectedindex= 0;
- var unitcostbase = cmb_unitcostbase.value;
-
- grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("unitcostbase"))=unitcostbase;
- var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
- fTeleAmtSet("A");
-
- grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("telcostflag"))="01";
- grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("appidflag"))="01";
-
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1138px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_telempl, "D");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/telempl/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:785px; top:20px; width:40px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:7px; top:18px; width:93px; height:17px; ">통화일자:</caption>
- <datagrid id="grd_telempl" nodeset="/root/main/list/telempl/telempllist" caption="순번^통화일자^신청인구분^사번^성명^근무기관^근무지부서^통화료구분^요금기준^통화지역^통화번호^할인^통화분^할인단가^단가^금액" colsep="^" colwidth="56, 100, 67, 81, 76, 109, 113, 66, 74, 68, 85, 30, 49, 63, 53, 80, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1193px; height:660px; ">
- <col ref="numno" style="padding-left:5; "/>
- <col ref="teldd" type="inputdate"/>
- <col id="appidflag" ref="appidflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="emplno" type="inputbutton"/>
- <col ref="emplnm"/>
- <col id="dutplceinst" disabled="true" ref="dutplceinst" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dutplcedeptnm"/>
- <col id="telcostflag" ref="telcostflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col id="unitcostbase" ref="unitcostbase" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="telarea" type="input"/>
- <col ref="telno" type="input" maxlength="20"/>
- <col checkvalue="Y,N" ref="discyn" type="checkbox"/>
- <col ref="telmnt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="disccost" format="#,###" style="left:937px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="mntcost" format="#,###" style="text-align:right; "/>
- <col ref="telamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="teldd" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="calmthd" visibility="hidden"/>
- <col ref="retiredd" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*if(grd_telempl.col == grd_telempl.colRef("telno"))
- {
- var inputValue = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telno"));
-
- if(inputValue.length > 0)
- {
- var telpattern = /^0\d{1,2}\-\d{3,4}\-\d{4}$/ig;
- var hppattern = /^01[016789]\-\d{3,4}\-\d{4}$/ig;
-
- if( telpattern.exec(inputValue) == null &&
- hppattern.exec(inputValue) == null) {
- messageBox("전화[휴대폰]번호 형식이", "E004");
- grd_telempl.editCell();
- return;
- }
- }
- }
- else */
- fTeleAmtSet("C");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_telempl.colAttribute(grd_telempl.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm,dutplceinst,dutplcedeptcd,dutplcedeptnm,retiredd";
-
- rpbfOpenPopUpList("SPRPB00101", grd_telempl, recv_list,"","N");
-
- if (grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("retiredd")).length > 0 && grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("retiredd")) != "18000101") {
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/emplno" , "");
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/emplnm" , "");
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplcedeptcd" , "");
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplcedeptnm" , "");
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplceinst" , "");
- model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/retiredd" , "");
-
- messageBox("퇴직한 사원은 전화료 공제 처리를","E001");
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_telempl.colAttribute(grd_telempl.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm,instnm,dutplcedeptnm";
- misfValidationCheck("01-1", "", recv_list);
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if (grd_telempl.col == grd_telempl.colRef("telamt"))
- {
- var calmthd = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd"));
- if(calmthd.length> 0 && calmthd != "03")
- {
- messageBox("계산방법이 [사용자입력,실금액적용]인 경우만 금액을 조정할수 있습니다", "E");
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_teldd" ref="/root/send/telempl/teldd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:18px; width:91px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //rwcGridUnitCostBase(grd_telempl,"unitcostbase",model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_teldd.attribute("ref")));
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_appidflag" ref="/root/send/telempl/appidflag" class="combo_s_essential" appearance="minimal" style="left:284px; top:17px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:184px; top:18px; width:106px; height:17px; ">신청인구분:</caption>
- <button id="btn_emplno" class="icon_search" style="left:563px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:413px; top:18px; width:63px; height:17px; ">사번 :</caption>
- <input id="ipt_emplnos" ref="/root/send/telempl/emplno" class="input_default" style="left:474px; top:18px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/telempl/emplnm" class="input_default" style="left:580px; top:18px; width:141px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_unitcostbase" ref="/root/send/telempl/unitcostbase" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:860px; top:20px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cost/comcd/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_telempl);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- if(fCheckSaveData() == false)return;
- var retMes = messageBox("", "Q002");
- if ( retMes != 6) {
- return;
- }
- submit("TRRWD01202");
- var sumyn= model.getValue("/root/temp/checklist/sumyn");
-
- if(sumyn =='Y'){
- messageBox("집계가 완료된 자료는 저장 할 수 ","I004");
- return;
- }
-
- misfSave("TXRWD00701");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|