123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <?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>상위 50품목 출고금액 현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <topoutgoodcostlist/>
- </main>
- <init/>
- <send>
- <instcd/>
- <goodflag/>
- <winfrdd/>
- <wintodd/>
- <lrgcd/>
- <lrgnm/>
- <sortmoneytype>A</sortmoneytype>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/topoutgoodcostlist"/>
- <bind id="deliveamt" ref="/root/main/topoutgoodcostlist/deliveamt" calculate="../goodunitcost * ../delivedeptqty"/>
- </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"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
-
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- //rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
- //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- //model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- misfGridInit(grd_topoutgoodcostlist);
- misfMsterDetailSet(grd_topoutgoodcostlist,null, "TRRSO01801" ,"N");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_winfrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_wintodd.attribute("ref") ,curdate);
-
- model.setValue("/root/send/sortmoneytype", "A");
- model.refresh();
- }
- //필수항목 체크하는 메소드
- function fCheckRetrieveData()
- {
- if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
- if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
- if(!isRequiredControls("ipt_winfrdd") )return false; // 입고시작일자
- if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 ) // 입고종료일자
- {
- messageBox("입고일자", "I003");
- model.setFocus("ipt_wintodd");
- return false;
- }
- //if(!isRequiredControls("ipt_wintodd") )return false; // 입고종료일자
- //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">상위품목출고LIST출력</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:83px; width:216px; height:13px; ">상위품목출고LIST</caption>
- <group id="group6" style="left:0px; top:13px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
- <caption id="cap_winfrdd" class="search_name" style="left:589px; top:9px; width:99px; height:17px; ">입고일자 :</caption>
- <caption id="caption9" class="search_name" style="left:233px; top:35px; width:112px; height:17px; ">상위품목 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_winfrdd" ref="/root/send/winfrdd" class="input_s_essential" inputtype="date" style="left:674px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_wintodd" ref="/root/send/wintodd" class="input_s_essential" inputtype="date" style="left:792px; top:10px; width:102px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:777px; top:13px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <select1 id="sortmoneytype" ref="/root/send/sortmoneytype" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:444px; top:35px; width:153px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>단가기준</label>
- <value>A</value>
- </item>
- <item>
- <label>금액기준</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="input2" class="input_s_essential" style="left:318px; top:34px; width:124px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/send/lrgcd" class="input_search" style="left:318px; top:8px; width:80px; height:19px; "/>
- <button id="btn_lrgcd" class="icon_search" style="left:403px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:233px; top:9px; width:93px; height:17px; ">물품분류 :</caption>
- <input id="ipt_lrgnm" ref="/root/send/lrgnm" class="input_search" style="left:424px; top:8px; width:140px; height:19px; "/>
- <caption id="cap_goodflag" class="search_name" style="left:15px; top:35px; width:93px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:34px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line30" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridInit(grd_topoutgoodcostlist);
-
- if(fCheckRetrieveData(false) == false)return;
- misfMsterDetailRetrieve();
-
- /*
- if(sortmoneytype.value == 'A')
- {
- grd_topoutgoodcostlist.colSort(6) ="asc";
- alert("A");
- alert(grd_topoutgoodcostlist.bottomRow);
- grd_topoutgoodcostlist.sort(1,6,grd_topoutgoodcostlist.bottomRow ,6) = "desc";
- }else{
- grd_topoutgoodcostlist.colSort(7) ="asc";
- grd_topoutgoodcostlist.sort(1,7,grd_topoutgoodcostlist.bottomRow ,7) = "desc";
- alert("B");
- }
- */
- ]]>
- </script>
- </button>
- </group>
- <line id="line15" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
- <datagrid id="grd_topoutgoodcostlist" nodeset="/root/main/topoutgoodcostlist" caption="순 위^물품코드^물 품 명^규 격^제조회사^분 류^단 가^출고금액" colsep="^" colwidth="100, 90, 300, 120, 120, 200, 120, 120" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:110px; width:1195px; height:632px; ">
- <col ref="rank"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="deliveunit"/>
- <col ref="prodcmpynm"/>
- <col ref="lrgnm"/>
- <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###.##" style="text-align:right; "/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|