123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>
- <bizvaluproc>
- <bizvaluproclist/>
- </bizvaluproc>
- <smsdata>
- <bizabbr/>
- <replytelno/>
- <rsrvyn/>
- <rsrvdate/>
- <rsrvtime/>
- <msgcnts/>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsdata>
- <maildata>
- <fromaddress/>
- <fromname/>
- <toaddress/>
- <ccaddress/>
- <subject/>
- <msg/>
- <attach>
- <file/>
- <filename/>
- <filesize/>
- </attach>
- </maildata>
- </main>
- <send>
- <bizvaluproc>
- <valuyy/>
- <fstscndhfyyflag/>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <emplnm/>
- <emplno/>
- <proc/>
- <program/>
- <valua/>
- </bizvaluproc>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRPV09301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizvaluproc" resultref="/root/main/bizvaluproc"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- misfGridInit(grd_bizvaluproclist);
-
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/send");
-
-
- grd_bizvaluproclist.fixedcellcheckbox(1, 1) = true;
- // 현재 년도 설정.
- model.setValue(ipt_valuyy.attribute("ref"), getCurrentDate().toDate().getDateFormat("YYYY"));
- rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")),"R093P","cmb_program");
- rpvfComboInstCdList("cmb_instcd");
-
- //cmb_program.select(0);
-
- // 사용자 기본설정.
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- //model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- //model.setValue(ipt_deptnm.attribute("ref"), getUserInfo("dutplcenm"));
- //model.setValue(ipt_emplno.attribute("ref") , getUserInfo("userid"));
- //model.setValue(ipt_emplnm.attribute("ref") , getUserInfo("usernm"));
-
-
- model.refresh();
- }
- 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_bizvaluproclist.rows - grd_bizvaluproclist.fixedRows > 0) {
- model.setValue("/root/main/smsdata/replytelno", grd_bizvaluproclist.valueMatrix(grd_bizvaluproclist.fixedRows, grd_bizvaluproclist.colRef("trgtphone")));
- }
-
- for(var i = grd_bizvaluproclist.fixedRows; i < grd_bizvaluproclist.rows; i++ )
- {
- if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("chooseyn")) == "Y")
- {
- if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("phone")) != '')
- {
- misfGridIUD(grd_msg, "A");
- fPhone = grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.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_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.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_bizvaluproclist.valueMatrix(grd_bizvaluproclist.fixedRows, grd_bizvaluproclist.colRef("tretemail")).getTrim()) ; // 보내는 사람의 E-mail 주소
-
-
- model.setValue("/root/main/maildata/fromname", getUserInfo("usernm")); // 보내는 사람명
-
-
- for(var i = grd_bizvaluproclist.fixedRows; i < grd_bizvaluproclist.rows; i++ )
- {
- if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("chooseyn")) == "Y")
- {
- if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("email")).getTrim() != '')
- {
- if(fEmail.length >0)
- {
- fEmail += ';';
- }
- fEmail += grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.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 pagewidth="1211" pageheight="784" 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:186px; height:14px; ">프로세스별 진행사항 조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_valuyy" class="search_name" style="left:10px; top:9px; width:90px; height:17px; ">평가년도 :</caption>
- <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[
- var program = cmb_program.value;
-
- if (program == "RP2" || program == "RP4" || program == "RP5"|| program == "RP7"||program == "RP8") {
- // if(!isRequiredControls("ipt_valuyy", "cmb_instcd", "cmb_program", "cmb_proc" )) return;
- }
- else {
- // if(!isRequiredControls("ipt_valuyy", "cmb_instcd", "cmb_fstscndhfyyflag", "cmb_program", "cmb_proc" )) return;
- }
-
- submit("TRRPV09301");
- ]]>
- </script>
- </button>
- <input id="ipt_valuyy" ref="/root/send/bizvaluproc/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:105px; top:8px; width:80px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_valuyy.value) == "4" ) {
- rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/bizvaluproc/instcd" class="combo_s_essential" appearance="minimal" style="left:381px; top:8px; width:199px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:320px; top:9px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
- <select1 id="cmb_fstscndhfyyflag" ref="/root/send/bizvaluproc/fstscndhfyyflag" class="combo_search" appearance="minimal" style="left:935px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_fstscndhfyyflag" class="search_name" style="left:848px; top:9px; width:86px; height:17px; vertical-align:middle; ">상하반기 :</caption>
- <input id="ipt_deptnm" ref="/root/send/bizvaluproc/deptnm" class="input_search" style="left:211px; top:35px; width:89px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/bizvaluproc/deptcd" class="input_search" style="left:105px; top:35px; width:84px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_deptcd" class="search_name" style="left:10px; top:35px; width:85px; height:17px; ">부 서 :</caption>
- <button id="btn_deptcd" class="icon_search" style="left:192px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
- // rpvfOpenDeptCdHelp(ipt_deptcd,recv_list);
-
- misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_emplnos" class="search_name" style="left:320px; top:35px; width:63px; height:17px; font-weight:bold; ">사번 :</caption>
- <input id="ipt_emplno" ref="/root/send/bizvaluproc/emplno" class="input_search" style="left:381px; top:35px; width:79px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/bizvaluproc/emplnm" class="input_search" style="left:483px; top:35px; width:97px; height:19px; "/>
- <button id="btn_emplno" class="icon_search" style="left:464px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="cap_proc" class="search_name" style="left:848px; top:35px; width:86px; height:17px; vertical-align:middle; ">진행상태 :</caption>
- <select1 id="cmb_proc" ref="/root/send/bizvaluproc/proc" class="combo_s_essential" appearance="minimal" style="left:935px; top:35px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_program" ref="/root/send/bizvaluproc/program" class="combo_s_essential" appearance="minimal" style="left:685px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var program = cmb_program.value;
-
- if (program == "RP2" || program == "RP4" ||
- program == "RP5" || program == "RP7" ||
- program == "RP8" ) { //TFT활동, 역량평가 일경우,자기개발계획서,조직몰입도
- //cmb_fstscndhfyyflag.value = "";
- cmb_fstscndhfyyflag.disabled = true;
- }
- else {
- cmb_fstscndhfyyflag.disabled = false;
- }
-
- if (program == "RP7" || program == "RP6") {
- cmb_valua.disabled = true;
- rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
- }
- else {
- cmb_valua.disabled = false;
- }
-
- rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value +"F", "cmb_fstscndhfyyflag");
- //rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
- rpvfAnotherComboValuCdDataList(ipt_valuyy.value, cmb_program.value + "V", "cmb_valua");
- cmb_proc.value = "";
- cmb_valua.value = "";
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_program" class="search_name" style="left:598px; top:9px; width:86px; height:17px; vertical-align:middle; ">프로그램 :</caption>
- <select1 id="cmb_valua" ref="/root/send/bizvaluproc/valua" class="combo_search" appearance="minimal" style="left:685px; top:35px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var valua = cmb_valua.value;
- if (valua == "01") { //평가자
- rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value+"A", "cmb_proc");
- }
- else {
- rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_valua" class="search_name" style="left:598px; top:35px; width:86px; height:17px; vertical-align:middle; ">평 가 자 :</caption>
- </group>
- <caption id="caption22" class="tit_2" style="left:5px; top:84px; width:144px; height:13px; ">DATA LIST</caption>
- <line id="line19" class="line_1" style="x1:0px; y1:99px; x2:1195px; y2:99px; "/>
- <datagrid id="grd_bizvaluproclist" nodeset="/root/main/bizvaluproc/bizvaluproclist" autoresize="true" caption="선택^기관^부서^직책^직급^사원번호^성명^평가그룹^핸드폰^이메일^발신자전화^발신자이메일|^기관^부서^직책^직급^사원번호^성명^평가그룹^핸드폰^이메일^발신자전화^발신자이메일" colsep="^" colwidth="42, 239, 197, 120, 131, 130, 134, 157, 32, 35, 47, 51" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1195px; height:639px; ">
- <col checkvalue="Y,N" ref="chooseyn" type="checkbox"/>
- <col ref="instnm"/>
- <col ref="deptnm"/>
- <col ref="jobrespnm"/>
- <col ref="jobgradnm"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="valuclsnm"/>
- <col ref="phone" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="trgtphone" visibility="hidden"/>
- <col ref="tretemail" visibility="hidden"/>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter5" style="left:1114px; top:78px; 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_bizvaluproclist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_msg" class="btn5_letter4" style="left:1045px; top:78px; 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:78px; 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:240px; width:310px; height:125px; ">
- <col ref="chk"/>
- <col ref="recvrnm"/>
- <col ref="recvrtelno"/>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.reload() ;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|