123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?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>
- <reptinfo>
- </reptinfo>
- <copyinfo/>
- </main>
- <hidden/>
- <temp>
- <choireptitemid/>
- <csv>
- <qest/>
- <item/>
- </csv>
- </temp>
- <init/>
- <send>
- <req>
- <yy/>
- <apprtcdrflag/>
- <reptinfo/>
- </req>
- <save>
- <reptqestlist/>
- <reptitemlist/>
- </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_reptinfo, null, "TRRTS00502", "Y");
- // misfMsterDetailSet(grd_item, grd_reptinfo, "TRRTS00502", "Y");
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- ipt_yy.value=cur_yy;
- grd_reptinfo.rowHeight(0) = 30;
- misfComboComCdList('R0151', cmb_trngflag);
- for (var i=0; i<=grd_reptinfo.cols; i++)
- {
- grd_reptinfo.mergeCol(i) = false;
- }
-
- grd_reptinfo.mergeCol(grd_reptinfo.colRef("catgrysortseq")) = true;
- grd_reptinfo.mergeCol(grd_reptinfo.colRef("catgryid")) = true;
- grd_reptinfo.mergeCol(grd_reptinfo.colRef("catgrynm")) = true;
- grd_reptinfo.refresh();
- ]]>
- </script>
- <submission id="TXRTS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/rs"/>
- <submission id="TXRTS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/rs"/>
- <submission id="TRRTS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/reptinfo"/>
- <submission id="TRRTS00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/reptinfo" resultref="/root/main/reptinfo"/>
- </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;
- }
-
- if (submit("TRRTS00502"))
- {
- if (grd_reptinfo.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_reptinfo.row = 1;
- grd_reptinfo.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/reptinfo/reptqestlist")) );
- model.setValue("/root/temp/csv/item", getNodeListCSV(model.instances(0).selectNodes("/root/main/reptinfo/reptitemlist")) );
- misfSetReadOnlyCol(grd_reptinfo, "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; "/>
- <select1 id="cmb_trngflag" ref="/root/send/req/apprtcdrflag" class="combo_s_essential" appearance="minimal" style="left:258px; top:14px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <caption id="cap_trngflag" class="search_name" style="left:160px; top:15px; width:110px; height:17px; ">전공의구분 :</caption>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
- <datagrid id="grd_reptinfo" nodeset="/root/main/reptinfo/reptqestlist" caption="사용^순서^카테고리ID^카테고리명^년도^전공의구분^seqno^문항ID^질문내용^답변내용^기타답변^필수^순서^사용" colsep="^" colwidth="0, 35, 69, 143, 33, 0, 0, 0, 545, 61, 30, 25, 31, 38" 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="apprtcdrflag" visibility="visible"/>
- <col ref="seqno" visibility="visible"/>
- <col ref="reptitemid"/>
- <col ref="qestcnts" type="input"/>
- <col ref="answcnts" 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 reptitemid = grd_reptinfo.valueMatrix(grd_reptinfo.row, grd_reptinfo.colRef("reptitemid"));
-
- grd_item.nodeset = "/root/main/reptinfo/reptitemlist[reptitemid='"+reptitemid+"']";
- grd_item.refresh();
-
- if (grd_reptinfo.valueMatrix(grd_reptinfo.row, grd_reptinfo.colRef("answcnts")) == "1" ||
- grd_reptinfo.valueMatrix(grd_reptinfo.row, grd_reptinfo.colRef("reptitemid")) == "")
- {
- 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[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_reptinfo.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_reptinfo,"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_reptinfo.row;
- var p_rows = grd_reptinfo.rows;
- grd_reptinfo.insertRow(p_row,"below", "false", "true");
- var srcRowIdx = grd_reptinfo.row - 1;
- var destRowIdx = grd_reptinfo.row;
- var catgryid =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgryid"));
- var catgrynm =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrynm"));
- var yy = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("yy"));
- var apprtcdrflag = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("apprtcdrflag"));
- var catgrysortseq = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrysortseq"));
- if( p_rows== destRowIdx){
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = 'Y';
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = parseFloat(catgrysortseq)+1;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("sortseq")) = '1';
- grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = false;
-
- }else{
- grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = true;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid")) = catgryid;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrynm")) = catgrynm;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = "Y";
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
- grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = catgrysortseq;
-
-
-
- }
-
- /* for (var i=0; i<grd_reptinfo.cols; i++)
- {
- grd_reptinfo.valueMatrix(destRowIdx, i) = grd_reptinfo.valueMatrix(srcRowIdx, i);
- }
-
- var catgryid = grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid"));
-
-
- grd_reptinfo.col = grd_reptinfo.colRef("qestcnts");*/
-
-
- grd_reptinfo.dispatch("onrowchanged");
-
- grd_reptinfo.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/reptinfo/reptitemlist" caption="reptitemid^코드^명칭^순서^caption1" colsep="^" colwidth="0, 50, 106, 61, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:955px; top:70px; width:240px; height:650px; ">
- <col ref="reptitemid"/>
- <col ref="reptitemcd" type="input"/>
- <col ref="reptitemnm" 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[
- grd_item.deleteRow(grd_item.row, true);
- ]]>
- </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_reptinfo.valueMatrix(grd_reptinfo.row, grd_reptinfo.colRef("reptitemid")) == "")
- {
- messageBox("선택된 문항이 없습니다.", "I", "");
- }
- else
- {
- model.setFocus("grd_item");
-
- grd_item.insertRow(grd_item.row, "below", true);
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("reptitemid")) = grd_reptinfo.valueMatrix(grd_reptinfo.row, grd_reptinfo.colRef("reptitemid"));
- }
- ]]>
- </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("SMRTS00500_qest", getNodeListCSV(model.instances(0).selectNodes("/root/main/reptinfo/reptqestlist")) );
- setParameter("SMRTS00500_item", getNodeListCSV(model.instances(0).selectNodes("/root/main/reptinfo/reptitemlist")) );
-
- modalUrl("../../../mis/tistrngeducplanmngtweb/xrw/SMRTS00500_근무보고서입력.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_reptinfo);
- var updtdatasb = getGridUpdateData(grd_item);
-
- if (updtdata == "" && updtdatasb =="") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- // if(!checkKeyColumn("grd_reptinfo"))return;
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var savedata = grd_reptinfo.getUpdateData();
- var savedataitem = grd_item.getUpdateData();
- model.setValue("/root/send/save/reptqestlist", savedata);
- model.setValue("/root/send/save/reptitemlist", savedataitem);
- submit("TXRTS00402");
- 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("TXRTS00401");
- return;
- if (submit("TXRTS00401"))
- {
- model.setValue("/root/send/req/yy", model.getValue("/root/main/copyinfo/yy"));
- model.setValue("/root/send/req/apprtcdrflag", model.getValue("/root/main/copyinfo/apprtcdrflag"));
-
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|