123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <antibionsgbrcdlist>
- </antibionsgbrcdlist>
- <condition>
- <orderstandard>R</orderstandard>
- <srchflag>U</srchflag>
- </condition>
- </main>
- <hidden>
- <getdata>
- <cd/>
- <nm/>
- </getdata>
- </hidden>
- <send>
- </send>
- <init>
- <currentdt>
- <today/>
- <currunttime/>
- </currentdt>
- <userinfo>
- <userid/>
- <usernm/>
- <instcd/>
- </userinfo>
- <nsgbrtermlist>
- <nsgbrterm>
- <cdid/>
- <cdnm/>
- </nsgbrterm>
- </nsgbrtermlist>
- </init>
- <temp>
- <currentdt>
- <today/>
- <currunttime/>
- </currentdt>
- <userinfo>
- <userid/>
- <usernm/>
- <instcd/>
- </userinfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- fGetUserInfo();
-
- model.copyNode("/root/send", "/root/main/condition");
- submit("TRASB00302");
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- var currentTime = getCurrentTime();
- model.setValue("/root/init/currentdt/today", getCurrentDate());
- model.setValue("/root/init/currentdt/currunttime", currentTime.substr(0,4));
-
- model.setValue("/root/init/userinfo/userid", getUserId());
- model.setValue("/root/init/userinfo/usernm", getUserName());
- model.setValue("/root/init/userinfo/instcd", getUserInfo("posinstcd"));
-
- submit("TRASB00301");
-
- var itemNode = instance1.createNode("element", "nsgbrterm", "");
- var labelNode = instance1.createNode("element", "cdid", "");
- var valueNode = instance1.createNode("element", "cdnm", "");
- itemNode.appendChild(labelNode);
- itemNode.appendChild(valueNode);
-
- var destNode = instance1.selectSingleNode("/root/init/nsgbrtermlist/nsgbrterm[1]");
- var pDestNode = destNode.parentNode;
- pDestNode.insertBefore(itemNode, destNode);
- }
-
- function fGetUserInfo(){
- model.setValue("/root/temp/userinfo/userid", getUserId());
- model.setValue("/root/temp/userinfo/usernm", getUserName());
- model.setValue("/root/temp/userinfo/instcd", getUserInfo("posinstcd"));
- }
- ]]>
- </script>
- <submission id="TRASB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/nsgbrtermlist"/>
- <submission id="TRASB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/antibionsgbrcdlist"/>
- <submission id="TXASB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/antibionsgbrcdlist"/>
- </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="../../../emr/termmngtweb/js/MRTCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:162px; 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:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodelist = instance1.selectNodes("/root/main/antibionsgbrcdlist/info");
-
- // insert 모드이면서, 입력된 값이 하나도 없다면 행을 바로 삭제하고, 그렇지 않다면, 경고메세지 출력
- for(var i=1; i<=nodelist.length; i++){
- var node = nodelist.item(i-1);
- var nsgbrcdNode = node.selectSingleNode("nsgbrcd"); //내성균구분
- var baccdNode = node.selectSingleNode("baccd"); //균주
- var anticdNode = node.selectSingleNode("anticd"); //항생제
- var decrstNode = node.selectSingleNode("decrst"); //감수성조건
-
- if( (isNull(nsgbrcdNode.text) || isNull(baccdNode.text) || isNull(anticdNode.text) || isNull(decrstNode.text)) && grd_antibionsgbrcdlist.rowStatus(i) != 4 ){
- /*if( (isNull(nsgbrcdNode.text) && isNull(baccdNode.text) && isNull(anticdNode.text) && isNull(decrstNode.text)) && grd_antibionsgbrcdlist.rowStatus(i) == 1 ){
- grd_antibionsgbrcdlist.deleteItem(i);
-
- }*/
- if(isNull(nsgbrcdNode.text)){
- messageBox("내성균 구분 선택은 ", "I003");
- return;
- }else if(isNull(baccdNode.text)){
- messageBox("균주 선택은 ", "I003");
- return;
- }else if(isNull(anticdNode.text)){
- messageBox("항생제 선택은 ", "I003");
- return;
- }else if(isNull(decrstNode.text)){
- messageBox("감수성 조건 선택은 ", "I003");
- return;
- }
- }
- }
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/data", grd_antibionsgbrcdlist.getUpdateData());
- model.copyNode("/root/send/savedata/condition", "/root/main/condition");
-
- if( !submit("TXASB00301") ){
- messageBox("저장을 ", "E009");
- return;
- }
- ]]>
- </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:1041px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_antibionsgbrcdlist.addRow();
- var curCnt = grd_antibionsgbrcdlist.rows - grd_antibionsgbrcdlist.fixedRows;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + curCnt + "]/fstrgstdt", model.getValue("/root/init/currentdt/today") + model.getValue("/root/init/currentdt/currunttime") + "00");
- model.setValue("/root/main/antibionsgbrcdlist/info[" + curCnt + "]/fstrgstrnm", model.getValue("/root/init/userinfo/usernm"));
- model.setValue("/root/main/antibionsgbrcdlist/info[" + curCnt + "]/fromdt", getCurrentDate() + getCurrentTime());
- model.setValue("/root/main/antibionsgbrcdlist/info[" + curCnt + "]/todt", "99991231235959");
- model.setValue("/root/main/antibionsgbrcdlist/info[" + curCnt + "]/useyn", "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1096px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_antibionsgbrcdlist.row - grd_antibionsgbrcdlist.fixedRows + 1;
- if(iRow < 1){
- return;
- }
- var status = grd_antibionsgbrcdlist.rowStatus(iRow);
- if(status == 1){
- grd_antibionsgbrcdlist.deleteRow(iRow);
- }else{
- grd_antibionsgbrcdlist.rowStatus(iRow)= 4;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:165px; height:13px; ">항생제내성균 코드관리</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <button id="importbutton1" class="btn2_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "항생제내성균", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_antibionsgbrcdlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_antibionsgbrcdlist" nodeset="/root/main/antibionsgbrcdlist/info" class="datagrid2" caption="사용
여부^내성균구분^균주^caption1^항생제명^caption2^순번^감수성
조건^시작일자^종료일자^등록일^등록자^등록자ID" colsep="^" colwidth="43, 109, 335, 33, 330, 28, 42, 49, 95, 85, 90, 90, 85" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:76px; width:1194px; height:666px; ">
- <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="nsgbrcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/nsgbrtermlist/nsgbrterm">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="bacnm" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_antibionsgbrcdlist.col == 3 && grd_antibionsgbrcdlist.mouseRow <= grd_antibionsgbrcdlist.rows && grd_antibionsgbrcdlist.mouseRow > 0) { //균주 조회
- var iRow = grd_antibionsgbrcdlist.row;
- var status = "";
- modal("SPASB00400", 0, 0, 0, "SPASB00400");
-
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- if( grd_antibionsgbrcdlist.rowstatus(iRow) != 1 && grd_antibionsgbrcdlist.rowstatus(iRow) != 3 && !isNull(model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd")) ){
- status = "U";
- }
-
- if(status == "U" && model.getValue("/root/hidden/getdata/cd") == model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd")){
- return;
- }
-
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/bacnm", model.getValue("/root/hidden/getdata/nm"));
- grd_antibionsgbrcdlist.refresh();
- model.resetInstanceNode("/root/hidden/getdata");
-
- if(status != "U"){
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- }else{
- grd_antibionsgbrcdlist.rowstatus(iRow) = 2;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- }
- }
- }
- ]]>
- </script>
- <col ref="baccd" visibility="hidden"/>
- <col ref="antinm" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_antibionsgbrcdlist.col == 5 && grd_antibionsgbrcdlist.mouseRow <= grd_antibionsgbrcdlist.rows && grd_antibionsgbrcdlist.mouseRow > 0) { //항생제 조회
- var iRow = grd_antibionsgbrcdlist.row;
- var status = "";
- modal("SPASB00500", 0, 0, 0, "SPASB00500");
-
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- if( grd_antibionsgbrcdlist.rowstatus(iRow) != 1 && grd_antibionsgbrcdlist.rowstatus(iRow) != 3 && !isNull(model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd")) ){
- status = "U";
- }
-
- if(status == "U" && model.getValue("/root/hidden/getdata/cd") == model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd")){
- return;
- }
-
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/antinm", model.getValue("/root/hidden/getdata/nm"));
- grd_antibionsgbrcdlist.refresh();
- model.resetInstanceNode("/root/hidden/getdata");
-
- if(status != "U"){
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- }else{
- grd_antibionsgbrcdlist.rowstatus(iRow) = 2;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- }
- }
- }
- ]]>
- </script>
- <col ref="anticd" visibility="hidden"/>
- <col ref="seq" type="input" visibility="hidden"/>
- <col ref="decrst" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>R</label>
- <value>R</value>
- </item>
- <item>
- <label>I</label>
- <value>I</value>
- </item>
- <item>
- <label>S</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="fromdt" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="todt" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_antibionsgbrcdlist.mouseRow == 0){
- grd_antibionsgbrcdlist.explorerbar = "sortmove";
- }
-
- var iRow = grd_antibionsgbrcdlist.row;
- var status = "";
-
- if(grd_antibionsgbrcdlist.col == 3 && grd_antibionsgbrcdlist.mouseRow <= grd_antibionsgbrcdlist.rows && grd_antibionsgbrcdlist.mouseRow > 0) { //균주 조회
- modal("SPASB00400", 0, 0, 0, "SPASB00400");
-
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- if( grd_antibionsgbrcdlist.rowstatus(iRow) != 1 && grd_antibionsgbrcdlist.rowstatus(iRow) != 3 && !isNull(model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd")) ){
- status = "U";
- }
-
- if(status == "U" && model.getValue("/root/hidden/getdata/cd") == model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd")){
- return;
- }
-
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/baccd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/bacnm", model.getValue("/root/hidden/getdata/nm"));
- grd_antibionsgbrcdlist.refresh();
- model.resetInstanceNode("/root/hidden/getdata");
-
- if(status != "U"){
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- }else{
- grd_antibionsgbrcdlist.rowstatus(iRow) = 2;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- }
- }
-
- } else if(grd_antibionsgbrcdlist.col == 5 && grd_antibionsgbrcdlist.mouseRow <= grd_antibionsgbrcdlist.rows && grd_antibionsgbrcdlist.mouseRow > 0) { //항생제 조회
- modal("SPASB00500", 0, 0, 0, "SPASB00500");
-
- if(model.getValue("/root/hidden/getdata/cd") != ""){
- if( grd_antibionsgbrcdlist.rowstatus(iRow) != 1 && grd_antibionsgbrcdlist.rowstatus(iRow) != 3 && !isNull(model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd")) ){
- status = "U";
- }
-
- if(status == "U" && model.getValue("/root/hidden/getdata/cd") == model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd")){
- return;
- }
-
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/anticd", model.getValue("/root/hidden/getdata/cd"));
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/antinm", model.getValue("/root/hidden/getdata/nm"));
- grd_antibionsgbrcdlist.refresh();
- model.resetInstanceNode("/root/hidden/getdata");
-
- if(status != "U"){
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- }else{
- grd_antibionsgbrcdlist.rowstatus(iRow) = 2;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_antibionsgbrcdlist.row;
- var mRow = grd_antibionsgbrcdlist.mouseRow;
- var rowCnt = grd_antibionsgbrcdlist.rows;
-
- if( grd_antibionsgbrcdlist.rowstatus(iRow) != 1 ){
-
- if( grd_antibionsgbrcdlist.mouseCol == 1 ) { //사용 여부 변경
- var iRow = grd_antibionsgbrcdlist.row;
- if(model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/useyn") == "N") {
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", getCurrentDate() + getCurrentTime());
- grd_antibionsgbrcdlist.rowstatus(iRow) = 4;
- } else {
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/todt", "99991231235959");
- grd_antibionsgbrcdlist.rowstatus(iRow) = 2;
- }
- }
- } else{
- if( grd_antibionsgbrcdlist.mouseCol == 2 ) { //내성균 구분 변경
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- /*
- // seq 컬럼의 용도가 내성균코드 전체에 대한 seq 로 용도가 바뀜에 따라 필요가 없음(server 단에서 max(seq)+1 구함
- var maxVal = 1;
- var selNsgbrCd = model.getValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/nsgbrcd");
- for(var i=1; i<rowCnt; i++) {
- if( selNsgbrCd == model.getValue("/root/main/antibionsgbrcdlist/info[" + i + "]/nsgbrcd") && i != iRow ){
- // i != iRow : 현재 선택한 컬럼의 내성균구분의 순번은 비교하면 안된다.
- if( model.getValue("/root/main/antibionsgbrcdlist/info[" + i + "]/seq") > maxVal){
- maxVal = model.getValue("/root/main/antibionsgbrcdlist/info[" + i + "]/seq");
- }
- }
- }
- maxVal = parseInt(maxVal)+1;
- model.setValue("/root/main/antibionsgbrcdlist/info[" + iRow + "]/seq", maxVal);
- grd_antibionsgbrcdlist.refresh();
- */
- }
-
- if( grd_antibionsgbrcdlist.mouseCol == 8 ) { //감수성 조건 변경
- grd_antibionsgbrcdlist.rowstatus(iRow) = 1;
- }
- }
- ]]>
- </script>
- </datagrid>
- <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="line13" class="line_4" style="x1:1090px; y1:14px; x2:1090px; y2:36px; "/>
- <button id="btn_srchtermcd" class="btn1_letter3" navindex="4" style="left:1105px; top:14px; width:68px; height:22px; ">
- <caption>재조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send");
- model.copyNode("/root/send", "/root/main/condition");
- submit("TRASB00302");
- ]]>
- </script>
- </button>
- <select1 id="importradio1" ref="/root/main/condition/orderstandard" appearance="full" cols="2" overflow="visible" style="left:485px; top:15px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>등록일순</label>
- <value>R</value>
- </item>
- <item>
- <label>내성균 구분순</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">조회범위 :</caption>
- <select1 id="radio2" ref="/root/main/condition/srchflag" class="radio_search" navindex="2" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:110px; 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>
- <caption id="importcaption1" class="search_name" style="left:390px; top:15px; width:86px; height:17px; ">정렬순서 :</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|