123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?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>
- <script type="javascript" src="C:\CMCProject\application\webapps\crc\clinicresearchweb\js\crccnvsub1.js"/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <item>
- <chk/>
- <userkind/>
- <usernm/>
- <deptnm/>
- <jobposnm/>
- <rrgstno/>
- <workplceaddr/>
- <cmpytelno/>
- <email/>
- <bankcd/>
- <acntno/>
- <depor/>
- <subjid/>
- <instcd/>
- <userid/>
- <userseqno/>
- </item>
- </grid>
- </main>
- <send>
- <itemsavedata/>
- <userkind/>
- <subjid/>
- <instcd/>
- </send>
- <init>
- <cmb_info>
- <initbank>
- <cdid/>
- <cdnm/>
- </initbank>
- </cmb_info>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
- submit("TRZBC00101", false);
-
- var instcd = opener.javascript.getParameter("instcd");
- var subjid = opener.javascript.getParameter("subjid");
- model.setValue("/root/send/instcd",instcd);
- model.setValue("/root/send/subjid",subjid);
-
- submit("TRIMR00550");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRIMR00550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
- <submission id="TXIMR00550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function datacheck() {
-
- var chk = 0;
-
- for ( var i = 0; i < grd_reserinfo.rows; i++ ) {
- if ( grd_reserinfo.valueMatrix(i, grd_reserinfo.colRef("chk")) == 'Y' ) {
- ++chk;
- }
- }
-
- if ( chk < 1 ) {
- messageBox("수정하실 연구원을 선택해 주세요.", "I999");
- return false;
- }
-
- for ( var i = 0; i < grd_reserinfo.rows; i++ ) {
- if ( grd_reserinfo.valueMatrix(i, grd_reserinfo.colRef("chk")) == 'Y' ) {
-
- if(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 성명은", "I003");
- return false;
- }
-
- if(model.getValue("/root/main/grid/item[" + i + "]/deptnm") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 소속은", "I003");
- return false;
- }
- if(model.getValue("/root/main/grid/item[" + i + "]/jobposnm") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 직위는", "I003");
- return false;
- }
- if( model.getValue("/root/main/grid/item[" + i + "]/rrgstno") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 주민번호는", "I003");
- return false;
- }
- var rrgs = model.getValue("/root/main/grid/item[" + i + "]/rrgstno");
- if(!isResidentNo(rrgs)){ // 주민번호 유효성 체크
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 주민번호는 잘못된 주민번호","E008");
- return false;
- }
- if(model.getValue( "/root/main/grid/item[" + i + "]/workplceaddr" ) == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 주소는", "I003");
- return false;
- }
- if(model.getValue( "/root/main/grid/item[" + i + "]/cmpytelno" ) == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 연락처는", "I003");
- return false;
- }
- if(model.getValue( "/root/main/grid/item[" + i + "]/email" ) == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 이메일은", "I003");
- return false;
- }
- if(model.getValue("/root/main/grid/item[" + i + "]/bankcd") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 은행은", "I003");
- return false;
- }
- if(model.getValue("/root/main/grid/item[" + i + "]/acntno") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 계좌번호는", "I003");
- return false;
- }
- if(model.getValue("/root/main/grid/item[" + i + "]/acntno").length < 5 ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 계좌번호는 잘못된 계좌번호", "E008");
- return false;
- }
- if(model.getValue("/root/main/grid/item[" + i + "]/depor") == "" ) {
- messageBox(model.getValue( "/root/main/grid/item[" + i + "]/usernm" ) + "님의 예금주는", "I003");
- return false;
- }
- }
- }
-
- }
-
- function settingData() {
- for ( var i = 0; i < grd_reserinfo.rows; i++ ) {
- if ( grd_reserinfo.valueMatrix(i, grd_reserinfo.colRef("chk")) == 'Y' ) {
- opener.window.javascript.setParameter("userkind", model.getValue( "/root/main/grid/item[" + i + "]/userkind"));
- opener.window.javascript.setParameter("usernm", model.getValue( "/root/main/grid/item[" + i + "]/usernm"));
- opener.window.javascript.setParameter("deptnm", model.getValue( "/root/main/grid/item[" + i + "]/deptnm"));
- opener.window.javascript.setParameter("jobposnm", model.getValue( "/root/main/grid/item[" + i + "]/jobposnm"));
- opener.window.javascript.setParameter("rrgstno", model.getValue( "/root/main/grid/item[" + i + "]/rrgstno"));
- opener.window.javascript.setParameter("workplceaddr", model.getValue( "/root/main/grid/item[" + i + "]/workplceaddr"));
- opener.window.javascript.setParameter("cmpytelno", model.getValue( "/root/main/grid/item[" + i + "]/cmpytelno"));
- opener.window.javascript.setParameter("email", model.getValue( "/root/main/grid/item[" + i + "]/email"));
- opener.window.javascript.setParameter("bankcd", model.getValue( "/root/main/grid/item[" + i + "]/bankcd"));
- opener.window.javascript.setParameter("acntno", model.getValue( "/root/main/grid/item[" + i + "]/acntno"));
- opener.window.javascript.setParameter("depor", model.getValue( "/root/main/grid/item[" + i + "]/depor"));
- opener.window.javascript.setParameter("userid", model.getValue( "/root/main/grid/item[" + i + "]/userid"));
- }
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="360" guideline="1,799;2,339;">
- <group id="grp_tle" style="left:0px; top:0px; width:800px; height:14px; ">
- <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">과제별 연구원 정보 수정</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:45px; x2:800px; y2:45px; "/>
- <button id="button_S" class="btn5_letter4" _auth="X" style="left:735px; top:25px; width:64px; height:19px; ">
- <caption>정보수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datacheck() == false){
- return;
- }
-
- var nodeList = instance1.selectNodes("/root/main/grid/item[chk='Y']");
- var rCSV = getNodeListCSV(nodeList);
- model.removeNodeset("/root/send/itemsavedata");
- model.makeNode("/root/send/itemsavedata");
- model.setValue("/root/send/itemsavedata", rCSV);
-
- submit("TXIMR00550");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" _auth="X" style="left:758px; top:320px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_reserinfo" nodeset="/root/main/grid/item" caption="^구분^성명^소속^직위^주민등록번호^주소^연락처^이메일^은행^계좌번호^예금주" colsep="^" colwidth="34, 100, 100, 100, 100, 126, 204, 100, 100, 100, 100, 100, 34, 23, 27, 25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:50px; width:800px; height:250px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <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" type="input"/>
- <col ref="deptnm" type="input"/>
- <col ref="jobposnm" type="input"/>
- <col ref="rrgstno" type="input" format="999999-9999999"/>
- <col ref="workplceaddr" type="input"/>
- <col ref="cmpytelno" type="input"/>
- <col ref="email" type="input"/>
- <col ref="bankcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbank/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="input"/>
- <col ref="depor" type="input"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="userseqno" visibility="hidden"/>
- </datagrid>
- <button id="btn_chk" class="btn2_letter2" _auth="X" style="left:710px; top:320px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chk = 0;
- for ( var i = 0; i < grd_reserinfo.rows; i++ ) {
- if ( grd_reserinfo.valueMatrix(i, grd_reserinfo.colRef("chk")) == 'Y' ) {
- ++chk;
- }
- }
-
- if ( chk < 1 ) {
- messageBox("연구원을 선택해 주세요.", "I999");
- return false;
- }
-
- if ( chk > 1 ) {
- messageBox("연구원을 한명만 선택해 주세요.", "I999");
- return false;
- }
-
- if ( chk == 1 ) {
- if (datacheck() == false){
- return;
- }
-
- settingData();
- window.close();
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:30px; width:131px; height:13px; ">과제별 연구원</caption>
- <caption id="caption2" style="left:110px; top:25px; width:626px; height:20px; ">※ 연구원 정보를 수정할 경우, 수정할 연구원을 체크한 후 체크된 연구원의 정보를 수정한 후 저장 버튼을 누르세요.</caption>
- </xhtml:body>
- </xhtml:html>
|