123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?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>
- <lnsflist>
- <chkyn/>
- </lnsflist>
- </main>
- <init>
- </init>
- <send>
- <reqdata>
- <goodcd/>
- <srchflag/>
- <deptcd/>
- </reqdata>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var deptcd = opener.javascript.getParameter("deptcd");
- model.setValue("/root/send/reqdata/deptcd", deptcd);
- grd_lnsflist.fixedcellcheckbox(0,grd_lnsflist.colRef("chkyn")) = true;
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRMNG02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lnsflist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="810" pageheight="560" guideline="1,804;2,552;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:785px; height:520px; ">
- <group id="group2" style="left:0px; top:0px; width:780px; height:30px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:719px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (ipt_good.value != null && ipt_good.value != "") {
- if (radio1.value == null || radio1.value == "") {
- alert("조회조건을 선택하세요");
- return;
- }
- }
- submit("TRMNG02304");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:715px; y1:0px; x2:715px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">조회조건:</caption>
- <select1 id="radio1" ref="/root/send/reqdata/srchflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:5px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>C</value>
- </item>
- <item>
- <label>물품명</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_good" ref="/root/send/reqdata/goodcd" class="input_search" style="left:235px; top:5px; width:155px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:131px; height:14px; ">린넨 물품리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:780px; y2:60px; "/>
- <datagrid id="grd_lnsflist" nodeset="/root/main/lnsflist" caption="^물품코드^상세코드^린넨품명^규격^상세규격^불출단위^안전재고^실재고^existyn" colsep="^" colwidth="20, 100, 75, 160, 60, 80, 80, 70, 70, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:780px; height:450px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col editable="false" ref="goodcd"/>
- <col editable="false" ref="goodcdseq"/>
- <col editable="false" ref="lngoodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="goodunit"/>
- <col ref="lnsfcnt"/>
- <col ref="lnrlcnt" visibility="hidden"/>
- <col ref="existyn" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_lnsflist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_lnsflist.isCell(event.target) && grd_lnsflist.row >= grd_lnsflist.fixedRows )
- {
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:521px; width:780px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:661px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_lnsflist.rows - grd_lnsflist.fixedRows == 0)
- {
- messageBox("적용할 내역이","I004");
- window.close();
- return;
- }
-
- var node = instance1.selectNodes(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']");
-
- if(node.length > 0) {
- var goodnm = model.getValue(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']/lngoodnm");
- var goodmodel = model.getValue(grd_lnsflist.nodeset + "[chkyn='Y' and existyn='Y']/goodmodel");
-
- messageBox("현재 안전재고변경 요청 중인" + "(" + goodnm + " " +goodmodel + " " + ")" + "물품은 청구하실수 없습니다.", "E");
- return;
- }
-
- var iParam = model.getValue(grd_lnsflist.nodeset);
-
- var nodelist = instance1.selectNodes(grd_lnsflist.nodeset + "[chkyn='Y']");
-
- var rCVS = getNodeListCSV(nodelist);
-
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPMNG02301_", rCVS);
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:720px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfPopUpListCancel();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|