| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIZ01000_심사수정사유관리.xrw
- * 수정이력
- * - 2007.07.17 / 최초작성 / 정주미
- * /root/hidden/sppiz01000/cond/cdcls : opener종류(사후입원, 사후외래, 재원)
- * /root/hidden/sppiz01000/cond/cdid : 이전에 선택된 수정사유코드
- * /root/hidden/sppiz01000/rslt/cdid : 현재 선택된 수정사유코드
- -->
- <?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>
- <P0153list>
- <P0153/>
- </P0153list>
- <P0127list>
- <P0127/>
- </P0127list>
- <adjtresndesc/>
- </init>
- <hidden>
- <sppiz01000>
- <cond>
- <cdcls/>
- <cdid/>
- </cond>
- <rslt>
- <cdid/>
- <adjtresndesc/>
- </rslt>
- </sppiz01000>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" 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/P0153list/P0153");
- model.removeNodeset("/root/init/P0127list/P0127");
- // 공통코드를 조회한다.
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var selectedCd = model.getValue("/root/hidden/sppiz01000/cond/cdid");
- if (model.getValue("/root/hidden/sppiz01000/cond/cdcls") == "aftin") { // opener가 사후 입원이면 P0127
- grd_judgresn0153.visible = false;
- grd_judgresn0127.visible = true;
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList( new Array("P0127"), new Array("/root/init/P0127list" ) );
- model.refresh();
- if (selectedCd) { // 기존에 선택된 사유
- for (var i = 1; i < grd_judgresn0127.rows; i++) {
- if (selectedCd == model.getValue("/root/init/P0127list/P0127[" + i + "]/cdid")) {
- grd_judgresn0127.row = i;
- i = grd_judgresn0127.rows;
- }
- }
- }
- }
- else if (model.getValue("/root/hidden/sppiz01000/cond/cdcls") == "aftout") { // opener가 사후 외래이면 P0127
- // 현재는 사후입원과 사후외래가 동일한 수정사유(같은 공통코드)를 사용하나, 추후 변경될수 있으므로 로직을 분리함
- grd_judgresn0153.visible = false;
- grd_judgresn0127.visible = true;
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList( new Array("P0127"), new Array("/root/init/P0127list" ) );
- model.refresh();
- if (selectedCd) { // 기존에 선택된 사유
- for (var i = 1; i < grd_judgresn0127.rows; i++) {
- if (selectedCd == model.getValue("/root/init/P0127list/P0127[" + i + "]/cdid")) {
- grd_judgresn0127.row = i;
- i = grd_judgresn0127.rows;
- }
- }
- }
- } else { // opener가 사전이면 P0153
- grd_judgresn0153.visible = true;
- grd_judgresn0127.visible = false;
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList( new Array("P0153"), new Array("/root/init/P0153list" ) );
- model.refresh();
- if (selectedCd) { // 기존에 선택된 사유
- for (var i = 1; i < grd_judgresn0153.rows; i++) {
- if (selectedCd == model.getValue("/root/init/P0153list/P0153[" + i + "]/cdid")) {
- grd_judgresn0153.row = i;
- i = grd_judgresn0153.rows;
- }
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="243" pageheight="400" 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:227px; height:365px; ">
- <datagrid id="grd_judgresn0153" nodeset="/root/init/P0153list/P0153" caption="코드^사전 수정사유 명칭" colsep="^" colwidth="45, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:227px; height:186px; ">
- <col ref="cdid"/>
- <col ref="cdnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var judgresn = model.getValue( "/root/init/P0153list/P0153[" + grd_judgresn0153.row + "]/cdid");
- var adjtresndesc = model.getValue("/root/init/adjtresndesc");
-
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
-
- model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
- model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_judgresn0127" nodeset="/root/init/P0127list/P0127" caption="코드^사후 수정사유 명칭" colsep="^" colwidth="45, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:227px; height:186px; ">
- <col ref="cdid"/>
- <col ref="cdnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- var judgresn = model.getValue( "/root/init/P0127list/P0127[" + grd_judgresn0127.row + "]/cdid");
- var adjtresndesc = model.getValue("/root/init/adjtresndesc");
-
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
-
- model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
- model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
- window.close(); // F5 실행시 IE를 종료시킨다.
- }
- ]]>
- </script>
- </datagrid>
- <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:227px; y2:25px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:220px; width:95px; height:14px; ">수정세부사유</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:235px; x2:227px; y2:235px; "/>
- <textarea id="textarea1" ref="/root/init/adjtresndesc" style="left:0px; top:240px; width:227px; height:125px; text-align:left; vertical-align:top; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:366px; width:227px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:171px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if (grd_judgresn0153.visible == true) {
- var judgresn = model.getValue( "/root/init/P0153list/P0153[" + grd_judgresn0153.row + "]/cdid");
- var adjtresndesc = model.getValue("/root/init/adjtresndesc");
-
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
-
- model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
- model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
- } else {
- var judgresn = model.getValue( "/root/init/P0127list/P0127[" + grd_judgresn0127.row + "]/cdid");
- var adjtresndesc = model.getValue("/root/init/adjtresndesc");
-
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
- opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
-
- model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
- model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
- }
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:136px; 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:227px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|