123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCIT00300_만족도설문지관리
- * Summary : 설문지 관리
- * Programmer : 황현석
- * Date Written : 2010.06.24.
- * 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>만족도 설문지 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <satsfctqestlist>
- <qpaprtitlcnts/>
- <qpaprgoalcd/>
- <itemgrupkindcd/>
- <stinqestcnt/>
- <wrtestatcd/>
- <rgstdeptcd/>
- <rgstid/>
- <wrteenddd/>
- <qpaprseqno/>
- <qpaprdesccnts/>
- <startgidewrdncnts/>
- <hstndeptcnts/>
- <endgidewrndcnts/>
- <rgstdeptnm/>
- <rgstnm/>
- <count/>
- </satsfctqestlist>
- <qestbasesetup>
- <qpaprtitlcnts/>
- <qpaprgoalcd/>
- <qpaprdesccnts/>
- <startgidewrdncnts/>
- <hstndeptcnts/>
- <endgidewrndcnts/>
- <wrtestatcd/>
- <wrteenddd/>
- <rgstdeptcd/>
- <rgstid/>
- <savemode>I</savemode>
- <rgstdeptnm/>
- <rgstnm/>
- <qpaprseqno/>
- <qestitemgrupseqno/>
- <qestcomps>
- <qestitemgrupcnt/>
- <humtrafactposcd/>
- <qestgruplist>
- <qestitemgrupnm/>
- <qestitemcnt/>
- <qpaprseqno/>
- <qestitemgrupseqno/>
- </qestgruplist>
- <stinqestcnt/>
- </qestcomps>
- <count/>
- </qestbasesetup>
- </main>
- <send>
- <srch>
- <rgstfromdd/>
- <rgsttodd/>
- <qpaprtitlcnts/>
- <wrtestatcd/>
- <qpaprgoalcd/>
- </srch>
- <qestattr>
- <qpaprseqno/>
- </qestattr>
- </send>
- <init>
- <C0107list>
- <C0107>
- <cdnm>전체</cdnm>
- <cdid/>
- </C0107>
- </C0107list>
- <C0106list/>
- <C0108list/>
- </init>
- <hidden>
- <qpaprmngt>U</qpaprmngt>
- </hidden>
- </root>
- </instance>
- <submission id="TRCIT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/satsfctqestlist"/>
- <submission id="TRCIT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/qestattr" resultref="/root/main/qestbasesetup/qestcomps/qestgruplist"/>
- <submission id="TXCIT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/qestbasesetup"/>
- </model>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/rexpert30.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 공통코드 C0107 : 작성상태, C0106 : 설문목적, C0108 : 기초설문위치
- zbcfGetCodeList( new Array("C0107", "C0106", "C0108"), new Array("/root/init/C0107list", "/root/init/C0106list", "/root/init/C0108list"));
-
- //현재 그리드가 선택된 Row
- var gRow = 0;
- //사용자 부서 설정
- var dutplcenm = getUserInfo("dutplcenm");
- model.setValue("/root/main/qestbasesetup/rgstdeptnm", dutplcenm);
- var dutplcecd = getUserInfo("dutplcecd");
- model.setValue("/root/main/qestbasesetup/rgstdeptcd", dutplcecd);
-
- //사용자 설정
- var usernm = getUserInfo("usernm");
- model.setValue("/root/main/qestbasesetup/rgstnm", usernm);
- var userid = getUserInfo("userid");
- model.setValue("/root/main/qestbasesetup/rgstid", userid);
-
- // 시작 화면에 오늘 날짜 & 1년 전 보여주기
- model.setValue("/root/send/srch/rgstfromdd", getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
- model.setValue("/root/send/srch/rgsttodd", getCurrentDate());
-
- // 시작시 작성상태 & 설문지 목적을 기본 '전체' 로 표시하기
- model.setValue("/root/send/srch/wrtestatcd","");
- model.setValue("/root/send/srch/qpaprgoalcd","");
-
- model.removeNodeset("/root/main/qestbasesetup/qestcomps/qestgruplist");
- model.removeNodeset("/root/main/satsfctqestlist");
-
- model.setValue("/root/main/qestbasesetup/wrtestatcd", "2");
- model.setValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt", 0)
- model.setValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd", "1");
- model.setValue("/root/main/qestbasesetup/qestcomps/stinqestcnt", 0);
-
- addComboItemAll("cmb_srch_qpaprgoalcd");
-
- fSetButtons();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var gTextFocus = "";
-
- // 설문 내용의 초기화
- function fNewMsg() {
- model.setValue("/root/main/qestbasesetup/qpaprtitlcnts","");
- model.setValue("/root/main/qestbasesetup/qpaprgoalcd","");
- model.setValue("/root/main/qestbasesetup/qpaprdesccnts","");
- model.setValue("/root/main/qestbasesetup/startgidewrdncnts","");
- model.setValue("/root/main/qestbasesetup/hstndeptcnts","");
- model.setValue("/root/main/qestbasesetup/endgidewrndcnts","");
- model.setValue("/root/main/qestbasesetup/wrtestatcd","");
- model.setValue("/root/main/qestbasesetup/qpaprseqno","");
- model.setValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt","");
- model.setValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd","");
- model.removeNodeset("/root/main/qestbasesetup/qestcomps/qestgruplist");
-
- //사용자 부서 설정
- var dutplcenm = getUserInfo("dutplcenm");
- model.setValue("/root/main/qestbasesetup/rgstdeptnm", dutplcenm);
- var dutplcecd = getUserInfo("dutplcecd");
- model.setValue("/root/main/qestbasesetup/rgstdeptcd", dutplcecd);
-
- //사용자 설정
- var usernm = getUserInfo("usernm");
- model.setValue("/root/main/qestbasesetup/rgstnm", usernm);
- var userid = getUserInfo("userid");
- model.setValue("/root/main/qestbasesetup/rgstid", userid);
-
- model.setValue("/root/main/qestbasesetup/savemode", "I");
- model.setValue("/root/main/qestbasesetup/wrtestatcd", "2");
- model.setValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt", 0)
- model.setValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd", "1");
- model.setValue("/root/main/qestbasesetup/qestcomps/stinqestcnt", 0);
-
- fSetButtons();
- model.refresh();
-
- }
-
- // 버튼의 활성화 유무
- function fSetButtons() {
- var savemode = model.getValue("/root/main/qestbasesetup/savemode");
- var wrtestatcd = model.getValue("/root/main/qestbasesetup/wrtestatcd");
-
- if (savemode == "I") {
- btn_qestprnt.disabled = true; // 설문지 출력
- btn_qestprvw.disabled = true; // 설문지 미리보기
- btn_del.disabled = true; // 삭제
- btn_wrteend.disabled = true; // 작성완료
- btn_qestcompsmngt.disabled = true; // 설문지구성관리
- btn_wrteend_cncl.disabled = true; // 작성완료 취소
-
- } else if (savemode == "U") {
- btn_qestprnt.disabled = false;
- btn_qestprvw.disabled = false;
- btn_del.disabled = false;
- btn_qestcompsmngt.disabled = false;
-
- // 작성상태에 따른 버튼 활성화
- if (wrtestatcd == "1") { // 작성완료
- btn_wrteend_cncl.disabled = false;
- btn_wrteend.disabled = true;
- } else {
- btn_wrteend_cncl.disabled = true;
- btn_wrteend.disabled = false;
- }
- }
-
- }
-
- // 조회부
- function fGetMsgTmplList() {
-
- // var ipt_srch_qestitemgrupnm = model.getValue("/root/send/srch/qestitemgrupnm");
- //
- // if (ipt_srch_qestitemgrupnm == ""){
- // messageBox("문항 그룹명이 입력 되지", "E007");
- // return false;
- // } else {
- submit("TRCIT00301");
- // }
-
- // 등록화면 초기화
- model.resetInstanceNode("/root/main/qestbasesetup");
-
- fNewMsg();
- fSetButtons();
- model.refresh();
- }
-
- //
- function fSetFocus(pfocus) {
- gTextFocus = pfocus;
- }
-
- // 설문지 목록 데이터 상세조회
- function fSetupBase(pRow) {
- if( pRow > 0 && grd_satsfctqestlist.fixedRows > 0 ){
-
- // 선택한 설문지 목록을 설문기 기본설정과 구성으로 넘겨준다.
- var qpaprtitlcnts = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("qpaprtitlcnts"));
- var qpaprgoalcd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("qpaprgoalcd"));
- var itemgrupkindcd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("itemgrupkindcd"));
- var stinqestcnt = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("stinqestcnt"));
- var wrtestatcd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("wrtestatcd"));
- var rgstdeptnm = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("rgstdeptnm"));
- var rgstnm = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("rgstnm"));
- var wrteenddd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("wrteenddd"));
- var rgstdeptcd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("rgstdeptcd"));
- var rgstid = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("rgstid"));
- var qpaprseqno = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("qpaprseqno"));
- var qpaprdesccnts = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("qpaprdesccnts"));
- var startgidewrdncnts = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("startgidewrdncnts"));
- var hstndeptcnts = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("hstndeptcnts"));
- var endgidewrndcnts = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("endgidewrndcnts"));
- var qestitemgrupcnt = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("qestitemgrupcnt"));
- var humtrafactposcd = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("humtrafactposcd"));
- var count = grd_satsfctqestlist.valueMatrix(pRow, grd_satsfctqestlist.colRef("count"));
-
- model.setValue("/root/main/qestbasesetup/qpaprtitlcnts",qpaprtitlcnts);
- model.setValue("/root/main/qestbasesetup/qpaprgoalcd",qpaprgoalcd);
- model.setValue("/root/main/qestbasesetup/qpaprdesccnts",qpaprdesccnts);
- model.setValue("/root/main/qestbasesetup/startgidewrdncnts",startgidewrdncnts);
- model.setValue("/root/main/qestbasesetup/hstndeptcnts",hstndeptcnts);
- model.setValue("/root/main/qestbasesetup/wrtestatcd",wrtestatcd);
- model.setValue("/root/main/qestbasesetup/wrteenddd",wrteenddd);
- model.setValue("/root/main/qestbasesetup/endgidewrndcnts",endgidewrndcnts);
- model.setValue("/root/main/qestbasesetup/rgstdeptnm",rgstdeptnm);
- model.setValue("/root/main/qestbasesetup/rgstnm",rgstnm);
- model.setValue("/root/main/qestbasesetup/rgstdeptcd",rgstdeptcd);
- model.setValue("/root/main/qestbasesetup/rgstid",rgstid);
- model.setValue("/root/main/qestbasesetup/qpaprseqno",qpaprseqno);
- model.setValue("/root/main/qestbasesetup/count",count);
-
- // 설문지 구성 그리드
- model.setValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt",qestitemgrupcnt);
- model.setValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd",humtrafactposcd);
- model.setValue("/root/main/qestbasesetup/qestcomps/stinqestcnt",stinqestcnt);
-
- model.setValue("/root/main/qestbasesetup/savemode","U");
-
- // 설문지 구성에대한 값을 조회한다.
- model.setValue("/root/send/qestattr/qpaprseqno",qpaprseqno);
- submit("TRCIT00302");
-
- // 설문지정렬순서의 변경을 위해 필요로 불러왔다.
- model.setValue("/root/main/qestbasesetup/qestitemgrupseqno", model.getValue("/root/main/qestbasesetup/qestcomps/qestgruplist/qestitemgrupseqno"));
-
- // 설문지가 없을때 보여주는 메시지
- var qestitemgrupcnt = model.getValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt");
- if (qestitemgrupcnt == 0) {
- alert("등록된 설문지가 없습니다.");
- }
-
- // 버튼의 활성화 유무를 확인
- fSetButtons();
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1195" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_1" style="left:5px; top:0px; width:150; height:13px; ">만족도 설문지 관리</caption>
- <group id="group1" style="left:0; top:23; width:1195; height:35; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15; top:9; width:80; height:17; ">등록기간</caption>
- <input id="ipt_rgstfromdd" ref="/root/send/srch/rgstfromdd" class="input_search" inputtype="date" style="left:98; top:8; width:100; height:19; "/>
- <caption id="caption3" style="left:203; top:8; width:12; height:19; ">~</caption>
- <input id="ipt_rgsttodd" ref="/root/send/srch/rgsttodd" class="input_search" inputtype="date" style="left:220; top:8; width:100; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:332; top:9; width:100px; height:17; ">설문지 제목</caption>
- <input id="ipt_srch_qpaprtitlcnts" ref="/root/send/srch/qpaprtitlcnts" class="input_search" maxlength="30" style="left:437; top:8; width:200; height:19; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:649; top:9; width:80; height:17; ">작성상태</caption>
- <select1 id="cmb_srch_wrtestatcd" ref="/root/send/srch/wrtestatcd" class="combo_search" appearance="minimal" style="left:734; top:8; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0107list/C0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:846; top:9; width:100px; height:17; ">설문지 목적</caption>
- <select1 id="cmb_srch_qpaprgoalcd" ref="/root/send/srch/qpaprgoalcd" class="combo_search" appearance="minimal" style="left:951; top:8; width:100px; height:19; ">
- <choices>
- <itemset nodeset="/root/init/C0106list/C0106">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1127; top:7; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = model.getValue("/root/send/srch/qpaprtitlcnts");
- fGetMsgTmplList();
- /*
- if (ipt_srch_qpaprtitlcnts.value.length < 2) {
- messageBox("설문지 제목은 최소 2글자 이상 ", "C001");
- model.setFocus("ipt_srch_qpaprtitlcnts");
- } else {
- //fGetMsgTmplList();
-
- } */
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line21" class="line_1" style="x1:0px; y1:83px; x2:1194px; y2:83px; "/>
- <caption id="caption7" class="tit_2" style="left:0; top:68; width:140; height:13; ">만족도 설문지 목록</caption>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:62px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "문항그룹명", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- grd_satsfctqestlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_satsfctqestlist" nodeset="/root/main/satsfctqestlist" caption="설문지 제목^설문지 목적^설문지 구성^설문 총 문항수^작성상태^등록부서^등록자^작성완료일자^^^^^^^" colsep="^" colwidth="390, 150, 150, 100, 80, 120, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:88px; width:1194px; height:276px; ">
- <col ref="qpaprtitlcnts"/>
- <col disabled="true" ref="qpaprgoalcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/C0106list/C0106">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="itemgrupkindcd"/>
- <col ref="stinqestcnt"/>
- <col disabled="true" ref="wrtestatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/C0107list/C0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rgstdeptnm"/>
- <col ref="rgstnm" style="text-align:center; "/>
- <col ref="wrteenddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="rgstdeptcd" visibility="hidden"/>
- <col ref="rgstid" visibility="hidden"/>
- <col ref="qpaprseqno" visibility="hidden"/>
- <col ref="qpaprdesccnts" visibility="hidden"/>
- <col ref="startgidewrdncnts" visibility="hidden"/>
- <col ref="hstndeptcnts" visibility="hidden"/>
- <col ref="endgidewrndcnts" visibility="hidden"/>
- <col ref="qestitemgrupcnt" visibility="hidden"/>
- <col ref="humtrafactposcd" visibility="hidden"/>
- <col ref="count" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fNewMsg(); // 문항보기 내용 초기화
- model.removeNodeset("/root/main/qestcntattr/qestitemchoilist");
- model.removeNodeset("/root/main/qestbasesetup/qestcomps/qestgruplist");
- gRow = grd_satsfctqestlist.row;
- fSetupBase(gRow);
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_3" style="x1:0px; y1:390px; x2:1194px; y2:390px; "/>
- <button id="btn_qestprnt" class="btn2_letter5" style="left:728px; top:369px; width:75px; height:19px; ">
- <caption>설문지 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 설문지 일련번호 만족도일련번호 셋팅하기
- var qpaprseqno = model.getValue("/root/main/qestbasesetup/qpaprseqno");
- var stinseqno = 0;
-
- if (qpaprseqno != "" && stinseqno == 0){
- var obj = new Object();
- var option = "open=0;save=1;directprint=0;printdailog=0;print=1;stop=1;excel=1;zoomin=1;zoomout=1;moveprev=1;movenext=1;combo=1;movefirst=1;movelast=1;help=1";
- obj.instcd = getUserInfo("dutplceinstcd");
- obj.stinseqno = stinseqno;
- obj.qpaprseqno = qpaprseqno;
- obj.view_chart_yn = "Y";
- obj.instnm = getUserInfo("dutplceinstnm");
- exeReportPreview30("RPCIT00300",obj, option);
- }
- ]]>
- </script>
- </button>
- <button id="btn_qestprvw" class="btn2_letter7" style="left:806px; top:369px; width:97px; height:19px; ">
- <caption>설문지 미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var qpaprseqno = model.getValue("/root/main/qestbasesetup/qpaprseqno");
- setParameter("qpaprseqno", qpaprseqno);
-
- modal("SPCIT00400");
-
- clearParameter("qpaprseqno");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn2_letter2" style="left:906px; top:369px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNewMsg();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:951px; top:369px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ipt_qpaprtitlcnts = model.getValue("/root/main/qestbasesetup/qpaprtitlcnts");
- var cmb_qpaprgoalcd = model.getValue("/root/main/qestbasesetup/qpaprgoalcd");
- var tar_startgidewrdncnts = model.getValue("/root/main/qestbasesetup/startgidewrdncnts");
- var tar_hstndeptcnts = model.getValue("/root/main/qestbasesetup/hstndeptcnts");
- var tar_endgidewrndcnts = model.getValue("/root/main/qestbasesetup/endgidewrndcnts");
-
- if (ipt_qpaprtitlcnts == "" ) {
- messageBox("설문지 제목을", "C001");
- model.setFocus("ipt_qpaprtitlcnts");
- } else if (cmb_qpaprgoalcd == "") {
- messageBox("설문지 목적을", "C002");
- model.setFocus("cmb_qpaprgoalcd");
- } else if (tar_startgidewrdncnts == "") {
- messageBox("설문시작 안내문구를", "C001");
- model.setFocus("tar_startgidewrdncnts");
- } else if (tar_hstndeptcnts == "") {
- messageBox("주최부서 내용을", "C001");
- model.setFocus("tar_hstndeptcnts");
- } else if (tar_endgidewrndcnts == "") {
- messageBox("설문종료 안내문구를", "C001");
- model.setFocus("tar_endgidewrndcnts");
- } else {
- if (submit("TXCIT00301")) {
- messageBox("설문 내용 저장이", "I002", "");
- fNewMsg();
- fGetMsgTmplList();
- } else {
- messageBox("설문 내용 저장에", " E009", "");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" style="left:996px; top:369px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var wrtestatcd = model.getValue("/root/main/qestbasesetup/wrtestatcd");
-
- if (wrtestatcd != "1") {
- var rtn = messageBox("설문 내용을", "Q001", "");
- model.setValue("/root/main/qestbasesetup/savemode","D");
-
- if (rtn == 6) {
- submit("TXCIT00301");
- fNewMsg();
- submit("TRCIT00301");
- }
- model.refresh();
- } else {
- messageBox("작성완료인 설문지는 삭제", "E001");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_wrteend" class="btn5_letter4" style="left:1041px; top:369px; width:64px; height:19px; ">
- <caption>작성완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var qestitemgrupcnt = model.getValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt");
- var saveCount = 0;
-
- if (qestitemgrupcnt > 0) {
- var humCount = model.getValue("/root/main/qestbasesetup/qestcomps/qestgruplist/qestitemcnt");
- if (humCount == 0) {
- messageBox("기초설문의 설문문항을 1건이상", "C001");
- } else {
- saveCount++;
- }
-
- for (var i = 0; i <= qestitemgrupcnt; i++) {
- var k = i + 1;
- var Count = model.getValue("/root/main/qestbasesetup/qestcomps/qestgruplist["+ k +"]/qestitemcnt");
- if (i != 0) {
- if (Count == 0) {
- messageBox(""+ (i + 1) +" 번째 그룹의 설문문항을 1건이상", "C001");
- } else {
- saveCount++;
- }
- }
- }
-
- if (saveCount > qestitemgrupcnt) {
- model.setValue("/root/main/qestbasesetup/wrteenddd", getCurrentDate());
- model.setValue("/root/main/qestbasesetup/wrtestatcd", "1");
- model.setValue("/root/main/qestbasesetup/savemode", "U");
-
- if (submit("TXCIT00301")) {
- messageBox("설문 내용이 작성완료", "I002", "");
- fGetMsgTmplList();
- fNewMsg();
- } else {
- messageBox("설문 내용 저장에", " E009", "");
- }
- }
-
- } else {
- messageBox("문항 그룹이 존재하지 않아 작성완료를", "E001");
- }
- ]]>
- </script>
- </button>
- <button id="btn_wrteend_cncl" class="btn5_letter6" style="left:1108px; top:369px; width:86px; height:19px; ">
- <caption>작성완료 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/qestbasesetup/wrteenddd", "");
- model.setValue("/root/main/qestbasesetup/wrtestatcd", "2");
- model.setValue("/root/main/qestbasesetup/savemode", "U");
-
- var count = model.getValue("/root/main/qestbasesetup/count");
-
- if (count == 0) {
- if (submit("TXCIT00301")) {
- messageBox("설문 내용 작성을 취소", "I002", "");
- fGetMsgTmplList();
- fNewMsg();
- }
- } else {
- messageBox("설문이 실행중인 설문지는 삭제 ", "E001");
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:415px; x2:695px; y2:415px; "/>
- <caption id="caption8" class="tit_2" style="left:0px; top:400px; width:120px; height:13px; ">설문지 기본설정</caption>
- <button id="btn_spclchar" class="btn2_letter4" style="left:631px; top:395px; width:64px; height:19px; ">
- <caption>특수 문자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = true;
- ]]>
- </script>
- </button>
- <line id="line4" class="line_2" style="x1:0px; y1:442px; x2:695px; y2:442px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:420px; width:110px; height:23px; ">설문지 제목</caption>
- <input id="ipt_qpaprtitlcnts" ref="/root/main/qestbasesetup/qpaprtitlcnts" class="input_essential" style="left:113px; top:421px; width:582px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:466px; x2:695px; y2:466px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:444px; width:110px; height:23px; ">설문지 목적</caption>
- <select1 id="cmb_qpaprgoalcd" ref="/root/main/qestbasesetup/qpaprgoalcd" class="combo_essential" appearance="minimal" style="left:113px; top:445px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0106list/C0106">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line6" class="line_2" style="x1:0px; y1:527px; x2:695px; y2:527px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:468px; width:110px; height:60; ">설문지 설명</caption>
- <textarea id="tar_qpaprdesccnts" ref="/root/main/qestbasesetup/qpaprdesccnts" style="left:113px; top:469px; width:582px; height:56; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- var pfocus = "1";
- fSetFocus(pfocus);
- ]]>
- </script>
- </textarea>
- <line id="line7" class="line_2" style="x1:0px; y1:589px; x2:695px; y2:589px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:530px; width:110px; height:60; ">설문시작 안내문구</caption>
- <textarea id="tar_startgidewrdncnts" ref="/root/main/qestbasesetup/startgidewrdncnts" class="input_essential" style="left:113px; top:531px; width:582px; height:56; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- var pfocus = "2";
- fSetFocus(pfocus);
- ]]>
- </script>
- </textarea>
- <line id="line8" class="line_2" style="x1:0px; y1:650px; x2:695px; y2:650px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:591px; width:110px; height:60px; ">주최부서내용</caption>
- <textarea id="tar_hstndeptcnts" ref="/root/main/qestbasesetup/hstndeptcnts" class="input_essential" style="left:113px; top:592px; width:582px; height:56px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- var pfocus = "3";
- fSetFocus(pfocus);
- ]]>
- </script>
- </textarea>
- <line id="line9" class="line_2" style="x1:0px; y1:711px; x2:695px; y2:711px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:652px; width:110px; height:60px; ">설문종료 안내문구</caption>
- <textarea id="tar_endgidewrndcnts" ref="/root/main/qestbasesetup/endgidewrndcnts" class="input_essential" style="left:113px; top:653px; width:582px; height:56; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- var pfocus = "4";
- fSetFocus(pfocus);
- ]]>
- </script>
- </textarea>
- <line id="line10" class="line_2" style="x1:0px; y1:735px; x2:695px; y2:735px; "/>
- <caption id="caption15" class="cell_1" style="left:0px; top:713px; width:110px; height:23px; ">작성상태</caption>
- <select1 id="cmb_wrtestatcd" ref="/root/main/qestbasesetup/wrtestatcd" disabled="true" appearance="minimal" style="left:113px; top:714px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0107list/C0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:356px; top:713px; width:110px; height:23px; ">작성완료일자</caption>
- <input id="ipt_wrteenddd" ref="/root/main/qestbasesetup/wrteenddd" disabled="true" style="left:469px; top:714px; width:226px; height:19px; "/>
- <line id="line11" class="line_3" style="x1:0px; y1:759px; x2:695px; y2:759px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:737px; width:110px; height:23px; ">등록부서</caption>
- <input id="ipt_rgstdeptcd" ref="/root/main/qestbasesetup/rgstdeptnm" disabled="true" style="left:113px; top:738px; width:200px; height:19px; "/>
- <button id="btn_deptsearch" class="icon_search" style="left:316px; top:738px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "deptnm";
- var search_term = model.getValue("/root/main/qestbasesetup/rgstdeptnm");
- var receive_deptcd_path = "/root/main/qestbasesetup/rgstdeptcd";
- var receive_deptnm_path = "/root/main/qestbasesetup/rgstdeptnm";
-
- cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- ]]>
- </script>
- </button>
- <caption id="caption18" class="cell_1" style="left:356px; top:737px; width:110px; height:23px; ">등록자</caption>
- <input id="ipt_rgstid" ref="/root/main/qestbasesetup/rgstnm" disabled="true" style="left:469px; top:738px; width:200px; height:19px; "/>
- <button id="btn_rgstrsearch" class="icon_search" style="left:672px; top:738px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var search_condition = "empnm";
- var search_term = model.getValue("/root/main/qestbasesetup/rgstnm");
-
- var receive_empid_path = "/root/main/qestbasesetup/rgstid";
- var receive_empnm_path = "/root/main/qestbasesetup/rgstnm";
- var receive_deptcd_path = "/root/main/qestbasesetup/rgstdeptcd";
- var receive_deptnm_path = "/root/main/qestbasesetup/rgstdeptnm";
-
- 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("SPCCM00400")
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_empid_path");
- clearParameter("receive_empnm_path");
- clearParameter("receive_deptcd_path");
- clearParameter("receive_deptnm_path");
- ]]>
- </script>
- </button>
- <line id="line12" class="line_1" style="x1:705px; y1:415px; x2:1194px; y2:415px; "/>
- <caption id="caption19" class="tit_2" style="left:705px; top:400px; width:100px; height:13px; ">설문지 구성</caption>
- <button id="btn_qestcompsmngt" class="btn2_letter7" style="left:1097px; top:395px; width:97px; height:19px; ">
- <caption>설문지 구성관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var qpaprseqno = model.getValue("/root/main/qestbasesetup/qpaprseqno");
- var humtrafactposcd = model.getValue("/root/main/qestbasesetup/qestcomps/humtrafactposcd");
- var qestitemgrupcnt = model.getValue("/root/main/qestbasesetup/qestcomps/qestitemgrupcnt");
- var stinqestcnt = model.getValue("/root/main/qestbasesetup/qestcomps/stinqestcnt");
-
- setParameter("qpaprseqno", qpaprseqno);
- setParameter("humtrafactposcd", humtrafactposcd);
- setParameter("qestitemgrupcnt", qestitemgrupcnt);
- setParameter("stinqestcnt", stinqestcnt);
-
- modal("SPCIT00500");
-
- fGetMsgTmplList();
- fSetupBase(gRow);
- // 선택했던 row 를 선택시킨다(포커스 이동은 안함)
- grd_satsfctqestlist.isselected(gRow) = true;
- clearParameter("qpaprseqno");
- clearParameter("humtrafactposcd");
- clearParameter("qestitemgrupcnt");
- clearParameter("stinqestcnt");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_2" style="x1:705px; y1:442px; x2:1195px; y2:442px; "/>
- <caption id="caption20" class="cell_1" style="left:705px; top:420px; width:110px; height:23px; ">문항 그룹수</caption>
- <caption id="caption21" class="cell_1" style="left:951px; top:420px; width:110px; height:23px; ">기초설문 위치</caption>
- <select1 id="cmb_qestitemgrupcnt" ref="/root/main/qestbasesetup/qestcomps/qestitemgrupcnt" disabled="true" appearance="minimal" style="left:818px; top:421px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>없음</label>
- <value>0</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- <item>
- <label>8</label>
- <value>8</value>
- </item>
- <item>
- <label>9</label>
- <value>9</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_humtrafactposcd" ref="/root/main/qestbasesetup/qestcomps/humtrafactposcd" disabled="true" appearance="minimal" style="left:1064px; top:421px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0108list/C0108">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_qestgruplist" nodeset="/root/main/qestbasesetup/qestcomps/qestgruplist" allowuserresize="false" caption="그룹 명^설문 문항수^" colsep="^" colwidth="396, 70, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:705px; top:444px; width:489px; height:292px; ">
- <col ref="qestitemgrupnm"/>
- <col ref="qestitemcnt"/>
- <col ref="qpaprseqno" visibility="hidden"/>
- <col ref="qestitemgrupseqno" visibility="hidden"/>
- </datagrid>
- <line id="line14" class="line_3" style="x1:705px; y1:759px; x2:1195px; y2:759px; "/>
- <caption id="caption22" class="cell_1" style="left:705px; top:737px; width:110px; height:23px; ">설문 총 문항수</caption>
- <output id="opt_stinqestcnt" ref="/root/main/qestbasesetup/qestcomps/stinqestcnt" style="left:818px; top:738px; width:60px; height:19px; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption23" style="left:881px; top:737px; width:15px; height:23px; ">건</caption>
- <group id="group4" visibility="hidden" style="left:285px; top:325px; width:340px; height:90px; ">
- <button id="caption40" class="btn_number" style="left:5px; top:68px; width:39px; height:19px; ">
- <caption>@</caption>
- </button>
- <button id="caption41" class="btn_number" style="left:47px; top:68px; width:39px; height:19px; ">
- <caption>♨</caption>
- </button>
- <button id="caption42" class="btn_number" style="left:89px; top:68px; width:39px; height:19px; ">
- <caption>☎</caption>
- </button>
- <button id="caption31" class="btn_number" style="left:299px; top:24px; width:39px; height:19px; ">
- <caption>♥</caption>
- </button>
- <button id="button2" class="btn_number" style="left:215px; top:2px; width:39px; height:19px; ">
- <caption>◎</caption>
- </button>
- <button id="caption43" class="btn_number" style="left:131px; top:68px; width:39px; height:19px; ">
- <caption>☜</caption>
- </button>
- <button id="caption32" class="btn_number" style="left:5px; top:46px; width:39px; height:19px; ">
- <caption>♧</caption>
- </button>
- <button id="button3" class="btn_number" style="left:257px; top:2px; width:39px; height:19px; ">
- <caption>◇</caption>
- </button>
- <button id="caption44" class="btn_number" style="left:173px; top:68px; width:39px; height:19px; ">
- <caption>☞</caption>
- </button>
- <button id="caption33" class="btn_number" style="left:47px; top:46px; width:39px; height:19px; ">
- <caption>♣</caption>
- </button>
- <button id="button4" class="btn_number" style="left:299px; top:2px; width:39px; height:19px; ">
- <caption>◆</caption>
- </button>
- <button id="caption45" class="btn_number" style="left:215px; top:68px; width:39px; height:19px; ">
- <caption>%</caption>
- </button>
- <button id="caption34" class="btn_number" style="left:89px; top:46px; width:39px; height:19px; ">
- <caption>◁</caption>
- </button>
- <button id="button5" class="btn_number" style="left:5px; top:24px; width:39px; height:19px; ">
- <caption>□</caption>
- </button>
- <button id="caption46" class="btn_number" style="left:257px; top:68px; width:39px; height:19px; ">
- <caption>☏</caption>
- </button>
- <button id="caption35" class="btn_number" style="left:131px; top:46px; width:39px; height:19px; ">
- <caption>◀</caption>
- </button>
- <button id="caption24" class="btn_number" style="left:47px; top:24px; width:39px; height:19px; ">
- <caption>■</caption>
- </button>
- <button id="caption47" class="btn_number" style="left:299px; top:68px; width:39px; height:19px; ">
- <caption>♪</caption>
- </button>
- <button id="caption36" class="btn_number" style="left:173px; top:46px; width:39px; height:19px; ">
- <caption>▷</caption>
- </button>
- <button id="caption25" class="btn_number" style="left:89px; top:24px; width:39px; height:19px; ">
- <caption>△</caption>
- </button>
- <button id="caption37" class="btn_number" style="left:215px; top:46px; width:39px; height:19px; ">
- <caption>▶</caption>
- </button>
- <button id="caption26" class="btn_number" style="left:131px; top:24px; width:39px; height:19px; ">
- <caption>▲</caption>
- </button>
- <button id="button6" class="btn_number" style="left:5px; top:2px; width:39px; height:19px; ">
- <caption>●</caption>
- </button>
- <button id="caption38" class="btn_number" style="left:257px; top:46px; width:39px; height:19px; ">
- <caption>♤</caption>
- </button>
- <button id="caption27" class="btn_number" style="left:173px; top:24px; width:39px; height:19px; ">
- <caption>▽</caption>
- </button>
- <button id="button7" class="btn_number" style="left:47px; top:2px; width:39px; height:19px; ">
- <caption>※</caption>
- </button>
- <button id="caption39" class="btn_number" style="left:299px; top:46px; width:39px; height:19px; ">
- <caption>♠</caption>
- </button>
- <button id="caption28" class="btn_number" style="left:215px; top:24px; width:39px; height:19px; ">
- <caption>▼</caption>
- </button>
- <button id="button8" class="btn_number" style="left:89px; top:2px; width:39px; height:19px; ">
- <caption>☆</caption>
- </button>
- <button id="caption29" class="btn_number" style="left:257px; top:24px; width:39px; height:19px; ">
- <caption>♡</caption>
- </button>
- <button id="button9" class="btn_number" style="left:131px; top:2px; width:39px; height:19px; ">
- <caption>★</caption>
- </button>
- <button id="button10" class="btn_number" style="left:173px; top:2px; width:39px; height:19px; ">
- <caption>○</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var tar_path = "";
-
- if ( gTextFocus == "1") {
- tar_path = tar_qpaprdesccnts; // 설명
- model.setFocus("tar_qpaprdesccnts");
- } else if ( gTextFocus == "2") {
- tar_path = tar_startgidewrdncnts; // 시작
- model.setFocus("tar_startgidewrdncnts");
- } else if ( gTextFocus == "3") {
- tar_path = tar_hstndeptcnts; // 부서
- model.setFocus("tar_hstndeptcnts");
- } else if ( gTextFocus == "4") {
- tar_path = tar_endgidewrndcnts; // 종료
- model.setFocus("tar_endgidewrndcnts");
- } else {
- tar_path = tar_qpaprdesccnts; // 설명
- model.setFocus("tar_qpaprdesccnts");
- }
-
- var trgObj = document.controls.item(event.target);
-
- if( trgObj.elementName == "xforms:button" ) {
-
- var btnMark = trgObj.label;
- var txtSelPos = tar_path.selBegin;
- var curText = tar_path.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_path.currentText = curTextBefore + btnMark + curTextAfter;
-
- tar_path.selBegin = txtSelPos + 1;
- tar_path.dispatch("onkeyup");
-
- group4.visible = false;
-
- }
- ]]>
- </script>
- </group>
- </xhtml:body>
- </xhtml:html>
|