1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804 |
- <?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>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <bizgoalkpi>
- <valuempllist/>
- <bizgoalskpilist/>
- <bizgoalfkpilist/>
- <bizskpibaselist/>
- </bizgoalkpi>
- <kpicnt>
- <kpicntlist>
- <maxfkpicnt/>
- <maxskpicnt/>
- </kpicntlist>
- </kpicnt>
- <orgimrsn>
- <orgimrsnlist/>
- </orgimrsn>
- </list>
- <inputendflagstatus>
- <inputendflag/>
- <inputendflagnm/>
- <rtnreqresn/>
- <valupsnrtnreqresn/>
- <lastcnfmynnm/>
- </inputendflagstatus>
- <bizgoalskpiprintlist/>
- <smsdata>
- <bizabbr/>
- <replytelno/>
- <rsrvyn/>
- <rsrvdate/>
- <rsrvtime/>
- <msgcnts/>
- <closeflag/>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsdata>
- </main>
- <send>
- <bizgoalskpi>
- <valuyy/>
- <emplno/>
- <emplnm/>
- <valuclscd>01</valuclscd>
- <valumdlcd>001</valumdlcd>
- <valuclsdetlcd/>
- <fstscndhfyyflag/>
- <instcd/>
- <deptcd/>
- <workgbn/>
- </bizgoalskpi>
- <idxflag>
- <valuclscd/>
- <valumdlcd/>
- <valuclsdetlcd/>
- <idxflag/>
- <smallclscd/>
- <teamchfflag/>
- </idxflag>
- <idxcntflag>
- <valuclscd/>
- <valumdlcd/>
- <valuclsdetlcd/>
- <idxflag/>
- <smallclscd/>
- <teamchfflag/>
- </idxcntflag>
- <prebizgoalskpi>
- </prebizgoalskpi>
- <save>
- <bizgoalskpilist/>
- <bizgoalfkpilist/>
- <bizskpibaselist/>
- </save>
- </send>
- <init>
- <idxfkpimaxcnt/>
- <idxskpimaxcnt/>
- <swtnscor/>
- <fwtnscor/>
- <stotwtnscor/>
- <ftotwtnscor/>
- <valupsncnfmnm1/>
- </init>
- <hidden/>
- <temp/>
- <target/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /* Grid 초기화 */
- misfGridInit(grd_bizgoalskpi);
- misfGridInit(grd_bizskpibaselist);
- misfGridInit(grd_bizgoalfkpi);
-
- /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
- /* Grid의 Mater, Detail관계 설정.
- misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
- misfMsterDetailSet(grd_bizgoalskpi,null, "TRRPV05801" ,"Y");
- misfMsterDetailSet(grd_bizskpibaselist,null, "TRRPV05801" ,"Y");
- misfMsterDetailSet(grd_bizgoalfkpi,null, "TRRPV05801" ,"Y");
- var curdate = getCurrentDate();
- model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
- model.setValue(ipt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("posdeptcd"));
- model.setValue(ipt_emplnos.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_emplnms.attribute("ref") , getUserInfo("usernm"));
-
- //현재화면이 팝업으로 Load 되었을 시.....
- if(instance1.selectNodes("/root/target/*").length > 0)
- {
- fPopupDataSet("valuyy,trgtemplno,trgtemplnm,dutinst,dutunitcd,fstscndhfyyflag","ipt_valuyy,ipt_emplnos,ipt_emplnms,ipt_instcd,ipt_deptcd,cmb_fstscndhfyyflag");
- }
-
- finitial();
-
- ]]>
- </script>
- <submission id="TRRPV05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/idxcntflag" resultref="/root/main/list/kpicnt"/>
- <submission id="TRRPV05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizgoalskpi" resultref="/root/main/list/bizgoalkpi"/>
- <submission id="TRRPV05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prebizgoalskpi" resultref="/root/main/list/prebizgoalskpi"/>
- <submission id="TXRPV05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if (getGridUpdateData(grd_bizgoalskpi) != "" || getGridUpdateData(grd_bizgoalfkpi) != "") {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
-
- }
- ]]>
- </script>
- <submission id="TRRPV05804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizgoalskpi" resultref="/root/main/bizgoalskpiprintlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- var CurGrid = "";
- function finitial() {
- //alert("aaa");
- misfGridInit(grd_bizgoalskpi);
- misfGridInit(grd_bizskpibaselist);
- misfGridInit(grd_bizgoalfkpi);
-
- //model.setValue(ipt_emplnos.attribute("ref") , "10500713 ");
- rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")),"WTNSCOR,WTNSCORF,FSTSCNDHFYYFLAG,WTNSCOR","grd_bizgoalskpi.wtnscor,grd_bizgoalfkpi.wtnscor,cmb_fstscndhfyyflag,grd_bizskpibaselist.wtnscor");
- // rpvfComboIdxFlagCodeList(getUserInfo("dutplceinstcd") , getUserInfo("posdeptcd") , grd_bizgoalfkpi , "idxflag");
- // rpvfComboIdxFlagCodeList(getUserInfo("dutplceinstcd") , getUserInfo("posdeptcd") , grd_bizskpibaselist , "idxflag");
-
- //alert("bbb");
-
- if(rpvfCheckManFlag(model.getValue(ipt_valuyy.attribute("ref")),getUserInfo("userid")) != '01'){
- messageBox("해당 화면의 ","E002");
- rpvfSetControlBy("btn_print,btn_lastcnfm,btn_inputendcan,btn_save,btn_init,btn_search","Y");
- }else{
-
- // 평가기간에 따른 권한 부여.
- //당분간막음 2008-04-01
- // if(model.getValue("/root/temp/trgtflag") != ""){
- // rpvfCheckDayFlag(ipt_valuyy.value, getUserInfo("userid"), model.getValue("/root/temp/trgtflag"), model.getValue("/root/temp/program"),"btn_lastcnfm,btn_inputendcan,btn_init,btn_save,btn_search,btn_restoration,btn_nonrestoration,btn_sinsert,btn_sdelete,btn_finsert,btn_fdelete");
- // }else{
- // rpvfCheckDayFlag(ipt_valuyy.value, getUserInfo("userid"), "03", "SMRPV05800", "btn_lastcnfm,btn_inputendcan,btn_init,btn_save,btn_search,btn_restoration,btn_nonrestoration,btn_sinsert,btn_sdelete,btn_finsert,btn_fdelete");
- // }
- btn_print.disabled = false;
- btn_lastcnfm.disabled = false;
- //btn_inputendcan.disabled = false;
- btn_save.disabled = false;
- btn_search.disabled = false;
-
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- var emplno = getUserInfo("userid");
-
-
- rpvfGetUserAuth(instcd,emplno);
- if(DUTY_VALU_YN =='Y'){
- ipt_emplnos.disabled = false;
- ipt_emplnms.disabled = false;
- btn_emplno.disabled = false;
- }else{
- ipt_emplnos.disabled = true;
- ipt_emplnms.disabled = true;
- btn_emplno.disabled = true;
- }
-
- // misfGetAndSetUserInfo();
- // if(DUT_UNIT_CD =='4020500000'){
- // btn_emplno.disabled =false;
- // }else{
- // btn_emplno.disabled =true;
- // }
- model.refresh();
- }
-
- //현재화면이 팝업화면으로 Loadding 될때 넘겨받은값을 설정.
- function fPopupDataSet()
- {
- var fgetValueNode = "/root/target/";
- var fNodeName = arguments[0].split(",");
- var fSetControl = arguments[1].split(",");
-
- for(var i = 0; i < fSetControl.length; i++)
- {
- document.controls(fSetControl[i]).value = model.getValue(fgetValueNode + fNodeName[i]);
- }
- }
-
-
- function fSumWtnScor(pdatagrid)
- {
- var wtnscor = 0;
- for(var row = pdatagrid.fixedRows; row < pdatagrid.rows; row++)
- {
- if(pdatagrid.rowStatus(row) != "4"){
- if(pdatagrid.labelMatrix(row, pdatagrid.colRef("wtnscor")).length > 0){
- wtnscor = wtnscor + parseInt(pdatagrid.labelMatrix(row, pdatagrid.colRef("wtnscor")));
- }
- }
- }
-
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi") {
- for(var row = grd_bizskpibaselist.fixedRows; row < grd_bizskpibaselist.rows; row++)
- {
- if(grd_bizskpibaselist.rowStatus(row) != "4"){
- if(grd_bizskpibaselist.labelMatrix(row, grd_bizskpibaselist.colRef("wtnscor")).length > 0){
- wtnscor = wtnscor + parseInt(grd_bizskpibaselist.labelMatrix(row, grd_bizskpibaselist.colRef("wtnscor")));
- }
- }
- }
- }
-
- return wtnscor;
- }
-
- function fChkWtnScor(pdatagrid)
- {
-
-
-
- var wtnscor = fSumWtnScor(pdatagrid);
-
- var jobrespcd = model.getValue("/root/main/list/bizgoalkpi/valuempllist/jobrespcd");
- var inoutflag = model.getValue("/root/main/list/bizgoalkpi/valuempllist/custinoutflag");
- var orgimrsnappyn = model.getValue("/root/main/list/bizgoalkpi/valuempllist/orgimrsnappyn");
-
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi") {
-
- if (jobrespcd== "1070" || jobrespcd == "1901"|| jobrespcd == "2430"|| jobrespcd == "2010"|| jobrespcd == "1086") {
- if (inoutflag == "E" && orgimrsnappyn != "Y") {
- if(wtnscor > 0 && wtnscor != 100){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 100이 되어야만 합니다[";
-
- if(wtnscor < 100 )errmsg = errmsg + (100 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 100) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- else if (inoutflag == "E" && orgimrsnappyn == "Y") {
- if(wtnscor > 0 && wtnscor != 90){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 90이 되어야만 합니다[";
-
- if(wtnscor < 90 )errmsg = errmsg + (90 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 90) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- else if (inoutflag != "E" && orgimrsnappyn != "Y") {
- if(wtnscor > 0 && wtnscor != 80){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 80이 되어야만 합니다[";
-
- if(wtnscor < 80 )errmsg = errmsg + (80 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 80) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- else {
- if(wtnscor > 0 && wtnscor != 70){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 70이 되어야만 합니다[";
-
- if(wtnscor < 70) errmsg = errmsg + (70 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 70) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- }
- else {
- if ( inoutflag == "E") {
- if(wtnscor > 0 && wtnscor != 50){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 50이 되어야만 합니다[";
-
- if(wtnscor < 50) errmsg = errmsg + (50 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 50) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- else {
- if(wtnscor > 0 && wtnscor != 40){
- var errmsg = "";
-
- errmsg = "공유지표 ";
- errmsg = errmsg + "가중치 합은 40이 되어야만 합니다[";
-
- if(wtnscor < 40)errmsg = errmsg + (40 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 40) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- }
- }
- else {
-
- if(wtnscor > 0 && wtnscor != 50){
- var errmsg = "";
-
- errmsg = "기본지표 ";
-
- errmsg = errmsg + "가중치 합은 50이 되어야만 합니다[";
-
- if(wtnscor < 40)errmsg = errmsg + (50 - wtnscor) + "미만]";
- else errmsg = errmsg + (wtnscor - 50) + "초과]";
-
- messageBox(errmsg + "저장" ,"E001");
- return false;
- }
- }
- return true;
- }
-
- function fGetIdxCnt()
- {
- model.copyNode("/root/send/idxcntflag","/root/send/bizgoalskpi");
- model.makeNode("/root/send/idxcntflag/teamchfflag");
-
- var jobrespcd = model.getValue("/root/main/list/bizgoalkpi/valuempllist/jobrespcd");
- if(jobrespcd == "1070" || jobrespcd == "2430" || jobrespcd == "2010" || jobrespcd == "1086" ) //로긴한 사용자가 팀장이라면
- {
- model.setValue("send/idxcntflag/teamchfflag" , "1");
- }
- else if(jobrespcd == "1901") //로긴한 사용자가 UM이라면
- {
- model.setValue("send/idxcntflag/teamchfflag" , "2");
- }
- else
- {
- model.setValue("send/idxcntflag/teamchfflag" , "3");
- }
- submit("TRRPV05803");
-
- model.setValue("/root/init/idxfkpimaxcnt",model.getValue("/root/main/list/kpicnt/kpicntlist/maxfkpicnt"));
- model.setValue("/root/init/idxskpimaxcnt",model.getValue("/root/main/list/kpicnt/kpicntlist/maxskpicnt"));
- }
- function fGetMaxPrtSeqNo()
- {
- var maxprtseqno = "";
- for(var currow = grd_bizgoalskpi.fixedRows ; currow < grd_bizgoalskpi.rows; currow++)
- {
- if(maxprtseqno < parseInt(grd_bizgoalskpi.valueMatrix(currow , grd_bizgoalskpi.colRef("prtseqno"))))
- maxprtseqno = grd_bizgoalskpi.valueMatrix(currow , grd_bizgoalskpi.colRef("prtseqno"));
- }
-
- if(maxprtseqno.length== 0)maxprtseqno = 1;
- else maxprtseqno = parseInt(maxprtseqno) + 1;
-
- return maxprtseqno;
- }
- function fGetPreIdxCopy()
- {
- if ( !isRequiredControls("ipt_valuyy") ) {
- return false;
- }
- return;
- var curyear = model.getValue(ipt_valuyy.attribute("ref"));
- var preyear = parseInt(curyear) -1;
- model.copyNode("/root/send/prebizgoalskpi", "root/send/bizgoalskpi");
-
- model.makeNode("/root/send/prebizgoalskpi/useyn");
- model.setValue("/root/send/prebizgoalskpi/valuyy",preyear);
- model.setValue("/root/send/prebizgoalskpi/useyn","Y");
- submit("TRRPV05802");
-
- var node = "/root/main/list/prebizgoalskpi";
- var nodename = "bizgoalskpilist";
- var codynode = instance1.selectNodes(node + "/*");
- var addRow = grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows;
- var duplchk = false;
-
- if(model.getValue(grd_bizgoalskpi.nodeset + "[" + addRow + "]/idxcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- duplchk = false;
- for(var row = grd_bizgoalskpi.fixedRows ; row < grd_bizgoalskpi.rows ; row++)
- {
- if(grd_bizgoalskpi.valueMatrix(row , grd_bizgoalskpi.colRef("rsltidx")) == model.getValue(node +"/" + nodename + "[" + j + "]/rsltidx") &&
- grd_bizgoalskpi.valueMatrix(row , grd_bizgoalskpi.colRef("inspmthd")) == model.getValue(node +"/" + nodename + "[" + j + "]/inspmthd"))
- {
- duplchk = true;
- break;
- }
- }
-
- if(duplchk == false)
- {
- if(addRow == 0 || addRow > grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows)
- {
- misfGridIUD(grd_bizgoalskpi,"A");
- addRow = grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows;
-
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/prtseqno", fGetMaxPrtSeqNo());
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/useyn", "Y");
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/valuclscd", model.getValue("/root/send/bizgoalskpi/valuclscd"));
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/valumdlcd", model.getValue("/root/send/bizgoalskpi/valumdlcd"));
- model.setValue(grd_bizgoalskpi.attribute("nodeset")+"["+addRow+"]/valuclsdetlcd", model.getValue("/root/send/bizgoalskpi/valuclsdetlcd"));
- }
- model.setValue(grd_bizgoalskpi.nodeset + "[" + addRow + "]/bizgoalskpi" , model.getValue(node +"/" + nodename + "[" + j + "]/bizgoalskpi"));
- model.setValue(grd_bizgoalskpi.nodeset + "[" + addRow + "]/idxcd" , model.getValue(node +"/" + nodename + "[" + j + "]/idxcd"));
- model.setValue(grd_bizgoalskpi.nodeset + "[" + addRow + "]/rsltidx" , model.getValue(node +"/" + nodename + "[" + j + "]/rsltidx"));
- model.setValue(grd_bizgoalskpi.nodeset + "[" + addRow + "]/inspmthd" , model.getValue(node +"/" + nodename + "[" + j + "]/inspmthd"));
- addRow = addRow + 1;
- }
- }
- model.refresh();
- }
- function fSettingIdxInfoList(pdatagrid, pnode, nodename, pubflag){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = pdatagrid.rows - pdatagrid.fixedRows;
- var basekpiRow = grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows;
-
- addRow = addRow + basekpiRow;
-
- var nocopy = false;
-
- // if (pubflag != "B") {
- if(model.getValue(pdatagrid.nodeset + "[" + addRow + "]/idxcd").length > 0) addRow = addRow + 1;
- // }
-
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi" ) {
- if(model.getValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/idxcd").length > 0) {
- basekpiRow = basekpiRow + 1;
- //addRow = addRow + 1;
- }
- }
-
- if(pdatagrid.attribute("id") == "grd_bizgoalskpi" && codynode.length > model.getValue("/root/init/idxskpimaxcnt") ){
- messageBox("공유 지표 최대 항목 개수는 " + model.getValue("/root/init/idxskpimaxcnt") + "입니다. 추가 할 수","I004");
- return;
- }
-
- if(pdatagrid.attribute("id") == "grd_bizgoalfkpi" && codynode.length > model.getValue("/root/init/idxfkpimaxcnt") ){
- messageBox("기본 업무 지표 최대 항목 개수는 " + model.getValue("/root/init/idxfkpimaxcnt") + "입니다. 추가 할 수","I004");
- return;
- }
-
- for (var j = 1; j <= codynode.length ; j++) {
-
- var findrow = -1;
- for (var z = pdatagrid.fixedRows; z < pdatagrid.rows; z++) {
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd") == pdatagrid.valueMatrix(z ,pdatagrid.colRef("idxcd") ) ) {
-
- if (pubflag == "B" || model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd") == "004" ) {
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/deptcd") == pdatagrid.valueMatrix(z ,pdatagrid.colRef("deptcd") )) {
- findrow = 1;
- break;
- }
- else{
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd") != "004" ) {
- if (pubflag == "B" && pdatagrid.valueMatrix(z ,pdatagrid.colRef("publbaseflag")) == "B" ) {
- findrow = 1;
- break;
- }
- else if (pubflag != "B"){
- findrow = 1;
- break;
- }
- }
- }
- }
- }
- }
-
- if (findrow == -1 && pdatagrid.attribute("id") == "grd_bizgoalskpi" ) {
- for (var z = grd_bizskpibaselist.fixedRows; z < grd_bizskpibaselist.rows; z++) {
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd") == grd_bizskpibaselist.valueMatrix(z ,grd_bizskpibaselist.colRef("idxcd") ) ) {
- if (pubflag == "B" || model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd") == "004" ) {
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/deptcd") == grd_bizskpibaselist.valueMatrix(z ,grd_bizskpibaselist.colRef("deptcd") )) {
- findrow = 1;
- break;
- }
- }
- else {
- if (pubflag == "B" && grd_bizskpibaselist.valueMatrix(z ,grd_bizskpibaselist.colRef("publbaseflag")) == "B" ) {
- findrow = 1;
- break;
- }
- else if (pubflag != "B"){
- findrow = 1;
- break;
- }
- }
- }
-
- }
- }
-
- // var findstr = model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd");
- // var findrow = pdatagrid.findRow(findstr,pdatagrid.fixedRows,pdatagrid.colRef("idxcd"),true,true);
- if(findrow < 0){
- nocopy = false;
-
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi") {
- var idxcnt = (pdatagrid.rows - pdatagrid.fixedRows) + (grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows);
- }
- else {
- var idxcnt = (pdatagrid.rows - pdatagrid.fixedRows) ;
- }
-
- // alert(addRow);
- // alert(idxcnt);
-
- if(addRow > idxcnt)
- {
- if(pdatagrid.attribute("id") == "grd_bizgoalskpi"){
-
- if(model.getValue("/root/init/idxskpimaxcnt") < (addRow))
- {
- messageBox("공유 지표 항목 개수는 " + model.getValue("/root/init/idxskpimaxcnt") + "입니다. 추가 할 수","I004");
- // for (var z = grd_bizgoalskpi.fixedRows; z < grd_bizgoalskpi.rows; z++) {
- // if (grd_bizgoalskpi.rowStatus(z) == "1" || grd_bizgoalskpi.rowStatus(z) == "3" ) {
- // grd_bizgoalskpi.deleteRow(z);
- // }
- // }
- model.refresh();
- return;
- }
- }
- else{
- if(model.getValue("/root/init/idxfkpimaxcnt") < (addRow))
- {
- messageBox("기본 업무 지표 최대 항목 개수는 " + model.getValue("/root/init/idxfkpimaxcnt") + "입니다. 추가 할 수","I004");
- model.refresh();
- return;
- }
- }
-
- if ( pdatagrid.attribute("id") == "grd_bizgoalskpi" && pubflag == "B"){
- misfGridIUD(grd_bizskpibaselist,"A");
-
-
- addRow = (pdatagrid.rows - pdatagrid.fixedRows) + (grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows);
- basekpiRow = grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows;
-
- //alert(basekpiRow);
- }
- else {
- misfGridIUD(pdatagrid,"A");
-
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi") {
- addRow = (pdatagrid.rows - pdatagrid.fixedRows) + (grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows);
- }
- else {
- addRow = pdatagrid.rows - pdatagrid.fixedRows;
- }
- }
-
- }
-
- if(pdatagrid.attribute("id") == "grd_bizgoalskpi")
- {
- if(model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd") == "999")
- {
- nocopy = true;
- var rtn =messageBox("공유 지표에 기본 업무를 선택 하셨습니다" + "\n\r" + "기본 업무 지표를" ,"Q005");
- if(rtn == "6")
- {
- model.setValue(ipt_valuclscd.attribute("ref"),"01");
- model.setValue(ipt_valumdlcd.attribute("ref"),"001");
- model.setValue(ipt_valuclsdetlcd.attribute("ref"),"004");
-
- model.removenode("/root/copynode2");
- model.removenode(gvParamPath +"/SMRPV99700_/SMRPV99700_value");
- model.makeNode("/root/copynode2");
-
- if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.row, grd_bizgoalskpi.colRef("idxcd")) == "") {
- misfGridIUD(grd_bizgoalskpi, "D");
- // misfGridIUD(grd_bizskpibaselist,"A");
- }
- misfGridIUD(grd_bizskpibaselist,"A");
-
- // misfGridIUD(grd_bizskpibaselist,"A");
- // basekpiRow = basekpiRow + 1;
- // addRow = addRow + 1;
-
- rpvfOpenPopUpList("20",grd_bizskpibaselist,"","idxcd,idxcdnm,valuclscd,valumdlcd,valuclsdetlcd", "ipt_valuyy,ipt_valuclscd,ipt_valumdlcd,ipt_valuclsdetlcd,ipt_idxflag,ipt_smallclscd,ipt_instcd,ipt_deptcd");
- //rpvfOpenPopUpList("20",grd_bizgoalskpi,"","idxcd,idxcdnm,valuclscd,valumdlcd,valuclsdetlcd", "ipt_valuyy,ipt_valuclscd,ipt_valumdlcd,ipt_valuclsdetlcd,ipt_idxflag,ipt_smallclscd,ipt_instcd,ipt_deptcd");
-
- var cur_row = grd_bizskpibaselist.row;
- var status = grd_bizskpibaselist.valueMatrix(cur_row, grd_bizskpibaselist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRPV99700_/SMRPV99700_value");
- setCSVToNode("/root/copynode2", CSV, "bizgoalfkpilist");
-
- // var prerow = basekpiRow;
- //
- // var prerow = 1;
-
- var tmpcodynode = instance1.selectNodes("/root/copynode2/*");
-
- if(tmpcodynode.length > 0)
- {
- if(tmpcodynode.length > 2 || grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows > 2)
- {
- if(grd_bizskpibaselist.valueMatrix(grd_bizskpibaselist.row, grd_bizskpibaselist.colRef("idxcd")) == "") {
- misfGridIUD(grd_bizskpibaselist,"D");
- }
-
- messageBox("기본 업무 지표 최대 항목 개수는 2입니다. 추가 할 수","I004");
- model.refresh();
- return;
- }
-
- fSettingIdxInfoList(grd_bizgoalskpi,"/root/copynode2", "bizgoalfkpilist", "B");
-
- // alert(basekpiRow);
- // alert(grd_bizskpibaselist.rows);
- for(var row = grd_bizskpibaselist.fixedRows ; row<grd_bizskpibaselist.rows;row++)
- {
- model.setValue(grd_bizskpibaselist.nodeset + "[" + row + "]/publbaseflag" , "B");
- model.setValue(grd_bizskpibaselist.nodeset + "[" + row + "]/valuclsdetlcd" , "002");
- }
- addRow = addRow + tmpcodynode.length;
- basekpiRow = basekpiRow + tmpcodynode.length;
- }
- else
- {
- misfGridIUD(grd_bizskpibaselist,"D");
- }
- }
- else
- {
- misfGridIUD(grd_bizskpibaselist,"D");
- }
- }
- }
-
- if(!nocopy)
- {
- if (pubflag == "B") {
- // alert(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/idxcd" );
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/idxcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd"));
- // model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/idxcdnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcdnm"));
-
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/rsltidx" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcdnm"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/valuclscd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclscd"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/valumdlcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valumdlcd"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/valuclsdetlcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/inspmthd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/inspmthd"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/valuyy" , model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/emplno" , model.getValue(ipt_emplnos.attribute("ref")));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/fstscndhfyyflag" , model.getValue(cmb_fstscndhfyyflag.attribute("ref")));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/inputendflag" , "02");
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/deptcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/deptcd"));
- model.setValue(grd_bizskpibaselist.nodeset + "[" + basekpiRow + "]/idxflag" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxflagnm"));
-
- basekpiRow = basekpiRow + 1;
- }
- else {
- // alert(addRow);
- // alert(basekpiRow);
- // alert(addRow-basekpiRow);
- basekpiRow = grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows;
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/idxcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcd"));
-
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd") == "004") {
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/rsltidx" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcdnm"));
- }
- else {
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/idxcdnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxcdnm"));
-
- if (model.getValue(pnode +"/" + nodename + "[" + j + "]/idxinputyn") == "N") {
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/rsltidx" , model.getValue(pnode +"/" + nodename + "[" + j + "]/rsltidx"));
-
- pdatagrid.cellStyle("background-color", pdatagrid.row, pdatagrid.colRef("rsltidx")) = "#c0c0c0";
- pdatagrid.cellAttribute("disabled",pdatagrid.row, pdatagrid.colRef("rsltidx")) = "true";
-
- }
- else {
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/rsltidx" , "");
-
- pdatagrid.cellStyle("background-color", pdatagrid.row, pdatagrid.colRef("rsltidx")) = "#ffffff";
- pdatagrid.cellAttribute("disabled",pdatagrid.row, pdatagrid.colRef("rsltidx")) = "false";
- }
- }
-
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/valuclscd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclscd"));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/valumdlcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valumdlcd"));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/valuclsdetlcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/valuclsdetlcd"));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/inspmthd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/inspmthd"));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/valuyy" , model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/emplno" , model.getValue(ipt_emplnos.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/fstscndhfyyflag" , model.getValue(cmb_fstscndhfyyflag.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/inputendflag" , "02");
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/deptcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/deptcd"));
-
- if (pdatagrid.attribute("id") == "grd_bizgoalfkpi") {
- model.setValue(pdatagrid.nodeset + "[" + (addRow - basekpiRow) + "]/idxflag" , model.getValue(pnode +"/" + nodename + "[" + j + "]/idxflagnm"));
- }
- }
-
- addRow = addRow + 1;
- }
- }
- }
- model.refresh();
- }
- function fSettingControlRestoration(pEditable)
- {
- if(pEditable)
- {
- txt_rtnreqresn.attribute("editable") = "true";
- //btn_restoration.disabled = false;
- //btn_nonrestoration.disabled = true;
- btn_sinsert.disabled = false;
- btn_sdelete.disabled = false;
- btn_finsert.disabled = false;
- btn_fdelete.disabled = false;
- grd_bizgoalskpi.disabled = false;
- grd_bizgoalfkpi.disabled = false;
- btn_save.disabled = false;
- }
- else
- {
- txt_rtnreqresn.attribute("editable") = "false";
- //btn_restoration.disabled = true;
- //btn_nonrestoration.disabled = false;
- btn_sinsert.disabled = true;
- btn_sdelete.disabled = true;
- btn_finsert.disabled = true;
- btn_fdelete.disabled = true;
- grd_bizgoalskpi.disabled = true;
- grd_bizgoalfkpi.disabled = true;
- btn_save.disabled = true;
- }
- }
- function fSettingRestoration()
- {
- var restoration = false;
- var restorationflag= "Q";
- var restorationcnt = "";
-
- //model.setValue(ipt_lastcnfmynnm.attribute("ref"), "");
- model.setValue(txt_rtnreqresn.attribute("ref"), "");
- //model.setValue(ipt_inputendflag.attribute("ref"), "");
- //model.setValue(ipt_inputendflagnm.attribute("ref"), "");
- model.setValue(txt_valupsnrtnreqresn.attribute("ref"), "");
- if(grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows > 0)
- {
- if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("procstat")) == restorationflag)
- {
- restorationcnt = grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("rtnreqresn"))
- restoration = true;
- }
- }
- else
- {
- if(grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows > 0)
- {
- if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("procstat")) == restorationflag)
- {
- restorationcnt = grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("rtnreqresn"));
- restoration = true;
- }
- }
-
- }
- if(restoration)
- {
- model.setValue(txt_rtnreqresn.attribute("ref"), restorationcnt);
- //model.setValue(ipt_inputendflag.attribute("ref"), restorationflag);
-
- // if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("aprvflag"))== "R"){
- // model.setValue(ipt_inputendflagnm.attribute("ref"), "반려");
- // }
- // else{
- // //model.setValue(ipt_inputendflagnm.attribute("ref"), "반려요청");
- // }
- }
-
- if( (grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows ==0) && (grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows == 0))
- {
- fSettingControlRestoration(true);
- txt_rtnreqresn.attribute("editable") = "false";
- btn_restoration.disabled = true;
- btn_nonrestoration.disabled = true;
- }
- else
- {
- fSettingControlRestoration(!restoration);
- model.setValue(txt_valupsnrtnreqresn.attribute("ref"), grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("valupsnrtnreqresn")));
- }
-
- // if(grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows > 0){
- // if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("lastcnfmyn")) == "Y"){
- // //model.setValue(ipt_lastcnfmynnm.attribute("ref"), "최종확정");
- // }
- // else{
- // //model.setValue(ipt_lastcnfmynnm.attribute("ref"), "미확정");
- // }
- // }
- // else
- // {
- // if(grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows > 0){
- // if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("inputendflag")) != "Y"){
- // model.setValue(ipt_lastcnfmynnm.attribute("ref"), "최종확정");
- // }
- // else{
- // model.setValue(ipt_lastcnfmynnm.attribute("ref"), "미확정");
- // }
- //
- // }
- //
- // }
- model.refresh();
-
- }
-
- function fSettingGridRestoration(pdatagrid,prtnreqresn)
- {
- for(var row = pdatagrid.fixedRows; row < pdatagrid.rows; row++)
- {
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/procstat","Q");
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/rtnreqresn",prtnreqresn);
-
- if(pdatagrid.rowStatus(row) != "1" && pdatagrid.rowStatus(row) != "3" )pdatagrid.rowStatus(row) = "2";
- }
- }
- function fSettingGridNotRestoration(pdatagrid)
- {
- for(var row = pdatagrid.fixedRows; row < pdatagrid.rows; row++)
- {
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/procstat","");
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/rtnreqresn","");
-
- if(pdatagrid.rowStatus(row) != "1" && pdatagrid.rowStatus(row) != "3" )pdatagrid.rowStatus(row) = "2";
- }
- }
- function fSettingGridLastValuCnfm(pdatagrid,inputendflag)
- {
- for(var row = pdatagrid.fixedRows; row < pdatagrid.rows; row++)
- {
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/inputendflag",inputendflag);
- if(pdatagrid.rowStatus(row) != "1" && pdatagrid.rowStatus(row) != "3" )pdatagrid.rowStatus(row) = "2";
- }
- }
-
- //팝업되었을시 최종확정및 최종확정취소 데이타 설정.
- function fSettingGridLastValuPopup(pdatagrid,pData)
- {
- for(var row = pdatagrid.fixedRows; row < pdatagrid.rows; row++)
- {
- model.setValue(pdatagrid.attribute("nodeset")+"[" + (row - pdatagrid.fixedRows + 1) + "]/valupsncnfmflag1", pData);
- }
-
- }
-
-
- function fControlDisabled(bool)
- {
- btn_lastcnfm.disabled = bool;
- btn_save.disabled = bool;
- //btn_restoration.disabled = bool;
- //btn_nonrestoration.disabled = bool;
- btn_sinsert.disabled = bool;
- btn_sdelete.disabled = bool;
- //btn_finsert.disabled = bool;
- //btn_fdelete.disabled = bool;
-
- grd_bizgoalskpi.disabled = bool;
- grd_bizskpibaselist.disabled = bool;
- grd_bizgoalfkpi.disabled = bool;
-
- //txt_rtnreqresn.disabled = bool;
- txt_valupsnrtnreqresn.disabled = bool;
- }
-
-
-
- function fChkgoallevl(pdatagrid)
- {
- for (var i = pdatagrid.fixedRows; i < pdatagrid.rows; i++) {
- if (pdatagrid.valueMatrix(i,pdatagrid.colRef("goallevl")) == "") {
- messageBox("입력 되지 않은 목표수준이 있습니다." + "저장" ,"E001");
- return false;
- }
- }
- if (pdatagrid.attribute("id") == "grd_bizgoalskpi") {
- for(var row = grd_bizskpibaselist.fixedRows; row < grd_bizskpibaselist.rows; row++)
- {
- if (grd_bizskpibaselist.valueMatrix(row, grd_bizskpibaselist.colRef("goallevl")) == "") {
- messageBox("입력 되지 않은 목표수준이 있습니다." + "저장" ,"E001");
- return false;
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">업무지표등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy" , "ipt_emplnos", "cmb_fstscndhfyyflag") ) {
- return false;
- }
-
-
- misfGridInit(grd_bizgoalskpi);
- misfGridInit(grd_bizgoalfkpi);
- misfGridInit(grd_bizskpibaselist);
-
- // rpvfComboIdxFlagCodeList(model.getValue("/root/main/list/bizgoalkpi/valuempllist/instcd"), model.getValue("/root/main/list/bizgoalkpi/valuempllist/unitcd") , grd_bizgoalfkpi , "idxflag");
- // rpvfComboIdxFlagCodeList(model.getValue("/root/main/list/bizgoalkpi/valuempllist/instcd"), model.getValue("/root/main/list/bizgoalkpi/valuempllist/unitcd") , grd_bizskpibaselist , "idxflag");
- submit("TRRPV05801");
-
- var valutrgtflag = model.getValue("/root/main/list/bizgoalkpi/valuempllist/valutrgtflag");
- var fstscndyyflag = cmb_fstscndhfyyflag.value;
-
- if(rpvfCheckManFlag(model.getValue(ipt_valuyy.attribute("ref")),model.getValue(ipt_emplnos.attribute("ref"))) != '01'){
- messageBox("해당 화면의 ","E002");
- rpvfSetControlBy("btn_finsert,btn_fdelete,btn_sinsert,btn_sdelete,btn_restoration,txt_rtnreqresn,btn_nonrestoration,btn_inputendcan,btn_restoration,btn_nonrestoration,btn_print,btn_lastcnfm,btn_init,btn_save,btn_search","Y");
- return;
- }
-
- if (valutrgtflag == "4") {
- messageBox("평가 대상자가 아닙 니다. 사용 할 수","I004");
- btn_finsert.disabled = true;
- btn_fdelete.disabled = true;
- btn_sinsert.disabled = true;
- btn_sdelete.disabled = true;
- btn_restoration.disabled = true;
- txt_rtnreqresn.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_inputendcan.disabled = true;
- btn_restoration.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_print.disabled = true;
- btn_lastcnfm.disabled = true;
- btn_init.disabled = true;
- btn_save.disabled = true;
- btn_search.disabled = true;
- return;
- }
-
- if (fstscndyyflag == "1" && valutrgtflag == "3" ) {
- messageBox("하반기 평가 대상자입니다. 사용 할 수","I004");
- btn_finsert.disabled = true;
- btn_fdelete.disabled = true;
- btn_sinsert.disabled = true;
- btn_sdelete.disabled = true;
- btn_restoration.disabled = true;
- txt_rtnreqresn.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_inputendcan.disabled = true;
- btn_restoration.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_print.disabled = true;
- btn_lastcnfm.disabled = true;
- btn_init.disabled = true;
- btn_save.disabled = true;
- btn_search.disabled = true;
- return;
-
- }
-
- if (fstscndyyflag == "2" && valutrgtflag == "2" ) {
- messageBox("상반기 평가 대상자입니다. 사용 할 수","I004");
- btn_finsert.disabled = true;
- btn_fdelete.disabled = true;
- btn_sinsert.disabled = true;
- btn_sdelete.disabled = true;
- btn_restoration.disabled = true;
- txt_rtnreqresn.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_inputendcan.disabled = true;
- btn_restoration.disabled = true;
- btn_nonrestoration.disabled = true;
- btn_print.disabled = true;
- btn_lastcnfm.disabled = true;
- btn_init.disabled = true;
- btn_save.disabled = true;
- btn_search.disabled = true;
- return;
-
- }
-
- fSettingRestoration();
-
- var jobrespcd = model.getValue("/root/main/list/bizgoalkpi/valuempllist/jobrespcd");
- var inoutflag = model.getValue("/root/main/list/bizgoalkpi/valuempllist/custinoutflag");
- var orgimrsnappyn = model.getValue("/root/main/list/bizgoalkpi/valuempllist/orgimrsnappyn");
-
- //alert(jobrespcd);
- if (jobrespcd == "1070" || jobrespcd == "1901" || jobrespcd == "2430"|| jobrespcd == "2010"|| jobrespcd == "1086") {
- btn_finsert.disabled = true;
- //btn_fdelete.disabled = true;
-
- if (inoutflag == "E" && orgimrsnappyn != "Y") {
- opt_stotwtnscor.value = "100";
- }
- else if (inoutflag == "E" && orgimrsnappyn == "Y") {
- opt_stotwtnscor.value = "90";
- }
- else if (inoutflag != "E" && orgimrsnappyn != "Y") {
- opt_stotwtnscor.value = "80";
- }
- else {
- opt_stotwtnscor.value = "70";
- }
- opt_ftotwtnscor.value = "0";
-
-
- }
- else {
- if (inoutflag == "E") {
- opt_stotwtnscor.value = "50";
- }
- else {
- opt_stotwtnscor.value = "40";
- }
- opt_ftotwtnscor.value = "50";
- }
-
-
- model.setValue(opt_swtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalskpi));
- model.setValue(opt_fwtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalfkpi));
-
- fGetIdxCnt();
-
- if(grd_bizgoalskpi.fixedRows != grd_bizgoalskpi.rows)
- {
- if(grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("inputendflag")) == "03" ||
- grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("inputendflag")) == "04")
- {
- fControlDisabled(true);
-
- btn_finsert.disabled = true;
- btn_fdelete.disabled = true;
-
- if (grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "A") {
-
- btn_restoration.disabled = false;
- txt_rtnreqresn.disabled = false;
- btn_nonrestoration.disabled = true;
-
- }
- else {
- btn_inputendcan.disabled = false;
- btn_restoration.disabled = true;
- txt_rtnreqresn.disabled = true;
- }
-
- if (grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "A" ||
- grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "C" ||
- grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "F" ) {
- btn_inputendcan.disabled = true;
- }
- else {
- btn_inputendcan.disabled = false;
- }
-
- if (grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("procstat")) == "Q") {
- btn_restoration.disabled = true;
- btn_nonrestoration.disabled = false;
- }
-
- }else{
- fControlDisabled(false);
- }
- }
-
- if (grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "R") {
- ipt_valupsncnfmnm1.value = "반려";
- }
- else{
- ipt_valupsncnfmnm1.value = "";
- }
-
- for (var k = grd_bizgoalskpi.fixedRows; k < grd_bizgoalskpi.rows; k++) {
- if (grd_bizgoalskpi.valueMatrix(k, grd_bizgoalskpi.colRef("idxinputyn")) == "N") {
- grd_bizgoalskpi.cellStyle("background-color", k, grd_bizgoalskpi.colRef("rsltidx")) = "#c0c0c0";
- grd_bizgoalskpi.cellAttribute("disabled",k, grd_bizgoalskpi.colRef("rsltidx")) = "true";
- }
- else {
- grd_bizgoalskpi.cellStyle("background-color", k, grd_bizgoalskpi.colRef("rsltidx")) = "#ffffff";
- grd_bizgoalskpi.cellAttribute("disabled",k, grd_bizgoalskpi.colRef("rsltidx")) = "false";
- }
- }
- opt_swtnscor.refresh();
- opt_fwtnscor.refresh();
- opt_stotwtnscor.refresh();
- opt_ftotwtnscor.refresh();
-
- model.setValue(ipt_instcd.attribute("ref") , model.getValue("/root/main/list/bizgoalkpi/valuempllist/dutinst"));
- model.setValue(ipt_deptcd.attribute("ref") , model.getValue("/root/main/list/bizgoalkpi/valuempllist/dutunitcd"));
-
- ipt_instcd.refresh();
- ipt_deptcd.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="cap_valuyy" class="search_name" style="left:15px; top:19px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
- <input id="ipt_valuyy" ref="/root/send/bizgoalskpi/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100; top:18; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- finitial();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_fstscndhfyyflag" ref="/root/send/bizgoalskpi/fstscndhfyyflag" class="combo_s_essential" appearance="minimal" style="left:613px; top:18px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/fstscndhfyyflag">
- <label ref="cdnm"/>
- <value ref="code"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_emplnos" class="search_name" style="left:230px; top:19px; width:57px; height:17px; font-weight:bold; ">사번:</caption>
- <caption id="cap_fstscndhfyyflag" class="search_name" style="left:532px; top:19px; width:81px; height:17px; vertical-align:middle; ">상하반기:</caption>
- <datagrid id="grd_bizgoalskpi" nodeset="/root/main/list/bizgoalkpi/bizgoalskpilist" autoresize="true" caption="업무구분^업무구분^성과지표(KPI)^측정방법^가중치^목표수준^caption1^caption2" colsep="^" colwidth="329, 18, 301, 199, 92, 215, 71, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1194px; height:176px; ">
- <col ref="idxcdnm" type="output" _key="true"/>
- <col ref="temp1" type="inputbutton"/>
- <col disabled="true" ref="rsltidx" type="input" maxbyte="1500"/>
- <col ref="inspmthd"/>
- <col class="gridcombo" ref="wtnscor" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goallevl" type="input" maxbyte="1500"/>
- <col ref="publbaseflag" type="output" visibility="hidden"/>
- <col ref="valuyy" type="output" visibility="hidden"/>
- <col ref="emplno" type="output" visibility="hidden"/>
- <col ref="fstscndhfyyflag" type="output" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="inputendflag" visibility="hidden"/>
- <col ref="rtnreqresn" visibility="hidden"/>
- <col ref="valupsnrtnreqresn" visibility="hidden"/>
- <col ref="aprvflag" visibility="hidden"/>
- <col ref="lastcnfmyn" visibility="hidden"/>
- <col ref="ownvalucnfmyn" visibility="hidden"/>
- <col ref="inputendflagnm" visibility="hidden"/>
- <col ref="procstat" visibility="hidden"/>
- <col ref="procstatnm" visibility="hidden"/>
- <col ref="valupsncnfmflag1" visibility="hidden"/>
- <col ref="valutrgtflag" visibility="hidden"/>
- <col ref="inoutflag" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="idxinputyn" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_bizgoalskpi.col = grd_bizgoalskpi.colRef("temp1"))
- {
- model.setValue(ipt_valuclscd.attribute("ref"),"01");
- model.setValue(ipt_valumdlcd.attribute("ref"),"001");
- model.setValue(ipt_valuclsdetlcd.attribute("ref"),"002");
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRPV99600_/SMRPV99600_value");
- model.makeNode("/root/copynode");
-
- rpvfOpenPopUpList("19",grd_bizgoalskpi,"","idxcd,idxcdnm,valuclscd,valumdlcd,valuclsdetlcd", "ipt_valuyy,ipt_valuclscd,ipt_valumdlcd,ipt_valuclsdetlcd,ipt_idxflag,ipt_smallclscd,ipt_emplnos");
- var cur_row = grd_bizgoalskpi.row;
- var status = grd_bizgoalskpi.valueMatrix(cur_row, grd_bizgoalskpi.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRPV99600_/SMRPV99600_value");
- setCSVToNode("/root/copynode", CSV, "bizgoalskpilist");
-
-
- fSettingIdxInfoList(grd_bizgoalskpi,"/root/copynode", "bizgoalskpilist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_bizgoalskpi.col == grd_bizgoalskpi.colRef("wtnscor")){
- model.setValue(opt_swtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalskpi));
- opt_swtnscor.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- CurGrid = "grd_bizgoalskpi";
- ]]>
- </script>
- </datagrid>
- <button id="btn_finsert" class="btn2_letter6" style="left:1018px; top:378px; width:86px; height:19px; ">
- <caption>업무지표등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy" , "ipt_emplnos", "cmb_fstscndhfyyflag") ) {
- return false;
- }
-
- var rowCnt = 0;
- for (var i = grd_bizgoalfkpi.fixedRows; i < grd_bizgoalfkpi.rows; i++ ) {
- if (grd_bizgoalfkpi.rowStatus(i) != "4" && grd_bizgoalfkpi.rowStatus(i) != "5" && grd_bizgoalfkpi.rowStatus(i) != "6") {
- rowCnt += 1;
- }
- }
-
- if(model.getValue("/root/init/idxfkpimaxcnt") <= rowCnt )
- {
- messageBox("업무 지표 최대 항목 개수는 " + model.getValue("/root/init/idxfkpimaxcnt") + "입니다. 추가 할 수","I004");
- return;
- }
-
- if (grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows > 0) {
- var idxcd = grd_bizgoalfkpi.valueMatrix(grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows, grd_bizgoalfkpi.colRef("idxcd"));
-
- if (idxcd == "") {
- return;
- }
- else {
- misfGridIUD(grd_bizgoalfkpi, "A");
- }
- }
- else {
- misfGridIUD(grd_bizgoalfkpi, "A");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_fdelete" class="btn2_letter6" style="left:1106px; top:378px; width:86px; height:19px; ">
- <caption>업무지표삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_bizgoalfkpi, "D");
- model.setValue(opt_fwtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalfkpi));
- opt_fwtnscor.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_restoration" class="btn2_letter4" disabled="true" style="left:865px; top:48px; width:64px; height:19px; ">
- <caption>반려요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtnreqresn = model.getValue(txt_rtnreqresn.attribute("ref"));
-
- if (rtnreqresn == null || rtnreqresn.length == 0)
- {
- messageBox("반려요청시 요청사유는 ","I003");
- model.setFocus("txt_rtnreqresn");
- return;
- }
- fSettingGridRestoration(grd_bizgoalskpi,rtnreqresn);
- fSettingGridRestoration(grd_bizgoalfkpi,rtnreqresn);
- btn_save.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:165px; top:48px; width:87px; height:20px; text-align:center; vertical-align:middle; ">반려요청상태</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:54px; width:230px; height:14px; vertical-align:middle; ">공유지표(S-KPI) List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
- <button id="btn_sinsert" class="btn2_letter6" style="left:1018px; top:48px; width:86px; height:19px; ">
- <caption>업무지표등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy" , "ipt_emplnos", "cmb_fstscndhfyyflag") ) {
- return false;
- }
-
-
- var rowCnt = 0;
- for (var i = grd_bizgoalskpi.fixedRows; i < grd_bizgoalskpi.rows; i++ ) {
- if (grd_bizgoalskpi.rowStatus(i) != "4" && grd_bizgoalskpi.rowStatus(i) != "5" && grd_bizgoalskpi.rowStatus(i) != "6") {
- rowCnt += 1;
- }
- }
- for (var i = grd_bizskpibaselist.fixedRows; i < grd_bizskpibaselist.rows; i++ ) {
- if (grd_bizskpibaselist.rowStatus(i) != "4" && grd_bizskpibaselist.rowStatus(i) != "5" && grd_bizskpibaselist.rowStatus(i) != "6") {
- rowCnt += 1;
- }
- }
-
-
- if(model.getValue("/root/init/idxskpimaxcnt") <= rowCnt)
- {
- messageBox("공유지표 항목 개수는 " + model.getValue("/root/init/idxskpimaxcnt") + "입니다. 추가 할 수","I004");
- return;
- }
-
- if (grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows > 0) {
- var idxcd = grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows, grd_bizgoalskpi.colRef("idxcd"));
-
- if (idxcd == "") {
- return;
- }
- else {
- misfGridIUD(grd_bizgoalskpi, "A");
- }
- }
- else {
- misfGridIUD(grd_bizgoalskpi, "A");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_returnresnstat" ref="/root/main/list/bizgoalkpi/bizgoalskpilist/procstatnm" class="input_essential" editable="false" style="left:253px; top:48px; width:87px; height:19px; font-size:11pt; font-weight:bold; color:#ff0000; "/>
- <button id="btn_sdelete" class="btn2_letter6" style="left:1106px; top:48px; width:86px; height:19px; ">
- <caption>업무지표삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (CurGrid == "grd_bizgoalskpi") {
- misfGridIUD(grd_bizgoalskpi, "D");
- }
- else if (CurGrid == "grd_bizskpibaselist") {
- misfGridIUD(grd_bizskpibaselist, "D");
- }
-
- model.setValue(opt_swtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalskpi));
- opt_swtnscor.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_bizgoalfkpi" nodeset="/root/main/list/bizgoalkpi/bizgoalfkpilist" autoresize="true" caption="업무구분^성과지표(KPI)^성과지표(KPI)^측정방법^가중치^목표수준^caption1^caption2" colsep="^" colwidth="122, 491, 18, 201, 92, 228, 71, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:405px; width:1194px; height:230px; ">
- <col id="idxflag" disabled="true" ref="idxflag" type="output">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="rsltidx" type="output" _key="true"/>
- <col ref="temp1" type="inputbutton"/>
- <col ref="inspmthd"/>
- <col class="gridcombo" ref="wtnscor" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goallevl" type="input" maxbyte="1500"/>
- <col ref="publbaseflag" type="output" visibility="hidden"/>
- <col ref="valuyy" type="output" visibility="hidden"/>
- <col ref="emplno" type="output" visibility="hidden"/>
- <col ref="fstscndhfyyflag" type="output" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="inputendflag" visibility="hidden"/>
- <col ref="rtnreqresn" visibility="hidden"/>
- <col ref="valupsnrtnreqresn" visibility="hidden"/>
- <col ref="aprvflag" visibility="hidden"/>
- <col ref="lastcnfmyn" visibility="hidden"/>
- <col ref="ownvalucnfmyn" visibility="hidden"/>
- <col ref="inputendflagnm" visibility="hidden"/>
- <col ref="procstat" visibility="hidden"/>
- <col ref="procstatnm" visibility="hidden"/>
- <col ref="valupsncnfmflag1" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="idxcdnm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_bizgoalfkpi.col == grd_bizgoalfkpi.colRef("temp1"))
- {
- model.setValue(ipt_valuclscd.attribute("ref"),"01");
- model.setValue(ipt_valumdlcd.attribute("ref"),"001");
- model.setValue(ipt_valuclsdetlcd.attribute("ref"),"004");
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRPV99700_/SMRPV99700_value");
- model.makeNode("/root/copynode");
- rpvfOpenPopUpList("20",grd_bizgoalfkpi,"","idxcd,idxcdnm,valuclscd,valumdlcd,valuclsdetlcd", "ipt_valuyy,ipt_valuclscd,ipt_valumdlcd,ipt_valuclsdetlcd,ipt_idxflag,ipt_smallclscd,ipt_instcd,ipt_deptcd");
- var cur_row = grd_bizgoalfkpi.row;
- var status = grd_bizgoalfkpi.valueMatrix(cur_row, grd_bizgoalfkpi.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRPV99700_/SMRPV99700_value");
- setCSVToNode("/root/copynode", CSV, "bizgoalfkpilist");
-
- fSettingIdxInfoList(grd_bizgoalfkpi,"/root/copynode", "bizgoalfkpilist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_bizgoalfkpi.col == grd_bizgoalfkpi.colRef("wtnscor")){
- model.setValue(opt_fwtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalfkpi));
- opt_fwtnscor.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- CurGrid = "grd_bizgoalfkpi";
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:0px; top:379px; width:230px; height:13px; vertical-align:middle; ">기본업무지표(F-KPI) List</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:399px; x2:1194px; y2:399px; "/>
- <input id="ipt_valumdlcd" ref="/root/send/idxflag/valumdlcd" visibility="hidden" style="left:790px; top:18px; width:65px; height:19px; "/>
- <input id="ipt_idxflag" ref="/root/send/idxflag/idxflag" visibility="hidden" style="left:920px; top:18px; width:65px; height:19px; "/>
- <input id="ipt_valuclscd" ref="/root/send/idxflag/valuclscd" visibility="hidden" style="left:730px; top:18px; width:60px; height:19px; "/>
- <input id="ipt_smallclscd" ref="/root/send/idxflag/smallclscd" visibility="hidden" style="left:985px; top:18px; width:65px; height:19px; "/>
- <input id="ipt_valuclsdetlcd" ref="/root/send/idxflag/valuclsdetlcd" visibility="hidden" style="left:855px; top:18px; width:65px; height:19px; "/>
- <input id="ipt_deptcd" ref="/root/send/bizgoalskpi/deptcd" visibility="hidden" style="left:1080px; top:18px; width:30px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/send/bizgoalskpi/instcd" visibility="hidden" style="left:1050px; top:18px; width:30px; height:19px; "/>
- <button id="btn_emplno" class="icon_search" style="left:375px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/bizgoalskpi/emplno" class="input_default" editable="true" style="left:285px; top:18px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/bizgoalskpi/emplnm" class="input_default" editable="false" style="left:395px; top:18px; width:119px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_returnresns" ref="/root/main/inputendflagstatus/inputendflag" visibility="hidden" style="left:299px; top:48px; width:40px; height:19px; "/>
- <textarea id="txt_rtnreqresn" ref="/root/main/inputendflagstatus/rtnreqresn" maxbyte="900" style="left:43px; top:640px; width:1150px; height:50px; "/>
- <textarea id="txt_valupsnrtnreqresn" ref="/root/main/inputendflagstatus/valupsnrtnreqresn" editable="false" maxbyte="900" style="left:43px; top:691px; width:1150px; height:50px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:640px; width:42px; height:49px; text-align:center; vertical-align:middle; ">반려요청</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:691px; width:42px; height:49px; text-align:center; vertical-align:middle; ">반려사유</caption>
- <caption id="caption7" style="left:629px; top:49px; width:125px; height:20px; ">공유지표 가중치 합계</caption>
- <output id="opt_swtnscor" ref="/root/init/swtnscor" style="left:818px; top:49px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption8" style="left:849px; top:49px; width:30px; height:20px; ">점</caption>
- <output id="opt_fwtnscor" ref="/root/init/fwtnscor" style="left:818px; top:378px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption9" style="left:629px; top:378px; width:125px; height:20px; ">기본지표 가중치 합계</caption>
- <caption id="caption10" style="left:849px; top:378px; width:30px; height:20px; ">점</caption>
- <button id="btn_nonrestoration" class="btn2_letter6" disabled="true" style="left:930px; top:48px; width:86px; height:19px; ">
- <caption>반려요청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSettingGridNotRestoration(grd_bizgoalskpi);
- fSettingGridNotRestoration(grd_bizgoalfkpi);
- btn_save.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:360px; top:48px; width:70px; height:20px; text-align:center; vertical-align:middle; ">입력구분</caption>
- <input id="ipt_inputendflagnm" ref="/root/main/list/bizgoalkpi/bizgoalskpilist/inputendflagnm" class="input_essential" editable="false" style="left:430px; top:48px; width:107px; height:19px; font-size:11pt; font-weight:bold; color:#ff0000; "/>
- <output id="opt_stotwtnscor" ref="/root/init/stotwtnscor" style="left:750px; top:49px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption12" style="left:785px; top:49px; width:30px; height:19px; ">점중</caption>
- <caption id="caption13" style="left:785px; top:378px; width:30px; height:19px; ">점중</caption>
- <output id="opt_ftotwtnscor" ref="/root/init/ftotwtnscor" style="left:750px; top:378px; width:30px; height:19px; text-align:right; "/>
- <input id="ipt_valupsncnfmnm1" ref="/root/init/valupsncnfmnm1" class="input_essential" editable="false" style="left:540px; top:48px; width:75px; height:19px; font-size:11pt; font-weight:bold; color:#ff0000; "/>
- <datagrid id="grd_bizskpibaselist" nodeset="/root/main/list/bizgoalkpi/bizskpibaselist" autoresize="true" caption="업무구분^성과지표(KPI)^측정방법^가중치^목표수준^caption1^caption2" colsep="^" colwidth="122, 502, 201, 92, 228, 71, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:250px; width:1194px; height:125px; ">
- <col id="col1" disabled="true" ref="idxflag" type="output">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="rsltidx" type="output" _key="true"/>
- <col ref="inspmthd"/>
- <col class="gridcombo" ref="wtnscor" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goallevl" type="input" maxbyte="1500"/>
- <col ref="publbaseflag" type="output" visibility="hidden"/>
- <col ref="valuyy" type="output" visibility="hidden"/>
- <col ref="emplno" type="output" visibility="hidden"/>
- <col ref="fstscndhfyyflag" type="output" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="inputendflag" visibility="hidden"/>
- <col ref="rtnreqresn" visibility="hidden"/>
- <col ref="valupsnrtnreqresn" visibility="hidden"/>
- <col ref="aprvflag" visibility="hidden"/>
- <col ref="lastcnfmyn" visibility="hidden"/>
- <col ref="ownvalucnfmyn" visibility="hidden"/>
- <col ref="inputendflagnm" visibility="hidden"/>
- <col ref="procstat" visibility="hidden"/>
- <col ref="procstatnm" visibility="hidden"/>
- <col ref="valupsncnfmflag1" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="idxcdnm" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_bizskpibaselist.col == grd_bizskpibaselist.colRef("wtnscor")){
- model.setValue(opt_swtnscor.attribute("ref"),fSumWtnScor(grd_bizgoalskpi));
- opt_swtnscor.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- CurGrid = "grd_bizskpibaselist";
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_msg" nodeset="/root/main/smsdata/recvrlist" visibility="hidden" caption="체크여부^이름^전화번호" colsep="^" colwidth="30, 50, 70" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:525px; top:475px; width:60px; height:60px; ">
- <col ref="chk"/>
- <col ref="recvrnm"/>
- <col ref="recvrtelno"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:879px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkKeyColumn("grd_bizgoalskpi") || !checkKeyColumn("grd_bizgoalfkpi") || !checkKeyColumn("grd_bizskpibaselist")) return;
-
-
- model.setValue("/root/send/save/bizgoalskpilist",grd_bizgoalskpi.getUpdateData());
- model.setValue("/root/send/save/bizgoalfkpilist",grd_bizgoalfkpi.getUpdateData());
- model.setValue("/root/send/save/bizskpibaselist",grd_bizskpibaselist.getUpdateData());
- submit("TXRPV05801");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.reload() ;
- ]]>
- </script>
- </button>
- <button id="btn_lastcnfm" class="btn4_letter4" style="left:936px; top:3px; width:80px; height:22px; ">
- <caption>최종확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var wtncheck = "Y";
- for(var row = grd_bizgoalskpi.fixedRows; row < grd_bizgoalskpi.rows; row++) {
- if (grd_bizgoalskpi.valueMatrix(row, grd_bizgoalskpi.colRef("wtnscor")) == null || grd_bizgoalskpi.valueMatrix(row, grd_bizgoalskpi.colRef("wtnscor")) == "") {
- wtncheck = "N";
- }
- }
-
- if (wtncheck == "Y" ) {
- for(var row = grd_bizskpibaselist.fixedRows; row < grd_bizskpibaselist.rows; row++) {
- if (grd_bizskpibaselist.valueMatrix(row, grd_bizskpibaselist.colRef("wtnscor")) == null || grd_bizskpibaselist.valueMatrix(row, grd_bizskpibaselist.colRef("wtnscor")) == "") {
- wtncheck = "N";
- }
- }
- }
-
- if (wtncheck == "Y" ) {
- for(var row = grd_bizgoalfkpi.fixedRows; row < grd_bizgoalfkpi.rows; row++) {
- if (grd_bizgoalfkpi.valueMatrix(row, grd_bizgoalfkpi.colRef("wtnscor")) == null || grd_bizgoalfkpi.valueMatrix(row, grd_bizgoalfkpi.colRef("wtnscor")) == "") {
- wtncheck = "N";
- }
- }
- }
-
-
- if (wtncheck == "N") {
- messageBox("가중치 입력은 필수 입니다. 저장 할 수","I004");
- return;
- }
-
-
- if(!fChkWtnScor(grd_bizgoalskpi) || !fChkWtnScor(grd_bizgoalfkpi)) return;
- if(!fChkgoallevl(grd_bizgoalskpi) || !fChkgoallevl(grd_bizgoalfkpi)) return;
-
- if(model.getValue("/root/init/idxskpimaxcnt") != (grd_bizgoalskpi.rows - grd_bizgoalskpi.fixedRows) + (grd_bizskpibaselist.rows - grd_bizskpibaselist.fixedRows))
- {
- messageBox("공유 지표 항목 개수는 " + model.getValue("/root/init/idxskpimaxcnt") + "입니다. 저장 할 수","I004");
- return;
- }
-
- if(model.getValue("/root/init/idxfkpimaxcnt") != (grd_bizgoalfkpi.rows - grd_bizgoalfkpi.fixedRows))
- {
- messageBox("기본 업무 지표 최대 항목 개수는 " + model.getValue("/root/init/idxfkpimaxcnt") + "입니다. 저장 할 수","I004");
- return;
- }
-
- var fkpicnt = 0;
- var fkpiwtnscor = 0;
- for (var i = grd_bizgoalskpi.fixedRows; i < grd_bizgoalskpi.rows; i++ ) {
- if(grd_bizgoalskpi.valueMatrix(i, grd_bizgoalskpi.colRef("rsltidx")) ==""){
- messageBox("성과지표 항목은","I003");
- return;
- }
- }
-
- for (var i = grd_bizskpibaselist.fixedRows; i < grd_bizskpibaselist.rows; i++ ) {
- // if(grd_bizskpibaselist.valueMatrix(i, grd_bizskpibaselist.colRef("rsltidx")) ==""){
- // messageBox("성과지표 항목은","I003");
- // return;
- // }
- if (grd_bizskpibaselist.valueMatrix(i, grd_bizskpibaselist.colRef("publbaseflag")) == "B" ) {
- fkpicnt += 1;
- fkpiwtnscor = fkpiwtnscor + parseInt(grd_bizskpibaselist.labelMatrix(i, grd_bizskpibaselist.colRef("wtnscor")));
- }
- }
-
-
-
- if (fkpicnt == 1 && fkpiwtnscor < 10) {
- messageBox("기본 업무 지표 항목 개수가 한개일 경우 가중치는 10이상 입니다." + "저장 할 수","I004");
- return;
- }
-
- if (grd_bizgoalskpi.valueMatrix(grd_bizgoalskpi.fixedRows,grd_bizgoalskpi.colRef("valupsncnfmflag1")) == "R") {
- fSettingGridLastValuCnfm(grd_bizgoalskpi,"04");
- fSettingGridLastValuCnfm(grd_bizskpibaselist,"04");
- fSettingGridLastValuCnfm(grd_bizgoalfkpi,"04");
-
- if(model.getValue("/root/target/popup") == "SMRPV06300")
- {
- fSettingGridLastValuPopup(grd_bizgoalskpi,"F");
- fSettingGridLastValuPopup(grd_bizskpibaselist,"F");
- fSettingGridLastValuPopup(grd_bizgoalfkpi,"F");
- }
- }
- else {
- fSettingGridLastValuCnfm(grd_bizgoalskpi,"03");
- fSettingGridLastValuCnfm(grd_bizskpibaselist,"03");
- fSettingGridLastValuCnfm(grd_bizgoalfkpi,"03");
-
- if(model.getValue("/root/target/popup") == "SMRPV06300")
- {
- fSettingGridLastValuPopup(grd_bizgoalskpi, "B");
- fSettingGridLastValuPopup(grd_bizskpibaselist, "B");
- fSettingGridLastValuPopup(grd_bizgoalfkpi, "B");
- }
- }
- btn_save.dispatch("DOMActivate");
-
- /*
- 상하반기 1차평가자에게 Email 이나 Sms를 전송.
- */
- var frecemplno = '';
-
- if(cmb_fstscndhfyyflag.value == "1")
- {
- frecemplno = model.getValue("/root/main/list/bizgoalkpi/valuempllist/fsthfyyvalupsn1");
- }else if(cmb_fstscndhfyyflag.value == "2")
- {
- frecemplno = model.getValue("/root/main/list/bizgoalkpi/valuempllist/scndhfyyvalupsn1");
- }
-
- //alert(frecemplno);
- rpvfOneAndOneCheckEmailAndSms(ipt_emplnms.value + "님의 [업무지표등록] 확정이 되었습니다.", "업무지표등록 통보", ipt_emplnos.value, '', frecemplno, '');
-
- ]]>
- </script>
- </button>
- <button id="btn_inputendcan" class="btn4_letter6" style="left:1016px; top:3px; width:104px; height:22px; ">
- <caption>최종확정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSettingGridLastValuCnfm(grd_bizgoalskpi,"02");
- fSettingGridLastValuCnfm(grd_bizskpibaselist,"02");
- fSettingGridLastValuCnfm(grd_bizgoalfkpi,"02");
- btn_save.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn4_letter2" style="left:820px; top:2px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/bizgoalskpi/workgbn","P");
- submit("TRRPV05804");
- exeReportPreview("RPRPV05800", "XMLSTR", "/root/send/report");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|