123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713 |
- <?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>SMRWD01300_월별주차료관리내역</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <carempl>
- <carempllist>
- <mngtinstcd/>
- </carempllist>
- </carempl>
- <carpaybase>
- <carpaybaselist/>
- </carpaybase>
- </list>
- </main>
- <send>
- <carempl>
- <ym/>
- <instcd/>
- <cargrde/>
- <emplno/>
- <emplnm/>
- <carno/>
- <stickerno1/>
- <stickerno2/>
- <yy/>
- <workgbn/>
- <preststatcd/>
- <deduyn/>
- <payappyn/>
- <stickerno/>
- </carempl>
- <carebase>
- <instcd/>
- <appdd/>
- <cargrde/>
- </carebase>
- <save>
- <carempllist/>
- </save>
- <payappsend>
- <instcd/>
- <payym/>
- <payitemcd/>
- </payappsend>
- <search>
- <name/>
- <searchflag>name</searchflag>
- <count>0</count>
- </search>
- </send>
- <temp>
- <checklist>
- <creatyn/>
- <sumyn/>
- <payappyn/>
- <bfcnt/>
- <afcnt/>
- </checklist>
- </temp>
- <init>
- <deduynlist>
- <label>공제제외여부</label>
- <value>Y</value>
- </deduynlist>
- <payappynlist>
- <label>전체</label>
- <value/>
- <label>반영</label>
- <value>Y</value>
- <label>미반영</label>
- <value>N</value>
- </payappynlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_carempl);
- misfMsterDetailSet(grd_carempl,null, "TRRWD01301" ,"Y");
-
- grd_carempl.selectionMode = "byrows";
- grd_carempl.focusColor = "#ccffcc";
-
- // misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
- misfComboComCdList('R0146', cmb_preststatcd,'Y');
-
- var curdate = getCurrentDate();
- model.setValue(ipt_ym.attribute("ref") , curdate.substr(0, 6));
- model.setValue(ipt_yy.attribute("ref") , curdate.substr(0, 4));
-
- model.setValue("/root/send/carempl/instcd" , getUserInfo("dutplceinstcd"));
- // rwcGridCarGradeBase(grd_carempl,"cargrde",getUserInfo("dutplceinstcd"),model.getValue(ipt_ym.attribute("ref")) + "1231", "A");
- rwcComboMngtinstBase(cmb_instcd,getUserInfo("dutplceinstcd"),model.getValue(ipt_yy.attribute("ref")));
- rwcComboCarGradeBase(cmb_cargrde,getUserInfo("dutplceinstcd"),model.getValue(ipt_yy.attribute("ref")) + "1231", "A", "Y");
-
- grd_carempl.dataHeight = 19;
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TXRWD01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRWD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/main/list/carempl"/>
- <submission id="TRRWD01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/temp"/>
- <submission id="TXRWD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/temp"/>
- <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/paytemp"/>
- <submission id="TXRWD01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" 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="../../../com/commonweb/js/utilHelper.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[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fDefaultSetting() {
- model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/mngtinstcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/yy" , model.getValue(ipt_ym.attribute("ref")));
- model.refresh();
- }
- function fCheckSaveData()
- {
- if(model.getValue(ipt_ym.attribute("ref")).length== 0 )
- {
- messageBox("적용일자를 " ,"C002");
- model.setFocus("ipt_ym");
- return false;
- }
-
- for(var row = grd_carempl.fixedRows ; row < grd_carempl.rows ; row++)
- {
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("emplno")).length == 0)
- {
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("rregno")).length == 0)
- {
- messageBox("사원번호 또는 주민번호[사원이 아닌경우]를 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("emplno");
- grd_carempl.editCell();
- return false;
- }
- }
-
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("emplno")).length == 0 &&
- grd_carempl.valueMatrix(row , grd_carempl.colRef("rregno")).length > 0 &&
- isResidentNo(grd_carempl.valueMatrix(row, grd_carempl.colRef("rregno"))) == false)
- {
- messageBox("유효한 주민등록번호가 아닙니다","I");
- grd_carempl.row= row;
- grd_carempl.col = grd_carempl.colRef("rregno");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("mngtinstcd")).length == 0)
- {
- messageBox("대상기관을 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("mngtinstcd");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("deptnm")).length == 0)
- {
- messageBox("부서명을 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("deptnm");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("jobposnm")).length == 0)
- {
- messageBox("직위를 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("jobposnm");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("stickerno")).length == 0)
- {
- messageBox("스티커번호를 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("stickerno");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("cargrde")).length == 0)
- {
- messageBox("등급을 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("cargrde");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carparkamt")).length == 0)
- {
- messageBox("주차요금을 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("carparkamt");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carno1")).length == 0)
- {
- messageBox("앞 차량번호를 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("carno1");
- grd_carempl.editCell();
- return false;
- }
- if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carno2")).length == 0)
- {
- messageBox("뒤 차량번호를 " ,"C002");
- grd_carempl.row= row;
- grd_carempl.col= grd_carempl.colRef("carno2");
- grd_carempl.editCell();
- return false;
- }
- }
- return true;
- }
-
- function fCheckRetrieveData()
- {
- if(model.getValue(ipt_ym.attribute("ref")).length== 0 )
- {
- messageBox("해당년도를 " ,"C002");
- model.setFocus("ipt_ym");
- return false;
- }
- return true;
- }
-
- //이름찾기
- function fSearch(pColRef, pValue, pErrorValue, pCount)
- {
- var endRow = grd_carempl.row;
- var endRows = grd_carempl.rows;
- var count = 0;
-
- var pStartRow = grd_carempl.fixedRows;
-
- if( (grd_carempl.row+1) == grd_carempl.rows)
- {
- pStartRow = grd_carempl.fixedRows;
- }else
- {
- pStartRow = grd_carempl.row+1;
- }
-
- for(var i = grd_carempl.fixedRows; i < grd_carempl.rows; i++)
- {
- if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef)))
- {
- count++;
- }
- }
-
- pCount.value = count;
-
- for(var i = pStartRow; i <= endRows; i++)
- {
- if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef)))
- {
- grd_carempl.select(i, 3) = true;
- grd_carempl.row = i;
- return;
- }
-
- if(i == grd_carempl.rows)
- {
- endRows = endRow;
- i=0;
- }else if(endRow == i)
- {
- messageBox("조회한 " + cmb_search.label + "[" + pErrorValue + "]" + "가 없습니다.", "");
- return;
- }
- }
- }
-
- ]]>
- </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:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1132px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_carempl);
- 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");
- grd_carempl.clearStatus();
-
- misfMsterDetailRetrieve();
-
- grd_carempl.subtotalPosition = "below";
- grd_carempl.multiTotals = true;
- grd_carempl.subtotal("clear", 0, 0);
- grd_carempl.subtotal("count",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("name"));
- grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("instsuppamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
- grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("carparkamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
- grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("exptamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
- grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("addamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
- grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("deduamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1124px; y1:20px; x2:1124px; y2:59px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1189px; y2:95px; "/>
- <select1 id="cmb_instcd" ref="/root/send/carempl/instcd" class="combo_default" appearance="minimal" style="left:313px; top:19px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rwcComboCarGradeBase(cmb_cargrde,cmb_instcd.value,model.getValue(ipt_yy.attribute("ref")) + "1231", "A","Y");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:10px; top:18px; width:93px; height:17px; ">해당 년월:</caption>
- <datagrid id="grd_carempl" nodeset="/root/main/list/carempl/carempllist" caption="순번^사번^성명^연락처^근무상태^발급일자^직위^급여기관^부서명^근무지부서명^스티커번호^차량종류^차량번호^차량번호^등급^등급^기관보조액^월기본
공제액^급여공제여부^제외액^추가액^공제대상액^제외
여부^반영
여부|순번^사번^성명^연락처^근무상태^발급일자^직위^급여기관^부서명^근무지부서명^스티커번호^차량종류^번호1^번호2^[A]^[B]^기관보조액^월기본
공제액^급여공제여부^제외액^추가액^공제대상액^제외
여부^반영
여부" colsep="^" colwidth="40, 58, 56, 78, 65, 71, 73, 87, 80, 81, 74, 55, 50, 50, 52, 50, 70, 60, 35, 54, 54, 72, 37, 37, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:100px; width:1190px; height:635px; ">
- <col ref="rownum"/>
- <col ref="emplno" type="output" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="mpphonno"/>
- <col ref="preststatnm" style="text-align:center; "/>
- <col ref="issdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="jobposnm" type="output"/>
- <col ref="instnm"/>
- <col ref="deptnm" type="output"/>
- <col ref="dutplcedeptnm"/>
- <col ref="stickerno" type="output" format="99-9999" maxlength="6"/>
- <col ref="carkind" type="output"/>
- <col ref="carno1" type="output"/>
- <col ref="carno2" type="output"/>
- <col disabled="true" ref="cargrde" style="text-align:center; "/>
- <col disabled="true" ref="cargrdedetl" style="text-align:center; "/>
- <col ref="instsuppamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="carparkamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="payyn" style="text-align:center; "/>
- <col ref="exptamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="addamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="deduamt" format="(-)#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="deduyn" type="checkbox"/>
- <col ref="payappyn" style="text-align:center; "/>
- <col ref="ym" visibility="hidden"/>
- <col ref="mngtinstcd" visibility="hidden"/>
- <col ref="rtndd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deduamt =0;
- var carparkamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("carparkamt")) ;
- var exptamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("exptamt")) ;
- var addamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("addamt")) ;
- var deduyn = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduyn")) ;
- if(deduyn =='Y'){
- grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("exptamt")) =0;
- grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("addamt"))=0;
- grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt")) =0;
- }else{
- deduamt =parseFloat(carparkamt)-parseFloat(exptamt)+parseFloat(addamt);
- grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt"))=deduamt;
- }
- if (grd_carempl.colAttribute(grd_carempl.col,"ref") == "exptamt" ||grd_carempl.colAttribute(grd_carempl.col,"ref") == "addamt" ) {
- if(deduyn =='Y'){
- deduamt='0';
- }else{
- deduamt =parseFloat(carparkamt)-parseFloat(exptamt)+parseFloat(addamt);
- }
- grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt"))=deduamt;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_carempl.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_ym" ref="/root/send/carempl/ym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:103px; top:19px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rwcComboCarGradeBase(cmb_cargrde,model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_yy.attribute("ref")) + "1231","A","Y");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cargrde" ref="/root/send/carempl/cargrde" class="combo_default" appearance="minimal" style="left:570px; top:45px; width:95px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:487px; top:46px; width:80px; height:17px; ">등 급:</caption>
- <button id="btn_emplno" class="icon_search" style="left:827px; top:45px; 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:690px; top:45px; width:63px; height:17px; ">사번 :</caption>
- <input id="ipt_emplnos" ref="/root/send/carempl/emplno" class="input_default" style="left:755px; top:45px; width:70px; 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/carempl/emplnm" class="input_default" style="left:847px; top:45px; width:100px; 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>
- <caption id="caption3" class="search_name" style="left:215px; top:20px; width:96px; height:17px; ">관 리 기 관:</caption>
- <caption id="caption4" class="search_name" style="left:10px; top:45px; width:88px; height:17px; ">차량번호2:</caption>
- <input id="ipt_carno" ref="/root/send/carempl/carno" maxlength="4" format="9999" style="left:103px; top:45px; width:92px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:215px; top:45px; width:104px; height:17px; ">스티커번호: :</caption>
- <input id="ipt_stickerno1" ref="/root/send/carempl/stickerno1" maxlength="2" format="99" style="left:312px; top:45px; width:45px; height:19px; "/>
- <input id="ipt_stickerno2" ref="/root/send/carempl/stickerno2" maxlength="4" format="9999" style="left:374px; top:45px; width:85px; height:19px; "/>
- <caption id="caption8" style="left:361px; top:46px; width:10px; height:20px; ">-</caption>
- <input id="ipt_yy" ref="/root/send/carempl/yy" visibility="hidden" style="left:465px; top:45px; width:20px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:487px; top:20px; width:81px; height:17px; ">근무상태:</caption>
- <select1 id="cmb_preststatcd" ref="/root/send/carempl/preststatcd" class="combo_s_essential" appearance="minimal" style="left:570px; top:19px; width:95px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select id="ckb_deduyn" ref="/root/send/carempl/deduyn" class="checkbox_search" overflow="visible" appearance="full" style="left:905px; top:20px; width:125px; height:16px; ">
- <choices>
- <itemset nodeset="/root/init/deduynlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select>
- <select1 id="cmb_payappyn" ref="root/send/carempl/payappyn" class="combo_s_essential" appearance="minimal" style="left:801px; top:19px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/payappynlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:690px; top:20px; width:114px; height:17px; ">급여반영여부:</caption>
- <button id="btn_exceldetail" class="btn2_letter4" style="left:1120px; top:74px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_carempl.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false");
- }
- ]]>
- </script>
- </button>
- <output id="opt_count" ref="/root/send/search/count" class="output_fix" style="left:810px; top:75px; width:35px; height:19px; color:#ff0000; text-align:center; "/>
- <select1 id="cmb_search" ref="/root/send/search/searchflag" appearance="minimal" style="left:608px; top:75px; width:82px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>이름</label>
- <value>name</value>
- </item>
- <item>
- <label>스티커번호</label>
- <value>stickerno</value>
- </item>
- <item>
- <label>차량번호</label>
- <value>carno2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(cmb_search.value == "stickerno")
- {
-
- ipt_search.attribute("format") = "99-9999999";
-
- }else if(cmb_search.value == "carno2")
- {
-
- ipt_search.attribute("format") = "9999999999";
-
- }else
- {
-
- ipt_search.attribute("format") = "";
-
- }
-
- ipt_search.value = "";
- opt_count.value = 0;
- model.setFocus("ipt_search");
-
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:527px; top:75px; width:85px; height:17px; ">Search :</caption>
- <input id="ipt_search" ref="/root/send/search/name" class="input_default" imemode="hangul" style="left:693px; top:75px; width:115px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13 || event.keyCode == 9 )
- {
- model.setFocus("grd_carempl");
- var pErrorValue = ipt_search.currentText;
- ipt_search.refresh();
- fSearch(cmb_search.value, ipt_search.value, pErrorValue, opt_count);
-
- model.setFocus("ipt_search");
- }
- ]]>
- </script>
- </input>
- </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:1135px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_carempl);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- model.setValue("/root/send/carempl/stickerno",'');
- submit("TRRWD01302");
- var payappyn =model.getValue("/root/temp/checklist/payappyn");
- if(payappyn =='Y'){
- messageBox("급여이체가 완료된 자료는 저장할 수 ","I004");
- return;
- }
- misfSave("TXRWD01302");
- //if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:772px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_carempl);
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_sumcancel" class="btn4_letter6" style="left:948px; top:3px; width:104px; height:22px; ">
- <caption>집계자료취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_telym"))return;
- var retMes = messageBox("집계자료를 취소하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- model.setValue("/root/send/carempl/stickerno",'');
- submit("TRRWD01302");
- var sumyn= model.getValue("/root/temp/checklist/sumyn");
- var payappyn =model.getValue("/root/temp/checklist/payappyn");
-
- if(sumyn !='Y'){
- messageBox("취소할 자료가 ","I004");
- return;
- }
- if(payappyn =='Y'){
- messageBox("급여이체가 완료된 자료는 취소 할수 ","I004");
- return;
- }
- model.setValue("/root/send/carempl/workgbn","D");
- misfSave("TXRWD01301");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_sumsave" class="btn4_letter6" style="left:842px; top:3px; width:104px; height:22px; ">
- <caption>집계자료생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_telym"))return;
- var retMes = messageBox("집계자료를 생성 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- model.setValue("/root/send/carempl/stickerno",'');
- submit("TRRWD01302");
- var creatyn=model.getValue("/root/temp/checklist/creatyn");
- var sumyn= model.getValue("/root/temp/checklist/sumyn");
- var payappyn =model.getValue("/root/temp/checklist/payappyn");
-
- if(creatyn!='Y'){
- messageBox("집계할 자료가 ","I004");
- return;
- }
- if(sumyn =='Y'){
- messageBox("집계이체 자료가 이미","I001");
- return;
- }
- model.setValue("/root/send/carempl/workgbn","C");
-
- misfSave("TXRWD01301");
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- messageBox("집계생성작업이","I001");
- misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </button>
- <button id="btn_paysave" class="btn4_letter4" style="left:1053px; top:3px; width:80px; height:22px; ">
- <caption>급여이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_ym"))return;
- var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- model.setValue("/root/send/carempl/stickerno",'');
- submit("TRRWD01302");
- var sumyn= model.getValue("/root/temp/checklist/sumyn");
- var payappyn =model.getValue("/root/temp/checklist/payappyn");
- var bfcnt =model.getValue("/root/temp/checklist/bfcnt");
- var afcnt =model.getValue("/root/temp/checklist/afcnt");
- if(sumyn !='Y'){
- messageBox("이체할 자료가 ","I004");
- return;
- }
- /* if(bfcnt != afcnt){
- messageBox("집계자료가 생성되지 않은 기관이 있어 급여이체를 할 수 ","I004");
- return;
- }*/
- if(payappyn =='Y'){
- messageBox("급여이체 자료가 이미","I001");
- return;
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- var payym = model.getValue("/root/send/carempl/ym");
- var payitemcd = "60070";
- model.setValue("/root/send/payappsend/instcd",cmb_instcd.value);
- model.setValue("/root/send/payappsend/payym",payym);
- model.setValue("/root/send/payappsend/payitemcd",payitemcd);
-
-
- misfSave("TXRWZ00303");
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- messageBox("급여이체작업이","I001");
- misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|