123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <addFile>파일추가</addFile>
- <addProd>목록추가</addProd>
- <prodDelete>선택행삭제</prodDelete>
- <Update>저장</Update>
- <fileDelete>선택행삭제</fileDelete>
- <todaydd/>
- <seqnum>
- <seqnum1>
- <seq/>
- </seqnum1>
- </seqnum>
- <allFile>전체목록</allFile>
- <searchflag>
- <cdflag>
- <cdflaglist/>
- <cdflagvalue/>
- </cdflag>
- </searchflag>
- <search>
- <title/>
- </search>
- </cond>
- <savedata>
- <titl/>
- <goal/>
- <keyword1/>
- <keyword2/>
- <keyword3/>
- <keyword4/>
- <keyword5/>
- <keyword6/>
- <upcdflag>
- <cdflag>
- <cdflaglist/>
- <cdflagvalue/>
- </cdflag>
- </upcdflag>
- <upcdnm1>
- <cdnm>
- <cdnmlist/>
- <cdnmvalue/>
- </cdnm>
- </upcdnm1>
- <upcdnm2>
- <cdnm>
- <cdnmlist/>
- <cdnmvalue/>
- </cdnm>
- </upcdnm2>
- <upcdnm3>
- <cdnm>
- <cdnmlist/>
- <cdnmvalue/>
- </cdnm>
- </upcdnm3>
- </savedata>
- <list1>
- <prodList>
- <cdnm1/>
- <cdsid/>
- <cdgrupid/>
- <cdid/>
- <title/>
- <goal/>
- <keyword/>
- <seq/>
- </prodList>
- </list1>
- <list2>
- <fileList>
- <filename/>
- <filepath/>
- <seq/>
- <no/>
- </fileList>
- </list2>
- <list3>
- <fileList>
- <check/>
- <filename/>
- </fileList>
- </list3>
- <listresult>
- <resultList>
- <titl/>
- <goal/>
- <keyword/>
- <filename/>
- <name/>
- </resultList>
- </listresult>
- <savedata1/>
- </main>
- <send/>
- <init>
- <upcdflag>
- <cdflag>
- <cdflaglist/>
- <cdflagvalue/>
- </cdflag>
- </upcdflag>
- <flag>False</flag>
- <selectedseq/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 처음 load시 산출물 등록 목록 및 파일등록 목록의 행을 모두 삭제
- model.removeNodeset("/root/main/list1/prodList");
- model.removeNodeset("/root/main/list2/fileList");
- model.removeNodeset("/root/main/list3/fileList");
-
- // 분류의combo내용을 DB의 master table로 부터 불러옴
- submit("TRZPP00201");
-
- model.copyNode("/root/main/savedata/upcdflag", "/root/init/upcdflag");
- model.copyNode("/root/main/cond/searchflag", "/root/init/upcdflag");
-
- //대분류의 combo내용을 DB의 master table로 부터 불러옴
- submit("TRZPP00202");
-
- //seq
- submit("TRZPP00209");
-
- // //조회기준일별 저장확인
- // var today = getCurrentDate("/root/main/cond/todaydd");
- // model.setValue("/root/main/cond/todaydd",today);
- // model.refresh();
- ]]>
- </script>
- <submission id="TRZPP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/upcdflag"/>
- <submission id="TRZPP00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/savedata/upcdnm1"/>
- <submission id="TRZPP00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/savedata/upcdnm2"/>
- <submission id="TRZPP00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/savedata/upcdnm3"/>
- <submission id="TRZPP00209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/seqnum"/>
- <submission id="TRZPP00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRZPP00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TRZPP00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list2"/>
- <submission id="TXZPP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TXZPP00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXZPP00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../commonweb/js/common.js"/>
- <script type="javascript" src="../../commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function init() {
- //임시저장 버튼 클릭 후 등록창의 저장 내용을 초기화
- model.removeNodeset("/root/main/savedata/upcdflag");
- model.removeNodeset("/root/main/savedata/upcdnm1");
- model.removeNodeset("/root/main/savedata/upcdnm2");
- model.removeNodeset("/root/main/savedata/upcdnm3");
- //--제목
- model.setValue("/root/main/savedata/titl","");
- //--목적
- model.setValue("/root/main/savedata/goal","");
- //-- 키워드
- for (var i = 1 ; i <7 ; i ++){
- model.setValue("/root/main/savedata/keyword"+i,"");
- }
- model.removeNodeset("/root/main/list2/fileList");
-
- model.setValue("/root/init/flag", false);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,784;2,776;2,784;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="btn_save" class="btn4_letter2" ref="/root/main/cond/Update" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1138px; top:744px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // //저장할 내용이 없는 경우
- // if(grd_prodatalist.rows-grd_prodatalist.fixedRows == 0){
- // alert("저장할 산출물이 없습니다");
- // }
- //
- // else{
- // //업로드할 행의 개수
- // var rownum = grd_prodatalist.rows;
- // //첫번째 행부터 업로드한다.
- // for (var i =1 ; i < rownum ; i++){
- // //alert(i);
- // var cdflag = model.getValue("/root/main/list1/prodList["+1+"]/cdflag");
- // model.makeValue("/root/send/cdflag",cdflag); //** 분류명을 받아 분류코드를 찾는다.
- // var cdnm1 = model.getValue("/root/main/list1/prodList["+1+"]/cdnm1");
- // model.makeValue("/root/send/cdnm1",cdnm1);
- // var cdnm2 = model.getValue("/root/main/list1/prodList["+1+"]/cdnm2");
- // model.makeValue("/root/send/cdnm2",cdnm2);
- // var cdnm3 = model.getValue("/root/main/list1/prodList["+1+"]/cdnm3");
- // model.makeValue("/root/send/cdnm3",cdnm3);
- // var titl = model.getValue("/root/main/list1/prodList["+1+"]/titl");
- // model.makeValue("/root/send/titl",titl);
- // var goal = model.getValue("/root/main/list1/prodList["+1+"]/goal");
- // model.makeValue("/root/send/goal",goal);
- // var keyword = model.getValue("/root/main/list1/prodList["+1+"]/keyword");
- // model.makeValue("/root/send/keyword",keyword);
- // var inseq = model.getValue("/root/main/list1/prodList["+1+"]/inseq");
- // model.makeValue("/root/send/inseq",inseq);
- // //alert(cdflag + cdnm1+ cdnm2 + cdnm3 + titl + goal + keyword + inseq);
- // submit("TRZPP00208");
- // grd_prodatalist.deleteRow(1);
- // }
- // var filerow = grd_filelist.rows;
- // //첫번째 행부터 업로드한다.
- // for (var i =1 ; i < filerow ; i++){
- // //alert(i);
- // var filename = model.getValue("/root/main/list2/fileList["+1+"]/filename");
- // model.makeValue("/root/send/filename",filename);
- // var filepath = model.getValue("/root/main/list2/fileList["+1+"]/filepath");
- // model.makeValue("/root/send/filepath",filepath);
- // var inseq = model.getValue("/root/main/list2/fileList["+1+"]/inseq");
- // model.makeValue("/root/send/inseq",inseq);
- //
- // submit("TRZPP00210");
- // grd_filelist.deleteRow(1);
- // }
- // var deletefilelist = datagrid4.rows-datagrid4.fixedRows;
- // for (var b = 0 ; b < deletefilelist ; b++){
- // datagrid4.deleteRow(1);
- // }
- //
- // }
-
- //저장할 내용이 없는 경우
- if(cmb_cdflag.value=="" || ipt_titl.value=="") {
- alert("저장할 산출물이 없습니다");
- } else{
- //alert(i);
- var cdflag = model.getValue("/root/main/savedata/upcdflag/cdflag");
- model.makeValue("/root/send/cdflag",cdflag); //** 분류명을 받아 분류코드를 찾는다.
- var cdnm1 = model.getValue("/root/main/savedata/upcdnm1/cdnm");
- model.makeValue("/root/send/cdnm1",cdnm1);
- var cdnm2 = model.getValue("/root/main/savedata/upcdnm2/cdnm");
- model.makeValue("/root/send/cdnm2",cdnm2);
- var cdnm3 = model.getValue("/root/main/savedata/upcdnm3/cdnm");
- model.makeValue("/root/send/cdnm3",cdnm3);
-
- var titl = model.getValue("/root/main/savedata/titl");
- model.makeValue("/root/send/titl",titl);
- var goal = model.getValue("/root/main/savedata/goal");
- model.makeValue("/root/send/goal",goal);
-
- //-- 키워드
- var keyword=new Array(6);
- var keywordres="";
- var count = 0;
- for (i = 0 ; i <7 ; i++){
- keyword[i] = model.getValue("/root/main/savedata/keyword"+ i );
- if (keyword[i] != ""){
- count ++;
-
- if (count == 1){
- keywordres = keyword[i];
- }
- else {
- keywordres = keywordres + "," + keyword[i];
- }
- }
- }
- model.makeValue("/root/send/keyword",keywordres);
-
- var flag=model.getValue("/root/init/flag");
- var inseq=0;
-
- //flag(True: prodatalist에서 seq를 가져오는 경우 update 쿼리문, False: 새로운 산출물을 입력하는 경우 insert쿼리문)
- if(flag=="False") {
- inseq=Number(ipt_seqnum.value)+1;
- model.makeValue("/root/send/inseq",inseq);
- if(submit("TXZPP00201") == true) {
- //파일이 있을때
- if(grd_filelist.rows-grd_filelist.fixedRows!=0) {
- var filedata=grd_filelist.getUpdateData();
- model.makeValue("/root/send/filedata", filedata);
- submit("TXZPP00203");
- }
- messageBox("성공적으로 저장하였습니다.", "I");
- }
- } else {
- inseq=model.getValue("/root/init/selectedseq");
- model.makeValue("/root/send/inseq",inseq);
- if(submit("TXZPP00202") == true) {
- //파일이 있을때
- if(grd_filelist.rows-grd_filelist.fixedRows!=0) {
- var filedata=grd_filelist.getUpdateData();
- model.makeValue("/root/send/filedata", filedata);
- submit("TXZPP00203");
- }
- messageBox("성공적으로 수정하였습니다.", "I");
- }
- }
- }
-
- // //파일이 있을때
- // if(grd_filelist.rows-grd_filelist.fixedRows!=0) {
- // var filedata=grd_filelist.getUpdateData();
- // model.makeValue("/root/send/filedata", filedata);
- // submit("TXZPP00203");
- // }
-
- init();
-
- // submit("TRZPP00201");
-
- model.makeNode("/root/main/savedata/upcdflag");
- model.makeNode("/root/main/cond/searchflag");
-
- model.copyNode("/root/main/savedata/upcdflag", "/root/init/upcdflag");
- model.copyNode("/root/main/cond/searchflag", "/root/init/upcdflag");
-
- // copyNodeListType("/root/main/savedata/upcdflag", "/root/init/upcdflag", "after");
- // copyNodeListType("/root/main/cond/searchflag", "/root/init/upcdflag", "after");
-
- submit("TRZPP00202");
- model.setValue("/root/main/savedata", "");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:100px; width:131px; height:13px; ">산출물 등록 목록</caption>
- <caption id="caption7" class="tit_1" style="left:0px; top:5px; width:140px; height:13px; ">산출물 등록</caption>
- <datagrid id="grd_prodatalist" nodeset="/root/main/list1/prodList" autoresize="true" caption="분류^분류기준(대)^분류기준(중)^분류기준(소)^제목^목적^키워드^번호" colsep="^" colwidth="120, 120, 120, 120, 250, 250, 192, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:120px; width:1195px; height:452px; border-color:#c0c0c0; ">
- <col ref="cdnm1" type="output"/>
- <col ref="cdsid" type="output"/>
- <col ref="cdgrupid" type="output"/>
- <col ref="cdid" type="output"/>
- <col ref="title" type="output"/>
- <col ref="goal" type="output"/>
- <col ref="keyword" type="output"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //임시저장된 산출물 클릭시 수정창으로 이동
- // model.removeNodeset("/root/main/savedata");
- init();
- //수정여부 클릭
- model.setValue("/root/init/flag", true);
- var selectedSeq=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/seq");
- model.setValue("/root/init/selectedseq", selectedSeq);
- // alert(model.getValue("/root/init/flag"));
- //--분류
- var topresend_cdflag=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/cdnm1");
- model.makeValue("/root/main/savedata/upcdflag/cdflag/cdflaglist", topresend_cdflag);
- model.makeValue("/root/main/savedata/upcdflag/cdflag/cdflagvalue", topresend_cdflag);
-
- //--대분류
- var topresend_cdnm1=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/cdsid");
- model.makeValue("/root/main/savedata/upcdnm1/cdnm/cdnmlist", topresend_cdnm1);
- model.makeValue("/root/main/savedata/upcdnm1/cdnm/cdnmvalue", topresend_cdnm1);
-
-
- var topresend_cdnm2=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/cdgrupid");
- model.makeValue("/root/main/savedata/upcdnm2/cdnm/cdnmlist", topresend_cdnm2);
- model.makeValue("/root/main/savedata/upcdnm2/cdnm/cdnmvalue", topresend_cdnm2);
-
-
-
- var topresend_cdnm3=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/cdid");
- model.makeValue("/root/main/savedata/upcdnm3/cdnm/cdnmlist", topresend_cdnm3);
- model.makeValue("/root/main/savedata/upcdnm3/cdnm/cdnmvalue", topresend_cdnm3);
-
- cmb_cdflag.refresh();
- cmb_cdnm1.refresh();
- cmb_cdnm2.refresh();
- cmb_cdnm3.refresh();
- cmb_cdflag.select(0);
- cmb_cdnm1.select(0);
- cmb_cdnm2.select(0);
- cmb_cdnm3.select(0);
-
- //--제목
- var topresend_titl=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/title");
- model.setValue("/root/main/savedata/titl", topresend_titl);
- //--목적
- var topresend_goal=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/goal");
- model.setValue("/root/main/savedata/goal", topresend_goal);
- //--키워드
- var keywords=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/keyword");
- var keyword=keywords.split(",");
- for (var i =0 ; i < keyword.length ; i++){
- model.setValue("/root/main/savedata/keyword"+(i+1), keyword[i]);
- }
-
- // //산출물 등록 목록 선택 시 파일등록 목록을 초기화
- // var deletefilelist = datagrid4.rows-datagrid4.fixedRows;
- // for (var b = 0 ; b < deletefilelist ; b++){
- // datagrid4.deleteRow(1);
- // }
-
- // //비교하여 해당 seq파일 목록에 가져옴
- // var checkprod = model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/inseq");
- // var totalrownum = grd_filelist.rows;
- // for (var i = 1 ; i < totalrownum ; i ++){
- // //datagrid4.deleteRow();
- // //전체목록의 seq를 첫 행부터 비교
- // var seq = model.getValue("/root/main/list2/fileList["+i+"]/inseq");
- // //checkprod : 목록의 seq
- // if (checkprod == seq){
- // var filename = model.getValue("/root/main/list2/fileList["+i+"]/filename");
- // //alert(filename);
- // datagrid4.addRow();
- // model.makeValue("/root/main/list3/fileList["+datagrid4.row+"]/filename",filename);
- // }
- // }
- // model.refresh();
-
- //파일 리스트 받아오기
- var seq=model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/seq");
- model.makeValue("root/send/seq", seq);
- submit("TRZPP00206");
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:117px; x2:1195px; y2:116px; "/>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <caption id="caption2" class="tit_2" style="left:928px; top:591px; width:131px; height:13px; ">파일 목록</caption>
- <line id="line3" class="line_1" style="x1:928px; y1:607px; x2:1194px; y2:607px; "/>
- <button id="btn_filedel" class="btn2_letter5" ref="/root/main/cond/fileDelete" disable.background-image="../../../com/commonweb/images/dis_btn2_letter5.gif" style="left:1119px; top:585px; width:75px; height:19px; background-image:../../../com/commonweb/images/btn2_letter5.gif; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //행 삭제
- //-- 1.선택된 행(드래그) 삭제
- var selectedRows = grd_filelist.selectedRows;
- var arr = new Array(selectedRows);
- for (var i = 0 ; i <arr.length; i++)
- {
- arr[i]=grd_filelist.selectedRow(i);
- }
-
- for (var i =arr.length-1;i>=0;i--)
- {
- // grd_filelist.deleteRow(arr[i],false);
- deleteSelectedRows(grd_filelist, true);
- }
-
- //-- 2. 체크박스를 이용하여 선택 된 행 삭제
- model.removeNodeset("/root/main/list3/fileList[check='true']"); //인스턴스 a에 해당하는 선택 컬럼이 체크되었다면 true
-
- //-- 2.1전체선택의 체크상태 해제
- grd_filelist.fixedcellischeck(0,0) = false;
-
- grd_filelist.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_keyword1" ref="/root/main/savedata/keyword1" style="left:103px; top:661px; width:196px; height:19px; "/>
- <input id="ipt_keyword2" ref="/root/main/savedata/keyword2" style="left:303px; top:661px; width:196px; height:19px; "/>
- <input id="ipt_keyword3" ref="/root/main/savedata/keyword3" style="left:103px; top:685px; width:196px; height:19px; "/>
- <select1 id="cmb_cdflag" ref="/root/main/savedata/upcdflag/cdflag" class="combo_essential" appearance="minimal" style="left:101px; top:613px; width:398px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/savedata/upcdflag">
- <label ref="cdflag/cdflaglist"/>
- <value ref="cdflag/cdflagvalue"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_titl" ref="/root/main/savedata/titl" class="combo_essential" style="left:605px; top:613px; width:320px; height:19px; "/>
- <select1 id="cmb_cdnm1" ref="/root/main/savedata/upcdnm1/cdnm" appearance="minimal" style="left:103px; top:637px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/savedata/upcdnm1">
- <label ref="cdnm/cdnmlist"/>
- <value ref="cdnm/cdnmvalue"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //대분류 선택시 분류기준의 중분류로 이동(이런식으로^^)
- var flag=model.getValue("/root/init/flag");
-
- var subcdvalue1 = model.getValue("/root/main/savedata/upcdnm1/cdnm");
- model.makeValue("/root/send/flaglist", subcdvalue1);
- model.removenode("/root/main/savedata/upcdnm3/cdnm");
- submit("TRZPP00203");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cdnm2" ref="/root/main/savedata/upcdnm2/cdnm" appearance="minimal" style="left:236px; top:637px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/savedata/upcdnm2">
- <label ref="cdnm/cdnmlist"/>
- <value ref="cdnm/cdnmvalue"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //중분류 선택시 분류기준의 중분류로 이동(이런식으로^^)
- var flag=model.getValue("/root/init/flag");
- var subcdvalue2 = model.getValue("/root/main/savedata/upcdnm2/cdnm");
- model.makeValue("/root/send/flagmiddlelist", subcdvalue2);
- submit("TRZPP00204");
- ]]>
- </script>
- </select1>
- <input id="ipt_keyword4" ref="/root/main/savedata/keyword4" style="left:303px; top:685px; width:196px; height:19px; "/>
- <input id="ipt_keyword5" ref="/root/main/savedata/keyword5" style="left:103px; top:708px; width:196px; height:19px; "/>
- <input id="ipt_keyword6" ref="/root/main/savedata/keyword6" style="left:303px; top:708px; width:196px; height:19px; "/>
- <select1 id="cmb_cdnm3" ref="/root/main/savedata/upcdnm3/cdnm" appearance="minimal" style="left:369px; top:637px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/savedata/upcdnm3">
- <label ref="cdnm/cdnmlist"/>
- <value ref="cdnm/cdnmvalue"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_addfile" class="btn2_letter4" ref="/root/main/cond/addFile" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1050px; top:585px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>파일추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //산출물 등록목록의 컬럼을 선택하지 않은경우 오류창을 띄움
- // model.removeNodeset("/root/main/list3/fileList");
- // var checkprod = model.getValue("/root/main/list1/prodList["+grd_prodatalist.row+"]/seq");
- // if (checkprod == ""){
- // alert("파일을 등록할 산출물을 선택하세요");
- // }
- // else{
- // var file = window.fileDialog(
- // "open",
- // "",
- // false,
- // "",
- // "",
- // "doc Files (*.doc)|*.doc|ppt Files(*.ppt)|*.ppt|");
- //
- // //파일이 선택되었을 경우에만 행 추가
- // if (file != ""){
- // grd_filelist.addRow();
- // model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/filepath",file);
- //
- // //--파일이름을 자르기
- // var togrid_file = model.getValue("/root/main/list2/fileList["+grd_filelist.row+"]/filepath");
- // var s = togrid_file.lastIndexOf("\\");
- // var togrid_file=togrid_file.substring(s+1);
- // model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/filename",togrid_file);
- //
- // //등록목록의 번호를 가져옴
- // model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/inseq",checkprod);
- //
- // //전체 파일의 개수
- // var totalrownum = grd_filelist.rows;
- //
- // for (var i = 1 ; i < totalrownum ; i ++){
- // //전체목록의 seq를 첫 행부터 비교
- // var seq = model.getValue("/root/main/list2/fileList["+i+"]/inseq");
- // //checkprod : 목록의 seq
- // if (checkprod == seq){
- // var filename = model.getValue("/root/main/list2/fileList["+i+"]/filename");
- // datagrid4.addRow();
- // model.makeValue("/root/main/list3/fileList["+datagrid4.row+"]/filename",filename);
- // }
- // }
- // }
- // }
- //
- // model.refresh();
-
- //파일 추가
- if(cmb_cdflag.value=="" || ipt_titl.value=="") {
- alert("파일을 등록할 산출물을 선택하세요");
- } else {
- var file = window.fileDialog(
- "open",
- "",
- false,
- "",
- "",
- "doc Files (*.doc)|*.doc|ppt Files(*.ppt)|*.ppt|all Files(*.*)|*.*");
- //파일이 선택되었을 경우에만 행 추가
- if (file!="") {
- grd_filelist.addRow();
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/filepath",file);
-
- //--파일이름을 자르기
- var togrid_file = model.getValue("/root/main/list2/fileList["+grd_filelist.row+"]/filepath");
- var s = togrid_file.lastIndexOf("\\");
- var filename=togrid_file.substring(s+1);
- var filepath=togrid_file.substring(0,s);
-
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/filepath",filepath);
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/filename",filename);
-
- //prodatalist에서 선택하지 않았거나 filelist에 seq가 없다면
- if(model.getValue("/root/init/flag")=="False") {
- var checkprod=Number(ipt_seqnum.value)+1;
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/seq",checkprod);
- } //prodatalist에서 선택했으나 filelist에 seq가 없다면
- else if(model.getValue("/root/main/list2/fileList/seq")=="" && model.getValue("/root/init/flag")=="True") {
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/seq", model.getValue("/root/init/selectedseq"));
- } //prodadtalist에서 선택하고 filelist에 seq가 있다면
- else if(model.getValue("/root/main/list2/fileList/seq")!="" && model.getValue("/root/init/flag")=="True") {
- model.setValue("/root/main/list2/fileList["+grd_filelist.row+"]/seq", model.getValue("/root/main/list2/fileList/seq"));
- }
- }
- }
- ]]>
- </script>
- </button>
- <textarea id="txt_goal" ref="/root/main/savedata/goal" style="left:605px; top:635px; width:320px; height:92px; "/>
- <datagrid id="grd_filelist" nodeset="/root/main/list2/fileList" autoresize="true" caption="파일명^파일경로명^seq^no^SEQ" colsep="^" colwidth="238, 0, 0, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:928px; top:611px; width:266px; height:118px; ">
- <col ref="filename"/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <col ref="no" visibility="hidden"/>
- </datagrid>
- <input id="ipt_seqnum" ref="/root/main/cond/seqnum/seqnum1/seq" visibility="hidden" style="left:90px; top:0px; width:45px; height:19px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:591px; width:131px; height:13px; ">산출물 등록현황</caption>
- <line id="line7" class="line_6" style="x1:0px; y1:740px; x2:1195px; y2:740px; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:607px; x2:925px; y2:607px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:729px; x2:925px; y2:729px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:611px; width:100px; height:22px; font-weight:bolder; ">분류</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:635px; width:100px; height:22px; font-weight:bolder; ">분류기준</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:659px; width:100px; height:68px; font-weight:bolder; ">키워드</caption>
- <caption id="caption15" class="cell_1" style="left:502px; top:611px; width:100px; height:22px; font-weight:bolder; ">제목</caption>
- <caption id="caption16" class="cell_1" style="left:502px; top:635px; width:100px; height:92px; font-weight:bolder; ">목적</caption>
- <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1065px; top:744px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- init();
-
- // submit("TRZPP00201");
-
- model.makeNode("/root/main/savedata/upcdflag");
- model.makeNode("/root/main/cond/searchflag");
-
- model.copyNode("/root/main/savedata/upcdflag", "/root/init/upcdflag");
- model.copyNode("/root/main/cond/searchflag", "/root/init/upcdflag");
-
- // copyNodeListType("/root/main/savedata/upcdflag", "/root/init/upcdflag", "after");
- // copyNodeListType("/root/main/cond/searchflag", "/root/init/upcdflag", "after");
-
- submit("TRZPP00202");
- ]]>
- </script>
- </button>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:45px; width:1195px; height:37px; "/>
- <caption id="caption3" class="search_name" style="left:35px; top:55px; width:100px; height:17px; ">분류 :</caption>
- <caption id="caption4" class="search_name" style="left:495px; top:55px; width:100px; height:17px; ">제목 :</caption>
- <select1 id="cmb_clslist" ref="/root/main/cond/searchflag/cdflag" class="combo_essential" appearance="minimal" style="left:100px; top:54px; width:255px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/cond/searchflag/cdflag">
- <label ref="cdflaglist"/>
- <value ref="cdflagvalue"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var clslist = model.getValue("/root/main/cond/searchflag/cdflag");
- model.makeValue("/root/send/clslist", clslist);
- ]]>
- </script>
- </select1>
- <input id="ipt_search" ref="/root/main/cond/search/title" style="left:570px; top:54px; width:370px; height:15px; "/>
- <line id="line4" class="line_4" style="x1:1087px; y1:50px; x2:1087px; y2:75px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1112px; top:53px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_clslist.value=="") {
- alert("분류는 필수선택사항입니다.");
- model.setFocus("cmb_clslist");
- }
- if(cmb_clslist.value!="") {
- model.makeValue("/root/send/search", ipt_search.value);
- submit("TRZPP00205");
-
- model.removeNodeset("/root/send");
-
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|