123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <goodwin>
- <goodwinlist/>
- </goodwin>
- <goodwindetail>
- <goodwinqtylist/>
- <goodwincustlist/>
- </goodwindetail>
- </list>
- <list2>
- <goodwout>
- <goodwoutlist/>
- </goodwout>
- <goodwoutdetail>
- <goodwoutqtylist/>
- <goodwoutcustlist/>
- </goodwoutdetail>
- </list2>
- </main>
- <init>
- <moncnt/>
- <monamt/>
- <custcnt/>
- <custamt/>
- <moncntout/>
- <monamtout/>
- <custcntout/>
- <custamtout/>
- </init>
- <send>
- <goodwin>
- <instcd/>
- <suplplcecd/>
- <suplplcenm/>
- <lrgcd/>
- <goodcd/>
- <goodnm/>
- <winfrdd/>
- <wintodd/>
- <goodflag/>
- <inout>in</inout>
- <mdlcd/>
- <smlcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <suppcustcd/>
- <suppcustnm/>
- <calccnfmyn/>
- <insuyn/>
- </goodwin>
- <goodwindetail>
- <winfrdd/>
- <wintodd/>
- <goodcd/>
- <inout>in</inout>
- <instcd/>
- <calccnfmyn/>
- <goodflag/>
- </goodwindetail>
- <goodwoutdetail>
- <winfrdd/>
- <wintodd/>
- <goodcd/>
- <inout>out</inout>
- <instcd/>
- <goodflag/>
- <calccnfmyn/>
- </goodwoutdetail>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSG03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
- <submission id="TRRSG03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwindetail" resultref="/root/main/list/goodwindetail"/>
- <submission id="TRRSG03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwindetail" resultref="/root/main/list/goodwincust"/>
- <submission id="TRRSG03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list2/goodwout"/>
- <submission id="TRRSG03205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwoutdetail" resultref="/root/main/list2/goodwoutdetail"/>
- <bind id="moncnt" ref="/root/init/moncnt" calculate="sum(/root/main/list/goodwindetail/goodwinqtylist/winqty)" type="xsd:float"/>
- <bind id="monamt" ref="/root/init/monamt" calculate="sum(/root/main/list/goodwindetail/goodwinqtylist/winamt)" type="xsd:float"/>
- <bind id="custcnt" ref="/root/init/custcnt" calculate="sum(/root/main/list/goodwindetail/goodwincustlist/winqty)" type="xsd:float"/>
- <bind id="custamt" ref="/root/init/custamt" calculate="sum(/root/main/list/goodwindetail/goodwincustlist/winamt)" type="xsd:float"/>
- <bind id="moncntout" ref="/root/init/moncntout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutqtylist/delivedeptqty)" type="xsd:float"/>
- <bind id="monamtout" ref="/root/init/monamtout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutqtylist/deliveamt)" type="xsd:float"/>
- <bind id="custcntout" ref="/root/init/custcntout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutcustlist/delivedeptqty)" type="xsd:float"/>
- <bind id="custamtout" ref="/root/init/custamtout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutcustlist/delivedeptamt)" type="xsd:float"/>
- </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() {
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
-
- misfComboComCdListMulti("Z0007","cmb_instcd" );
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
-
- cmb_mdlcd.value = "";
- cmb_smlcd.value = "";
- cmb_lrgcd.value = "";
-
- ipt_reqdeptnm.value = "";
- ipt_reqdeptcd.value = "";
-
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
-
- // 대분류 코드 콤보 설정.
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "Y", "Y");
-
-
- //입고
- model.removeNodeset(grd_goodwin.nodeset);
- model.removeNodeset(grd_winday.nodeset);
- model.removeNodeset(grd_wincust.nodeset);
-
-
- //출고
- model.removeNodeset(grd_goodwoutlist.nodeset);
- model.removeNodeset(grd_goodwoutqtylist.nodeset);
- model.removeNodeset(grd_goodwoutcustlist.nodeset);
- misfMsterDetailSet(grd_goodwin,null, "TRRSG03201" ,"N");
- misfMsterDetailSet(grd_goodwoutlist,null, "TRRSG03204" ,"N");
- /*
- misfMsterDetailSet(grd_winday,grd_goodwin, "TRRSG03201" ,"N");
- misfMsterDetailSet(grd_wincust,grd_goodwin, "TRRSG03201" ,"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);
-
- rdo_inout.select(0);
-
- model.refresh();
- }
-
- function fRetrWinDetailList(pRow)
- {
- if(pRow < grd_goodwin.fixedRows || pRow < 0)return;
- model.setValue("/root/send/goodwindetail/instcd" , model.getValue(cmb_instcd.attribute("ref" )));
- model.setValue("/root/send/goodwindetail/winfrdd" , model.getValue(ipt_winfrdd.attribute("ref")));
- model.setValue("/root/send/goodwindetail/wintodd" , model.getValue(ipt_wintodd.attribute("ref")));
- model.setValue("/root/send/goodwindetail/goodcd" , grd_goodwin.valueMatrix(pRow, grd_goodwin.colRef("goodcd")));
- model.setValue("/root/send/goodwindetail/calccnfmyn", model.getValue(rdo_calccnfmyn.attribute("ref")));
- model.setValue("/root/send/goodwindetail/goodflag" , model.getValue(cmb_goodflag.attribute("ref" )));
- submit("TRRSG03202");
- }
-
- function fOutRetrWinDetailList(pRow)
- {
- if(pRow < grd_goodwoutlist.fixedRows || pRow < 0)return;
- model.setValue("/root/send/goodwoutdetail/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/goodwoutdetail/winfrdd" , model.getValue(ipt_winfrdd.attribute("ref")));
- model.setValue("/root/send/goodwoutdetail/wintodd" , model.getValue(ipt_wintodd.attribute("ref")));
- model.setValue("/root/send/goodwoutdetail/goodcd" , grd_goodwoutlist.valueMatrix(pRow, grd_goodwoutlist.colRef("goodcd")));
- model.setValue("/root/send/goodwoutdetail/calccnfmyn", model.getValue(rdo_calccnfmyn.attribute("ref")));
- model.setValue("/root/send/goodwoutdetail/goodflag" , model.getValue(cmb_goodflag.attribute("ref" )));
- submit("TRRSG03205");
- }
-
-
- function finputSearch()
- {
- model.removeNodeset(grd_winday.nodeset);
- model.removeNodeset(grd_wincust.nodeset);
- //misfMsterDetailRetrieve();
- submit("TRRSG03201");
-
- if(grd_goodwin.rows - grd_goodwin.fixedRows > 0)fRetrWinDetailList(grd_goodwin.fixedRows);
- }
-
- function foutputSearch()
- {
- model.removeNodeset(grd_goodwoutqtylist.nodeset);
- model.removeNodeset(grd_goodwoutcustlist.nodeset);
- //misfMsterDetailRetrieve();
- submit("TRRSG03204");
- if(grd_goodwoutlist.rows - grd_goodwoutlist.fixedRows > 0)fOutRetrWinDetailList(grd_goodwoutlist.fixedRows);
- }
- ]]>
- </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:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">기간별 품목별 입/출고현황 조회</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button1" class="btn1_letter2" navindex="7" style="left:1134px; top:34px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(rdo_inout.value == "in")
- {
- finputSearch();
- }else if(rdo_inout.value == "out")
- {
- foutputSearch();
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="top:54; x1:1126px; y1:9px; x2:1126px; y2:82px; "/>
- <caption id="caption13" class="search_name" style="left:815px; top:9px; width:98px; height:17px; ">거 래 처 :</caption>
- <caption id="caption2" class="search_name" style="left:220px; top:61px; width:86px; height:17px; ">입고일자 :</caption>
- <caption id="caption3" style="left:404px; top:60px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_winfrdd" ref="/root/send/goodwin/winfrdd" class="input_s_essential" inputtype="date" style="left:305px; top:61px; width:93px; height:19px; "/>
- <input id="ipt_wintodd" ref="/root/send/goodwin/wintodd" class="input_s_essential" inputtype="date" style="left:424px; top:61px; width:93px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:3px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:8px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:220px; top:35px; width:89px; height:17px; ">물품코드 :</caption>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:1016px; top:10px; width:100px; 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")),"","suplplcecd,suplplcenm" ,
- ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_maincustlastsuplplce" ref="/root/send/goodwin/suplplcecd" class="input_default" style="left:912px; top:10px; width:80px; 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")),"","suplplcecd,suplplcenm" ,
- ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- model.setFocus("ipt_maincustlastsuplplcenm");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcflag");
- else model.setFocus("ipt_suppcustcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:995px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_goodcd" class="icon_search" style="left:382px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/send/goodwin/goodcd" class="input_s_essential" navindex="6" imemode="disabled" style="left:305px; top:35px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value.length == 0)
- ipt_goodnm.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm" ref="/root/send/goodwin/goodnm" class="input_fix" navindex="6" appearance="input" style="left:402px; top:35px; width:145px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- ipt_goodcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" appearance="minimal" style="left:88px; top:35px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_lrgcd.value = "";
- cmb_mdlcd.value = "";
- cmb_smlcd.value = "";
- // 대분류 코드 콤보 설정.
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "Y", "Y");
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption39" class="search_name" style="left:3px; top:36px; width:86px; height:17px; ">물품구분 :</caption>
- <caption id="cap_inout" class="search_name" style="left:3px; top:61px; width:124px; height:17px; ">입/출고 구분 :</caption>
- <select1 id="rdo_inout" ref="/root/send/goodwin/inout" appearance="full" cols="2" overflow="visible" style="left:118px; top:61px; width:87px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>입고</label>
- <value>in</value>
- </item>
- <item>
- <label>출고</label>
- <value>out</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_inout.value == "in")
- {
- model.toggle("case1");
- }else if(rdo_inout.value == "out")
- {
- model.toggle("case2");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="cap_mdlcd" class="search_name" style="left:567px; top:35px; width:83px; height:17px; ">중분류 :</caption>
- <caption id="cap_smlcd" class="search_name" style="left:567px; top:61px; width:83px; height:17px; ">소분류 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/goodwin/lrgcd" appearance="minimal" style="left:639px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_mdlcd.value = "";
- cmb_smlcd.value = "";
-
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "Y", "Y");
- cmb_mdlcd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_smlcd" ref="/root/send/goodwin/smlcd" appearance="minimal" style="left:639px; top:60px; width:162px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/send/goodwin/mdlcd" appearance="minimal" style="left:639px; top:34px; width:162px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_smlcd.value = "";
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "Y", "Y");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_lrgcd" class="search_name" style="left:567px; top:9px; width:83px; height:17px; ">대분류 :</caption>
- <caption id="caption7" class="search_name" style="left:220px; top:9px; width:86px; height:17px; ">청구부서 :</caption>
- <button id="btn_reqdeptcd" class="icon_search" visibility="visible" style="left:382px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptnm" ref="/root/send/goodwin/reqdeptnm" class="input_fix" appearance="input" style="left:402px; top:8px; width:145px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/goodwin/reqdeptcd" class="input_s_essential" style="left:305px; top:8px; width:73px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0)
- ipt_reqdeptnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_suppcustcd" ref="/root/send/goodwin/suppcustcd" class="input_default" style="left:912px; top:30px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustcd.value.length == 0)
- ipt_suppcustnm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
- ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcflag");
- else model.setFocus("ipt_suppcustcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:815px; top:30px; width:108px; height:17px; ">보조거래처 :</caption>
- <button id="button4" class="icon_search" style="left:995px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustnm" ref="/root/send/goodwin/suppcustnm" class="input_fix" appearance="input" style="left:1016px; top:30px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustnm.value.length == 0)
- ipt_suppcustcd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
- ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="rdo_calccnfmyn" ref="/root/send/goodwin/calccnfmyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:912px; top:51px; width:175px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>정산ONLY</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_inout.value == "in")
- {
- model.toggle("case1");
- }else if(rdo_inout.value == "out")
- {
- model.toggle("case2");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:815px; top:51px; width:111px; height:17px; ">정산 구분 :</caption>
- <select1 id="radio1" ref="/root/send/goodwin/insuyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:912px; top:70px; width:175px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_inout.value == "in")
- {
- model.toggle("case1");
- }else if(rdo_inout.value == "out")
- {
- model.toggle("case2");
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="search_name" style="left:815px; top:70px; width:111px; height:17px; ">수가 여부 :</caption>
- </group>
- <switch id="switch1" style="left:0px; top:110px; width:1191px; height:624px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1188px; height:658px; ">
- <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="물품코드^품명^규격^모델^수량^단가^입고금액^주거래처^보조거래처^수가^수가유무" colsep="^" colwidth="69, 219, 120, 79, 52, 74, 100, 100, 100, 52, 100" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:30px; width:705px; height:592px; ">
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- <col ref="suplplcenm"/>
- <col ref="suppcustnm"/>
- <col ref="insuynnm" style="text-align:center; "/>
- <col ref="insuyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_goodwin.dispatch("onmouseup");
-
- if(grd_goodwin.rows - grd_goodwin.fixedRows == 0)return;
- fRetrWinDetailList(grd_goodwin.row);
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">입고 품목 목록</caption>
- <caption id="caption12" class="tit_2" style="left:715px; top:10px; width:131px; height:13px; ">기관별 입고 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:705px; y2:25px; "/>
- <datagrid id="grd_winday" nodeset="/root/main/list/goodwindetail/goodwinqtylist" caption="년월^수량^평균단가^금액" colsep="^" colwidth="93, 119, 82, 141" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:30px; width:477px; height:255px; ">
- <col ref="winym" format="yyyy-mm"/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="avrcost" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line4" class="line_1" style="x1:710px; y1:25px; x2:1187px; y2:25px; "/>
- <line id="line5" class="line_1" style="x1:710px; y1:318px; x2:1187px; y2:319px; "/>
- <datagrid id="grd_wincust" nodeset="/root/main/list/goodwindetail/goodwincustlist" caption="거래처^보조거래처^수량^금액" colsep="^" colwidth="130, 130, 76, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:322px; width:477px; height:301px; ">
- <col ref="suplplcenm"/>
- <col ref="suppcustnm"/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- <button id="btn_excel1" class="btn5_letter3" navindex="7" style="left:652px; top:5px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodwin);
- ]]>
- </script>
- </button>
- <button id="btn_excel2" class="btn5_letter3" navindex="7" style="left:1134px; top:5px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_winday);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter3" navindex="7" style="left:1134px; top:295px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_wincust);
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:715px; top:301px; width:157px; height:14px; ">거래처별 입고 목록</caption>
- <output id="opt_monamt" ref="/root/init/monamt" class="output_fix" format="#,###" style="left:985px; top:4px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_moncnt" ref="/root/init/moncnt" class="output_fix" format="#,###" style="left:911px; top:4px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption17" style="left:873px; top:8px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
- <caption id="caption18" style="left:882px; top:299px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
- <output id="opt_custamt" ref="/root/init/custamt" class="output_fix" format="#,###" style="left:994px; top:295px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_custcnt" ref="/root/init/custcnt" class="output_fix" format="#,###" style="left:920px; top:295px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
- </case>
- <case id="case2">
- <datagrid id="grd_goodwoutlist" nodeset="/root/main/list2/goodwout/goodwoutlist" caption="물품코드^품명^규격^모델^출고수량^출고금액^수가^수가유무" colsep="^" colwidth="79, 240, 120, 79, 64, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:705px; height:587px; ">
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
- <col ref="delivedeptamt" format="#,###" style="text-align:right; "/>
- <col ref="insuynnm" style="text-align:center; "/>
- <col ref="insuyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_goodwoutlist.dispatch("onmouseup");
-
- if(grd_goodwoutlist.rows - grd_goodwoutlist.fixedRows == 0)return;
- fOutRetrWinDetailList(grd_goodwoutlist.row);
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:136px; height:14px; ">불출 품목 목록</caption>
- <caption id="caption5" class="tit_2" style="left:715px; top:10px; width:131px; height:13px; ">기관별 출고 목록</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:25px; x2:705px; y2:25px; "/>
- <datagrid id="grd_goodwoutqtylist" nodeset="/root/main/list2/goodwoutdetail/goodwoutqtylist" caption="년월^수량^평균단가^금액" colsep="^" colwidth="95, 104, 110, 125" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:30px; width:477px; height:255px; ">
- <col ref="deliveym" format="yyyy-mm"/>
- <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
- <col ref="avrcost" format="#,###" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line7" class="line_1" style="x1:710px; y1:25px; x2:1187px; y2:25px; "/>
- <line id="line8" class="line_1" style="x1:710px; y1:318px; x2:1187px; y2:319px; "/>
- <datagrid id="grd_goodwoutcustlist" nodeset="/root/main/list2/goodwoutdetail/goodwoutcustlist" caption="청구부서명^거래처명^수량^금액" colsep="^" colwidth="147, 120, 70, 98" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:322px; width:477px; height:296px; ">
- <col ref="reqdeptnm"/>
- <col ref="suplplcenm"/>
- <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
- <col ref="delivedeptamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- <button id="button2" class="btn5_letter3" navindex="7" style="left:652px; top:5px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodwoutlist);
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter3" navindex="7" style="left:1134px; top:5px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodwoutqtylist);
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter3" navindex="7" style="left:1130px; top:296px; width:53px; height:19px; text-align:left; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodwoutcustlist);
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:715px; top:302px; width:131px; height:14px; ">불출부서 목록</caption>
- <output id="opt_custamtout" ref="/root/init/custamtout" class="output_fix" format="#,###" style="left:994px; top:295px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_custcntout" ref="/root/init/custcntout" class="output_fix" format="#,###" style="left:920px; top:295px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption19" style="left:873px; top:8px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
- <caption id="caption20" style="left:882px; top:299px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
- <output id="opt_monamtout" ref="/root/init/monamtout" class="output_fix" format="#,###" style="left:985px; top:4px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_monvntout" ref="/root/init/moncntout" class="output_fix" format="#,###" style="left:911px; top:4px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
- </case>
- </switch>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button18" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|