123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?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>
- <optreelists>
- <optreelist>
- <depth/>
- <opgrp1/>
- <opgrp2/>
- <opgrp3/>
- <opgrp4/>
- <opcode/>
- <instcd/>
- <opgname/>
- </optreelist>
- </optreelists>
- </main>
- <send>
- <treeflag>N</treeflag>
- <instcd>012</instcd>
- </send>
- <Cond>
- <opcode/>
- <opname/>
- <oplist/>
- </Cond>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSearchClick();
- ]]>
- </script>
- <submission id="TRMNP01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/optreelists"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- model.reset();
- } else {
- messageBox("처리를 수행","E002");
- }
- model.refresh();
- }
-
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd" ,"012");
- model.makeValue("/root/send/treeflag", "N");
- submit("TRMNP01502");
- }
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- alert(model.elementName("/root/main/item"));
- }
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
-
- function fDblclick(pIdx) {
-
- var xPath ="/root/main/optreelists/optreelist";
-
- var Idx = pIdx + 1;
- var sDepth = model.getValue(xPath +"["+Idx+"]/depth");
-
- if (sDepth != "3" ) {
- return;
- }
- //var clscd = model.getValue("/root/main/cond/clscd");
- //model.setValue("/root/main/cond/clsnm", model.getValue("/root/main/educclslist/educclslistinfo[clscd='" + clscd + "']/clsnm"));
-
-
- var iParam_code = fGetValue(xPath, Idx, "opcode" );
- var iParam_name = fGetValue(xPath, Idx, "opgname");
-
-
- var iParam = iParam_code + "|" + iParam_name;
-
- // alert(iParam);
-
- opener.javascript.setParameter("SendData", iParam);
-
- window.close();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="450" pageheight="610" style="border-color:#c7a3cf; ">
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:444px; height:590px; border-color:#c7a3cf; border-style:solid; ">
- <treeview id="trv_opcode" ref="/root/Cond/opcode" expanddepth="0" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:4px; top:9px; width:435px; height:578px; ">
- <itemset nodeset="/root/main/optreelists/optreelist">
- <label ref="opgname"/>
- <value ref="opgrp4"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fDblclick(trv_opcode.focusIndex);
- ]]>
- </script>
- </treeview>
- <line id="line1" class="line_1" style="x1:3px; y1:4px; x2:439px; y2:4px; "/>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:442px; height:13px; ">수술명조회</caption>
- </xhtml:body>
- </xhtml:html>
|