123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890 |
- <?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>
- <reptdetl>
- <item>
- <instcd/>
- <subjid/>
- <subjno/>
- <reptseqno/>
- <judgappdg/>
- <reptkind/>
- <fstplanjudgdd/>
- <acptyn/>
- <acptdd/>
- <subjnm/>
- <roothospidxcasecnt/>
- <prcsidxcase/>
- <cnts1/>
- <cnts2/>
- <cnts3/>
- <cnts4/>
- <cnts5/>
- <cnts6/>
- <cnts7/>
- <cnts8/>
- <verplan/>
- <veraprv/>
- <vercrf/>
- <verib/>
- <attfile/>
- <reptchoose/>
- <screenmenu/>
- <stdykind2/>
- <rc/>
- <resercnfmyn/>
- <firstdg/>
- <firstjudgdd/>
- </item>
- <test>
- <subjid/>
- <reptkind/>
- <reptseqno/>
- <instcd/>
- <testeeid/>
- <testeenm/>
- <subtesteegndr/>
- <awardd/>
- <genrdd/>
- </test>
- </reptdetl>
- <reptlist>
- <item>
- <subjno/>
- <judgdd/>
- <judgkind/>
- <judgrslt/>
- <judgitem/>
- <judgitem1/>
- <judgitem2/>
- <judgitem3/>
- <judgitem4/>
- </item>
- </reptlist>
- </main>
- <send>
- <savedata>
- </savedata>
- <searchitem>
- <reptkind/>
- <subjid/>
- <instcd/>
- <reptseqno/>
- <consorflag/>
- <croinstcd/>
- </searchitem>
- </send>
- <hidden>
- </hidden>
- <init>
- <hosp>
- <ret>
- <instcd/>
- <hospnm/>
- </ret>
- </hosp>
- </init>
- <rex>
- <view>
- <appformhead>
- <subjnm/>
- <subjno/>
- <hospnm/>
- <depthngnm/>
- <cdnm/>
- <usernm/>
- <hospcd/>
- <judgdd/>
- <judgappdg/>
- </appformhead>
- <irsdcollareser>
- <subjid/>
- <instcd/>
- <userid/>
- <userkind/>
- <usernm/>
- <posnm/>
- <jobposnm/>
- </irsdcollareser>
- <imcmreqinst>
- <cmpynm/>
- <prsdnm/>
- <jobposnm/>
- </imcmreqinst>
- <irsdpharmst>
- <usernm/>
- <posnm/>
- <jobposnm/>
- <subjid/>
- <instcd/>
- <userid/>
- <userkind/>
- <telnumber/>
- </irsdpharmst>
- <irsdcodi>
- <usernm/>
- <posnm/>
- <jobposnm/>
- <subjid/>
- <instcd/>
- <userid/>
- <userkind/>
- <telnumber/>
- </irsdcodi>
- <imcmreser>
- <usernm/>
- <hometel/>
- <cmpytelno/>
- <faxno/>
- <email/>
- </imcmreser>
- </view>
- <basesubjinfo>
- <basesubjinfo>
- <subjid/>
- <perchgrid/>
- <acptyn/>
- <judgkind/>
- <subjnm/>
- <subjpwd/>
- <clinictrgtflag/>
- <reqinstflag/>
- <stdycostsuppinst/>
- <stdycostsuppinstnm/>
- <itemnm/>
- <comnm/>
- <allidxcase/>
- <stdystartdd/>
- <stdyenddd/>
- <appdd/>
- <testeeaprvflag/>
- <relprstdata1/>
- <relprstdata2/>
- <relprstdata3/>
- <relprstdata4/>
- <relprstdata5/>
- <prstdataetc5/>
- <resercd/>
- <reqinstcd/>
- <concernrela/>
- <verplan/>
- <veraprv/>
- <vercrf/>
- <verib/>
- <consorflag/>
- <deptcd/>
- <reqcnfmyn/>
- <inqrgoal/>
- <trgtsick/>
- <inqrmthd/>
- <stdykind1/>
- <etctrgt1/>
- <stdykind2/>
- <etctrgt2/>
- <stdykind3/>
- <manynation/>
- <manyinst/>
- <cmcinstcnt/>
- <stdykind4/>
- <etctrgt4/>
- <stdytrgt/>
- <etctrgt/>
- <agenestdyflag/>
- <cellcurestdyyn/>
- <testeestat/>
- <fratesteeflag/>
- <stdyspcl1/>
- <stdyspcl2/>
- <stdyspcl3/>
- <stdyspcl4/>
- <stdyspcl5/>
- <stdyspcl6/>
- <stdyspcl7/>
- <examadjthosp/>
- <examadjtprf/>
- <allexamresppos/>
- <allexamrespnm/>
- <foodscrtgovpassyn/>
- <prmisnnatiyn/>
- <intermarketyn/>
- <judgkindcode/>
- <reqinstchrgid/>
- <reqinstchrgnm/>
- <reqinstjobposnm/>
- <croinstnm/>
- </basesubjinfo>
- </basesubjinfo>
- <basehospinfo>
- <basehospinfo>
- <subjid/>
- <instcd/>
- <subjno/>
- <condd/>
- <reqyn/>
- <reqdt/>
- <totstdycost/>
- <direccost/>
- <stdystartdd/>
- <stdyenddd/>
- <crccaprvyn/>
- <crccaprvdd/>
- <rtnresn/>
- <roothospidxcasecnt/>
- <depomthd/>
- <respstdyempno/>
- <respstdycnfmsubjyn/>
- <respstdycnfmexecyn/>
- <respstdycnfmselfyn/>
- <mdlreptdd/>
- <subjenddd/>
- <subjdiscontinudd/>
- <subjdiscontinuresn/>
- <subrecuyn/>
- <subrecuenddd/>
- <reqjudgcostdepoyn/>
- <reqjudgcostdepodd/>
- <irbjudgcostamt/>
- <irbjudgcostdepoyn/>
- <irbjudgcostdepodd/>
- <irbjudgflag/>
- <conacptyn/>
- <conacptdd/>
- <conyn/>
- <concondd/>
- <examdrugwinyn/>
- <examdrugwindd/>
- <stdycostcalcyn/>
- <captyn/>
- <captdd/>
- <crcccnfm1/>
- <crcccnfm2/>
- <crcccnfm3/>
- <irbjudgyn/>
- <subjattfile/>
- <judgcnvtyn/>
- <mdlschedd/>
- <endschedd/>
- <rsltschedd/>
- <contschedd/>
- </basehospinfo>
- </basehospinfo>
- <data>
- <cnts1/>
- <cnts2/>
- <resercnfmyn/>
- <acptdd/>
- <firstdg/>
- <firstjudgdd/>
- </data>
- <reptdetl>
- <subjid/>
- <reptkind/>
- <reptseqno/>
- <instcd/>
- <testeeid/>
- <testeenm/>
- <subtesteegndr/>
- <awardd/>
- <genrdd/>
- </reptdetl>
- </rex>
- <temp/>
- </root>
- </instance>
- <submission id="TRIRB00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
- <submission id="TRIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
- <submission id="TXIRB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRIRS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
- <submission id="TRIRS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
- <submission id="TRIRS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basehospinfo"/>
- <submission id="TRIRS00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXIRB00102" 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"/>
- <submission id="TXIRB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
- <submission id="TXIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
- <submission id="TXIRS00198" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <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/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/reptdetl/test");
-
- //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
- 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;
- button1.visible = false;
- }
-
- if ( parent.model.getValue("/root/send/report") == "Y" ) {
- ipt_filenm.visible = true;
- btn_fileatt.visible = false;
- btn_filedel.visible = false;
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- btn_filedown.visible=true;
- button1.visible = false;
- }
-
- submit("TRIRB00102"); //병원 조회
- 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"));
-
- var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
-
- if ( consorflag == "Y" ) {
- //submit("TRIRB00107"); //공동과제보완답변서 대상 조회
- model.setValue("/root/send/searchitem/consorflag", "Y");
- } else {
- //submit("TRIRB00105"); //보완답변서 대상 조회
- }
-
- //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
- if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
- submit("TRIRB00104"); //변동위반보고서 내용 조회
- // model.setValue("/root/main/reptdetl/item/cnts1", model.getValue("/root/main/reptlist/item/judgitem"));
- }
-
- 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.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
- model.setValue("/root/main/reptdetl/item/verplan", parent.model.getValue("/root/send/searchitem2/verplan"));
- model.setValue("/root/main/reptdetl/item/veraprv", parent.model.getValue("/root/send/searchitem2/veraprv"));
- model.setValue("/root/main/reptdetl/item/vercrf", parent.model.getValue("/root/send/searchitem2/vercrf"));
- model.setValue("/root/main/reptdetl/item/verib", parent.model.getValue("/root/send/searchitem2/verib"));
- model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
- model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
- model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
-
- model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
- model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
-
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,455;">
- <line id="line13" class="line_3" style="x1:5px; y1:453px; x2:858px; y2:453px; "/>
- <caption id="caption10" class="cell_1" style="left:656px; top:66px; width:105px; 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:553px; top:41px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hosp/ret">
- <label ref="hospnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_acptyn" ref="/root/main/reptdetl/item/acptyn" class="combo_search" disabled="true" appearance="minimal" style="left:763px; top:42px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:445px; top:41px; width:105px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
- <caption id="caption4" class="cell_1" style="left:656px; top:41px; width:105px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
- <caption id="caption14" class="cell_1" style="left:166px; top:41px; width:171px; height:23px; text-align:center; vertical-align:middle; ">최초임상시험 계획서 심사일자</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:41px; width:105px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
- <input id="ipt_judgappdg" ref="/root/main/reptdetl/item/judgappdg" class="input_default" disabled="true" style="left:113px; top:42px; width:50px; height:19px; "/>
- <input id="ipt_vercrf" ref="/root/main/reptdetl/item/subjnm" class="input_default" disabled="true" style="left:113px; top:67px; width:540px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:5px; top:66px; width:105px; height:23px; text-align:center; vertical-align:middle; ">연구과제명</caption>
- <input id="ipt_fstplanjudgdd" ref="/root/main/reptdetl/item/fstplanjudgdd" class="input_search" disabled="true" inputtype="date" appearance="input" style="left:341px; top:42px; width:100px; height:19px; "/>
- <input id="ipt_verib" ref="/root/main/reptdetl/item/roothospidxcasecnt" class="input_default" disabled="true" style="left:763px; top:68px; width:90px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:5px; y1:35px; x2:858px; y2:35px; "/>
- <caption id="caption1" class="tit_2" style="left:15px; top:15px; width:216px; height:14px; ">임상연구계획서 변동/위반 보고서</caption>
- <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:415px; top:13px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
- messageBox("임시저장 후 첨부파일을 올리세요", "I");
- return;
- }
-
- 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 ( filelist[0] != "") {
- if (submit("TXIRS00199")) {
- messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
- model.removeNodeset("/root/send/attach");
- parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
- parent.btn_report9.selected = true;
- parent.btn_report9.dispatch("DOMActivate");
- model.refresh();
- }
- }
- submit("TRIRB00104");
- 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.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
- model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
- model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
- model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:481px; top:13px; 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;
- } else {
-
- if (submit("TXIRS00198")) {
- messageBox("첨부파일이 삭제되었습니다.","I999");
-
- model.refresh();
- }
- }
-
- if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
- submit("TRIRB00104");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:253px; top:13px; width:157px; height:19px; "/>
- <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:660px; top:13px; 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", "A"); //보고서종류=변동위반보고서
- model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
- model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
- model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
-
- if ( model.getValue("/root/main/reptdetl/item/reptchoose") == 'V') {
- model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
- } else {
- model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
- }
-
- for ( i = 1; i < grd_test.rows; i++ ) {
- model.setValue("/root/main/reptdetl/test["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var update1 = instance1.selectNodes("/root/main/reptdetl/test");
- var rCSV1 = getNodeListCSV(update1);
-
- if ( rCSV1 != null ) {
- for ( i = 1; i < grd_test.rows; i++ ) {
- if ( model.getValue("/root/main/reptdetl/test["+ i +"]/testeeid") == "" ) {
- messageBox("피험자번호를", "C001");
- return;
- }
- }
- model.makeNode("/root/send/savedata/test");
- model.setValue("/root/send/savedata/test", rCSV1);
- }
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00102");
- } else {
- submit("TXIRB00101");
- }
-
- grd_test.clearStatus();
-
- model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
- parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
- parent.btn_report9.selected = true;
- parent.btn_report9.dispatch("DOMActivate");
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- ]]>
- </script>
- </button>
- <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:548px; top:13px; 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;
- }
-
- 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", "A"); //보고서종류=변동위반보고서
- model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
- model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
- model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
-
- if ( model.getValue("/root/main/reptdetl/item/reptchoose") == 'V') {
- model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
- } else {
- model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
- }
- /*
- for ( i = 1; i < grd_test.rows; i++ ) {
- model.setValue("/root/main/reptdetl/test["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
- */
- var update1 = instance1.selectNodes("/root/main/reptdetl/test");
- var rCSV1 = getNodeListCSV(update1);
-
- if ( rCSV1 != null ) {
- for ( i = 1; i < grd_test.rows; i++ ) {
- if ( model.getValue("/root/main/reptdetl/test["+ i +"]/testeeid") == "" ) {
- messageBox("피험자번호를", "C001");
- return;
- }
- }
- model.makeNode("/root/send/savedata/test");
- model.setValue("/root/send/savedata/test", rCSV1);
- }
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00102");
- } else {
- submit("TXIRB00101");
- }
-
- grd_test.clearStatus();
-
- parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
- parent.btn_report9.selected = true;
- parent.btn_report9.dispatch("DOMActivate");
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter9" _auth="P" style="left:738px; top:13px; width:119px; height:19px; ">
- <caption>변동위반보고서 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRIRS00101")) {
- submit("TRIRS00102");
- submit("TRIRS00103");
- model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
- var cnts5 = model.getValue("/root/rex/data/cnts5");
- var cnts6 = model.getValue("/root/rex/data/cnts6");
- var cnts7 = model.getValue("/root/rex/data/cnts7");
- var cnts8 = model.getValue("/root/rex/data/cnts8");
- var j = 0;
- var p = 0;
- var k = 0;
-
- model.copyNode("/root/rex/reptdetl", "/root/main/reptdetl");
-
- // 피험자 정보 목록에서 최초인지일은 min값을 가져옴
- var getdd = 99991231;
- for (var i=1; i < grd_test.rows; i++)
- {
- if (getdd > parseInt(model.getValue("/root/main/reptdetl/test["+i+"]/awardd")))
- getdd = model.getValue("/root/main/reptdetl/test["+i+"]/awardd");
- }
- if (getdd != "99991231")
- model.setValue("/root/rex/reptdetl/test/awardd", getdd);
-
- if ( cnts5.indexOf("\n",p ) >=0 ){
- while ( (j = cnts5.indexOf("\n",p ))>=0){
-
- var sdata = cnts5.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", sdata.replace("\n","") );
-
- }
- if ( p<cnts5.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts5.substring( p, cnts5.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", cnts5);
- }
-
- j = 0;
- p = 0;
- k = 0;
-
- if ( cnts6.indexOf("\n",p ) >=0 ){
- while ( (j = cnts6.indexOf("\n",p ))>=0){
-
- var sdata = cnts6.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", sdata.replace("\n","") );
-
- }
- if ( p<cnts6.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts6.substring( p, cnts6.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", cnts6);
- }
-
- j = 0;
- p = 0;
- k = 0;
-
- if ( cnts7.indexOf("\n",p ) >=0 ){
- while ( (j = cnts7.indexOf("\n",p ))>=0){
-
- var sdata = cnts7.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", sdata.replace("\n","") );
-
- }
- if ( p<cnts7.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts7.substring( p, cnts7.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", cnts7);
- }
-
- j = 0;
- p = 0;
- k = 0;
-
- if ( cnts8.indexOf("\n",p ) >=0 ){
- while ( (j = cnts8.indexOf("\n",p ))>=0){
-
- var sdata = cnts8.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", sdata.replace("\n","") );
-
- }
- if ( p<cnts8.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts8.substring( p, cnts8.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", cnts8);
- }
-
- exeReportPreview("PSIRB01000", "XMLSTR" , "/root/rex");
- }
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="52428800" validate="true" style="left:235px; top:5px; width:100px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:120px; top:35px; width:665px; height:150px; ">
- <col ref="file"/>
- </datagrid>
- <button id="button1" class="btn5_letter2" _auth="X" style="left:615px; top:13px; width:42px; 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"));
- }
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- /* var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- } */
- submit("TXIRB00104");
- } else {
- submit("TXIRB00103");
- }
-
- model.refresh();
- parent.model.setValue("/root/temp/ivieweryn", "N");
- parent.btn_report9.selected = true;
- parent.btn_report9.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:5px; top:91px; width:105px; height:23px; text-align:center; vertical-align:middle; ">과제번호</caption>
- <input id="output1" ref="/root/main/reptdetl/item/subjno" class="input_default" disabled="true" style="left:113px; top:92px; width:540px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:656px; top:91px; width:105px; height:23px; text-align:center; vertical-align:middle; ">진행례수</caption>
- <input id="output2" ref="/root/main/reptdetl/item/prcsidxcase" class="input_default" maxlength="5" format="99999" style="left:763px; top:92px; width:90px; height:19px; "/>
- <datagrid id="grd_test" nodeset="/root/main/reptdetl/test" caption="^^^^피험자번호^피험자약자^성별^최초인지일^발생일" colsep="^" colwidth="0, 0, 0, 0, 210, 288, 70, 110, 110" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:140px; width:848px; height:75px; ">
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="testeeid" type="input" maxlength="30"/>
- <col ref="testeenm" type="input" maxlength="30"/>
- <col class="gridcombo" ref="subtesteegndr" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="awardd" type="inputdate" style="text-align:center; "/>
- <col ref="genrdd" type="inputdate" style="text-align:center; "/>
- <col ref="subtesteeht" visibility="hidden"/>
- <col ref="subtesteebdwt" visibility="hidden"/>
- <col ref="subtesteebrthdd" visibility="hidden"/>
- </datagrid>
- <caption id="caption33" class="tit_2" style="left:15px; top:122px; width:140px; height:13px; ">피험자 정보</caption>
- <button id="btn_rowdel" class="btn2_letter3" _auth="X" style="left:760px; top:118px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_test.deleterow(grd_test.row);
- ]]>
- </script>
- </button>
- <button id="btn_rowadd" class="btn2_letter3" _auth="X" style="left:705px; top:118px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_test.addRow(true, true);
- model.setValue("/root/main/reptdetl/test["+ grd_test.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/reptdetl/test["+ grd_test.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- //해당 보고서가 신규작성일 경우 보고서일련번호가 없으므로 최초시작번호인 1로 셋팅한다.
- if ( model.getValue("/root/send/searchitem/reptseqno") != "" ) {
- model.setValue("/root/main/reptdetl/test["+ grd_test.row +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- } else {
- model.setValue("/root/main/reptdetl/test["+ grd_test.row +"]/reptseqno", 1);
- }
-
- model.setValue("/root/main/reptdetl/test["+ grd_test.row +"]/reptkind", "A"); //보고서종류=변동위반보고서(9)
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_2" style="left:15px; top:222px; width:140px; height:14px; ">변동/위반 보고</caption>
- <caption id="caption9" class="cell_1" style="left:5px; top:241px; width:105px; height:51px; text-align:center; vertical-align:middle; ">변동/위반 내용</caption>
- <caption id="caption11" class="cell_1" style="left:5px; top:294px; width:105px; height:51px; text-align:center; vertical-align:middle; ">변동/위반 이유</caption>
- <caption id="caption12" class="cell_1" style="left:5px; top:347px; width:105px; height:51px; text-align:center; vertical-align:middle; ">이후 취해진 조치</caption>
- <caption id="caption13" class="cell_1" style="left:5px; top:400px; width:105px; height:51px; text-align:center; vertical-align:middle; ">
- <![CDATA[재발 방지를
- 위한 조치]]>
- </caption>
- <textarea id="textarea7" ref="/root/main/reptdetl/item/cnts5" style="left:113px; top:241px; width:740px; height:51px; "/>
- <textarea id="textarea1" ref="/root/main/reptdetl/item/cnts6" style="left:113px; top:294px; width:740px; height:51px; "/>
- <textarea id="textarea2" ref="/root/main/reptdetl/item/cnts7" style="left:113px; top:347px; width:740px; height:51px; "/>
- <textarea id="textarea3" ref="/root/main/reptdetl/item/cnts8" style="left:112px; top:400px; width:740px; height:51px; "/>
- <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:415px; top:13px; 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("TRIRS00105")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|