123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- var PARAM = "";
- /**
- * @desc : 화면초기화
- *
- * @param :
- * @return :
- * @author : 경북대학교
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- zbcfGetCodeList(new Array("I0010"), new Array("/root/init/status"));
- PARAM = getScreenMenuParameter();
- if (isPopup()) {
- var menuparam = opener.window.javascript.getParameter("SMRIS00600_menuparam");
-
- var rshid = opener.window.javascript.getParameter("SMRIS00600_rshid");
- var rshnm = opener.window.javascript.getParameter("SMRIS00600_rshnm");
- var studycd = opener.window.javascript.getParameter("SMRIS00600_studycd");
-
- model.setValue("/root/main/cond/rshid", rshid );
- model.setValue("/root/main/cond/rshnm", rshnm );
- model.setValue("/root/main/cond/studycd", studycd );
- model.setValue("/root/main/cond/estatus", "Y" );
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- }else{
- // 연구소
- if( PARAM == "A" ){
- model.setValue("/root/main/cond/rshnm" , "" );
- model.setValue("/root/main/cond/rshid" , "" );
- model.setValue("/root/main/cond/estatus", "Y" );
- }else{
- model.setValue("/root/main/cond/rshid", getUserId() );
- model.setValue("/root/main/cond/rshnm", getUserName() );
- model.setValue("/root/main/cond/estatus", "Y" );
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
- }
-
- // 연구과제를 쿼리
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- //submit("TRRIS00600");
-
- // 타입과 상태값을 초기화
- // model.setValue("/root/send/detail/kind", "A");
- // model.setValue("/root/send/detail/status", "P" );
-
- model.refresh();
-
- }
- /**
- * @desc : 연구원 등록
- *
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function fResearcherSave(){
- if(fSaveChk()!=false){ // 저장전 필수입력 체크
- model.copyNode("/root/send/savedata", "/root/send/detail");
- model.makeValue("/root/send/savedata/instcd", getUserInfo("dutplceinstcd"));
- if(submit("TXRIS00600")){// 연구원을 저장
- //model.resetInstanceNode("/root/send/detail"); //연구원 등록 입력폼 초기화
-
- //연구과제, 이름, 주민번호 사용가능
- combo3.disabled=false;
- input20.disabled=false;
- input21.disabled=false;
-
- model.setValue("/root/main/search_cond/projcd", model.getValue("/root/send/savedata/projcd"));
- model.makeValue("/root/send/reqdata/projcd", model.getValue("/root/send/savedata/projcd"));
- model.makeValue("/root/send/reqdata/chk", model.getValue("/root/main/search_cond/chk"));
- submit("TRRIS00610");
-
- model.makeNode("/root/send/detail/projcd");
- model.makeNode("/root/send/detail/hngnm");
- model.makeNode("/root/send/detail/rrgstno");
- model.makeNode("/root/send/detail/kind");
- model.makeNode("/root/send/detail/status");
- model.makeNode("/root/send/detail/fromdd");
- model.makeNode("/root/send/detail/todd");
- model.makeNode("/root/send/detail/hp");
- model.makeNode("/root/send/detail/sex");
- model.makeNode("/root/send/detail/school");
- model.makeNode("/root/send/detail/email");
- model.makeNode("/root/send/detail/address");
- model.makeNode("/root/send/detail/banknm");
- model.makeNode("/root/send/detail/account");
-
- // 타입과 상태값을 초기화
- model.setValue("/root/send/detail/kind", "A");
- model.setValue("/root/send/detail/status", "P" );
- }
- model.refresh();
- }
- }
- /**
- * @desc : 연구원 등록 전 필수입력항목 체크
- *
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function fSaveChk(){
- var projcd = model.getValue("/root/send/detail/projcd");
- var hngnm = model.getValue("/root/send/detail/hngnm");
- var rrgstno = model.getValue("/root/send/detail/rrgstno");
-
- if(projcd==""){
- messageBox("연구과제 선택은", "I003");
- return false;
- }
-
- if(hngnm==""){
- messageBox("연구원 이름은", "I003");
- return false;
- }
-
- if(rrgstno==""){
- messageBox("연구원 주민번호는", "I003");
- return false;
- }
- }
- /**
- * @desc : 연구원 검색
- *
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function fResearcherSearch(){
-
- var sRow = grd_stdylist.row ;
- var sProjcd = model.getValue("/root/main/cond/stdyinfo/stdylist["+ sRow +"]/projcd");
-
- model.makeValue("/root/send/reqdata/projcd", sProjcd);
-
- submit("TRRIS00610");
- model.refresh();
- }
- /**
- * @desc : 연구원 상세내용 세팅
- *
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function fResearcherDetail(){
- var select_row = grd_member.row;
-
- if(select_row < 1){
- return;
- }
-
- model.resetInstanceNode("/root/send/detail");
- model.removeNodeSet("/root/send/detail");
-
- model.makeValue("/root/send/detail/projcd", model.getValue("/root/main/researcherinfo[" + select_row +"]/projcd"));
- model.makeValue("/root/send/detail/studycd", model.getValue("/root/main/researcherinfo[" + select_row +"]/studycd"));
- model.makeValue("/root/send/detail/usernm", model.getValue("/root/main/researcherinfo[" + select_row +"]/hngnm"));
- model.makeValue("/root/send/detail/userid", model.getValue("/root/main/researcherinfo[" + select_row +"]/userid"));
- model.makeValue("/root/send/detail/kind", model.getValue("/root/main/researcherinfo[" + select_row +"]/kind"));
- model.makeValue("/root/send/detail/status", model.getValue("/root/main/researcherinfo[" + select_row +"]/status"));
- model.makeValue("/root/send/detail/fromdd", model.getValue("/root/main/researcherinfo[" + select_row +"]/fromdd"));
- model.makeValue("/root/send/detail/todd", model.getValue("/root/main/researcherinfo[" + select_row +"]/todd"));
- model.makeValue("/root/send/detail/hp", model.getValue("/root/main/researcherinfo[" + select_row +"]/hp"));
- model.makeValue("/root/send/detail/sex", model.getValue("/root/main/researcherinfo[" + select_row +"]/sex"));
- model.makeValue("/root/send/detail/school", model.getValue("/root/main/researcherinfo[" + select_row +"]/school"));
- model.makeValue("/root/send/detail/email", model.getValue("/root/main/researcherinfo[" + select_row +"]/email"));
- model.makeValue("/root/send/detail/address", model.getValue("/root/main/researcherinfo[" + select_row +"]/address"));
- model.makeValue("/root/send/detail/banknm", model.getValue("/root/main/researcherinfo[" + select_row +"]/banknm"));
- model.makeValue("/root/send/detail/account", model.getValue("/root/main/researcherinfo[" + select_row +"]/account"));
- model.makeValue("/root/send/detail/newyn", "N");
-
-
- modal("SMRIS00601", "", "", "", "Detail", "/root/send/detail", "/root/result/researcherlist");
-
- }
- function fNew(){
- var select_row = grd_stdylist.row;
-
- if(select_row < 1){
- return;
- }
-
- model.resetInstanceNode("/root/send/detail");
- model.removeNodeSet("/root/send/detail");
-
- model.makeValue("/root/send/detail/projcd", model.getValue("/root/main/cond/stdyinfo/stdylist[" + select_row +"]/projcd"));
- model.makeValue("/root/send/detail/studycd", model.getValue("/root/main/cond/stdyinfo/stdylist[" + select_row +"]/studycd"));
- model.makeValue("/root/send/detail/kind", "A");
- model.makeValue("/root/send/detail/status", "P");
- model.makeValue("/root/send/detail/newyn", "Y");
- model.makeNode("/root/send/detail/usernm");
- model.makeNode("/root/send/detail/userid");
- model.makeNode("/root/send/detail/fromdd");
- model.makeNode("/root/send/detail/todd");
- model.makeNode("/root/send/detail/hp");
- model.makeNode("/root/send/detail/sex");
- model.makeNode("/root/send/detail/school");
- model.makeNode("/root/send/detail/email");
- model.makeNode("/root/send/detail/address");
- model.makeNode("/root/send/detail/banknm");
- model.makeNode("/root/send/detail/account");
-
-
- modal("SMRIS00601", "", "", "", "Detail", "/root/send/detail", "/root/result/researcherlist");
-
- }
- function fDel(){
- var select_row = grd_member.row;
-
- if(select_row < 1){
- messageBox("삭제할 연구원을 선택하세요!","I999");
- return;
- }
- else {
- if ( 6 != messageBox("선택한 연구원을 삭제할까요?","Q999"))
- {
- return;
- }
- }
-
- model.makeValue("/root/send/savedata/projcd", model.getValue("/root/main/researcherinfo[" + select_row +"]/projcd"));
- model.makeValue("/root/send/savedata/userid", model.getValue("/root/main/researcherinfo[" + select_row +"]/userid"));
-
- submit("TXRIS00520");
-
- fResearcherSearch();
-
- }
- function fSdtySearch(){
-
- var rshid = model.getValue("/root/main/cond/rshid");
-
- if ( rshid=="" && PARAM != "A" )
- {
- messageBox("책임연구원이 선택되지 않았습니다!","Q999");
- return;
- }
-
- model.removenode("/root/send/sdtysrch");
- model.makeValue("/root/send/sdtysrch/suserid", model.getValue("/root/main/cond/rshid"));
- model.makeValue("/root/send/sdtysrch/studycd", model.getValue("/root/main/cond/studycd"));
- model.makeValue("/root/send/sdtysrch/estatus", model.getValue("/root/main/cond/estatus"));
-
- submit("TRRIS00520"); // 기간별 연구과제 조회
-
- }
|