123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>검사 예약 제어 정보 항목 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <srchcd>
- <cdinfo>
- <nm>진료과</nm>
- <cd>dept</cd>
- </cdinfo>
- <cdinfo>
- <nm>진료의</nm>
- <cd>ordr</cd>
- </cdinfo>
- <cdinfo>
- <nm>처방코드</nm>
- <cd>prcd</cd>
- </cdinfo>
- <cdinfo>
- <nm>검사실</nm>
- <cd>room</cd>
- </cdinfo>
- <cdinfo>
- <nm>검사코드</nm>
- <cd>excd</cd>
- </cdinfo>
- <cdinfo>
- <nm>약코드</nm>
- <cd>dgcd</cd>
- </cdinfo>
- <cdinfo>
- <nm>수술코드</nm>
- <cd>opcd</cd>
- </cdinfo>
- </srchcd>
- </init>
- <main>
- <itemlist>
- <iteminfo>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <sortseq/>
- <valtype/>
- <valtypenm/>
- <addflag/>
- <valid/>
- <reftbl/>
- <srchcd/>
- <valcdarr/>
- <valnmarr/>
- </iteminfo>
- </itemlist>
- </main>
- <send>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <sortseq/>
- <valtype/>
- <addflag/>
- <valid/>
- <reftbl/>
- <srchcd/>
- <valcd/>
- <erit/>
- </send>
- <temp>
- <vallist>
- <valinfo>
- <itemseq/>
- <itemnm/>
- </valinfo>
- </vallist>
- </temp>
- <hidden>
- <popupmenu>
- <item>
- <name>삭제</name>
- <func>fDelItem</func>
- </item>
- </popupmenu>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMB03701" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/itemlist/iteminfo"/>
- <submission id="TXPMB03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
- <submission id="TXPMB03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetValList() {
- model.resetInstanceNode("/root/temp/vallist/valinfo");
- grd_val.refresh();
-
- var path = "/root/main/itemlist/iteminfo";
- var cnt = instance1.selectNodes(path).length;
- var idx = 1;
-
- for (var i = 1; i <= cnt; i++) {
-
- var itemtype = model.getValue(path + "[" + i + "]/itemtype");
- var valtype = model.getValue(path + "[" + i + "]/valtype");
-
- if ( itemtype == "R" || itemtype == "E" ) {
- model.makeValue("/root/temp/vallist/valinfo[" + idx + "]/itemseq", model.getValue(path + "[" + i + "]/itemseq"));
- model.makeValue("/root/temp/vallist/valinfo[" + idx + "]/itemnm", model.getValue(path + "[" + i + "]/itemnm"));
- idx++;
- }
- }
-
- grd_val.refresh();
- }
-
-
- function fDelItem() {
- grd_item.addStatus(grd_item.row, "delete");
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRPMB03701");
- fSetValList();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">검사 예약 제어 정보 항목 관리</caption>
- <caption id="caption6" class="tit_2" style="left:0px; top:25px; width:85px; height:13px; ">항목 정보</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:40px; x2:1195px; y2:40px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:64px; x2:1195px; y2:64px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:44px; width:65px; height:17px; ">항목 형식</caption>
- <select1 id="cmb_itemtype" ref="/root/send/itemtype" appearance="minimal" style="left:67px; top:43px; width:71px; height:19px; ">
- <choices>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- <item>
- <label>제어</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/itemtype") == "E") {
- chk_valtype.disabled = true;
- } else {
- chk_valtype.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="cell_1" style="left:141px; top:44px; width:47px; height:17px; ">항목명</caption>
- <input id="ipt_itemnm" ref="/root/send/itemnm" style="left:190px; top:43px; width:100px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:293px; top:44px; width:53px; height:17px; ">값 형식</caption>
- <select id="chk_valtype" ref="/root/send/valtype" overflow="visible" appearance="full" cols="5" style="left:348px; top:44px; width:180px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>직접</label>
- <value>D</value>
- </item>
- <item>
- <label>조회</label>
- <value>S</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- </choices>
- </select>
- <caption id="caption3" class="cell_1" style="left:615px; top:44px; width:42px; height:17px; ">값 ID</caption>
- <input id="ipt_valid" ref="/root/send/valid" style="left:658px; top:43px; width:120px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:781px; top:44px; width:78px; height:17px; ">참조 테이블</caption>
- <input id="ipt_reftbl" ref="/root/send/reftbl" style="left:861px; top:43px; width:120px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:984px; top:44px; width:65px; height:17px; ">조회 항목</caption>
- <select1 id="cmb_srchcd" ref="/root/send/srchcd" appearance="minimal" style="left:1051px; top:43px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchcd/cdinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_rgst" class="btn2_letter2" navindex="4" style="left:1153px; top:43px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var valtype = model.getValue("/root/send/valtype").replace(/ /g, '');
- model.setValue("/root/send/valtype", valtype);
-
- submit("TXPMB03701");
- grd_item.resizeCells();
- fSetValList();
-
- model.resetInstanceNode("/root/send");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_grid" class="tit_2" style="left:0px; top:75px; width:75px; height:14px; ">항목 목록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1050px; y2:90px; "/>
- <datagrid id="grd_item" nodeset="/root/main/itemlist/iteminfo" autoresize="true" caption="항목형식^항목순번^항목명^정렬^값 형식^값 형식^가산^값 ID^참조테이블^조회 항목^값항목코드목록^값 항목" colsep="^" colwidth="100, 0, 100, 50, 60, 140, 35, 100, 100, 100, 0, 230" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:95px; width:1050px; height:665px; ">
- <col explorerbar="sortshow" disabled="true" ref="itemtype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- <item>
- <label>포함</label>
- <value>S</value>
- </item>
- <item>
- <label>제어</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="itemseq"/>
- <col explorerbar="sortshow" ref="itemnm" type="input" style="text-align:center; "/>
- <col explorerbar="sortshow" ref="sortseq" type="input" format="9999" style="text-align:center; "/>
- <col ref="valtype" type="input" style="text-align:center; "/>
- <col ref="valtypenm" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="addflag" type="checkbox"/>
- <col ref="valid" type="input" style="text-align:center; "/>
- <col ref="reftbl" type="input" style="text-align:center; "/>
- <col ref="srchcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/srchcd/cdinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="valseqarr"/>
- <col ref="valnmarr" style="text-align:left; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_item", false, "/root/hidden/popupmenu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_item.isCell(event.target)) {
- return;
- }
-
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_set" class="btn2_letter2" navindex="4" style="left:1008px; top:70px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/erit", grd_item.getUpdateData());
-
- submit("TXPMB03702");
- grd_item.resizeCells();
- fSetValList();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:1070px; top:75px; width:65px; height:13px; ">값 항목</caption>
- <line id="line6" class="line_1" style="x1:1070px; y1:90px; x2:1195px; y2:90px; "/>
- <datagrid id="grd_val" nodeset="/root/temp/vallist/valinfo" backcoloralternate="transparent" caption="항목순번^항목명" colsep="^" colwidth="0, 120" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:1070px; top:95px; width:125px; height:665px; ">
- <col ref="itemseq"/>
- <col ref="itemnm"/>
- </datagrid>
- <button id="btn_valset" class="btn2_letter2" navindex="4" style="left:1153px; top:70px; width:46px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cnt = grd_val.selectedCells.length;
-
- var seqstr = "";
- var nmstr = "";
-
- for (var i = 0; i < cnt; i++) {
- seqstr += grd_val.valueMatrix(grd_val.selectedCells.item(i).row, grd_val.colRef("itemseq"));
- nmstr += grd_val.valueMatrix(grd_val.selectedCells.item(i).row, grd_val.colRef("itemnm"));
-
- if (i < cnt - 1) {
- seqstr += ",";
- nmstr += ",";
- }
- }
-
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("valseqarr")) = seqstr;
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("valnmarr")) = nmstr;
-
- grd_item.addStatus(grd_item.row, "update");
-
- grd_item.resizeCells();
- ]]>
- </script>
- </button>
- <caption id="caption8" style="left:1050px; top:395px; width:20px; height:20px; color:#808080; text-align:center; ">◀</caption>
- <select id="chk_addflag" ref="/root/send/addflag" overflow="visible" appearance="full" style="left:540px; top:44px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>가산허용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|