123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?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>
- <condition>
- <srchflag>U</srchflag>
- <srchnm/>
- </condition>
- <antibioflagtermlist>
- </antibioflagtermlist>
- <antibioflagterminfo>
- <useyn/>
- <rstbtrcd/>
- <rstbtrcdnm/>
- <fromdt/>
- <todt/>
- <remark/>
- <fstrgstdt/>
- <fstrgstrid/>
- <fstrgstrnm/>
- </antibioflagterminfo>
- </main>
- <send>
- </send>
- <hidden>
- </hidden>
- <init>
- <currentdt>
- <today/>
- <currunttime/>
- </currentdt>
- <userinfo>
- <userid/>
- <usernm/>
- <instcd/>
- </userinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/antibioflagtermlist/info");
-
- var currentTime = getCurrentTime();
- model.setValue("/root/init/currentdt/today", getCurrentDate());
- model.setValue("/root/init/currentdt/currunttime", currentTime.substr(0,6));
-
- model.setValue("/root/init/userinfo/userid", getUserId());
- model.setValue("/root/init/userinfo/usernm", getUserName());
- model.setValue("/root/init/userinfo/instcd", getUserInfo("posinstcd"));
-
- var srchnm = model.getValue("/root/main/condition/srchnm");
- srchnm = srchnm.toUpperCase( );
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
- model.makeValue("/root/send/reqdata/srchnm", srchnm);
-
- //submit("TRASB01301");
- ]]>
- </script>
- <submission id="TXASB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/antibioflagtermlist"/>
- <submission id="TRASB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibioflagtermlist"/>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function fClsDetlinfo() {
- model.setValue("/root/main/antibioflagterminfo/rstbtrcdnm", "");
- model.setValue("/root/main/antibioflagterminfo/fromdt", "");
- model.setValue("/root/main/antibioflagterminfo/useyn", "");
- model.setValue("/root/main/antibioflagterminfo/todt", "");
- model.setValue("/root/main/antibioflagterminfo/remark", "");
- model.setValue("/root/main/antibioflagterminfo/fstrgstdt", "");
- model.setValue("/root/main/antibioflagterminfo/fstrgstrnm", "");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">항생제내성균 용어관리</caption>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button3" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodelist = instance1.selectNodes("/root/main/antibioflagtermlist/info");
-
- for(var i=1; i<=nodelist.length; i++){
- var node = nodelist.item(i-1);
- var rstbtrcdnmNode = node.selectSingleNode("rstbtrcdnm");
-
- if( rstbtrcdnmNode.text == "" && grd_antibioflagtermlist.rowStatus(i) != 4 ){
- /*
- if( grd_antibioflagtermlist.rowStatus(i) == 1 || grd_antibioflagtermlist.rowStatus(i) == 3 ){
- grd_antibioflagtermlist.deleteItem(i);
- rmRowYN = "Y";
- }
- */
- if( grd_antibioflagtermlist.rowStatus(i) == 1 || grd_antibioflagtermlist.rowStatus(i) == 2 || grd_antibioflagtermlist.rowStatus(i) == 3 ){
- messageBox("내성균 구분명은 ", "I003");
- return;
- }
- }
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata/data");
- model.makeNode("/root/send/savedata/condition");
- model.setValue("/root/send/savedata/data", grd_antibioflagtermlist.getUpdateData());
-
- model.copyNode("/root/send/savedata/condition", "/root/main/condition");
- if( !submit("TXASB01301", false) ){
- messageBox("저장을 ", "E009");
- return;
- }
- if( instance1.selectSingleNode("/root/main/antibioflagtermlist/dupeyn/dupeyn") ){
- messageBox("중복된 내성균구분명이 존재하여 저장할 수 ", "I004");
- model.removeNodeset("/root/main/antibioflagtermlist/dupeyn");
- grd_antibioflagtermlist.refresh();
- return;
- }
-
- grd_antibioflagtermlist.refresh();
- grd_antibioflagtermlist.clearStatus();
- fClsDetlinfo() ;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="button2" class="btn2_letter3" style="left:1040px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_antibioflagtermlist.addRow();
- var curCnt = grd_antibioflagtermlist.rows - grd_antibioflagtermlist.fixedRows;
-
- model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fstrgstdt", getCurrentDate() + getCurrentTime());
- model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fstrgstrnm", model.getValue("/root/init/userinfo/usernm"));
- model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fromdt", getCurrentDate() + getCurrentTime());
- model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/todt", "99991231235959");
- model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/useyn", "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1095px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_antibioflagtermlist.row - grd_antibioflagtermlist.fixedRows + 1;
- if(iRow < 1){
- return;
- }
- var status = grd_antibioflagtermlist.rowStatus(iRow);
- if(status == 1 || status == 3){
- grd_antibioflagtermlist.deleteItem(iRow);
- }else{
- grd_antibioflagtermlist.rowStatus(iRow)= 4;
- }
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <caption id="caption63" class="cell_1" style="left:0px; top:694px; width:95px; height:23px; vertical-align:middle; ">항생제내성균</caption>
- <input id="input45" ref="/root/main/antibioflagterminfo/rstbtrcdnm" class="input_default" disabled="true" style="left:98px; top:695px; width:100px; height:19px; "/>
- <caption id="importcaption1" class="tit_2" style="left:0px; top:674px; width:165px; height:13px; ">상세정보</caption>
- <line id="importline2" class="line_1" style="x1:0px; y1:689px; x2:1193px; y2:689px; "/>
- <caption id="importcaption3" class="cell_1" style="left:994px; top:694px; width:95px; height:23px; vertical-align:middle; ">등록일</caption>
- <input id="importinput1" ref="/root/main/antibioflagterminfo/fstrgstdt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:1092px; top:695px; width:100px; height:19px; "/>
- <caption id="importcaption4" class="cell_1" style="left:0px; top:718px; width:95px; height:23px; vertical-align:middle; ">시작일</caption>
- <input id="importinput2" ref="/root/main/antibioflagterminfo/fromdt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:98px; top:719px; width:100px; height:19px; "/>
- <caption id="importcaption5" class="cell_1" style="left:201px; top:718px; width:95px; height:23px; vertical-align:middle; ">종료일</caption>
- <input id="importinput3" ref="/root/main/antibioflagterminfo/todt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:299px; top:719px; width:100px; height:19px; "/>
- <caption id="importcaption6" class="cell_1" style="left:994px; top:718px; width:95px; height:23px; vertical-align:middle; ">등록자</caption>
- <input id="importinput4" ref="/root/main/antibioflagterminfo/fstrgstrnm" class="input_default" disabled="true" style="left:1092px; top:720px; width:100px; height:19px; "/>
- <line id="importline4" class="line_2" style="x1:0px; y1:716px; x2:400px; y2:716px; "/>
- <line id="importline6" class="line_3" style="x1:0px; y1:657px; x2:1194px; y2:657px; "/>
- <caption id="importcaption14" class="cell_1" style="left:403px; top:694px; width:105px; height:46px; vertical-align:middle; ">Remark</caption>
- <line id="importline10" class="line_2" style="x1:0px; y1:740px; x2:403px; y2:740px; "/>
- <caption id="importcaption13" class="cell_1" style="left:201px; top:694px; width:95px; height:23px; vertical-align:middle; ">사용여부</caption>
- <select1 id="importradio1" ref="/root/main/antibioflagterminfo/useyn" disabled="true" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:299px; top:696px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <textarea id="importtextarea1" ref="/root/main/antibioflagterminfo/remark" disabled="true" style="left:511px; top:695px; width:480px; height:43px; "/>
- <line id="importline1" class="line_2" style="x1:995px; y1:716px; x2:1193px; y2:716px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0; top:7px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="importline3" class="line_3" style="x1:0px; y1:740px; x2:1193px; y2:740px; "/>
- <line id="line13" class="line_4" style="x1:1100px; y1:14px; x2:1100px; y2:36px; "/>
- <caption id="caption4" class="search_name" style="left:300px; top:15px; width:60px; height:17px; ">조회 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">구분 :</caption>
- <button id="btn_srchtermcd" class="btn1_letter2" navindex="4" style="left:1115px; top:14px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchnm = model.getValue("/root/main/condition/srchnm");
-
- if( (srchnm.charCodeAt(0) >= 0 && srchnm.charCodeAt(0) <48) || (srchnm.charCodeAt(0) > 58 && srchnm.charCodeAt(0) < 65) || (srchnm.charCodeAt(0) > 122 && srchnm.charCodeAt(0) <= 255) ){
- messageBox("검색어의 첫 글자로 공백이나 특수문자를 사용할 수 ", "I004");
- return;
- }
- model.removeNodeset("/root/send/reqdata");
- srchnm = srchnm.toUpperCase( );
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
- model.makeValue("/root/send/reqdata/srchnm", srchnm);
- fClsDetlinfo() ;
- submit("TRASB01301");
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/main/condition/srchflag" class="radio_search" navindex="2" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:70px; top:15px; width:220px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사용중인 용어만 조회</label>
- <value>U</value>
- </item>
- <item>
- <label>모두 조회</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="input5" ref="/root/main/condition/srchnm" class="input_search" navindex="3" style="left:368px; top:14px; width:157px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchtermcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="importbutton1" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var dispNm = getTitle();
- var dispNm = cap_gridlist.attribute("text");
- var fileName = window.fileDialog("save", ",", false, dispNm, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_antibioflagtermlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_antibioflagtermlist" nodeset="/root/main/antibioflagtermlist/info" caption="사용여부^내성균구분^시작일자^종료일자^Remark^등록일^등록자^등록자ID^caption1" colsep="^" colwidth="57, 127, 100, 100, 790, 100, 73, 90, 100" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:76px; width:1193px; height:580px; ">
- <col ref="useyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rstbtrcdnm" type="input"/>
- <col ref="fromdt" type="inputdate" visibility="hidden"/>
- <col ref="todt" type="inputdate" visibility="hidden"/>
- <col ref="remark" type="input"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="rstbtrcd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_antibioflagtermlist.col == 1 ) {
- var iRow = grd_antibioflagtermlist.row;
- if(model.getValue("/root/main/antibioflagtermlist/info[" +iRow + "]/useyn") == "N") {
- model.setValue("/root/main/antibioflagtermlist/info[" + +iRow + "]/todt", getCurrentDate() + getCurrentTime());
- grd_antibioflagtermlist.rowstatus(iRow) = 4;
- } else {
- model.setValue("/root/main/antibioflagtermlist/info[" + +iRow + "]/todt", "99991231235959");
- grd_antibioflagtermlist.rowstatus(iRow) = 1;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_antibioflagtermlist.row != ""){
- model.copyNode("/root/main/antibioflagterminfo", "/root/main/antibioflagtermlist/info[" + grd_antibioflagtermlist.row + "]");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_antibioflagtermlist.mouseRow == 0){
- grd_antibioflagtermlist.explorerbar = "sortmove";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_antibioflagtermlist.row < 1 ) {
- return ;
- }
- grd_antibioflagtermlist.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( event.keyCode == 13 ) { // Cell 에서 Enter를 치게 되면 이벤트를 발생한다.
- if(grd_antibioflagtermlist.col == 2 ) {
- grd_antibioflagtermlist.col = 5;
- grd_antibioflagtermlist.editCell();
-
- }
- else if (grd_antibioflagtermlist.col == 5) {
- // alert(grd_antibioflagtermlist.row);
- grd_antibioflagtermlist.row = grd_antibioflagtermlist.row + 1;
- grd_antibioflagtermlist.col= 2;
- grd_antibioflagtermlist.editCell();
-
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="cap_gridlist" class="tit_2" style="left:5px; top:55px; width:178px; height:13px; ">항생제내성균 용어리스트</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|