123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481 |
- <?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>영상장비 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <goodlist>
- <item>
- <goodid/>
- <goodnm/>
- <suppdeptcd/>
- <goodmodel/>
- <goodspec/>
- <aetitle/>
- <ipaddress/>
- <netgate/>
- <workgate/>
- <modality/>
- <installplace/>
- <mngtdeptcd/>
- <mngtcntctel/>
- <suplcntctel/>
- <useyn/>
- <fixasetcd/>
- <cmt/>
- <excuroomcd/>
- </item>
- </goodlist>
- </main>
- <send>
- <srch>
- <srchgoodid/>
- <srchgoodnm/>
- <suppdeptcd/>
- <excuroomcd/>
- </srch>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data>
- </data>
- <suppdeptcd/>
- </req>
- <grupcdid/>
- </send>
- <hidden>
- <item>
- </item>
- <barprntinfo>
- <comport>1</comport>
- <setting>9600,n,8,1</setting>
- <ip/>
- <patdonor>1</patdonor>
- </barprntinfo>
- </hidden>
- <temp/>
- <init>
- <cmb_info>
- <initnetg>
- <cdid/>
- <cdnm/>
- <grupcdid/>
- </initnetg>
- <initworkg>
- <cdid/>
- <cdnm/>
- <grupcdid/>
- </initworkg>
- <initmodal>
- <cdid/>
- <cdnm/>
- <grupcdid/>
- </initmodal>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- <excuroomcdlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomcdlist>
- </cmb_info>
- </init>
- <rexsend>
- <rexbarcode>
- <goodid/>
- <goodnm/>
- <suppdeptcd/>
- <goodmodel/>
- <goodspec/>
- <aetitle/>
- <ipaddress/>
- <netgate/>
- <workgate/>
- <modality/>
- <installplace/>
- <mngtdeptcd/>
- <mngtcntctel/>
- <suplcntctel/>
- <useyn/>
- <fixasetcd/>
- <cmt/>
- <excuroomcd/>
- </rexbarcode>
- </rexsend>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // globalinstance 셋팅
- // 메뉴 파라미터가 지정되어 있으면 해당 값으로 셋팅하고 그렇치 않으면 기본값 셋팅
- var suppdeptcd = "";
- suppdeptcd = getScreenMenuParameter();
- if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null"){
- aezfSetSuppDeptcd();
- }else{
- model.setValue("/root/send/globalinstance/instance1", suppdeptcd);
- }
- //submit("TRAEB00205", false); // 수행부서 코드 가져오기
-
- //submit("TRAEA05301", false); //지원부서
-
- // 지원부서, Modal 등의 공통정보를 가져온다. App단에서 그룹코드별 셋팅을 입력해 놓는다.
- model.setValue("/root/send/grupcdid","A");
- submit("TRAEB05002");
-
- model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- // model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/srch/suppdeptcd"));
- model.setValue("/root/send/srch/excuroomcd", "");
- submit("TRAEA00902", false);
-
-
- model.removeNodeset("/root/main/goodlist/item");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRAEB05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
- <submission id="TXAEB05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <!-- Modal, netgate, workgate 등의 공통정보를 가져온다 -->
- <submission id="TRAEB05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- <!-- 부서 -->
- <submission id="TRAEA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
- <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
- <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fnGetMainList()
- {
- model.removeNodeset("/root/main/goodlist/item");
-
- submit("TRAEB05001");
- }
-
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- // open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- // 렉스퍼트로 라벨출력가능하게 수정
- open("SPZUR00300", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- ]]>
- </script>
- <xhtml:body guideline="1,1195;2,786;2,639;2,420;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">영상장비 코드 관리</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_goodlist.addRow();
- grd_goodlist.row = grd_goodlist.rows;
-
- var cnt = parseInt(grd_goodlist.row);
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.setValue("/root/main/goodlist/item[" + cnt + "]/mngtdeptcd", model.getValue("/root/send/globalinstance/instance1") );
-
- grd_goodlist.isReadOnly(cnt, 1) = false;
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
- deleteSelectedRows(grd_goodlist, true);
- ]]>
- </script>
- </button>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!astfNullValidation("/root/main/goodlist/item", "goodnm", "장비명을")) return false;
- if(!astfNullValidation("/root/main/goodlist/item", "ipaddress", "장비의 IP를")) return false;
-
- for(i = 1; i < grd_goodlist.rows; i++)
- {
- var ipaddress = model.getValue("/root/main/goodlist/item[" + i + "]/ipaddress");
-
- var cnt = model.getXPathValue("count(/root/main/goodlist/item[ipaddress = '" + ipaddress + "'])");
-
- if(cnt > 1)
- {
- messageBox("장비 IP [" + ipaddress + "]가 ", "E006");
- return false;
- }
- }
-
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_goodlist);
-
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
-
- if (submit("TXAEB05001")) {
-
- // 저장 후 팝업인 경우 변경 여부 returng하고 창을 닫는다
- submit("TRAEB05001");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_goodlist" nodeset="/root/main/goodlist/item" caption="ID^장비명^모델명^테이블^지원부서^검사/치료실^AETitle^IP^NetGate^WorkGate^Modality^설치장소^관리부서^관리자연락처^공급자연락처^사용여부^비고^자산번호" colsep="^" colwidth="36, 200, 105, 161, 130, 85, 110, 107, 100, 100, 62, 181, 119, 111, 124, 55, 151, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1195px; height:665px; ">
- <col disabled="true" editable="false" ref="goodid" style="text-align:center; "/>
- <col editable="false" ref="goodnm" type="inputbutton">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //model.removeNode("/root/temp");
- //model.makeNode("/root/temp");
- model.copyNode("/root/temp", "/root/main/goodlist/item[" + grd_goodlist.row + "]");
-
- //model.setValue("/root/temp/goodid", model.getValue("/root/main/goodlist/item/goodid"));
-
- modal("SPAEB05000", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- model.refresh();
-
- var selectedrow = grd_goodlist.selectedCells.item(0).row;
-
- if(model.getValue("/root/temp/goodnm") != "")
- {
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suppdeptcd", model.getValue("/root/temp/suppdeptcd"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/excuroomcd", model.getValue("/root/temp/excuroomcd"));
-
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodid", model.getValue("/root/temp/goodid"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodnm", model.getValue("/root/temp/goodnm"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodmodel", model.getValue("/root/temp/goodmodel"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/goodspec", model.getValue("/root/temp/goodspec"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/aetitle", model.getValue("/root/temp/aetitle"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/ipaddress", model.getValue("/root/temp/ipaddress"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/netgate", model.getValue("/root/temp/netgate"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/workgate", model.getValue("/root/temp/workgate"));
-
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/modality", model.getValue("/root/temp/modality"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/installplace", model.getValue("/root/temp/installplace"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/mngtdeptcd", model.getValue("/root/temp/mngtdeptcd"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/mngtcntctel", model.getValue("/root/temp/mngtcntctel"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suplcntctel", model.getValue("/root/temp/suplcntctel"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/useyn", model.getValue("/root/temp/useyn"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/cmt", model.getValue("/root/temp/cmt"));
-
-
- model.refresh();
- }
- //if (model.getValue("/root/temp/goodid") == "") {
- var update = getGridUpdateData(grd_goodlist);
- grd_goodlist.addStatus(grd_goodlist.row,"update");
- //}
- ]]>
- </script>
- </col>
- <col ref="goodmodel" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="goodspec" type="input" maxbyte="20" maxlength="20" style="text-align:left; "/>
- <col ref="suppdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="suppdeptnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="excuroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="aetitle" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="ipaddress" type="input" maxbyte="20" maxlength="20" style="font-weight:bold; color:#008080; text-align:left; "/>
- <col editmode="input" ref="netgate" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initnetg">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col editmode="input" ref="workgate" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initworkg">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="modality" type="combo" maxbyte="20" maxlength="20">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initmodal">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="installplace" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="mngtdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="suppdeptnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="mngtcntctel" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="suplcntctel" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="useyn" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="cmt" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- <col ref="fixasetcd" type="input" maxbyte="20" maxlength="20" style="text-align:center; "/>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:510px; top:30px; width:80px; height:17px; ">장비IP :</caption>
- <caption id="caption2" class="search_name" style="left:750px; top:30px; width:82px; height:17px; ">장비명 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1126px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fnGetMainList();
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/send/srch/srchgoodid" class="input_search" style="left:585px; top:30px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fnGetMainList();
- }
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/srch/srchgoodnm" class="input_search" style="left:830px; top:30px; width:210px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fnGetMainList();
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:20px; top:30px; width:86px; height:17px; ">지원부서 :</caption>
- <select1 id="cmb_suppdeptcd" ref="/root/send/srch/suppdeptcd" appearance="minimal" style="left:115px; top:30px; width:140px; height:25px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="suppdeptnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/srch/suppdeptcd"));
- model.setValue("/root/send/srch/excuroomcd", "");
- submit("TRAEA00902", false);
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_excuroom" ref="/root/send/srch/excuroomcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:370px; top:30px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:260px; top:30px; width:106px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사/치료실 :</caption>
- <button id="button2" class="btn3_letter4" style="left:892px; top:60px; width:80px; height:22px; ">
- <caption>라벨출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var firstRow = grd_goodlist.selectedRow(0);
- var lastRow = grd_goodlist.selectedRow(grd_goodlist.selectedRows-1);
- var rows = grd_goodlist.selectedRows;
-
- for(var i = 0 ; i < rows; i++) {
- var goodnm = grd_goodlist.valueMatrix(grd_goodlist.selectedRow(i), grd_goodlist.colRef("goodnm"));
- // 위와 동일하게 구현하면
- // var goodnm = model.getValue("/root/main/goodlist/item["+ grd_goodlist.selectedRow(i) + "]/goodnm");
- var ipaddress = grd_goodlist.valueMatrix(grd_goodlist.selectedRow(i), grd_goodlist.colRef("ipaddress"));
- var netgate = grd_goodlist.valueMatrix(grd_goodlist.selectedRow(i), grd_goodlist.colRef("netgate"));
- var workgate = grd_goodlist.valueMatrix(grd_goodlist.selectedRow(i), grd_goodlist.colRef("workgate"));
- var installplace = grd_goodlist.valueMatrix(grd_goodlist.selectedRow(i), grd_goodlist.colRef("installplace"));
-
- if ( goodnm == "" ) {
- messageBox("처방목록이 선택되지 ", "E007");
- return;
- }
-
- model.resetInstanceNode("/root/rexsend/rexbarcode");
- //alert("goodnm = " +goodnm);
- model.setValue("/root/rexsend/rexbarcode/goodnm", goodnm);
- model.setValue("/root/rexsend/rexbarcode/ipaddress", ipaddress);
- model.setValue("/root/rexsend/rexbarcode/netgate", netgate);
- model.setValue("/root/rexsend/rexbarcode/workgate", workgate);
- model.setValue("/root/rexsend/rexbarcode/installplace", installplace);
-
-
- makeReportPreview(0,0,10, 10, "");
- fPrintRexbar("RPAEB05001");
- //exeReportPreview("RPAEB05001", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_prntset" class="btn3_letter5" style="left:975px; top:60px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|