123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>직급별 경조사 공제금액 내역 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <congradeduamtlist>
- <baseym/>
- <dutplceinst/>
- <jobposcd/>
- <deduamt/>
- <cmt/>
- <jobposnm/>
- </congradeduamtlist>
- </main>
- <send>
- <search>
- <dutplceinst/>
- <baseym/>
- <baseamtsaveym/>
- </search>
- <savelist>
- <congradeduamtlist/>
- </savelist>
- </send>
- <init>
- <combo1>
- <label>교수</label>
- <value>1782</value>
- <label>부교수</label>
- <value>1784</value>
- <label>조교수</label>
- <value>1786</value>
- <label>전임강사</label>
- <value>1788</value>
- <label>조교</label>
- <value>1790</value>
- </combo1>
- </init>
- <temp/>
- <dataynlist>
- <baseamtsaveyn/>
- </dataynlist>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_congradeduamtlist);
- misfMsterDetailSet(grd_congradeduamtlist,null,"TRRPA07001","Y");
- btn_save.disabled = !(checkAuth("X"));
- // 공통코드 바인딩 silver
- misfComboComCdList('Z0007', cmb_dutplceinst);
- // misfComboCopyItemSet(cmb_dutplceinst, "", grd_congradeduamtlist, "dutplceinst");
- var dutplceinst = '103';
- if (getUserInfo("dutplceinstcd") == "017") {
- dutplceinst = '017';
- }
- cmb_dutplceinst.value=dutplceinst;
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/send/search/baseym", curDate.getDateFormat('YYYYMM'));
- btn_search.dispatch("DOMActivate");
-
-
- ]]>
- </script>
- <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">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- grd_congradeduamtlist.refresh();
- model.removeNodeset("/root/main/congradeduamtlist");
- model.refresh();
-
- }
- function fsaveCheckValue(){
- var iInsCnt = 0;
- var iDupCnt = 0;
- var bDel = false;
- var icolidx=grd_congradeduamtlist.colRef("baseym");
- var icolidx1=grd_congradeduamtlist.colRef("dutplceinst");
- var icolidx2=grd_congradeduamtlist.colRef("jobposcd");
-
- for(var i=0; i<grd_congradeduamtlist.rows; i++)
- {
- if(grd_congradeduamtlist.rowStatus(i) == 1 || grd_congradeduamtlist.rowStatus(i) == 3)
- {
- iInsCnt = i;
- break;
- }
- }
- for(var i=iInsCnt; i<grd_congradeduamtlist.rows; i++)
- {
- for(var j=1; j<i; j++)
- {
- if(grd_congradeduamtlist.valueMatrix(i, icolidx) == grd_congradeduamtlist.valueMatrix(j, icolidx) && grd_congradeduamtlist.valueMatrix(i, icolidx1) == grd_congradeduamtlist.valueMatrix(j, icolidx1) && grd_congradeduamtlist.valueMatrix(i, icolidx2) == grd_congradeduamtlist.valueMatrix(j, icolidx2))
- {
- if(grd_congradeduamtlist.rowStatus(i) == 1 || grd_congradeduamtlist.rowStatus(i) == 3)
- { var ret= messageBox("중복된 행을 삭제", "Q001");
- if (ret != 6) { // not OK
- bDel = false;
- return false;
- }else{
- grd_congradeduamtlist.deleteItem(i);
- iDupCnt++;
- bDel = true;
- }
- }
- }
- }
-
- if(bDel)
- {
- bDel = false;
- i--;
- }
- }
-
- if(iDupCnt > 0)
- {
- messageBox("[ " + iDupCnt + " ]" + " 건의 중복된 행이 삭제", "I001");
- }
-
- return true;
- }
- ]]>
- </script>
- <submission id="TRRPA07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/congradeduamtlist"/>
- <submission id="TXRPA07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
- <submission id="TRRPA07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/dataynlist"/>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <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:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; "/>
- <caption id="cap_dutplceinst" class="search_name" style="left:215px; top:19px; width:90px; height:17px; ">기 관 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_baseym"))return;
- submit("TRRPA07001");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <line id="line207" class="line_1" style="x1:0; y1:69; x2:1195; y2:69px; "/>
- <datagrid id="grd_congradeduamtlist" nodeset="/root/main/congradeduamtlist" caption="기준년월^근무기관^직위코드^직위명^공제액^비고" colsep="^" colwidth="126, 195, 106, 136, 184, 362, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:670px; ">
- <col ref="baseym" format="yyyy-mm" _key="true" style="text-align:center; "/>
- <col ref="dutplceinstnm" style="text-align:center; "/>
- <col ref="jobposcd" type="inputbutton" _key="true"/>
- <col ref="jobposnm" _key="true"/>
- <col ref="deduamt" type="input" format="#,###" _key="true" style="text-align:right; padding-right:10; "/>
- <col imemode="hangul" ref="cmt" type="input" style="text-align:left; "/>
- <col ref="dutplceinst" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_congradeduamtlist.col == 3 ) {
- var recv_list = "jobposcd,jobposnm";
- misfOpenPopUpList("03", grd_congradeduamtlist,"R0062", recv_list) ;
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_dutplceinst" ref="/root/send/search/dutplceinst" class="combo_s_essential" disabled="true" appearance="minimal" style="left:304px; top:18px; width:190px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_congradeduamtlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_congradeduamtlist, "A");
- var cur_row=grd_congradeduamtlist.row;
- grd_congradeduamtlist.valueMatrix(cur_row, grd_congradeduamtlist.colRef("dutplceinst")) =cmb_dutplceinst.value;
- grd_congradeduamtlist.valueMatrix(cur_row, grd_congradeduamtlist.colRef("dutplceinstnm")) =cmb_dutplceinst.label;
- grd_congradeduamtlist.valueMatrix(cur_row, grd_congradeduamtlist.colRef("baseym")) =ipt_baseym.value;
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:3px; top:54px; width:183px; height:13px; ">직급별 경조사 공제금액관리</caption>
- <input id="ipt_baseym" ref="/root/send/search/baseym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100px; top:18px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_baseym" class="search_name" style="left:15px; top:19px; width:91px; height:17px; ">기준년월 :</caption>
- <input id="input1" ref="/root/send/search/baseamtsaveym" visibility="hidden" style="left:615px; top:20px; width:125px; height:15px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congradeduamtlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- if(!checkKeyColumn("grd_congradeduamtlist"))return;
- if(!fsaveCheckValue())return;
- for(i=grd_congradeduamtlist.fixedRows; i < grd_congradeduamtlist.rows;i++){
- if(updtdata !=""){
- var baseamtsaveym=grd_congradeduamtlist.valueMatrix(i,grd_congradeduamtlist.colRef("baseym"));
- model.setValue("/root/send/search/baseamtsaveym",baseamtsaveym);
- submit("TRRPA07102");
- }
- }
-
- var baseamtsaveyn=model.getValue("/root/dataynlist/baseamtsaveyn");
- if(baseamtsaveyn=='Y'){
- messageBox("공제 생성이 완료되어 저장","E001");
- return;
- }
- misfSave("TXRPA07001");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_congradeduamtlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|