123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>과제입력 및 수정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <ddflag/>
- <status/>
- <kind/>
- <ddfrom/>
- <ddto/>
- </cond>
- </main>
- <send>
- <reqdata>
- </reqdata>
- <savedata/>
- <userinfo/>
- <attfilepath/>
- <attfilenm/>
- <savedata>
- <file/>
- </savedata>
- <selrow/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <instinfo>
- <instcd/>
- <hospnm/>
- </instinfo>
- </baseinfo>
- <stage/>
- <kind/>
- <status/>
- <C0048list/>
- </init>
- <temp/>
- <result>
- <studyprojlist>
- <projcd/>
- <studycd/>
- <projnm/>
- <status/>
- <reqfirm/>
- <kind/>
- <rshid/>
- <rshnm/>
- <cnfmdd/>
- <cntrdd/>
- <fromdd/>
- <todd/>
- <cntramt/>
- <stage/>
- <projspec/>
- <fstrgstrnm/>
- <fstrgstdt/>
- <lastupdnm/>
- <lastupdtdt/>
- <instcd/>
- <projamt/>
- <custnm/>
- </studyprojlist>
- <projhistinfo/>
- <projhistdetlinfo>
- <projhistdetllist>
- <projcd/>
- <seqno/>
- <projnm/>
- <rshid/>
- <cnfmdd/>
- <stage/>
- <projtype/>
- <fcnfmdd/>
- <nflag/>
- <oflag/>
- <cnfmvalidd/>
- <drugnm/>
- <reqfirm/>
- <agent/>
- <projamt/>
- <cntrdd/>
- <fromdd/>
- <todd/>
- <projspec/>
- <studycd/>
- <kind/>
- <status/>
- <rshnm/>
- <simsa/>
- <simsakind/>
- <simsarslt/>
- <fstcnfmdd/>
- <samplecnt/>
- <bresearcher/>
- <aresearcher/>
- <attfilenm/>
- <attfilepath/>
- <instcd/>
- </projhistdetllist>
- </projhistdetlinfo>
- </result>
- <newprojcd/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fIni();
-
-
- ]]>
- </script>
- <submission id="TXRIS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- <submission id="TXRIS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- <!--
- <submission id="TXRIS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- -->
- <submission id="TXRIS00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- <submission id="TXRIS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- <submission id="TXRIS00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
- <submission id="TRRIS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/newprojcd/projcd"/>
- <submission id="TRRIS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/result/projhistinfo"/>
- <submission id="TRRIS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/result/projhistdetlinfo"/>
- <submission id="TRRIS00206" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/ctmsweb/js/SPRIS00201.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- var xreqdesc = "/root/result/projhistdetlinfo/projhistdetllist";
- var xsendfile = "/root/send/savedata";
-
- ]]>
- </script>
- <xhtml:body pagewidth="1070" pageheight="570" guideline="1,66;1,210;">
- <group id="group3" style="left:482px; top:50px; width:557px; height:510px; vertical-align:top; border-width:1px; ">
- <output id="out_projcd" ref="/root/result/projhistdetlinfo/projhistdetllist/projcd" class="output_fix" style="left:83px; top:23px; width:102px; height:19px; "/>
- <input id="ipt_studycd" ref="/root/result/projhistdetlinfo/projhistdetllist/studycd" class="input_s_essential" disabled="true" navindex="1" style="left:271px; top:23px; width:280px; height:19px; "/>
- <input id="ipt_reqfirm" ref="/root/result/projhistdetlinfo/projhistdetllist/reqfirm" navindex="11" style="left:271px; top:193px; width:97px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:23px; width:80px; height:19px; ">과제코드</caption>
- <caption id="caption2" class="cell_1" style="left:188px; top:23px; width:80px; height:19px; ">과제번호</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:45px; width:80px; height:98px; ">과제제목</caption>
- <caption id="caption5" class="cell_1" style="left:371px; top:215px; width:80px; height:19px; ">승인유효</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:147px; width:80px; height:19px; ">종류</caption>
- <select1 id="cmb_kind" ref="/root/result/projhistdetlinfo/projhistdetllist/kind" disabled="true" navindex="4" appearance="minimal" style="left:83px; top:147px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/kind/I0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="cell_1" style="left:0px; top:193px; width:80px; height:19px; ">단계</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:349px; width:80px; height:117px; ">상세설명</caption>
- <caption id="caption9" class="cell_1" style="left:271px; top:0px; width:85px; height:19px; ">책임연구원</caption>
- <input id="ipt_cnfmdd" ref="/root/result/projhistdetlinfo/projhistdetllist/cnfmdd" class="input_s_essential" navindex="13" inputtype="date" style="left:83px; top:215px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmdd") != ""){
- var rdd = (model.getValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmdd").toDate()).getAddDate(1, "Y").getDateFormat();
- model.setValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmvalidd", rdd );
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_useid" class="icon_search" navindex="2" style="left:533px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUserinfo();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:371px; top:147px; width:80px; height:19px; ">총연구비</caption>
- <caption id="caption12" class="cell_1" style="left:188px; top:147px; width:80px; height:19px; ">의약품명칭</caption>
- <caption id="caption13" class="cell_1" style="left:371px; top:170px; width:80px; height:19px; ">연구종료일</caption>
- <input id="input2" ref="/root/result/projhistdetlinfo/projhistdetllist/projamt" class="input_s_essential" navindex="6" format="#,###" style="left:454px; top:147px; width:97px; height:19px; "/>
- <input id="input3" ref="/root/result/projhistdetlinfo/projhistdetllist/cntrdd" navindex="7" inputtype="date" style="left:83px; top:170px; width:102px; height:19px; "/>
- <input id="input4" ref="/root/result/projhistdetlinfo/projhistdetllist/todd" class="input_s_essential" navindex="9" inputtype="date" style="left:454px; top:170px; width:97px; height:19px; "/>
- <input id="ipt_rshid" ref="/root/result/projhistdetlinfo/projhistdetllist/rshid" class="input_s_essential" disabled="true" style="left:358px; top:0px; width:75px; height:19px; "/>
- <input id="ipt_rshnm" ref="/root/result/projhistdetlinfo/projhistdetllist/rshnm" class="input_s_essential" disabled="true" style="left:435px; top:0px; width:95px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:371px; top:193px; width:80px; height:19px; ">대행기관</caption>
- <caption id="caption17" class="cell_1" style="left:188px; top:237px; width:80px; height:19px; ">국가구분</caption>
- <caption id="caption18" class="cell_1" style="left:371px; top:237px; width:80px; height:19px; ">기관구분</caption>
- <input id="input1" ref="/root/result/projhistdetlinfo/projhistdetllist/agent" navindex="12" style="left:454px; top:193px; width:97px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:188px; top:193px; width:80px; height:19px; ">의뢰기관</caption>
- <input id="input5" ref="/root/result/projhistdetlinfo/projhistdetllist/nflag" navindex="17" style="left:271px; top:237px; width:97px; height:19px; "/>
- <input id="input6" ref="/root/result/projhistdetlinfo/projhistdetllist/oflag" navindex="18" style="left:454px; top:237px; width:97px; height:19px; "/>
- <input id="input7" ref="/root/result/projhistdetlinfo/projhistdetllist/fcnfmdd" navindex="14" inputtype="date" style="left:271px; top:215px; width:97px; height:19px; "/>
- <input id="input8" ref="/root/result/projhistdetlinfo/projhistdetllist/cnfmvalidd" navindex="15" inputtype="date" style="left:454px; top:215px; width:97px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:215px; width:80px; height:19px; ">승인일</caption>
- <caption id="caption22" class="cell_1" style="left:188px; top:215px; width:80px; height:19px; ">식약청승인일</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:237px; width:80px; height:19px; ">접수번호</caption>
- <input id="input9" ref="/root/result/projhistdetlinfo/projhistdetllist/projtype" navindex="16" style="left:83px; top:237px; width:102px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:170px; width:80px; height:19px; ">계약일</caption>
- <input id="input10" ref="/root/result/projhistdetlinfo/projhistdetllist/fromdd" class="input_s_essential" navindex="8" inputtype="date" style="left:271px; top:170px; width:97px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:188px; top:170px; width:80px; height:19px; ">연구시작일</caption>
- <input id="input11" ref="/root/result/projhistdetlinfo/projhistdetllist/drugnm" navindex="5" style="left:271px; top:147px; width:97px; height:19px; "/>
- <input id="input12" ref="/root/result/projhistdetlinfo/projhistdetllist/simsa" navindex="19" style="left:83px; top:259px; width:102px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:0px; top:259px; width:80px; height:19px; ">심사</caption>
- <caption id="caption24" class="cell_1" style="left:188px; top:259px; width:80px; height:19px; ">심의종류</caption>
- <caption id="caption25" class="cell_1" style="left:371px; top:259px; width:80px; height:19px; ">심의결과</caption>
- <input id="input13" ref="/root/result/projhistdetlinfo/projhistdetllist/simsakind" navindex="20" style="left:271px; top:259px; width:97px; height:19px; "/>
- <input id="input14" ref="/root/result/projhistdetlinfo/projhistdetllist/simsarslt" navindex="21" style="left:454px; top:259px; width:97px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:0px; top:327px; width:80px; height:19px; ">참여연구원</caption>
- <output id="output1" ref="/root/result/projhistdetlinfo/projhistdetllist/bresearcher" class="output_fix" style="left:83px; top:304px; width:468px; height:19px; "/>
- <caption id="caption27" class="cell_1" style="left:0px; top:304px; width:80px; height:19px; ">공동연구자</caption>
- <output id="output2" ref="/root/result/projhistdetlinfo/projhistdetllist/aresearcher" class="output_fix" style="left:83px; top:327px; width:468px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:188px; top:281px; width:80px; height:19px; ">증례수</caption>
- <input id="input15" ref="/root/result/projhistdetlinfo/projhistdetllist/samplecnt" navindex="23" style="left:271px; top:281px; width:97px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:0px; top:281px; width:80px; height:19px; ">최초승인일</caption>
- <input id="input16" ref="/root/result/projhistdetlinfo/projhistdetllist/fstcnfmdd" navindex="22" inputtype="date" style="left:83px; top:281px; width:102px; height:19px; "/>
- <input id="input17" ref="/root/result/projhistdetlinfo/projhistdetllist/stage" navindex="10" style="left:83px; top:193px; width:102px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:20px; x2:548px; y2:20px; font-family:돋움체; "/>
- <line id="line2" class="line_2" style="x1:2px; y1:144px; x2:550px; y2:144px; font-family:돋움체; "/>
- <line id="line3" class="line_2" style="x1:2px; y1:167px; x2:550px; y2:167px; font-family:돋움체; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:191px; x2:553px; y2:191px; font-family:돋움체; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:213px; x2:553px; y2:213px; font-family:돋움체; "/>
- <line id="line8" class="line_2" style="x1:2px; y1:235px; x2:555px; y2:235px; font-family:돋움체; "/>
- <line id="line9" class="line_2" style="x1:2px; y1:257px; x2:555px; y2:257px; font-family:돋움체; "/>
- <line id="line10" class="line_2" style="x1:2px; y1:279px; x2:555px; y2:279px; font-family:돋움체; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:301px; x2:553px; y2:301px; font-family:돋움체; "/>
- <line id="line12" class="line_2" style="x1:2px; y1:325px; x2:555px; y2:325px; font-family:돋움체; "/>
- <line id="line13" class="line_2" style="x1:2px; y1:348px; x2:555px; y2:348px; font-family:돋움체; "/>
- <caption id="caption30" class="cell_1" style="left:0px; top:470px; width:80px; height:19px; ">첨부파일</caption>
- <input id="ipt_attfilenm" ref="/root/result/projhistdetlinfo/projhistdetllist/attfilenm" class="input_default" disabled="true" navindex="28" style="left:83px; top:470px; width:337px; height:19px; font-family:굴림체; font-size:8pt; color:#0000ff; text-align:left; vertical-align:middle; "/>
- <button id="btn_insert" class="btn2_letter4" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:421px; top:470px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>첨부파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
- //파일의 크기를 측정한다.
- var maxsize = upload1.attribute("filesize");
- var name = model.getValue(xreqdesc + "/attfilenm");
-
- if(name != '' || name == '-'){
-
- var fileupdata = messageBox(name + " 파일 수정을" , "S001");
-
- if(fileupdata == '6'){
- //파일 삭제
- //input박스에 나타난 명을 제거
- ipt_attfilenm.value = "";
-
- //파일 저장
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fileopen = window.fileDialog("open","|","false");
-
- var name = fileopen;
-
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
-
- //open 파일명를 input박스에 넣는다.
- ipt_attfilenm.value = fileopen.substring(filename + 1);
-
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- model.makeValue(xsendfile + "/file", name);
- model.refresh();
-
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(upload1)){
- ipt_attfilenm.value = "";
- messageBox("파일 크기가 최대치(" + maxsize + "Byte)를", "E003");
- model.resetInstanceNode(xsendfile + "/file");
- }
-
- model.makeValue(xreqdesc + "/fileyn", 'Y');
- }else if(fileupdata == '7'){
- messageBox(name + " 파일 수정을 하지", "E007");
- model.makeValue(xreqdesc + "/fileyn", 'N');
- }
- }else{
-
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fileopen = window.fileDialog("open","|","false");
-
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- model.makeValue(xreqdesc + "/attfilenm", fileopen);
-
- var name = fileopen;
-
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
-
- //open 파일명를 input박스에 넣는다.
- ipt_attfilenm.value = fileopen.substring(filename + 1);
-
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- model.makeValue(xsendfile + "/file", name);
- model.refresh();
-
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(upload1)){
- ipt_attfilenm.value = "";
- messageBox("파일 크기가 최대치(" + maxsize + "Byte)를", "E003");
- model.resetInstanceNode(xsendfile + "/file");
- }
- model.makeValue(xreqdesc + "/fileyn", 'Y');
- }
- ]]>
- </script>
- </button>
- <line id="line15" class="line_2" style="x1:0px; y1:467px; x2:553px; y2:467px; font-family:돋움체; "/>
- <line id="line16" class="line_3" style="x1:0px; y1:492px; x2:553px; y2:492px; font-family:돋움체; "/>
- <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:80px; height:19px; ">기관코드</caption>
- <select1 id="cmb_instcd" ref="/root/result/projhistdetlinfo/projhistdetllist/instcd" class="combo_defalut" disabled="true" appearance="minimal" style="left:83px; top:0px; width:185px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0048list/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line17" class="line_2" style="x1:0px; y1:43px; x2:548px; y2:43px; font-family:돋움체; "/>
- </group>
- <caption id="cap_title" class="tit_1" style="left:5px; top:0px; width:121px; height:13px; ">과제입력 및 수정</caption>
- <line id="line4" class="line_1" style="x1:482px; y1:45px; x2:1036px; y2:45px; "/>
- <caption id="caption14" class="tit_2" style="left:482px; top:27px; width:123px; height:13px; ">입력/조회</caption>
- <button id="btn_save" class="btn5_letter2" navindex="26" style="left:934px; top:24px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <group id="grp_projhist" style="left:10px; top:20px; width:465px; height:535px; ">
- <datagrid id="grd_projhist" nodeset="/root/result/projhistinfo/projhistlist" class="datagrid2" caption="순번^과제번호^첨부
파일^심사^심의종류^심의결과^승인일^첨부파일명^과제코드" colsep="^" colwidth="34, 100, 36, 75, 60, 60, 80, 180, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:29px; width:460px; height:494px; ">
- <col ref="seqno" style="text-align:center; "/>
- <col ref="studycd" visibility="hidden"/>
- <col ref="fileyn" style="text-align:center; "/>
- <col ref="simsa"/>
- <col ref="simsakind"/>
- <col ref="simsarslt"/>
- <col ref="cnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="attfilenm"/>
- <col ref="attfilepath" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetProjHistDetail();
- model.setValue( "/root/send/selrow", grd_projhist.row );
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_projhist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:460px; y2:25px; "/>
- <caption id="caption15" class="tit_2" style="left:5px; top:7px; width:123px; height:13px; ">과제이력</caption>
- <button id="btn_hisnew" class="btn2_letter4" style="left:395px; top:5px; width:64px; height:19px; ">
- <caption>이력신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = opener.window.javascript.getParameter("SMRIS00201_instcd");
- if( instcd != getUserInfo("dutplceinstcd") ){
- messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
- return;
- }else{
- fNewProjHist();
- }
- ]]>
- </script>
- </button>
- <button id="btn_hisdel" class="btn2_letter4" style="left:330px; top:5px; width:64px; height:19px; ">
- <caption>이력삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = opener.window.javascript.getParameter("SMRIS00201_instcd");
- if( instcd != getUserInfo("dutplceinstcd") ){
- messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
- return;
- }else{
- fDelProjHist();
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_new" class="btn2_letter2" style="left:890px; top:24px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNewProj();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_3" style="x1:476px; y1:45px; x2:476px; y2:543px; border-color:#0000ff; "/>
- <upload id="upload1" filesize="5242880" nodeset="/root/send/savedata/file" ext="zip" filecount="5" style="left:540px; top:480px; width:20px; height:20px; "/>
- <caption id="cpt_studycd" visibility="hidden" style="left:97px; top:23px; width:240px; height:20px; font-weight:bold; color:#0000ff; text-align:right; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:979px; top:22px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_down" class="btn2_letter4" navindex="29" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:968px; top:520px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm") == "") {
- messageBox("다운로드 할 파일을 ", "C002");
- return;
- } else if( model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm") == "" ) {
- messageBox("저장된 파일이 존재하지 않습니다.", "E999");
- return;
- } else {
-
- //파일명를 받아옴
- var getfilenm = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm");
- var getfilepath = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilepath");
-
- model.setValue("/root/send/attfilenm", getfilenm );
- model.setValue("/root/send/attfilepath", getfilepath );
-
- //파일명이 있는 경우 다운로드
- if(getfilenm != ""){
- //파일명을 받아옴
- var filenm = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm");
- //파일명의 확장자만 받아옴
- var fileext = filenm.lastIndexOf(".");
- var ext = filenm.substring(fileext +1);
- //파일을 다운로드 하기 위해 저장할 창을 띄움
- var filesave = window.fileDialog("save","|",false,filenm,ext,"All Files(*.*)|*.*");
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- if (filesave != "") {
- model.download(getActionURL("TRRIS00206") + "&attfilepath=" + getfilepath + "&filepathcolnm=attfilepath", filesave);
- }
- }
- }
- ]]>
- </script>
- </button>
- <textarea id="ta_projnm" ref="/root/result/projhistdetlinfo/projhistdetllist/projnm" navindex="3" scroll="autovscroll" style="left:565px; top:95px; width:468px; height:98px; padding-right:20; "/>
- <textarea id="ta_projspec" ref="/root/result/projhistdetlinfo/projhistdetllist/projspec" navindex="24" scroll="autovscroll" style="left:565px; top:400px; width:468px; height:114px; padding-right:20; "/>
- </xhtml:body>
- </xhtml:html>
|