123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIZ00400_상병코드조회.xrw
- * 수정이력
- * - 2007.05.01 / 최초작성 / 정주미
- * - opener 에서 전달받는 조건 경로
- /root/init
- * - opener 로 전달하는 결과값 경로
- opener.root.hidden.sppiz00400.rslt.diagcd
- opener.root.hidden.sppiz00400.rslt.diagnm
- * - 2007.05.10 /수정보완 / 박창원
- - 유형으로 검색가능하게 수정(ICD10,확장상병)
- -->
- <?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>
- <list1>
- <listdiag>
- <diagfromdd/>
- <diagtodd/>
- <diagcd/>
- <termcd/>
- <diaghngnm/>
- <diagengnm/>
- </listdiag>
- </list1>
- </main>
- <send>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- <flag/>
- </send>
- <init>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- <flag/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (checkOpener()) {
- fCheckOpener(); // 팝업용인 경우
- } else {
- fInitialize(); // 화면을 초기화한다.
- }
- //fCheckAuth(); // 화면 권한을 설정한다.
- ]]>
- </script>
- <submission id="TRPIZ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 팝업용인 경우
- function fCheckOpener() {
- ipt_diagcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- model.copyNode("/root/send", "/root/init");
- model.removeNodeset("/root/main/list1/listdiag");
- if (model.getValue("/root/send/selectedrdodiagkind") == "3") { // 상병명이나 코드를 넘기지 않고 단순히 팝업만 호출한경우 submission 미수행
- model.setValue("/root/send/selectedrdodiagkind","1"); // submission을 수행하지 않기 위한 목적이기 때문에 유형을 ICD10으로 Set
- }
- model.refresh();
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if (model.getValue("/root/init/diagcd") || model.getValue("/root/init/diagnm")) {
- submit("TRPIZ00401");
- }
- }
- }
- // 화면 권한을 설정한다.
- function fCheckAuth() {
- if (getAuth() == "") { // (common.js) 현재 화면의 권한 정보를 확인
- // 메뉴에서 열리는 화면이 아닌 경우 메뉴가 없는 Local Test를 위해 임시로 설정함
- model.setValue("/root/hidden/properties/auth", "10000000"); // R권한만 있는 경우
- }
- var xAuth = !checkAuth("X");
- btn_close.disabled = xAuth; // 닫기
- }
- // 화면을 초기화한다.
- function fInitialize() {
- ipt_diagcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- model.removeNodeset("/root/main/list1/listdiag");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/init");
-
- // 기본적으로 ICD10으로 초기화
- model.setValue("/root/send/selectedrdodiagkind","1");
-
- var today = new Date();
- var syear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var smonth = today.getDateFormat("MM");
- var sday = today.getDateFormat("DD");
- model.setValue("/root/send/basedd", syear + smonth + sday);
- model.refresh();
- }
- // // 상병명 한글 입력시 한글명 / 그외 영문명으로 검색한다.
- // function fCheckEngHngFlag() {
- // var diagnm = model.getValue("/root/send/diagnm").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
- // var enghngflag = "eng"
- // for (var i=0; i < diagnm.length; i++) {
- // if (diagnm.charCodeAt(i) > 255) { // 한글이 들어오면 255보다 크다.
- // enghngflag = "hng";
- // }
- // }
- // model.setValue("/root/send/enghngflag", enghngflag);
- // model.refresh();
- // }
- // 상병코드 또는 상병명을 조건으로 상병을 조회한다.
- function fSearchDiag() {
- // 그리드 초기화
- model.removeNode("/root/main/list1");
- model.makeNode("/root/main/list1");
-
- if (model.getValue("/root/send/diagcd") || model.getValue("/root/send/diagnm")) {
- if (model.getValue("/root/send/selectedrdodiagkind") == "1" || model.getValue("/root/send/selectedrdodiagkind") == "2") {
- submit("TRPIZ00401");
- }
- else {
- messageBox("유형은","I003"); // 유형은 필수입력입니다.
- }
- } else {
- messageBox("상병코드 또는 상병명은", "I003"); ///상병코드 또는 상병명은 필수입력입니다.
- }
-
- // icd10이냐, 확장이냐에 따라 hidden 처리
- // icd10이면 확장상병코드 컬럼이 hidden
- // 확장이면 icd10 컬럼이 hidden
- var status = model.getValue("/root/send/selectedrdodiagkind");
- if (status == "1") {
- grd_diagmast.colHidden(grd_diagmast.colRef("termcd")) = true;
- grd_diagmast.colHidden(grd_diagmast.colRef("diagcd")) = false;
- } else {
- grd_diagmast.colHidden(grd_diagmast.colRef("diagcd")) = true;
- grd_diagmast.colHidden(grd_diagmast.colRef("termcd")) = false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1085" pageheight="552" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" overflow="scroll" scroll="auto" style="left:0px; top:0px; width:1067px; height:525px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:74px; height:14px; ">상병 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:1066px; y2:60px; "/>
- <datagrid id="grd_diagmast" nodeset="/root/main/list1/listdiag" class="datagrid2" caption="시작일자^종료일자^ICD10^상병코드^영문명^한글명^특정기호" colsep="^" colwidth="61, 61, 67, 78, 330, 331, 100" dataheight="25" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedcols="byrow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:65px; width:1065px; height:460px; ">
- <col ref="diagfromdd" type="output" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="diagtodd" type="output" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="diagcd"/>
- <col ref="termcd"/>
- <col ref="diagengnm"/>
- <col ref="diaghngnm"/>
- <col ref="spclcd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_diagmast.isCell(event.target) && grd_diagmast.row >= grd_diagmast.fixedRows) {
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var row = grd_diagmast.row;
- var diagcd = model.getValue("/root/main/list1/listdiag[" + row + "]/diagcd");
- var diaghngnm = model.getValue("/root/main/list1/listdiag[" + row + "]/diaghngnm");
- var diagengnm = model.getValue("/root/main/list1/listdiag[" + row + "]/diagengnm");
- var termcd = model.getValue("/root/main/list1/listdiag[" + row + "]/termcd");
-
- model.setValue(opener.root.hidden.sppiz00400.rslt.diagcd, diagcd);
- model.setValue(opener.root.hidden.sppiz00400.rslt.diaghngnm, diaghngnm);
- model.setValue(opener.root.hidden.sppiz00400.rslt.diagengnm, diagengnm);
-
- if (model.getValue("/root/send/flag") == "") {
- opener.javascript.fSetDiagCdNm();
- } else {
- model.setValue(opener.root.hidden.sppiz00400.rslt.termcd, termcd);
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
- }
- window.close();
- }
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:1065px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1065px; height:35px; "/>
- <caption id="caption4" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
- <input id="ipt_basedd" ref="/root/send/basedd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:8px; width:85px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:349px; top:9px; width:86px; height:17px; ">상병코드 :</caption>
- <input id="ipt_diagcd" ref="/root/send/diagcd" class="input_search" imemode="disabled" _chartype="upper" style="left:438px; top:8px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시에
- if (ipt_diagcd.currentText.length > 0) { // 1글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fSearchDiag();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:518px; top:9px; width:73px; height:17px; ">상병명 :</caption>
- <input id="ipt_diagnm" ref="/root/send/diagnm" class="input_search" imemode="hangul" style="left:594px; top:8px; width:186px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시에
- if (ipt_diagnm.currentText.length > 1) { // 2글자 이상이면
-
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fSearchDiag();
- }
- }
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:990px; y1:7px; x2:990px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:995px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchDiag();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:183px; top:9px; width:73px; height:19px; ">유형 :</caption>
- <select1 id="rdo_diagkind" ref="/root/send/selectedrdodiagkind" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:245px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>ICD10</label>
- <value>1</value>
- </item>
- <item>
- <label>확장</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:525px; width:1065px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:1000px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:929px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:851px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|