123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- <?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="">
- <item>
- </item>
- <main>
- <basecschelist>
- <basecschelistinfo>
- <basetypecd/>
- <instcd/>
- <supbasetypecd/>
- <typenm/>
- <refseq/>
- <levl/>
- <termcd/>
- <!--(20110520) -->
- <bedcd/>
- <bednm/>
- <grupcd/>
- <grupnm/>
- <!--(20110520) -->
- </basecschelistinfo>
- </basecschelist>
- <cond>
- <basetypecd/>
- <typenm/>
- <baseclsflag/>
- <refseq/>
- <supbasetypecd/>
- <levl/>
- </cond>
- <basecodelist>
- <basecodelistinfo>
- <typenm/>
- <cdcls/>
- <supbasetypecd/>
- <basetypecd/>
- <refseq/>
- </basecodelistinfo>
- </basecodelist>
- <conddetl>
- <typenm/>
- <cdcls/>
- <supbasetypecd/>
- <basetypecd/>
- <refseq/>
- <!--(20110520) -->
- <bedcd/>
- <bednm/>
- <grupcd/>
- <grupnm/>
- <!--(20110520) -->
- </conddetl>
- </main>
- <send>
- <req>
- <basetypecd/>
- <supbasetypecd/>
- <levl/>
- </req>
- <reqtms>
- <typenm/>
- <cdcls/>
- <supbasetypecd/>
- <basetypecd/>
- <refseq/>
- <status/>
- </reqtms>
- </send>
- <message/>
- <init>
- <codeinfo/>
- </init>
- <hidden>
- <target/>
- </hidden>
- </root>
- </instance>
- <submission id="TRMNE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/basecschelist"/>
- <!--(20110520) -->
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <!--(20110520) -->
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <!-- 2010-06-24 안도영 추가 -->
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- chkInstMG(); // 메뉴그룹 구분(중앙/기관별) 함수 2010-06-24 안도영
- //------------------------ 기존 로직
- model.removeNodeset("/root/send" );
-
- model.makeValue("/root/send/deptcd", deptcd);
- model.removeNodeset("/root/main/basecodelist/basecodelistinfo" );
- ipt_basetypecd.disabled = true;
-
- //-------(20110520)
- fnhiddenflag();
- //-------(20110520)
-
- submit("TRMNE01501");
- ]]>
- </script>
- <submission id="TRMNE01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/basecodelist"/>
- <submission id="TXMNE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqtms" resultref="/root/message"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* 전역 공간*/
- var MGFlag = ""; // 메뉴그룹 구분 (C:중앙사용자, I:기관사용자) 2010-06-24 안도영
- var gDeptcd = "";
- /* 메뉴그룹코드 가져오기(from 간호하드코딩 테이블) 2010-06-24 안도영 */
- function chkInstMG(){
- var initPath = "/root/init/codeinfo/codelist";
- //20101129_KNUH_start 하드코딩테이블 조회.
- var pCode = "'002'"; // 조회할 CdGrupID 코드정보 (기관코드찾기)
- var pDate = getCurrentDate(); //조회기준일자
- var pTime = getCurrentTime().substring(0,4);
-
- fGetNursHardCdInfo(pCode, pDate);
-
- //20101129_KNUH_End 하드코딩테이블조회.(부서조회)
- //하드코딩 부서 ->전역변수에 반영
- gDeptcd = model.getValue("/root/init/codeinfo/codelist/cdid");
-
- // model.setValue(ipt_deptcd.attribute("ref"),
- pCode = "'208'"; // 조회할 CdGrupID 코드정보
- pDate = getCurrentDate(); //조회기준일자
- pTime = getCurrentTime().substring(0,4); //조회기준시간
- //var mainPath = "/root/temp/shifttimeinfo/shifttimelist";
-
- // fGetNursHardCdInfo(pCode, pDate); // 간호공통관리 메뉴코드 조회
-
- var centerMG = ""; // 중앙관리용 메뉴그룹코드
- var instMG= ""; // 기관별관리(간호Superuser용) 메뉴그룹코드
-
- var str = getGlobalVariable("menugroupcd");
- var currentMG = "";
- var supCdid = "";
- // 현재의 메뉴그룹코드 추출
- for(i=0; i < str.length; i++){
- if(str.charAt(i) == "|") break;
- currentMG = currentMG + str.charAt(i);
- }
-
- // 중앙, 기관별 관리자 메뉴그룹 구분
- if(model.getValue(initPath+"[supcdid = '1' and cdid = '"+currentMG+"']/cdid")){
- MGFlag = "C"; // 중앙
- }
- else if(model.getValue(initPath+"[supcdid = '2' and cdid = '"+currentMG+"']/cdid")){
- MGFlag = "I"; // 기관별
- }else{ // 둘다 해당하지 않을시 default로 기관별 사용자 (2010-06-29 서울성모 김숙인샘 요청)
- MGFlag = "I";
- }
-
- }
-
- if(getScreenMenuParameter() == ""){
- var deptcd = "B";
- }else{
- var deptcd = getScreenMenuParameter();
- }
-
- var treerow = 0;
- var treecdcls = "";
-
- //---(20110520) 경북대
- function fnhiddenflag(vflag) {
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var sflag = "";
-
- if (trv_basecodelist.selectedIndex == -1) {
- sflag = "N";
- } else {
- if (item.value.substring(0,2) == "BT") {
- sflag = "N";
- } else {
- sflag = "Y";
- }
- }
- if(sflag == "N"){
- //응급의료자료전송
- //숨김
- capbedcd.visible = false;
- ipt_bedcd.visible = false;
- btn_bedcd.visible = false;
-
- capgrupcd.visible = false;
- ipt_grupcd.visible = false;
- btn_grupcd.visible = false;
- ipt_grupnm.visible =false;
-
- grd_basecodelist.colHidden(grd_basecodelist.colref("bedcd")) = true;
- grd_basecodelist.colHidden(grd_basecodelist.colref("grupcd")) = true;
- grd_basecodelist.colHidden(grd_basecodelist.colref("grupnm")) = true;
- }else{
- //bed정보
- //보이기
- capbedcd.visible = true;
- ipt_bedcd.visible = true;
- btn_bedcd.visible = true;
-
- capgrupcd.visible = true;
- ipt_grupcd.visible = true;
- btn_grupcd.visible = true;
- ipt_grupnm.visible =true;
-
- grd_basecodelist.colHidden(grd_basecodelist.colref("bedcd")) = false;
- grd_basecodelist.colHidden(grd_basecodelist.colref("grupcd")) = false;
- grd_basecodelist.colHidden(grd_basecodelist.colref("grupnm")) = false;
- }
-
- if (vflag =="N") {
- //응급의료자료전송
- //숨김
- ipt_bedcd.disabled = true;;
- btn_bedcd.disabled = true;;
-
- ipt_grupcd.disabled = true;;
- btn_grupcd.disabled = true;;
- ipt_grupnm.disabled = true;;;
- } else {
- //bed정보
- //보이기
- ipt_bedcd.disabled = false;
- btn_bedcd.disabled = false;
-
- ipt_grupcd.disabled = false;
- btn_grupcd.disabled = false;
- ipt_grupnm.disabled =false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,4;1,1194;1,1176;2,1;2,1;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:16px; width:1195px; height:744px; text-align:center; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:290px; y2:25px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:719px; width:65px; height:23px; vertical-align:middle; ">TypeID</caption>
- <input id="input3" class="input_default" style="left:68px; top:721px; width:90px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:161px; top:719px; width:65px; height:23px; vertical-align:middle; ">Code</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
- <caption id="caption32" class="tit_2" style="left:4px; top:10px; width:108px; height:13px; text-align:left; ">기준정보리스트</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:700px; width:108px; height:13px; text-align:left; ">기준정보 입력</caption>
- <treeview id="trv_basecodelist" ref="/root/main/cond/basetypecd" navindex="7" expanddepth="1" itemsettype="depth" style="left:0px; top:30px; width:290px; height:710px; ">
- <itemset nodeset="/root/main/basecschelist/basecschelistinfo">
- <label ref="typenm"/>
- <value ref="basetypecd"/>
- <depth ref="levl"/>
- </itemset>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /* 기관별관리자 접속시 버튼권한 차등 설정 2010-06-24 안도영*/
- if(MGFlag == "I"){
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
-
- //응급의료자료전송
- if(item.value.substring(0,2) == "BT"){
- button1.disabled = true;
- button16.disabled = true;
- button2.disabled = true;
- button3.disabled = true;
- }else{
- button1.disabled = false;
- button16.disabled = false;
- button2.disabled = false;
- button3.disabled = false;
- }
- }
- //----(20110520)
- ipt_bedcd.value = "";
- btn_grupcd.value= "";
- ipt_grupnm.value = "";
- fnhiddenflag("N");
- //----(20110520)
- //-----------------------기존
- ipt_supbasetypecd.value = "";
- ipt_basetypecd.value = "";
- ipt_cdcls.value = "";
- ipt_typenm.value = "";
- ipt_refseq.value = "";
- model.removeNodeset("/root/send" );
- model.removeNodeset("/root/main/basecodelist/basecodelistinfo");
-
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var rowpos = item.index + 1;
-
- var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
- model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
- model.makeValue("/root/send/req/supbasetypecd", supbasetypecd);
- model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
- model.makeValue("/root/send/req/deptcd", deptcd);
-
- treerow = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl");
-
- submit("TRMNE01502"); //트리에 해당하는 리스트를 가져온다.
-
- if(treerow == 2){
- treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/basetypecd");
- }else if(treerow == 3){
- treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
- }
-
- ipt_supbasetypecd.value = "";
- ipt_basetypecd.value = "";
- ipt_cdcls.value = "";
- ipt_typenm.value = "";
- ipt_refseq.value = "";
- ipt_basetypecd.disabled = true;
-
- ]]>
- </script>
- </treeview>
- <caption id="caption5" class="tit_2" style="left:294px; top:10px; width:206px; height:13px; text-align:left; ">기준정보 조회 및 관리</caption>
- <line id="line4" class="line_1" style="x1:295px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="caption15" class="cell_1" style="left:295px; top:30px; width:60px; height:23px; vertical-align:middle; ">상위코드</caption>
- <caption id="caption2" class="cell_1" style="left:436px; top:30px; width:59px; height:23px; text-align:center; vertical-align:middle; ">코드</caption>
- <caption id="caption7" class="cell_1" style="left:697px; top:30px; width:79px; height:23px; text-align:center; vertical-align:middle; ">코드명칭</caption>
- <line id="line1" class="line_2" style="x1:295px; y1:75px; x2:1194px; y2:75px; "/>
- <output id="ipt_supbasetypecd" ref="/root/main/conddetl/supbasetypecd" class="output_fix" style="left:357px; top:31px; width:78px; height:19px; "/>
- <input id="ipt_basetypecd" ref="/root/main/conddetl/basetypecd" class="input_default" navindex="1" maxlength="6" style="left:497px; top:31px; width:63px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(treerow==1){
- ipt_cdcls.value = ipt_basetypecd.value;
- model.setFocus("ipt_typenm");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_typenm" ref="/root/main/conddetl/typenm" class="input_default" navindex="2" style="left:778px; top:31px; width:217px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:1001px; top:30px; width:79px; height:23px; text-align:center; vertical-align:middle; ">조회순서</caption>
- <input id="ipt_refseq" ref="/root/main/conddetl/refseq" class="input_default" navindex="3" style="left:1082px; top:31px; width:93px; height:19px; "/>
- <!--(20110520)
- <datagrid id="grd_basecodelist" nodeset="/root/main/basecodelist/basecodelistinfo" caption="코드^상위코드^코드값^코드명칭^정렬순서^원무상병" colsep="^" colwidth="120, 140, 140, 281, 60, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:293px; top:55px; width:898px; height:685px; ">
- -->
- <datagrid id="grd_basecodelist" nodeset="/root/main/basecodelist/basecodelistinfo" caption="코드^상위코드^코드값^코드명칭^정렬순서^원무병상^구역부서^구역부서명" colsep="^" colwidth="95, 122, 140, 165, 60, 77, 88, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:293px; top:80px; width:898px; height:660px; ">
- <col ref="basetypecd"/>
- <col ref="supbasetypecd"/>
- <col ref="cdcls"/>
- <col ref="typenm"/>
- <col ref="refseq"/>
- <col ref="bedcd"/>
- <!-- (20110520) -->
- <col ref="grupcd"/>
- <col ref="grupnm"/>
- <!-- (20110520) -->
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/main/basecodelist/basecodelistinfo["+grd_basecodelist.row+"]/basetypecd") == ""){
- return;
- }else{
- model.copyNode("/root/main/conddetl", "/root/main/basecodelist/basecodelistinfo[" + grd_basecodelist.row + "]");
- model.refresh();
- }
-
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var rowpos = item.index + 1;
- treerow = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl");
- var bedcd;
-
- //-------(20110520)
- var grupcd= "";
- var grupnm = "";
- //-------(20110520)
- if(treerow == 2){
- treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/basetypecd");
- bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
- //-------(20110520)
- grupcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupcd");
- grupnm = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupnm");
- //-------(20110520)
- }else if(treerow == 3){
- treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
- bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
- //-------(20110520)
- grupcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupcd");
- grupnm = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupnm");
- //-------(20110520)
- }
- model.setValue("/root/main/conddetl/cdcls", treecdcls);
- model.setValue("/root/main/conddetl/bedcd", bedcd);
- //-----(20110520)
- fnhiddenflag();
- model.setValue("/root/main/conddetl/grupcd", grupcd);
- model.setValue("/root/main/conddetl/grupnm", "grupnm");
- //-----(20110520)
- ipt_cdcls.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //----(20110520)
- /*
- model.property("certyn") = "N";
- setParameter("SMPMI00100_Param1", gDeptcd);
- modal("SPPMI02001");
- if(model.property("certyn") == "Y") {
- grd_basecodelist.valueMatrix(grd_basecodelist.row, grd_basecodelist.colRef("bedcd")) = model.getValue("/root/hidden/target/grdbedspec/bedcd");
- }
- */
- //---(20110520)
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_basecodelist.col == grd_basecodelist.colRef("bedcd")) {
- model.setValue(ipt_bedcd.attribute("ref"), grd_basecodelist.valueMatrix(grd_basecodelist.row, grd_basecodelist.colRef("bedcd")));
- ipt_bedcd.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="cell_1" style="left:563px; top:30px; width:70px; height:23px; text-align:center; vertical-align:middle; ">대분류코드</caption>
- <output id="ipt_cdcls" ref="/root/main/conddetl/cdcls" class="output_fix" navindex="8" style="left:636px; top:31px; width:59px; height:19px; "/>
- <button id="button1" class="btn2_letter4" style="left:991px; top:3px; width:64px; height:19px; ">
- <caption>한줄추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(treerow < 1){
- messageBox("트리를 ","C002");
- return;
- }
-
- if(treerow > 4){
- messageBox("트리구조를 ","E003");
- return;
- }
- var iRow = grd_basecodelist.rows-1;
-
- var supbasetypecd = model.getValue("/root/main/basecodelist/basecodelistinfo"+"["+iRow+"]/supbasetypecd")
- var refseq = model.getValue("/root/main/basecodelist/basecodelistinfo"+"["+iRow+"]/refseq")
- refseq = String(Number(refseq)+1)
-
- grd_basecodelist.addRow();
- var addiRow = grd_basecodelist.row;
- if(addiRow == 1){
- grd_basecodelist.valueMatrix(addiRow,2) = model.getValue("/root/send/req/basetypecd");
- }else{
- grd_basecodelist.valueMatrix(addiRow,2) = supbasetypecd;
- }
- grd_basecodelist.valueMatrix(addiRow,5) = refseq;
-
- model.copyNode("/root/main/conddetl", "/root/main/basecodelist/basecodelistinfo[" + addiRow +"]");
-
- if(treerow != 1){
- model.setValue("/root/main/conddetl/cdcls",treecdcls) ;
- }
-
- //----(20110520)
- ipt_bedcd.value = "";
- ipt_grupcd.value = "";
- ipt_grupnm.value = "";
- fnhiddenflag("Y");
- //----(20110520)
- ipt_basetypecd.disabled = false;
- model.setValue("/root/main/conddetl/basetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.setFocus("ipt_basetypecd");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button16" class="btn5_letter2" navindex="4" style="left:1057px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
- messageBox("한줄추가후 ","C001");
- return;
- }
- if(ipt_basetypecd.value == ""){
- messageBox("코드를 ","C001");
- return;
- }
- if(ipt_typenm.value == ""){
- messageBox("코드명칭을 ","C001");
- return;
- }
- if(ipt_refseq.value == ""){
- messageBox("조회순서를 ","C001");
- return;
- }
-
- if(messageBox("","Q002") != 6) return;
- model.removeNodeset("/root/send" );
- model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
- model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
- model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
- model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
- model.makeValue("/root/send/reqtms/status", "I");
- model.makeValue("/root/send/reqtms/deptcd", deptcd);
-
- model.removeNodeset("/root/send/req" );
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var rowpos = item.index + 1;
-
- var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
- var bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
- model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
- model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
- model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
- model.makeValue("/root/send/req/deptcd", deptcd);
- //---(20110520)
- bedcd = ipt_bedcd.value;
- //---(20110520)
-
- //20101129_KNUH_Start
- model.makeValue("/root/send/req/bedcd", bedcd);
- model.makeValue("/root/send/reqtms/bedcd", bedcd);
- //20101129_KNUH_End
- //20110520
- model.makeValue("/root/send/reqtms/grupcd" , model.getValue("/root/main/conddetl/grupcd"));
- //20110520
-
- submit("TXMNE01501");
- model.removeNodeset("/root/send/reqtms" );
- submit("TRMNE01502");
- submit("TRMNE01501");
- ipt_basetypecd.disabled = true;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" navindex="5" style="left:1101px; top:3px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
- messageBox("수정할 항목을 ","C002");
- return;
- }
- if(ipt_typenm.value == ""){
- messageBox("수정할 코드명칭을 ","C001");
- return;
- }
- if(ipt_refseq.value == ""){
- messageBox("수정할 조회순서를 ","C001");
- return;
- }
- model.removeNodeset("/root/send" );
- var bedcd = model.getValue(ipt_bedcd.attribute("ref"));
-
- model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
- model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
- model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
- model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
- model.makeValue("/root/send/reqtms/status", "U");
- model.makeValue("/root/send/reqtms/deptcd", deptcd);
-
- var bedcd = model.getValue(ipt_bedcd.attribute("ref"));
- model.makeValue("/root/send/reqtms/bedcd", bedcd);
-
-
- //---(20110520)
- var grupcd = model.getValue(ipt_grupcd.attribute("ref"));
- model.makeValue("/root/send/reqtms/grupcd", grupcd);
- //---(20110520)
-
- model.removeNodeset("/root/send/req" );
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var rowpos = item.index + 1;
-
- var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
-
- //20101129_KNUH_Start 원무상병코드추가.
-
- //20101129_KNUH_End 원무상병코드추가.
- model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
- model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
- model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
- model.makeValue("/root/send/req/deptcd", deptcd);
-
- //-------(20110520)
- model.makeValue("/root/send/req/bedcd", bedcd);
- model.makeValue("/root/send/req/grupcd", grupcd);
- //-------(20110520)
- submit("TXMNE01501");
- model.removeNodeset("/root/send/reqtms" );
- submit("TRMNE01502");
- submit("TRMNE01501");
-
- ipt_supbasetypecd.value = "";
- ipt_basetypecd.value = "";
- ipt_cdcls.value = "";
- ipt_typenm.value = "";
- ipt_refseq.value = "";
- ipt_basetypecd.disabled = true;
-
- //----------(20110520)
- ipt_bedcd.value = "";
- ipt_grupcd.value = "";
- ipt_grupnm.value = "";
- fnhiddenflag();
- //----------(20110520)
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" navindex="6" style="left:1145px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
- messageBox("삭제할 항목을 ","C002");
- return;
- }
- if(messageBox("","Q001") != 6) return;
- var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
- var rowpos = item.index + 1;
-
- model.removeNodeset("/root/send" );
- model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
- model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
- model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
- model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
- model.makeValue("/root/send/reqtms/status", "D");
- model.makeValue("/root/send/reqtms/deptcd", deptcd);
- model.makeValue("/root/send/reqtms/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
-
- model.removeNodeset("/root/send/req" );
-
-
- var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
- model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
- model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
- model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
- model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
- model.makeValue("/root/send/req/deptcd", deptcd);
-
- submit("TXMNE01501");
- model.removeNodeset("/root/send/reqtms" );
- submit("TRMNE01502");
- submit("TRMNE01501");
-
- ipt_supbasetypecd.value = "";
- ipt_basetypecd.value = "";
- ipt_cdcls.value = "";
- ipt_typenm.value = "";
- ipt_refseq.value = "";
- ipt_basetypecd.disabled = true;
-
- //----------(20110520)
- ipt_bedcd.value = "";
- ipt_grupcd.value = "";
- ipt_grupnm.value = "";
- fnhiddenflag();
- //----------(20110520)
- ]]>
- </script>
- </button>
- <!-- (20110520)
- <input id="ipt_bedcd" ref="/root/main/conddetl/bedcd" visibility="hidden" style="left:890px; top:5px; width:100px; height:20px; "/>
- -->
- <caption id="capbedcd" class="cell_1" style="left:295px; top:54px; width:60px; height:23px; vertical-align:middle; ">원무병상</caption>
- <caption id="capgrupcd" class="cell_1" style="left:562px; top:55px; width:70px; height:18px; text-align:center; vertical-align:middle; ">구역부서</caption>
- <input id="ipt_grupcd" ref="/root/main/conddetl/grupcd" class="input_default" style="left:635px; top:55px; width:77px; height:19px; "/>
- <button id="btn_grupcd" class="icon_search" style="left:720px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // modal("SPMNG00300");
- //
- // model.setValue("/root/main/conddetl/grupcd",model.property("deptcd"));
- // model.setValue("/root/main/conddetl/grupnm",model.property("deptnm"));
- // model.refresh();
- var posinstcd = getUserInfo("dutplceinstcd");
- if(posinstcd!='-'){
- zbcfOpenAssignedInstDeptCodeList(posinstcd, "deptnm","", "/root/main/conddetl/grupcd", "/root/main/conddetl/grupnm", null, null, new Array("deptcd", "depthngnm"));
- }
- ]]>
- </script>
- </button>
- <input id="ipt_grupnm" ref="/root/main/conddetl/grupnm" class="input_search" style="left:740px; top:55px; width:172px; height:19px; "/>
- <input id="ipt_bedcd" ref="/root/main/conddetl/bedcd" class="input_default" style="left:357px; top:55px; width:78px; height:19px; "/>
- <button id="btn_bedcd" class="icon_search" style="left:447px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.property("certyn") = "N";
- setParameter("SMPMI00100_Param1", gDeptcd);
-
- modal("SPPMI02001");
- if(model.property("certyn") == "Y") {
- model.setValue("/root/main/conddetl/bedcd",model.getValue("/root/hidden/target/grdbedspec/bedcd"));
- model.refresh();
- //ipt_bednm.value = model.getValue("/root/hidden/target/grdbedspec/bednm");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_bednm" ref="/root/main/conddetl/bednm" class="input_search" visibility="hidden" style="left:465px; top:5px; width:225px; height:19px; "/>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:109px; height:13px; ">기준정보관리</caption>
- </xhtml:body>
- </xhtml:html>
|