123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- <?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>
- <valursltlist>
- <program/>
- <instnm/>
- <deptnm/>
- <jobrespnm/>
- <emplno/>
- <emplnm/>
- <progress/>
- </valursltlist>
- <maildata>
- <fromaddress/>
- <fromname/>
- <toaddress/>
- <ccaddress/>
- <subject/>
- <msg/>
- <attach>
- <file/>
- <filename/>
- <filesize/>
- </attach>
- </maildata>
- <smsdata>
- <bizabbr/>
- <replytelno/>
- <rsrvyn/>
- <rsrvdate/>
- <rsrvtime/>
- <msgcnts/>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsdata>
- </main>
- <send>
- <valurslt>
- <valuyy/>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <emplno/>
- <emplnm/>
- <valucd/>
- <progress/>
- <fstscndhfyyflag/>
- <valucdflag/>
- </valurslt>
- </send>
- <init>
- <selyn>
- <valupsncnfmyn/>
- </selyn>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /* Grid 초기화 */
- misfGridInit(grd_valurslt);
-
- /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
- /* Grid의 Mater, Detail관계 설정
- misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
- misfMsterDetailSet(grd_valurslt,null, "TRRPV01501" ,"N");
- rpvfComboInstCdList("cmb_schinstcd");
- misfComboComCdList('R0237', cmb_fstscndhfyyflag,'');
- var curdate = getCurrentDate();
-
- model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
- rpvfComboProgramSet(model.getValue(ipt_valuyy.attribute("ref")),cmb_program,"PROGRAM");
- addGridComboItemAll("cmb_schinstcd","전체","","above");
- model.setValue(cmb_schinstcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- //model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("posdeptcd"));
- //model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("posdeptnm"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPV01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valurslt" resultref="/root/main/valursltlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
- <script type="javascript" src="../../../com/emailsenderweb/js/ZME001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fSendMsg()
- {
- misfGridInit(grd_msg);
- var fPhone = '';
- var sPhone = '';
- model.setValue("/root/main/smsdata/bizabbr", "mis");
- model.setValue("/root/main/smsdata/replytelno", "112");
- model.setValue("/root/main/smsdata/rsrvyn", "0");
- model.setValue("/root/main/smsdata/rsrvdate", getCurrentDate());
- model.setValue("/root/main/smsdata/rsrvtime", getCurrentTime().substr(0,4));
- model.setValue("/root/main/smsdata/msgcnts", "");
-
-
- if (grd_valurslt.rows - grd_valurslt.fixedRows > 0) {
- model.setValue("/root/main/smsdata/replytelno", grd_valurslt.valueMatrix(grd_valurslt.fixedRows, grd_valurslt.colRef("trgtphone")));
- }
-
- for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ )
- {
- if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) == "Y")
- {
- if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("phone")) != '')
- {
- misfGridIUD(grd_msg, "A");
- fPhone = grd_valurslt.valueMatrix(i, grd_valurslt.colRef("phone")).split("-");
- sPhone = '';
- for(var p = 0; p < fPhone.length; p++ )
- {
- sPhone += fPhone[p];
- }
-
- grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("chk")) = 'Y';
- grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrnm")) = grd_valurslt.valueMatrix(i, grd_valurslt.colRef("emplnm"));
- grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrtelno")) = sPhone;
- }
- }
- }
-
-
- //zmsfOpenSMS("/root/main/smsdata");
- rpvfOpenSMS(10, 10, "/root/main/smsdata");
- }
-
- function fSendEmail()
- {
- var fEmail = '';
- model.setValue("/root/main/maildata/fromaddress", grd_valurslt.valueMatrix(grd_valurslt.fixedRows, grd_valurslt.colRef("tretemail")).getTrim()) ; // 보내는 사람의 E-mail 주소
-
-
- model.setValue("/root/main/maildata/fromname", getUserInfo("usernm")); // 보내는 사람명
-
-
- for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ )
- {
- if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) == "Y")
- {
- if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("email")).getTrim() != '')
- {
- if(fEmail.length >0)
- {
- fEmail += ';';
- }
- fEmail += grd_valurslt.valueMatrix(i, grd_valurslt.colRef("email")).getTrim();
- }
- }
- }
-
-
- model.setValue("/root/main/maildata/toaddress", fEmail); // 받는이 이메일 주소 여러명일때 구분자 ';'
- model.setValue("/root/main/maildata/ccaddress", ''); // 참조인 이메일 주소
- model.setValue("/root/main/maildata/subject", ''); // 제목
- model.setValue("/root/main/maildata/msg", ''); // 전송메세지
-
- //zmefOpenMail("/root/main/maildata");
- rpvfOpenMail(10, 10, "/root/main/maildata");
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">평가 진행사항 조회</caption>
- </group>
- <group id="group3" style="left:0px; top:38px; width:1195px; height:692px; ">
- <!--<datagrid id="datagrid1" nodeset="/root/example" class="datagrid2" caption="구분^확정^목표^시작일자^종료일자^가중치" colsep="^" colwidth="48, 16, 80, 40, 50, 20" dataheight="23" defaultrows="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:317px; top:110px; width:876px; height:481px; ">-->
- <group id="grpmain2" style="left:0px; top:48px; width:1194px; height:637px; ">
- <datagrid id="grd_valurslt" nodeset="/root/main/valursltlist" class="datagrid2" caption="선택^프로그램명^기관^부서^직책^사원번호^성명^평가그룹^진행사항^전화번호^이메일^발신전화번호^발신이메일" colsep="^" colwidth="45, 245, 160, 145, 96, 88, 91, 100, 209, 39, 35, 39, 36" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:1192px; height:560px; font-weight:normal; color:#99cc00; ">
- <col checkvalue="Y,N" ref="chooseyn" type="checkbox"/>
- <col ref="program" type="output" style="text-align:center; "/>
- <col ref="instnm" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="jobrespnm" style="text-align:center; "/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="valuclsnm" style="text-align:center; "/>
- <col ref="progress" style="text-align:center; "/>
- <col ref="phone" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="trgtphone" visibility="hidden"/>
- <col ref="tretemail" visibility="hidden"/>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:40px; width:165px; height:14px; ">평가 진행사항</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:55px; x2:1190px; y2:55px; "/>
- <button id="btn_saveexcel" class="btn2_letter5" style="left:1114px; top:35px; width:75px; height:19px; ">
- <caption>Excel저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_valurslt.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_msg" class="btn5_letter4" style="left:1045px; top:35px; width:64px; height:19px; ">
- <caption>문자전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendMsg();
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn5_letter3" style="left:990px; top:35px; width:53px; height:19px; ">
- <caption>E-mail</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendEmail();
- ]]>
- </script>
- </button>
- <datagrid id="grd_msg" nodeset="/root/main/smsdata/recvrlist" visibility="hidden" caption="체크여부^이름^전화번호" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:230px; top:125px; width:310px; height:125px; ">
- <col ref="chk"/>
- <col ref="recvrnm"/>
- <col ref="recvrtelno"/>
- </datagrid>
- <button id="btn_selectall" class="btn2_letter4" style="left:120px; top:34px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ ) {
- grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) = "Y";
- }
- ]]>
- </script>
- </button>
- <button id="btn_unselectall" class="btn2_letter6" style="left:187px; top:35px; width:64px; height:19px; ">
- <caption>전체선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ ) {
- grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) = "N";
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:10px; width:1195px; height:70px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:65px; "/>
- <caption id="cap_deptcd" class="search_name" style="left:670px; top:9px; width:87px; height:17px; font-weight:bold; vertical-align:middle; ">부 서 :</caption>
- <line id="line3" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_program.value =="SMRPV05700"){
- return;
- }
- if(cmb_program.value=="SMRPV04200"||cmb_program.value=="SMRPV04300" ||cmb_program.value=="SMRPV01800"){
- if ( !isRequiredControls("ipt_valuyy","cmb_program") )return false;
- }else{
- if ( !isRequiredControls("ipt_valuyy","cmb_fstscndhfyyflag","cmb_program") )return false;
-
- }
- var valucdflag = model.getValue("/root/init/cmb_progress/rpvdcodelist/valucdflag");
- model.setValue("/root/send/valurslt/valucdflag",valucdflag);
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_schinstcd" ref="/root/send/valurslt/instcd" class="combo_s_essential" appearance="minimal" style="left:256px; top:8px; width:129px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_valuyy" class="search_name" style="left:5px; top:9px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
- <caption id="cap_schinstcd" class="search_name" style="left:195px; top:9px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
- <input id="ipt_valuyy" ref="/root/send/valurslt/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:95px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_schinstcd.value;
- if( getStringLength(ipt_valuyy.value) == "4" ) {
- rpvfComboInstCdList("cmb_schinstcd",ipt_valuyy.value);
- cmb_schinstcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/valurslt/deptnm" class="input_default" style="left:876px; top:8px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
-
- if (ipt_deptnm.label == "") {
- ipt_deptcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/valurslt/deptcd" class="input_default" visibility="visible" style="left:765px; top:8px; width:80px; height:19px; "/>
- <button id="btn_deptcd" class="icon_search" style="left:854px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("cmb_schinstcd") ) {
- return false;
- }
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_schinstcd.value;
- rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, instcd, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption26" class="search_name" style="left:670px; top:35px; width:85px; height:17px; ">사 번 :</caption>
- <button id="button1" class="icon_search" style="left:853px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 사원번호 Help 화면 Open
- misfOpenPopUpList(화면종류Code, OPEN하는 Control, 공통코드, 리턴받을 Instance명) */
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
-
-
- model.refresh();
-
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/valurslt/emplno" class="input_default" style="left:766px; top:34px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
-
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/valurslt/emplnm" class="input_default" style="left:878px; top:34px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- misfValidationCheck("01-2", "", recv_list);
- model.refresh();
-
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="cap_program" class="search_name" style="left:5px; top:35px; width:91px; height:17px; ">프로그램 :</caption>
- <select1 id="cmb_program" ref="/root/send/valurslt/valucd" class="combo_s_essential" appearance="minimal" style="left:95px; top:35px; width:290px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- /* 발령구분 선택시 발령 세부구분 자료를 Setting,한다 */
-
- var program = cmb_program.value;
- if(program =="SMRPV01800")
- {
- progress="PLANDOCPROCESS";
- }else if(program =="SMRPV01900")
- {
- progress="PLANDOCCNFM";
- }else if(program =="SMRPV05800")
- {
- progress="INPUTENDFLAG";
- }else if(program == "SMRPV06400" ||program == "SMRPV07200"||program == "SMRPV07500")
- {
- progress="VALUPSNCNFMFLAG2";
- }else if(program =="SMRPV05900")
- {
- progress="APRVFLAG";
- }else if(program =="SMRPV04300" || program == "SMRPV06000" ||program == "SMRPV06100"|| program == "SMRPV06500"|| program == "SMRPV06300" || program == "SMRPV06400" ||program == "SMRPV07300"||program == "SMRPV07400")
- {
- progress="TRETFLAG";
- }else{
- progress="PROCSTAT";
- }
- rpvfComboProgramSet(model.getValue(ipt_valuyy.attribute("ref")),cmb_progress,progress);
- cmb_progress.value="";
-
- //misfComboCopyItemSet(cmb_gvnoffcorddetlflag_s, "", grd_gvnoffcordmastlist, "gvnoffcorddetlflag");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:415px; top:35px; width:110px; height:17px; font-weight:bold; vertical-align:middle; ">진행상태 :</caption>
- <select1 id="cmb_progress" ref="/root/send/valurslt/progress" class="combo_s_essential" appearance="minimal" style="left:506px; top:35px; width:130px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_fstscndhfyyflag" ref="/root/send/valurslt/fstscndhfyyflag" class="combo_s_essential" appearance="minimal" style="left:506px; top:9px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/fstscndhfyyflag">
- <label ref="cdnm"/>
- <value ref="code"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_fstscndhfyyflag" class="search_name" style="left:415px; top:10px; width:86px; height:17px; vertical-align:middle; ">상하반기 :</caption>
- </group>
- </group>
- <!--<line id="line3" class="line_1" style="x1:0px; y1:67px; x2:1195px; y2:67px; "/>-->
- <group id="group6" style="left:0px; top:12; width:1195; height:27; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|