123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?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>Medical Reference</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <search_cond>
- <cpgflagcd>ALL</cpgflagcd>
- <cpgorddeptcd/>
- <indxnm/>
- <getflag/>
- <no/>
- <seq/>
- <authflag/>
- <delyn/>
- <orddeptcd/>
- </search_cond>
- <cpglist>
- </cpglist>
- <temp/>
- <paminfo>
- <list/>
- </paminfo>
- <cpgappinfo>
- <info/>
- </cpgappinfo>
- <drugdeptlist/>
- </main>
- <hidden>
- </hidden>
- <send>
- </send>
- <init>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- <orddept/>
- <loadflag>Y</loadflag>
- </init>
- <temp>
- <getdata/>
- <reqdata>
- <cpgno/>
- <cpghistseq/>
- <cpgflagcd/>
- <indxnm/>
- <selectIndxCd/>
- <selectIndxNm/>
- </reqdata>
- <rsltgetdata/>
- <selected>
- <cpgno/>
- <cpghistseq/>
- <indxnm/>
- </selected>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //ivw_indxmngt.window.javascript.fInitialize(); //좌측 CP Tree 조회
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
- // 각 기관별 약제팀 조회
- submit("TRMMD05201");
-
- // 약제팀 공용부서 콤보박스에 추가
- //addComboItem( "cmb_orddept" , "공통", "DRUGDEPT");
- //addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "", "dept"); //부서코드 콤보 전체 instance추가
-
- // 소속부서 매핑
- var depthRows = cmb_orddept.length + 1;
- var deptcd = "";
- var deptYn = "N";
- for ( var i=1; i<depthRows ; i++ ) {
- deptcd = model.getValue("/root/init/orddept/dept[" + i + "]/deptcd");
-
- if ( deptcd == getUserInfo("dutplcecd") ) {
- cmb_orddept.select(i-1);
- deptYn = "Y";
- ivw_indxmngt.window.javascript.fGetIndxList("A");
- break;
- }
-
- }
-
- // 약제팀의 경우 공통부서 콤보로 설정
- // if ( deptYn == "N" ) {
- // var deptcnt = grd_drugdept.rows;
- // var drugdeptcd = "";
- //
- // for ( var i = 1 ; i<deptcnt ; i++ ) {
- // drugdeptcd = model.getValue("/root/main/drugdeptlist/drugdept[" + i + "]/deptcd");
- // if ( drugdeptcd == getUserInfo("dutplcecd") ) {
- // cmb_orddept.select(0);
- // break;
- // }
- // }
- // }
-
- // 매핑되는 소속 부서가 없는 경우 첫번째 콤보 부서로 선택처리
- if ( deptYn == "N" ) cmb_orddept.select(0);
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMD05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/drugdeptlist"/>
- <!--
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMMP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
- <submission id="TXMMP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cpgappinfo"/>
- <submission id="TRMMP00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pamdata" resultref="/root/temp/rsltgetdata"/>
- -->
- <bind id="bind1" ref="/root/main/cpglist/cpginfo/cpgorddeptcd" readonly="../status = "S""/>
- </model>
- <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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공통코드를 조회한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCodeList() {
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "/root/init/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, "depthngnm", "asc");
- if( model.getValue("/root/main/search_cond/authflag") != "U") {
- addComboItem( "cmb_cpgorddeptcd" , "전체", "");
- }
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 창닫기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCpSrchWndClose(){
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pageheight="775" guideline="1,1194;1,354;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <iviewer id="ivw_indxmngt" src="../../../emr/cpcdssweb/xrw/SMMMD05300_MR색인관리.xrw" style="left:0px; top:85px; width:350px; height:665px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:15px; width:1195px; height:35px; "/>
- <!--group id="group1" scroll="auto" style="left:0px; top:755px; width:1194px; height:25px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCpSrchWndClose();
- ]]>
- </script>
- </button>
- </group-->
- <button id="btn_srchindxcd" class="btn1_letter2" navindex="5" style="left:1130px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var loadflag = model.getValue("/root/init/loadflag");
- if ( loadflag == "Y" ) {
- model.setValue("/root/init/loadflag", "N");
- }
- else {
- ivw_indxmngt.window.javascript.fGetIndxList("A");
- }
- ]]>
- </script>
- </button>
- <line id="line27" class="line_4" style="x1:1120px; y1:22px; x2:1120px; y2:44px; "/>
- <!--caption id="caption15" class="search_name" style="left:10px; top:10px; width:82px; height:17px; ">진료과 :</caption-->
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:350px; y2:80px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:750px; x2:350px; y2:750px; "/>
- <line id="line5" class="line_3" style="x1:355px; y1:750px; x2:758px; y2:750px; "/>
- <line id="line6" class="line_3" style="x1:755px; y1:750px; x2:1194px; y2:750px; "/>
- <!--select1 id="cmb_cpgorddeptcd" ref="/root/main/search_cond/cpgorddeptcd" class="combo_search" navindex="2" appearance="minimal" editmode="search" style="left:88px; top:10px; width:223px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1-->
- <button id="brn_srchtree" class="btn2_letter2" visibility="visible" style="left:307px; top:59px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ivw_indxmngt.window.javascript.fNewFolder();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "27") {
- btn_app.disabled = false;
- btn_app.visible = true;
- btn_app.attribute("left") = "0px";
- }
- ]]>
- </script>
- <input id="ipt_indxnm" ref="/root/main/search_cond/indxnm" class="input_search" navindex="4" style="left:91px; top:24px; width:259px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_srchindxcd", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:10px; top:25px; width:102px; height:17px; ">색인명 :</caption>
- <browser id="browser1" style="left:354px; top:85px; width:840px; height:665px; "/>
- <line id="line2" class="line_1" style="x1:355px; y1:80px; x2:1194px; y2:80px; "/>
- <caption id="cap_outlineinfo" class="tit_2" style="left:363px; top:65px; width:113px; height:13px; ">색인 내용(PDF)</caption>
- <caption id="caption1" class="tit_2" style="left:8px; top:65px; width:98px; height:13px; ">색인</caption>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">Medical reference</caption>
- <caption id="caption3" class="search_name" style="left:354px; top:25px; width:102px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/search_cond/orddeptcd" appearance="minimal" editmode="inputsearch" style="left:435px; top:24px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_srchindxcd.dispatch("DOMActivate")
- ]]>
- </script>
- </select1>
- <datagrid id="grd_drugdept" nodeset="/root/main/drugdeptlist/drugdept" visibility="hidden" caption="부서코드^부서명" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:655px; top:25px; width:210px; height:55px; ">
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|