123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <plceord>
- <plceordlist/>
- </plceord>
- </main>
- <send>
- <search>
- <instcd/>
- <orderno/>
- <orderdd/>
- <custcode/>
- <custnm/>
- <ordercust>1</ordercust>
- <orderddto/>
- </search>
- </send>
- <init/>
- <temp/>
- <popsend>
- <plceordlist/>
- </popsend>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_plceordlist);
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/search/orderdd", getCurrentDate().toDate().getAddDate(-7).getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/search/orderddto", getCurrentDate());
- //model.setValue("/root/send/search/orderno", "0001");
- rbo_ordercust.dispatch("xforms-value-changed");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSD07711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/plceord"/>
- </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" src="../../../mis/purcbaseweb/js/SMRFE00200.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="920" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:900px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">발주조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:900px; height:520px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:37px; width:174px; height:13px; ">발주내역</caption>
- <line id="line16" class="line_1" style="x1:0px; y1:54px; x2:900px; y2:53px; "/>
- <datagrid id="grd_plceordlist" nodeset="/root/main/plceord/plceordlist" caption="선택^발주일자^발주번호^물품코드^Allsize^물품명^규격^단위^발주수량^caption1^파일" colsep="^" colwidth="35, 80, 65, 100, 45, 246, 213, 55, 55, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:57px; width:900px; height:458px; ">
- <col checkvalue="Y,N" ref="chkrow" type="checkbox"/>
- <col ref="orderdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orderno" style="text-align:center; "/>
- <col disabled="true" ref="goodcd" type="output" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodhngnm"/>
- <col ref="goodspec"/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="orderqty" type="output" style="text-align:center; "/>
- <col ref="orderseq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="custcode" visibility="hidden"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="mainusedeptcd" visibility="hidden"/>
- <col ref="poomnm" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_plceordlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:900px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:90px; top:9px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <input id="ipt_orderno" ref="/root/send/search/orderno" navindex="4" visibility="hidden" format="9999" style="left:780px; top:20px; width:55px; height:19px; text-align:center; "/>
- <caption id="caption14" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption22" class="search_name" visibility="hidden" style="left:380px; top:9px; width:90px; height:17px; ">발주일자 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:835px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(!(ipt_orderdd.value == "" && ipt_custnm.value == "")){
- // messageBox("발주일자와 거래처를 동시에 조회할순 없습니다.", "E999", "");
- // return;
- // }
- // if(ipt_orderdd.value == ""){
- // messageBox("발주일자가 없습니다. 확인하여 주십시오.", "E999", "");
- // model.setFocus("ipt_orderdd");
- // return;
- // }
- // if(ipt_orderno.value == ""){
- // messageBox("발주번호가 없습니다. 확인하여 주십시오.", "E999", "");
- // model.setFocus("ipt_orderno");
- // return;
- // }
-
- misfGridInit(grd_plceordlist);
-
- submit("TRRSD07711")
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:380px; top:9px; width:90px; height:17px; ">거래처 :</caption>
- <input id="ipt_custcode" ref="/root/send/search/custcode" navindex="5" visibility="hidden" style="left:465px; top:9px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custcode.value != '')
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "entrregno," + ipt_custcode.value, "", "custcode,custnm",
- ipt_custcode, "SPRSD00220", "instcd","cmb_instcd");
- }else
- {
- ipt_custnm.value = '';
- }
-
- ipt_custcode.refresh();
- ipt_custnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_custcode" class="icon_search" navindex="-1" visibility="hidden" style="left:588px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_custcode,"","custcode,custnm","SPRSD00220","instcd","cmb_instcd");
-
- ipt_custcode.refresh();
- ipt_custnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_custnm" ref="/root/send/search/custnm" disabled="true" navindex="6" visibility="hidden" style="left:605px; top:9px; width:120px; height:19px; "/>
- <input id="ipt_orderdd" ref="/root/send/search/orderdd" navindex="3" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:467px; top:9px; width:98px; height:19px; text-align:center; "/>
- <select1 id="rbo_ordercust" ref="/root/send/search/ordercust" navindex="2" appearance="full" cols="2" overflow="visible" style="left:220px; top:9px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>발주일자</label>
- <value>1</value>
- </item>
- <item>
- <label>거래처</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rbo_ordercust.value == "1"){
- caption1.visible = false;
- ipt_custcode.visible = false;
- ipt_custnm.visible = false;
- btn_custcode.visible = false;
-
- caption22.visible = true;
- ipt_orderdd.visible = true;
- ipt_orderddto.visible = true;
- caption2.visible = true;
- //ipt_orderno.visible = true;
-
- ipt_custcode.value = "";
- ipt_custnm.value = "";
-
- model.setValue("/root/send/search/orderdd", getCurrentDate()-7);
- model.setValue("/root/send/search/orderddto", getCurrentDate());
- //model.setValue("/root/send/search/orderno", "0001");
- ipt_orderdd.refresh();
- ipt_orderddto.refresh();
-
- }else if(rbo_ordercust.value == "2"){
- caption1.visible = true;
- ipt_custcode.visible = true;
- ipt_custnm.visible = true;
- btn_custcode.visible = true;
-
- caption22.visible = false;
- ipt_orderdd.visible = false;
- ipt_orderddto.visible = false;
- caption2.visible = false;
- //ipt_orderno.visible = false;
-
- ipt_orderdd.value = "";
- ipt_orderddto.value = "";
- //ipt_orderno.value = "";
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_orderddto" ref="/root/send/search/orderddto" navindex="3" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:580px; top:9px; width:98px; height:19px; text-align:center; "/>
- <caption id="caption2" visibility="hidden" style="left:567px; top:9px; width:15px; height:20px; ">~</caption>
- </group>
- <group id="group4" style="left:0px; top:13px; width:900px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0px; y1:25; x2:900px; y2:25; "/>
- <button id="btn_confirm" class="btn4_letter2" style="left:835px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkrow = "";
- var vrow = 0;
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- chkrow = grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("chkrow"));
- if(chkrow == "Y"){
- vrow++;
- }
- }
- if(cnt == 0) window.close();
- //copyNodesetType(opener.root.popsubdata, "/root/main/plceord/plceordlist[chkrow = 'Y']","replace");
- copyNodesetType("/root/popsend/plceordlist", "/root/main/plceord/plceordlist[chkrow = 'Y']","replace");
- model.copyNode(opener.root.popsubdata, "/root/popsend");
- opener.model.setValue("/root/popreq/count", vrow);
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|