/** * @desc : È­¸éÃʱâÈ­(CTMS °øÅë) * * @param : * @return : * @author : °æºÏ´ëÇб³ * @--------------------------------------------------- */ function fSetUserinfo(){ setParameter("search_condition","usernm"); setParameter("resultref","/root/send/userinfo"); modal("SPZSU10100"); var userinfo = model.getValue("/root/send/userinfo"); userinfo = userinfo.split("|"); var rshid = userinfo[2]; var rshnm = userinfo[3]; model.setValue("/root/main/cond/rshid",rshid); model.setValue("/root/main/cond/rshnm",rshnm); model.resetInstanceNode("/root/send/userinfo"); model.refresh(); } function fSearch(){ var rshid = model.getValue("/root/main/cond/rshid"); if (rshid=="") { 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"); // ±â°£º° ¿¬±¸°úÁ¦ Á¶È¸ } function fIni(){ var param = getScreenMenuParameter(); if (param == "P") { model.setValue("/root/main/cond/rshid",getUserInfo("userid")); model.setValue("/root/main/cond/rshnm",getUserInfo("usernm")); btn_useid.attribute("visibility") = "hidden"; fSearch(); } zbcfGetCodeList(new Array("I0010"), new Array("/root/init/status")); model.refresh(); } function fNew(){ setParameter("SMRIS00101_projinfo",""); setParameter("SMRIS00101_kind",model.getValue("/root/main/cond/kind")); open("SPRIS00201"); } function fCnrt(){ var selectedRow = grd_studyprojlist.row; if ( selectedRow < 1) { messageBox("¼±ÅÃµÈ row°¡ ¾ø½À´Ï´Ù","I999"); return; } var projcd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/projcd"); setParameter("SPRIS00210_projcd",projcd); open("SPRIS00210"); } function fDetail() { var selectedRow = grd_studyprojlist.row; if (selectedRow < 1) { messageBox("¼±ÅÃµÈ row°¡ ¾ø½À´Ï´Ù","I999"); return; } var projcd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/projcd"); var studycd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/studycd"); var projnm=model.getValue("/root/result/studyprojlist["+selectedRow+"]/projnm"); var status=model.getValue("/root/result/studyprojlist["+selectedRow+"]/status"); var reqfirm=model.getValue("/root/result/studyprojlist["+selectedRow+"]/reqfirm"); var kind=model.getValue("/root/result/studyprojlist["+selectedRow+"]/kind"); var rshid=model.getValue("/root/result/studyprojlist["+selectedRow+"]/rshid"); var rshnm=model.getValue("/root/result/studyprojlist["+selectedRow+"]/rshnm"); var stage=model.getValue("/root/result/studyprojlist["+selectedRow+"]/stage"); var projamt=model.getValue("/root/result/studyprojlist["+selectedRow+"]/projamt"); var fromdd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/fromdd"); var todd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/todd"); var cnfmdd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/cnfmdd"); var projspec=model.getValue("/root/result/studyprojlist["+selectedRow+"]/projspec"); var custnm=model.getValue("/root/result/studyprojlist["+selectedRow+"]/custnm"); var projinfo = projcd+"¢Ë"+studycd+"¢Ë"+projnm+"¢Ë"+status+"¢Ë"+reqfirm+"¢Ë"+kind+"¢Ë"+rshid+"¢Ë"+rshnm+"¢Ë"+stage+"¢Ë"+projamt+"¢Ë"+fromdd+"¢Ë"+todd+"¢Ë"+cnfmdd+"¢Ë"+projspec+"¢Ë"+custnm; setParameter("SMRIS00101_projinfo",projinfo); modal("SPRIS00201"); } function fSetUserinfo(){ setParameter("search_condition","usernm"); setParameter("resultref","/root/send/userinfo"); modal("SPZSU10100"); var userinfo = model.getValue("/root/send/userinfo"); userinfo = userinfo.split("|"); var rshid = userinfo[2]; var rshnm = userinfo[3]; model.setValue("/root/main/cond/rshid",rshid); model.setValue("/root/main/cond/rshnm",rshnm); model.resetInstanceNode("/root/send/userinfo"); model.refresh(); } //ÀÔÃâ±Ý ³»¿ªÁ¶È¸ ¹× °ü¸® ÆË¾÷ function fProjPop() { if(isDataCell()){ setPopupMenu("grd_studyprojlist", false, "/root/init/mouseright", "label", "value"); } } //ÀÔÃâ±Ý ³»¿ªÁ¶È¸ ¹× °ü¸® function fManAmt() { var selectedRow = grd_studyprojlist.row; if (selectedRow < 1) { messageBox("¼±ÅÃµÈ row°¡ ¾ø½À´Ï´Ù","I999"); return; } var studycd=model.getValue("/root/result/studyprojlist["+selectedRow+"]/studycd"); var rshid=model.getValue("/root/result/studyprojlist["+selectedRow+"]/rshid"); var rshnm=model.getValue("/root/result/studyprojlist["+selectedRow+"]/rshnm"); setParameter("SMRIS00301_menuparam",PARAM); setParameter("SMRIS00301_studycd",studycd); setParameter("SMRIS00301_rshid",rshid); setParameter("SMRIS00301_rshnm",rshnm); open("SMRIS00301"); } function fsaveGridToExcel(grdObj){ var sTitle = "°úÁ¦¸®½ºÆ®"; var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != ""){ grdObj.saveExcel(fileName, sTitle, true, true, "", "", true); } }