123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?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>
- <trnsinfo>
- <trnslist>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <outcnt/>
- <delcnt/>
- <remark1/>
- <fstrgstrid/>
- <ioseq/>
- <ioflag/>
- <iodd/>
- </trnslist>
- <csrdeptlist/>
- </trnsinfo>
- <csrdeptlist/>
- </main>
- <send>
- <instcdnm/>
- <reqfromdd/>
- <gubuncd>01</gubuncd>
- <reqtodd/>
- <cdgrupid>T66</cdgrupid>
- <srchflag/>
- <deptcd/>
- <cdgrupid1>T64</cdgrupid1>
- </send>
- <cond>
- <reqtodd/>
- <selyymmdd>DD</selyymmdd>
- <reqfromdd/>
- </cond>
- <init>
- <grupcdinfo/>
- <grupcdinfo1/>
- </init>
- </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="TRMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo"/>
- <submission id="TRMNG02306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo1"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNG03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trnsinfo"/>
- <submission id="TXMNG02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- grd_trnslist.fixedcellcheckbox(0, grd_trnslist.colRef("chkyn")) = true;
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
- model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate()); //년월
- var da = getCurrentDate();
- var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
- model.setValue(ipt_reqfromdd.attribute("ref"), dat);
-
- rdo_srchflag.value = "L";
- rdo_srchflag.disabled = true;
- model.makeValue("/root/send/useyn", "Y");
-
- grd_trnslist.colDisabled(grd_trnslist.colRef("erflag")) = true;
-
- // CSR 청구부서, 린넨청구부서 가져오기
- submit("TRMNG00402");
-
- // 공통코드 가져오기(T66) => 공급실업무구분
- submit("TRMNG02305");
-
- // 공통코드 가져오기(T64) => 린넨청구구분
- submit("TRMNG02306");
-
- model.refresh();
-
- fSearch();
- }
-
- function fSearch() {
-
- model.setValue("/root/send/reqfromdd", model.getValue("/root/cond/reqfromdd"));
- model.setValue("/root/send/reqtodd", model.getValue("/root/cond/reqtodd"));
- submit("TRMNG03502");
-
- }
-
- 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:1135px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
- for ( i = grd_trnslist.fixedRows; i < grd_trnslist.rows; i++ ) {
- if ( grd_trnslist.valueMatrix(i, grd_trnslist.colRef("chkyn")) == "Y" ) {
-
- grd_trnslist.valueMatrix(i, grd_trnslist.colRef("trnsflag")) = "05";
- grd_trnslist.valueMatrix(i, grd_trnslist.colRef("trscnt")) = grd_trnslist.valueMatrix(i, grd_trnslist.colRef("outcnt"));
- grd_trnslist.rowStatus(i) = 2;
- cnt++;
- }
- }
- if ( cnt < 1) {
- alert("선택된 불출확인목록이 없습니다.");
- return;
- }
- model.makeValue("/root/send/savedata/trnslist", getGridUpdateData(grd_trnslist) );
-
- if ( submit("TXMNG02304") ) {
- alert(cnt + "건이 운송 처리되었습니다.");
- }
-
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_trnslist" nodeset="/root/main/trnsinfo/trnslist" caption="선택^응급여부^상태구분^부서코드^물품코드^상세코드^린넨품명^상세규격^불출량^불출자^운송량^운송자^운송일시^수령량^수령자^수령일시" colsep="^" colwidth="50, 58, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1185px; height:615px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="erflag" type="checkbox"/>
- <col ref="trnsflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo1/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" type="combo">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="goodcd" visibility="visible"/>
- <col ref="goodcdseq" visibility="visible"/>
- <col ref="lngoodnm" visibility="visible"/>
- <col ref="goodmodel"/>
- <col ref="outcnt" format="#,###"/>
- <col ref="outnm"/>
- <col ref="trscnt"/>
- <col ref="trsnm"/>
- <col ref="trsdt"/>
- <col ref="reccnt"/>
- <col ref="recnm"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="seqno" 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>
- </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:1062px; 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:1050px; y1:25px; x2:1050px; y2:50px; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:245px; top:30px; width:81px; height:17px; ">업무일자:</caption>
- <input id="ipt_reqfromdd" ref="/root/cond/reqfromdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:330px; 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:135px; 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>
- <caption id="caption1" class="search_name" style="left:515px; top:30px; width:81px; height:17px; ">부서구분:</caption>
- <select1 id="cmb_dept" ref="/root/send/deptcd" appearance="minimal" style="left:600px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_srchflag" ref="/root/send/srchflag" appearance="full" cols="4" overflow="visible" style="left:790px; top:30px; width:250px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:705px; top:30px; width:81px; height:17px; ">업무구분:</caption>
- <input id="ipt_reqtodd" ref="/root/cond/reqtodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:430px; top:30px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:417px; top:30px; width:20px; height:25px; ">~</caption>
- </xhtml:body>
- </xhtml:html>
|