123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?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>
- <dutyworkapplist/>
- </main>
- <send>
- <instcd/>
- <dutym/>
- <emplno/>
- <emplnm/>
- <dutyworkapplist/>
- <dutunitcd/>
- <dutunitnm/>
- <dutym_s/>
- <popworkgbn/>
- <dutplceinstcd/>
- <instnm/>
- <instcd/>
- <dutplceinstnm/>
- <dutplceinstcd/>
- <deptcd/>
- <deptnm/>
- <dutdeptcd/>
- <dutdeptnm/>
- </send>
- <init>
- <combo1>
- <label>주간</label>
- <value>D</value>
- <label>야간</label>
- <value>N</value>
- </combo1>
- <combo2>
- <label>예정</label>
- <value>1</value>
- <label>실시</label>
- <value>2</value>
- <label>확정</label>
- <value>3</value>
- </combo2>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <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/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRPD03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutyworkapplist"/>
- <submission id="TXRPD03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="root/temp/douchecklist"/>
- <submission id="TXRPD03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRPD03603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/dutyworkapplist");
- model.resetInstanceNode("/root/send");
-
- misfGridInit(grd_dutyworkapplist);
- misfMsterDetailSet(grd_dutyworkapplist,null,"TRRPD03601","Y");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- model.setValue("/root/send/dutym", getCurrentDate().substr(0, 6));
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+getCurrentDate().substr(6, 2),"","N");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- //model.setValue("/root/send/dutunitcd", DUT_UNIT_CD);
- //model.setValue("/root/send/dutunitnm", DUT_UNIT_NM);
- //model.setValue("/root/send/emplno", getUserInfo("userid"));
- //model.setValue("/root/send/emplnm", getUserInfo("usernm"));
- model.setValue("/root/send/dutplceinstcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/popworkgbn", "SMRPD03600");
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- }
- else
- {
- cmb_instcd.disabled = true;
- }
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
-
- function fSendSms()
- {
- var iCheckedCnt = 0;
- for(var i=1; i<grd_dutyworkapplist.rows; i++)
- {
- if(grd_dutyworkapplist.valueMatrix(i, grd_dutyworkapplist.colRef("smsyn")) == "Y")
- {
- iCheckedCnt++;
- }
- }
-
- if(iCheckedCnt == 0)
- {
- messageBox("SMS 보낼 사용자를 선택하십시오", "I999");
- return;
- }
- else
- {
- var dlgResult = messageBox("선택하신 당직일자의 근무자에게 SMS를 발송하겠습니까?", "Q999");
-
- if(dlgResult == 6)
- {
- misfSave("TXRPD03602");
- }
- }
- }
- ]]>
- </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:0; y1:68px; x2:1194; y2:68px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="caption5" class="search_name" style="left:470px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
- <button id="button3" class="icon_search" style="left:640px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
- //fDutCdRetreive();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:270px; top:9px; width:86px; height:17px; ">근 무 월 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="2" style="left:555px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="3" style="left:661px; top:8px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplnm.value == ipt_emplnm.currentText) return;
- ipt_emplnm.value = ipt_emplnm.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" navindex="3" visibility="hidden" style="left:930px; top:8px; width:19px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_dutym.value=="")
- {
- messageBox("근무월은","I003");
- return;
- }
- submit("TRRPD03601");
-
- var mmngdtsumyn = model.getValue(grd_dutyworkapplist.attribute("nodeset") + "[1]/mmngdtsumyn");
- if(mmngdtsumyn =='Y')
- {
- btn_save.disabled=true;
- }
- ]]>
- </script>
- </button>
- <input id="ipt_dutym" ref="/root/send/dutym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:355px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/dutunitcd" class="input_search" navindex="2" visibility="hidden" style="left:850px; top:8px; width:19px; height:19px; "/>
- <input id="ipt_dutdeptnm" ref="/root/send/dutunitnm" class="input_search" navindex="2" visibility="hidden" style="left:870px; top:8px; width:19px; height:19px; "/>
- <input id="ipt_popworkgbn" ref="/root/send/popworkgbn" class="input_search" navindex="2" visibility="hidden" style="left:890px; top:8px; width:19px; height:19px; "/>
- <input id="ipt_dutplceinstcd" ref="/root/send/dutplceinstcd" class="input_search" navindex="2" visibility="hidden" style="left:910px; top:8px; width:19px; height:19px; "/>
- <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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/dutplceinstcd", model.getValue("/root/send/instcd"));
- ]]>
- </script>
- </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:54px; width:170px; height:14px; ">행정당직근무내역</caption>
- <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_dutyworkapplist, "A");
-
- var cur_row=grd_dutyworkapplist.row;
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("appscheexecflag")) = "3";
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("adminngdtdnflag")) = "N";
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("dutplceinstcd")) = ipt_dutplceinstcd.value;
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("dutplcedeptcd")) = ipt_dutdeptcd.value;
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("dutplcedeptnm")) = ipt_dutdeptnm.value;
- grd_dutyworkapplist.valueMatrix(cur_row, grd_dutyworkapplist.colRef("appscheexecflag")) = "1";
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1140px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_dutyworkapplist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_dutyworkapplist" nodeset="/root/main/dutyworkapplist" class="text_center" visibility="visible" caption="E-Mail^SMS^기관코드^사원번호^성명^근무지부서코드^근무지부서명^주야구분^당직일^H / P^E-Mail^비고^실시여부^dutunitcd^dutunitnm" colsep="^" colwidth="45, 45, 0, 80, 90, 0, 130, 60, 90, 100, 180, 354, 60, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:73px; width:1195px; height:660px; ">
- <col checkvalue="Y,N" ref="emailyn" type="checkbox" visibility="hidden"/>
- <col checkvalue="Y,N" ref="smsyn" type="checkbox" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="emplno" type="inputbutton" _key="true"/>
- <col ref="emplnm" type="input"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="dutplcedeptnm" _key="true"/>
- <col ref="adminngdtdnflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dutdd" type="inputdate" format="yyyy-mm-dd" _key="true"/>
- <col ref="mpphonno" type="input"/>
- <col ref="emailaddr" type="input"/>
- <col ref="cmt" type="input" maxlength="100"/>
- <col ref="appscheexecflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo2">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="dutunitcd" visibility="hidden"/>
- <col ref="dutunitnm" visibility="hidden"/>
- <col ref="mmngdtsumyn" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_dutyworkapplist.col == grd_dutyworkapplist.colRef("emplno"))
- {
- rpbfOpenPopUpList("SPRPB00101", grd_dutyworkapplist, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
-
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptcd")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitcd"));
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptnm")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitnm"));
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_dutyworkapplist.row;
-
- if(grd_dutyworkapplist.col == grd_dutyworkapplist.colRef("emplno"))
- {
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
-
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptcd")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitcd"));
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptnm")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitnm"));
- }
- else if(grd_dutyworkapplist.col == grd_dutyworkapplist.colRef("emplnm"))
- {
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
-
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptcd")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitcd"));
- grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutplcedeptnm")) = grd_dutyworkapplist.valueMatrix(grd_dutyworkapplist.row, grd_dutyworkapplist.colRef("dutunitnm"));
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excelload" class="btn2_letter4" style="left:1018px; top:48px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_dutyworkapplist.loadExcel(fileName);
-
- model.removenode("/root/main/dutyworkapplist[1]");
- grd_dutyworkapplist.rebuild();
-
- for(var i =1 ; i < grd_dutyworkapplist.rows; i++)
- {
- grd_dutyworkapplist.addStatus(i,"insert");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1071px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_dutyworkapplist);
-
- if (updtdata == "" )
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(!checkKeyColumn("grd_dutyworkapplist")) return;
-
- misfSave("TXRPD03601");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <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[
- var updtdata = getGridUpdateData(grd_dutyworkapplist);
- if (updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6)
- { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_sendsms" class="btn4_letter4" visibility="hidden" style="left:905px; top:3px; width:80px; height:22px; ">
- <caption>SMS발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendSms();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter4" style="left:991px; top:3px; width:80px; height:22px; ">
- <caption>당직확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dlgRslt = messageBox("당직 확정을 하시겠습니까?\nYes (예) / No (아니오)", "Q999");
- if(dlgRslt == 6)
- {
- if (submit("TXRPD03603")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|