123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- <?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>AJCC 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <docutitlnm/>
- <useyn/>
- </cond>
- <info>
- <AJCCspecinfo>
- <docutitlnm/>
- <attfilenm/>
- <useyn/>
- <genrdd/>
- <genrno/>
- <status/>
- </AJCCspecinfo>
- </info>
- <AJCCspeclist>
- <AJCCspeclist>
- <docutitlnm/>
- <attfilenm/>
- <useyn/>
- <genrdd/>
- <genrno/>
- </AJCCspeclist>
- </AJCCspeclist>
- <keyinfo>
- <keylist/>
- </keyinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <file>
- <filename/>
- <genrdd/>
- <genrno/>
- <status/>
- <useyn/>
- </file>
- </send>
- <hidden/>
- <init>
- </init>
- </root>
- </instance>
- <submission id="TRMMO14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/AJCCspeclist"/>
- <submission id="TXMMO14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/AJCCspeclist"/>
- <submission id="TXMMO14102" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/file" resultref="/root/main/AJCCspeclist"/>
- <submission id="TXMMO14103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/AJCCspeclist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //그리드 초기화
- model.removeNodeset("/root/main/AJCCspeclist/AJCCspeclist");
- model.removeNodeset("/root/main/keyinfo/keylist");
- model.refresh();
- //조건초기화
- ipt_docutitl.value = '';
- cmb_use.select(0);
- //내역 초기화
- ipt_docutitlnm.value = '';
- ipt_attfilenm.value = '';
- cmb_useYN.select(0);
-
-
- //질환병기AJCC테이블에 있는 데이타 조회
- model.copyNode("/root/send/reqdata","/root/main/cond");
- submit("TRMMO14101");
- //파일삭제버튼을 누르지 않았다는 상태값
- model.setValue("/root/send/file/status", 'N');
- //현재 상태값을 초기화
- model.setValue("/root/main/info/AJCCspecinfo/status",'u');
- model.refresh();
- ]]>
- </script>
- </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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_1" style="left:10px; top:10px; width:140px; height:13px; ">AJCC 관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1193px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:30px; top:32px; width:105px; height:17px; ">문서제목 :</caption>
- <input id="ipt_docutitl" ref="/root/main/cond/docutitlnm" class="input_search" navindex="1" maxlength="300" style="left:125px; top:31px; width:375px; height:19px; ">
- <hint>
- <![CDATA[문서제목을 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //조건을 적고 enter를 치면 바로 조회 버튼을 누르지 않고 조회
- inputEnterKey("btn_req","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:530px; top:32px; width:105px; height:17px; ">사용구분 :</caption>
- <select1 id="cmb_use" ref="/root/main/cond/useyn" navindex="2" appearance="minimal" style="left:625px; top:31px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //값이 변경되면 바로 조회
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line3" style="x1:1100px; y1:25px; x2:1100px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" navindex="3" style="left:1112px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //질환병기AJCC테이블에 있는 데이타 조회
- model.copyNode("/root/send/reqdata","/root/main/cond");
- submit("TRMMO14101");
-
- //정보화면 초기화
- //내역 초기화
- ipt_docutitlnm.value = '';
- ipt_attfilenm.value = '';
- cmb_useYN.select(0);
- ipt_attfilenm.disabled = 'true';
- ipt_docutitlnm.disabled = 'true';
- cmb_useYN.disabled = 'true';
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:0px; top:65px; width:126px; height:14px; vertical-align:middle; ">AJCC 내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1193px; y2:80px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:85px; width:101px; height:23px; vertical-align:middle; ">문서제목</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:109px; width:101px; height:23px; vertical-align:middle; ">파일명</caption>
- <input id="ipt_docutitlnm" ref="/root/main/info/AJCCspecinfo/docutitlnm" class="input_search" disabled="true" navindex="5" maxlength="300" style="left:102px; top:87px; width:383px; height:19px; ">
- <hint>
- <![CDATA[문서제목을 입력하세요.]]>
- </hint>
- </input>
- <input id="ipt_attfilenm" ref="/root/main/info/AJCCspecinfo/attfilenm" class="input_search" disabled="true" navindex="7" maxlength="300" style="left:102px; top:111px; width:383px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:487px; top:85px; width:101px; height:23px; vertical-align:middle; ">사용구분</caption>
- <select1 id="cmb_useYN" ref="/root/main/info/AJCCspecinfo/useyn" disabled="true" navindex="6" appearance="minimal" style="left:590px; top:87px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <line id="line6" class="line_3" style="x1:0px; y1:132px; x2:1194px; y2:132px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="11" style="left:1082px; top:134px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //파일을 삭제 여부를 확인
- var status = model.getValue("/root/send/file/status");
-
- if(status == 'Y'){
- //파일을 삭제할 것인 지 확인 하여 하는 경우 만 삭제
- //선택된 로우
- var row = grd_AJCClist.row;
- //선택된 로우의 파일명
- var name = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/attfilenm");
-
- //파일을 삭제할 것인지 확인 메세지를 띄워줌
- var delfile = messageBox(name + " 파일 삭제를" , "Q001");
- if(delfile == '6'){
- //등록된 파일을 삭제하기 위해 상태값을 삭제로 만든다.
- model.setValue("/root/main/info/AJCCspecinfo/status",'d');
-
- //파일 삭제
- //조건을 data를 가지고 등록된 파일을 삭제하러 간다.
- model.copyNode("/root/send/savedata", "/root/main/info/AJCCspecinfo");
- submit("TXMMO14103");
- //기존 상태값으로 변경한다.
- model.setValue("/root/main/info/AJCCspecinfo/status",'u');
- model.refresh();
- }else if(delfile == '7'){
- }
-
- //첨부파일이 있는지 확인
- var filenm = model.getValue("/root/main/info/AJCCspecinfo/attfilenm");
- //파일이 없는경우 메세지
- if(filenm == ''){
- messageBox("파일이 첨부 되지 " , "E007");
- }else{
- //테이블에 저장
- model.copyNode("/root/send/savedata","/root/main/info/AJCCspecinfo");
- submit("TXMMO14101");
-
- var status = model.getValue("/root/main/info/AJCCspecinfo/status");
- if(status == 'i'){
- //등록을 하고 거기에서 받아온 키값들을 저장해 둔다.
- var getDD = model.getValue("/root/main/keyinfo/keylist/genrdd");
- var getNO = model.getValue("/root/main/keyinfo/keylist/genrno");
- model.setValue("/root/main/info/AJCCspecinfo/genrdd", getDD);
- model.setValue("/root/main/info/AJCCspecinfo/genrno", getNO);
- }
-
- //**********첨부파일을 BLOB 형태로 DB에 올림
-
- //선택한 파일의 첨부파일을 선택하기 위해 키를 가지고 간다.
- var getno = model.getValue("/root/main/info/AJCCspecinfo/genrno");
- var getdd = model.getValue("/root/main/info/AJCCspecinfo/genrdd");
- var useyn = model.getValue("/root/main/info/AJCCspecinfo/useyn");
- model.setValue("/root/send/file/genrno", getno);
- model.setValue("/root/send/file/genrdd", getdd);
- model.setValue("/root/send/file/useyn", useyn);
-
- // 파일을 DB에 올린다.
- submit("TXMMO14102");
- }
- model.setValue("/root/send/file/status",'N');
- }else{
-
- //첨부파일이 있는지 확인
- var filenm = model.getValue("/root/main/info/AJCCspecinfo/attfilenm");
- //파일이 첨부되지 않은 경우 메세지
- if(filenm == ''){
- messageBox("파일이 첨부 되지 " , "E007");
- }else{
- //테이블에 저장
- model.copyNode("/root/send/savedata","/root/main/info/AJCCspecinfo");
- submit("TXMMO14101");
- //그리드의 총개수를 알아내서 마지막으로 추가된 로우의 키값을 알아냄
- var rows = grd_AJCClist.rows - grd_AJCClist.fixedRows;
-
- var status = model.getValue("/root/main/info/AJCCspecinfo/status");
- if(status == 'i'){
- //등록을 하고 거기에서 받아온 키값들을 저장해 둔다.
- var getDD = model.getValue("/root/main/keyinfo/keylist/genrdd");
- var getNO = model.getValue("/root/main/keyinfo/keylist/genrno");
- model.setValue("/root/main/info/AJCCspecinfo/genrdd", getDD);
- model.setValue("/root/main/info/AJCCspecinfo/genrno", getNO);
- }
-
- //**********첨부파일을 BLOB 형태로 DB에 올림
-
- //선택한 파일의 첨부파일을 선택하기 위해 키를 가지고 간다.
- var getno = model.getValue("/root/main/info/AJCCspecinfo/genrno");
- var getdd = model.getValue("/root/main/info/AJCCspecinfo/genrdd");
- var useyn = model.getValue("/root/main/info/AJCCspecinfo/useyn");
- model.setValue("/root/send/file/genrno", getno);
- model.setValue("/root/send/file/genrdd", getdd);
- model.setValue("/root/send/file/useyn", useyn);
-
- // 파일을 DB에 올린다.
- submit("TXMMO14102");
- }
- model.setValue("/root/send/file/status",'N');
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" navindex="12" style="left:1139px; top:134px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //상태를 삭제상태로 변경
- model.setValue("/root/main/info/AJCCspecinfo/status",'d');
- //파일을 삭제하러 간다
- model.copyNode("/root/send/savedata","/root/main/info/AJCCspecinfo");
- submit("TXMMO14101");
-
- //내역 초기화
- ipt_docutitlnm.value = '';
- ipt_attfilenm.value = '';
- cmb_useYN.select(0);
- //입력불가상태를 입력가능하게 변경해줌
- ipt_docutitlnm.disabled = 'true';
- ipt_attfilenm.disabled = 'true';
- cmb_useYN.disabled = 'true';
- //상태를 신규등록 상태로 만들어준다
- model.setValue("/root/main/info/AJCCspecinfo/status",'');
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" navindex="10" style="left:1013px; top:134px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //내역 초기화
- ipt_docutitlnm.value = '';
- ipt_attfilenm.value = '';
- cmb_useYN.select(0);
- //입력불가상태를 입력가능하게 변경해줌
- ipt_docutitlnm.disabled = 'false';
- ipt_attfilenm.disabled = 'true';
- cmb_useYN.disabled = 'false';
- //상태를 신규등록 상태로 만들어준다
- model.setValue("/root/main/info/AJCCspecinfo/status",'i');
- model.setValue("/root/main/info/AJCCspecinfo/genrdd",'');
- model.setValue("/root/main/info/AJCCspecinfo/genrno",'');
- model.removeNodeset("/root/main/keyinfo/keylist");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" navindex="8" style="left:489px; top:110px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //파일 사이즈를 받아옴
- var maxsize = upload1.attribute("filesize");
- //현재 저장할 파일 명을 받아옴
- var name = model.getValue("/root/main/info/AJCCspecinfo/attfilenm");
- //파일 명이 존재하면 저장된 파일이 있는 것이므로 먼저 파일을 삭제하라는 메세지를 띄워줌
- if((name != '')){
- var fileupdata = messageBox(name + " 파일 삭제 후 " , "C002");
- }else{
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fileopen = window.fileDialog("open","|","false");
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- model.setValue("/root/main/info/AJCCspecinfo/attfilenm", fileopen);
- var name = model.getValue("/root/main/info/AJCCspecinfo/attfilenm");
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
- //open 파일명를 input박스에 넣는다.
- ipt_attfilenm.value = fileopen.substring(filename + 1);
-
- //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
- model.setValue("/root/send/file/filename", name);
- model.refresh();
-
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(upload1)){
- ipt_attfilenm.value = "";
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" navindex="9" style="left:555px; top:110px; width:64px; height:19px; ">
- <caption>파일삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //파일 삭제 상태값을 저장으로 넘겨줌
- model.setValue("/root/send/file/status",'Y');
-
- //input박스에 나타난 명을 제거
- ipt_attfilenm.value = "";
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/file/filename" ext="zip" filecount="5" filesize="5242880" validate="true" style="left:630px; top:110px; width:15px; height:20px; "/>
- <datagrid id="grd_AJCClist" nodeset="/root/main/AJCCspeclist/AJCCspeclist" scroll="vertical" autoresize="true" caption="문서제목^파일명^발생일자^발생번호^사용구분" colsep="^" colwidth="540, 540, 0, 0, 70" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="4" style="left:0px; top:170px; width:1193px; height:565px; ">
- <col ref="docutitlnm"/>
- <col ref="attfilenm"/>
- <col ref="genrdd"/>
- <col ref="genrno"/>
- <col ref="useyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- //선택한 것을 더블클릭하면 내역에 표시되게 한다.
- var row = grd_AJCClist.row;
- var docutitl = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/docutitlnm");
- var attfile = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/attfilenm");
- var useyn = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/useyn");
- var genrdd = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/genrdd");
- var genrno = model.getValue("/root/main/AJCCspeclist/AJCCspeclist[" + row + "]/genrno");
-
- model.setValue("/root/main/info/AJCCspecinfo/docutitlnm", docutitl);
- model.setValue("/root/main/info/AJCCspecinfo/attfilenm", attfile);
- model.setValue("/root/main/info/AJCCspecinfo/useyn", useyn);
- model.setValue("/root/main/info/AJCCspecinfo/genrdd", genrdd);
- model.setValue("/root/main/info/AJCCspecinfo/genrno", genrno);
-
- //더블클릭하는 것은 수정하는 경우이기 때문에 상태를 수정으로 만든다
- model.setValue("/root/main/info/AJCCspecinfo/status", 'u');
-
- //입력불가상태를 입력가능하게 변경해줌
- ipt_docutitlnm.disabled = 'false';
- ipt_attfilenm.disabled = 'true';
- cmb_useYN.disabled = 'false';
-
- //사용구분이 사용인 문서제목이 조회되는 팝업을 띄워줌
- open("SPMMO13900","1","150","150","SPMMO13900");
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption18" class="tit_2" style="left:0px; top:150px; width:139px; height:13px; vertical-align:middle; ">AJCC 내역리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:165px; x2:1193px; y2:165px; "/>
- </xhtml:body>
- </xhtml:html>
|