123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774 |
- <?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>
- <idxflag>
- <idxflaglist/>
- </idxflag>
- </list>
- </main>
- <send>
- <idxflag>
- <valuyy/>
- <valuclscd>01</valuclscd>
- <valumdlcd>001</valumdlcd>
- <valuclsdetlcd>004</valuclsdetlcd>
- <teamchfflag/>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <fromdd/>
- <todd/>
- <concrcd/>
- <infdept/>
- </idxflag>
- <preidxflag>
- </preidxflag>
- <save>
- <idxflaglist/>
- </save>
- <findinspmthd/>
- </send>
- <init>
- <idxmaxcnt/>
- </init>
- <hidden/>
- <temp>
- <trgtemplno/>
- </temp>
- <target/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /* Grid 초기화 */
- misfGridInit(grd_IdxFlag);
-
- /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
- /* Grid의 Mater, Detail관계 설정
- misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
- misfMsterDetailSet(grd_IdxFlag,null, "TRRPV03201" ,"Y");
- var curdate = getCurrentDate();
- model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
- var trgtemplno = model.getValue("/root/target/trgtemplno");
- if(model.getValue("/root/target/trgtemplno") !=""){
- var fromyy = model.getValue("/root/target/fromdd").substr(0,4);
-
- rpvfGetAndSetUserInfo(fromyy,trgtemplno);
- var instcd = model.getValue("/root/bizgoalkpi/valuempllist/instcd");
- var unitcd = model.getValue("/root/bizgoalkpi/valuempllist/unitcd");
- var deptnm = model.getValue("/root/bizgoalkpi/valuempllist/deptnm");
- var emplno = trgtemplno;
-
- }else{
- var instcd= getUserInfo("dutplceinstcd");
- var unitcd= getUserInfo("posdeptcd");
- var deptnm= getUserInfo("posdeptnm");
- var emplno= getUserInfo("userid");
- }
-
- model.setValue(cmb_instcd.attribute("ref") , instcd);
- model.setValue(ipt_deptcd.attribute("ref") , unitcd);
- model.setValue(ipt_deptnm.attribute("ref") , deptnm);
-
- rpvfComboInstCdList("cmb_instcd");
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
-
- //fGetIdxCnt();
- rpvfComboDisableYn("cmb_instcd","ipt_deptcd,btn_deptcd,ipt_deptnm,btn_preidxcopy",instcd,emplno);
- rpvfGetUserAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"));
- if(DUTY_VALU_YN =='Y'){
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", false);
- cap_fromdd.visible = true;
- ipt_fromdd.visible = true;
- ipt_todd.visible = true;
- caption5.visible = true;
-
- //ipt_fromdd.value = curdate;
- //ipt_todd.value = curdate;
-
- btn_saveexcel.visible = true;
-
- ipt_deptnm.visible = true;
- btn_deptcd.visible = true;
- cmb_concrcd.visible = false;
- cap_infdept.visible = false;
- cmb_infdept.visible = false;
-
- btn_delete.disabled = false;
-
- if (getUserInfo("dutplceinstcd") == "001") {
- btn_preidxcopy.visible = true;
- }
- else {
- btn_preidxcopy.visible = false;
- }
- }else{
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", true);
- cap_fromdd.visible = false;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
- caption5.visible = false;
-
- ipt_fromdd.value = '20000101';
- ipt_todd.value = '99991231';
-
- ipt_deptnm.visible = false;
- btn_deptcd.visible = false;
- cmb_concrcd.visible = true;
-
- cap_infdept.visible = true;
- cmb_infdept.visible = true;
-
- btn_saveexcel.visible = false;
-
- btn_delete.disabled = true;
-
- rpvfComboConCrList("cmb_concrcd" , emplno , curdate.substr(0, 4));
- cmb_concrcd.select(0);
-
- btn_preidxcopy.visible = false;
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPV00400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/idxflag" resultref="/root/main/list/valusmallcls"/>
- <submission id="TRRPV03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/idxflag" resultref="/root/main/list/idxflag"/>
- <submission id="TRRPV03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/preidxflag" resultref="/root/main/list/preidxflag"/>
- <submission id="TXRPV03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRPV03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/idxflag" resultref="/root/temp"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if (getGridUpdateData(grd_IdxFlag) != "" ) {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
-
- }
- ]]>
- </script>
- </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/stringHelper.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[
- function fGetIdxCnt()
- {
- if(getUserInfo("jobrespcd") == "1070" || getUserInfo("jobrespcd") == "2430" ||getUserInfo("jobrespcd") == "2010" ||getUserInfo("jobrespcd") == "1086" ) //로긴한 사용자가 팀장이라면
- {
- model.setValue("send/idxflag/teamchfflag" , "1");
- }
- else if(getUserInfo("jobrespcd") == "1901") //로긴한 사용자가 UM이라면
- {
- model.setValue("send/idxflag/teamchfflag" , "2");
- }
- else
- {
- model.setValue("send/idxflag/teamchfflag" , "3");
- }
- submit("TRRPV00400");
-
- model.setValue("/root/init/idxmaxcnt",model.getValue("/root/main/list/valusmallcls/valusmallclslist/valuitemcnt"));
- }
- function fGetMaxPrtSeqNo()
- {
- var maxprtseqno = "";
- for(var currow = grd_IdxFlag.fixedRows ; currow < grd_IdxFlag.rows; currow++)
- {
- if(maxprtseqno < parseInt(grd_IdxFlag.valueMatrix(currow , grd_IdxFlag.colRef("prtseqno"))))
- maxprtseqno = grd_IdxFlag.valueMatrix(currow , grd_IdxFlag.colRef("prtseqno"));
- }
- if(maxprtseqno.length== 0)maxprtseqno = 1;
- else maxprtseqno = parseInt(maxprtseqno) + 1;
- return maxprtseqno;
- }
- function fGetPreIdxCopy()
- {
- if(!isRequiredControls("ipt_valuyy")) return;
- if( messageBox("전년도 복사시 " + ipt_valuyy.value + "년도의 Data는 모두 지워집니다.", "Q003") != '6') return;
-
- submit("TXRPV03203");
-
- btn_search.dispatch("DOMActivate");
- // if ( !isRequiredControls("ipt_valuyy" , "cmb_instcd", "ipt_deptcd") ) {
- // return false;
- // }
- //
- // var curyear = model.getValue(ipt_valuyy.attribute("ref"));
- // var preyear = parseInt(curyear) -1;
- // model.copyNode("/root/send/preidxflag", "root/send/idxflag");
- //
- // model.makeNode("/root/send/preidxflag/useyn");
- // model.setValue("/root/send/preidxflag/valuyy",preyear);
- // model.setValue("/root/send/preidxflag/useyn","Y");
- // submit("TRRPV03203");
- //
- // var node = "/root/main/list/preidxflag";
- // var nodename = "idxflaglist";
- // var codynode = instance1.selectNodes(node + "/*");
- // var addRow = grd_IdxFlag.rows - grd_IdxFlag.fixedRows;
- // var duplchk = false;
- //
- // if(model.getValue(grd_IdxFlag.nodeset + "[" + addRow + "]/idxcd").length > 0)addRow = addRow + 1;
- // for (var j = 1; j <= codynode.length ; j++) {
- // duplchk = false;
- // for(var row = grd_IdxFlag.fixedRows ; row < grd_IdxFlag.rows ; row++)
- // {
- // if(grd_IdxFlag.valueMatrix(row , grd_IdxFlag.colRef("rsltidx")) == model.getValue(node +"/" + nodename + "[" + j + "]/rsltidx") &&
- // grd_IdxFlag.valueMatrix(row , grd_IdxFlag.colRef("inspmthd")) == model.getValue(node +"/" + nodename + "[" + j + "]/inspmthd"))
- // {
- // duplchk = true;
- // break;
- // }
- // }
- //
- // if(duplchk == false)
- // {
- // if(addRow == 0 || addRow > grd_IdxFlag.rows - grd_IdxFlag.fixedRows)
- // {
- // misfGridIUD(grd_IdxFlag,"A");
- // addRow = grd_IdxFlag.rows - grd_IdxFlag.fixedRows;
- //
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/instcd", model.getValue(cmb_instcd.attribute("ref")));
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/deptcd", model.getValue(ipt_deptcd.attribute("ref")));
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/prtseqno", fGetMaxPrtSeqNo());
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/useyn", "Y");
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/valuclscd", model.getValue("/root/send/idxflag/valuclscd"));
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/valumdlcd", model.getValue("/root/send/idxflag/valumdlcd"));
- // model.setValue(grd_IdxFlag.attribute("nodeset")+"["+addRow+"]/valuclsdetlcd", model.getValue("/root/send/idxflag/valuclsdetlcd"));
- // }
- // model.setValue(grd_IdxFlag.nodeset + "[" + addRow + "]/idxflag" , model.getValue(node +"/" + nodename + "[" + j + "]/idxflag"));
- // model.setValue(grd_IdxFlag.nodeset + "[" + addRow + "]/idxcd" , model.getValue(node +"/" + nodename + "[" + j + "]/idxcd"));
- // model.setValue(grd_IdxFlag.nodeset + "[" + addRow + "]/rsltidx" , model.getValue(node +"/" + nodename + "[" + j + "]/rsltidx"));
- // model.setValue(grd_IdxFlag.nodeset + "[" + addRow + "]/inspmthd" , model.getValue(node +"/" + nodename + "[" + j + "]/inspmthd"));
- // addRow = addRow + 1;
- // }
- // }
- //
- // model.refresh();
- }
- function fGetInspMthdFind(pinspmthd)
- {
- for(var row = grd_IdxFlag.fixedRows ; row < grd_IdxFlag.rows; row++)
- {
- if(grd_IdxFlag.valueMatrix(row , grd_IdxFlag.colRef("inspmthd")).indexOf(pinspmthd) != -1 || grd_IdxFlag.valueMatrix(row , grd_IdxFlag.colRef("rsltidx")).indexOf(pinspmthd) != -1)
- {
- grd_IdxFlag.rowHeight(row)= 23;
- //grd_IdxFlag.cellstyle("background-color", row, 1, row, 6) = "#ffff99";
- }
- else
- {
- grd_IdxFlag.rowHeight(row)= 0;
- //grd_IdxFlag.cellstyle("background-color", row, 1, row, 6) = "#ffffff";
- }
- }
- model.refresh();
- }
-
- function fSettingIdxInfoList(pdatagrid, pnode, nodename){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = pdatagrid.rows - pdatagrid.fixedRows;
-
- if(model.getValue(pdatagrid.nodeset + "[" + addRow + "]/idxcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if(addRow == 0 || addRow > pdatagrid.rows - pdatagrid.fixedRows)
- {
- misfGridIUD(pdatagrid,"A");
-
- if(DUTY_VALU_YN =='Y'){
- grd_IdxFlag.isReadOnly(grd_IdxFlag.row, grd_IdxFlag.colRef("rsltidx")) = false;
- }
- else {
-
- grd_IdxFlag.isReadOnly(grd_IdxFlag.row, grd_IdxFlag.colRef("rsltidx")) = true;
- }
-
- addRow = pdatagrid.rows - pdatagrid.fixedRows;
- }
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/rsltidx" , model.getValue(pnode +"/" + nodename + "[" + j + "]/rsltidx"));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/inspmthd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/inspmthd"));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/deptcd", model.getValue(ipt_deptcd.attribute("ref")));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/prtseqno", fGetMaxPrtSeqNo());
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/useyn", "Y");
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/valuclscd", model.getValue("/root/send/idxflag/valuclscd"));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/valumdlcd", model.getValue("/root/send/idxflag/valumdlcd"));
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/valuclsdetlcd", model.getValue("/root/send/idxflag/valuclsdetlcd"));
-
- var idxflagorinm = model.getValue(pnode +"/" + nodename + "[" + j + "]/idxflagnm");
-
- var node = instance1.selectNodes("/root/init/grd_IdxFlag/idxflag/idxflaglist/*");
- for (var i = 0; i < node.length; i++) {
- //alert(node.item(i).nodename);
- //if (node.item(i).nodename == "idxflag") {
- var idxflag = model.getValue("/root/init/grd_IdxFlag/idxflag/idxflaglist[" + i + "]/idxflag");
- //alert(idxflag);
- //}
-
- //if (node.item(i).nodename == "idxflagnm") {
- var idxflagnm = model.getValue("/root/init/grd_IdxFlag/idxflag/idxflaglist[" + i + "]//idxflagnm");
- //alert(idxflagnm);
- if (idxflagnm == idxflagorinm) {
- model.setValue(pdatagrid.nodeset + "[" + addRow + "]/idxflag", idxflag);
- break;
- }
- //}
-
-
-
- //if (idxflagnm ==
- }
-
- addRow = addRow + 1;
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1171;" 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; ">
- <datagrid id="grd_IdxFlagexcel" nodeset="/root/main/list/idxflag/idxflaglist" caption="기관^부서^지표구분^성과지표^측정방법^입력일자^승인" colsep="^" colwidth="100, 100, 117, 425, 475, 100, 35, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:255px; width:1195px; height:144px; ">
- <col ref="instnm"/>
- <col ref="deptnm"/>
- <col ref="idxflagnm" type="output"/>
- <col ref="rsltidx" type="output" maxlength="900"/>
- <col ref="inspmthd" type="output" maxlength="900"/>
- <col ref="inputdd" style="text-align:center; vertical-align:middle; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="prtseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="oldidxflag" visibility="hidden"/>
- </datagrid>
- <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" , "cmb_instcd") ) {
- return false;
- }
- btn_findclear.dispatch("DOMActivate");
- misfMsterDetailRetrieve();
-
- for (var i = grd_IdxFlag.fixedRows; i < grd_IdxFlag.rows; i++) {
- if(DUTY_VALU_YN =='Y'){
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", false);
- grd_IdxFlag.isReadOnly(i, grd_IdxFlag.colRef("rsltidx")) = false;
- }
- else {
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", true);
- if (grd_IdxFlag.valueMatrix(i, grd_IdxFlag.colRef("useyn")) == "Y") {
- grd_IdxFlag.isReadOnly(i, grd_IdxFlag.colRef("rsltidx")) = true;
- }
- else {
- grd_IdxFlag.isReadOnly(i, grd_IdxFlag.colRef("rsltidx")) = false;
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <button id="btn_insert" class="btn2_letter3" style="left:1084px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy" , "cmb_instcd", "ipt_deptcd") ) {
- return false;
- }
-
- /*
- if(model.getValue("/root/init/idxmaxcnt") <= (grd_IdxFlag.rows - grd_IdxFlag.fixedRows))
- {
- messageBox("기본업무지표 최대 항목갯수는 " + model.getValue("/root/init/idxmaxcnt") + "입니다. 추가할수","I004");
- return;
- }
- */
-
- misfGridIUD(grd_IdxFlag, "A");
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/deptcd", model.getValue(ipt_deptcd.attribute("ref")));
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/prtseqno", fGetMaxPrtSeqNo());
-
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/valuclscd", model.getValue("/root/send/idxflag/valuclscd"));
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/valumdlcd", model.getValue("/root/send/idxflag/valumdlcd"));
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/valuclsdetlcd", model.getValue("/root/send/idxflag/valuclsdetlcd"));
- misfGetUserAuth();
- if(DUTY_VALU_YN =='Y'){
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", false);
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/useyn", "Y");
-
- //grd_IdxFlag.colhidden(4) = false;
- }else{
- misfSetReadOnlyCol(grd_IdxFlag, "useyn", true);
- model.setValue(grd_IdxFlag.attribute("nodeset")+"["+(grd_IdxFlag.row - grd_IdxFlag.fixedRows + 1)+"]/useyn", "N");
- //grd_IdxFlag.colhidden(4) = true;
- }
-
- grd_IdxFlag.isReadOnly(grd_IdxFlag.row, grd_IdxFlag.colRef("rsltidx")) = false;
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter3" style="left:1139px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_IdxFlag, "D");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/idxflag/instcd" class="combo_s_essential" appearance="minimal" style="left:292px; top:18px; width:219px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.refresh();
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:231px; top:19px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
- <button id="btn_deptcd" class="icon_search" style="left:710px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
- var valuyy = ipt_valuyy.value;
-
- var pre_deptcd = model.getValue(ipt_deptcd.attribute("ref"))
- rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, "cmb_instcd,ipt_valuyy", "instcd,valuyy");
-
- var cur_deptcd = model.getValue(ipt_deptcd.attribute("ref"));
-
- model.refresh();
- if(cur_deptcd != pre_deptcd)
- {
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:516px; top:19px; width:63px; height:17px; ">부서 :</caption>
- <input id="ipt_deptnm" ref="/root/send/idxflag/deptnm" class="input_default" style="left:581px; top:19px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pre_deptcd = model.getValue(ipt_deptcd.attribute("ref"))
- misfValidationCheck("02", "", "deptcd,deptnm" );
- var cur_deptcd = model.getValue(ipt_deptcd.attribute("ref"));
-
- model.refresh();
- if(cur_deptcd != pre_deptcd)
- {
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/idxflag/deptcd" class="input_default" visibility="hidden" style="left:581px; top:19px; width:99px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
-
- var pre_deptcd = model.getValue(ipt_deptcd.attribute("ref"))
- misfValidationCheck("02", "", "deptcd,deptnm" );
-
- var cur_deptcd = model.getValue(ipt_deptcd.attribute("ref"));
-
- model.refresh();
- if(cur_deptcd != pre_deptcd)
- {
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
- btn_search.dispatch("DOMActivate");
-
- }
- ]]>
- </script>
- </input>
- <datagrid id="grd_IdxFlag" nodeset="/root/main/list/idxflag/idxflaglist" caption="지표구분^성과지표^측정방법^입력일자^승인" colsep="^" colwidth="117, 425, 475, 100, 35, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:76px; width:1195px; height:664px; ">
- <col class="gridcombo" ref="idxflag" type="combo" maxlength="1" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="rsltidx" type="input" maxlength="900"/>
- <col ref="inspmthd" type="input" maxlength="900"/>
- <col ref="inputdd" style="text-align:center; vertical-align:middle; "/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="prtseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="oldidxflag" visibility="hidden"/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">기본업무지표(F-KPI) POOL List</caption>
- <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/idxflag/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[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_valuyy.value) == "4" ) {
- rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:235px; top:49px; width:85px; height:20px; ">KeyWord 검색</caption>
- <input id="ipt_inspmthd" ref="/root/send/findinspmthd" style="left:314px; top:48px; width:218px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_inspmthdfind", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_inspmthdfind" class="btn2_letter2" style="left:533px; top:48px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInspMthdFind(model.getValue(ipt_inspmthd.attribute("ref")));
- ]]>
- </script>
- </button>
- <button id="btn_findclear" class="btn2_letter4" style="left:576px; top:48px; width:64px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var row = grd_IdxFlag.fixedRows ; row < grd_IdxFlag.rows; row++)
- {
- grd_IdxFlag.rowHeight(row)= 23;
- }
- model.setValue(ipt_inspmthd.attribute("ref"),"");
- ipt_inspmthd.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_copy" class="btn2_letter10" style="left:952px; top:48px; width:130px; height:19px; ">
- <caption>타기관 입력내역 복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRPV99600_/SMRPV99600_value");
- model.makeNode("/root/copynode");
- rpvfOpenPopUpList("21",grd_IdxFlag,"","idxcd,idxcdnm,valuclscd,valumdlcd,valuclsdetlcd", "ipt_valuyy,ipt_valuclscd,ipt_valumdlcd,ipt_valuclsdetlcd,ipt_idxflag,ipt_smallclscd");
- var cur_row = grd_IdxFlag.row;
- var status = grd_IdxFlag.valueMatrix(cur_row, grd_IdxFlag.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRPV03202_/SMRPV03202_value");
- setCSVToNode("/root/copynode", CSV, "idxflaglist");
-
- fSettingIdxInfoList(grd_IdxFlag,"/root/copynode", "idxflaglist");
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:805px; top:20px; width:81px; height:17px; ">입력일자:</caption>
- <input id="ipt_fromdd" ref="/root/send/idxflag/fromdd" class="input_s_essential" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:885px; top:20px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/idxflag/todd" class="input_s_essential" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:1005px; top:20px; width:100px; height:19px; "/>
- <caption id="caption5" visibility="hidden" style="left:990px; top:20px; width:10px; height:20px; ">-</caption>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:885px; top:48px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_IdxFlagexcel.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_concrcd" ref="/root/send/idxflag/concrcd" class="combo_s_essential" appearance="minimal" style="left:581px; top:19px; width:214px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var concrcd = cmb_concrcd.value;
-
- var condata = concrcd.split("-");
-
- cmb_instcd.value = condata[0];
- ipt_deptcd.value = condata[1];
-
- model.refresh();
-
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
-
- rpvfComboDeptInfList("cmb_infdept", model.getValue(cmb_instcd.attribute("ref")), model.getValue(ipt_valuyy.attribute("ref")), model.getValue(ipt_deptcd.attribute("ref")) );
- //
- addComboItem( "cmb_infdept", "[-- 값없음 --]", "", "above");
- model.setValue(cmb_infdept.attribute("ref"), "");
-
- btn_search.dispatch("DOMActivate");
-
-
- ]]>
- </script>
- </select1>
- <caption id="cap_infdept" class="search_name" style="left:811px; top:19px; width:81px; height:17px; ">하위부서:</caption>
- <select1 id="cmb_infdept" ref="/root/send/idxflag/infdept" class="combo_s_essential" appearance="minimal" style="left:893px; top:19px; width:195px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- var infdept = cmb_infdept.value;
-
- if (infdept == "") {
- var concrcd = cmb_concrcd.value;
-
- var condata = concrcd.split("-");
-
- ipt_deptcd.value = condata[1];
-
- btn_copy.disabled = false;
- btn_insert.disabled = false;
- btn_delete.disabled = false;
- btn_save.disabled = false;
-
- //misfSetReadOnlyCol(grd_IdxFlag, "idxflag,rsltidx", false);
- }
- else {
- ipt_deptcd.value = infdept;
-
- btn_copy.disabled = true;
- btn_insert.disabled = true;
- btn_delete.disabled = true;
- btn_save.disabled = true;
-
- //misfSetReadOnlyCol(grd_IdxFlag, "idxflag,rsltidx", true);
- }
-
- model.refresh();
-
- misfGridInit(grd_IdxFlag);
- rpvfComboIdxFlagCodeList(model.getValue(cmb_instcd.attribute("ref")) , model.getValue(ipt_deptcd.attribute("ref")) , grd_IdxFlag , "idxflag");
- btn_search.dispatch("DOMActivate");
-
-
- ]]>
- </script>
- </select1>
- </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:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkKeyColumn("grd_IdxFlag")) return;
-
- for (var k = grd_IdxFlag.fixedRows; k < grd_IdxFlag.rows; k++ ) {
- if (grd_IdxFlag.rowStatus(k) != 4 && grd_IdxFlag.rowStatus(k) != 5 && grd_IdxFlag.rowStatus(k) != 6 ) {
- var rsltidx = grd_IdxFlag.valueMatrix(k, grd_IdxFlag.colRef("rsltidx"));
-
- for (var i = grd_IdxFlag.fixedRows; i < grd_IdxFlag.rows; i++ ) {
- if ( rsltidx == grd_IdxFlag.valueMatrix(i, grd_IdxFlag.colRef("rsltidx")) && k != i ) {
- if (grd_IdxFlag.rowStatus(i) != 4 && grd_IdxFlag.rowStatus(i) != 5 && grd_IdxFlag.rowStatus(i) != 6 ) {
- messageBox("[" + rsltidx + "]" + " 지표는 " + "(" + i + "째줄)" + "중복이 되어서 저장 할 수","I004");
- return;
- }
- }
- }
- }
-
- }
-
- misfSave("TXRPV03201");
- ]]>
- </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:1069px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.reload() ;
- ]]>
- </script>
- </button>
- <button id="btn_preidxcopy" class="btn4_letter5" style="left:977px; top:3px; width:92px; height:22px; ">
- <caption>전년도복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPreIdxCopy();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|