123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCDT00600_상병코드및상병명검색.xrw
- * Summary : 상병코드및상병명검색
- * Programmer : 최정환
- * Date Written : 2007.05.17
- * History :
- * Remark :
- -->
- <?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>
- <list>
- <snwlist>
- <snwnm/>
- <snwcd/>
- </snwlist>
- </list>
- <search>
- <searchcondition>snwnm</searchcondition>
- <searchterm/>
- </search>
- </main>
- <send>
- <searchcondition/>
- <searchterm/>
- </send>
- <temp>
- <snwlist>
- <status>I</status>
- <dtmnkey/>
- <seq/>
- <snwnm/>
- <snwcd/>
- <diagkindcd/>
- <diagkindcdflag/>
- </snwlist>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/list/snwlist");
- model.refresh();
-
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 권한체크
- function fCheckAuth() {
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- }
-
- function fGetSnwInfo() {
- var count = 0;
-
- if (grd_snwlist.row < 1 || grd_snwlist.selectedRows < 1) {
- messageBox("상병을","C002");
- } else {
- for (i=0; i < grd_snwlist.selectedRows; i++) {
- var snwcd = grd_snwlist.valuematrix(grd_snwlist.selectedRow(i),1)
- var snwnm = grd_snwlist.valuematrix(grd_snwlist.selectedRow(i),2)
- count = count + 1
- model.makeValue("/root/temp/snwlist/snwcd", snwcd);
- model.makeValue("/root/temp/snwlist/snwnm", snwnm); // 임시노드에 선택된 항목을 넣어준다.
-
- model.duplicate(opener.root.main, root.temp.snwlist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
- model.removenodeset("/root/temp/snwlist/snwcd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/snwlist/snwnm"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- }
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- <submission id="TRCDT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="350" style="border-color:#c7a3cf; ">
- <group id="group5" scroll="auto" style="left:0px; top:0px; width:534px; height:345px; ">
- <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>상병코드</label>
- <value>snwcd</value>
- </item>
- <item>
- <label>상병영문명</label>
- <value>snwnm</value>
- </item>
- <item>
- <label>상병한글명</label>
- <value>hngnm</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:214px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var searchterm = model.getValue("/root/main/search/searchterm");
- var searchcondition = model.getValue("/root/main/search/searchcondition");
- model.setValue("/root/send/searchterm", "%"+searchterm+"%");
- model.setValue("/root/send/searchcondition", searchcondition);
- submit("TRCDT00601");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption9" class="tit_2" style="left:0px; top:40px; width:180px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">상병코드 및 상병명 검색</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:517px; y2:55px; "/>
- <datagrid id="grd_snwlist" nodeset="/root/main/list/snwlist" class="text_left" scroll="autohscroll" caption="상병코드^상병명^한글명" colwidth="100,200,200" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" tooltip="true" style="left:0px; top:60px; width:517px; height:255px; ">
- <col ref="snwcd"/>
- <col ref="snwnm"/>
- <col ref="hngnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_snwlist.isCell(event.target) && grd_snwlist.row >= grd_snwlist.fixedRows ){
- fGetSnwInfo();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:315px; width:517px; height:27px; ">
- <button id="btn_cnfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetSnwInfo();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|