123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787 |
- <?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>KPI 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <newform>
- <kpicd/>
- <kpinm/>
- <histstatcd/>
- <instcd/>
- <clsdeptnm/>
- <suggdeptcd/>
- <kpidefine/>
- <kpicalcrule/>
- <kpiunitcd/>
- <kpitypcd/>
- <kpirespspec/>
- <direcspec/>
- <maxcriticstatnm/>
- <mincriticstatnm/>
- <srcsyscd/>
- <stndagmtyn/>
- <compuappyn/>
- <rcogpnttm/>
- <endpnttm/>
- <cnfmpnttm/>
- <analypridcd/>
- <supkpicd/>
- <compuplanspec/>
- <usgecd/>
- <extrstatsreptnm/>
- <subjcd/>
- <rem/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <updtrtelno/>
- <rgstnm/>
- </newform>
- <divvar>
- <check/>
- <lastupdtrid/>
- <usernm/>
- <divvarcd/>
- <divvarnm/>
- <divvardefine/>
- <relcdnm/>
- <histstatcd/>
- <stndagmtyn/>
- <itemcnt/>
- <kpicnt/>
- <reportcnt/>
- </divvar>
- <rept>
- <checkyn/>
- <cretseq/>
- <statsreptcd/>
- <statsreptnm/>
- <statsspec/>
- <kpicd/>
- <lastupdtrid/>
- </rept>
- <bench>
- <mark01/>
- <mark02/>
- <mark03/>
- <mark04/>
- </bench>
- </main>
- <send>
- <kpicd/>
- <savedata>
- <newform/>
- </savedata>
- <data2>
- </data2>
- <onflag/>
- <sessuserid/>
- </send>
- <init>
- <usergrpcd/>
- <dutplceinstnm/>
- <usernm/>
- <dutplcenm/>
- <userid/>
- <S0001_list>
- <S0001>
- <cdid/>
- <cdnm/>
- </S0001>
- </S0001_list>
- <S0003_list>
- <S0003>
- <cdid/>
- <cdnm/>
- </S0003>
- </S0003_list>
- <S0004_list>
- <S0004>
- <cdid/>
- <cdnm/>
- </S0004>
- </S0004_list>
- <S0005_list>
- <S0005>
- <cdid/>
- <cdnm/>
- </S0005>
- </S0005_list>
- <S0006_list>
- <S0006>
- <cdid/>
- <cdnm/>
- </S0006>
- </S0006_list>
- <S0007_list>
- <S0007>
- <cdid/>
- <cdnm/>
- </S0007>
- </S0007_list>
- </init>
- <hidden>
- <session/>
- <prevdata/>
- <supkpinm/>
- <fwdata/>
- </hidden>
- <temp/>
- </root>
- </instance>
- <submission id="TRSMK00201" ref="root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="root/main"/>
- <submission id="TXSMK00203" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../sts/stsmngtweb/js/sts.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var userGroup //사용자그룹 전역변수
- fGetUserSessionInfo(); //session 정보 세팅
- fUserBtnAuthCheck(); // 버튼에 대한 권한체크
- //콤보박스에 들어갈 공통코드 가져오기.
- zbcfGetCodeList(new Array("S0001", "S0003", "S0004", "S0005", "S0006", "S0007"), new Array("/root/init/S0001_list", "/root/init/S0003_list", "/root/init/S0004_list", "/root/init/S0005_list", "/root/init/S0006_list", "/root/init/S0007_list"));
- fNodeClearKpi(); //노드와 컨트롤을 초기화한다.
- fSetUserInfo() // 상단의 사용자 정보 세팅
- //신규버튼을 누르고 넘어온 화면(on) 인지, 상세조회로 온 화면(off)인지 구분하여 버튼권한처리
- if (model.getAttribute("iParam_new_on_off") == "on") {
- btn_save.disabled = false;
- btn_update.disabled = true;
- btn_delete.disabled = true;
- model.setvalue("/root/main/newform/compuappyn", "N");
- model.setvalue("/root/main/newform/stndagmtyn", "N");
- model.setvalue("/root/main/newform/histstatcd", "01");
- }else {
- btn_save.disabled = true;
- btn_update.disabled = false;
- model.setvalue("/root/send/kpicd", model.getValue("/root/hidden/prevdata/kpicd"));
- submit("TRSMK00201");
- }
-
- // alert(instance1.selectSingleNode("/root/main/newform/instcd") == null);
- // alert(instance1.selectSingleNode("/root/hidden/session/dutplceinstcd") == null);
- // alert(instance1.selectSingleNode("/root/main/newform/suggdeptcd") == null);
- // alert(instance1.selectSingleNode("/root/hidden/session/dutplcecd") == null);
-
- model.setValue("/root/main/newform/instcd", model.getValue("/root/hidden/session/dutplceinstcd")); //기관코드
- model.setValue("/root/main/newform/suggdeptcd", model.getValue("/root/hidden/session/dutplcecd")); //부서코드
- model.setValue("/root/init/usergrpcd", model.getValue("/root/hidden/prevdata/usergrpcd")); //사용자그룹
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var GridTab = "grd_divvar";
-
- //tab 세분변수 코드 중복체크
- function fDVCDDupCheck(){
- var rowcnt = grd_divvar.rows;
- var dv_back;
- var dv_divvarcd;
-
- for (i = 1; i <= rowcnt; i++){
- dv_back = model.getValue("/root/main/divvar["+ i +"]/divvarcd");
- for (j = 1; j <= rowcnt; j++){
- if (i != j){
- dv_divvarcd = model.getValue("/root/main/divvar["+ j +"]/divvarcd");
-
- if (dv_back == dv_divvarcd){
- alert("세분변수 코드가 중복됩니다! ");
- return false;
- }
- }
- }
-
- }
- }
-
- //빈값이 있는지 체크
- function fNullCheck() {
- if(model.getvalue("/root/main/newform/updtrtelno") =="") {
- alert("작성자 연락처를 입력하세요.");
- return false;
- }
-
- if(model.getvalue("/root/main/newform/kpinm") =="") {
- alert("KPI 명을 입력하세요.");
- return false;
- }
-
- if(model.getvalue("/root/main/newform/kpidefine") =="") {
- alert("KPI 정의를 입력하세요.");
- return false;
- }
-
- if(model.getvalue("/root/main/newform/subjcd") =="") {
- alert("subject 영역을 선택해 주세요.");
- return false;
- }
- }
-
- // 변경 가능한 상황인지 체크. (슈퍼관리자 2명은 제외 / 등록한 사람만 변경이 가능하다.)
- function fUpdateCheck() {
-
- if(userGroup != "S"){
- var rgst_userid = model.getValue("/root/main/newform/lastupdtrid");
- var sess_userid = model.getValue("/root/init/userid");
-
- if (rgst_userid != sess_userid){
- alert("등록한 사용자만 변경할 수 있습니다. ");
- return false;
- }
- } //관리자체크
- }
-
- // 삭제가 가능한 상황인지 체크
- function fDeleteCheck() {
- if( model.getValue("/root/main/newform/kpicd") == "" ||
- model.getValue("/root/main/newform/kpinm") == ""){
- alert("삭제할 내용이 없습니다.");
- return false;
- }
- }
- function fSetKeyValue() {
- for(var a = 1; a < grd_divvar.rows; a++){
- model.makeValue("/root/main/divvar[" + a + "]/kpicd", model.getvalue("/root/main/newform/kpicd"));
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1250;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption20" class="tit_2" style="left:5px; top:9px; width:100px; height:14px; ">사용자정보</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:132px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI 정의</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:204px; width:130px; height:23px; text-align:center; vertical-align:middle; ">벤치마크</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:108px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI 명칭</caption>
- <input id="input7" ref="/root/main/newform/kpinm" class="input_essential" maxlength="25" style="left:132px; top:110px; width:465px; height:19px; "/>
- <input id="input13" ref="/root/main/newform/kpidefine" class="input_essential" maxlength="130" style="left:132px; top:134px; width:1060px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:228px; width:130px; height:23px; text-align:center; vertical-align:middle; ">임계치 상한</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:252px; width:130px; height:23px; text-align:center; vertical-align:middle; ">소스 시스템</caption>
- <input id="input1" ref="/root/main/newform/maxcriticstatnm" class="input_default" style="left:132px; top:230px; width:465px; height:19px; "/>
- <output id="output3" ref="/root/main/newform/kpicd" class="output_fix" appearance="output" style="left:732px; top:110px; width:165px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:600px; top:228px; width:130px; height:23px; text-align:center; vertical-align:middle; ">임계치 하한</caption>
- <caption id="caption8" class="cell_1" style="left:300px; top:180px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI 유형</caption>
- <caption id="caption9" class="cell_1" style="left:900px; top:108px; width:130px; height:23px; text-align:center; vertical-align:middle; ">Subject 영역</caption>
- <select1 id="combo12" ref="/root/main/newform/kpitypcd" class="combo_default" appearance="minimal" style="left:432px; top:182px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0004_list/S0004">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input4" ref="/root/main/newform/kpirespspec" class="input_default" style="left:732px; top:207px; width:460px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:156px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI 산식</caption>
- <input id="input5" ref="/root/main/newform/kpicalcrule" class="input_default" style="left:132px; top:158px; width:1060px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:180px; width:130px; height:23px; text-align:center; vertical-align:middle; ">단 위</caption>
- <caption id="caption15" class="cell_1" style="left:600px; top:180px; width:130px; height:23px; text-align:center; vertical-align:middle; ">방 향 성</caption>
- <output id="opt_supkpinm" ref="/root/hidden/supkpinm" class="output_fix" appearance="output" style="left:732px; top:254px; width:460px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:600px; top:204px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI 책임자</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:276px; width:130px; height:23px; text-align:center; vertical-align:middle; ">인식시점</caption>
- <input id="input6" ref="/root/main/newform/rcogpnttm" class="input_default" style="left:132px; top:278px; width:465px; height:19px; "/>
- <input id="input11" ref="/root/main/newform/endpnttm" class="input_default" style="left:732px; top:278px; width:165px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:600px; top:276px; width:130px; height:23px; text-align:center; vertical-align:middle; ">마감시점</caption>
- <caption id="caption19" class="cell_1" style="left:900px; top:276px; width:130px; height:23px; text-align:center; vertical-align:middle; ">확정시점</caption>
- <caption id="caption21" class="cell_1" style="left:600px; top:252px; width:130px; height:23px; text-align:center; vertical-align:middle; ">상위 KPI 명</caption>
- <caption id="caption22" class="cell_1" style="left:600px; top:300px; width:130px; height:23px; text-align:center; vertical-align:middle; ">분석주기</caption>
- <input id="input12" ref="/root/main/newform/cnfmpnttm" class="input_default" style="left:1032px; top:278px; width:160px; height:19px; "/>
- <input id="input15" ref="/root/main/newform/mincriticstatnm" class="input_default" style="left:732px; top:230px; width:460px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:600px; top:324px; width:130px; height:23px; text-align:center; vertical-align:middle; ">용 도</caption>
- <caption id="caption24" class="cell_1" style="left:0px; top:300px; width:130px; height:23px; text-align:center; vertical-align:middle; ">전산화 방안</caption>
- <caption id="caption25" class="cell_1" style="left:900px; top:324px; width:130px; height:23px; text-align:center; vertical-align:middle; ">전산 적용여부</caption>
- <caption id="caption26" class="cell_1" style="left:0px; top:324px; width:130px; height:23px; text-align:center; vertical-align:middle; ">추출통계 장표</caption>
- <input id="input19" ref="/root/main/newform/compuplanspec" class="input_default" style="left:132px; top:302px; width:465px; height:19px; "/>
- <input id="input20" ref="/root/main/newform/extrstatsreptnm" class="input_default" style="left:132px; top:326px; width:465px; height:19px; "/>
- <caption id="caption27" class="cell_1" style="left:900px; top:300px; width:130px; height:23px; text-align:center; vertical-align:middle; ">표준화 합의여부</caption>
- <select1 id="cbo_analypridcd" ref="/root/main/newform/analypridcd" class="combo_default" appearance="minimal" style="left:732px; top:302px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0006_list/S0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cbo_usgecd" ref="/root/main/newform/usgecd" class="combo_default" appearance="minimal" style="left:732px; top:326px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0007_list/S0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cbo_stndagmtyn" ref="/root/main/newform/stndagmtyn" class="combo_default" appearance="minimal" style="left:1032px; top:302px; width:160px; height:19px; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption28" class="cell_1" style="left:0px; top:348px; width:130px; height:23px; text-align:center; vertical-align:middle; ">비 고</caption>
- <input id="ipt_rem" ref="/root/main/newform/rem" class="input_default" style="left:132px; top:350px; width:1060px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:371px; x2:1195px; y2:371px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:88px; width:100px; height:13px; ">개 요</caption>
- <caption id="caption29" class="cell_1" style="left:0px; top:30px; width:130px; height:23px; text-align:center; vertical-align:middle; ">기 관 명</caption>
- <caption id="caption30" class="cell_1" style="left:900px; top:30px; width:130px; height:23px; text-align:center; vertical-align:middle; ">등록자</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:103px; x2:1195px; y2:103px; "/>
- <caption id="caption31" class="cell_1" style="left:300px; top:30px; width:130px; height:23px; text-align:center; vertical-align:middle; ">부 서 명</caption>
- <caption id="caption32" class="cell_1" style="left:0px; top:54px; width:130px; height:23px; text-align:center; vertical-align:middle; ">현재 사용자</caption>
- <caption id="caption33" class="cell_1" style="left:900px; top:54px; width:130px; height:23px; text-align:center; vertical-align:middle; ">등록자 연락처</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:1195px; y2:77px; "/>
- <button id="button8" class="icon_search" style="left:580px; top:255px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPSMK00400");
- // model.getAttribute("iParam_kpicd");
- opt_supkpicd.value = model.getAttribute("iParam_kpicd");
- opt_supkpinm.value = model.getAttribute("iParam_kpinm");
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <select1 id="cbo_direct" ref="/root/main/newform/direcspec" class="combo_default" appearance="minimal" style="left:732px; top:182px; width:165px; height:19px; ">
- <choices>
- <item>
- <label>+</label>
- <value>+</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>0</label>
- <value>0</value>
- </item>
- </choices>
- </select1>
- <output id="output6" ref="/root/main/newform/compuappyn" class="output_fix" appearance="output" style="left:1032px; top:326px; width:70px; height:19px; "/>
- <select1 id="cbo_kpiunitcd" ref="/root/main/newform/kpiunitcd" class="combo_default" appearance="minimal" style="left:132px; top:182px; width:132px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0003_list/S0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_tab_rept" class="btn_sw" group="tab" style="left:90px; top:376px; width:84px; height:22px; ">
- <caption>Report</caption>
- <toggle case="Report" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- GridTab = "grd_report";
- btn_add.visible = false;
- btn_delete_row.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_tab_dvar" class="btn_sw" group="tab" selected="true" style="left:5px; top:376px; width:84px; height:22px; ">
- <caption>세분변수</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- GridTab = "grd_divvar";
- btn_add.visible = true;
- btn_delete_row.visible = true;
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:5px; top:398px; width:1185px; height:337px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_divvar" nodeset="/root/main/divvar" caption="^la^작성자^code^세분변수명^정 의^관련코드명^상태^표준화^항목 내용^KPI^Report" colwidth="29, 30, 60, 60, 130, 370, 90, 40, 60, 450, 55, 60" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:5px; top:29px; width:1175px; height:300px; ">
- <col ref="check" type="checkbox"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="usernm" visibility="hidden" style="text-align:center; "/>
- <col ref="divvarcd" visibility="hidden"/>
- <col ref="divvarnm"/>
- <col ref="divvardefine"/>
- <col ref="relcdnm"/>
- <col ref="histstatcd" visibility="hidden"/>
- <col ref="stndagmtyn" visibility="visible" style="text-align:center; "/>
- <col ref="itemcnt" visibility="visible"/>
- <col ref="kpicnt" visibility="hidden"/>
- <col ref="reportcnt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_divvar.isCell(event.target) && grd_divvar.row >= grd_divvar.fixedRows ){
- var cur_row = grd_divvar.row;
- model.makeValue("/root/hidden/fwdata/divvarcd", model.getvalue("/root/main/divvar["+cur_row+"]/divvarcd") );
- model.makeValue("/root/hidden/fwdata/divvarnm", model.getvalue("/root/main/divvar["+cur_row+"]/divvarnm") );
- model.makeValue("/root/hidden/fwdata/divvardefine", model.getvalue("/root/main/divvar["+cur_row+"]/divvardefine") );
- window.load ("SPSMV00300_세분변수항목조회.xrw","new", "", "", "/root/hidden/fwdata", "/root/hidden/prevdata");
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="Report">
- <datagrid id="grd_report" nodeset="/root/main/rept" caption="^생성순번^Report Code^통계 Report 명^통계 Report 설명 내역" colwidth="30, 60, 90, 210, 780" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:5px; top:29px; width:1175px; height:300px; ">
- <col ref="checkyn" type="checkbox"/>
- <col ref="cretseq" style="text-align:right; "/>
- <col ref="statsreptcd"/>
- <col ref="statsreptnm"/>
- <col ref="statsspec"/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_delete_row" class="btn2_letter3" style="left:1132px; top:406px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sessionuserid = model.getValue("/root/hidden/session/userid");
- var cur_row;
-
- // 관리자를 제외하고는 등록한 사람만이 삭제할 수 있다.
- if (userGroup == "S"){
- if(GridTab == "grd_divvar"){
- cur_row = grd_divvar.row;
- var dv_lastupdtrid = model.getValue("/root/main/divvar["+cur_row+"]/lastupdtrid");
- if (sessionuserid != dv_lastupdtrid){
- alert("최종수정자와 로그인한 사용자가 다르므로 삭제할 수 없습니다!");
- return;
- }
- grd_divvar.deleteitem(cur_row);
- }
- } //관리자 체크로직 끝
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter4" style="left:1066px; top:406px; width:64px; height:19px; ">
- <caption>항목추가</caption>
- <script type="javascript" ev:event="xforms-activate">
- <![CDATA[
- if(GridTab == "grd_divvar"){
- modal("SPSMV00500");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/main/bench/mark01" overflow="visible" appearance="full" style="left:132px; top:208px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>목표</label>
- <value>01</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/main/bench/mark02" overflow="visible" appearance="full" style="left:182px; top:208px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전년</label>
- <value>02</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/main/bench/mark03" overflow="visible" appearance="full" style="left:232px; top:208px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전기</label>
- <value>03</value>
- </item>
- </choices>
- </select>
- <select id="checkbox4" ref="/root/main/bench/mark04" overflow="visible" appearance="full" style="left:282px; top:208px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전월</label>
- <value>04</value>
- </item>
- </choices>
- </select>
- <select1 id="combo1" ref="/root/main/newform/srcsyscd" class="combo_default" appearance="minimal" style="left:132px; top:254px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0005_list/S0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_supkpicd" ref="/root/main/newform/supkpicd" class="output_fix" appearance="output" style="left:432px; top:254px; width:140px; height:19px; "/>
- <output id="opt_deptnm" ref="/root/init/dutplcenm" class="output_default" style="left:432px; top:32px; width:115px; height:19px; text-align:left; "/>
- <output id="opt_instnm" ref="/root/init/dutplceinstnm" class="output_default" style="left:132px; top:32px; width:165px; height:19px; text-align:left; "/>
- <input id="ipt_fstrgstdt" ref="/root/main/newform/updtrtelno" class="input_essential" style="left:1032px; top:56px; width:160px; height:19px; text-align:left; "/>
- <output id="opt_userid" ref="/root/init/userid" visibility="hidden" style="left:133px; top:81px; width:90px; height:19px; text-align:left; "/>
- <output id="opt_clsdeptnm" ref="/root/main/newform/clsdeptnm" class="output_fix" appearance="output" style="left:732px; top:32px; width:165px; height:19px; text-align:left; "/>
- <output id="opt_deptcd" ref="/root/main/newform/suggdeptcd" style="left:553px; top:32px; width:45px; height:19px; "/>
- <output id="opt_instcd" ref="/root/main/newform/instcd" visibility="hidden" style="left:133px; top:4px; width:90px; height:19px; "/>
- <output id="opt_usernm" ref="/root/init/usernm" class="output_default" style="left:133px; top:55px; width:165px; height:19px; text-align:left; "/>
- <select1 id="cmb_subjcd" ref="/root/main/newform/subjcd" class="combo_essential" appearance="minimal" style="left:1032px; top:110px; width:160px; height:19px; ">
- <choices>
- <item>
- <label>환자수-외래</label>
- <value>S00008</value>
- </item>
- <item>
- <label>환자수-입원</label>
- <value>S00009</value>
- </item>
- <item>
- <label>환자수-응급</label>
- <value>S00010</value>
- </item>
- <item>
- <label>환자수-공통</label>
- <value>S00011</value>
- </item>
- <item>
- <label>건수-실적</label>
- <value>S00012</value>
- </item>
- <item>
- <label>건수-지표</label>
- <value>S00013</value>
- </item>
- <item>
- <label>건수-오류</label>
- <value>S00014</value>
- </item>
- <item>
- <label>건수-진료</label>
- <value>S00015</value>
- </item>
- <item>
- <label>건수-간호</label>
- <value>S00016</value>
- </item>
- <item>
- <label>건수-민원</label>
- <value>S00017</value>
- </item>
- <item>
- <label>수익-수익</label>
- <value>S00018</value>
- </item>
- <item>
- <label>수익-비용</label>
- <value>S00019</value>
- </item>
- <item>
- <label>수익-미수</label>
- <value>S00020</value>
- </item>
- <item>
- <label>시간-대기</label>
- <value>S00021</value>
- </item>
- <item>
- <label>시간-소요</label>
- <value>S00022</value>
- </item>
- <item>
- <label>시간-체류</label>
- <value>S00023</value>
- </item>
- <item>
- <label>공간-공간</label>
- <value>S00024</value>
- </item>
- <item>
- <label>교직원-교직원</label>
- <value>S00025</value>
- </item>
- <item>
- <label>청구-청구</label>
- <value>S00026</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:600px; top:108px; width:130px; height:23px; text-align:center; vertical-align:middle; ">KPI Code</caption>
- <output id="output1" ref="/root/main/newform/lastupdtdt" class="output_default" format="yyyy-mm-dd hh:nn" style="left:732px; top:55px; width:165px; height:19px; text-align:left; "/>
- <caption id="caption35" class="cell_1" style="left:300px; top:252px; width:130px; height:23px; text-align:center; vertical-align:middle; ">상위 KPI코드</caption>
- <caption id="caption10" class="cell_1" style="left:900px; top:180px; width:130px; height:23px; text-align:center; vertical-align:middle; ">현재 상태</caption>
- <select1 id="cbo_statecd" ref="/root/main/newform/histstatcd" disabled="true" appearance="minimal" style="left:1032px; top:182px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0001_list/S0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption37" class="tit_2" style="left:10px; top:410px; width:100px; height:13px; ">관련 List</caption>
- <caption id="caption38" class="cell_1" style="left:600px; top:30px; width:130px; height:23px; text-align:center; vertical-align:middle; ">분 과</caption>
- <caption id="caption39" class="cell_1" style="left:600px; top:54px; width:130px; height:23px; text-align:center; vertical-align:middle; ">최종 등록시간</caption>
- <output id="output2" ref="/root/main/newform/rgstnm" class="output_default" style="left:1032px; top:32px; width:160px; height:19px; text-align:left; "/>
- <output id="output4" ref="/root/init/userid" visibility="hidden" style="left:1033px; top:4px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption36" class="tit_2" style="left:610px; top:9px; width:100px; height:13px; ">등록자정보</caption>
- <caption id="caption40" class="cell_1" style="left:300px; top:54px; width:130px; height:23px; text-align:center; vertical-align:middle; ">사용자 그룹</caption>
- <select1 id="cbo_group" ref="/root/init/usergrpcd" disabled="true" appearance="minimal" style="left:432px; top:56px; width:162px; height:19px; ">
- <choices>
- <item>
- <label>관리자</label>
- <value>S</value>
- </item>
- <item>
- <label>ITC담당자</label>
- <value>T</value>
- </item>
- <item>
- <label>개발자</label>
- <value>D</value>
- </item>
- <item>
- <label>일반사용자</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">KPI 정의</caption>
- <line id="line5" class="line_3" style="x1:230px; y1:774px; x2:1194px; y2:774px; "/>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter4" style="left:1032px; top:3px; width:80px; height:22px; ">
- <caption>신규저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fDVCDDupCheck() == false) return;
- if (fNullCheck() == false) return; //빈값이 있는지 체크
- var rtn = window.alert("KPI를 저장하시겠습니까?", "선택", "4");
- if (rtn != 6) {
- return;
- }
-
- model.setValue("/root/send/onflag","N"); //신규저장
- model.setValue("/root/send/sessuserid",model.getValue("/root/hidden/session/userid"));
- model.copyNode("/root/send/savedata/newform", "/root/main/newform");
- model.setValue("/root/send/data2", grd_divvar.getUpdateData());
-
- var rslt = submit("TXSMK00203");
-
- if (rslt) {
- model.alert("성공적으로 저장되었습니다.");
- navigate("SMSMK00100");
- }else{
- model.alert("KPI 신규저장에 실패하였습니다.");
- }
-
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_update" class="btn4_letter4" style="left:1113px; top:3px; width:80px; height:22px; ">
- <caption>변경요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = window.alert("내역을 변경 또는 변경요청 하시겠습니까?", "선택", "4");
- if (rtn != 6) {
- return;
- }
- if (fDVCDDupCheck() == false) return; //TAB의 세분변수 등록시 중복체크
- if (fNullCheck() == false) return; //필수입력사항 중에 빈값이 있는지 체크
- if (fUpdateCheck() == false) return; //변경할 권한이 있는지 체크 (등록한 사람만 가능)
-
- model.setValue("/root/send/onflag","O"); //변경저장 플래그
- model.setValue("/root/send/sessuserid",model.getValue("/root/hidden/session/userid")); //로그인한 사번
- model.copyNode("/root/send/savedata/newform", "/root/main/newform");
- model.setValue("/root/send/data2", grd_divvar.getUpdateData());
- var rslt;
- // 관리자이냐 아니냐에 따로 저장방식이 다름.
- if(userGroup == "S"){
- rslt = submit("TXSMK00203"); //관리자일때는 해당값을 바로 수정한다.
- if (rslt) {
- model.alert("수정되었습니다. (관리자)");
- navigate("SMSMK00100");
- }else{
- model.alert("수정에 실패");
- }
- } else { // 관리자가 아닐때...
-
- if(model.getvalue("/root/main/newform/histstatcd") == "01") {
- rslt = submit("TXSMK00203"); //신규요청 상태일때는 바로 데이타를 저장할 수 있다.
- if (rslt) {
- model.alert("KPI가 수정되었습니다.");
- navigate("SMSMK00100");
- }else{
- model.alert("KPI 수정 실패");
- }
-
- } else { //신규요청 상태가 아닐 경우는.... 변경요청 팝업을 띄운다.
- model.property("iParam_itemflag") = "K";
- model.property("iParam_code") = model.getvalue("/root/main/newform/kpicd");
- model.property("iParam_desc") = model.getvalue("/root/main/newform/kpidefine");
- model.property("iParam_name") = model.getvalue("/root/main/newform/kpinm");
- model.property("iParam_instcd") = model.getvalue("/root/main/newform/instcd");
- model.property("iParam_deptcd") = model.getvalue("/root/main/newform/suggdeptcd");
- model.property("iParam_userid") = model.getvalue("/root/init/userid");
- model.property("iParam_usernm") = model.getvalue("/root/init/usernm");
-
- modal("SPSOC00401"); //아닐때는 변경요청 팝업을 띄우다.
-
- model.refresh();
- }
- } //관리자여부 체크 끝
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" style="left:975px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fDeleteCheck() == false) return; //삭제할수 있는 상황 체크
-
- // 일괄삭제기능.... 관리자만이 버튼이 보이고, 처리할수 있다. (2007.03.27)
- var rtn = window.alert("해당 KPI를 삭제하시겠습니까?", "선택", "4");
- if (rtn != 6) {
- return;
- }
- model.setValue("/root/send/onflag","D"); //삭제플래그
- model.copyNode("/root/send/savedata/newform", "/root/main/newform");
- model.setValue("/root/send/data2", grd_divvar.getUpdateData());
-
- var rslt = submit("TXSMK00203");
-
- if (rslt) {
- model.alert("성공적으로 삭제되었습니다.");
- navigate("SMSMK00100");
- }else{
- model.alert("KPI 삭제에 실패하였습니다.");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_prev" class="btn3_letter2" style="left:0px; top:16px; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- navigate("SMSMK00100");
-
- ]]>
- </script>
- </button>
- <caption id="caption34" style="left:973px; top:0px; width:217px; height:13px; vertical-align:middle; ">[ * 시스템 문의 : 박종택 (02-590-7891)]</caption>
- </xhtml:body>
- </xhtml:html>
|