123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLF91000_대체코드관리.xrw
- * 설 명 : 대체코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2010.12.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <![CDATA[]]>
- <xhtml:title>대체코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <replcecdlist>
- <calcscorcd/>
- <ordnm/>
- <grupsnglflag/>
- <ordinptflag/>
- <insuedicd/>
- <prcpclscd/>
- <etcflag2/>
- <oldordcd/>
- <oldseqno/>
- <oldsnglcd/>
- <clincresyn/>
- <tsectcd/>
- <testmdlcd/>
- <prcppossyn/>
- <tclsscrnnm/>
- <tocalcscorcd/>
- <remark/>
- <errflag/>
- </replcecdlist>
- </main>
- <send>
- <refgbn/>
- <searchtext/>
- <grddata/>
- <codeflag/>
- <tsect/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <cmbflag>1</cmbflag>
- <text1/>
- <select02>00</select02>
- </ref>
- </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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- //model.removeNodeset("/root/main/replcecdlist");
- // fGetReplceCode();
- //model.refresh();
- ]]>
- </script>
- <submission id="TXLBF00101" ref="root/send/data1" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="root/main/bloodlist"/>
- <submission id="TRLLF91001" ref="root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/replcecdlist"/>
- <submission id="TXLLF91001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRLZZ00101" ref="/root/send/codeflag" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fChkPatU(){
-
- var Chkuserid = model.getValue("/root/init/LB0000/cd");
-
- var n = getNodesetCount("/root/init/LB9987[cd='" + Chkuserid + "']");
-
- if(n > 0){ //권한있음
- btn_cnfm.disabled = false;
- } else{
- btn_cnfm.disabled = true;
- }
-
- }
-
- // 초기화
- function fSetInit(){
- model.setValue("/root/send/codeflag", "0000|0111|0106|9987|"); //0104 대분류 0102 중분류
- submit("TRLZZ00101");
-
- fChkPatU();
-
- model.setValue("/root/hidden/ref/cmbflag", "1");
- model.setValue("/root/send/searchtext", "");
- model.setValue("/root/send/tsect", "00");
- fGetReplceCode();
- }
-
- // 대체코드 조회
- function fGetReplceCode(text){
-
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/cmbflag")); // 조회구분
- model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/text1"));
- model.setValue("/root/send/tsect", model.getValue("/root/hidden/ref/select02"));
-
-
- submit("TRLLF91001");
- // checkKeyColumn("grd_bloodlist");
-
-
- }
-
-
- // 행삭제
- function fInsRowdel() {
- var row = grd_bloodlist.row;
- var selectyn = model.getValue("/root/main/bloodlist["+row+"]/selectyn");
-
- if(selectyn == "Y"){
- messageBox("이미 등록된 성분제제는 삭제할 수 없습니다.","I");
- return;
- }else{
- grd_bloodlist.rowStatus(row) = 4;
- }
-
- }
-
- // 행추가
- function fInsRowAdd() {
-
- grd_bloodlist.addRow();
- }
-
- // 저장(삽입, 삭제, 수정)
- function fExeEqmtSave() {
- var blodbarcd, blodcomcd, blodbasevol, dispseq;
- model.setValue("/root/send/data1", grd_bloodlist.getUpdateData());
- for(i=1; i<=grd_bloodlist.rows ; i++){
-
- if(grd_bloodlist.rowStatus(i) == 3){
- blodbarcd = model.getValue("/root/main/bloodlist["+i+"]/blodbarcd");
- blodcomcd = model.getValue("/root/main/bloodlist["+i+"]/blodcomcd");
- blodbasevol = model.getValue("/root/main/bloodlist["+i+"]/blodbasevol");
- dispseq = model.getValue("/root/main/bloodlist["+i+"]/dispseq");
- if(blodbarcd ==''||blodcomcd == ''||blodbasevol == ''||dispseq == ''){
- messageBox("혈액바코드, 성분제제코드, 기준량, 표시순서는 반드시 입력해야 합니다", "I");
- return;
- }
- }
- }
-
- submit("TXLBF00101");
- fblodbaseinfo();
-
- }
-
- // 저장 수정
- function fExeReplceCd(){
- var grddata = grd_replcecdlist.getUpdateData();
-
- if(grddata == ""){
- alert("수정된 데이터가 없습니다. ");
- }else{
- model.setValue("/root/send/grddata", grddata);
- submit("TXLLF91001");
-
- fGetReplceCode(); // 수정된후 재조회
- }
- }
-
-
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target =="input1"){
- fGetReplceCode();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:585px; y1:7px; x2:585px; y2:29px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:600px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReplceCode();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <select1 id="cmbflag" ref="/root/hidden/ref/cmbflag" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
- <choices>
- <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>
- <item>
- <label>검사명</label>
- <value>5</value>
- </item>
- <item>
- <label>대체코드</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/ref/text1" style="left:264px; top:8px; width:151px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == "13"){
- if(event.target == "input1"){
- model.setValue("/root/send/searchtext" , input1.currentText);
-
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/cmbflag")); // 조회구분
- //model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/text1"));
- model.setValue("/root/send/tsect", model.getValue("/root/hidden/ref/select02"));
-
- submit("TRLLF91001");
- model.setValue("/root/hidden/ref/text1" , "" );
-
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="combo3" ref="/root/hidden/ref/select02" appearance="minimal" itemcount="10" style="left:420px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGetReplceCode();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">대체코드 조회</caption>
- <button id="button2" class="btn2_letter3" visibility="hidden" style="left:984px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" visibility="hidden" style="left:1040px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_replcecdlist" nodeset="/root/main/replcecdlist" autoresize="true" caption="처방코드^처방명^수가그룹
구분^처방가능
여부(수가)^보험코드^처방
분류^Class번호(OLD)^처방코드(OLD)^처방사전
번호(OLD)^행위코드(OLD)^임상구분(1:건진)^시행부서(검사)^검사분류(검사)^처방가능여부(검사)^검사명^대체코드^비고^오류유형^이미등록된것인지여부^수정전시작일자^수정전종료일자" colwidth="67, 183, 33, 35, 51, 34, 40, 56, 50, 51, 39, 50, 50, 44, 164, 65, 108, 33" dataheight="32" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="40" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" tooltip="true" style="left:0px; top:75px; width:1194px; height:646px; ">
- <col ref="calcscorcd" _key="true"/>
- <col ref="ordnm"/>
- <col ref="grupsnglflag" format="yyyy-mm-dd"/>
- <col ref="ordinptflag" format="yyyy-mm-dd"/>
- <col ref="insuedicd"/>
- <col ref="prcpclscd"/>
- <col ref="etcflag2"/>
- <col ref="oldordcd"/>
- <col ref="oldseqno"/>
- <col ref="oldsnglcd"/>
- <col ref="clincresyn"/>
- <col ref="tsectcd" maxlength="2"/>
- <col ref="testmdlcd" type="input" maxlength="2" style="background-color:#99ccff; "/>
- <col ref="prcppossyn"/>
- <col ref="tclsscrnnm"/>
- <col ref="tocalcscorcd" type="input" style="background-color:#99ccff; "/>
- <col ref="remark" type="input" style="background-color:#99ccff; "/>
- <col ref="errflag"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //시작일,종료일 체크
- // fCellValueCheck();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_replcecdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExeExcel(grd_replcecdlist);
-
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
- grd_replcecdlist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">대체코드관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" disabled="true" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeReplceCd();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|