123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?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>
- <miglist>
- <list>
- <pat>
- <pid/>
- <hngnm/>
- <sexage/>
- <rrgstno/>
- <addr/>
- <copyfromdt/>
- <copyenddt/>
- <fstuser/>
- <remfact/>
- </pat>
- </list>
- </miglist>
- <list/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <gridpid/>
- <cond>
- <pid/>
- <fstrgstdt/>
- <todd/>
- </cond>
- <miglist/>
- <instcd>012</instcd>
- </send>
- <source>
- <autoflag/>
- </source>
- <isxlsload/>
- <result>
- <list>
- <name>
- <pid/>
- <hngnm/>
- <sexage/>
- </name>
- </list>
- </result>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/miglist/list"/>
- <submission id="TXZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/miglist" resultref="/root/main/list"/>
- <submission id="TRZTM00102" method="post" ref="/root/send" resultref="/root/result/list"/>
- <submission id="TXZTM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /** ----------------------------------------------------------------------
- *
- * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
- *
- * ----------------------------------------------------------------------
- **/
- function getDateAddc(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
-
- return backDate ;
- }
- function fInitialize(){
- button2.disabled = false;
- var today = getCurrentDate();
- model.setValue("/root/send/cond/pid", "");
- model.setValue("/root/send/cond/fstrgstdt", today);
- model.setValue("/root/send/cond/todd", getDateAddc(today, -1));
-
- model.removeNodeset("/root/main/miglist/list/pat");
- model.refresh();
- }
-
- function checkGridUpdate(grid)
- {
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else return true;
- }
-
-
- function fGetMigList(){
- model.removeNodeset("/root/main/miglist/list/pat");
- model.refresh();
- submit("TRZTM00101");
- //button2.disabled = true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">전환 Backup자료 이관처리</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line18" class="line_4" style="x1:1016px; y1:7px; x2:1016px; y2:29px; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter2" style="left:1035px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetMigList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:355px; top:8px; width:76px; height:17px; ">작업일자</caption>
- <input id="ipt_execdd" ref="/root/send/cond/fstrgstdt" class="input_default" inputtype="date" style="left:443px; top:8px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:76px; height:17px; ">등록번호</caption>
- <input id="input2" ref="/root/send/cond/pid" class="input_search" style="left:95px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- input2.value = input2.currentText;
- fGetMigList();
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" navindex="-1" style="left:200px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
- model.setValue("/root/source/autoflag", "Y");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkGridUpdate(grd_miglist))
- {
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
- for(var i=1; i<grd_miglist.rows; i++) {
- var iStatus = grd_miglist.rowstatus(i);
- var pid = grd_miglist.textmatrix(i, 1);
- if(pid == "" && iStatus == 1){
- grd_miglist.removeStatus(i, "insert");
- }
- }
-
- model.setValue("/root/send/miglist",grd_miglist.getUpdateData());
-
- if ( submit("TXZTM00101") ) {
- grd_miglist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/isxlsload",""); // 엑셀 로드 상태 제거 -> 이거 안 해주면 재앙이 닥친다. 무조건 insert로 지정한다.
- submit("TXZTM00102");
- fGetMigList();
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line20" class="line_1" style="x1:1px; y1:81px; x2:1194px; y2:81px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:223px; height:14px; ">전환 Backup자료 이관처리 리스트</caption>
- <group id="group2" style="left:560px; top:55px; width:633px; height:25px; ">
- <button id="button8" class="btn2_letter3" style="left:522px; top:6px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_miglist.addRow(); // 입력할 행 추가.
- var cur_row = grd_miglist.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_miglist.rows; // 현재 행의 갯수 가져오기
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:578px; top:6px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_miglist.row; // 행 번호 가져오기
- var iStatus = grd_miglist.rowstatus(cur_row);
-
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
- grd_miglist.deleteitem(cur_row);
- grd_miglist.addStatus(cur_row, "delete");
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter4" style="left:455px; top:6px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/miglist/list/pat");
- var fileName = window.fileDialog("open", "", false);
- grd_miglist.loadExcel(fileName);
-
- if(fileName != ""){
-
- for (i=grd_miglist.fixedRows; i<grd_miglist.rows; i++)
- {
- grd_miglist.rowStatus(i) = 1;
- }
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter6" style="left:235px; top:6px; width:86px; height:19px; ">
- <caption>환자진료정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMMO02500");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter10" style="left:323px; top:6px; width:130px; height:19px; ">
- <caption>2006년 이전자료 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPZTM00200");
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_miglist" nodeset="/root/main/miglist/list/pat" caption="등록번호^환자명^Sex/Age^주민등록번호^주소^시작일시^종료일시^최초등록자^비고^seq" colsep="^" colwidth="90, 95, 70, 130, 330, 120, 120, 90, 100" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:85px; width:1194px; height:640px; ">
- <col ref="pid" type="input"/>
- <col ref="hngnm"/>
- <col ref="sexage"/>
- <col ref="rrgstno"/>
- <col ref="addr"/>
- <col ref="copyfromdt" format="yyyy-mm-dd 99:99:99"/>
- <col ref="copyenddt" format="yyyy-mm-dd 99:99:99"/>
- <col ref="fstuser"/>
- <col ref="remfact" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var curRow = grd_miglist.row;
- var gridPid = model.getValue("/root/main/miglist/list/pat["+ curRow +"]/pid");
- model.setValue("/root/send/gridpid", gridPid);
-
- submit("TRZTM00102");
- model.refresh();
- if(model.getValue("/root/result/list/name/pid") == "0")
- {
- alert("환자 목록에 없습니다");
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/pid", "");
- }else {
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/pid", model.getValue("/root/result/list/name/pid"));
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/hngnm", model.getValue("/root/result/list/name/hngnm"));
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/sexage", model.getValue("/root/result/list/name/sexage"));
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/rrgstno", model.getValue("/root/result/list/name/rrgstno"));
- model.setValue("/root/main/miglist/list/pat["+ curRow +"]/addr", model.getValue("/root/result/list/name/addr"));
-
- grd_miglist.addRow(); // 입력할 행 추가.
-
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
- <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|