123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?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/>
- <verplan/>
- <veraprv/>
- <vercrf/>
- <verib/>
- <attfile/>
- <screenmenu/>
- <resercnfmyn/>
- <firstdg/>
- <firstjudgdd/>
- </item>
- </reptdetl>
- </main>
- <send>
- <savedata>
- </savedata>
- <searchitem>
- <reptkind/>
- <subjid/>
- <instcd/>
- <reptseqno/>
- </searchitem>
- </send>
- <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>
- </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>
- </rex>
- </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="TRIRS00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <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"/>
- </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[
- //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
- if ( opener.javascript.getParameter("actionyn") == "N" ) {
- ipt_filenm.visible = true;
- btn_fileatt.visible = true;
-
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- }
-
- if ( parent.model.getValue("/root/send/report") == "Y" ) {
- ipt_filenm.visible = true;
- btn_fileatt.visible = true;
-
- btn_tmpsave.visible = false;
- btn_reptacpt.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 ( parent.javascript.getParameter("consorflag") == "Y" ) {
- submit("TRIRB00102");
- } else {
-
- //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
- if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
- 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/screenmenu", parent.model.getValue("/root/init/screenmenu"));
-
- model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
-
- setParameter("reptchoose", model.getValue("/root/main/reptdetl/item/reptchoose"));
- }
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,420;">
- <line id="line13" class="line_3" style="x1:5px; y1:400px; x2:1170px; y2:400px; "/>
- <caption id="caption10" class="cell_1" style="left:837px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">IB</caption>
- <caption id="caption11" class="cell_1" style="left:5px; top:96px; width:540px; 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:112px; top:67px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hosp/ret">
- <label ref="hospnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:550px; top:96px; width:620px; 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:340px; top:67px; width:100px; 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:5px; top:66px; width:105px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
- <caption id="caption4" class="cell_1" style="left:217px; top:66px; width:120px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
- <caption id="caption5" class="cell_1" style="left:445px; top:42px; width:60px; height:48px; text-align:center; vertical-align:middle; ">VERSION</caption>
- <caption id="caption14" class="cell_1" style="left:217px; top:41px; width:120px; height:23px; text-align:center; vertical-align:middle; ">최초계획서 심사일</caption>
- <input id="ipt_verplan" ref="/root/main/reptdetl/item/verplan" class="input_default" disabled="true" style="left:579px; top:44px; width:253px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:507px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">계획서</caption>
- <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" style="left:5px; top:120px; width:540px; height:270px; "/>
- <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" editable="false" style="left:112px; top:42px; width:100px; height:19px; "/>
- <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" style="left:550px; top:120px; width:620px; height:270px; "/>
- <input id="ipt_vercrf" ref="/root/main/reptdetl/item/vercrf" class="input_default" disabled="true" style="left:579px; top:68px; width:253px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:507px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">CRF</caption>
- <input id="ipt_fstplanjudgdd" ref="/root/main/reptdetl/item/fstplanjudgdd" class="input_search" inputtype="date" style="left:340px; top:42px; width:100px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:837px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">동의서</caption>
- <input id="ipt_veraprv" ref="/root/main/reptdetl/item/veraprv" class="input_default" disabled="true" style="left:909px; top:44px; width:253px; height:19px; "/>
- <input id="ipt_verib" ref="/root/main/reptdetl/item/verib" class="input_default" disabled="true" style="left:909px; top:68px; width:253px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:5px; y1:35px; x2:1171px; y2:35px; "/>
- <caption id="caption1" class="tit_2" style="left:15px; top:15px; width:140px; height:14px; ">보완답변서</caption>
- <button id="btn_fileatt" class="btn2_letter4" _auth="R" style="left:765px; 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("TRIRS00105")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:563px; top:5px; width:200px; height:19px; "/>
- <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:965px; 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", "1"); //보고서종류=보완답변서(1)
- model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
- model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
- submit("TXIRB00101");
- parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
- parent.btn_report1.selected = true;
- parent.btn_report1.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:898px; 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", "1"); //보고서종류=보완답변서(1)
- model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
- submit("TXIRB00101");
- parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
- parent.btn_report1.selected = true;
- parent.btn_report1.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter8" _auth="P" style="left:1055px; top:5px; width:108px; height:19px; ">
- <caption>보완답변서 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRIRS00101")) {
- submit("TRIRS00102");
- submit("TRIRS00103");
- model.setValue("/root/rex/data/cnts1", model.getValue("/root/main/reptdetl/item/cnts1"));
- model.setValue("/root/rex/data/cnts2", model.getValue("/root/main/reptdetl/item/cnts2"));
- model.setValue("/root/rex/data/acptdd", model.getValue("/root/main/reptdetl/item/acptdd"));
- model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
- model.setValue("/root/rex/data/firstdg", model.getValue("/root/main/reptdetl/item/firstdg"));
- model.setValue("/root/rex/data/firstjudgdd", model.getValue("/root/main/reptdetl/item/firstjudgdd"));
-
- var cnts1 = model.getValue("/root/rex/data/cnts1");
- var cnts2 = model.getValue("/root/rex/data/cnts2");
- var j = 0;
- var p = 0;
- var k = 0;
-
- model.makeNode("/root/rex/reptdetl");
-
- if ( cnts1.indexOf("\n",p ) >=0 ){
- while ( (j = cnts1.indexOf("\n",p ))>=0){
-
- var sdata = cnts1.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
-
- }
- if ( p<cnts1.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts1.substring( p, cnts1.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", cnts1);
- }
-
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( cnts2.indexOf("\n",p ) >=0 ){
- while ( (j = cnts2.indexOf("\n",p ))>=0){
-
- var sdata = cnts2.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
-
- }
- if ( p<cnts2.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = cnts2.substring( p, cnts2.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", cnts2);
- }
-
-
- exeReportPreview("PSIRB00200", "XMLSTR" , "/root/rex");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|