123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>구매품의 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <purccnsttninfo>
- <purccnsttnlist/>
- </purccnsttninfo>
- <purccnsttnnoinfo>
- <maxpurccnsttnno>
- <purccnsttnno/>
- </maxpurccnsttnno>
- </purccnsttnnoinfo>
- </list>
- </main>
- <target/>
- <init>
- </init>
- <send>
- <search>
- <instcd/>
- <acntcd/>
- <purccnsttndd/>
- <purccnsttnno/>
- </search>
- <nosearch>
- <instcd/>
- <purccnsttndd/>
- </nosearch>
- </send>
- <temp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- // 금일 날자 설정
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- var csv_parainfo = opener.window.javascript.getParameter("SMRSP00100_parainfo");
-
- model.removenode("/root/main/list/purccnsttninfo/purccnsttnlist");
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.setValue(ipt_acntcd.attribute("ref") , csv_parainfo); // 계정코드
- model.setValue(cal_purccnsttndd.attribute("ref") , curdate); // 품의일자
- cal_purccnsttndd.dispatch("xforms-value-changed");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
- <submission id="TRRSP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:600px; height:14px; ">구매품의 조회</caption>
- <button id="btn_confirm" class="btn4_letter2" style="left:1015px; top:440px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <group id="grp_search" style="left:0px; top:22px; width:1080px; height:48px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1075px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1005px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list/purccnsttninfo/purccnsttnlist");
- submit("TRRSP00201");
- ]]>
- </script>
- </button>
- <input id="cal_purccnsttndd" ref="/root/send/search/purccnsttndd" inputtype="date" style="left:101px; top:10px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/nosearch/instcd" , model.getValue(ipt_instcd.attribute("ref")));
- model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
- if (submit("TRRSK00102")){
- var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
- model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
- }
- model.setValue("/root/send/nosearch/instcd" , "");
- model.setValue("/root/send/nosearch/purccnsttndd" , "");
- model.setFocus("ipt_purccnsttnno");
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:10px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
- <input id="ipt_purccnsttnno" ref="/root/send/search/purccnsttnno" class="input_default" style="left:215px; top:10px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- inputEnterKey("btn_search", "DOMActivate");
-
- ]]>
- </script>
- </input>
- <input id="ipt_instcd" ref="/root/send/search/instcd" class="input_default" disabled="true" visibility="hidden" style="left:315px; top:10px; width:75px; height:19px; text-align:center; "/>
- <input id="ipt_acntcd" ref="/root/send/search/acntcd" class="input_default" disabled="true" visibility="hidden" style="left:405px; top:10px; width:75px; height:19px; text-align:center; "/>
- </group>
- <caption id="caption4" class="tit_2" style="left:10px; top:79px; width:131px; height:13px; ">구매품의 내역</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:99px; x2:1080px; y2:99px; "/>
- <button id="button1" class="btn4_letter2" style="left:950px; top:440px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iParam = model.getValue(grd_ccnsttninfo.nodeset);
- var nodelist = instance1.selectNodes(grd_ccnsttninfo.nodeset);
-
- var rCVS = getNodeListCSV(nodelist);
- if ( checkOpener() ) {
- opener.javascript.setParameter("SMRSD00400_", rCVS);
-
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- model.close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_ccnsttninfo" nodeset="/root/main/list/purccnsttninfo/purccnsttnlist" caption="순번^품명코드/명칭^품명코드/명칭^품명코드/명칭^규격^단위^품의량^계약량^품의단가^계약단가^계약금액^계약NO^계약NO^품의요구일자/NO^품의요구일자/NO^계정과목코드^계정과목^계약Key^계약일련번호^요구포장단위당갯수^구매단위(FULL)^기관코드^물품구분^구매요구부서^거래처코드^거래처명" colsep="^" colwidth="54, 84, 26, 139, 167, 50, 63, 61, 80, 80, 99, 84, 56, 86, 58, 37, 80, 118, 32, 31, 29, 27, 28, 35, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:5px; top:105px; width:1075px; height:320px; font-weight:normal; text-align:center; ">
- <col ref="purccnsttnseq" type="output" _key="true" style="text-align:center; "/>
- <col ref="goodcd" type="output" _key="true" style="text-align:center; "/>
- <col ref="allsizespecid" type="output" _key="true" style="text-align:center; "/>
- <col ref="goodnm" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="cnsttnunit" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="cnsttnqty" format="#,###" style="text-align:right; "/>
- <col ref="conqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="cnsttngoodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="congoodunitcost" type="input" format="#,###" style="text-align:right; "/>
- <col ref="conamt" format="#,###" style="text-align:right; "/>
- <col ref="purccondd" type="output" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="purcconno" type="output" _key="true" style="text-align:center; "/>
- <col ref="purccnsttndd" type="output" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="purccnsttnno" type="output" _key="true" style="text-align:center; "/>
- <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
- <col ref="acntnm" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="purcconfullno" type="output" _key="true" style="text-align:center; "/>
- <col ref="purcconseq" visibility="hidden" style="text-align:center; "/>
- <col ref="reqpackcntperunit" visibility="hidden" style="text-align:center; "/>
- <col ref="fullpurcunit" visibility="hidden" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_ccnsttninfo.col == grd_ccnsttninfo.colRef("conqty")
- || grd_ccnsttninfo.col == grd_ccnsttninfo.colRef("congoodunitcost")){
- grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("conamt")) = parseFloat(grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("conqty"))) * parseFloat(grd_ccnsttninfo.valueMatrix(grd_ccnsttninfo.row, grd_ccnsttninfo.colRef("congoodunitcost")));
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|