123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF00100_계검사계코드관리.xrw
- * 설 명 : 검사시행부서코드관리 조회 및 등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.04.10
- * 수정이력 : 2007.07.27 박정은 lastupdtdt 수정함
- * 기 타 :
- -->
- <?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>
- <main>
- <spclist>
- <spccd/>
- <spcnm/>
- <spcscrnnm/>
- <spcabbrnm/>
- <spcprntnm/>
- <spclblnm/>
- <spckind/>
- </spclist>
- </main>
- <send>
- <refgbn/>
- <spcdata/>
- <searchgbn/>
- <searchtext/>
- <deptflag/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refgbn>1</refgbn>
- <searchgbn>2</searchgbn>
- <searchtext/>
- </ref>
- <deptflagcd/>
- <addlist>
- <addstring/>
- </addlist>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLLF10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <submission id="TXLLF10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <submission id="TRLLF10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 권한 설정
- //var auth = model.getValue("/root/properties/auth");
- //checkAuth(auth);
- //btn_save.disabled = !checkAuth("X") ;
-
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
- submit("TRLZZ00101");
- fSetInit();
- fGetSpcList();
-
-
-
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화 버튼
- function fSetInit() {
- //model.reset();
- model.removeNodeset("/root/main/testmdllist");
- model.refresh();
- }
-
- // 계리스트 조회
- function fGetSpcList(){
- grd_spc.rebuildstyle();
-
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF10301");
- }
-
-
- function fAddRow(){
- var AddRowString = "";
- for(i = 1 ; i < grd_spc.rows ; i++ ){
- if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
-
- model.makeValue("/root/main/spclist["+i+"]/spcbasetubecd", "-");
- model.makeValue("/root/main/spclist["+i+"]/urinspcyn", "N");
-
- AddRowString = AddRowString + model.getValue("/root/main/spclist["+i+"]/spccd") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spcnm") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spcscrnnm") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spcabbrnm") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spcprntnm") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spclblnm") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spcbasetubecd") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/urinspcyn") + "▦"
- + model.getValue("/root/main/spclist["+i+"]/spckind") + "▩" ;
-
- }
- }
-
- model.setValue("/root/hidden/addlist/addstring" , AddRowString);
- model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
- window.close();
-
- }
-
- // 검체코드 검색
- function fGetSpcSearch(){
-
- model.setValue("/root/send/searchgbn", model.getValue("/root/hidden/ref/searchgbn"));
- model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/searchtext"));
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
- if(model.getValue("/root/hidden/ref/searchtext") == ""){
- fGetSpcList();
- }else{
- submit("TRLLF10302");
- }
- }
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="810" pageheight="750" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:790px; height:745px; ">
- <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:160px; height:14px; ">통합검체코드목록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:775px; y2:70px; "/>
- <datagrid id="grd_spc" nodeset="/root/main/spclist" caption="^검체코드^검체명^검체명(화면)^검체명(약어)^검체명(출력)^검체명(라벨)^검체유형" colwidth="20, 85, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:75px; width:775px; height:655px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="spccd" type="output"/>
- <col ref="spcnm" type="output"/>
- <col ref="spcscrnnm" type="output"/>
- <col ref="spcabbrnm" type="output"/>
- <col ref="spcprntnm" type="output"/>
- <col ref="spclblnm" type="output"/>
- <col disabled="true" ref="spckind" type="combo">
- <choices>
- <item>
- <label>기타검체</label>
- <value>0</value>
- </item>
- <item>
- <label>일반검체</label>
- <value>1</value>
- </item>
- <item>
- <label>미생물검체</label>
- <value>2</value>
- </item>
- <item>
- <label>혈액용량</label>
- <value>3</value>
- </item>
- <item>
- <label>핵의학검체</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spc.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn4_letter2" style="left:656px; top:5px; width:56px; height:22px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:715px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:30px; width:775px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:775px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:408px; top:7px; width:56px; height:22px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpcSearch();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_4" style="x1:393px; y1:6px; x2:393px; y2:28px; "/>
- <select1 id="cmb_srchflag" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:115px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>검체코드</label>
- <value>1</value>
- </item>
- <item>
- <label>검체명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:22px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <input id="ipt_refflag" ref="/root/hidden/ref/searchtext" class="input_search" style="left:268px; top:8px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
-
- model.setvalue("/root/hidden/ref/searchtext",ipt_refflag.currentText);
- model.refresh();
- fGetSpcSearch();
- ipt_refflag.selBegin = 0;
- ipt_refflag.selEnd = ipt_refflag.currentText.length;
- }
- ]]>
- </script>
- </input>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|