123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- <?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/>
- <between/>
- <fromcd/>
- <tocd/>
- </send>
- <init>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- <flag/>
- <between/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </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 fInitialize() {
- opener.javascript.setParameter( "SPMMO00800_rtn", "" );
- opener.javascript.setParameter( "SPMMO00800_rtn_useyn", "N");
-
- var cond1 = opener.javascript.getParameter ( "SPMMO00800_cond1" ); //검색구분(1:코드, 2:명)
- var cond3 = opener.javascript.getParameter ( "SPMMO00800_cond3" ); //한영구분(H: 한글, E:영문)
- var cond5 = opener.javascript.getParameter ( "SPMMO00800_cond5" ); //검색내용
-
- ipt_diagcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- model.removeNodeset("/root/main/list1/listdiag");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/init");
-
- if (cond1 == '1') {
- model.setValue("/root/send/diagcd",cond5);
- }
- else {
- model.setValue("/root/send/diagnm",cond5);
- }
-
- // 기본적으로 범위검색이 아님
- switch1.selectedIndex = 0;
-
- // 기본적으로 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();
-
-
-
- fSearchDiag();
- }
- // 상병코드 또는 상병명을 조건으로 상병을 조회한다.
- function fSearchDiag() {
-
- submit("TRPIZ00401");
-
- grd_diagmast.colHidden(grd_diagmast.colRef("termcd")) = true;
- grd_diagmast.colHidden(grd_diagmast.colRef("diagcd")) = false;
- }
- function getDiagNodeListCSV(nodeList) {
-
- if( nodeList.length == 0 ){
- return;
- }
-
- var sColSep = "▦";
- var sRowSep = "▩";
-
- var rCSV = "";
-
- var childNodeList = nodeList.item(0).childNodes;
- var childNodeCnt = childNodeList.length;
- if( childNodeCnt == 0 ){
- return;
- }
-
- var i, j;
- for( i = 0; i < childNodeCnt - 1; i++) {
- rCSV += childNodeList.item(i).nodeName + sColSep;
- }
- rCSV += childNodeList.item(i).nodeName + sRowSep;
-
- var node;
- var cnt = 1;
- var selCnt = 0;
- while( node = nodeList.nextNode() ) {
- if (model.getValue ( "/root/main/list1/listdiag[" + cnt++ + "]/status" ) == "I" ) {
- childNodeList = node.childNodes;
- for( i = 0; i < childNodeCnt - 1; i++) {
- rCSV += childNodeList.item(i).text + sColSep;
- }
- rCSV += childNodeList.item(i).text + sRowSep;
- selCnt++;
- }
- }
- if ( selCnt == 0 ) {
- return "N"
- } else {
- return rCSV;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="570" 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:869px; height:525px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:45px; x2:867px; y2:45px; "/>
- <datagrid id="grd_diagmast" nodeset="/root/main/list1/listdiag" class="datagrid2" caption="S^시작일자^종료일자^ICD10^상병코드^영문명^한글명^특정기호" colsep="^" colwidth="25, 61, 61, 67, 78, 330, 331, 100" dataheight="25" ellipsis="true" mergecellsfixedcols="byrow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:1px; top:50px; width:864px; height:475px; ">
- <col checkvalue="I,N" ref="status" type="checkbox"/>
- <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" visibility="hidden"/>
- <col ref="diagengnm"/>
- <col ref="diaghngnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- model.setValue ( "/root/main/list1/listdiag[" + grd_diagmast.row + "]/status", "I" );
- var rtn1 = getDiagNodeListCSV ( model.instances(0).selectNodes( "/root/main/list1/listdiag" ));
-
- opener.javascript.setParameter( "SPMMO00800_rtn", rtn1 );
- opener.javascript.setParameter("SPMMO00800_rtn_useyn", "Y");
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_diagmast.row == 0 ) {
- if (grd_diagmast.col != grd_diagmast.colRef("status"))
- return;
-
- var status = grd_diagmast.valueMatrix( 0, grd_diagmast.colRef("status"));
- var setstatus = "";
- var currentstatus = "";
- var statuscd = "";
-
- if (status == "S")
- {
- setstatus = "V";
- statuscd = "I";
- }
- else if( status == "V")
- {
- setstatus = "S";
- statuscd = "N";
- }
-
- grd_diagmast.valueMatrix( 0, grd_diagmast.colRef("status")) = setstatus;
-
-
- for( i=1; i<grd_diagmast.rows; i++ )
- {
- currentstatus = grd_diagmast.valueMatrix( i, grd_diagmast.colRef("status"));
- grd_diagmast.valueMatrix( i, grd_diagmast.colRef("status"))= statuscd;
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:865px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:859px; height:44px; "/>
- <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; "/>
- <line id="line13" class="line_4" style="x1:785px; y1:7px; x2:785px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:795px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchDiag();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:145px; top:15px; width:42px; height:17px; ">유형 :</caption>
- <select1 id="rdo_diagkind" ref="/root/send/selectedrdodiagkind" visibility="hidden" appearance="full" cellspacing="5" cols="2" overflow="hidden" style="left:85px; top:5px; 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>
- <bool id="bol_between" checkvalue="Y,N" ref="/root/send/between" style="left:215px; top:10px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var code = bol_between.value
-
- if(code == "Y"){
- switch1.selectedIndex = 1;
- model.setValue("/root/send/diagcd","");
- model.setValue("/root/send/diagnm","");
- }
- else{
- switch1.selectedIndex = 0;
- }
- ]]>
- </script>
- </bool>
- <switch id="switch1" class="sw_no_border" style="left:330px; top:6px; width:445px; height:35px; ">
- <case id="case1" style="left:0px; top:0px; width:420px; height:30px; ">
- <caption id="caption1" class="search_name" style="left:10px; top:4px; width:86px; height:17px; ">상병코드 :</caption>
- <caption id="caption3" class="search_name" style="left:172px; top:4px; width:63px; height:17px; ">상병명 :</caption>
- <input id="ipt_diagcd" ref="/root/send/diagcd" class="input_search" style="left:95px; top:4px; width:70px; height:19px; "/>
- <input id="ipt_diagnm" ref="/root/send/diagnm" class="input_search" style="left:240px; top:4px; width:170px; height:19px; "/>
- </case>
- <case id="case2" selected="true" style="left:0px; top:0px; width:420px; height:30px; ">
- <caption id="caption5" class="search_name" style="left:10px; top:4px; width:86px; height:17px; ">상병코드 :</caption>
- <caption id="caption6" style="left:188px; top:5px; width:19px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_from" ref="/root/send/fromcd" class="input_search" style="left:110px; top:5px; width:70px; height:19px; "/>
- <input id="ipt_to" ref="/root/send/tocd" class="input_search" style="left:205px; top:5px; width:75px; height:19px; "/>
- </case>
- </switch>
- <caption id="caption8" style="left:242px; top:11px; width:55px; height:20px; ">범위검색</caption>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:530px; width:865px; height:28px; ">
- <button id="btn_close" class="btn4_letter2" style="left:807px; 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" visibility="hidden" style="left:545px; top:5px; 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; "/>
- <button id="button1" class="btn4_letter2" style="left:752px; top:3px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn1 = getDiagNodeListCSV ( model.instances(0).selectNodes( "/root/main/list1/listdiag" ));
-
- if ( rtn1 == "N" ) {
- messageBox ( "선택된 진단이", "I004" );
- } else {
- opener.javascript.setParameter( "SPMMO00800_rtn", rtn1 );
- opener.javascript.setParameter( "SPMMO00800_rtn_useyn", "Y");
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|