123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <lattrminfo>
- <qestlattrmlist/>
- <lattrmitemlist/>
- </lattrminfo>
- <copyinfo/>
- </main>
- <hidden/>
- <temp>
- <choiitemid/>
- <csv>
- <qest/>
- <item/>
- </csv>
- </temp>
- <init/>
- <send>
- <req>
- <yy/>
- <reptinfo/>
- </req>
- <save>
- <qestlattrmlist/>
- <lattrmitemlist/>
- </save>
- </send>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00400.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfMsterDetailSet(grd_lattrmqest, null, "TRRTS01951", "Y");
- // misfMsterDetailSet(grd_item, grd_lattrmqest, "TRRTS00502", "Y");
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- ipt_yy.value=cur_yy;
- grd_lattrmqest.rowHeight(0) = 30;
- for (var i=0; i<=grd_lattrmqest.cols; i++)
- {
- grd_lattrmqest.mergeCol(i) = false;
- }
-
- grd_lattrmqest.mergeCol(grd_lattrmqest.colRef("catgrysortseq")) = true;
- grd_lattrmqest.mergeCol(grd_lattrmqest.colRef("catgryid")) = true;
- grd_lattrmqest.mergeCol(grd_lattrmqest.colRef("catgrynm")) = true;
- grd_lattrmqest.refresh();
- ]]>
- </script>
- <submission id="TRRTS00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/lattrminfo" resultref="/root/main/lattrminfo"/>
- <submission id="TRRTS01951" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/lattrminfo"/>
- <submission id="TXRTS01951" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/rs"/>
- <submission id="TXRTS01952" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/rs"/>
- </model>
- </xhtml:head>
- <xhtml:body>
- <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; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line207" class="line_1" style="x1:0px; y1:65px; x2:950px; y2:65px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1127px; top:13px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( !isRequiredControls("ipt_yy", "cmb_trngflag") )
- {
- return false;
- }
- submit("TRRTS01951")
- if (submit("TRRTS01951"))
- {
- if (grd_lattrmqest.rows > 1)
- {
- btn_preview.disabled = false;
- btn_addqest.disabled = false;
- btn_delqest.disabled = false;
- btn_execl.disabled = false;
-
- btn_additem.disabled = false;
- btn_delitem.disabled = false;
-
- btn_save.disabled = false;
-
- grd_lattrmqest.row = 1;
- grd_lattrmqest.dispatch("onrowchanged");
- }
- else
- {
- btn_preview.disabled = true;
- btn_addqest.disabled = true;
- btn_delqest.disabled = true;
- btn_execl.disabled = true;
-
- btn_additem.disabled = true;
- btn_delitem.disabled = true;
-
- btn_save.disabled = true;
- }
-
- model.setValue("/root/temp/csv/qest", getNodeListCSV(model.instances(0).selectNodes("/root/main/lattrminfo/lattrmqestlist")) );
- model.setValue("/root/temp/csv/item", getNodeListCSV(model.instances(0).selectNodes("/root/main/lattrminfo/lattrmitemlist")) );
- misfSetReadOnlyCol(grd_lattrmqest, "catgryid", true);
- }
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1110px; y1:11px; x2:1110px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" format="yyyy" style="left:90px; top:14px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
- <datagrid id="grd_lattrmqest" nodeset="/root/main/lattrminfo/qestlattrmlist" caption="사용^순서^카테고리ID^카테고리명^년도^seqno^문항ID^질문내용^답변내용^기타답변^필수^순서^사용" colsep="^" colwidth="30, 35, 69, 201, 33, 58, 97, 545, 61, 30, 25, 31, 30" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:70px; width:950px; height:650px; ">
- <col ref="catgryuseyn" visibility="hidden"/>
- <col ref="catgrysortseq" type="input" style="text-align:center; "/>
- <col ref="catgryid" type="input" style="text-align:center; "/>
- <col ref="catgrynm" type="input"/>
- <col ref="yy" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="itemid" visibility="hidden"/>
- <col ref="qestcnts" type="input"/>
- <col ref="answtype" type="combo">
- <choices>
- <item>
- <label>자유입력</label>
- <value>1</value>
- </item>
- <item>
- <label>단일선택</label>
- <value>2</value>
- </item>
- <item>
- <label>다중선택</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="objtivtestchoicnt" type="combo">
- <choices>
- <item>
- <label>N</label>
- <value>0</value>
- </item>
- <item>
- <label>Y</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="essnyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="sortseq" type="input" visibility="visible" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="itemuseyn" type="checkbox"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var itemid = grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid"));
-
- grd_item.nodeset = "/root/main/lattrminfo/lattrmitemlist[itemid='"+itemid+"']";
- grd_item.refresh();
-
- if (grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("answtype")) == "1" ||
- grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid")) == "")
- {
- btn_additem.disabled = true;
- btn_delitem.disabled = true;
- }
- else
- {
- btn_additem.disabled = false;
- btn_delitem.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_execl" class="btn2_letter4" style="left:880px; top:44px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("test");
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_intntrnghospplanlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="btn_delqest" class="btn2_letter3" style="left:825px; top:44px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_lattrmqest,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addqest" class="btn2_letter3" style="left:770px; top:44px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var p_row = grd_lattrmqest.row;
- var p_rows = grd_lattrmqest.rows;
- grd_lattrmqest.insertRow(p_row,"below", "false", "true");
- if (grd_lattrmqest.row==-1){
- var srcRowIdx = 1;
- var destRowIdx = 1;
- grd_lattrmqest.addRow(true, false);
- }else{
- var srcRowIdx = grd_lattrmqest.row - 1;
- var destRowIdx = grd_lattrmqest.row;
- }
- var srcRowIdx = grd_lattrmqest.row - 1;
- var destRowIdx = grd_lattrmqest.row;
- var catgryid =grd_lattrmqest.valueMatrix(srcRowIdx, grd_lattrmqest.colRef("catgryid"));
- var catgrynm =grd_lattrmqest.valueMatrix(srcRowIdx, grd_lattrmqest.colRef("catgrynm"));
- var yy = grd_lattrmqest.valueMatrix(srcRowIdx, grd_lattrmqest.colRef("yy"));
- var catgrysortseq = grd_lattrmqest.valueMatrix(srcRowIdx, grd_lattrmqest.colRef("catgrysortseq"));
- if( p_rows== destRowIdx){
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("yy")) = yy;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgryuseyn")) = 'Y';
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("itemuseyn")) = 'Y';
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgrysortseq")) = parseFloat(catgrysortseq)+1;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("sortseq")) = '1';
- grd_lattrmqest.isReadOnly(destRowIdx.row, grd_lattrmqest.colRef("catgryid")) = false;
-
- }else{
- grd_lattrmqest.isReadOnly(destRowIdx.row, grd_lattrmqest.colRef("catgryid")) = true;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgryid")) = catgryid;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgrynm")) = catgrynm;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("yy")) = yy;
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgryuseyn")) = "Y";
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("itemuseyn")) = 'Y';
- grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgrysortseq")) = catgrysortseq;
-
- }
-
- /* for (var i=0; i<grd_lattrmqest.cols; i++)
- {
- grd_lattrmqest.valueMatrix(destRowIdx, i) = grd_lattrmqest.valueMatrix(srcRowIdx, i);
- }
-
- var catgryid = grd_lattrmqest.valueMatrix(destRowIdx, grd_lattrmqest.colRef("catgryid"));
-
-
- grd_lattrmqest.col = grd_lattrmqest.colRef("qestcnts");*/
-
-
- grd_lattrmqest.dispatch("onrowchanged");
-
- grd_lattrmqest.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption22" class="tit_2" style="left:5px; top:50px; width:80px; height:13px; ">문항</caption>
- <datagrid id="grd_item" nodeset="/root/main/lattrminfo/lattrmitemlist" caption="itemid^코드^명칭^순서^caption1" colsep="^" colwidth="0, 50, 106, 61, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:955px; top:70px; width:240px; height:650px; ">
- <col ref="itemid"/>
- <col ref="itemcd" type="input"/>
- <col ref="itemnm" type="input"/>
- <col ref="sortseq" type="input" maxlength="2"/>
- <col ref="useyn" visibility="hidden"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:955px; y1:65px; x2:1194px; y2:65px; "/>
- <caption id="caption1" class="tit_2" style="left:965px; top:50px; width:80px; height:13px; ">보기</caption>
- <button id="btn_delitem" class="btn2_letter3" style="left:1135px; top:44px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_item,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_additem" class="btn2_letter3" style="left:1080px; top:44px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid")) == "")
- {
- messageBox("선택된 문항이 없습니다.", "I", "");
- }
- else
- {
- model.setFocus("grd_item");
-
- grd_item.insertRow(grd_item.row, "below", true);
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("itemid")) = grd_lattrmqest.valueMatrix(grd_lattrmqest.row, grd_lattrmqest.colRef("itemid"));
- }
- ]]>
- </script>
- </button>
- <button id="btn_preview" class="btn2_letter4" style="left:705px; top:44px; width:64px; height:19px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMRTS02050_qest", getNodeListCSV(model.instances(0).selectNodes("/root/main/lattrminfo/qestlattrmlist")) );
- setParameter("SMRTS02050_item", getNodeListCSV(model.instances(0).selectNodes("/root/main/lattrminfo/lattrmitemlist")) );
-
- modalUrl("../../../mis/tistrngeducplanmngtweb/xrw/SMRTS02050_사랑나눔교육후기입력.xrw", 1, 0, 0, "", "", "");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_lattrmqest);
- var updtdatasb = getGridUpdateData(grd_item);
-
- if (updtdata == "" && updtdatasb =="") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- // if(!checkKeyColumn("grd_lattrmqest"))return;
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var savedata = grd_lattrmqest.getUpdateData();
- var savedataitem = grd_item.getUpdateData();
- model.setValue("/root/send/save/qestlattrmlist", savedata);
- model.setValue("/root/send/save/lattrmitemlist", savedataitem);
- submit("TXRTS01952");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_copy" class="btn4_letter6" style="left:1005px; top:3px; width:104px; height:22px; ">
- <caption>전년도 Copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TXRTS01951");
- return;
- if (submit("TXRTS01951"))
- {
- model.setValue("/root/send/req/yy", model.getValue("/root/main/copyinfo/yy"));
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|