123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?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>
- <excucdlist>
- <item>
- <check/>
- <excucd/>
- <excucdnm/>
- </item>
- </excucdlist>
- </main>
- <send>
- <srchexcucd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <tmplcdflag>B</tmplcdflag>
- </send>
- <hidden/>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- if ( checkOpener() ) {
-
- /*var openerid = opener.model.getValue("/root/send/windowloadinstance");
- //alert('openerid->'+openerid);
-
- switch (openerid) {
-
- case "SMAEB02000" : model.setValue("/root/send/srchexcucd", model.getValue("/root/send/srchexcucd")+"%");
- submit("TRAEA02310");
- model.setValue("/root/send/srchexcucd", "");
- model.refresh();
- break;
- default:
- break;
- } */
- model.setValue("/root/send/srchexcucd", model.getValue("/root/send/srchexcucd")+"%");
- submit("TRAEA02310");
- model.setValue("/root/send/srchexcucd", "");
- model.refresh();
- }
-
- else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- model.setFocus("ipt_excucd");
- ]]>
- </script>
- <submission id="TRAEA02310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excucdlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="535" pageheight="578" guideline="1,1194;2,576;1,517;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:550px; ">
- <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색코드 :</caption>
- <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_excucd" ref="/root/send/srchexcucd" class="input_search" style="left:109px; top:8px; width:316px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_sea" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*var openerid = opener.model.getValue("/root/send/windowloadinstance");
- switch (openerid) {
- case "SMAEB02000" : submit("TRAEA02310");
- model.setValue("/root/send/srchexcucd", "");
- model.refresh();
- break;
- default:
- break;
- } */
- submit("TRAEA02310");
- model.setValue("/root/send/srchexcucd", "");
- model.refresh();
- model.setFocus("ipt_excucd");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">코드조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
- <datagrid id="grd_excucd" nodeset="/root/main/excucdlist/item" caption="선택^코드^코드명칭" colsep="^" colwidth="58, 124, 316" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:480px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="excucd"/>
- <col ref="excucdnm"/>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:550px; width:518px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_excucd.row == 0 ) return;
-
- var openerid = opener.model.getValue("/root/send/windowloadinstance");
- var check = "";
- var loopcnt = 0;
- var loop = grd_excucd.rows - grd_excucd.fixedRows;
- var str_temp = "";
- var str_temp2 = "";
- var str_check = "";
-
- for( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
- if ( check == "Y" ) {
- str_temp += model.getValue("/root/main/excucdlist/item["+i+"]/excucd");
- str_temp2 += model.getValue("/root/main/excucdlist/item["+i+"]/excucdnm");
- str_temp = str_temp + " "
- str_temp2 = str_temp2 + " "
- }
- loopcnt++;
- }
-
- if ( loopcnt == 0 ) {
- messageBox("코드를 선택해 주십시오.","I999");
- return "0";
- }
-
- //alert(str_temp);
- /*switch (openerid) {
- case "SMAEB02000" : // 재료소모코드관리(핵의학 체내)
- var checkrow = opener.grd_matrcstcode.row;
- opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucd", str_temp);
- opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucdnm", str_temp2);
- break;
- default:
- break;
- } */
-
- switch (openerid) {
- case "SMAEB02000" : // 재료소모코드관리(핵의학 체내)
- var checkrow = opener.grd_matrcstcode.row;
- opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucd", str_temp);
- opener.model.setValue("/root/main/matrcstcodelist/item["+checkrow+"]/excucdnm", str_temp2);
- break;
- case "SMAEB00200" : // 검사치료코드관리의 대체처방코드 컬럼, 20080702
- var loopcnt = 0;
- for( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
- if ( check == "Y" ) {
- str_check += model.getValue("/root/main/excucdlist/item["+i+"]/excucd");
- str_check = str_check + "^"
- }
- loopcnt++;
- }
-
- if ( loopcnt == 0 ) {
- messageBox("코드를 선택해 주십시오.","I999");
- return "0";
- }
- var checkrow = opener.grd_examcurecdlist.row-1;
- opener.model.setValue("/root/main/examcurecdlist/item["+checkrow+"]/angioaltprcpcd", str_check);
- break;
- case "SMAER00400" : // 결과서식의 검사코드 조건, 20090212, 장준원
- opener.model.setValue("/root/send/reqdata/srchexcucd", str_temp);
- break;
- default:
- opener.model.setValue("/root/send/excucd", str_temp);
- opener.model.setValue("/root/send/excucdnm", str_temp2);
- break;
- }
-
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="button1" class="btn4_letter2" style="left:340px; top:4px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var openerid = opener.model.getValue("/root/send/windowloadinstance");
- /*switch (openerid) {
-
- case "SMAEB02000" : submit("TRAEA02310");
- break;
- default:
- break;
- } */
- submit("TRAEA02310");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|