123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <whioinfo>
- <whiolist>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <outcnt/>
- <delcnt/>
- <remark1/>
- <fstrgstrid/>
- <ioseq/>
- <ioflag/>
- <iodd/>
- </whiolist>
- <csrdeptlist/>
- </whioinfo>
- <csrdeptlist/>
- </main>
- <send>
- <instcdnm/>
- <iodd/>
- <gubuncd>01</gubuncd>
- </send>
- <cond>
- <iodd/>
- <selyymmdd>DD</selyymmdd>
- </cond>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whioinfo"/>
- <submission id="TXMNG03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNG03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whiorexinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
- model.setValue(ipt_iodd.attribute("ref"), getCurrentDate()); //년월
-
- rdo_selyymmdd.refresh();
-
- fSearch();
- }
-
- function fSearch() {
- model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
-
- var reqdd = model.getValue(ipt_iodd.attribute("ref"));
- btn_sav.disabled = false;
- if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'MM' ) {
- reqdd = reqdd.substr(0,6);
- btn_sav.disabled = true;
-
- } else if (model.getValue(rdo_selyymmdd.attribute("ref")) == 'YY' ){
- reqdd = reqdd.substr(0,4);
- btn_sav.disabled = true;
- }
-
- model.setValue("/root/send/iodd", reqdd);
-
- submit("TRMNG03401");
-
- var ioflag;
- for(var i = grd_whiolist.fixedRows; i < grd_whiolist.rows; i++) {
- ioflag = grd_whiolist.valueMatrix(i, grd_whiolist.colRef("ioflag"));
-
- if(ioflag == "N") {
- grd_whiolist.rowStatus(i) = "1";
- }
- }
- }
-
- function fPrintRex() {
-
- submit("TRMNG03402");
-
- model.makeNode("/root/send/report/csmtrexinfo");
- copyNodesetType("/root/send/report/csmtrexinfo", "/root/main/whiorexinfo");
-
- exeReportPreview("RPMNG03400", "XMLSTR", "/root/send/report/csmtrexinfo");
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">린넨 수선/폐품 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:655px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:138px; height:14px; ">린넨 수선/폐품 관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
- <button id="btn_sav" class="btn5_letter2" style="left:1137px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/whiolist", getGridUpdateData(grd_whiolist) );
- submit("TXMNG03401");
-
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_whiolist" nodeset="/root/main/whioinfo/whiolist" visibility="visible" caption="상태^물품코드^상세코드^물품명^규격^의뢰수량^수선수량^폐품수량^관리자^비고^폐품확정" colsep="^" colwidth="80, 136, 80, 197, 115, 100, 100, 110, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:35px; width:1185px; height:615px; ">
- <col ref="lnrpwtflag"/>
- <col ref="goodcd" visibility="visible"/>
- <col ref="goodcdseq" visibility="visible"/>
- <col ref="goodnm" visibility="visible"/>
- <col ref="goodspec" visibility="visible"/>
- <col ref="reqcnt"/>
- <col ref="outcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="delcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="fstrgstrid"/>
- <col ref="remark1" type="input" visibility="visible"/>
- <col ref="lnwtflag"/>
- <col ref="ioseq" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var row = grd_whiolist.row;
- if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
- if(grd_whiolist.col == grd_whiolist.colRef("outcnt") || grd_whiolist.col == grd_whiolist.colRef("delcnt")) { //불출수량이나 미불출수량 엔터시
- if(grd_whiolist.row + 1 < grd_whiolist.rows) {
- grd_whiolist.row = row + 1;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>물품마스터</label>
- <value>01</value>
- </item>
- <item>
- <label>창고마스터</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn2_letter3" style="left:1080px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1007px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1000px; y1:25px; x2:1000px; y2:50px; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:285px; top:30px; width:81px; height:17px; ">일자:</caption>
- <input id="ipt_iodd" ref="/root/cond/iodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:345px; top:30px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
- <button id="btn_prt" class="btn1_letter2" style="left:1125px; top:27px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrintRex();
- ]]>
- </script>
- </button>
- <select1 id="rdo_selyymmdd" ref="/root/cond/selyymmdd" appearance="full" cols="3" overflow="visible" style="left:525px; top:30px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일별</label>
- <value>DD</value>
- </item>
- <item>
- <label>월별</label>
- <value>MM</value>
- </item>
- <item>
- <label>년별</label>
- <value>YY</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:440px; top:30px; width:85px; height:17px; ">일자구분:</caption>
- <button id="button3" class="btn1_letter2" style="left:1066px; top:27px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "세탁물폐품관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_whiolist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|