123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHB00300.xrw
- * 설 명 : 수가코드선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.07.01
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <ocdlst>
- <item>
- <sel/>
- <calcscorcd/>
- <ordnm/>
- <hngnm/>
- <engnm/>
- <scoreamt/>
- <fromdd/>
- </item>
- </ocdlst>
- </main>
- <send>
- <srchcdnm/>
- <srchcond>cd</srchcond>
- </send>
- <init/>
- <hidden>
- </hidden>
- <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[
- fInit();
- ]]>
- </script>
- <submission id="TRAHB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ocdlst"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /**
- * SPAHB00300_PARAM1 : 검색구분(cd/nm)
- * SPAHB00300_PARAM2 : 검색조건(코드/명칭)
- * SPAHB00300_PARAM3 : multiyn
- * SPAHB00300_PARAM4 : multi선택 시 setting할 목적노드
- * SPAHB00300_PARAM5 : code값을 setting할 목적노드
- * SPAHB00300_PARAM6 : name값을 setting할 목적노드
- * SPAHB00300_PARAM7 : 수가를 setting할 목적노드
- */ var vMultiYn = "";
- function fInit(){
- model.removeNodeset(grd_ocdlst.nodeset);
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/okflag");
- model.makeValue("/root/send/srchcond" , opener.javascript.getParameter("SPAHB00300_PARAM1"));
- model.makeValue("/root/send/srchcdnm" , opener.javascript.getParameter("SPAHB00300_PARAM2"));
- vMultiYn = opener.javascript.getParameter("SPAHB00300_PARAM3");
-
- if( vMultiYn == "N" ) {
- grd_ocdlst.colHidden(1) = false;
- }
-
- if(model.getValue("/root/send/srchcdnm") != "" ) {
- fGetCalcScorCdList();
- }
- }
- model.setFocus("ipt_cdnm");
- model.refresh();
- }
- /**
- * 수가코드내역조회
- */
- function fGetCalcScorCdList(){
- if( ipt_cdnm.value.length < 2 ){
- messageBox("검색어를 두자이상 " , "C001");
- model.setFocus("ipt_cdnm");
- return ;
- }
- submit("TRAHB00104");
- }
- /**
- * opener id에 따른 분화
- */
- function fSetData(){
- if( checkOpener() ){
- var sDestXPath = opener.javascript.getParameter("SPAHB00300_PARAM4");
- var sDestXPathCd = opener.javascript.getParameter("SPAHB00300_PARAM5");
- var sDestXPathNm = opener.javascript.getParameter("SPAHB00300_PARAM6");
- var sDestXPathAmt = opener.javascript.getParameter("SPAHB00300_PARAM7");
- var idx = 0 ;
- if( vMultiYn == "N" ){
- idx = grd_ocdlst.row;
- if( idx < 1) return -1;
- opener.model.setValue( sDestXPathCd , model.getValue("/root/main/ocdlst/item[" + idx + "]/calcscorcd" ) );
- opener.model.setValue(sDestXPathNm, model.getValue("/root/main/ocdlst/item[" + idx + "]/ordnm" ) );
- opener.model.setValue(sDestXPathAmt, model.getValue("/root/main/ocdlst/item[" + idx + "]/scoreamt" ) );
- } if( vMultiYn == "U" ){
- idx = grd_ocdlst.row;
- opener.model.makeValue( "/root/tmp/sel/testnm" , model.getValue("/root/main/ocdlst/item[" + idx + "]/ordnm" ) );
- opener.model.makeValue( "/root/tmp/sel/testcd" , model.getValue("/root/main/ocdlst/item[" + idx + "]/calcscorcd" ) );
- } else {
- var nodeList = instance1.selectNodes(grd_ocdlst.nodeset + "[sel='Y']");
- if( nodeList.length > 0) {
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/temp", rCSV);
- copyNodeListType(sDestXPath, "/root/temp/list", "replace", opener.model, model );
- }
- else return -1;
- }
- opener.model.setValue("/root/temp/okflag", "ok");
- return 1;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
- <datagrid id="grd_ocdlst" nodeset="/root/main/ocdlst/item" caption="선택^처방코드^시작일자^처방명^보험단가(종별가산)^구코드^한글명^영문명" colsep="^" colwidth="33, 71, 75, 178, 130, 83, 147, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:517px; height:463px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="calcscorcd"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordnm"/>
- <col ref="scoreamt" format="#,###" style="text-align:right; "/>
- <col ref="oldordcd"/>
- <col ref="hngnm"/>
- <col ref="engnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ocdlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCalcScorCdList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchcond2" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>구코드</label>
- <value>old</value>
- </item>
- <item>
- <label>처방명</label>
- <value>ordnm</value>
- </item>
- <item>
- <label>한글명</label>
- <value>hngnm</value>
- </item>
- <item>
- <label>영문명</label>
- <value>engnm</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("ipt_cdnm");
- ]]>
- </script>
- </select1>
- <input id="ipt_cdnm" ref="/root/send/srchcdnm" class="input_search" style="left:188px; top:11px; width:227px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
- <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkOpener() ){
- opener.model.setValue("/root/temp/okflag", "");
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|