123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?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>
- <pnmtinfo>
- <pnmtlist>
- <instcd/>
- <deptnm/>
- <pnmtcnt/>
- <pnmtyymm/>
- <deptcd/>
- <ioflag/>
- <remark1/>
- <fstrgstrid/>
- <pnmtdeptcd/>
- <remark2/>
- <fstrgstrnm/>
- </pnmtlist>
- <csrdeptlist/>
- </pnmtinfo>
- <cond>
- <pnmtyymm/>
- <deptcd/>
- </cond>
- <csrdeptlist/>
- </main>
- <send>
- <pnmtyymm/>
- <pnmtdeptcd/>
- <gubuncd>01</gubuncd>
- </send>
- </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="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pnmtinfo"/>
- <submission id="TXMNG02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(ipt_pnmtyymm.attribute("ref"), getCurrentDate().substr(0,6));
- //model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- //cmb_deptcd.refresh();
-
- ipt_pnmtyymm.refresh();
-
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- submit("TRMNG00402");
-
- fSearch();
- }
-
- function fSearch() {
- model.setValue("/root/send/pnmtyymm", model.getValue(ipt_pnmtyymm.attribute("ref")));
- model.setValue("/root/send/pnmtdeptcd", "0000000000"); //컬럼삭제하여도됨 소스수정필요
- model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
-
- submit("TRMNG02701");
-
- var ioflag;
- for(var i = grd_pnmtlist.fixedRows; i < grd_pnmtlist.rows; i++) {
- ioflag = grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("ioflag"));
-
- if(ioflag == "N") {
- grd_pnmtlist.rowStatus(i) = "1";
- grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("fstrgstrid")) = getUserInfo("userid");
- grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("fstrgstrnm")) = getUserInfo("usernm");
- }
-
-
-
- }
- }
-
- function changeSavedataChk() {
- if ( getGridUpdateData(grd_pnmtlist).length == 0 ) {
- return true;
- } else {
- messageBox("입력된 정보가 있어서 출력할 수 없습니다.", "E999");
- return false;
- }
- }
-
- function fPrintRex() {
-
- if (changeSavedataChk() == true) {
- model.makeNode("/root/send/report/pnmtlist");
-
- copyNodesetType("/root/send/report/pnmtlist", "/root/main/pnmtinfo");
-
- exeReportPreview("RPMNG02700", "XMLSTR", "/root/send/report/pnmtlist");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="743" pageheight="650" guideline="1,743;2,627;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:720px; 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:725px; height:453px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:149px; height:14px; ">부서별 이불 보유 현황</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:24px; x2:715px; y2:25px; "/>
- <button id="btn_sav" class="btn5_letter2" style="left:678px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/pnmtlist", getGridUpdateData(grd_pnmtlist) );
-
- //alert(instance1.selectNodesXml("/root/send"));
- submit("TXMNG02701");
-
- fSearch();
- ]]>
- </script>
- </button>
- <col ref="pnmtcnt" type="input"/>
- <col ref="pnmtcnt" type="input"/>
- <datagrid id="grd_pnmtlist" nodeset="/root/main/pnmtinfo/pnmtlist" caption="물품코드^부서명^보유량^관리자^비고^기관번호^년월^부서코드^현부서코드^관리자이름^caption1^망순번" colsep="^" colwidth="0, 173, 74, 100, 323, 74, 100, 65, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:30px; width:710px; height:420px; ">
- <col ref="ioflag" visibility="hidden"/>
- <col ref="deptnm" visibility="visible"/>
- <col ref="pnmtcnt" visibility="visible" format="#,###"/>
- <col ref="fstrgstrnm" visibility="visible" ype="output"/>
- <col ref="remark1" type="input" visibility="visible"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="pnmtyymm" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="pnmtdeptcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden" ype="output"/>
- <col ref="remark2" visibility="hidden"/>
- </datagrid>
- <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" overflow="visible" appearance="full" cols="2" 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>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:725px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:15px; top:30px; width:67px; height:17px; ">년월:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:545px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_pnmtyymm" ref="/root/main/cond/pnmtyymm" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm" style="left:77px; top:28px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <line id="line2" class="line_4" style="x1:535px; y1:25px; x2:535px; y2:50px; "/>
- <button id="button3" class="btn1_letter2" style="left:605px; top:27px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (changeSavedataChk() == true) {
- var fileName = window.fileDialog("save", ",", false, "세탁물이불보유현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_pnmtlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:665px; top:27px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrintRex();
- ]]>
- </script>
- </button>
- <textarea id="txt_remark2" ref="/root/main/pnmtinfo/pnmtlist/remark2" style="left:5px; top:530px; width:710px; height:97px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var remark2 = "";
- remark2 = model.getValue(txt_remark2.attribute("ref"));
-
- for(var i = grd_pnmtlist.fixedRows; i < grd_pnmtlist.rows; i++) {
-
- if (grd_pnmtlist.rowStatus(i) == "1" || grd_pnmtlist.rowStatus(i) == "3" ) {
- grd_pnmtlist.rowStatus(i) = "1";
- } else if (grd_pnmtlist.rowStatus(i) == "2" || grd_pnmtlist.rowStatus(i) == "0") {
- grd_pnmtlist.rowStatus(i) = "2";
- }
- grd_pnmtlist.valueMatrix(i, grd_pnmtlist.colRef("remark2")) = remark2;
- }
- ]]>
- </script>
- </textarea>
- <caption id="caption1" class="tit_2" style="left:5px; top:515px; width:149px; height:14px; ">비고</caption>
- </xhtml:body>
- </xhtml:html>
|