123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 전산장비장소관리.xrw
- * 설 명 : 장비장소관리
- * 설 계 자 : 김병국
- * 작 성 자 : 김병국
- * 작 성 일 : 2012.11.21
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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="">
- <main>
- <cond>
- <instcd/>
- <deptnm/>
- <rgstyn/>
- </cond>
- <eqmtiteminfo>
- <eqmtitemlist/>
- </eqmtiteminfo>
- <deptinfo>
- <deptlist>
- <deptcd/>
- <instcd/>
- <deptnm/>
- </deptlist>
- </deptinfo>
- <plceinfo>
- <plcelist/>
- </plceinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <mlist/>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZHI01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZHI01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/main/plceinfo"/>
- <submission id="TXZHI01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * SMZHI01200_param : 값을 넘기면 팝업용 장소관리. 그외는 기준자료관리용 장소관리
- */
- var param;
- var deptonly;
-
- function fInit(){
-
- if(checkOpener()) {
- param = opener.javascript.getParameter("SMZHI01200_param");
- deptonly = opener.javascript.getParameter("SMZHI01200_deptonly");
-
-
- if(param == "" || param == null) {
- fButtonDisabled("2");
- } else {
- fButtonDisabled("1");
- }
-
- } else {
-
- }
-
- zbcfGetCodeList( new Array ( "Z0007")
- , new Array ( "/root/init/mlist","/root/init/mlist")
-
- );
-
- addComboItem("cmb_instcd", "전체", "", "above");
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- model.removeNodeset(grd_deptlist.nodeset);
- model.removeNodeset(grd_plcelist.nodeset);
-
- fSearch();
-
- }
- /*
- param : flag : 1(팝업): 장소정보가져오기
- 2(메인) : 기준자료관리
- */
- function fButtonDisabled(flag) {
-
- if(flag == "1") {
- btn_add.visible = false;
- btn_del.visible = false;
- btn_sav.visible = false;
-
- grd_plcelist.colDisabled(grd_plcelist.colRef("plcenm")) = true;
- grd_plcelist.colDisabled(grd_plcelist.colRef("bigo")) = true;
-
- btn_cnfm.visible = true;
-
- model.setValue(rdo_rgstyn.attribute("ref"), "Y", true);
-
-
- } else {
- btn_add.visible = true;
- btn_del.visible = true;
- btn_sav.visible = true;
- btn_cnfm.visible = false;
- }
- }
- /*
- * 조회
- */
- function fSearch(){
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRZHI01201");
-
-
- }
-
- function fSearchDetl() {
- var iRow = grd_deptlist.row;
- model.makeValue("/root/send/reqdata2/instcd", grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("instcd")));
- model.makeValue("/root/send/reqdata2/deptcd", grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("deptcd")));
-
- submit("TRZHI01202");
- }
-
- function fSave() {
-
- var updtdata = getGridUpdateData(grd_plcelist);
-
- if(updtdata == null || updtdata == "") {
- messageBox("저장할 내역이 존재하지 않습니다,", "E");
- return;
- }
-
- model.makeValue("/root/send/savedata/plcelist", getGridUpdateData(grd_plcelist));
-
- if(submit("TXZHI01201") ) {
- messageBox("저장되었습니다", "I");
- fSearchDetl();
- }
- }
-
- function fCnfm() {
- var iRow = grd_plcelist.row;
- opener.javascript.setParameter("SMZHI01200_deptcd", grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("deptcd")));
- opener.javascript.setParameter("SMZHI01200_deptnm", grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("deptnm")));
- opener.javascript.setParameter("SMZHI01200_plcecd", grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("plcecd")));
- opener.javascript.setParameter("SMZHI01200_plcenm", grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("plcenm")));
- opener.javascript.setParameter("SMZHI01200_instcd", grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("instcd")));
-
- opener.javascript.setParameter("SMZHI01200_cnfm", "Y");
-
- window.close();
- }
-
- function fCnfm2() {
- var iRow = grd_deptlist.row;
- opener.javascript.setParameter("SMZHI01200_deptcd", grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("deptcd")));
- opener.javascript.setParameter("SMZHI01200_deptnm", grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("deptnm")));
-
- window.close();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="784" pageheight="563" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:765px; height:515px; ">
- <group id="group2" style="left:0px; top:0px; width:764px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:764px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:684px; y1:9px; x2:684px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:695px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:235px; top:10px; width:77px; height:17px; font-family:돋움체; ">부서명 :</caption>
- <input id="ipt_deptnm" ref="/root/main/cond/deptnm" imemode="hangul" style="left:314px; top:9px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- setInputNodeCurText();
- fSearch();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_search" appearance="minimal" style="left:100px; top:10px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/Z0007[cdid='031' or cdid='032' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:5px; top:10px; width:93px; height:17px; font-family:돋움체; ">기 관 :</caption>
- <caption id="caption4" class="search_name" style="left:440px; top:10px; width:90px; height:17px; font-family:돋움체; ">등록여부 :</caption>
- <select1 id="rdo_rgstyn" ref="/root/main/cond/rgstyn" appearance="full" cols="3" overflow="visible" style="left:533px; top:12px; width:145px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>등록</label>
- <value>Y</value>
- </item>
- <item>
- <label>미등록</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:200px; y2:65px; "/>
- <caption id="caption34" class="tit_2" style="left:0px; top:50px; width:130px; height:14px; font-family:돋움체; ">부서목록내역</caption>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptinfo/deptlist" class="datagrid2" caption="부서코드^기관코드^부서명^등
록" colsep="^" colwidth="0, 0, 155, 25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:200px; height:445px; ">
- <col ref="deptcd"/>
- <col ref="instcd"/>
- <col ref="deptnm"/>
- <col ref="rgstyn" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(deptonly != "Y") {
- fSearchDetl();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if(deptonly == "Y") {
- fCnfm2();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_plcelist" nodeset="/root/main/plceinfo/plcelist" class="datagrid2" autoresize="true" caption="기관코드^부서코드^부서명^장소
코드^장소명^비고" colsep="^" colwidth="0, 0, 100, 44, 130, 368" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:205px; top:70px; width:559px; height:445px; ">
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="plcecd" type="output" style="text-align:center; "/>
- <col ref="plcenm" type="input"/>
- <col ref="bigo" type="input"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(param == "Y") {
- fCnfm();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:205px; top:50px; width:75px; height:13px; font-family:돋움체; ">장소내역</caption>
- <line id="line2" class="line_1" style="x1:205px; y1:65px; x2:764px; y2:65px; "/>
- <button id="btn_add" class="btn5_letter2" style="left:630px; top:45px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var iRow = grd_deptlist.row;
-
- var instcd = grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("instcd"));
- var deptcd = grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("deptcd"));
- var deptnm = grd_deptlist.valueMatrix(iRow, grd_deptlist.colRef("deptnm"));
-
- grd_plcelist.addRow(); //행추가.
-
- var iRow = grd_plcelist.row;
-
- grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("instcd")) = instcd;
- grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("deptcd")) = deptcd;
- grd_plcelist.valueMatrix(iRow, grd_plcelist.colRef("deptnm")) = deptnm;
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" style="left:675px; top:45px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_plcelist.rowStatus(grd_plcelist.row) = "4";
- ]]>
- </script>
- </button>
- <button id="btn_sav" class="btn5_letter2" style="left:720px; top:45px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cnfm" class="btn4_letter2" style="left:705px; top:515px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfm();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:145px; top:515px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfm2();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|