123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <bizplan>
- <bizplanlist/>
- <antptnlist/>
- <unitbizplanlist/>
- </bizplan>
- <fileinfo>
- <fileinfolist/>
- </fileinfo>
- <scrfileinfo>
- <fileinfolist/>
- </scrfileinfo>
- </list>
- <bizplan>
- <bizplanlist>
- <valuyy/>
- <instcd/>
- <deptcd/>
- <mainrslt/>
- <unprepcnts/>
- <teamjob/>
- <manabltupbrngplan/>
- <delivecnts/>
- <unitbizplan/>
- <inputemplno/>
- <inputjobrespcd/>
- <supdeptcd/>
- </bizplanlist>
- </bizplan>
- <valuempl>
- <valuempllist/>
- </valuempl>
- </main>
- <send>
- <bizplan>
- <valuyy/>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <emplno/>
- <goalflag>01</goalflag>
- <concrcd/>
- <jobrespcd/>
- </bizplan>
- <save>
- <bizplanlist/>
- <antptnlist/>
- <unitbizplanlist/>
- </save>
- <fileupload>
- <file>
- <filename/>
- </file>
- </fileupload>
- </send>
- <init>
- <unitbizplan/>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /* Grid 초기화 */
- misfGridInit(grd_bizplan);
- misfGridInit(grd_unitbizplan);
- misfGridInit(grd_antptn);
-
- /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
- /* Grid의 Mater, Detail관계 설정
- misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
- misfMsterDetailSet(grd_bizplan,null, "TRRPV05701" ,"Y");
- misfMsterDetailSet(grd_unitbizplan,null, "TRRPV05701" ,"Y");
-
- rpvfComboInstCdList("cmb_instcd");
- var curdate = getCurrentDate();
- model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
-
- model.setValue(ipt_emplno.attribute("ref") , getUserInfo("userid"));
-
- // rpvfComboConCrList("cmb_concrcd" , getUserInfo("userid") , curdate.substr(0, 4));
- // cmb_concrcd.select(0);
- //
- //
- // rpvfComboDisableYn("cmb_instcd","ipt_deptcd,btn_deptcd,ipt_deptnm");
-
- // 평가기간에 따른 권한 부여.
- //당분간 막음 2008-04-01
- // if(model.getValue("/root/temp/trgtflag") != ""){
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), model.getValue("/root/temp/trgtflag"), model.getValue("/root/temp/program"), "btn_init,btn_save,btn_bizplnupload,btn_insdeptgoal,btn_fileinfo,btn_deptgoal,btn_search");
- // }else{
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), "04", "SMRPV05700", "btn_init,btn_save,btn_bizplnupload,btn_insdeptgoal,btn_fileinfo,btn_deptgoal,btn_search");
- // }
-
-
- // submit("TRRPV05706");
-
- // model.setValue(cmb_instcd.attribute("ref") , model.getValue("/root/main/valuempl/valuempllist/dutinst"));
- // model.setValue(ipt_deptcd.attribute("ref") , model.getValue("/root/main/valuempl/valuempllist/dutunitcd"));
- // model.setValue(ipt_deptnm.attribute("ref") , model.getValue("/root/main/valuempl/valuempllist/deptnm"));
-
- // if (btn_search.disabled == false) {
- // var instcd = getUserInfo("dutplceinstcd");
- // var emplno = getUserInfo("userid");
- // rpvfGetUserAuth(instcd,emplno);
- //
- // SetControlAuth();
- // btn_search.dispatch("DOMActivate");
- // }
- //
- // model.refresh();
- finitial();
- ]]>
- </script>
- <submission id="TRRPV05701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizplan" resultref="/root/main/list/bizplan"/>
- <submission id="TRRPV05703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizplan" resultref="/root/main/list/fileinfo"/>
- <submission id="TRRPV05704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizplan" resultref="/root/main"/>
- <submission id="TXRPV05701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRPV05703" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden/temp"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if (getGridUpdateData(grd_unitbizplan) != "" || getGridUpdateData(grd_bizplan) != "" || getGridUpdateData(grd_antptn) != "" ) {
- if (btn_save.disabled == false) {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
- }
-
- }
- ]]>
- </script>
- <submission id="TRRPV05706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizplan" resultref="/root/main/valuempl"/>
- </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 jobrespcd = "";
-
- function finitial() {
- rpvfComboInstCdList("cmb_instcd", ipt_valuyy.value);
- // var curdate = getCurrentDate();
- // model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
-
- // model.setValue(ipt_emplno.attribute("ref") , getUserInfo("userid"));
-
- rpvfComboConCrList("cmb_concrcd" , getUserInfo("userid") , ipt_valuyy.value);
- cmb_concrcd.select(0);
-
- rpvfComboDisableYn("cmb_instcd","ipt_deptcd,btn_deptcd,ipt_deptnm");
-
- // 평가기간에 따른 권한 부여.
- //당분간 막음 2008-04-01
- // if(model.getValue("/root/temp/trgtflag") != ""){
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), model.getValue("/root/temp/trgtflag"), model.getValue("/root/temp/program"), "btn_init,btn_save,btn_bizplnupload,btn_insdeptgoal,btn_fileinfo,btn_deptgoal,btn_search");
- // }else{
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), "04", "SMRPV05700", "btn_init,btn_save,btn_bizplnupload,btn_insdeptgoal,btn_fileinfo,btn_deptgoal,btn_search");
- // }
-
-
- submit("TRRPV05706");
-
- if (btn_search.disabled == false) {
- var instcd = getUserInfo("dutplceinstcd");
- var emplno = getUserInfo("userid");
- rpvfGetUserAuth(instcd,emplno);
-
- SetControlAuth();
- btn_search.dispatch("DOMActivate");
- }
-
- model.refresh();
- }
-
-
- function SetControlAuth()
- {
- txt_mainrslt.attribute("editable") = "false";
- txt_unprepcnts.attribute("editable") = "false";
- txt_teamjob.attribute("editable") = "false";
- txt_manabltupbrngplan.attribute("editable") = "false";
- txt_delivecnts.attribute("editable") = "false";
- txt_unitbizplan.attribute("editable") = "false";
- txt_mainrslt.attribute("editable") = "false";
- btn_unitinsert.disabled = true;
- btn_unitdelete.disabled = true;
- grd_antptn.disabled = true;
- btn_save.disabled = true;
- btn_bizplnupload.disabled = true;
-
- var emplnode = instance1.selectNodes("/root/main/valuempl/valuempllist/*");
- var valunode = instance1.selectNodes("/root/init/concrcd/concr/*");
-
- if (emplnode.length <= 0 && valunode.length > 0 ) {
- jobrespcd = "1070"
- }
- else {
- jobrespcd = model.getValue("/root/main/valuempl/valuempllist/jobrespcd");
- }
-
-
- if(jobrespcd == "1070"||jobrespcd == "2430"||jobrespcd == "2010"||jobrespcd == "1086"||jobrespcd == "4040"||DUTY_VALU_YN =="Y") //로긴한 사용자가 팀장이라면
- {
- txt_mainrslt.attribute("editable") = "true";
- txt_unprepcnts.attribute("editable") = "true";
- txt_teamjob.attribute("editable") = "true";
- txt_manabltupbrngplan.attribute("editable") = "true";
- txt_delivecnts.attribute("editable") = "true";
- txt_mainrslt.attribute("editable") = "true";
- btn_unitinsert.disabled = false;
- btn_unitdelete.disabled = false;
- grd_antptn.disabled = false;
- btn_save.disabled = false;
-
- btn_insdeptgoal.disabled = false;
-
- if (ipt_deptcd.value == "4020500000" || ipt_deptcd.value == "4010600000" ||DUTY_VALU_YN =="Y") { //인사팀,기획팀
- btn_bizplnupload.disabled = false;
- }
- //btn_bizplnupload.disabled = false;
- }
- else if(jobrespcd == "1901") //로긴한 사용자가 UM이라면
- {
- txt_unitbizplan.attribute("editable") = "true";
- btn_save.disabled = false;
- btn_insdeptgoal.disabled = true;
- btn_bizplnupload.disabled = true;
- }
- else {
- btn_insdeptgoal.disabled = true;
- btn_bizplnupload.disabled = true;
- }
- }
- function ExeBizPlnFileUpload()
- {
- var maxsize = upd_uploadfile.attribute("filesize");
-
- files = window.fileDialog("open", "|", false);
-
- if (files.length <= 0 ) return;
- model.setValue(ipt_uploadfile.attribute("ref"),files);
- // if (!checkFileSize(upd_uploadfile)){
- // model.setValue(ipt_uploadfile.attribute("ref"),"");
- // messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- //
- // }
- ipt_uploadfile.refresh();
-
- submit("TXRPV05703");
- }
-
- function ExeBizPlnFileSearch()
- {
- model.resetInstanceNode("/root/main/list/fileinfo");
- submit("TRRPV05703");
-
- if(model.getValue("/root/main/list/fileinfo/fileinfolist/filepath").length > 0)
- {
- //alert(getActionURL("TRRPV05704"));
- var filepath = model.getValue("/root/main/list/fileinfo/fileinfolist/filepath");
- var filenm = model.getValue("/root/main/list/fileinfo/fileinfolist/filenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRPV05704")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
- }
-
- ]]>
- </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; ">
- <datagrid id="grd_fileinfo" nodeset="/root/main/list/scrfileinfo/fileinfolist" visibility="hidden" caption="valuyy^instcd^deptcd^emplno^goalflag" colsep="^" colwidth="195, 836, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:350px; top:475px; width:310px; height:155px; ">
- <col ref="valuyy"/>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="emplno"/>
- <col ref="goalflag"/>
- </datagrid>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
- <input id="ipt_valuyy" ref="/root/send/bizplan/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();
- ]]>
- </script>
- </input>
- <caption id="cap_valuyy" class="search_name" style="left:15px; top:19px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
- <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", "ipt_deptcd") ) {
- return false;
- }
-
- model.setValue("/root/init/unitbizplan", "");
- model.resetInstanceNode("/root/main/bizplan/bizplanlist");
- model.resetInstanceNode("/root/main/bizplan/unitbizplanlist");
- misfMsterDetailRetrieve();
-
- // var jobrespcd = model.getValue("/root/main/valuempl/valuempllist/jobrespcd");
-
- // var emplnode = instance1.selectNodes("/root/main/valuempl/valuempllist/*");
- // var valunode = instance1.selectNodes("/root/init/concrcd/concr/*");
-
- if(grd_bizplan.rows - grd_bizplan.fixedRows== 0 && (jobrespcd == "1070" || jobrespcd == "2430" || jobrespcd == "2010" || jobrespcd == "1086"|| jobrespcd == "4040" ) ) {
- btn_insert.dispatch("DOMActivate");
- }
- // else if (emplnode.length <= 0 && valunode > 0 ) { //평가대상자는 아니면서 평가자 인경우
- // btn_insert.dispatch("DOMActivate");
- // }
-
-
-
-
- model.copyNode("/root/main/bizplan/bizplanlist","/root/main/list/bizplan/bizplanlist");
- grd_bizplan.row = grd_bizplan.fixedRows;
-
-
-
- var unitplan = "";
-
- if(grd_unitbizplan.rows - grd_unitbizplan.fixedRows== 0 && jobrespcd == "1901") {
- btn_insert2.dispatch("DOMActivate");
- }
- else {
-
- if (jobrespcd == "1070" || jobrespcd == "2430" ||jobrespcd == "2010" ||jobrespcd == "1086" ||jobrespcd == "4040") {
- txt_unitbizplan.value = "";
- }
- else {
- for (var i = grd_unitbizplan.fixedRows; i < grd_unitbizplan.rows; i++) {
- unitplan = unitplan + grd_unitbizplan.valueMatrix(i, grd_unitbizplan.colRef("unitbizplan")) + "\n";
- }
-
- txt_unitbizplan.value = unitplan;
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <button id="btn_insert" class="btn2_letter3" visibility="hidden" style="left:380px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy","cmb_instcd", "ipt_deptcd") ) {
- return false;
- }
- misfGridInit(grd_bizplan);
- misfGridInit(grd_antptn);
-
- misfGridIUD(grd_bizplan, "A");
-
- // var jobrespcd = model.getValue("/root/main/valuempl/valuempllist/jobrespcd");
- //
- // var emplnode = instance1.selectNodes("/root/main/valuempl/valuempllist/*");
- // var valunode = instance1.selectNodes("/root/init/concrcd/concr/*");
- //
- // if (emplnode.length <= 0 && valunode.length > 0 ) {
- // grd_bizplan.valueMatrix(grd_bizplan.row, grd_bizplan.colRef("inputjobrespcd")) = "1070";
- // }
- // else {
- grd_bizplan.valueMatrix(grd_bizplan.row, grd_bizplan.colRef("inputjobrespcd")) = jobrespcd;
- // }
-
- model.resetInstanceNode("/root/main/bizplan/bizplanlist");
- model.copyNode("/root/main/bizplan/bizplanlist","/root/main/list/bizplan/bizplanlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter3" visibility="hidden" style="left:434px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_bizplan, "D");
- for(var row = grd_antptn.fixedRows ; row < grd_antptn.rows ; row++)
- {
- grd_antptn.row= row;
- misfGridIUD(grd_antptn, "D");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/bizplan/instcd" class="combo_s_essential" appearance="minimal" style="left:291px; top:18px; width:219px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:230px; top:19px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
- <caption id="cap_delivecnt" class="cell_1" style="left:671px; top:340px; width:49px; height:119px; text-align:center; vertical-align:middle; ">
- <![CDATA[팀원에
- 대한
- 당부
- 사항]]>
- </caption>
- <caption id="caption11" class="cell_1" style="left:5px; top:462px; width:130px; height:201px; text-align:center; vertical-align:middle; ">
- <![CDATA[당해년도
- Unit별
- 업무추진
- 기대사항]]>
- </caption>
- <caption id="caption3" class="cell_1" style="left:5px; top:75px; width:130px; height:140px; text-align:center; vertical-align:middle; ">
- <![CDATA[전년도
- 팀 업무추진
- 사항]]>
- </caption>
- <caption id="cap_mainresult" class="cell_1" style="left:137px; top:75px; width:531px; height:20px; text-align:center; vertical-align:middle; ">주요성과</caption>
- <caption id="cap_unprepcnts" class="cell_1" style="left:670px; top:75px; width:522px; height:20px; text-align:center; vertical-align:middle; ">미진사항</caption>
- <textarea id="txt_mainrslt" ref="/root/main/bizplan/bizplanlist/mainrslt" editable="true" maxbyte="2000" style="left:137px; top:96px; width:531px; height:119px; "/>
- <caption id="cap_teamjob" class="cell_1" style="left:5px; top:218px; width:130px; height:119px; text-align:center; vertical-align:middle; ">
- <![CDATA[당해년도
- 팀 업무 방침
- (팀장 의지)]]>
- </caption>
- <textarea id="txt_unprepcnts" ref="/root/main/bizplan/bizplanlist/unprepcnts" maxbyte="2000" style="left:670px; top:96px; width:522px; height:119px; "/>
- <textarea id="txt_teamjob" ref="/root/main/bizplan/bizplanlist/teamjob" maxbyte="3000" style="left:137px; top:218px; width:1054px; height:119px; "/>
- <caption id="cap_manabltupbrngplan" class="cell_1" style="left:5px; top:340px; width:130px; height:119px; text-align:center; vertical-align:middle; ">
- <![CDATA[인재육성
- (부하육성)에
- 대한
- 팀장방침
- (의지)]]>
- </caption>
- <textarea id="txt_manabltupbrngplan" ref="/root/main/bizplan/bizplanlist/manabltupbrngplan" maxbyte="2000" style="left:137px; top:340px; width:531px; height:119px; "/>
- <textarea id="txt_delivecnts" ref="/root/main/bizplan/bizplanlist/delivecnts" maxbyte="2000" style="left:722px; top:340px; width:470px; height:119px; "/>
- <datagrid id="grd_antptn" nodeset="/root/main/list/bizplan/antptnlist" caption="Unit코드^기대사항" colsep="^" colwidth="195, 836, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:137px; top:483px; width:1054px; height:180px; ">
- <col ref="unitnm" type="inputbutton"/>
- <col ref="antptncnts" type="input" maxbyte="900"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="orgunitcd" visibility="hidden"/>
- <col ref="unitbizplan" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRPV98100_/SMRPV98100_value");
- model.makeNode("/root/copynode");
- rpvfOpenPopUpList("29",grd_antptn,"","unitcd,unitnm","cmb_instcd,ipt_deptcd","");
- var cur_row = grd_antptn.row;
- var status = grd_antptn.valueMatrix(cur_row, grd_antptn.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRPV98100_/SMRPV98100_value");
- //alert(CSV);
- setCSVToNode("/root/copynode", CSV, "unitlist");
- var node = "/root/copynode";
- var nodename = "unitlist";
- var codynode = instance1.selectNodes(node + "/*");
- var addRow = grd_antptn.rows - grd_antptn.fixedRows;
- var chkdup = false;
-
- if(model.getValue(grd_antptn.nodeset + "[" + addRow + "]/unitcd").length > 0) addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
-
- chkdup = false;
- for(var row = grd_antptn.fixedRows; row < grd_antptn.rows ; row++)
- {
- if(grd_antptn.valueMatrix(row , grd_antptn.colRef("unitcd")) == model.getValue(node +"/" + nodename + "[" + j + "]/deptcd")) {
- chkdup = true;
- break;
- }
- }
-
- if(!chkdup){
- if(addRow == 0 || addRow > grd_antptn.rows - grd_antptn.fixedRows)
- {
- misfGridIUD(grd_antptn,"A");
- addRow = grd_antptn.rows - grd_antptn.fixedRows;
- }
-
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/instcd" , cmb_instcd.value);
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/deptcd" , ipt_deptcd.value);
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/unitcd" , model.getValue(node +"/" + nodename + "[" + j + "]/deptcd"));
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/unitnm" , model.getValue(node +"/" + nodename + "[" + j + "]/deptnm"));
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/orgunitcd" , model.getValue(node +"/" + nodename + "[" + j + "]/deptcd"));
- model.setValue(grd_antptn.nodeset + "[" + addRow + "]/valuyy" , ipt_valuyy.value);
- addRow = addRow + 1;
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">부서별 업무 목표 List</caption>
- <caption id="caption2" class="search_name" style="left:535px; top:20px; width:63px; height:17px; ">부서 :</caption>
- <input id="ipt_deptnm" ref="/root/send/bizplan/deptnm" class="input_default" visibility="hidden" style="left:940px; top:20px; width:65px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/bizplan/deptcd" class="input_default" visibility="hidden" style="left:935px; top:20px; width:30px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" visibility="hidden" style="left:1010px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
- rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, instcd, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_unitdelete" class="btn2_letter3" style="left:1138px; top:462px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_antptn, "D");
- ]]>
- </script>
- </button>
- <button id="btn_unitinsert" class="btn2_letter3" style="left:1083px; top:462px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy","cmb_instcd", "ipt_deptcd") ) {
- return false;
- }
- misfGridIUD(grd_antptn, "A");
- model.setValue(grd_antptn.nodeset + "[" + (grd_antptn.row - grd_antptn.fixedRows + 1)+ "]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
- model.setValue(grd_antptn.nodeset + "[" + (grd_antptn.row - grd_antptn.fixedRows + 1)+ "]/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_antptn.nodeset + "[" + (grd_antptn.row - grd_antptn.fixedRows + 1)+ "]/deptcd", model.getValue(ipt_deptcd.attribute("ref")));
- grd_antptn.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_unitbizplan" class="cell_1" style="left:5px; top:666px; width:130px; height:74px; text-align:center; vertical-align:middle; ">Unit별 업무목표</caption>
- <textarea id="txt_unitbizplan" ref="/root/init/unitbizplan" maxbyte="2000" style="left:137px; top:666px; width:1054px; height:74px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_unitbizplan.valueMatrix(grd_unitbizplan.fixedRows, grd_unitbizplan.colRef("unitbizplan")) = txt_unitbizplan.value;
-
- if ( grd_unitbizplan.rowStatus(grd_unitbizplan.fixedRows) == 0) {
- grd_unitbizplan.rowStatus(grd_unitbizplan.fixedRows) = 2;
- }
- ]]>
- </script>
- </textarea>
- <datagrid id="grd_bizplan" nodeset="/root/main/list/bizplan/bizplanlist" visibility="hidden" caption="평가년도^기관코드^부서코드^주요성과^미진사항^팀업무방침^인재육성방침^당부사항^유닛별업무목표^입력자사원번호^입력자직책^상위부서코드" colsep="^" colwidth="100, 100, 100, 61, 68, 67, 76, 70, 100, 100, 68, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:135px; top:580px; width:1035px; height:60px; ">
- <col ref="valuyy"/>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="mainrslt"/>
- <col ref="unprepcnts"/>
- <col ref="teamjob"/>
- <col ref="manabltupbrngplan"/>
- <col ref="delivecnts"/>
- <col ref="unitbizplan"/>
- <col ref="inputemplno"/>
- <col ref="inputjobrespcd"/>
- <col ref="supdeptcd"/>
- </datagrid>
- <button id="btn_bizplnupload" class="btn2_letter9" disabled="true" style="left:756px; top:48px; width:119px; height:19px; ">
- <caption>기관별핵심사업등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/bizplan/goalflag", "01");
- model.refresh();
- ExeBizPlnFileUpload();
- ]]>
- </script>
- </button>
- <upload id="upd_uploadfile" nodeset="/root/send/fileupload/file" ext="zip" filecount="5" filesize="1048576" validate="true" style="left:657px; top:48px; width:25px; height:20px; "/>
- <input id="ipt_uploadfile" ref="/root/send/fileupload/file" visibility="hidden" style="left:555px; top:48px; width:100px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/bizplan/emplno" visibility="hidden" style="left:1080px; top:20px; width:25px; height:19px; "/>
- <button id="btn_bizplnfilesearch" class="btn2_letter6" visibility="hidden" style="left:285px; top:50px; width:86px; height:19px; ">
- <caption>사업계획조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ExeBizPlnFileSearch();
- ]]>
- </script>
- </button>
- <button id="btn_fileinfo" class="btn2_letter9" style="left:878px; top:48px; width:119px; height:19px; ">
- <caption>기관별핵심사업조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/bizplan/goalflag", "01");
- model.refresh();
-
-
- var valuyy = model.getValue("/root/send/bizplan/valuyy");
- var instcd = model.getValue("/root/send/bizplan/instcd");
- var deptcd = model.getValue("/root/send/bizplan/deptcd");
- var emplno = model.getValue("/root/send/bizplan/emplno");
- var goalflag = model.getValue("/root/send/bizplan/goalflag");
- misfGridInit(grd_fileinfo);
- misfGridIUD(grd_fileinfo, "A");
-
-
-
-
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/valuyy", valuyy);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/instcd", instcd);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/deptcd", deptcd);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/emplno", emplno);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/goalflag", goalflag);
-
- rpvfOpenPopUpList("28",grd_fileinfo,"","emplno","valuyy,instcd,deptcd,emplno,goalflag","valuyy,instcd,deptcd,emplno,goalflag","");
- ]]>
- </script>
- </button>
- <button id="btn_deptgoal" class="btn2_letter6" style="left:1104px; top:48px; width:86px; height:19px; ">
- <caption>부서목표조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/bizplan/goalflag", "02");
- model.refresh();
-
- var valuyy = model.getValue("/root/send/bizplan/valuyy");
- var instcd = model.getValue("/root/send/bizplan/instcd");
- var deptcd = model.getValue("/root/send/bizplan/deptcd");
- var emplno = model.getValue("/root/send/bizplan/emplno");
- var goalflag = model.getValue("/root/send/bizplan/goalflag");
-
- misfGridInit(grd_fileinfo);
- misfGridIUD(grd_fileinfo, "A");
-
-
-
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/valuyy", valuyy);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/instcd", instcd);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/deptcd", deptcd);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/emplno", emplno);
- model.setValue(grd_fileinfo.nodeset + "[" + (grd_fileinfo.fixedRows)+ "]/goalflag", goalflag);
-
- rpvfOpenPopUpList("28",grd_fileinfo,"","emplno","valuyy,instcd,deptcd,emplno,goalflag","valuyy,instcd,deptcd,emplno,goalflag","");
- ]]>
- </script>
- </button>
- <button id="btn_insdeptgoal" class="btn2_letter6" style="left:1017px; top:48px; width:86px; height:19px; ">
- <caption>부서목표등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/bizplan/goalflag", "02");
- model.refresh();
- ExeBizPlnFileUpload();
- ]]>
- </script>
- </button>
- <datagrid id="grd_unitbizplan" nodeset="/root/main/list/bizplan/unitbizplanlist" visibility="hidden" caption="평가년도^기관코드^부서코드^주요성과^미진사항^팀업무방침^인재육성방침^당부사항^유닛별업무목표^입력자사원번호^입력자직책^상위부서코드" colsep="^" colwidth="100, 100, 100, 61, 68, 67, 76, 70, 100, 100, 68, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:135px; top:370px; width:1035px; height:60px; ">
- <col ref="valuyy"/>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="mainrslt"/>
- <col ref="unprepcnts"/>
- <col ref="teamjob"/>
- <col ref="manabltupbrngplan"/>
- <col ref="delivecnts"/>
- <col ref="unitbizplan"/>
- <col ref="inputemplno"/>
- <col ref="inputjobrespcd"/>
- <col ref="supdeptcd"/>
- </datagrid>
- <button id="btn_insert2" class="btn2_letter3" visibility="hidden" style="left:490px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy","cmb_instcd", "ipt_deptcd") ) {
- return false;
- }
- misfGridInit(grd_unitbizplan);
-
- misfGridIUD(grd_unitbizplan, "A");
-
- //var jobrespcd = model.getValue("/root/main/valuempl/valuempllist/jobrespcd");
- grd_unitbizplan.valueMatrix(grd_unitbizplan.row, grd_unitbizplan.colRef("inputjobrespcd")) = jobrespcd;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_concrcd" ref="/root/send/bizplan/concrcd" class="combo_s_essential" appearance="minimal" style="left:595px; top:18px; width:250px; 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();
- ]]>
- </script>
- </select1>
- <input id="ipt_jobrespcd" ref="/root/send/bizplan/jobrespcd" visibility="visible" style="left:1040px; top:15px; width:25px; height:19px; "/>
- </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_bizplan")) return;
-
- model.removenode("/root/send/save");
- model.makeNode("/root/send/save/bizplanlist");
- model.makeNode("/root/send/save/antptnlist");
- model.makeNode("/root/send/save/unitbizplanlist");
- misfGridRowStatusChange(grd_bizplan,"/root/main/list/bizplan" ,"/root/main/bizplan");
- grd_bizplan.refresh();
-
- for (var i = grd_antptn.rows - grd_antptn.fixedRows; i >= grd_antptn.fixedRows ; i--) {
- if (grd_antptn.valueMatrix(i, grd_antptn.colRef("unitcd")) == "") {
- grd_antptn.deleteRow(i);
- }
- }
-
- model.setValue("/root/send/save/antptnlist",grd_antptn.getUpdateData());
- model.setValue("/root/send/save/bizplanlist",grd_bizplan.getUpdateData());
- model.setValue("/root/send/save/unitbizplanlist",grd_unitbizplan.getUpdateData());
-
- submit("TXRPV05701");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- model.resetInstanceNode("/root/main/bizplan/bizplanlist");
- submit("TRRPV05701");
- if(grd_bizplan.rows - grd_bizplan.fixedRows== 0)btn_insert.dispatch("DOMActivate");
- model.copyNode("/root/main/bizplan/bizplanlist","/root/main/list/bizplan/bizplanlist");
- grd_bizplan.row = grd_bizplan.fixedRows;
-
- var unitplan = "";
- //var jobrespcd = model.getValue("/root/main/valuempl/valuempllist/jobrespcd");
- if(grd_unitbizplan.rows - grd_unitbizplan.fixedRows== 0 && jobrespcd == "1901") {
- btn_insert2.dispatch("DOMActivate");
- }
- else {
- for (var i = grd_unitbizplan.fixedRows; i < grd_unitbizplan.rows; i++) {
- unitplan = unitplan + grd_unitbizplan.valueMatrix(i, grd_unitbizplan.colRef("unitbizplan")) + "\n";
- }
-
- txt_unitbizplan.value = unitplan;
- }
-
- model.refresh();
- }
- ]]>
- </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>
- </group>
- </xhtml:body>
- </xhtml:html>
|