123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <eqmtlist>
- <item>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <excuposseqcd/>
- <basesuppdeptcd/>
- <basecdflag/>
- </item>
- </eqmtlist>
- </main>
- <send>
- <basecd/>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <popupmenu>
- <grid01>
- <item>
- <name>장비검교정관리</name>
- <func>fPopupRpirMngtList</func>
- </item>
- </grid01>
- </popupmenu>
- </init>
- <hidden>
- <item>
- </item>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <submission id="TRAEB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmtlist"/>
- <submission id="TXAEB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- model.removeNodeset("/root/main/eqmtlist/item");
- model.refresh();
-
- model.setFocus("ipt_basecd");
- ]]>
- </script>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 장비코드관리
- * @ver : 2008.03.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 장비 검교정관리를 호출하기 위한 Function
- */
- function fPopupRpirMngtList() {
-
- var rowidx = grd_eqmtlist.row;
- modal("SMAEQ01200","","","","SMAEQ01200", "/root/main/eqmtlist/item["+rowidx+"]/basecd", "/root/send/basecd", "min:visible; max:true; resize:true;");
- // modal 이 아닌 상황에서 child 를 제어하는 것은 정상작동하지 않습니다.
- //window.children.item("SMAEQ01200").model.refresh();
- //window.children.item("SMAEQ01200").model.dispatch("xforms-ready");
- //window.children.item("SMAEQ01200").model.setValue("/root/send/basecd", "");
- //window.children.item("SMAEQ01200").model.refresh();
- }
-
- ]]>
- </script>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">장비코드 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEB01201");
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/send/basecd" class="input_search" style="left:104px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- submit("TRAEB01201");
- }
- ]]>
- </script>
- </input>
- <caption id="caption25" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">장비코드 :</caption>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_eqmtlist.addRow();
- grd_eqmtlist.row = grd_eqmtlist.bottomRow;
-
- var cnt = parseInt(grd_eqmtlist.row);
-
- model.makeValue("/root/main/eqmtlist/item[" + cnt + "]/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.makeValue("/root/main/eqmtlist/item[" + cnt + "]/basecdflag", "J");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_eqmtlist, true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_eqmtlist" nodeset="/root/main/eqmtlist/item" caption="순번^코드^장비명^비고^장비구분" colsep="^" colwidth="100, 241, 393, 309, 120, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:77px; width:1195px; height:667px; ">
- <col ref="sortno" type="input"/>
- <col ref="basecd" type="input"/>
- <col ref="basecdflagdesc" type="input"/>
- <col ref="basecdcnts" type="input"/>
- <col ref="excuposseqcd" type="input"/>
- <col ref="basesuppdeptcd" type="input" visibility="hidden"/>
- <col ref="basecdflag" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if ( (grd_eqmtlist.row >= grd_eqmtlist.fixedRows) && (grd_eqmtlist.isCell(event.target))) {
- setPopupMenu("grd_eqmtlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <button id="btn_fixasetcd" class="btn2_letter6" visibility="visible" style="left:997px; top:50px; width:86px; height:19px; ">
- <caption>장비코드조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_eqmtlist.addRow();
- grd_eqmtlist.row = grd_eqmtlist.bottomRow;
-
- setParameter("SPAEB00101_param_srcXpath1", "/root/main/eqmtlist/item");
- setParameter("SPAEB00101_param_srcXgrid1", "grd_eqmtlist");
- setParameter("SPAEB00101_param_srcXrow1", grd_eqmtlist.row);
- setParameter("SPAEB00101_param_srcXnode1", "basecd");
- setParameter("SPAEB00101_param_srcXnodenm1", "basecdflagdesc");
-
- modal("SPAEB00101");
- model.setValue("/root/main/eqmtlist/item["+grd_eqmtlist.row+"]/sortno", "0");
-
- model.makeValue("/root/main/eqmtlist/item["+ grd_eqmtlist.row+ "]/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/main/eqmtlist/item[" + grd_eqmtlist.row + "]/basecdflag", "J");
- model.refresh();
-
-
-
- //grd_eqmtlist.addStatus(grd_eqmtlist.row,"update");
- ]]>
- </script>
- </button>
- <button id="button1" visibility="hidden" style="left:590px; top:45px; width:100px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(grd_eqmtlist.rowstatus(grd_eqmtlist.row));
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_eqmtlist);
- // var update = model.getValue("/root/send/req/data");
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- //alert(model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/req/data", update);
- //model.setV
- submit("TXAEB01201");
-
- }
-
- }
- submit("TRAEB01201");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_eqmtlist");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|