123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIZ01500_의약분업예외사유코드조회.xrw
- * 수정이력
- * - 2007.10.01 / 최초작성 / 정주미
- *
- -->
- <?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 xmlns="">
- <main>
- </main>
- <send>
- </send>
- <init>
- <P0150list>
- <P0150/>
- </P0150list>
- </init>
- <hidden>
- <sppiz01500>
- <cond>
- <cdid/>
- </cond>
- <rslt>
- <cdid/>
- </rslt>
- </sppiz01500>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize(); // 화면을 초기화한다..
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면을 초기화한다.
- function fInitialize() {
- model.removeNodeset("/root/init/P0150list/P0150");
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList( new Array("P0150"), new Array("/root/init/P0150list"), false ); // minimum을 'false'로 설정한 경우에는 코드의 모든속성을 가져온다.
- model.refresh();
- for (var i = 1; i < grd_hosinresn.rows; i++) {
- var detldesc = model.getValue("/root/init/P0150list/P0150[" + i + "]/detldesc");
- if (detldesc) {
- model.setValue("/root/init/P0150list/P0150[" + i + "]/detldesc", detldesc.substr(detldesc.length - 2, 2));
- }
- }
- model.refresh();
- grd_hosinresn.resizeCells();
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var selectedCd = model.getValue("/root/hidden/sppiz01500/cond/cdid");
- for (var i = 1; i < grd_hosinresn.rows; i++) {
- if (selectedCd == model.getValue("/root/init/P0150list/P0150[" + i + "]/cdid")) {
- grd_hosinresn.row = i;
- i = grd_hosinresn.rows;
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="688" pageheight="541" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:672px; height:514px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:69px; height:14px; ">예외사유</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:672px; y2:25px; "/>
- <datagrid id="grd_hosinresn" nodeset="/root/init/P0150list/P0150" autoresize="true" caption="구분^코드^사유명칭" colsep="^" colwidth="40, 30, 573" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:672px; height:484px; ">
- <col ref="detldesc"/>
- <col ref="cdid"/>
- <col ref="cdnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점 UID와 비교하여 변경되었는지 여부를 반환
- var exptresn = model.getValue( "/root/init/P0150list/P0150[" + grd_hosinresn.row + "]/cdid");
- model.setValue(opener.root.hidden.sppiz01500.rslt.cdid, exptresn);
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:514px; width:672px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:557px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var exptresn = model.getValue( "/root/init/P0150list/P0150[" + grd_hosinresn.row + "]/cdid");
- model.setValue(opener.root.hidden.sppiz01500.rslt.cdid, exptresn);
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
- }
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:616px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:672px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|