123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <!--
- * @(#)SPPIZ09100_확인코드조회.xrw
- * 수정이력
- * - 2007.08.13 / 최초작성 / 김건기
- *
- * - opener 에서 전달받는 조건 경로
- -->
- <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>
- <list>
- <cnfmcdlist>
- <chos/>
- <cdid/>
- <cdnm/>
- <detldesc/>
- </cnfmcdlist>
- </list>
- </main>
- <send>
- <data1>
- <srchflag/>
- <srchcond1/>
- <srchcond2/>
- <flag/>
- </data1>
- <data2>
- <code/>
- </data2>
- </send>
- <hidden>
- <rcv/>
- </hidden>
- <init>
- <sppiz01100>
- <cond>
- <code/>
- </cond>
- </sppiz01100>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize(); // 화면을 초기화한다.
- ]]>
- </script>
- <submission id="TRPIZ01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- model.removenode("/root/main/list");
- model.makeNode("/root/main/list");
-
- model.setValue("/root/send/data1/srchflag","0");
- model.setValue("/root/send/data1/srchcond1","1");
-
- if (checkOpener()) {
- // opener에 설정된 확인코드를 초기 입력코드 값으로 한다.
- var code = model.getValue("/root/init/sppiz01100/cond/code");
-
- var len = code.length;
- if (len > 1) {
- model.setValue("/root/send/data2/code", "/" + code);
- }
-
- // 팝업 화면으로 사용시 기본적으로 전체 조회 상태가 된다.
- btn_search.dispatch("DOMActivate");
-
- var code = model.getValue("/root/send/data2/code");
-
- if (code !="") {
-
- var arr = code.split("/");
- var cdid = "";
- var reqcdid = "";
- var rows = grd_codelist.rows;
-
- for (var i=1; i<arr.length; i++) {
- reqcdid = arr[i];
- for (var j=0; j<rows; j++) {
- cdid = model.getValue("/root/main/list/cnfmcdlist[" + j +"]/cdid");
-
- if (reqcdid == cdid) {
- grd_codelist.valueMatrix(j,grd_codelist.colRef("chos")) = "true";
- }
- }
- }
- }
- }
-
- model.refresh();
- }
-
- //선택된 확인 코드를 Opener에 전달 한다.
- function fSetSelectedData()
- {
-
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- // model.copyNode(opener.root.hidden.JT001, model.getValue("/root/send/data2/code"));
-
- // 입력을 취소 상태로 하여 opener에게 전달한 경우와 변경없이 닫기 요청을 한 경우 구분을 위해
- // rslt 경로가 존재하면 "입력" 한 것으로, 없으면 "닫기"를 요청한 것으로 판단한다.
-
- var code = model.getValue("/root/send/data2/code");
- var len = code.length;
- if (len > 1) {
- var tmp = code.substring(0,1);
- if (tmp == "/") {
- code = code.substring(1,len);
- }
- model.setValue("/root/send/data2/code",code);
- }
- opener.model.removeNodeset("root/hidden/sppiz01100/rslt");
- opener.model.makeNode("root/hidden/sppiz01100/rslt");
- model.copyNode(opener.root.hidden.sppiz01100.rslt, "/root/send/data2");
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
- }
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="587" pageheight="558" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:571px; height:489px; ">
- <input id="opt_code" ref="/root/send/data2/code" class="input_default" _chartype="upper" appearance="input" style="left:103px; top:22px; width:465px; height:19px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:126px; height:13px; ">확인코드</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:20px; width:100px; height:23px; ">입력코드</caption>
- <line id="line1" class="line_3" style="x1:0px; y1:44px; x2:570px; y2:44px; "/>
- <line id="line2" class="line_1" style="width:570px; x1:0px; y1:15px; x2:570px; y2:15px; "/>
- <datagrid id="grd_codelist" nodeset="/root/main/list/cnfmcdlist" caption="선택^코드^내역^영문" colsep="^" colwidth="41, 85, 147, 279" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:50px; width:570px; height:438px; ">
- <col ref="chos" type="checkbox"/>
- <col ref="cdid"/>
- <col ref="cdnm"/>
- <col ref="detldesc"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_codelist.isCell(event.target) && grd_codelist.row >= grd_codelist.fixedRows) {
- var row = grd_codelist.row ;
-
- var code = model.getValue("/root/send/data2/code");
- var chk = grd_codelist.valueMatrix(row,0);
- var cdid = grd_codelist.valueMatrix(row,1);
- cdid = "/" + cdid;
- if ( chk != "true") {
- model.setValue("/root/send/data2/code", code + cdid);
- grd_codelist.valueMatrix(row,0) = "true";
- } else {
- model.setValue("/root/send/data2/code", code.replace(cdid,""));
- grd_codelist.valueMatrix(row,0) = "false";
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_codelist.row ;
- var code = model.getValue("/root/send/data2/code");
- var chk = grd_codelist.valueMatrix(row,0);
- var cdid = grd_codelist.valueMatrix(row,1);
- cdid = "/" + cdid;
-
- if ( chk == "true") {
- model.setValue("/root/send/data2/code", code + cdid);
- } else {
- model.setValue("/root/send/data2/code", code.replace(cdid,""));
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:531px; width:571px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:570px; y2:0px; "/>
- <button id="btn_confirm" class="btn4_letter2" navindex="3" style="left:514px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="button42" class="btn4_letter2" navindex="2" style="left:394px; top:5px; width:56px; height:22px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택된 Message를 Opener 에 전달 한다.
- fSetSelectedData();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="2" style="left:454px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/data2/code","");
- var rows = grd_codelist.rows;
-
- for (i=1;i<rows;i++) {
- grd_codelist.valueMatrix(i,0) = "false";
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:571px; height:35px; "/>
- <select1 id="cmb_srchcond1" ref="/root/send/data1/srchflag" class="combo_s_default" navindex="1" appearance="minimal" style="left:104px; top:8px; width:100px; height:19px; ">
- <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>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/list");
- model.makeNode("/root/main/list");
-
- var str = model.getValue("/root/send/data1/srchcond2");
-
- if (str.charCodeAt(0) > 255) {
- model.setValue("/root/send/data1/flag","1");
- } else {
- model.setValue("/root/send/data1/flag","2");
- }
- //
- if(submit("TRPIZ01101")) {
- var listcnt = getNodesetCount("/root/hidden/rcv/list/cnfmcdlist");
- if (listcnt > 0) {
- copyNodeType("/root/main/list","/root/hidden/rcv/list","replace");
- }
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <line id="line13" class="line_4" style="x1:490px; y1:6px; x2:490px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:505px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list");
- model.makeNode("/root/main/list");
-
- var str = model.getValue("/root/send/data1/srchcond2");
-
- if (str.charCodeAt(0) > 255) {
- model.setValue("/root/send/data1/flag","1");
- } else {
- model.setValue("/root/send/data1/flag","2");
- }
- //
- if(submit("TRPIZ01101")) {
- var listcnt = getNodesetCount("/root/hidden/rcv/list/cnfmcdlist");
- if (listcnt > 0) {
- copyNodeType("/root/main/list","/root/hidden/rcv/list","replace");
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_srchcond2" ref="/root/send/data1/srchcond1" appearance="full" cols="2" overflow="visible" style="left:220px; top:10px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>내역</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srchcond3" ref="/root/send/data1/srchcond2" class="input_search" _chartype="upper" style="left:325px; top:8px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|