123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <?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>
- <itemtype>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>제어</label>
- <value>C</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- <item>
- <label>질의</label>
- <value>Q</value>
- </item>
- <item>
- <label>획득</label>
- <value>A</value>
- </item>
- </itemtype>
- </init>
- <main>
- <itemlist>
- <iteminfo>
- <itemtype/>
- <itemseq/>
- <itemid/>
- <itemnm/>
- <sortseq/>
- <acqid/>
- <valtype/>
- <valtypenm/>
- <addflag/>
- <acqidarr/>
- <acqnmarr/>
- </iteminfo>
- </itemlist>
- </main>
- <send>
- <itemtype/>
- <itemseq/>
- <itemid/>
- <itemnm/>
- <sortseq/>
- <acqid/>
- <valtype/>
- <addflag/>
- <updtstr/>
- </send>
- <temp>
- <acqlist>
- <acqinfo>
- <acqid/>
- <acqnm/>
- </acqinfo>
- </acqlist>
- </temp>
- <hidden>
- <popupmenu>
- <item>
- <name>삭제</name>
- <func>fDelItem</func>
- </item>
- <item>
- <name>획득 항목 제거</name>
- <func>fDelAcqId</func>
- </item>
- <item>
- <name>획득 항목 목록 제거</name>
- <func>fDelAcqIdArr</func>
- </item>
- </popupmenu>
- </hidden>
- </root>
- </instance>
- <submission id="TRPEA00201" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/itemlist/iteminfo"/>
- <submission id="TXPEA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
- <submission id="TXPEA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist/iteminfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetGridStyle() {
- var cnt = instance1.selectNodes("/root/main/itemlist/iteminfo").length;
- for (var i = 1; i <= cnt; i++) {
- var itemtype = model.getValue("/root/main/itemlist/iteminfo[" + i + "]/itemtype");
- if (itemtype == "R") {
- grd_item.rowStyle(i, "all", "background-color") = "#ffffff";
- } else if (itemtype == "C") {
- grd_item.rowStyle(i, "all", "background-color") = "#ffffa0";
- } else if (itemtype == "E") {
- grd_item.rowStyle(i, "all", "background-color") = "#dcffdc";
- } else if (itemtype == "Q") {
- grd_item.rowStyle(i, "all", "background-color") = "#f0f0ff";
- } else if (itemtype == "A") {
- grd_item.rowStyle(i, "all", "background-color") = "#ffd2d2";
- }
- }
- }
-
- function fSetAcqList() {
- model.resetInstanceNode("/root/temp/acqlist/acqinfo");
- grd_acq.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");
- if (itemtype == "A") {
- model.makeValue("/root/temp/acqlist/acqinfo[" + idx + "]/chk", "N");
- model.makeValue("/root/temp/acqlist/acqinfo[" + idx + "]/valtype", model.getValue(path + "[" + i + "]/valtype"));
- model.makeValue("/root/temp/acqlist/acqinfo[" + idx + "]/valtypenm", model.getValue(path + "[" + i + "]/valtypenm"));
- model.makeValue("/root/temp/acqlist/acqinfo[" + idx + "]/acqid", model.getValue(path + "[" + i + "]/itemid"));
- model.makeValue("/root/temp/acqlist/acqinfo[" + idx + "]/acqnm", model.getValue(path + "[" + i + "]/itemnm"));
- idx++;
- }
- }
-
- grd_acq.refresh();
- }
-
-
- function fDelItem() {
- grd_item.addStatus(grd_item.row, "delete");
- }
-
- function fDelAcqId() {
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("acqid")) = "";
- grd_item.addStatus(grd_item.row, "update");
- }
-
- function fDelAcqIdArr() {
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("acqidarr")) = "";
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("acqnmarr")) = "";
- grd_item.addStatus(grd_item.row, "update");
- }
- ]]>
- </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("TRPEA00201");
- grd_item.resizeCells();
- fSetGridStyle();
- fSetAcqList();
- ]]>
- </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" navindex="1" appearance="minimal" style="left:66px; top:43px; width:71px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/itemtype/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var itemtype = model.getValue("/root/send/itemtype");
- if (itemtype == "R" || itemtype == "A") {
- chk_valtype.disabled = false;
- } else {
- chk_valtype.disabled = true;
- }
- ]]>
- </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" navindex="2" style="left:189px; top:43px; width:100px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:645px; top:44px; width:53px; height:17px; ">값 형식</caption>
- <select id="chk_valtype" ref="/root/send/valtype" navindex="5" overflow="visible" appearance="full" cols="5" style="left:702px; top:44px; width:220px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>직접</label>
- <value>D</value>
- </item>
- <item>
- <label>조회</label>
- <value>S</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>질의</label>
- <value>Q</value>
- </item>
- </choices>
- </select>
- <caption id="caption3" class="cell_1" style="left:293px; top:44px; width:52px; height:17px; ">항목 ID</caption>
- <input id="ipt_itemid" ref="/root/send/itemid" navindex="3" style="left:346px; top:43px; width:100px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:450px; top:44px; width:65px; height:17px; ">획득 항목</caption>
- <select1 id="cmb_acqid" navindex="4" appearance="minimal" style="left:516px; top:43px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/itemlist/iteminfo[itemtype='A']">
- <label ref="itemnm"/>
- <value ref="itemid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_rgst" class="btn2_letter2" navindex="7" 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("TXPEA00201");
- grd_item.resizeCells();
- fSetGridStyle();
- fSetAcqList();
-
- 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:1000px; y2:90px; "/>
- <datagrid id="grd_item" nodeset="/root/main/itemlist/iteminfo" allowselection="false" autoresize="true" backcoloralternate="transparent" caption="항목형식^항목순번^항목 ID^항목명^정렬^획득 항목^값 형식^값 형식^가산^획득 항목 목록^획득 항목 목록" colsep="^" colwidth="100, 0, 100, 100, 50, 120, 40, 120, 35, 0, 300" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:95px; width:1000px; height:665px; ">
- <col explorerbar="sortshow" disabled="true" ref="itemtype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/itemtype/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="itemseq"/>
- <col ref="itemid" type="input" style="text-align:center; "/>
- <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="acqid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/itemlist/iteminfo[itemtype='A']">
- <label ref="itemnm"/>
- <value ref="itemid"/>
- </itemset>
- </choices>
- </col>
- <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="acqidarr"/>
- <col ref="acqnmarr"/>
- <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>
- </datagrid>
- <button id="btn_set" class="btn2_letter2" style="left:958px; 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/updtstr", grd_item.getUpdateData());
-
- submit("TXPEA00202");
- grd_item.resizeCells();
- fSetGridStyle();
- fSetAcqList();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:1005px; top:75px; width:74px; height:14px; ">획득 항목</caption>
- <line id="line6" class="line_1" style="x1:1005px; y1:90px; x2:1195px; y2:90px; "/>
- <datagrid id="grd_acq" nodeset="/root/temp/acqlist/acqinfo" backcoloralternate="transparent" caption="^값형식^값형식^획득 항목ID^획득 항목" colsep="^" colwidth="30, 0,50, 0, 90" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1005px; top:95px; width:190px; height:665px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="valtype"/>
- <col ref="valtypenm" style="text-align:center; "/>
- <col ref="acqid"/>
- <col ref="acqnm" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_acq.isCell(event.target)) {
- return;
- }
-
- if (grd_acq.col == grd_acq.colRef("chk")) {
- return;
- }
-
- var row = grd_acq.row;
- var chk = model.getValue("/root/temp/acqlist/acqinfo[" + row + "]/chk") == "Y" ? "N" : "Y"
- model.setValue("/root/temp/acqlist/acqinfo[" + row + "]/chk", chk);
-
- grd_acq.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_valset" class="btn2_letter2" 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 = instance1.selectNodes("/root/temp/acqlist/acqinfo").length;
-
- var idarr = "";
- var nmarr = "";
-
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/temp/acqlist/acqinfo[" + i + "]/chk") != "Y") {
- continue;
- }
-
- if (idarr != "") {
- idarr += ",";
- nmarr += ",";
- }
-
- idarr += model.getValue("/root/temp/acqlist/acqinfo[" + i + "]/acqid");
- nmarr += model.getValue("/root/temp/acqlist/acqinfo[" + i + "]/acqnm");
- }
-
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("acqidarr")) = idarr;
- grd_item.valueMatrix(grd_item.row, grd_item.colRef("acqnmarr")) = nmarr;
-
- grd_item.addStatus(grd_item.row, "update");
-
- grd_item.resizeCells();
- ]]>
- </script>
- </button>
- <select id="chk_addflag" ref="/root/send/addflag" navindex="6" overflow="visible" appearance="full" style="left:944px; top:44px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>가산허용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|