123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <?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>
- <userschemngtdeptlist/>
- </main>
- <send>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <emplno/>
- <emplnm/>
- <userschemngtdeptlist/>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRPD10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userschemngtdeptlist"/>
- <submission id="TXRPD10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/userschemngtdeptlist");
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_userschemngtdeptlist);
- misfMsterDetailSet(grd_userschemngtdeptlist, null, "TRRPD10301", "Y");
-
- //misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/deptcd", DUT_UNIT_CD);
- model.setValue("/root/send/deptnm", DUT_UNIT_NM);
- // model.setValue("/root/send/emplno", getUserInfo("userid"));
- // model.setValue("/root/send/emplnm", getUserInfo("usernm"));
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- }
- else
- {
- cmb_instcd.disabled = true;
- }
- btn_search.dispatch("DOMActivate");
-
- //화면 권한 설정
- btn_search.disabled = !(checkAuth("R"));
- btn_save.disabled = !(checkAuth("X"));
- model.refresh();
- }
-
- function fRetrieve()
- {
- }
-
- function fSave()
- {
- var updtdata = getGridUpdateData(grd_userschemngtdeptlist);
-
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var null_check1 = "";
- var null_chech2 = "";
- for(var i = 1 ; i < grd_userschemngtdeptlist.rows ; i++)
- {
- null_check1 = model.getValue(grd_userschemngtdeptlist.attribute("nodeset")+"[" + i + "]/emplno");
- null_check2 = model.getValue(grd_userschemngtdeptlist.attribute("nodeset")+"[" + i + "]/dutplcedeptcd");
- if(null_check1 =="") {
- messageBox("사원번호를","I003");
- return;
- } else if(null_check2 == "") {
- messageBox("관리부서를","I003");
- return;
- }
- }
- misfSave("TXRPD10301");
- }
-
- function fReset()
- {
- var updtdata = getGridUpdateData(grd_userschemngtdeptlist);
-
- if (updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if(ret != 6) // not OK
- {
- return;
- }
- }
- fInitialize();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:285px; top:9px; width:86px; height:17px; ">관리부서 :</caption>
- <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_search" navindex="2" maxlength="10" style="left:370px; top:7px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd" );
- if(ipt_deptcd.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_search" navindex="3" style="left:475px; top:7px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- if(ipt_deptnm.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:639px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="2" maxlength="10" style="left:724px; top:8px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- if(ipt_emplno.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="3" style="left:830px; top:8px; width:140px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- if(ipt_emplno.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="btn_userhelp" class="icon_search" style="left:810px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.refresh();
- if(ipt_emplno.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_depthelp" class="icon_search" style="left:455px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_emplno, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- if(ipt_emplno.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:8px; width:153px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:55px; width:170px; height:13px; ">사용자별 관리부서</caption>
- <button id="button4" class="btn2_letter3" style="left:1087px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //행추가를 누를시 근무년월을 입력한다.
- misfGridIUD(grd_userschemngtdeptlist, "A");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_userschemngtdeptlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_userschemngtdeptlist" nodeset="/root/main/userschemngtdeptlist" caption="기관코드^사원번호^성명^관리부서코드^관리부서명^정렬순서^비고^더미" colsep="^" colwidth="0, 120, 140, 120, 155, 100, 525, 100" explorerbar="sort" extendlastcol="scroll" frozencols="3" mergecellsfixedcols="never" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:70px; width:1194px; height:660px; ">
- <col ref="instcd"/>
- <col ref="emplno" type="inputbutton" _key="true"/>
- <col ref="emplnm" type="input" _key="true"/>
- <col ref="dutplcedeptcd" type="inputbutton" maxlength="10" _key="true"/>
- <col ref="dutplcedeptnm" type="input" _key="true"/>
- <col ref="prntseq" type="input"/>
- <col ref="cmt" type="input"/>
- <col ref="dummy" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("emplno")) //사원번호 버튼을 눌렀을 때
- {
- rpbfOpenPopUpList("SPRPB00101", grd_userschemngtdeptlist, "emplno,emplnm", "", "N");
- }
- else if (grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("dutplcedeptcd")) //관리부서 버튼을 눌렀을 때
- {
- misfOpenPopUpList("08", grd_userschemngtdeptlist, "", "dummy,dutplcedeptcd,dutplcedeptnm", cmb_instcd.value, "instcd");
- if(ipt_emplno.value != "" && ipt_emplno.value != "")
- {
- for(var i=1; i<grd_userschemngtdeptlist.rows; i++)
- {
- if(grd_userschemngtdeptlist.rowStatus(i) == 1 || grd_userschemngtdeptlist.rowStatus(i) == 3)
- {
- grd_userschemngtdeptlist.valueMatrix(i, grd_userschemngtdeptlist.colRef("emplno")) = ipt_emplno.value;
- grd_userschemngtdeptlist.valueMatrix(i, grd_userschemngtdeptlist.colRef("emplnm")) = ipt_emplnm.value;
- }
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("emplno"))
- {
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
- else if(grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("emplnm"))
- {
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- }
- else if (grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("dutplcedeptcd") ||
- grd_userschemngtdeptlist.col == grd_userschemngtdeptlist.colRef("dutplcedeptnm")) //관리부서코드 입력시
- {
- misfValidationCheck("02", "", "dutplcedeptcd,dutplcedeptnm" );
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- grd_userschemngtdeptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <output id="opt_msg" style="left:0px; top:725px; width:1194px; height:24px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|