123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?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>
- <list>
- <grid1>
- <item>
- <m/>
- <userkind/>
- <usernm/>
- <userid/>
- <sosok/>
- <mpphonno/>
- <chrgyn/>
- <subjid/>
- <instcd/>
- <conreseryn/>
- <grupjoblncd/>
- </item>
- </grid1>
- <grid2>
- <item>
- <subjid/>
- <subjno/>
- <subjnm/>
- <itemnm/>
- <instcd/>
- <cmpynm/>
- </item>
- </grid2>
- </list>
- </main>
- <send>
- <data>
- <subjid/>
- <instcd/>
- <subjno/>
- <screenmenu/>
- <subjnm/>
- <respstdyempno/>
- <respstdyempnm/>
- </data>
- </send>
- <senddata>
- <grid1/>
- </senddata>
- <init>
- <baseinfo>
- <instinfo>
- <instcd/>
- <hospnm/>
- </instinfo>
- </baseinfo>
- <cmb_info>
- <initbank>
- <cdid/>
- <cdnm/>
- </initbank>
- </cmb_info>
- </init>
- <hidden>
- <source>
- <seqno/>
- </source>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
- submit("TRZBC00101", false);
- model.removeNodeset("/root/main/list/grid1");
-
- model.setValue("/root/send/data/screenmenu", getScreenMenuParameter());
-
- //submit("TRISR01011", false);
- submit("TRIRZ00000", false);
-
- if ( model.getValue("/root/send/data/screenmenu") == 'C' ) {
- btn_save.disabled = true;
- } else {
- btn_save.disabled = false;
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRICU01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/init/expendcdinfo"/>
- <submission id="TRZBC00101"/>
- <submission id="TRIRS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/list/grid1"/>
- <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo"/>
- <submission id="TXISR01005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/grid1" replace="instance" resultref="/root/hidden/source"/>
- <submission id="TRISR01011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/grid2"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- function getGridUpdateData(gridObj, statusType) {
-
- var updataData = gridObj.getUpdateData(statusType);
- var rowsep = gridObj.attribute("rowsep");
- alert(updataData);
- alert(rowsep);
- var split = updataData.split(rowsep);
- alert(split);
- alert(split.length)
- if(split.length > 2){
- return updataData;
- }
- else
- return "";
- }
- */
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_2" style="left:0px; top:61px; width:185px; height:13px; ">연구과제</caption>
- <button id="btn_save" class="btn5_letter3" navindex="30" style="left:460px; top:330px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(grd_reserapnt);
- model.setValue("/root/senddata/grid1", update);
- //model.setValue("/root/senddata/grid1",grd_reserapnt.getUpdateData());
-
- if (submit("TXISR01005")){
- submit("TRIRS00201");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_reserapnt" nodeset="/root/main/list/grid1/item" autoresize="true" caption="역할^성명^소속^연락처^계약연구원^caption1^caption2" colsep="^" colwidth="100, 100, 100, 118, 72, 72, 55, 22, 17, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:358px; width:535px; height:165px; ">
- <col disabled="true" ref="userkind" type="combo">
- <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>
- </col>
- <col ref="usernm"/>
- <col ref="sosok"/>
- <col ref="mpphonno"/>
- <col checkvalue="Y,N" ref="conreseryn" type="checkbox"/>
- <col checkvalue="Y,N" ref="chrgyn" type="radio" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="grupjoblncd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_reserapnt.col == 5)
- {
- if (model.getValue("/root/main/list/grid1/item["+ grd_reserapnt.row +"]/grupjoblncd") != "28")
- {
- messageBox("계약연구원으로 선택하실 수 없습니다", "I");
- grd_reserapnt.valueMatrix(grd_reserapnt.row, grd_reserapnt.colRef("conreseryn")) = "N";
- grd_reserapnt.removeStatus(grd_reserapnt.row, "update");
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_subj" nodeset="/root/main/list/grid2/item" caption="과제번호^과제명^품목명^해당병원^의뢰자^책임연구자" colsep="^" colwidth="100, 330, 126, 116, 162, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:81px; width:1070px; height:239px; ">
- <col ref="subjno"/>
- <col ref="subjnm"/>
- <col ref="itemnm"/>
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/instinfo">
- <label ref="hospnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmpynm"/>
- <col ref="respstdyempnm"/>
- <col ref="respstdyempno" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if( isDataCell() ){
- model.setValue("/root/send/data/subjid", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/subjid"));
- model.setValue("/root/send/data/instcd", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/instcd"));
-
- submit("TRIRS00201");
- /*
- var i =model.getValue("/root/main/list/grid1/item/m");
- if (i >0)
- {
- if (model.getValue("/root/main/list/grid1/item["+ i +"]/grupjoblncd") == "28") // 계약연구원
- model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "Y");
- else
- model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "N");
- }
- */
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:79px; x2:1074px; y2:78px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:338px; width:185px; height:13px; ">연구관련담당자</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:356px; x2:538px; y2:355px; "/>
- <group id="group2" style="left:0px; top:16px; width:1075px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1075px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제번호 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:992px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/data/respstdyempnm") == "")
- model.setValue("/root/send/data/respstdyempno", "");
-
- if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
- {
- messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
- return;
- }
-
- submit("TRISR01011", false);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input3" ref="/root/send/data/subjno" class="input_search" style="left:114px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- inputEnterKey("input3", "xforms-value-changed");
- if (model.getValue("/root/send/data/respstdyempnm") == "")
- model.setValue("/root/send/data/respstdyempno", "");
-
- if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
- {
- messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
- return;
- }
-
- model.setValue("/root/send/data/subjno", model.getValue("/root/send/data/subjno").toUpperCase());
- input3.value = model.getValue("/root/send/data/subjno");
- model.setFocus("btn_search");
- submit("TRISR01011", false);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:230px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제명 :</caption>
- <input id="input1" ref="/root/send/data/subjnm" class="input_search" style="left:316px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- inputEnterKey("input1", "xforms-value-changed");
- if (model.getValue("/root/send/data/respstdyempnm") == "")
- model.setValue("/root/send/data/respstdyempno", "");
-
- if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
- {
- messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
- return;
- }
-
- input1.value = model.getValue("/root/send/data/subjnm");
- model.setFocus("btn_search");
- submit("TRISR01011", false);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:440px; top:8px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">책임연구자 :</caption>
- <input id="input2_hid" ref="/root/send/data/respstdyempno" visibility="hidden" style="left:670px; top:8px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/send/data/respstdyempnm" class="input_search" style="left:540px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- inputEnterKey("input2", "xforms-value-changed");
- if (model.getValue("/root/send/data/respstdyempnm") == "")
- model.setValue("/root/send/data/respstdyempno", "");
-
- if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
- {
- messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
- return;
- }
-
- input2.value = model.getValue("/root/send/data/respstdyempnm");
- model.setFocus("btn_search");
- submit("TRISR01011", false);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">계약 관련 계약연구원 지정</caption>
- <button id="button8" class="icon_search" style="left:645px; top:25px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setParameter("target","resp");
- // setParameter("userkind","1");
- window.load("../../comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- model.setValue("/root/send/data/respstdyempno", getParameter("userid"));
- model.setValue("/root/send/data/respstdyempnm", getParameter("usernm"));
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|