123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP00600_수동마감.xrw
- * 설 명 : 특이결과기록관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.07.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <endgoodlist>
- <chio/>
- <dutdeptnm/>
- <goodcd/>
- <goodnm/>
- <lotno/>
- <enddd/>
- <endtm/>
- <endseq/>
- <endernm/>
- <unitcost/>
- <stocqty/>
- <stocmon/>
- <winqty/>
- <winmon/>
- <useqty/>
- <usemon/>
- <dutdeptcd/>
- <posdeptcd/>
- <allsizespecid/>
- <goodspec/>
- <adjtqty/>
- <adjtmon/>
- </endgoodlist>
- </main>
- <send>
- <endsdd/>
- <endedd/>
- <endgoodlist/>
- <enddd/>
- <endflag/>
- <deptcd/>
- <deptcdlist/>
- </send>
- <init>
- <deptinfo>
- <cd/>
- </deptinfo>
- <dept>
- <appdeptcd/>
- </dept>
- <appdeptcd/>
- <endsdd/>
- <endedd/>
- <enddd/>
- <endflag>0</endflag>
- </init>
- <hidden>
- <ref>
- </ref>
- </hidden>
- </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[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
- <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dept/appdeptcd"/>
- <submission id="TRLAW00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/endgoodlist"/>
- <submission id="TXLAW00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLAA00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/appdeptcd"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 수동마감
- * @ver : 2007.11.20
- * @by : 송요셉(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 수동마감화면 기본설정
- */
- function fExeInitialize() {
-
- var iMaxCnt = 0;
- var toDay = getCurrentDate();
-
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/endgoodlist");
-
- //------------------------------------------
- model.makeValue("/root/init/endsdd", toDay);
- model.makeValue("/root/init/endedd", toDay);
- model.makeValue("/root/init/enddd", toDay);
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
-
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- submit("TRLAA00103"); // 부서코드 목록
- //-----------------------------------------------------------------
- iMaxCnt = Number(getNodesetCount("/root/init/dept/appdeptcd")) + 1;
- //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/cd", "00");
- //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/nm", "전체");
-
- //--------------------------------------------
- grd_endgoodlist.fixedcellcheckbox(0,1) = true;
- grd_endgoodlist.colHidden(1) = true;
-
- //----------------------
- //cmb_seadept.select(0);
- model.setValue("/root/init/appdeptcd", "-");
- model.refresh();
- }
-
-
- /* @group : 수동마감
- * @ver : 2007.11.20
- * @by : 송요셉(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 마감조회/마감대상조회
- */
- function fGetGoodList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/endgoodlist");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd"));
- model.makeValue("/root/send/endflag", model.getValue("/root/init/endflag"));
- model.makeValue("/root/send/endsdd", model.getValue("/root/init/endsdd"));
- model.makeValue("/root/send/endedd", model.getValue("/root/init/endedd"));
- model.makeValue("/root/send/enddd", model.getValue("/root/init/enddd"));
- model.makeValue("/root/send/goodflag", "");
- submit("TRLAW00501");
- }
-
-
- /* @group : 수동마감
- * @ver : 2007.11.20
- * @by : 송요셉(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구분에 따른 텍스트박스 활성화
- */
- function fExeendddview(){
- model.removeNodeset("/root/main/endgoodlist");
- if(model.getValue("/root/init/endflag") == '1'){ // 1 마감대상
- caption1.visible = true;
- input1.visible = true;
- btn_cnfm.visible = true;
- grd_endgoodlist.colHidden(1) = false;
- }
- else{ // 0 마감
- caption1.visible = false;
- input1.visible = false;
- btn_cnfm.visible = false;
- grd_endgoodlist.colHidden(1) = true;
- }
- model.refresh();
- }
-
-
- /* @group : 수동마감
- * @ver : 2007.11.20
- * @by : 송요셉(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 마감목록 마감테이블에 저장
- */
- function fExeEqmtSave() {
-
- var iFindNo = 0;
- var sNode = "/root/main/endgoodlist";
-
-
- //---------------------------------------------
- if (model.getValue("/root/init/enddd") == "") {
- messageBox("날짜에 공백이 들어갈수 없습니다.", "I007");
- return false;
- }
-
- //-------------------------------------------------------
- iFindNo = grd_endgoodlist.findRow("Y", 1, 1, true, true);
- if (Number(iFindNo) <= 0) {
- messageBox("마감대상 물품을 선택하여 주십시오!", "I007");
- return false;
- }
-
- //----------------------------
- grd_endgoodlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- if (model.getValue(sNode+"["+iNo+"]/chio") == "Y") {
- grd_endgoodlist.addStatus(Number(iNo+1), "insert");
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/endgoodlist", grd_endgoodlist.getUpdateData());
- model.makeValue("/root/send/enddd", model.getValue("/root/init/enddd"));
- model.makeValue("/root/send/appdeptcd", model.getValue("/root/init/appdeptcd"));
-
- //-----------
- setAlertOn();
- if (submit("TXLAW00501")) {
- model.removeNodeset(sNode+"[chio='Y']"); // 저장할 목록 마감목록에서 삭제
- grd_endgoodlist.refresh();
- }
- }
-
-
- /* @group : 수동마감
- * @ver : 2007.11.20
- * @by : 송요셉(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 마감목록 엑셀파일저장
- */
- function fExeSaveToExcel() {
- grd_endgoodlist.saveExcel("C:\\SMLAW00500_수동마감.xls", "수동마감", false, true);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">마감조회일자 :</caption>
- <button id="btn_Ref" class="btn1_letter2" navindex="5" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetGoodList();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_n_b" style="left:234px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_usdt" ref="/root/init/endsdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:132px; top:8px; width:95px; height:19px; font-weight:normal; "/>
- <input id="ipt_uedt" ref="/root/init/endedd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:252px; top:8px; width:95px; height:19px; font-weight:normal; "/>
- <select1 id="cmb_seadept" ref="/root/init/appdeptcd" navindex="3" appearance="minimal" style="left:611px; top:8px; width:114px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/dept/appdeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption26" class="search_name" style="left:544px; top:9px; width:61px; height:17px; ">부서 :</caption>
- <caption id="caption4" class="search_name" visibility="visible" style="left:905px; top:9px; width:65px; height:17px; ">구분 :</caption>
- <select1 id="rdo_endflag" ref="/root/init/endflag" navindex="4" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:966px; top:9px; width:145px; height:19px; font-weight:normal; border-style:none; ">
- <choices>
- <item>
- <label>마감</label>
- <value>0</value>
- </item>
- <item>
- <label>마감대상</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeendddview();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">마감목록</caption>
- <datagrid id="grd_endgoodlist" nodeset="/root/main/endgoodlist" caption="^부서^물품코드^물품명^Lot번호^물품^마감일자^마감시간^마감차수^마감자명^단가^재고^재고^입고^입고^출고^출고^보정^보정^deptcd^deptcd2^ALL SIZE|^부서^물품코드^물품명^Lot번호^규격^마감일자^마감시간^마감차수^마감자명^단가^수량^금액^수량^금액^수량^금액^수량^금액^deptcd^deptcd2^ALL SIZE" colwidth="30, 70, 70, 150, 130, 70, 80, 60, 0, 60, 60, 50, 70, 50, 70, 50, 70, 50, 70, 0, 0, 0" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:665px; font-weight:normal; ">
- <col checkvalue="Y,N" ref="chio" type="checkbox" visibility="visible"/>
- <col ref="dutdeptnm"/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="lotno"/>
- <col class="text_center" ref="goodspec"/>
- <col ref="enddd" format="yyyy-mm-dd" mask="exclude" showmask="true" style="text-align:center; "/>
- <col ref="endtm" format="hh:nn:ss" mask="exclude" showmask="true" style="text-align:center; "/>
- <col ref="endseq" visibility="hidden" style="text-align:right; "/>
- <col ref="endernm" style="text-align:center; "/>
- <col ref="unitcost" format="(-)#,###" style="text-align:right; "/>
- <col ref="stocqty" style="text-align:right; "/>
- <col ref="stocmon" format="(-)#,###" style="text-align:right; "/>
- <col ref="winqty" style="text-align:right; "/>
- <col ref="winmon" format="(-)#,###" style="text-align:right; "/>
- <col ref="useqty" style="text-align:right; "/>
- <col ref="usemon" format="(-)#,###" style="text-align:right; "/>
- <col class="text_right" ref="adjtqty" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="adjtmon" format="#,###" mask="exclude" showmask="true"/>
- <col ref="dutdeptcd" visibility="hidden"/>
- <col ref="posdeptcd" visibility="hidden"/>
- <col ref="allsizespecid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_endgoodlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" visibility="hidden" style="left:1032px; top:52px; width:66px; height:17px; font-weight:bold; ">마감일자 :</caption>
- <input id="input1" ref="/root/init/enddd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:1101px; top:50px; width:93px; height:19px; font-weight:normal; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">수동마감</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_cnfm" class="btn4_letter2" navindex="6" visibility="hidden" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <button id="button13" class="btn6_letter5" navindex="7" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|