123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657 |
- <?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>
- <opengthrnginfo>
- <seq/>
- <fstrgstdt/>
- </opengthrnginfo>
- <crbaseinfo>
- <subjinfo>
- <seq/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastupdtdt/>
- <subjno/>
- <stdyno/>
- <itemnm/>
- <stdysubjnm/>
- <stdytermfrom/>
- <stdytermto/>
- <clincflag/>
- <subjendyn/>
- <subjenddd/>
- <reqphos/>
- <reqnm/>
- <respstdynm/>
- <ioflag/>
- <subjid/>
- <drugenddd/>
- <crcnm/>
- <crctel/>
- <cranm/>
- <cratel/>
- <crcmpphonno/>
- <crcfaxno/>
- <crcemail/>
- <crampphonno/>
- <crafaxno/>
- <craemail/>
- <conyn/>
- <openfromdd/>
- <openfromtm/>
- <opentodd/>
- <opentotm/>
- <plcenm/>
- <attntrid/>
- <execyn>N</execyn>
- <trgtsicknm/>
- <drugfromdd/>
- <drugtodd/>
- <drugpridcnts/>
- <aspsprcpyn>N</aspsprcpyn>
- <detldrugmthd/>
- <cstdcondcd/>
- <cstdcondcnts/>
- <tmedguidyn>N</tmedguidyn>
- <tmedguidcnts/>
- <ivrsuseyn>1</ivrsuseyn>
- <ivrsuseflagcd/>
- <ivrsusecnts/>
- <fstrgstdt/>
- <valitodd>99991231</valitodd>
- <status/>
- </subjinfo>
- </crbaseinfo>
- <tempuserinfo/>
- </main>
- <send>
- <data>
- <subjdata/>
- <stdyempdata/>
- <drugdata/>
- </data>
- <srchdata>
- <subjno/>
- <subjid/>
- <srchflag>1</srchflag>
- <srchstdyno/>
- <seq/>
- </srchdata>
- </send>
- <init>
- <opengthrnginfo>
- </opengthrnginfo>
- </init>
- <hidden>
- <newElement/>
- <message/>
- </hidden>
- <temp>
- <drugfromtodd/>
- <popupmenu>
- <item>
- <func>fAddRow</func>
- <label>약품코드 추가</label>
- </item>
- <item>
- <func>fDelRow</func>
- <label>약품코드 삭제</label>
- </item>
- </popupmenu>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var subjNo = "";
- var subjID = "";
-
- //값 변경에 따른 컨트롤
- function fSetupCtrls(){
- if( model.getValue("/root/main/crbaseinfo/subjinfo/cstdcondcd") == "9" ){
- ipt_cstdcond.disabled = false;
- }else{
- ipt_cstdcond.disabled = true;
- }
-
- if( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "N" ){
- ipt_tmedguid.disabled = false;
- }else{
- ipt_tmedguid.disabled = true;
- }
- }
-
- //개시모임 저장이력 및 개시모임 상세 정보 조회
- function fGetSubject(){
- if( !isNull(subjNo) ){
- model.setValue("/root/send/srchdata/subjno", subjNo);
- model.setValue("/root/send/srchdata/subjid", subjID);
- if( submit("TRATR00601", false) ){
-
- if( instance1.selectNodes("/root/init/opengthrnginfo/item").length > 0 ){
- model.setValue("/root/main/opengthrnginfo/fstrgstdt", model.getValue("/root/init/opengthrnginfo/item["+1+"]/fstrgstdt"));
- model.setValue("/root/main/opengthrnginfo/seq", model.getValue("/root/init/opengthrnginfo/item["+1+"]/seq"));
- model.setValue("/root/send/srchdata/seq", model.getValue("/root/init/opengthrnginfo/item["+1+"]/seq"));
-
- cmb_history.refresh();
- }
-
- submit("TRATR00602");
- //-------------(투여기간일 합침)(20091015)
- fGetDrugdd();
- //-------------
- if( instance1.selectNodes("/root/main/crbaseinfo/druginfo").length > 0 ){
- for( var i=1; i<grd_druginfo.rows; i++ ){
- if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
- grd_druginfo.rowStatus(i) = 1;
- }
- }
- }else{
- grd_druginfo.addRow(true);
- model.setValue("/root/main/crbaseinfo/druginfo[" + 1 + " ]/m", "i");
- }
-
- fSetupCtrls();
- }
- }
- }
-
- //행추가
- function fAddRow(){
- grd_druginfo.addRow(true);
- //hidden value 생성 (m 값을 i로 셋팅)
- model.makeValue("/root/main/crbaseinfo/druginfo[" + (grd_druginfo.rows - grd_druginfo.fixedRows) + "]/m", "i");
- }
-
- //행삭제 or 삭제 mark
- function fDelRow(){
- var iRow = grd_druginfo.row;
- if( grd_druginfo.rowStatus(iRow) == 1 ){
- //신규 row는 바로 행삭제
- grd_druginfo.deleteRow(iRow);
- }else if( grd_druginfo.rowStatus(iRow) == 4 ){
- //삭제 falg를 갖는 row는 삭제 취소 및 m 값을 -로 셋팅
- grd_druginfo.rowStatus(iRow) = 0;
- model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "");
- }else{
- //그 외에는 모두 삭제 flag 처리 및 m 값을 d로 셋팅
- grd_druginfo.rowStatus(iRow) = 4;
- model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "d");
- }
- }
-
- //값 변경 시, 수정 mark
- function fSetRow(){
- var iRow = grd_druginfo.row;
- if( model.getValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m") != "i" ){
- //신규 row가 아닌 경우 m 값을 u로 셋팅
- grd_druginfo.rowStatus(iRow) = 2;
- model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "u");
- }
- }
-
- // 값 체크 (사용안함)
- function fGetCheck(){
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/subjid").length > 11 ) {
- messageBox("과제ID는 11자 이하로만 입력", "I006");
- return false;
- }
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/subjno").length > 11 ) {
- messageBox("과제번호는 13자 이하로만 입력", "I006");
- return false;
- }
-
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/stdysubjnm").length > 60 ) {
- messageBox("과제제목은 330자 이하로만 입력", "I006");
- return false;
- }
- if ( isNaN(model.getValue("/root/main/crbaseinfo/subjinfo/allidxcase"))) {
- messageBox("전체증례수는 숫자만 입력", "I006");
- return false;
- }
- if ( isNaN(model.getValue("/root/main/crbaseinfo/subjinfo/judgdg"))) {
- messageBox("IRB회차번호는 숫자만 입력", "I006");
- return false;
- }
-
- return true;
- }
-
- //-------------(투여기간일 합침)(20091015)
- //투여기간from + 투여기간to -> 합쳐서 보이기
- function fGetDrugdd(){
- var sdrugfrdd = model.getValue("/root/main/crbaseinfo/subjinfo/drugfromdd");
- var sdrugtodd = model.getValue("/root/main/crbaseinfo/subjinfo/drugtodd");
- var sdrugdd = "";
- if (sdrugfrdd != "") {
- sdrugdd = sdrugfrdd;
- }
- if (sdrugtodd != "") {
- sdrugdd = sdrugdd + "~" + sdrugtodd;
- }
- model.setValue("/root/temp/drugfromtodd", sdrugdd);
- model.refresh();
- //-------------
- }
- //합쳐서 보이기 -> 투여기간from + 투여기간to
- function fSetDrugdd(){
- var sdrugfrdd = "";
- var sdrugtodd = "";
- var sdrugdd = model.getValue("/root/temp/drugfromtodd");
- if (sdrugdd != "") {
- sdrugfrdd = sdrugdd.substr(0, 8);
- }
- if (sdrugdd != "") {
- sdrugtodd = sdrugdd.substr(9, 8);
- }
- model.setValue("/root/main/crbaseinfo/subjinfo/drugfromdd", sdrugfrdd);
- model.setValue("/root/main/crbaseinfo/subjinfo/drugtodd", sdrugtodd);
- }
- //------------
- ]]>
- </script>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //버튼권한
- //btn_save.disabled =! checkAuth("X"); //저장
- //btn_del.disabled =! checkAuth("X"); //삭제
-
- //---------------------(20091015)
- // model.removeNodeset("/root/main/crbaseinfo/druginfo"); // 첫 row 를 제거한다.
- // model.refresh();
- //---------------------
-
- //opener 화면에서 파라메터값을 넘겨주면, 해당 조건으로 검색
- if( !isNull(getOpenerUID()) ){ //Opener의 UID가 존재하면,
- subjNo = opener.javascript.getParameter("param_subjno");
- subjID = opener.javascript.getParameter("param_subjid");
-
- fGetSubject();
- }
- ]]>
- </script>
- <submission id="TRATR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/opengthrnginfo"/>
- <submission id="TRATR00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/crbaseinfo"/>
- <submission id="TXATR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/crbaseinfo" resultref="/root/hidden/message"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="992" pageheight="473" guideline="1,1194;1,314;1,579;1,484;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:975px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:135px; height:13px; ">개시모임관리</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:976px; height:430px; ">
- <select1 id="rdo_cstdcond" ref="/root/main/crbaseinfo/subjinfo/cstdcondcd" appearance="full" cols="4" vcellspacing="3" overflow="visible" style="left:579px; top:305px; width:395px; height:40px; border-style:none; ">
- <choices>
- <item>
- <label>실온(1-30도)</label>
- <value>1</value>
- </item>
- <item>
- <label>항온(15-25도)</label>
- <value>2</value>
- </item>
- <item>
- <label>냉장(2-8도)</label>
- <value>3</value>
- </item>
- <item>
- <label>냉동(0도 이하)</label>
- <value>4</value>
- </item>
- <item>
- <label>비고</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupCtrls();
- //20100308 황세원 수정
- if( model.getValue("/root/main/crbaseinfo/subjinfo/cstdcondcd") != "9" ){
- ipt_cstdcond.value="";
- }
- ///////
- ]]>
- </script>
- </select1>
- <input id="input13" ref="/root/main/crbaseinfo/subjinfo/reqnm" class="input_default" disabled="true" navindex="12" visibility="visible" editable="false" style="left:88px; top:111px; width:143px; height:19px; "/>
- <input id="input15" ref="/root/main/crbaseinfo/subjinfo/stdytermfrom" class="input_essential" disabled="true" navindex="13" visibility="hidden" editable="false" inputtype="date" style="left:341px; top:5px; width:40px; height:19px; "/>
- <input id="input16" ref="/root/main/crbaseinfo/subjinfo/stdytermto" class="input_default" disabled="true" navindex="14" visibility="hidden" editable="false" inputtype="date" style="left:381px; top:5px; width:40px; height:19px; "/>
- <line id="line8" class="line_2" visibility="visible" style="x1:0px; y1:108px; x2:485px; y2:108px; "/>
- <line id="line10" class="line_2" visibility="visible" style="x1:0px; y1:84px; x2:485px; y2:84px; "/>
- <input id="input19" ref="/root/main/crbaseinfo/subjinfo/openfromdd" class="input_default" navindex="15" inputtype="date" format="yyyy-mm-dd" style="left:88px; top:281px; width:101px; height:19px; text-align:center; "/>
- <caption id="caption22" class="cell_1" visibility="visible" style="left:0px; top:110px; width:85px; height:23px; vertical-align:middle; ">의뢰자</caption>
- <caption id="caption24" class="tit_2" style="left:0px; top:42px; width:126px; height:13px; ">과제 기본정보</caption>
- <caption id="caption25" class="cell_1" visibility="visible" style="left:0px; top:86px; width:85px; height:23px; vertical-align:middle; ">과제제목</caption>
- <caption id="caption26" class="cell_1" style="left:0px; top:279px; width:85px; height:23px; vertical-align:middle; ">개시모임일시</caption>
- <caption id="caption27" class="cell_1" visibility="hidden" style="left:235px; top:5px; width:50px; height:23px; vertical-align:middle; ">품목명</caption>
- <input id="input35" ref="/root/main/crbaseinfo/subjinfo/subjno" class="input_essential" disabled="true" navindex="8" visibility="visible" editable="false" maxlength="13" style="left:318px; top:63px; width:166px; height:19px; "/>
- <caption id="caption28" class="cell_1" visibility="visible" style="left:0px; top:62px; width:85px; height:23px; vertical-align:middle; ">연구코드</caption>
- <line id="line14" class="line_1" style="x1:0px; y1:57px; x2:485px; y2:57px; "/>
- <input id="input36" ref="/root/main/crbaseinfo/subjinfo/stdyno" class="input_essential" disabled="true" navindex="9" visibility="visible" editable="false" style="left:88px; top:63px; width:143px; height:19px; "/>
- <caption id="caption29" class="cell_1" visibility="visible" style="left:235px; top:62px; width:80px; height:23px; vertical-align:middle; ">과제번호</caption>
- <input id="input37" ref="/root/main/crbaseinfo/subjinfo/itemnm" class="input_essential" disabled="true" navindex="10" visibility="hidden" editable="false" style="left:285px; top:5px; width:56px; height:19px; "/>
- <input id="input38" ref="/root/main/crbaseinfo/subjinfo/stdysubjnm" class="input_default" disabled="true" navindex="11" visibility="visible" editable="false" maxlength="330" style="left:87px; top:86px; width:397px; height:19px; "/>
- <caption id="caption31" class="cell_1" visibility="hidden" style="left:235px; top:35px; width:79px; height:23px; vertical-align:middle; ">과제ID</caption>
- <!--
- <input id="input39" ref="/root/main/crbaseinfo/subjinfo/subjid" class="input_essential" disabled="true" navindex="8" visibility="hidden" editable="false" maxlength="11" style="left:190px; top:35px; width:45px; height:19px; "/>
- -->
- <input id="input39" ref="/root/main/crbaseinfo/subjinfo/subjid" class="input_essential" disabled="true" navindex="8" visibility="hidden" editable="false" maxlength="11" style="left:319px; top:35px; width:165px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:0px; top:134px; width:85px; height:71px; vertical-align:middle; ">원내CRC</caption>
- <caption id="caption36" class="cell_1" style="left:0px; top:206px; width:85px; height:71px; vertical-align:middle; ">의뢰자측</caption>
- <caption id="caption37" class="cell_1" style="left:88px; top:134px; width:80px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="caption40" class="cell_1" style="left:88px; top:206px; width:80px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="caption49" class="cell_1" style="left:235px; top:134px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption51" class="cell_1" style="left:235px; top:206px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
- <input id="input40" ref="/root/main/crbaseinfo/subjinfo/crcnm" class="input_default" disabled="true" navindex="23" style="left:171px; top:136px; width:60px; height:19px; "/>
- <input id="input41" ref="/root/main/crbaseinfo/subjinfo/cranm" class="input_default" disabled="true" navindex="23" style="left:170px; top:208px; width:60px; height:19px; "/>
- <input id="input42" ref="/root/main/crbaseinfo/subjinfo/cratel" class="input_default" disabled="true" navindex="23" style="left:318px; top:208px; width:166px; height:19px; "/>
- <input id="input43" ref="/root/main/crbaseinfo/subjinfo/crctel" class="input_default" disabled="true" navindex="23" style="left:318px; top:136px; width:166px; height:19px; "/>
- <caption id="caption56" class="cell_1" style="left:88px; top:158px; width:80px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
- <input id="input44" ref="/root/main/crbaseinfo/subjinfo/crcmpphonno" class="input_default" disabled="true" navindex="23" style="left:171px; top:160px; width:142px; height:19px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:204px; x2:485px; y2:204px; "/>
- <caption id="caption57" class="cell_1" style="left:316px; top:158px; width:75px; height:23px; vertical-align:middle; ">Fax</caption>
- <input id="input45" ref="/root/main/crbaseinfo/subjinfo/crcfaxno" class="input_default" disabled="true" navindex="23" style="left:394px; top:159px; width:90px; height:19px; "/>
- <caption id="caption58" class="cell_1" style="left:88px; top:182px; width:80px; height:23px; vertical-align:middle; ">E-mail</caption>
- <input id="input46" ref="/root/main/crbaseinfo/subjinfo/crcemail" class="input_default" disabled="true" navindex="23" style="left:171px; top:182px; width:313px; height:19px; "/>
- <input id="input47" ref="/root/main/crbaseinfo/subjinfo/craemail" class="input_default" disabled="true" navindex="23" style="left:171px; top:231px; width:313px; height:19px; "/>
- <caption id="caption59" class="cell_1" style="left:88px; top:254px; width:80px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
- <caption id="caption60" class="cell_1" style="left:316px; top:254px; width:75px; height:23px; vertical-align:middle; ">Fax</caption>
- <caption id="caption61" class="cell_1" style="left:88px; top:230px; width:80px; height:23px; vertical-align:middle; ">E-mail</caption>
- <input id="input48" ref="/root/main/crbaseinfo/subjinfo/crampphonno" class="input_default" disabled="true" navindex="23" style="left:171px; top:255px; width:142px; height:19px; "/>
- <input id="input49" ref="/root/main/crbaseinfo/subjinfo/crafaxno" class="input_default" disabled="true" navindex="23" style="left:394px; top:255px; width:90px; height:19px; "/>
- <caption id="caption63" class="cell_1" visibility="visible" style="left:235px; top:110px; width:80px; height:23px; vertical-align:middle; ">시험책임자</caption>
- <input id="input50" ref="/root/main/crbaseinfo/subjinfo/respstdynm" class="input_default" disabled="true" navindex="12" visibility="visible" editable="false" style="left:318px; top:111px; width:166px; height:19px; "/>
- <input id="ipt_openfromtm" ref="/root/main/crbaseinfo/subjinfo/openfromtm" class="input_default" navindex="15" inputtype="button" format="hh:nn:ss" style="left:193px; top:281px; width:76px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/main/crbaseinfo/subjinfo/openfromtm", getCurrentTime().substr(0,4));
- ipt_openfromtm.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_opentotm" ref="/root/main/crbaseinfo/subjinfo/opentotm" class="input_default" navindex="15" inputtype="button" format="hh:nn:ss" style="left:296px; top:281px; width:76px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/main/crbaseinfo/subjinfo/opentotm", getCurrentTime().substr(0,4));
- ipt_opentotm.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption64" class="cell_1" style="left:0px; top:327px; width:85px; height:47px; vertical-align:middle; ">참석자</caption>
- <input id="input54" ref="/root/main/crbaseinfo/subjinfo/plcenm" class="input_default" navindex="17" style="left:88px; top:304px; width:396px; height:19px; "/>
- <caption id="caption65" class="cell_1" style="left:0px; top:303px; width:85px; height:23px; vertical-align:middle; ">장소</caption>
- <caption id="caption66" class="tit_2" style="left:485px; top:40px; width:201px; height:13px; ">개시모임 주요내용 및 논의사항</caption>
- <line id="line18" class="line_1" style="x1:490px; y1:57px; x2:975px; y2:57px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:301px; x2:485px; y2:301px; "/>
- <caption id="caption67" class="cell_1" style="left:491px; top:62px; width:85px; height:23px; vertical-align:middle; ">대상질환</caption>
- <caption id="caption68" class="cell_1" style="left:491px; top:86px; width:85px; height:23px; vertical-align:middle; ">계약완료여부</caption>
- <textarea id="textarea2" ref="/root/main/crbaseinfo/subjinfo/attntrid" style="left:88px; top:329px; width:396px; height:41px; "/>
- <caption id="caption69" class="cell_1" style="left:491px; top:110px; width:85px; height:23px; vertical-align:middle; ">투여기간</caption>
- <input id="input55" ref="/root/main/crbaseinfo/subjinfo/drugtodd" class="input_default" navindex="15" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:825px; top:35px; width:96px; height:19px; "/>
- <input id="input56" ref="/root/main/crbaseinfo/subjinfo/drugfromdd" class="input_default" navindex="15" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:707px; top:35px; width:96px; height:19px; "/>
- <caption id="caption70" class="cell_1" style="left:866px; top:110px; width:55px; height:23px; vertical-align:middle; ">투여주기</caption>
- <caption id="caption71" class="cell_1" style="left:491px; top:134px; width:85px; height:96px; vertical-align:middle; ">임상약정보</caption>
- <input id="input57" ref="/root/main/crbaseinfo/subjinfo/trgtsicknm" class="input_default" navindex="17" style="left:579px; top:63px; width:394px; height:19px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:277px; x2:490px; y2:277px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:325px; x2:485px; y2:325px; "/>
- <caption id="caption72" class="cell_1" style="left:491px; top:231px; width:85px; height:71px; vertical-align:middle; ">투약방법</caption>
- <caption id="caption73" class="cell_1" style="left:579px; top:231px; width:85px; height:23px; vertical-align:middle; ">무균조제여부</caption>
- <caption id="caption74" class="cell_1" style="left:579px; top:255px; width:85px; height:47px; vertical-align:middle; ">투여방법</caption>
- <textarea id="textarea3" ref="/root/main/crbaseinfo/subjinfo/detldrugmthd" style="left:667px; top:258px; width:306px; height:41px; "/>
- <caption id="caption75" class="cell_1" style="left:491px; top:303px; width:85px; height:47px; vertical-align:middle; ">보관조건</caption>
- <caption id="caption76" class="cell_1" style="left:491px; top:351px; width:85px; height:23px; vertical-align:middle; ">복약지도여부</caption>
- <caption id="caption77" class="cell_1" style="left:491px; top:375px; width:85px; height:47px; vertical-align:middle; ">IVRS사용여부</caption>
- <line id="line24" class="line_2" style="x1:493px; y1:84px; x2:973px; y2:84px; "/>
- <line id="line25" class="line_2" style="x1:493px; y1:108px; x2:973px; y2:108px; "/>
- <line id="line26" class="line_2" style="x1:493px; y1:132px; x2:973px; y2:132px; "/>
- <line id="line27" class="line_2" style="x1:493px; y1:229px; x2:973px; y2:229px; "/>
- <line id="line28" class="line_2" style="x1:493px; y1:301px; x2:973px; y2:301px; "/>
- <line id="line29" class="line_2" style="x1:493px; y1:349px; x2:973px; y2:349px; "/>
- <line id="line30" class="line_2" style="x1:493px; y1:373px; x2:973px; y2:373px; "/>
- <line id="line31" class="line_2" style="x1:493px; y1:421px; x2:973px; y2:421px; "/>
- <select1 id="radio3" ref="/root/main/crbaseinfo/subjinfo/conyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:87px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="rd_aspsprcpyn" ref="/root/main/crbaseinfo/subjinfo/aspsprcpyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:667px; top:234px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="rd_ivrsuseyn" ref="/root/main/crbaseinfo/subjinfo/ivrsuseyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:378px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="rd_tmedguidyn" ref="/root/main/crbaseinfo/subjinfo/tmedguidyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:352px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupCtrls();
- // 20100308 황세원 수정
- if( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "Y" ){
- ipt_tmedguid.value = "";
- }
- //////////////////
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_3" style="x1:491px; y1:420px; x2:971px; y2:420px; "/>
- <input id="ipt_tmedguid" ref="/root/main/crbaseinfo/subjinfo/tmedguidcnts" class="input_default" disabled="true" navindex="17" style="left:680px; top:352px; width:294px; height:19px; "/>
- <input id="ipt_cstdcond" ref="/root/main/crbaseinfo/subjinfo/cstdcondcnts" class="input_default" disabled="true" navindex="17" style="left:680px; top:325px; width:294px; height:19px; "/>
- <caption id="caption1" style="left:273px; top:283px; width:20px; height:20px; text-align:center; ">~</caption>
- <caption id="caption2" visibility="hidden" style="left:805px; top:35px; width:20px; height:20px; text-align:center; ">~</caption>
- <input id="input3" ref="/root/main/crbaseinfo/subjinfo/drugpridcnts" class="input_default" navindex="15" style="left:920px; top:112px; width:53px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:375px; width:85px; height:47px; vertical-align:middle; ">
- <![CDATA[개시모임
- 수행여부]]>
- </caption>
- <select1 id="rd_execyn" ref="/root/main/crbaseinfo/subjinfo/execyn" appearance="full" vcellspacing="3" overflow="visible" style="left:88px; top:379px; width:142px; height:38px; border-style:none; ">
- <choices>
- <item>
- <label>미수행</label>
- <value>N</value>
- </item>
- <item>
- <label>수행</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_2" style="x1:0px; y1:373px; x2:490px; y2:373px; "/>
- <line id="line3" class="line_3" style="x1:5px; y1:420px; x2:485px; y2:420px; "/>
- <line id="line4" class="line_2" visibility="visible" style="x1:0px; y1:132px; x2:485px; y2:132px; "/>
- <caption id="caption4" class="cell_2" visibility="hidden" style="left:725px; top:0px; width:85px; height:23px; vertical-align:middle; ">저장 이력</caption>
- <datagrid id="grd_druginfo" nodeset="/root/main/crbaseinfo/druginfo" caption="약품코드^성분 및 함량^기타 상세정보^m^orgdrugcd" colsep="^" colwidth="90, 110, 171, 25, 25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:579px; top:135px; width:394px; height:90px; ">
- <col ref="drugcd" type="input"/>
- <col ref="comcnts" type="input"/>
- <col ref="detlinfocnts" type="input"/>
- <col ref="m" visibility="hidden"/>
- <col ref="orgdrugcd" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if( event.button == 3 )
- setPopupMenu("grd_druginfo", false, "/root/temp/popupmenu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRow();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_history" ref="/root/main/opengthrnginfo/seq" visibility="hidden" appearance="minimal" style="left:813px; top:2px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/opengthrnginfo/item">
- <label ref="fstrgstdt"/>
- <value ref="seq"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/temp/drugfromtodd" class="input_default" navindex="17" style="left:579px; top:112px; width:126px; height:19px; "/>
- <caption id="caption5" style="left:704px; top:115px; width:161px; height:14px; ">(YYYYMMDD~YYYYMMDD)</caption>
- <select id="checkbox1" ref="/root/main/crbaseinfo/subjinfo/ivrsuseflagcd" overflow="visible" appearance="full" cols="2" sep="|" style="left:680px; top:378px; width:275px; height:35px; border-style:none; ">
- <choices>
- <item>
- <label>입고등록</label>
- <value>1</value>
- </item>
- <item>
- <label>환자별 무작위번호 배정</label>
- <value>2</value>
- </item>
- <item>
- <label>출고등록</label>
- <value>3</value>
- </item>
- <item>
- <label>약품 공급 요청</label>
- <value>4</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:445px; width:975px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="31" style="left:918px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromTm = model.getValue("/root/main/crbaseinfo/subjinfo/openfromtm");
- var toTm = model.getValue("/root/main/crbaseinfo/subjinfo/opentotm");
- var seq = model.getValue("/root/main/crbaseinfo/subjinfo/seq");
- var validd = model.getValue("/root/main/crbaseinfo/subjinfo/valitodd");
-
- //if( fromTm.getByteLength() < 4 ) model.setValue("/root/main/crbaseinfo/subjinfo/openfromtm", fromTm + "00");
- //if( toTm.getByteLength() < 4 ) model.setValue("/root/main/crbaseinfo/subjinfo/opentotm", toTm + "00");
-
- if( isNull(validd) ) model.setValue("/root/main/crbaseinfo/subjinfo/valitodd", "99991231");
- else if( validd.getByteLength() < 8 ){
- messageBox("유효일자는 8자리", "I009");
- return;
- }
- if( isNull(seq) ){
- model.setValue("/root/main/crbaseinfo/subjinfo/status", "I");
- }else{
- if( getCurrentDate().toDate("YYYYMMDD") >= validd.toDate("YYYYMMDD") )
- model.setValue("/root/main/crbaseinfo/subjinfo/status", "D");
- else
- model.setValue("/root/main/crbaseinfo/subjinfo/status", "U");
- }
-
- //---------(20091015)
- fSetDrugdd(); //투여기간분리
- //필수 항목체크
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/execyn") == "") {
- messageBox("개시모임수행여부는 필수 입력 사항 입니다..","I9999");
- model.setFocus("rd_execyn")
- return;
- }
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/aspsprcpyn") == "") {
- messageBox("무균조제여부 필수 입력 사항 입니다..","I9999");
- model.setFocus("rd_aspsprcpyn")
- return;
- }
-
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "") {
- messageBox("복약지도여부 필수 입력 사항 입니다..","I9999");
- model.setFocus("rd_tmedguidyn")
- return;
- }
- if ( model.getValue("/root/main/crbaseinfo/subjinfo/ivrsuseyn") == "") {
- messageBox("IVRS사용여부 필수 입력 사항 입니다..","I9999");
- model.setFocus("rd_ivrsuseyn")
- return;
- }
-
- // for( var i=1; i<grd_druginfo.rows; i++ ){
- // if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
- // grd_druginfo.rowStatus(i) = 1;
- // }
- // }
-
- if (grd_druginfo.rows > 1 ) {
- for( var i=1; i<grd_druginfo.rows; i++ ){
- if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
- if (model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/drugcd") =="") {
- messageBox("임상약정보는 필수입니다.","I9999");
- model.setFocus("grd_druginfo")
- return;
- }
- }
- }
- }
- //----------
- if( submit("TXATR00601", false) ){
- fGetSubject();
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter2" navindex="31" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/crbaseinfo/subjinfo/cstdcondnm", rdo_cstdcond.label);
- exeReportPreview("RPATR00600", "XMLSTR");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|