123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name :SPCVO02300_VOC추가요청등록
- * Summary : VOC 추가요청등록
- * Programmer : 김준규
- * Date Written : 2007.10.23
- * History :
- * Remark :
- -->
- <?xml-stylesheet type="text/css" href="../../../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>VOC 고객회신관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <vocdata>
- <deptview>
- <deptnm/>
- <deptcd/>
- <empnm/>
- <empid/>
- <endreqdd/>
- <acptdd/>
- <acptseq/>
- <rgstseq/>
- <rereqreasoncnts/>
- </deptview>
- <area>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqempid/>
- <reqempnm/>
- <acptdd/>
- <acptseq/>
- <rereqyn>Y</rereqyn>
- <rereqreasoncnts/>
- </area>
- </vocdata>
- <temp>
- <data>
- <srchacptdd1/>
- <srchacptdd2/>
- <srchacpttypecd/>
- <srchprcsstatcd/>
- <srchdeptcd/>
- <srchdeptnm/>
- <srchpatnm/>
- <srchpid/>
- <srchfstrgstrnm/>
- </data>
- <key>
- <sndacptdd/>
- <sndacptseq/>
- <sndrgstseq/>
- </key>
- </temp>
- </main>
- <temp/>
- <send>
- <data>
- </data>
- </send>
- <init/>
- </root>
- </instance>
- <submission id="TRCVO02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/vocdata"/>
- <submission id="TXCVO02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vocdata/area"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var reAcptDD = model.getValue("/root/main/temp/key/sndacptdd")
- var reAcptSeq = model.getValue("/root/main/temp/key/sndacptseq")
- var sndrgstseq = model.getValue("/root/main/temp/key/sndrgstseq");
- if (( reAcptDD == "" || reAcptDD == null ) || ( reAcptSeq == "" || reAcptSeq == null )) {
- var rtn = messageBox("조회에 필요한 항목이 전달되지", "E007");
- if(rtn == 1){
- window.close();
- }
- } else {
- submit("TRCVO02301");
-
- model.makeValue("/root/main/vocdata/area/reqdeptcd", "");
- model.makeValue("/root/main/vocdata/area/reqdeptnm", "");
- model.makeValue("/root/main/vocdata/area/reqempid", "");
- model.makeValue("/root/main/vocdata/area/reqempnm", "");
- model.makeValue("/root/main/vocdata/area/rereqreasoncnts", "");
- model.makeValue("/root/main/vocdata/area/acptdd", reAcptDD);
- model.makeValue("/root/main/vocdata/area/acptseq", reAcptSeq);
- model.makeValue("/root/main/vocdata/area/rereqyn", "Y");
-
- }
-
- var mode = model.getValue("/root/main/temp/key/mode");
-
- if (mode == "B") {
- for (var i = 1; i <= grd_dept.rows-1; i++) {
- if (sndrgstseq == model.getValue("/root/main/vocdata/deptview["+ i + "]/rgstseq")) {
- model.setValue("/root/main/vocdata/area/rereqreasoncnts", model.getValue("/root/main/vocdata/deptview[" + i + "]/rereqreasoncnts"));
- btn_input.disabled = true;
- }
- }
- }
-
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- }
- if (!checkAuth("x")) {
- btn_input.disable = false;
- }
- if (!checkAuth("p")) {
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="370" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_tle" style="left:0px; top:0px; width:610px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">VOC 해당부서 정보</caption>
- </group>
- <group id="grp_customer" style="left:0px; top:13px; width:610px; height:307px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:5px; x2:610px; y2:5px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:304px; x2:610px; y2:304px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:185px; width:105px; height:120px; text-align:center; vertical-align:middle; ">추가요청사유</caption>
- <textarea id="tar_Noticnts" ref="/root/main/vocdata/area/rereqreasoncnts" scroll="vertical" style="left:108px; top:185px; width:502px; height:117px; "/>
- <output id="ipt_EmpCD" ref="/root/main/vocdata/area/reqempid" class="output_fix" visibility="hidden" style="left:307px; top:139px; width:100px; height:19px; "/>
- <caption id="caption30" class="search_no_b" style="left:113px; top:162px; width:38px; height:17px; ">부서 :</caption>
- <input id="ipt_DeptNm" ref="/root/main/vocdata/area/reqdeptnm" class="input_default" imemode="hangul" style="left:154px; top:162px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btnicon_search6", "DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_dept" nodeset="/root/main/vocdata/deptview" caption="해당부서^부서코드^해당직원^직원ID^종결처리일^접수일^접수순서^등록순서" colwidth="225, 40, 100, 50, 100, 50, 50, 50" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:11px; width:610px; height:124px; ">
- <col class="text_center" ref="deptnm" _key="true"/>
- <col class="text_center" ref="deptcd" visibility="hidden" _key="true"/>
- <col class="text_center" ref="empnm"/>
- <col class="text_center" ref="empid" visibility="hidden"/>
- <col class="text_center" ref="endreqdd" format="yyyy-mm-dd"/>
- <col class="text_center" ref="acptdd" visibility="hidden"/>
- <col class="text_center" ref="acptseq" visibility="hidden"/>
- <col class="text_center" ref="rgstseq" visibility="hidden"/>
- </datagrid>
- <button id="btnicon_search6" class="icon_search" style="left:288px; top:163px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_term = model.getValue("/root/main/vocdata/area/reqdeptnm");
- var search_condition = "deptnm";
-
- var receive_deptcd_path = "/root/main/vocdata/area/reqdeptcd";
- var receive_deptnm_path = "/root/main/vocdata/area/reqdeptnm";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_deptcd_path", receive_deptcd_path);
- setParameter("receive_deptnm_path", receive_deptnm_path);
-
- modal("SPCVO00600")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
- // zbcfOpenInstDeptCodeList(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- ]]>
- </script>
- </button>
- <button id="btnicon_search7" class="icon_search" style="left:288px; top:140px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_term1 = model.getValue("/root/main/vocdata/area/reqempid");
- var search_term2 = model.getValue("/root/main/vocdata/area/reqempnm");
- var search_term3 = model.getValue("/root/main/vocdata/area/reqdeptcd");
-
- if ( search_term1 != "") {
- var search_condition = "empid";
- var search_term = search_term1;
- } else if ((search_term1 == "") && (search_term2 == "") && (search_term3 != "")) {
- var search_condition = "deptcd";
- var search_term = search_term3;
- } else {
- var search_condition = "empnm";
- var search_term = search_term2;
- }
-
- // var search_condition = "empid";
- // var search_term = model.getValue("/root/main/vocdata/area/EmpID");
- var receive_empid_path = "/root/main/vocdata/area/reqempid";
- var receive_empnm_path = "/root/main/vocdata/area/reqempnm";
- var receive_deptcd_path = "/root/main/vocdata/area/reqdeptcd";
- var receive_deptnm_path = "/root/main/vocdata/area/reqdeptnm";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_empid_path", receive_empid_path);
- setParameter("receive_empnm_path", receive_empnm_path);
- setParameter("receive_deptcd_path", receive_deptcd_path);
- setParameter("receive_deptnm_path", receive_deptnm_path);
-
- modal("SPCVO00700")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_empid_path");
- clearParameter("receive_empnm_path");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
- ]]>
- </script>
- </button>
- <caption id="caption15" class="search_no_b" style="left:113px; top:139px; width:38px; height:17px; ">직원 :</caption>
- <caption id="caption27" class="hand" style="left:310px; top:135px; width:205px; height:28px; ">부서 선택은 필수 사항입니다.</caption>
- <input id="ipt_EmpNm" ref="/root/main/vocdata/area/reqempnm" class="input_default" imemode="hangul" style="left:154px; top:139px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btnicon_search7", "DOMActivate");
- ]]>
- </script>
- </input>
- <output id="ipt_DeptCd" ref="/root/main/vocdata/area/reqdeptcd" class="output_fix" visibility="hidden" style="left:308px; top:160px; width:100px; height:19px; "/>
- <caption id="caption31" style="left:312px; top:162px; width:193px; height:17px; ">(해당 직원 없이 부서만 있는 경우)</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:138px; width:105px; height:45px; text-align:center; vertical-align:middle; ">추가요청부서</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:320px; width:610px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:550px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_input" class="btn4_letter5" style="left:455px; top:5px; width:92px; height:22px; ">
- <caption>추가 요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reAcptSeq = model.getValue("/root/main/temp/key/sndacptseq")
- var reAcptDD = model.getValue("/root/main/temp/key/sndacptdd")
- var reDeptcd = model.getValue("/root/main/vocdata/area/reqdeptcd")
- var reDeptnm = model.getValue("/root/main/vocdata/area/reqdeptnm")
- var reEmpid = model.getValue("/root/main/vocdata/area/reqempid")
- var reEmpnm = model.getValue("/root/main/vocdata/area/reqempnm")
- var reCnts = model.getValue("/root/main/vocdata/area/rereqreasoncnts")
-
- model.setValue("/root/main/vocdata/area/acptseq", reAcptSeq);
- model.setValue("/root/main/vocdata/area/acptdd", reAcptDD);
-
- if ( reAcptSeq == "" || reAcptSeq == null ) {
- var rtn = messageBox("저장에 필요한 항목이 전달되지", "E007");
- if(rtn == 1){
- window.close();
- }
- } else if (reDeptnm == "" || reDeptnm == null) {
- var rtn = messageBox("부서 선택은 필수사항입니다. 부서를 선택하지 ", "E007");
- if(rtn == 1){
- model.setFocus("btnicon_search6");
- }
- } else if (reDeptcd == "" || reDeptcd == null) {
- var rtn = messageBox("부서 조회를 통해 부서를 선택하지 ", "E007");
- if(rtn == 1){
- model.setFocus("btnicon_search6");
- }
- } else if (reEmpid == "" && reEmpnm != "") {
- var rtn = messageBox("직원 선택은 검색을 통해서 입력하셔야 합니다. \n직원 없이 부서만 등록 ", "S001");
- if(rtn == 6){
- model.setValue("/root/main/vocdata/area/reqempnm", "");
- } else {
- model.setFocus("ipt_EmpNm");
- return false;
- }
- } else if (reEmpid != "" && reEmpnm == "") {
- var rtn = messageBox("직원 선택을 하셨으나 임의로 직원 이름을 지웠습니다. \n직원 없이 부서만 등록 ", "S001");
- if(rtn == 6){
- model.setValue("/root/main/vocdata/area/reqempid", "");
- } else {
- model.setFocus("ipt_EmpNm");
- return false;
- }
- } else if (reCnts == "" || reCnts == null) {
- var rtn = messageBox("추가요청 사유를 ", "C001");
- if(rtn == 1){
- model.setFocus("tar_Noticnts");
- }
- } else if (reDeptcd != "") {
-
- for ( i = 1; i < grd_dept.rows; i++) {
- if ((grd_dept.valueMatrix(i, grd_dept.colRef("deptcd")) == reDeptcd) && (grd_dept.valueMatrix(i, grd_dept.colRef("endreqdd")) == "")) {
- messageBox(i+" 번째 부서와 같은 부서에 대하여 부서 추가를 다시 ","E001");
- model.setValue("/root/main/vocdata/area/reqempnm", "");
- model.setValue("/root/main/vocdata/area/reqempid", "");
- model.setValue("/root/main/vocdata/area/reqdeptnm", "");
- model.setValue("/root/main/vocdata/area/reqdeptcd", "");
- model.SetFocus("ipt_DeptNm");
- model.refresh();
- return false;
- }
- }
- if (submit("TXCVO02301")){
- messageBox("추가요청 내용 저장이 ", "I002");
-
- parent.javaScript.fNavigateAdd();
-
- window.close();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="cpt_Notice" class="hand" style="left:5px; top:7px; width:402px; height:17px; ">추가요청은 새로운 부서 또는 종결된 부서만 추가 가능합니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|