123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRIS00600" position="absolute 0 0 1204 769" titletext="연구원 등록 및 관리" onload="SMRIS00600_onload">
- <Layouts>
- <Layout>
- <Static id="caption11" class="cell_1" position="absolute 0 53 78 75" style="" text="과제번호"/>
- <Static id="caption10" class="tit_1" position="absolute 0 0 160 26" style="" text="참여연구원 관리"/>
- <Static id="caption_cdgrup_list" class="tit_2" position="absolute 0 32 118 50" style="" text="연구과제"/>
- <Grid id="grd_stdylist" binddataset="ds_main_cond_stdyinfo_stdylist" position="absolute 0 77 485 767" style="" oncelldblclick="grd_stdylist_oncelldblclick" autofittype="col" anchor="left top bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="108"/>
- <Column size="213"/>
- <Column size="90"/>
- <Column size="54"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="과제번호"/>
- <Cell col="1" text="과제명"/>
- <Cell col="2" text="연구책임자"/>
- <Cell col="3" text="상태"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:studycd"/>
- <Cell col="1" style="align:left middle;" text="bind:projnm"/>
- <Cell col="2" text="bind:rshnm"/>
- <Cell col="3" displaytype="combo" style="align:center;" text="bind:status" combodataset="ds_init_status" combocodecol="cdid" combodatacol="cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" class="cell_1" position="absolute 184 53 264 75" style="" text="책임연구원"/>
- <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 0 49 485 52" style="" anchor="default" type="rectangle"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 490 49 1200 52" style="border:0 none #808080ff ;" anchor="left top right" type="rectangle"/>
- <Static id="caption2" class="tit_2" position="absolute 490 32 613 50" style="" text="참여연구원"/>
- <Shape id="line3" class="line_3" linetype="horizontal" position="absolute 0 76 486 79" style="" anchor="default"/>
- <Button id="btn_search" class="btn2" position="absolute 441 54 483 73" style="" text="조회" onclick="btn_search_onclick"/>
- <Button id="btn_insert" class="btn2" position="absolute 1157 28 1199 47" style="" text="신규" onclick="btn_insert_onclick" anchor="top right"/>
- <Edit id="input1" position="absolute 80 54 182 73" style="" anchor="default" onkeypress="input1_onkeypress"/>
- <Button id="btn_useid" class="icon_search" taborder="5" position="absolute 420 55 436 71" style="" text="" onclick="btn_useid_onclick"/>
- <Edit id="output1" class="output_fix" position="absolute 338 54 416 73" style="" anchor="default" readonly="true" enable="false"/>
- <Edit id="output2" class="output_fix" position="absolute 266 54 336 73" style="" anchor="default" readonly="true" enable="false"/>
- <Grid id="grd_member" binddataset="ds_main_researcherinfo" position="absolute 490 53 1200 768" style="align:center ;" oncelldblclick="grd_member_oncelldblclick" onaftersort="grd_member_onaftersort" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="96"/>
- <Column size="86"/>
- <Column size="78"/>
- <Column size="100"/>
- <Column size="44"/>
- <Column size="130"/>
- <Column size="135"/>
- <Column size="270"/>
- <Column size="115"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="과제코드"/>
- <Cell col="1" text="이름"/>
- <Cell col="2" text="주민번호(앞)"/>
- <Cell col="3" text="타입"/>
- <Cell col="4" text="상태"/>
- <Cell col="5" text="핸드폰"/>
- <Cell col="6" text="성별"/>
- <Cell col="7" text="학교"/>
- <Cell col="8" text="이메일"/>
- <Cell col="9" text="주소"/>
- <Cell col="10" text="은행명"/>
- <Cell col="11" text="계좌번호"/>
- <Cell col="12" text="시작일"/>
- <Cell col="13" text="종료일"/>
- </Band>
- <Band id="body">
- <Cell text="bind:projcd"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:rrgstno1"/>
- <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:kind" combodataset="ds_grd_kind" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="combo" style="align:center;" text="bind:status" combodataset="ds_init_status" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" text="bind:hp"/>
- <Cell col="6" text="bind:sex"/>
- <Cell col="7" text="bind:school"/>
- <Cell col="8" text="bind:email"/>
- <Cell col="9" text="bind:address"/>
- <Cell col="10" text="bind:banknm"/>
- <Cell col="11" text="bind:account"/>
- <Cell col="12" text="bind:fromdd"/>
- <Cell col="13" text="bind:todd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" class="btn2" position="absolute 1112 28 1154 47" style="" text="삭제" onclick="button1_onclick" anchor="top right"/>
- <CheckBox text="종결포함" truevalue="Y" falsevalue="" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cbx_e" position="absolute 413 29 483 49" style="">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">종결포함</Col>
- </Row>
- </Rows>
- </Dataset>
- </CheckBox>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_stdycnfmdd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="frmdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="frmdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_stdyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_stdyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_cond_bnkcrdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_cond_bnkcrdinfo_bclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="projcd" type="STRING" size="256"/>
- <Column id="acntcd" type="STRING" size="256"/>
- <Column id="bizflag" type="STRING" size="256"/>
- <Column id="acntnm" type="STRING" size="256"/>
- <Column id="acntspec" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="projcd"/>
- <Col id="acntcd"/>
- <Col id="bizflag"/>
- <Col id="acntnm"/>
- <Col id="acntspec"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="rshid" type="STRING" size="256"/>
- <Column id="rshnm" type="STRING" size="256"/>
- <Column id="studycd" type="STRING" size="256"/>
- <Column id="estatus" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- <Col id="rshid"/>
- <Col id="rshnm"/>
- <Col id="studycd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_bcsetrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rtnvalue" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sdtysrch" type="STRING" size="256"/>
- <Column id="rshinfo" type="STRING" size="256"/>
- <Column id="bnkcrdinfo" type="STRING" size="256"/>
- <Column id="bclist" type="STRING" size="256"/>
- <Column id="reqdata" type="STRING" size="256"/>
- <Column id="userinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sdtysrch"/>
- <Col id="rshinfo"/>
- <Col id="bnkcrdinfo"/>
- <Col id="bclist"/>
- <Col id="reqdata"/>
- <Col id="userinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_stdyinfo_stdylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="projcd" type="STRING" size="256"/>
- <Column id="projnm" type="STRING" size="256"/>
- <Column id="rshnm" type="STRING" size="256"/>
- <Column id="studycd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="projcd"/>
- <Col id="projnm"/>
- <Col id="rshnm"/>
- <Col id="studycd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_stdyinfo_rshinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- <Col id="usernm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_sdtysrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_researcherinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_grd_kind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">A</Col>
- <Col id="cdnm">참여</Col>
- </Row>
- <Row>
- <Col id="cdid">C</Col>
- <Col id="cdnm">참여(ID없음)</Col>
- </Row>
- <Row>
- <Col id="cdid">B</Col>
- <Col id="cdnm">공동</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_cond" columnid="studycd"/>
- <BindItem id="item1" compid="output1" propid="value" datasetid="ds_main_cond" columnid="rshnm"/>
- <BindItem id="item2" compid="output2" propid="value" datasetid="ds_main_cond" columnid="rshid"/>
- <BindItem id="item3" compid="cbx_e" propid="value" datasetid="ds_main_cond" columnid="estatus"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-01-15
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-01-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMRIS00600_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(grd_stdylist);
- grdf_initGrid(grd_member);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInitialize();
- }
- var PARAM = "";
- function fInitialize(){
- var arrParam = [ {dsNm: "ds_init_status", cdGrpId: "I0010" }];
- appf_getCodeList(arrParam, true );
- PARAM = String(frmf_getMenuParam());
-
- if (frmf_isPopup()) {
- var menuparam = opener.frmf_getParameter("SMRIS00600_menuparam");
- var rshid = opener.frmf_getParameter("SMRIS00600_rshid");
- var rshnm = opener.frmf_getParameter("SMRIS00600_rshnm");
- var studycd = opener.frmf_getParameter("SMRIS00600_studycd");
- ds_main_cond.setColumn( 0, "rshid", rshid );
- ds_main_cond.setColumn( 0, "rshnm", rshnm );
- ds_main_cond.setColumn( 0, "studycd", studycd );
- ds_main_cond.setColumn( 0, "estatus", "Y" );
- btn_search.click();
- }else{
- // 연구소
- if( PARAM == "A" ){
- ds_main_cond.setColumn( 0, "rshnm" , "" );
- ds_main_cond.setColumn( 0, "rshid" , "" );
- ds_main_cond.setColumn( 0, "estatus", "Y" );
- }else{
- ds_main_cond.setColumn( 0, "rshid", sysf_getUserId() );
- ds_main_cond.setColumn( 0, "rshnm", sysf_getUserName() );
- ds_main_cond.setColumn( 0, "estatus", "Y" );
- btn_search.click();
- }
- }
- // 연구과제를 쿼리
- dsf_makeValue( ds_send_reqdata, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
-
- }
- //
- // /**
- // * _desc : 연구원 등록
- // *
- // * _param :
- // * _return :
- // * _author :
- // * _---------------------------------------------------
- // */
- // function fResearcherSave(){
- // if(fSaveChk()!=false){ // 저장전 필수입력 체크
- // ds_send_savedata.copyData(ds_send_detail);
- // dsf_makeValue( ds_send_savedata, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
- // // if(submit("TXRIS00600")){// 연구원을 저장
- // var oParam = {};
- // oParam.id = "TRRIS00600";
- // oParam.service = "ctmsapp.ResearcherMngt";
- // oParam.method = "reqSetResearcher";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=item";
- // oParam.async = false;
- // oParam.callback = "cf_TRRIS00600";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRRIS00600") > -1
- // arErrorCode.pop("TRRIS00600") < 0
- // */
- //
- //
- // //ds_send_detail.clearData(); ds_send_detail.addRow(); //연구원 등록 입력폼 초기화
- //
- // //연구과제, 이름, 주민번호 사용가능
- // combo3.enable = true;
- // input20.enable = true;
- // input21.enable = true;
- //
- // ds_main_search_cond.setColumn( 0, "projcd", ds_send_savedata.getColumn(0, "projcd"));
- // dsf_makeValue( ds_send_reqdata, "projcd", "string", ds_send_savedata.getColumn(0, "projcd"));
- // dsf_makeValue( ds_send_reqdata, "chk", "string", ds_main_search_cond.getColumn(0, "chk"));
- // // submit("TRRIS00610");
- // var oParam = {};
- // oParam.id = "TRRIS00600";
- // oParam.service = "ctmsapp.ResearcherMngt";
- // oParam.method = "reqGetResearcher";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=item";
- // oParam.async = false;
- // oParam.callback = "cf_TRRIS00600";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRRIS00600") > -1
- // arErrorCode.pop("TRRIS00600") < 0
- // */
- //
- //
- //
- // dsf_makeValue( ds_send_detail, "projcd", "string", "" );
- // dsf_makeValue( ds_send_detail, "hngnm", "string", "" );
- // dsf_makeValue( ds_send_detail, "rrgstno", "string", "" );
- // dsf_makeValue( ds_send_detail, "kind", "string", "" );
- // dsf_makeValue( ds_send_detail, "status", "string", "" );
- // dsf_makeValue( ds_send_detail, "fromdd", "string", "" );
- // dsf_makeValue( ds_send_detail, "todd", "string", "" );
- // dsf_makeValue( ds_send_detail, "hp", "string", "" );
- // dsf_makeValue( ds_send_detail, "sex", "string", "" );
- // dsf_makeValue( ds_send_detail, "school", "string", "" );
- // dsf_makeValue( ds_send_detail, "email", "string", "" );
- // dsf_makeValue( ds_send_detail, "address", "string", "" );
- // dsf_makeValue( ds_send_detail, "banknm", "string", "" );
- // dsf_makeValue( ds_send_detail, "account", "string", "" );
- //
- // // 타입과 상태값을 초기화
- // ds_send_detail.setColumn( 0, "kind", "A");
- // ds_send_detail.setColumn( 0, "status", "P" );
- // }
- //
- // //model.refresh();
- //
- // }
- // }
- //
- // /**
- // * _desc : 연구원 등록 전 필수입력항목 체크
- // *
- // * _param :
- // * _return :
- // * _author :
- // * _---------------------------------------------------
- // */
- // function fSaveChk(){
- // var projcd = ds_send_detail.getColumn(0, "projcd");
- // var hngnm = ds_send_detail.getColumn(0, "hngnm");
- // var rrgstno = ds_send_detail.getColumn(0, "rrgstno");
- //
- // if(projcd==""){
- // sysf_messageBox("연구과제 선택은", "I003");
- // return false;
- // }
- //
- // if(hngnm==""){
- // sysf_messageBox("연구원 이름은", "I003");
- // return false;
- // }
- //
- // if(rrgstno==""){
- // sysf_messageBox("연구원 주민번호는", "I003");
- // return false;
- // }
- // }
- //
- /**
- * _desc : 연구원 검색
- *
- * _param :
- * _return :
- * _author :
- * _---------------------------------------------------
- */
- function fResearcherSearch(){
- var sRow = grd_stdylist.currentrow ;
- var sProjcd = ds_main_cond_stdyinfo_stdylist.getColumn(sRow, "projcd");
- dsf_makeValue( ds_send_reqdata, "projcd", "string", sProjcd);
- var oParam = {};
- oParam.id = "TRRIS00600";
- oParam.service = "ctmsapp.ResearcherMngt";
- oParam.method = "reqGetResearcher";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_researcherinfo=item";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00600";
- tranf_submit(oParam);
- }
- //
- //
- function fNew(){
- var select_row = grd_stdylist.currentrow;
- if(select_row < 0){
- return;
- }
- ds_send_detail.clearData();
- ds_send_detail.addRow();
- dsf_makeValue( ds_send_detail, "projcd", "string", ds_main_cond_stdyinfo_stdylist.getColumn(select_row, "projcd"));
- dsf_makeValue( ds_send_detail, "studycd", "string", ds_main_cond_stdyinfo_stdylist.getColumn(select_row, "studycd"));
- dsf_makeValue( ds_send_detail, "kind", "string", "A");
- dsf_makeValue( ds_send_detail, "status", "string", "P");
- dsf_makeValue( ds_send_detail, "newyn", "string", "Y");
- dsf_makeValue( ds_send_detail, "usernm", "string", "" );
- dsf_makeValue( ds_send_detail, "userid", "string", "" );
- dsf_makeValue( ds_send_detail, "fromdd", "string", "" );
- dsf_makeValue( ds_send_detail, "todd", "string", "" );
- dsf_makeValue( ds_send_detail, "hp", "string", "" );
- dsf_makeValue( ds_send_detail, "sex", "string", "" );
- dsf_makeValue( ds_send_detail, "school", "string", "" );
- dsf_makeValue( ds_send_detail, "email", "string", "" );
- dsf_makeValue( ds_send_detail, "address", "string", "" );
- dsf_makeValue( ds_send_detail, "banknm", "string", "" );
- dsf_makeValue( ds_send_detail, "account", "string", "" );
- dsf_makeValue( ds_send_detail, "wname", "string", "" );
- dsf_makeValue( ds_send_detail, "rrgstno1", "string", "" );
-
- var objArg = new Object();
- objArg.arg_ds_target = ds_send_detail;
-
- frmf_modal("SMRIS00601", "SMRIS00601", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function fResearcherDetail(){
- var select_row = grd_member.currentrow;
- if(select_row < 0){
- return;
- }
- ds_send_detail.clearData();
- ds_send_detail.addRow();
- dsf_makeValue( ds_send_detail, "projcd", "string", ds_main_researcherinfo.getColumn(select_row, "projcd"));
- dsf_makeValue( ds_send_detail, "studycd", "string", ds_main_researcherinfo.getColumn(select_row, "studycd"));
- dsf_makeValue( ds_send_detail, "usernm", "string", ds_main_researcherinfo.getColumn(select_row, "hngnm"));
- dsf_makeValue( ds_send_detail, "userid", "string", ds_main_researcherinfo.getColumn(select_row, "userid"));
- dsf_makeValue( ds_send_detail, "kind", "string", ds_main_researcherinfo.getColumn(select_row, "kind"));
- dsf_makeValue( ds_send_detail, "status", "string", ds_main_researcherinfo.getColumn(select_row, "status"));
- dsf_makeValue( ds_send_detail, "fromdd", "string", ds_main_researcherinfo.getColumn(select_row, "fromdd"));
- dsf_makeValue( ds_send_detail, "todd", "string", ds_main_researcherinfo.getColumn(select_row, "todd"));
- dsf_makeValue( ds_send_detail, "hp", "string", ds_main_researcherinfo.getColumn(select_row, "hp"));
- dsf_makeValue( ds_send_detail, "sex", "string", ds_main_researcherinfo.getColumn(select_row, "sex"));
- dsf_makeValue( ds_send_detail, "school", "string", ds_main_researcherinfo.getColumn(select_row, "school"));
- dsf_makeValue( ds_send_detail, "email", "string", ds_main_researcherinfo.getColumn(select_row, "email"));
- dsf_makeValue( ds_send_detail, "address", "string", ds_main_researcherinfo.getColumn(select_row, "address"));
- dsf_makeValue( ds_send_detail, "banknm", "string", ds_main_researcherinfo.getColumn(select_row, "banknm"));
- dsf_makeValue( ds_send_detail, "account", "string", ds_main_researcherinfo.getColumn(select_row, "account"));
- dsf_makeValue( ds_send_detail, "rrgstno1", "string", ds_main_researcherinfo.getColumn(select_row, "rrgstno1"));
- dsf_makeValue( ds_send_detail, "wname", "string", ds_main_researcherinfo.getColumn(select_row, "hngnm"));
- dsf_makeValue( ds_send_detail, "newyn", "string", "N");
- var objArg = new Object();
- objArg.arg_ds_target = ds_send_detail;
-
- frmf_modal("SMRIS00601", "SMRIS00601", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function fDel(){
- var select_row = grd_member.currentrow;
- if(select_row < 0){
- sysf_messageBox("삭제할 연구원을 선택하세요!","I999");
- return;
- }
- else {
- if ( 6 != sysf_messageBox("선택한 연구원을 삭제할까요?","Q999"))
- {
- return;
- }
- }
- dsf_makeValue( ds_send_savedata, "projcd", "string", ds_main_researcherinfo.getColumn(select_row, "projcd"));
- dsf_makeValue( ds_send_savedata, "userid", "string", ds_main_researcherinfo.getColumn(select_row, "userid"));
- var oParam = {};
- oParam.id = "TXRIS00520";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqDelResearcher";
- oParam.inds = "req=ds_send_savedata";
- //oParam.outds = "ds_=rslt";
- oParam.async = false;
- //oParam.callback = "cf_TXRIS00520";
- tranf_submit(oParam);
- fResearcherSearch();
- }
- function fSdtySearch(){
- var rshid = ds_main_cond.getColumn(0, "rshid");
- if ( utlf_isNull(rshid) && PARAM != "A" )
- {
- sysf_messageBox("책임연구원이 선택되지 않았습니다!","Q999");
- return;
- }
- ds_send_sdtysrch.clearData();
- dsf_makeValue( ds_send_sdtysrch, "suserid", "string", ds_main_cond.getColumn(0, "rshid"));
- dsf_makeValue( ds_send_sdtysrch, "studycd", "string", ds_main_cond.getColumn(0, "studycd"));
- dsf_makeValue( ds_send_sdtysrch, "estatus", "string", ds_main_cond.getColumn(0, "estatus"));
- var oParam = {};
- oParam.id = "TRRIS00520";
- oParam.service = "ctmsapp.StudyProjMngt";
- oParam.method = "reqGetStdyInfo";
- oParam.inds = "req=ds_send_sdtysrch";
- oParam.outds = "ds_main_cond_stdyinfo_stdylist=stdylist";
- oParam.async = false;
- //oParam.callback = "cf_TRRIS00520";
- tranf_submit(oParam);
- }
- function fSetUserinfo(){
- var rtn = appf_openUserInfoList("usernm");
- var userinfo = rtn.userInfo;
-
- if (!utlf_isNull(userinfo)) {
- userinfo = userinfo.split("|");
- var rshid = userinfo[2];
- var rshnm = userinfo[3];
- ds_main_cond.setColumn( 0, "rshid", rshid);
- ds_main_cond.setColumn( 0, "rshnm", rshnm);
- }
- }
- function grd_stdylist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fResearcherSearch();
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo) {
- obj.setFocus();
- fSdtySearch();
- }
- function btn_insert_onclick(obj:Button, e:ClickEventInfo) {
- fNew();
- }
- function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycodeyCode == "13") {
- btn_search.click();
- }
- }
- function btn_useid_onclick(obj:Button, e:ClickEventInfo) {
- fSetUserinfo();
- }
- function grd_member_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fResearcherDetail();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo) {
- fDel();
- }
- ]]></Script>
- </Form>
- </FDL>
|