123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/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>
- <bord>
- <bordlist>
- <instcd/>
- <bordcd/>
- <bordnm/>
- <aprvyn/>
- </bordlist>
- </bord>
- <bordmb>
- <bordmblist>
- <bordinstcd/>
- <bordcd/>
- <emplno/>
- <emplnm/>
- <instcd/>
- <instnm/>
- <unitcd/>
- <unitnm/>
- <jobposcd/>
- <jobposnm/>
- <currentinstnm/>
- <preststatnm/>
- <prfshipnm/>
- <bordrespcd/>
- <essnyn/>
- <appdd/>
- <todd/>
- <cmt/>
- </bordmblist>
- </bordmb>
- </main>
- <send>
- <instcd/>
- <selectedbord>
- <selectedinstcd/>
- <selectedbordcd/>
- </selectedbord>
- </send>
- <init>
- <essnynvalue>
- <label>공 인</label>
- <value>Y</value>
- <label>비공인</label>
- <value>N</value>
- </essnynvalue>
- <bordrespcdvalue>
- <label>위원장</label>
- <value>1</value>
- <label>간사</label>
- <value>2</value>
- <label>위원겸 간사</label>
- <value>3</value>
- <label>위원</label>
- <value>4</value>
- </bordrespcdvalue>
- <aprvynflag>
- <label>공 인</label>
- <value>Y</value>
- <label>비공인</label>
- <value>N</value>
- </aprvynflag>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.refresh();
- ]]>
- </script>
- <submission id="TRRWB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bord"/>
- <submission id="TRRWB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selectedbord" resultref="/root/main/bordmb"/>
- <submission id="TXRWB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/bordmb/bordmblist" 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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_bordlist);
- misfGridInit(grd_bordmblist);
-
- misfMsterDetailSet(grd_bordlist, null, "TRRWB00201" , "Y");
- misfMsterDetailSet(grd_bordmblist,grd_bordlist, "TRRWB00202" ,"Y");
- }
-
- function fCheckSaveData()
- {
- for(row = grd_bordmblist.fixedRows ; row < grd_bordmblist.rows ; row++)
- {
- if(grd_bordmblist.valueMatrix(row , grd_bordmblist.colRef("emplnm")).length == 0)
- {
- messageBox("사원번호를 " ,"C001");
- grd_bordmblist.row= row ;
- grd_bordmblist.col= grd_bordmblist.colRef("emplno");
- return false;
- }
-
- if(grd_bordmblist.valueMatrix(row , grd_bordmblist.colRef("appdd")).length == 0)
- {
- messageBox("위촉일을 " ,"C001");
- grd_bordmblist.row= row ;
- grd_bordmblist.col= grd_bordmblist.colRef("appdd");
- return false;
- }
- }
- }
-
- function OverLappingCheck()
- {
- var checkemplno = grd_bordmblist.valueMatrix(grd_bordmblist.row, grd_bordmblist.colRef("emplno"));
- var grd_bordmblist_row = grd_bordmblist.row;
- var OverLappingCount;
- OverLappingCount = 0;
- if(checkemplno != "")
- {
- for( row = grd_bordmblist.fixedRows ; row < grd_bordmblist.rows - grd_bordmblist.fixedRows + 1 ; row++)
- {
- if(grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("emplno")) == checkemplno)
- {
- OverLappingCount +=1;
- if(OverLappingCount == 2)
- {
- messageBox("사원번호가 " ,"E006");
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("emplno"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("emplnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("instcd"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("instnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("unitcd"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("unitnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("jobposcd"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("jobposnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("currentinstnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("preststatnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("prfshipnm"))="";
- grd_bordmblist.valueMatrix(grd_bordmblist_row,grd_bordmblist.colRef("appdd"))="";
- grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("essnyn")) = 'N';
- grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("bordrespcd")) = '4';
- grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("todd")) = '99991231';
- grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("cmt")) = "";
-
- grd_bordmblist.col= grd_bordmblist.colRef("bordcd");
- grd_bordmblist.row= grd_bordmblist_row;
- return false;
- }
- }
- }
- }
- return true;
-
- }
-
-
- function fsearch()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:206px; height:14px; ">위원회별 위원 세부 내역</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:59px; width:157px; height:13px; ">기관별 위원회</caption>
- <line id="line1" class="line_1" style="x1:241px; y1:74px; x2:1194px; y2:74px; "/>
- <datagrid id="grd_bordmblist" nodeset="/root/main/bordmb/bordmblist" scroll="horizontal" allowselection="true" caption="기관코드^위원회코드^사원번호^성명^가입시 기관 코드^가입시 기관^근무지부서코드^근무지부서명^가입시 직위코드^ 가입시 직위^현재 기관^근무상태^직원구분^위원회 직책^당연직 여부^위촉일^종료일자^비고" colsep="^" colwidth="100, 100, 80, 80, 100, 150, 100, 120, 100, 100, 80, 80, 110, 110, 80, 100, 100, 300" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:245px; top:80px; width:950px; height:663px; ">
- <col ref="bordinstcd" visibility="hidden" style="left:20px; top:23px; width:100px; height:23px; "/>
- <col ref="bordcd" visibility="hidden"/>
- <col disabled="true" imemode="disabled" ref="emplno" type="inputbutton" format="9999999999"/>
- <col ref="emplnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="instnm"/>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="unitnm"/>
- <col ref="jobposcd" visibility="hidden"/>
- <col ref="jobposnm"/>
- <col ref="currentinstnm"/>
- <col ref="preststatnm"/>
- <col ref="prfshipnm"/>
- <col ref="bordrespcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/bordrespcdvalue">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="essnyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/essnynvalue">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="appdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_bordmblist.colAttribute(grd_bordmblist.col,"ref") == "emplno" && OverLappingCheck() == true || grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("instnm")) == "")
- {
- var recv_list = "emplno,emplnm,instcd,instnm,jobposcd,jobposnm,unitcd,unitnm,preststatnm,prfshipnm";
- rpbfOpenPopUpList("SPRPB00101", grd_bordmblist, recv_list,"","N");
- model.setValue("/root/main/bordmb/bordmblist[" + grd_bordmblist.row + "]/currentinstnm", grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("instnm")));
- OverLappingCheck();
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(OverLappingCheck() == true)
- {
- if (grd_bordmblist.colAttribute(grd_bordmblist.col,"ref") == "emplno" ) { //계산기준코드
- var precv_list = "emplno,emplnm,instcd,instnm,jobposcd,jobposnm,unitcd,unitnm,preststatnm,prfshipnm";
-
- rpbfValidationCheck("EMPLNO", precv_list);
-
- model.setValue("/root/main/bordmb/bordmblist[" + grd_bordmblist.row + "]/currentinstnm", grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("instnm")));
- if(grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("emplnm")) == "")
- {
- grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("emplno"))="";
- grd_bordmblist.col= grd_bordmblist.colRef("bordcd");
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete" class="btn2_letter3" style="left:1142px; top:51px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_bordmblist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1082px; top:51px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_instcd.value == "") {
- messageBox("기관코드를","C002");
- }
- else if(grd_bordlist.rows < 2)
- {
- messageBox("위원회를","C002");
- }
- else
- {
- grd_bordmblist.addRow();
- var grd_bordlist_row = grd_bordlist.row;
- var grd_bordmblist_row = grd_bordmblist.row;
- //행추가를 누를시 상위코드의 값을 자동으로 저장한다.
- model.setValue("/root/main/bordmb/bordmblist[" + (grd_bordmblist.row - grd_bordmblist.fixedRows + 1) + "]/bordinstcd", grd_bordlist.valueMatrix(grd_bordlist_row, grd_bordlist.colRef("instcd")));
- model.setValue("/root/main/bordmb/bordmblist[" + (grd_bordmblist.row - grd_bordmblist.fixedRows + 1) + "]/bordcd", grd_bordlist.valueMatrix(grd_bordlist_row, grd_bordlist.colRef("bordcd")));
- grd_bordmblist.valueMatrix(grd_bordmblist.row, 17)="99991231";
- grd_bordmblist.valueMatrix(grd_bordmblist_row, grd_bordmblist.colRef("bordrespcd"))="4";
- grd_bordmblist.valueMatrix(grd_bordmblist_row, grd_bordmblist.colRef("essnyn"))="N";
- grd_bordmblist.col= grd_bordmblist.colRef("emplno");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:244px; top:59px; width:186px; height:13px; ">위원회별 위원 세부내역</caption>
- <datagrid id="grd_bordlist" nodeset="/root/main/bord/bordlist" allowselection="true" caption="기간코드^위원회코드^위원회^공인여부" colsep="^" colwidth="50, 50, 150, 80" dataheight="35" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:5px; top:80px; width:239px; height:663px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="bordcd" visibility="hidden"/>
- <col ref="bordnm"/>
- <col disabled="true" ref="aprvyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/essnynvalue">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfGridInit(grd_bordmblist);
- var grd_bordlist_row = grd_bordlist.row;
- model.setValue("/root/send/selectedbord/selectedinstcd", grd_bordlist.valueMatrix(grd_bordlist_row,0));
- model.setValue("/root/send/selectedbord/selectedbordcd", grd_bordlist.valueMatrix(grd_bordlist_row,1));
- submit("TRRWB00202");
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:5px; y1:74px; x2:245px; y2:74px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:7px; top:18px; width:61px; height:17px; ">기관:</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:68px; top:17px; width:202px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fsearch();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line5" class="line_6" style="x1:0px; y1:25; x2:1195px; 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[
- if(fCheckSaveData() == false)return;
- /*
- alert(grd_bordmblist.rows);
- if(grd_bordmblist.rows > 1)
- {
- for(row = 1 ; row <= grd_bordmblist.rows ; row++)
- {
- alert(grd_bordmblist.valueMatrix(row, grd_bordmblist.colRef("emplno")));
- if(grd_bordmblist.rowStatus(row) == 1 || grd_bordmblist.rowStatus(row) == 2 || grd_bordmblist.rowStatus(row) == 3)
- {
- grd_bordmblist.row = row;
- grd_bordmblist.col = grd_bordmblist.colRef("emplno");
- var precv_list = "emplno,emplnm,instcd,instnm,jobposcd,jobposnm,unitcd,unitnm,preststatnm,prfshipnm";
-
- rpbfValidationCheck("EMPLNO", precv_list);
-
- model.setValue("/root/main/bordmb/bordmblist[" + grd_bordmblist.row + "]/currentinstnm", grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("instnm")));
- if(grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("emplnm")) == "")
- {
- grd_bordmblist.valueMatrix(grd_bordmblist.row,grd_bordmblist.colRef("emplno"))="";
- grd_bordmblist.col= grd_bordmblist.colRef("bordcd");
- }
- }
-
- }
- }
- */
- if(OverLappingCheck() == true)
- {
- misfSave("TXRWB00201");
- }
- submit("TRRWB00202");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:56px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsearch();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|