123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <hardcd>
- <hardcd>
- <status/>
- <hardcd/>
- <hardcdnm/>
- </hardcd>
- </hardcd>
- <send>
- <cond1/>
- </send>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB16401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hardcd"/>
- <bind id="bind1" ref="/root/hardcd/hardcd/hardcdnm" readonly="../hardcd != 'T'"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sHardCdNo = opener.javascript.getParameter ("SPMMO90300_hardcdno" );
- if(isNull(sHardCdNo)){
- messageBox("관련된 코드 정보가 존재 하지 않습니다.\n전산실(6598)로 문의 하세요.", "E999");
- return;
- }
-
- model.setValue("/root/send/cond1", sHardCdNo);
- submit("TRMMB16401" );
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 전역변수
- var cRow = ""; // 사유입력리스트에서 선택된 행
- var cResnFlag = ""; // 사유입력리스트에서 선택된 사유구분
-
- // 화면 open, 저장시 초기화 기능을 수행한다.
- function fClose() {
- window.close();
- }
-
-
- function fSelectHardCd() {
- var resnRow = grd_resnlist.row;
-
- if (resnRow != -1) {
- var sHardCd = model.getValue("/root/hardcd/hardcd[" + resnRow + "]/hardcd") // 선택된 사유 코드
- var sHardNm = model.getValue("/root/hardcd/hardcd[" + resnRow + "]/hardcdnm") // 선택된 사유 상세
- if(sHardNm == "(이곳에 사유입력을 하세요)" || sHardNm == "기타사유 (직접입력)") {
- grd_resnlist.col = grd_resnlist.colRef("hardcdnm");
- grd_resnlist.colDisabled(grd_resnlist.col) = false;
- grd_resnlist.editCell();
- } else {
- opener.javascript.setParameter ("SPMMO90300_rtn", "Y" );
- opener.javascript.setParameter ("SPMMO90300_hardcd", sHardCd );
- opener.javascript.setParameter ("SPMMO90300_hardnm", sHardNm );
- fClose();
- }
- }else{
- messageBox ( "선택된 사유가 없습니다." , "I" );
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="770" pageheight="280" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_2" style="left:5px; top:11px; width:75px; height:15px; ">항목선택</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:28px; x2:750px; y2:28px; "/>
- <datagrid id="grd_resnlist" nodeset="/root/hardcd/hardcd" autoresize="true" caption="코드^상세내용" colsep="^" colwidth="35, 695" dataheight="23" ellipsis="true" extendlastcol="scroll" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:34px; width:750px; height:210px; ">
- <col ref="hardcd" style="text-align:center; "/>
- <col disabled="false" editable="true" imemode="hangul" ref="hardcdnm" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() ) {
- var currow = grd_resnlist.row;
- if ( model.getValue ( "/root/hardcd/hardcd[" + currow + "]/hardcdnm" ) == "(이곳에 사유입력을 하세요)"
- || model.getValue ( "/root/hardcd/hardcd[" + currow + "]/hardcdnm" ) == "기타사유 (직접입력)" ) {
- grd_resnlist.col = grd_resnlist.colRef("hardcdnm");
- grd_resnlist.colDisabled(grd_resnlist.col) = false;
- grd_resnlist.editCell();
- } else {
- grd_resnlist.colDisabled(grd_resnlist.col) = true;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var currow = grd_resnlist.row;
- if ( model.getValue ( "/root/hardcd/hardcd[" + currow + "]/hardcdnm" ) != "(이곳에 사유입력을 하세요)"
- && model.getValue ( "/root/hardcd/hardcd[" + currow + "]/hardcdnm" ) != "기타사유 (직접입력)" ) {
- fSelectHardCd();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() ) {
- fSelectHardCd();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn4_letter2" style="left:636px; top:247px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectHardCd();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:695px; top:247px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.setParameter ("SPMMO90300_rtn", "N" );
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|