123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704 |
- <?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>
- <newform>
- <divvarcd/>
- <divvarnm/>
- <histstatcd/>
- <instcd/>
- <clsdeptnm/>
- <suggdeptcd/>
- <divvardefine/>
- <relcdnm/>
- <supdivvarcd/>
- <stndagmtyn/>
- <compuappyn/>
- <subjcd/>
- <rem/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <updtrtelno/>
- <rgstnm/>
- </newform>
- <item>
- <item_check/>
- <itemseq/>
- <itemnm/>
- <itemlblnm/>
- <itemdefine/>
- <recgendbasespec/>
- <divvarcd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- <kpi>
- <kpi_check/>
- <kpi_num/>
- <kpicd/>
- <kpinm/>
- <kpidefine/>
- <kpiunitcd/>
- <kpitypcd/>
- <divvarcd/>
- <lastupdtrid/>
- <lastupdtridnm/>
- </kpi>
- <report>
- <cretseq/>
- <statsreptcd/>
- <statsreptnm/>
- <statsspec/>
- <divvarcd/>
- <lastupdtrid/>
- </report>
- </main>
- <send>
- <divvarcd/>
- <savedata>
- <newform/>
- </savedata>
- <data2>
- </data2>
- <data3/>
- <onflag/>
- <sessuserid/>
- </send>
- <hidden>
- <session/>
- <tabkpidata/>
- <prevdata/>
- </hidden>
- <temp/>
- <init>
- <instcd/>
- <dutplcecd/>
- <usergrpcd/>
- <dutplceinstnm/>
- <usernm/>
- <dutplcenm/>
- <userid/>
- <supdivvarnm/>
- <S0001_list>
- <S0001>
- <cdid/>
- <cdnm/>
- </S0001>
- </S0001_list>
- </init>
- </root>
- </instance>
- <submission id="TRSMV00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main"/>
- <submission id="TXSMV00203" 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"), new Array("/root/init/S0001_list"));
- fNodeClearDivVar(); //노드와 컨트롤을 초기화한다.
- 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/divvarcd", model.getValue("/root/hidden/prevdata/divvarcd"));
- submit("TRSMV00201");
- }
- 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_item";
-
- //tab 세분변수 항목 입력/수정시 순번 체크함수
- function fItemNumDupCheck(){
- var rowcnt = grd_item.rows;
-
- var item_back;
- var item_num;
-
- for (i = 1; i <= rowcnt; i++){
- item_back = model.getValue("/root/main/item["+ i +"]/item_num");
- for (j = 1; j <= rowcnt; j++){
- if (i != j){
- item_num = model.getValue("/root/main/item["+ j +"]/item_num");
-
- // 비교하는 데이타가 null이 아닐때만 체크한다.
- if( item_back != "" && item_num != ""){
- if (item_back == item_num) {
- alert("순번 " + item_back.toString() + " 가 중복됩니다! 순번작업을 다시해 주십시요!");
- return false;
- }
- }
- }
- }
-
- }
- }
-
- //tab KPI 코드 중복체크
- function fKPICDDupCheck(){
- var rowcnt = grd_kpi.rows;
-
- var kpi_back;
- var kpi_kpicd;
-
- for (i = 1; i <= rowcnt; i++){
- kpi_back = model.getValue("/root/main/kpi["+ i +"]/kpicd");
-
- for (j = 1; j <= rowcnt; j++){
- if (i != j){
- kpi_kpicd = model.getValue("/root/main/kpi["+ j +"]/kpicd");
-
- if (kpi_back == kpi_kpicd){
- alert("KPI 코드가 중복됩니다! 한개만 선택해주십시요!");
- return false;
- }
- }
- }
-
- }
- }
-
- //빈값이 있는지 체크
- function fNullCheck() {
- if(model.getvalue("/root/main/newform/updtrtelno") =="") {
- alert("작성자 연락처를 입력하세요.");
- return false;
- }
-
- if(model.getvalue("/root/main/newform/divvarnm") =="") {
- alert("세분변수 명을 입력하세요.");
- return false;
- }
-
- if(model.getvalue("/root/main/newform/divvardefine") =="") {
- alert("세분변수 정의를 입력하세요.");
- 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/hidden/session/userid");
-
- if (rgst_userid != sess_userid){
- alert("등록한 사용자만 변경할 수 있습니다. ");
- return false;
- }
- } //관리자체크
- }
-
- // 삭제가 가능한 상황인지 체크
- function fDeleteCheck() {
- if( model.getValue("/root/main/newform/divvarcd") == "" ||
- model.getValue("/root/main/newform/divvarnm") == ""){
- alert("삭제할 내용이 없습니다.");
- return false;
- }
- }
- function fSetKeyValue() {
- for(var a = 1; a < grd_kpi.rows; a++){
- model.makeValue("/root/main/kpi[" + a + "]/divvarcd", model.getvalue("/root/main/newform/divvarcd"));
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1247;2,330;1,600;1,718;2,328;" 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; ">
- <input id="ipt_relcdnm" ref="/root/main/newform/relcdnm" class="input_default" style="left:103px; top:158px; width:466px; height:19px; "/>
- <output id="opt_supdivvarnm" ref="/root/init/supdivvarnm" class="output_fix" appearance="output" style="left:103px; top:182px; width:466px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:180px; width:100px; height:23px; ">상위세분변수명</caption>
- <input id="ipt_divvarnm" ref="/root/main/newform/divvarnm" class="input_essential" maxlength="25" style="left:103px; top:110px; width:466px; height:19px; "/>
- <output id="opt_divvarcd" ref="/root/main/newform/divvarcd" class="output_essential" appearance="output" style="left:723px; top:110px; width:175px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:600px; top:156px; width:120px; height:23px; ">표준화 합의여부</caption>
- <caption id="caption8" class="cell_1" style="left:900px; top:180px; width:130px; height:23px; ">전산 적용여부</caption>
- <caption id="caption9" class="cell_1" style="left:600px; top:108px; width:120px; height:23px; ">세분변수 Code</caption>
- <input id="ipt_divvardefine" ref="/root/main/newform/divvardefine" class="input_essential" maxlength="130" style="left:103px; top:134px; width:1089px; height:19px; "/>
- <select1 id="cmb_stndyn" ref="/root/main/newform/stndagmtyn" class="combo_default" appearance="minimal" style="left:723px; top:158px; width:175px; height:19px; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <output id="opt_deptnm" ref="/root/init/dutplcenm" class="output_default" style="left:403px; top:32px; width:140px; height:19px; text-align:left; "/>
- <output id="opt_usernm" ref="/root/init/usernm" class="output_default" style="left:103px; top:56px; width:190px; height:19px; text-align:left; "/>
- <output id="opt_fstrgstdt" ref="/root/main/newform/lastupdtdt" format="yyyy-mm-dd hh:nn" style="left:723px; top:56px; width:175px; height:19px; text-align:left; "/>
- <output id="opt_clsdeptnm" class="output_fix" appearance="output" style="left:723px; top:32px; width:175px; height:19px; text-align:left; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:254px; x2:1195px; y2:254px; "/>
- <line id="line5" class="line_3" style="x1:230px; y1:738px; x2:1190px; y2:738px; "/>
- <button id="button8" class="icon_search" style="left:882px; top:183px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPSMV00400");
- opt_supcd.value = model.getAttribute("iParam_divvarcd");
- opt_supdivvarnm.value = model.getAttribute("iParam_divvarnm");
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <output id="opt_stndagmtyn" ref="/root/main/newform/compuappyn" class="output_fix" appearance="output" style="left:1032px; top:182px; width:70px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:204px; width:100px; height:50px; ">비 고</caption>
- <textarea id="tar_rem" ref="/root/main/newform/rem" scroll="vertical" style="left:103px; top:205px; width:1089px; height:48px; "/>
- <button id="btn_tab_kpi" class="btn_sw" group="tab" style="left:84px; top:261px; width:84px; height:22px; ">
- <caption>KPI</caption>
- <toggle case="KPI" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- GridTab = "grd_kpi";
- btn_add.visible = true;
- btn_delete_row.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_tab_item" class="btn_sw" group="tab" selected="true" style="left:0px; top:261px; width:84px; height:22px; ">
- <caption>항목</caption>
- <toggle case="항목" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- GridTab = "grd_item";
- btn_add.visible = true;
- btn_delete_row.visible = true;
- ]]>
- </script>
- </button>
- <switch id="GridTab" style="left:0px; top:283px; width:1190px; height:456px; border-color:#c7a3cf; border-style:solid; ">
- <case id="항목" selected="true" style="left:0px; top:0px; width:1188px; height:454px; ">
- <datagrid id="grd_item" nodeset="/root/main/item" caption="선택^순 번^항 목 명^약어 (Label)^항 목 정 의^인식 / 마감기준^ㅇ" colwidth="34, 60, 225, 140, 550, 157, 7" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:4px; top:29px; width:1180px; height:420px; ">
- <col ref="item_check" type="checkbox"/>
- <col ref="itemseq" type="input"/>
- <col class="gridinput" ref="itemnm" type="input"/>
- <col class="gridinput" ref="itemlblnm" type="input"/>
- <col class="gridinput" ref="itemdefine" type="input"/>
- <col class="gridinput" ref="recgendbasespec" type="input"/>
- <col ref="divvarcd"/>
- </datagrid>
- </case>
- <case id="KPI">
- <datagrid id="grd_kpi" nodeset="/root/main/kpi" visibility="visible" caption="^순번^KPI 코드^KPI 명^KPI 정 의^단 위^KPI 유형^dvcd^최종수정자ID-^등록자" colwidth="25, 40, 80, 150, 700, 60, 90, 53, 100, 100" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:5px; top:29px; width:1175px; height:380px; ">
- <col ref="kpi_check" type="checkbox"/>
- <col ref="kpi_num" style="text-align:center; "/>
- <col ref="kpicd" visibility="hidden"/>
- <col ref="kpinm" visibility="visible"/>
- <col ref="kpidefine"/>
- <col ref="kpiunitcd" style="text-align:center; "/>
- <col ref="kpitypcd" style="text-align:center; "/>
- <col ref="divvarcd" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtridnm" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="Report" style="left:0px; top:0px; width:1188px; height:454px; ">
- <datagrid id="grd_report" nodeset="/root/main/report" caption="생성순번^cd^Report 명^통계 Report 설명 내역" colwidth="60, 42, 281, 823" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:4px; top:29px; width:1180px; height:420px; ">
- <col ref="cretseq"/>
- <col ref="statsreptcd" visibility="hidden"/>
- <col ref="statsreptnm"/>
- <col ref="statsspec"/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_add" class="btn2_letter4" style="left:1066px; top:291px; width:64px; height:19px; ">
- <caption>항목추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 항목 탭일때....
- if(GridTab == "grd_item"){
- grd_item.additem();
- var iRow = grd_item.row;
- model.setvalue("/root/main/item[" + iRow + "]/divvarcd", model.getvalue("/root/main/newform/divvarcd"));
- }
- // KPI 탭일때.....
- if(GridTab == "grd_kpi"){
- modal("SPSMK00500");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete_row" class="btn2_letter3" style="left:1132px; top:291px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sessionuserid = model.getValue("/root/hidden/session/userid");
- var status;
- // 관리자를 제외하고는 등록한 사람만이 삭제할 수 있다.
- if (userGroup != "S"){
-
- if(GridTab == "grd_item"){
- cur_row = grd_item.row;
- status = grd_item.rowstatus("delete");
-
- var item_lastupdtrid = model.getValue("/root/main/item["+cur_row+"]/lastupdtrid");
- if (status == 0 && sessionuserid != item_lastupdtrid){
- alert("최종수정자와 로그인한 사용자가 다르므로 삭제할 수 없습니다!");
- return;
- }
- grd_item.deleteitem(cur_row);
- }
- if(GridTab == "grd_kpi"){
- cur_row = grd_kpi.row;
- status = grd_item.rowstatus("delete");
-
- var kpi_lastupdtrid = model.getValue("/root/main/kpi["+cur_row+"]/lastupdtrid");
- if (status == 0 && sessionuserid != kpi_lastupdtrid){
- alert("최종수정자와 로그인한 사용자가 다르므로 삭제할 수 없습니다!");
- return;
- }
- grd_kpi.deleteitem(cur_row);
- }
- } // 관리자 체크 끝
- ]]>
- </script>
- </button>
- <button id="btn_tab_report" class="btn_sw" group="tab" style="left:168px; top:261px; 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>
- <output id="opt_supcd" ref="/root/main/newform/supdivvarcd" class="output_fix" appearance="output" style="left:723px; top:182px; width:153px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:600px; top:180px; width:120px; height:23px; ">상위세분변수 코드</caption>
- <output id="opt_instnm" ref="/root/init/dutplceinstnm" class="output_default" style="left:103px; top:32px; width:190px; height:19px; text-align:left; "/>
- <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:102px; top:3px; width:90px; height:19px; "/>
- <output id="opt_deptcd" ref="/root/main/newform/suggdeptcd" style="left:552px; top:32px; width:45px; height:19px; "/>
- <output id="opt_userid" ref="/root/init/userid" visibility="hidden" style="left:103px; top:81px; width:80px; height:19px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:9px; width:108px; height:14px; ">사용자정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <caption id="caption30" class="cell_1" style="left:900px; top:30px; width:130px; height:23px; ">등록자</caption>
- <caption id="caption31" class="cell_1" style="left:600px; top:30px; width:120px; height:23px; ">분 과 명</caption>
- <caption id="caption32" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; ">현재 사용자</caption>
- <caption id="caption33" class="cell_1" style="left:900px; top:54px; width:130px; height:23px; ">등록자 연락처</caption>
- <caption id="caption34" class="cell_1" style="left:900px; top:108px; width:130px; height:23px; ">Subject 영역</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:1195px; y2:77px; "/>
- <caption id="caption29" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; ">기 관 명</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:88px; width:100px; height:13px; ">개 요</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:103px; x2:1195px; y2:103px; "/>
- <caption id="caption4" class="cell_1" style="left:600px; top:54px; width:120px; height:23px; ">최종 등록시간</caption>
- <input id="input1" ref="/root/main/newform/updtrtelno" class="input_essential" style="left:1032px; top:56px; width:160px; height:19px; text-align:left; "/>
- <select1 id="cbo_statecd" ref="/root/main/newform/histstatcd" disabled="true" appearance="minimal" style="left:1032px; top:158px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/S0001_list/S0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="cell_1" style="left:900px; top:156px; width:130px; height:23px; ">현재 상태</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:132px; width:100px; height:23px; ">세분변수 정의</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:156px; width:100px; height:23px; ">관련코드 명</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:108px; width:100px; height:23px; ">세분변수 명</caption>
- <caption id="caption7" class="tit_2" style="left:5px; top:297px; width:100px; height:13px; ">관련 List</caption>
- <output id="output1" ref="/root/main/newform/rgstnm" style="left:1032px; top:32px; width:160px; height:19px; text-align:left; "/>
- <caption id="caption11" class="cell_1" style="left:300px; top:30px; width:100px; height:23px; ">부 서 명</caption>
- <output id="output2" ref="/root/main/newform/lastupdtrid" visibility="hidden" style="left:1035px; top:4px; width:90px; height:19px; "/>
- <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:100px; height:23px; text-align:left; vertical-align:middle; ">사용자 그룹</caption>
- <select1 id="cbo_group" ref="/root/init/usergrpcd" disabled="true" appearance="minimal" style="left:402px; 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; ">세분변수 정의</caption>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prev" class="btn3_letter2" style="left:0px; top:2px; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- navigate("SMSMV00100");
- ]]>
- </script>
- </button>
- <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 (fItemNumDupCheck() == false) return; //항목 중복체크
- if (fKPICDDupCheck() == false) return; //KPI등록 중복체크
- 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_item.getUpdateData());
- model.setValue("/root/send/data3", grd_kpi.getUpdateData());
-
- var rslt;
- // 관리자이냐 아니냐에 따로 저장방식이 다름. 아래 사번은 하드코딩
- if (userGroup == "S"){
- rslt = submit("TXSMV00203"); //관리자일때는 해당값을 바로 수정한다.
- if (rslt) {
- model.alert("수정되었습니다. (관리자)");
- navigate("SMSMV00100");
- }else{
- model.alert("수정에 실패");
- }
- } else { // 관리자가 아닐때...
-
- if(model.getvalue("/root/main/newform/histstatcd") == "01") {
- rslt = submit("TXSMV00203"); //신규요청 상태일때는 바로 데이타를 저장할 수 있다.
- if (rslt) {
- model.alert("세분변수 내역이 수정되었습니다.");
- navigate("SMSMV00100");
- }else{
- model.alert("세분변수내역 수정 실패");
- }
-
- } else {
- //
- model.property("iParam_itemflag") = "V";
- model.property("iParam_code") = model.getvalue("/root/main/newform/divvarcd");
- model.property("iParam_desc") = model.getvalue("/root/main/newform/divvardefine");
- model.property("iParam_name") = model.getvalue("/root/main/newform/divvarnm");
- 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/hidden/session/userid");
- model.property("iParam_usernm") = model.getvalue("/root/init/usernm");
-
- modal("SPSOC00401"); //아닐때는 변경요청 팝업을 띄우다.
-
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter4" disabled="false" style="left:1032px; top:3px; width:80px; height:22px; ">
- <caption>신규저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fItemNumDupCheck() == false) return; //항목 중복체크
- if (fKPICDDupCheck() == false) return; //KPI등록 중복체크
- if (fNullCheck() == false) return; //빈값이 있는지 체크
-
- var rtn = window.alert("세분변수를 저장하시겠습니까?", "선택", "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_item.getUpdateData());
- model.setValue("/root/send/data3", grd_kpi.getUpdateData());
-
- var rslt = submit("TXSMV00203");
-
- if (rslt) {
- model.alert("성공적으로 저장되었습니다.");
- navigate("SMSMV00100");
- }else{
- model.alert("세분변수 신규저장 실패!");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <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("해당 세분변수및 관련항목까지 모두 삭제됩니다. 삭제하시겠습니까?", "선택", "4");
- if (rtn != 6) {
- return;
- }
-
- model.setValue("/root/send/onflag","D"); //삭제 플래그
- 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_item.getUpdateData());
- model.setValue("/root/send/data3", grd_kpi.getUpdateData());
-
- var rslt = submit("TXSMV00203");
-
- if (rslt) {
- model.alert("성공적으로 삭제되었습니다.");
- navigate("SMSMV00100");
- }else{
- model.alert("세분변수 삭제 실패!");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <select1 id="cmb_subjcd" ref="/root/main/newform/subjcd" class="combo_essential" appearance="minimal" style="left:1032px; top:150px; width:160px; height:19px; ">
- <choices>
- <item>
- <label>기본정보-기본정보</label>
- <value>S10007</value>
- </item>
- <item>
- <label>환자정보-인적사항</label>
- <value>S10008</value>
- </item>
- <item>
- <label>환자정보-환자분류</label>
- <value>S10009</value>
- </item>
- <item>
- <label>병원정보-교직원</label>
- <value>S10010</value>
- </item>
- <item>
- <label>병원정보-장소</label>
- <value>S10011</value>
- </item>
- <item>
- <label>의료정보-환자상태</label>
- <value>S10012</value>
- </item>
- <item>
- <label>의료정보-상병</label>
- <value>S10013</value>
- </item>
- <item>
- <label>의료정보-수술</label>
- <value>S10014</value>
- </item>
- <item>
- <label>의료정보-정도관리</label>
- <value>S10015</value>
- </item>
- <item>
- <label>의료정보-협진</label>
- <value>S10016</value>
- </item>
- <item>
- <label>의료정보-공간</label>
- <value>S10017</value>
- </item>
- <item>
- <label>의료정보-기간</label>
- <value>S10018</value>
- </item>
- <item>
- <label>의료정보-기타</label>
- <value>S10019</value>
- </item>
- <item>
- <label>수익정보-수익</label>
- <value>S10020</value>
- </item>
- <item>
- <label>수익정보-처방</label>
- <value>S10021</value>
- </item>
- <item>
- <label>수익정보-청구</label>
- <value>S10022</value>
- </item>
- <item>
- <label>수익정보-감면할인미수</label>
- <value>S10023</value>
- </item>
- <item>
- <label>수익정보-기타</label>
- <value>S10024</value>
- </item>
- <item>
- <label>기타-협력</label>
- <value>S10025</value>
- </item>
- <item>
- <label>기타-기타</label>
- <value>S10026</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" style="left:973px; top:0px; width:217px; height:13px; vertical-align:middle; ">[ * 시스템 문의 : 박종택 (02-590-7891)]</caption>
- </xhtml:body>
- </xhtml:html>
|