123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <list>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- <custdelive>
- <custdelivelist/>
- </custdelive>
- </list>
- </main>
- <send>
- <gooddelive>
- <instcd/>
- <delivefrdd/>
- <delivetodd/>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <goodflag/>
- <targetflag/>
- <userid/>
- <gooddelivelist/>
- <delivedeptcd/>
- <genwinyn/>
- <genpurcdd/>
- <goodcd/>
- <goodnm/>
- </gooddelive>
- <gooddelivedet>
- <instcd/>
- <delivefrdd/>
- <delivetodd/>
- <maincustlastsuplplce/>
- <goodflag/>
- <delivedeptcd/>
- <genwinyn/>
- <suppcustcd/>
- <goodcd/>
- </gooddelivedet>
- </send>
- <init>
- <deliveprcsflag>
- <label>미불출</label>
- <value>1</value>
- <label>불출</label>
- <value>2</value>
- </deliveprcsflag>
- <getwinyn>
- <label>전체</label>
- <value/>
- <label>정산</label>
- <value>Y</value>
- <label>미정산</label>
- <value>N</value>
- </getwinyn>
- <workflag/>
- <nonusegoodview>
- <label>포함</label>
- <value>Y</value>
- <label>제외</label>
- <value/>
- </nonusegoodview>
- </init>
- <hidden>
- <nonusegoodview/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelivedet" resultref="/root/main/list/gooddelive"/>
- <submission id="TRRSD02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/main/list/custdelive"/>
- <submission id="TRRSD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodorder" resultref="/root/main/list/goodorder"/>
- <submission id="TXRSD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/hidden/temp">"</submission>
- </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() {
- misfGridInit(grd_custdelive);
- misfGridInit(grd_gooddelive);
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_delivetodd.attribute("ref") , curdate);
- model.setValue(ipt_genpurcdd.attribute("ref"), model.getValue(ipt_delivefrdd.attribute("ref")).substr(0,6)+"01");
-
- misfMsterDetailSet(grd_custdelive,null, "TRRSD02302" ,"Y");
- misfMsterDetailSet(grd_gooddelive,grd_custdelive, "TRRSD02301" ,"Y");
- // hidden col
- model.setValue(opt_goodflag.attribute("ref") , "Y");
- //부서가 구매팀인지 확인해서 구매팀일 경우 부서찾기 항목을 visibility true 아니면 false
- // -------------------------------------------------------------------------------------
- // 기관별 구매시스템 기본정보를 조회한다
- // vPathResult = "/root/init/RscsysinftLists";
- // -------------------------------------------------------------------------------------
- rszfRscsysinftLists(getUserInfo("dutplceinstcd"));
- // -------------------------------------------------------------------------------------
- // 구매 인터페이스 거래처정보를 조회한다
- // vPathResult = "/root/init/RscifcustLists";
- // pInstcd" : (조회값) 기관코드
- // pEntrregno" : (조회값) 거래처
- // pMaindeptcd" : (조회값) 관리부서코드
- // pCombo : 콤보구분
- // pAllYN : 전체구분
- // ------------------------------------------------------------------------------------*/
- model.setValue(opt_delivedeptcd.attribute("ref"), getRscsysinftInfo("purcdept"));
- rdo_workflag.selectedIndex = 0;
- rdo_nonusegoodview.select(0);
- model.refresh();
- }
-
- function fCheckGrid()
- {
- for(var r = grd_gooddelive.fixedRows; r < grd_gooddelive.rows; r++)
- {
- if(grd_gooddelive.valueMatrix( r, grd_gooddelive.colRef("genwin")) != 'Y' ){
- grd_gooddelive.valueMatrix(r, grd_gooddelive.colRef("genwin")) = 'Y';
- grd_gooddelive.rowStatus(r) = "2";
- }
- }
- }
-
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_delivefrdd");
- return false;
- }
- if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_delivetodd");
- return false;
- }
- if(model.getValue(ipt_genpurcdd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_genpurcdd");
- return false;
- }
- return true;
- }
- function fGridShowSetting (showflag) {
- if( showflag == 1 ) {
-
- cap_custList.attribute("visibility") = "visible";
- grd_custdelive.attribute("visibility") = "visible";
- lin_custList.attribute("visibility") = "visible";
-
- cap_good.attribute("left") = "380" ;
- lin_good.attribute("x1") = "380" ;
- grd_gooddelive.attribute("left") = "380" ;
- grd_gooddelive.attribute("width") = "815" ;
-
- } else {
- grd_custdelive.attribute("visibility") = "hidden";
- cap_custList.attribute("visibility") = "hidden";
- lin_custList.attribute("visibility") = "hidden";
-
- cap_good.attribute("left") = cap_custList.attribute("left") ;
- lin_good.attribute("x1") = lin_custList.attribute("x1") ;
- grd_gooddelive.attribute("left") = grd_custdelive.attribute("left") ;
- grd_gooddelive.attribute("width") = group5.attribute("width") ;
-
- model.setValue("/root/send/gooddelivedet/suppcustcd" , "" );
- }
- }
-
- function fDefualtSetting () {
- model.setValue("/root/send/gooddelivedet/instcd" , model.getValue(cmb_instcd.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/maincustlastsuplplce" , model.getValue(ipt_maincustlastsuplplce.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/goodflag" , model.getValue(opt_goodflag.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/delivedeptcd" , model.getValue(opt_delivedeptcd.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/delivefrdd" , model.getValue(ipt_delivefrdd.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/delivetodd" , model.getValue(ipt_delivetodd.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/genwinyn" , model.getValue(cmb_genwinyn.attribute("ref")) );
- model.setValue("/root/send/gooddelivedet/goodcd" , model.getValue(ipt_goodcd.attribute("ref")) );
- }
- ]]>
- </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; ">수탁물품 정산처리</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="cap_good" class="tit_2" style="left:381px; top:73px; width:157px; height:13px; ">불출부서 집계내역</caption>
- <group id="group6" style="left:0px; top:5px; width:1195px; height:60px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:22px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- misfGridInit(grd_custdelive);
- misfGridInit(grd_gooddelive);
- // misfMsterDetailRetrieve();
- if ( model.getValue(rdo_workflag.attribute("ref")) == 1 )
- submit("TRRSD02302");
- else {
- fDefualtSetting();
- submit("TRRSD02301");
- }
- // for(cnt = grd_gooddelive.fixedRows; cnt< grd_gooddelive.rows; cnt++) {
- // if (model.getValue(grd_gooddelive.nodeset + "[" + cnt + "]/deliveunit") !=
- // model.getValue(grd_gooddelive.nodeset + "[" + cnt + "]/delivepackunit") ) {
- // grd_gooddelive.cellstyle("background-color", cnt, 10) = "#FFFF00";
- // grd_gooddelive.cellstyle("background-color", cnt, 11) = "#FFFF00";
- // }
- // }
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="icon_search" style="left:927px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/send/gooddelive/maincustlastsuplplcenm" class="input_fix" appearance="input" style="left:945px; top:8px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplcenm.value.length == 0)
- ipt_maincustlastsuplplce.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,
- ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_maincustlastsuplplce" ref="/root/send/gooddelive/maincustlastsuplplce" class="input_search" style="left:844px; top:8px; width:81px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplce.value.length == 0)
- ipt_maincustlastsuplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,
- ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/gooddelive/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:15px; top:9px; width:101px; height:17px; ">기관코드 :</caption>
- <caption id="caption1" class="search_name" style="left:289px; top:9px; width:87px; height:17px; ">출고일자 :</caption>
- <caption id="caption2" class="search_name" style="left:745px; top:9px; width:93px; height:17px; ">거 래 처 :</caption>
- <caption id="caption23" style="left:492px; top:10px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <input id="ipt_delivetodd" ref="/root/send/gooddelive/delivetodd" class="input_s_essential" inputtype="date" style="left:510px; top:10px; width:111px; height:19px; "/>
- <input id="ipt_delivefrdd" ref="/root/send/gooddelive/delivefrdd" class="input_s_essential" inputtype="date" style="left:374px; top:8px; width:111px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(ipt_genpurcdd.attribute("ref"), model.getValue(ipt_delivefrdd.attribute("ref")).substr(0,6)+"01");
- ipt_genpurcdd.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_goodflag" ref="/root/send/gooddelive/goodflag" visibility="hidden" style="left:1095px; top:10px; width:10px; height:19px; "/>
- <select1 id="cmb_genwinyn" ref="/root/send/gooddelive/genwinyn" class="combo_s_essential" appearance="minimal" style="left:100px; top:35px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/getwinyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:15px; top:36px; width:101px; height:17px; ">정산유무 :</caption>
- <caption id="caption8" class="search_name" style="left:290px; top:36px; width:135px; height:17px; ">정산일자 :</caption>
- <input id="ipt_genpurcdd" ref="/root/send/gooddelive/genpurcdd" class="input_s_essential" inputtype="date" style="left:374px; top:35px; width:111px; height:19px; font-weight:bold; color:#3366ff; "/>
- <caption id="cap_paycond" class="search_name" style="left:505px; top:36px; width:99px; height:17px; ">작업구분 :</caption>
- <select1 id="rdo_workflag" ref="/root/init/workflag" overflow="visible" appearance="full" cols="2" style="left:592px; top:36px; width:135px; 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[
- fGridShowSetting(rdo_workflag.value);
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <output id="opt_delivedeptcd" ref="/root/send/gooddelive/delivedeptcd" visibility="hidden" style="left:1085px; top:10px; width:10px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/gooddelive/goodnm" class="input_search" style="left:945px; top:36px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm,nonusegoodview",
- "goodnm," + cmb_instcd.value + "," + opt_goodflag.value + "," + ipt_goodnm.value + "," + rdo_nonusegoodview.value ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,opt_goodflag");
- }else
- {
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/gooddelive/goodcd" class="input_search" imemode="disabled" style="left:844px; top:36px; width:81px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,nonusegoodview",
- "goodcd," + cmb_instcd.value + "," + opt_goodflag.value + "," + ipt_goodcd.value + "," + rdo_nonusegoodview.value,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,opt_goodflag");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_goodSearchs" class="icon_search" style="left:927px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 자산코드 팝업창 오픈
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,nonusegoodview","cmb_instcd,opt_goodflag,rdo_nonusegoodview");
- // rszfOpenPopUpListByWndName(grd_gooddmnd,"","goodcd,goodnm","SPRSD00190","instcd,goodflag,nonusegoodview","cmb_instcd,cmb_goodflag,rdo_nonusegoodview");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:745px; top:36px; width:101px; height:17px; ">물품코드 :</caption>
- <select1 id="rdo_nonusegoodview" ref="/root/hidden/nonusegoodview" visibility="hidden" appearance="full" cols="2" style="left:1090px; top:36px; width:15px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/nonusegoodview">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="lin_good" class="line_1" style="x1:380px; y1:89px; x2:1195px; y2:89px; "/>
- <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="정산^NO^출고일자^물품코드^물품코드^품명^규격^모델^거래처^제조회사^단위^단위^단가^불출수량^불출금액^정산일자^기관^물품구분" colsep="^" colwidth="40, 40, 70, 75, 22, 240, 132, 90, 100, 90, 30, 30, 90, 65, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:380px; top:95px; width:815px; height:645px; ">
- <col checkvalue="Y,N" ref="genwin" type="checkbox"/>
- <col ref="rownumber" style="text-align:right; "/>
- <col ref="delivedd" visibility="hidden" format="yyyy/mm/dd"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="maincustlastsuplplcenm" visibility="hidden"/>
- <col ref="prodcmpynm"/>
- <col ref="deliveunit"/>
- <col ref="delivepackunit"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="deliveqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="purcdmnddd" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="goodspecid" visibility="hidden"/>
- <col ref="maincustlastsuplplce" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="delivepackcntperunit" visibility="hidden"/>
- <col ref="delivepackcnt" visibility="hidden"/>
- <col ref="pregenwin" visibility="hidden"/>
- <col ref="purcdmndno" visibility="hidden"/>
- <col ref="purcdmndseq" visibility="hidden"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="winseqno" visibility="hidden"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_gooddelive.col == grd_gooddelive.colRef("winqty"))
- {
- if(model.getValue(grd_gooddelive.nodeset + "[" + (grd_gooddelive.row - grd_gooddelive.fixedRows + 1)+ "]/winqty") != "0")
- {
- model.setValue(grd_gooddelive.nodeset + "[" + (grd_gooddelive.row - grd_gooddelive.fixedRows + 1)+ "]/genwin","Y");
- }
- else
- {
- model.setValue(grd_gooddelive.nodeset + "[" + (grd_gooddelive.row - grd_gooddelive.fixedRows + 1)+ "]/genwin","N");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_gooddelive.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_choices" class="btn2_letter4" style="left:1128px; top:69px; width:64px; height:19px; ">
- <caption>Choice</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCheckGrid();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn5_letter6" style="left:1039px; top:69px; width:86px; height:19px; ">
- <caption>Excel Save</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfSaveExcel(grd_gooddelive , "수탁물품정산처리");
-
- var fileName = window.fileDialog("save", ",", false, "수탁물품정산처리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_gooddelive.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:863px; top:72px; width:157px; height:15px; ">수불단위와 구매단위가 다름</caption>
- <caption id="caption4" class="color_6" style="left:845px; top:70px; width:15px; height:15px; background-color:#FFFF00; "/>
- <caption id="cap_custList" class="tit_2" style="left:5px; top:73px; width:157px; height:13px; ">거래처별 내역</caption>
- <line id="lin_custList" class="line_1" visibility="visible" style="x1:0px; y1:89px; x2:375px; y2:89px; "/>
- <datagrid id="grd_custdelive" nodeset="/root/main/list/custdelive/custdelivelist" caption="보조거래처^보조거래처^수량^금액^거래처^기관^물품구분^출고부서" colsep="^" colwidth="70, 120, 60, 85, 40, 40, 40, 40" dataheight="25" ellipsis="true" explorerbar="sortshow" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:95px; width:375px; height:645px; ">
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="deliveqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="maincustlastsuplplce" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_gooddelive.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if ( grd_custdelive.rows - grd_custdelive.fixedRows > 0 ) {
- fDefualtSetting();
- model.setValue("/root/send/gooddelivedet/suppcustcd" , grd_custdelive.valueMatrix( grd_custdelive.row, grd_custdelive.colRef("suppcustcd") ) );
- submit("TRRSD02301");
- grd_custdelive.dispatch("onmouseup");
- }
- ]]>
- </script>
- </datagrid>
- <button id="bbt_large" class="icon_pre_month" visibility="hidden" style="left:594px; top:72px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- bbt_reqdata.dispatch("DOMActivate");
- bbt_reqdata.selected = true;
- ]]>
- </script>
- </button>
- <button id="bbt_right" class="icon_next_month" visibility="hidden" style="left:612px; top:72px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- bbt_reqdata.dispatch("DOMActivate");
- bbt_reqdata.selected = true;
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( fCheckRetrieveData() == false ) return ;
- if( getGridUpdateData(grd_gooddelive) == "" )
- {
- messageBox("생성할 내역이" ,"I004");
- return;
- }
-
- model.setValue("/root/send/gooddelive/gooddelivelist" ,grd_gooddelive.getUpdateData());
-
- gUserid = getUserInfo("userid"); // 사용자
-
- var vdate = new Date();
-
- var YYYY = vdate.getFullYear();
- var MM = vdate.getMonth() + 1; // 1월=0,12월=11이므로 1 더함
- var DD = vdate.getDate();
- var HH = vdate.getHours();
- var MI = vdate.getMinutes();
- var SS = vdate.getSeconds();
-
- var TargetFlag = '◎'+gUserid+"_" + YYYY +"" + MM +"" + DD +"" + HH +"" + MI +"" + SS; // 사용자
-
-
- model.setValue("/root/send/gooddelive/targetflag" , TargetFlag ); // 발주대상을 발취하기위한 KEY
- model.setValue("/root/send/gooddelive/userid" , gUserid ); // 사용자
-
- submit("TXRSD02301");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
-
- /*
- for(cnt = grd_gooddelive.fixedRows; cnt< grd_gooddelive.rows; cnt++) {
- if (model.getValue(grd_gooddelive.nodeset + "[" + cnt + "]/deliveunit" ) != model.getValue(grd_gooddelive.nodeset + "[" + cnt + "]/delivepackunit") ) {
- if (model.getValue(grd_gooddelive.nodeset+"["+ cnt +"]/genwin" ) == "Y") {
- messageBox(cnt + " 번째 물품은 수불단위와 구매단위가 달라 정산처리 " ,"E001");
- return false;
- }
- }
- }
- */
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|