123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <reptdetl>
- <item>
- <instcd/>
- <subjid/>
- <subjno/>
- <reptseqno/>
- <judgappdg/>
- <reptkind/>
- <fstplanjudgdd/>
- <acptyn/>
- <acptdd/>
- <subjnm/>
- <roothospidxcasecnt/>
- <prcsidxcase/>
- <cnts1/>
- <cnts2/>
- <cnts3/>
- <cnts4/>
- <cnts5/>
- <cnts6/>
- <cnts7/>
- <cnts8/>
- <cnts9/>
- <attfile/>
- </item>
- </reptdetl>
- </main>
- <send>
- <savedata>
- </savedata>
- <searchitem>
- <reptkind/>
- <subjid/>
- <instcd/>
- <reptseqno/>
- <totstdycost/>
- <direccost/>
- <consorflag/>
- </searchitem>
- <attach/>
- </send>
- <hidden/>
- <init>
- <hosp>
- <ret>
- <instcd/>
- <hospnm/>
- </ret>
- </hosp>
- </init>
- <rex>
- <view>
- <appformhead>
- <subjnm/>
- <subjno/>
- <hospnm/>
- <depthngnm/>
- <cdnm/>
- <usernm/>
- </appformhead>
- <irsdcollareser>
- <subjid/>
- <instcd/>
- <userid/>
- <userkind/>
- <usernm/>
- <posnm/>
- <jobposnm/>
- </irsdcollareser>
- <imcmreqinst>
- <cmpynm/>
- <prsdnm/>
- <jobposnm/>
- </imcmreqinst>
- </view>
- <data>
- <a/>
- </data>
- </rex>
- </root>
- </instance>
- <submission id="TRIRB00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
- <submission id="TRIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
- <submission id="TXIRB00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRIRS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
- <submission id="TRIRS00135" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXIRB00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TXIRS00199" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
- if ( opener.javascript.getParameter("actionyn") == "N" ) {
- ipt_filenm.visible = true;
- btn_fileatt.visible = false;
- btn_filedel.visible = false;
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- btn_filedown.visible=true;
- }
-
- submit("TRIRB00122"); //병원 조회
- model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
- model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
- model.setValue("/root/send/searchitem/reptkind", parent.model.getValue("/root/send/searchitem2/reptkind"));
- model.setValue("/root/send/searchitem/totstdycost", parent.model.getValue("/root/send/searchitem2/totstdycost"));
- model.setValue("/root/send/searchitem/direccost", parent.model.getValue("/root/send/searchitem2/direccost"));
-
- var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
-
- if ( consorflag == "Y" ) {
- model.setValue("/root/send/searchitem/consorflag", "Y");
- }
-
- //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
- if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
- submit("TRIRB00124"); //결과보고서 내용 조회
- }
- model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
- model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
- model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
- model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
- model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
-
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,442;1,1180;1,589;">
- <line id="line15" class="line_1" style="x1:5px; y1:48px; x2:1178px; y2:47px; "/>
- <caption id="caption7" class="tit_2" style="left:10px; top:31px; width:705px; height:13px; ">신규 작성 시 신규 버튼 클릭 후 접수 여부를 미접수로 저장하셔야지 과제변경항목추가 버튼이 활성화 됩니다.</caption>
- <caption id="caption21" class="cell_1" style="left:5px; top:52px; width:85px; height:23px; text-align:center; vertical-align:middle; ">선택된 병원</caption>
- <select1 id="cmb_instcd" ref="/root/main/reptdetl/item/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:53px; width:168px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hosp/ret">
- <label ref="hospnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="tit_2" style="left:10px; top:78px; width:705px; height:13px; ">변경 내용 요약 (기본사항변경일 경우 변경할 과제내용을 "과제변경 항목추가" 버튼을 이용하시기 바랍니다.)</caption>
- <caption id="caption2" class="cell_1" style="left:5px; top:94px; width:85px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
- <select1 id="cmb_acptyn" ref="/root/main/reptdetl/item/acptyn" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:95px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="cell_1" style="left:5px; top:119px; width:85px; height:55px; text-align:center; vertical-align:middle; ">기본사항</caption>
- <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" style="left:92px; top:119px; width:497px; height:55px; "/>
- <caption id="caption3" class="cell_1" style="left:5px; top:179px; width:85px; height:55px; text-align:center; vertical-align:middle; ">
- <![CDATA[연구목적
- 및 배경]]>
- </caption>
- <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" style="left:92px; top:179px; width:497px; height:55px; "/>
- <caption id="caption4" class="cell_1" style="left:5px; top:239px; width:85px; height:55px; text-align:center; vertical-align:middle; ">
- <![CDATA[임상시험
- 대상관련]]>
- </caption>
- <textarea id="tar_cnts3" ref="/root/main/reptdetl/item/cnts3" style="left:92px; top:239px; width:497px; height:55px; "/>
- <caption id="caption5" class="cell_1" style="left:5px; top:299px; width:85px; height:55px; text-align:center; vertical-align:middle; ">피험자 관련</caption>
- <textarea id="tar_cnts4" ref="/root/main/reptdetl/item/cnts4" style="left:92px; top:299px; width:497px; height:55px; "/>
- <caption id="caption8" class="cell_1" style="left:5px; top:359px; width:85px; height:55px; text-align:center; vertical-align:middle; ">임상시험 방법</caption>
- <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts5" style="left:92px; top:359px; width:497px; height:55px; "/>
- <caption id="caption9" class="cell_1" style="left:592px; top:119px; width:85px; height:55px; text-align:center; vertical-align:middle; ">통계관련</caption>
- <textarea id="tar_cnts6" ref="/root/main/reptdetl/item/cnts6" style="left:679px; top:119px; width:497px; height:55px; "/>
- <textarea id="tar_cnts7" ref="/root/main/reptdetl/item/cnts7" style="left:679px; top:179px; width:497px; height:55px; "/>
- <caption id="caption10" class="cell_1" style="left:592px; top:179px; width:85px; height:55px; text-align:center; vertical-align:middle; ">
- <![CDATA[피험자 동의
- 및 안전관련]]>
- </caption>
- <textarea id="tar_cnts8" ref="/root/main/reptdetl/item/cnts8" style="left:679px; top:239px; width:497px; height:55px; "/>
- <caption id="caption11" class="cell_1" style="left:592px; top:239px; width:85px; height:55px; text-align:center; vertical-align:middle; ">기 타</caption>
- <textarea id="tar_cnts9" ref="/root/main/reptdetl/item/cnts9" style="left:679px; top:359px; width:497px; height:55px; "/>
- <caption id="caption12" class="cell_1" style="left:592px; top:359px; width:85px; height:55px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <caption id="caption13" class="tit_2" style="left:594px; top:340px; width:101px; height:13px; ">변경사유</caption>
- <button id="btn_filedel" class="btn5_letter4" style="left:963px; top:5px; width:64px; height:19px; ">
- <caption>첨부삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert("죄송합니다. 구현되지 않은 버튼 이벤트 입니다.");
- ]]>
- </script>
- </button>
- <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:695px; top:5px; width:200px; height:19px; "/>
- <button id="btn_fileatt" class="btn2_letter4" style="left:897px; top:5px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- if (submit("TXIRS00199")) {
- messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
- model.removeNodeset("/root/send/attach");
- parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_tmpsave" class="btn2_letter4" style="left:1030px; top:5px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- }
-
- model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
- model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
- model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00132");
- } else {
- submit("TXIRB00121");
- }
-
- model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
- model.refresh();
- parent.model.setValue("/root/temp/ivieweryn", "N"); //변경계획서 iviewer 호출 여부 = N
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_reptacpt" class="btn2_letter5" style="left:1097px; top:5px; width:75px; height:19px; ">
- <caption>보고서접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- }
-
- var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
- if ( reptseqno != '') {
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
-
- model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
- model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
- model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
- model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00132");
- } else {
- submit("TXIRB00121");
- }
-
- model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
- model.refresh();
- parent.model.setValue("/root/temp/ivieweryn", "N"); //변경계획서 iviewer 호출 여부 = N
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_subjchngitem" class="btn2_letter8" style="left:945px; top:25px; width:108px; height:19px; ">
- <caption>과제변경 항목추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("instcd", model.getValue("/root/send/searchitem/instcd"));
- setParameter("subjid", model.getValue("/root/send/searchitem/subjid"));
- setParameter("reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- setParameter("reptkind", model.getValue("/root/send/searchitem/reptkind"));
- setParameter("totstdycost", model.getValue("/root/send/searchitem/totstdycost"));
- setParameter("direccost", model.getValue("/root/send/searchitem/direccost"));
- //window.load("../../../crc/comsubjweb/xrw/SPIMR00300_공통코드조회팝업.xrw","modal","code", "left:600px; top:50px; width:1500px; height:540px;min:hidden;max:hidden;resize:false;" ,"", "");
- window.load("../../../crc/reqsubjcmpyweb/xrw/SPIRB00100_과제변경항목.xrw","modal","code", "left:200px; top:50px; width:1500px; height:540px;min:hidden;max:hidden;resize:false;" ,"", "");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter9" style="left:1055px; top:25px; width:119px; height:19px; ">
- <caption>변경계획보고서 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRIRS00131")) {
- exeReportPreview("PSIRB00700", "XMLSTR" , "/root/rex");
- }
- ]]>
- </script>
- </button>
- <caption id="caption14" class="tit_2" style="left:10px; top:10px; width:140px; height:14px; ">변경계획서</caption>
- <button id="btn_filedown" class="btn2_letter4" visibility="hidden" style="left:900px; top:5px; width:64px; height:19px; ">
- <caption>내려받기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var s = model.getValue("/root/main/reptdetl/item/attfile");
- var ss = s.split("/");
- var filepath = "";
- var filenm = "";
- for ( var i = 0; i < ss.length; i ++){
- if ( i < ss.length -2 ) {
- filepath = filepath+ss[i] +"/";
- } else if ( i < ss.length -1 ) {
- filepath = filepath+ss[i] ;
- } else {
- filenm = ss[i];
- }
-
- }
-
-
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRIRS00135")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="10485760" validate="true" style="left:690px; top:75px; width:100px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:140px; top:180px; width:665px; height:150px; ">
- <col ref="file"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|