123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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="">
- <main>
- <cmbinfo/>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- <temp>
- <ret/>
- <multiselect/>
- <cdnmnode/>
- <nodeset/>
- <cdidnode/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // common.js
- if ( checkOpener() ) {
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if (param != "") { // opener parameter value가 있는 경우
- condarray = param.split("▦");
- model.setValue("/root/temp/multiselect", condarray[0]); // Y/N [멀티선택여부] 및 C [코드로 리턴]
- model.setValue("/root/temp/nodeset" , condarray[1]); // 그리드에 동적으로 연결할 nodeset
- model.setValue("/root/temp/cdnmnode" , condarray[2]); // 코드값 리턴 인스턴스
- model.setValue("/root/temp/cdidnode" , condarray[3]); // 코드 리턴 인스턴스
- cpt_title.text = condarray[4];
- document.title = condarray[4]; // title 변경 하기
- // 선택을 멀티로 하는 경우 선택하는 체크 박스를 활성화 시킨다.
- if ( condarray[0] == "Y" ) {
- grd_list.colHidden(1) = false;
- } else {
- grd_list.colHidden(1) = true;
- }
- model.copyNode("/root/main/cmbinfo" , opener.root.temp.cmbinfo);
- grd_list.nodeset = condarray[1];
- model.refresh();
- }
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="505" pageheight="350" guideline="1,1194;2,784;2,757;" 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:485px; height:306px; ">
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:480px; y2:25px; "/>
- <caption id="cpt_title" class="tit_2" style="left:10px; top:10px; width:325px; height:13px; ">요양급여신청서 항목별 코드 선택</caption>
- <datagrid id="grd_list" nodeset="/root/main/cmbinfo" caption="^코드^설명" colwidth="24, 54, 357" dataheight="7" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:5px; top:30px; width:475px; height:270px; ">
- <col ref="chk" type="checkbox" checkvalue="Y,N"/>
- <col ref="cdid"/>
- <col ref="cdnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var scdnmnode = model.getValue("/root/temp/cdnmnode");
- opener.model.setValue(scdnmnode, grd_list.labelMatrix(grd_list.row, 3));
- // C로 되어 있으면 코드값도 리턴한다. [진단명]
- if ( model.getValue("/root/temp/multiselect") == "C" ) {
- var scdidnode = model.getValue("/root/temp/cdidnode");
- opener.model.setValue(scdidnode, grd_list.labelMatrix(grd_list.row, 2));
- }
- opener.model.refresh();
- ]]>
- </script>
- <close ev:event="ondblclick"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:480px; height:27px; ">
- <button id="btn_confirm1" class="btn4_letter2" style="left:355px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_list.fixedcellcheckbox(0,1) = false;
- // 여러 건 선택하는 경우
- if ( model.getValue("/root/temp/multiselect") == "Y" ) {
- var svalue = "";
- for (var i = 1; i < grd_list.rows; i++) {
- if ( grd_list.valuematrix(i, 1) == "Y") {
- if ( svalue == "" ) {
- svalue = grd_list.labelMatrix(i, 3);
- } else {
- svalue = svalue + ", " + grd_list.labelMatrix(i, 3);
- }
- }
- }
- var scdnmnode = model.getValue("/root/temp/cdnmnode");
- opener.model.setValue(scdnmnode, svalue);
- opener.model.refresh();
- } else {
- var scdnmnode = model.getValue("/root/temp/cdnmnode");
- opener.model.setValue(scdnmnode, grd_list.labelMatrix(grd_list.row, 3));
- // C로 되어 있으면 코드값도 리턴한다. [진단명]
- if ( model.getValue("/root/temp/multiselect") == "C" ) {
- var scdidnode = model.getValue("/root/temp/cdidnode");
- opener.model.setValue(scdidnode, grd_list.labelMatrix(grd_list.row, 2));
- }
- opener.model.refresh();
- }
- ]]>
- </script>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_cancel1" class="btn4_letter2" style="left:415px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|