123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?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>
- <ocdlst>
- <item>
- <sel/>
- <calcscorcd/>
- <ordnm/>
- <hngnm/>
- <engnm/>
- <oldordcd/>
- <fromdd/>
- <prcpexecdeptcd/>
- </item>
- </ocdlst>
- </main>
- <send>
- <srchcdnm/>
- <srchcond>cd</srchcond>
- <garbage>1</garbage>
- <srchchkreg/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srchdept/>
- <srchnocode/>
- </send>
- <init>
- <initsugadept>
- <initsugadeptcdid/>
- <initsugadeptcdnm/>
- </initsugadept>
- <dept_info>
- <initprcpexecdeptcd>
- <prcpexecdeptcdid/>
- <prcpexecdeptcdnm/>
- </initprcpexecdeptcd>
- </dept_info>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- cmb_deptcd.deselect(0);
- cmb_deptcd.disabled = true;
- checkbox1.value = "";
- checkbox1.disabled = true;
-
- aezfSetSuppDeptcd();
-
- fInit();
-
- submit("TRAEB00203");
- submit("TRAEB00205"); // 수행부서 코드 가져오기
- // model.setValue("/root/send/srchdept", model.getValue("/root/send/globalinstance/instance1"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ocdlst"/>
- <submission id="TRAEB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRAEB00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ocdlst"/>
- <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
- <bind id="bind_prcpexecdeptcd" ref="/root/main/ocdlst/item/prcpexecdeptcd" readonly="../prcpexecdeptcd!=''"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /**
- * SPAEB00201_PARAM1 : 검색구분(cd/nm)
- * SPAEB00201_PARAM2 : 검색조건(코드/명칭)
- * SPAEB00201_PARAM3 : multiyn
- * SPAEB00201_PARAM4 : multi선택 시 setting할 목적노드
- * SPAEB00201_PARAM5 : code값을 setting할 목적노드
- * SPAEB00201_PARAM6 : name값을 setting할 목적노드
- * SPAEB00201_PARAM7 : 수가를 setting할 목적노드
- */ var vMultiYn = "";
- function fInit(){
- model.removeNodeset(grd_ocdlst.nodeset);
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/okflag");
- model.setValue("/root/send/srchcond" , opener.javascript.getParameter("SPAEB00201_PARAM1"));
- model.setValue("/root/send/srchcdnm" , opener.javascript.getParameter("SPAEB00201_PARAM2"));
- vMultiYn = opener.javascript.getParameter("SPAEB00201_PARAM3");
-
- if( vMultiYn == "N" ) {
- grd_ocdlst.colHidden(1) = false;
- }
-
- if(model.getValue("/root/send/srchcdnm") != "" ) {
- fGetCalcScorCdList();
- }
- }
- model.setFocus("ipt_cdnm");
- model.refresh();
- }
- /**
- * 수가코드내역조회
- */
- function fGetCalcScorCdList(){
-
- //alert(checkbox1.value);
- //alert(model.getValue("/root/send/srchchkreg"));
- //return;
-
- if ( model.getValue("/root/send/srchchkreg") == "Y" ) {
-
- if ( model.getValue("/root/send/srchdept") == "" ) {
- messageBox("수행부서를 선택하십시오.","I999");
- return;
- }
-
- submit("TRAEB00204");
- return;
- }
-
- if( model.getValue("/root/send/srchdept") == "" ) {
- if( ipt_cdnm.value.length < 3 ){
- messageBox("검색어를 세자이상 " , "C001");
- model.setFocus("ipt_cdnm");
- return ;
- }
- }
- submit("TRAEB00202");
- }
- /**
- * opener id에 따른 분화
- */
- function fSetData(){
- if( checkOpener() ){
- var sDestXPath = opener.javascript.getParameter("SPAEB00201_PARAM4");
- var sDestXPathCd = opener.javascript.getParameter("SPAEB00201_PARAM5");
- var sDestXPathNm = opener.javascript.getParameter("SPAEB00201_PARAM6");
- //var sDestXPathAmt = opener.javascript.getParameter("SPAEB00201_PARAM7");
- //alert('sDestXPath->'+sDestXPath+', sDestXPathCd->'+sDestXPathCd+', sDestXPathNm->'+sDestXPathNm);
- // /root/main/examcurecdlist/item
- //return;
- 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" ) );
- }
- 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="910" pageheight="563" guideline="1,1190;1,907;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:890px; height:515px; ">
- <datagrid id="grd_ocdlst" nodeset="/root/main/ocdlst/item" autoresize="true" caption="선택^처방코드^처방명^한글명^영문명^구코드^적용일자^수가수행부서" colsep="^" colwidth="30, 79, 168, 172, 153, 66, 73, 94" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:875px; height:463px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="calcscorcd" style="left:53px; top:23px; width:71px; height:23px; "/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="engnm"/>
- <col ref="oldordcd"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="prcpexecdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
- <label ref="prcpexecdeptcdnm"/>
- <value ref="prcpexecdeptcdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:890px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:875px; 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:810px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCalcScorCdList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:794px; y1:11px; x2:794px; 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>
- <item>
- <label>수행부서별</label>
- <value>dept</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_deptcd.deselect(0);
- cmb_deptcd.disabled = true;
- checkbox1.value = "";
- checkbox1.disabled = true;
- //ipt_cdnm.disabled = false;
- model.setFocus("ipt_cdnm");
-
- if ( cmb_srchcond2.value == "dept" ) {
-
- cmb_deptcd.disabled = false;
- checkbox1.disabled = false;
- ipt_cdnm.value = "";
- //model.setValue("/root/send/srchcdnm","");
- model.setFocus("cmb_deptcd");
- }
-
-
- ]]>
- </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>
- <select1 id="cmb_deptcd" ref="/root/send/srchdept" appearance="minimal" style="left:425px; top:11px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/initsugadept">
- <label ref="initsugadeptcdnm"/>
- <value ref="initsugadeptcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //model.setValue("/root/send/srchcdnm", "");
- ipt_cdnm.value = "";
- cmb_srchcond2.value = "dept";
-
- ]]>
- </script>
- </select1>
- <select id="checkbox1" ref="/root/send/srchchkreg" overflow="visible" appearance="full" style="left:540px; top:12px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미등록수가코드</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_con" ref="/root/send/srchnocode" overflow="visible" appearance="full" style="left:680px; top:12px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>처방불가수가</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:885px; y2:46px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:516px; width:885px; height:29px; ">
- <button id="button9" class="btn4_letter2" style="left:806px; 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:747px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn2_letter4" style="left:5px; top:520px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_ocdlst.saveExcel(file);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|