123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?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>입고별 고정자산 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <rfchinpflist/>
- <rfcmfacdlist/>
- </list>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <windd1/>
- <windd2/>
- <rfcmfacd_send/>
- <suplplcecd/>
- <suplplcenm/>
- <cntrdeptcd/>
- <cntrdeptnm/>
- <frpossndd/>
- <topossndd/>
- </send>
- <init>
- <goodflag>
- <label>의료장비</label>
- <value>E</value>
- <label>일반비품</label>
- <value>G</value>
- </goodflag>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRRFC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list/rfchinpflist"/>
- <submission id="TRRFC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfcmfacd_send" resultref="/root/main/list/rfcmfacdlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- misfComboComCdListMulti("Z0007", "cmb_instcd");
- misfGridInit(grd_rfchinpflist);
- misfGridInit(grd_rfcmfacdlist);
-
-
- // misfMsterDetailSet(grd_rfchinpflist, null, "TRRSE01101", "Y");
-
- cmb_instcd.select(0);
- cmb_goodflag.select(0);
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- // 현재 날짜 기본 입력(6개월 간격 설정)
- var acptdate = getCurrentDate().toDate("YYYYMMDD");
-
- model.setValue(ipt_windd2.attribute("ref"), acptdate.getDateFormat("YYYYMMDD") );
- model.setValue(ipt_windd1.attribute("ref"), acptdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">입고별 고정자산 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:8px; width:76px; height:17px; ">기관코드</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("cmb_goodflag"))return;
- //if(!isRequiredControls("ipt_windd1"))return;
- //if(!isRequiredControls("ipt_windd2"))return;
-
- model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/windd1", model.getValue(ipt_windd1.attribute("ref")));
- model.makeValue("/root/send/reqdata/windd2", model.getValue(ipt_windd2.attribute("ref")));
- model.makeValue("/root/send/reqdata/suplplcecd", model.getValue(ipt_suplplcecd.attribute("ref")));
- model.makeValue("/root/send/reqdata/cntrdeptcd", model.getValue(ipt_cntrdeptcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/cntrdeptnm", model.getValue(ipt_cntrdeptnm.attribute("ref")));
- model.makeValue("/root/send/reqdata/frpossndd" , model.getValue(ipt_frpossndd.attribute("ref")));
- model.makeValue("/root/send/reqdata/topossndd" , model.getValue(ipt_topossndd.attribute("ref")));
-
-
- submit("TRRFC00401");
-
- if(grd_rfchinpflist.rows != grd_rfchinpflist.fixedRows)
- {
- grd_rfchinpflist.row = grd_rfchinpflist.fixedRows;
- grd_rfchinpflist.dispatch("onrowchanged");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:8px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line13" class="line_4" style="x1:1102px; y1:17px; x2:1102px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_windd1" class="search_name" style="left:470px; top:8px; width:76px; height:17px; ">입고일자</caption>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:310px; top:8px; width:150px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_goodflag.value=="EQ")
- {
- grd_rfchinpflist.colHidden(10) = true;
- grd_rfcmfacdlist.colHidden(3) = true;
- grd_rfchinpflist.colHidden(9) = false;
- grd_rfcmfacdlist.colHidden(2) = false;
- }
- else
- {
- grd_rfchinpflist.colHidden(10) = false;
- grd_rfcmfacdlist.colHidden(3) = false;
- grd_rfchinpflist.colHidden(9) = true;
- grd_rfcmfacdlist.colHidden(2) = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:230px; top:8px; width:76px; height:17px; ">자산구분</caption>
- <input id="ipt_windd2" ref="/root/send/windd2" class="input_s_essential" inputtype="date" style="left:678px; top:8px; width:101px; height:19px; text-align:center; "/>
- <input id="ipt_windd1" ref="/root/send/windd1" class="input_s_essential" inputtype="date" style="left:565px; top:8px; width:97px; height:19px; text-align:center; "/>
- <caption id="caption2" style="left:664px; top:10px; width:14px; height:18px; ">~</caption>
- <caption id="cap_windd2" class="search_name" style="left:470px; top:8px; width:76px; height:17px; ">입고일자</caption>
- <input id="ipt_suplplcenm" ref="/root/send/suplplcenm" class="input_fix" appearance="input" style="left:967px; top:9px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcenm.value.length == 0)
- ipt_suplplcecd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- setInputNodeCurText();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_suplplcecd" ref="/root/send/suplplcecd" style="left:864px; top:9px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcecd.value.length == 0)
- ipt_suplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
-
- setInputNodeCurText();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:790px; top:10px; width:74px; height:17px; ">거래처 :</caption>
- <button id="btn_suplplcecd" class="icon_search" style="left:947px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_topossndd" ref="/root/send/topossndd" class="input_s_essential" inputtype="date" style="left:678px; top:35px; width:101px; height:19px; text-align:center; "/>
- <caption id="caption3" style="left:664px; top:37px; width:14px; height:18px; ">~</caption>
- <caption id="caption7" class="search_name" style="left:470px; top:35px; width:89px; height:17px; ">계산서일자</caption>
- <input id="ipt_frpossndd" ref="/root/send/frpossndd" class="input_s_essential" inputtype="date" style="left:565px; top:35px; width:97px; height:19px; text-align:center; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:35px; width:76px; height:17px; ">청구부서</caption>
- <input id="ipt_cntrdeptnm" ref="/root/send/cntrdeptnm" class="input_fix" appearance="input" style="left:197px; top:35px; width:156px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptnm.value.length == 0)
- ipt_cntrdeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_cntrdeptnm.value, "", "cntrdeptcd,cntrdeptnm",
- ipt_cntrdeptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_cntrdeptcd" ref="/root/send/cntrdeptcd" class="input_default" appearance="input" style="left:95px; top:35px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_cntrdeptcd.value.length == 0)
- ipt_cntrdeptnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_cntrdeptcd.value, "", "cntrdeptcd,cntrdeptnm",
- ipt_cntrdeptcd, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_cntrdeptcd" class="icon_search" style="left:179px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_cntrdeptcd,"","cntrdeptcd,cntrdeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:91px; x2:1193px; y2:91px; "/>
- <datagrid id="grd_rfchinpflist" nodeset="/root/main/list/rfchinpflist" caption="입고번호^입고번호^입고일자^세금계산서 일자^대분류코드^대분류명^중분류코드^중분류명^거래처명^자산명^자산명^모델^규격^제조회사^설치장소^입고수량^단가^금액^최종입고자" colsep="^" colwidth="35, 30, 70, 112, 72, 121, 71, 139, 140, 3, 244, 140, 150, 63, 91, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:96px; width:1193px; height:304px; ">
- <col ref="winno"/>
- <col ref="winseqno"/>
- <col ref="windd" format="yyyy-mm-dd"/>
- <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lrgcd" visibility="visible"/>
- <col ref="lrgcdnm"/>
- <col ref="mdlcd" visibility="visible"/>
- <col ref="mdlcdnm"/>
- <col ref="suplplcenm" visibility="visible"/>
- <col ref="goodnm2" visibility="visible"/>
- <col ref="goodnm2" visibility="visible"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="prodcmpynm"/>
- <col ref="installplcecdnm"/>
- <col ref="plcewinqty" style="text-align:right; "/>
- <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
- <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
- <col ref="lastupdtrnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="winseqno" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rfchinpflist.dispatch("onmouseup");
-
- model.copyNode("/root/send/rfcmfacd_send", "/root/main/list/rfchinpflist[" + grd_rfchinpflist.row + "]");
- submit("TRRFC00402");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfchinpflist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:0px; top:75px; width:110px; height:13px; ">입고내역</caption>
- <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/list/rfcmfacdlist" caption="자산코드^자산명^자산명^모델^규격^거래처^제조원^청구부서^사용부서^사용장소^이미지" colsep="^" colwidth="111, 150, 150, 115, 100, 100, 111, 111, 112, 80, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:430px; width:1193px; height:304px; ">
- <col ref="fixasetcd"/>
- <col ref="goodflagengnm" visibility="visible"/>
- <col ref="goodflaghngnm" visibility="visible"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="suplplcecdnm"/>
- <col ref="prodcmpynm"/>
- <col ref="cntrdeptcdnm"/>
- <col ref="mngtdeptcdnm"/>
- <col ref="installplcecdnm"/>
- <col ref="imageyn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:410px; width:110px; height:13px; ">고정자산목록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:425px; x2:1193px; y2:425px; "/>
- <button id="btn_excel" class="btn5_letter3" style="left:1139px; top:70px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "입고내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rfchinpflist.saveExcel(fileName, "입고내역List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|