123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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>
- <fixedassetstret>
- <fixedassetstretlist/>
- </fixedassetstret>
- </main>
- <send>
- <search>
- <instcd/>
- <takeindeptcd/>
- <takeindeptnm/>
- <takeoutdeptcd/>
- <takeoutdeptnm/>
- <fromdd/>
- <todd/>
- <chantype/>
- </search>
- <save>
- <fixedassetstretlist/>
- </save>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- <ref>
- <flag/>
- </ref>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if((getUserInfo("dutplcecd") == "4020334000") || getUserInfo("userid") == "MIS" ){
- }else{
- messageBox("물류파트가 아닌부서는 화면권한이 없습니다.", "E999", "");
- group1.disabled = true;
- group3.disabled = true;
- return;
- }
-
- //화면 Control을 초기화한다
- grd_fixedassetstretlist.colWidth(grd_fixedassetstretlist.colRef("sel")) = 0;
- var flag = model.getValue("/root/ref/flag");
- if(flag == "1"){
- grd_fixedassetstretlist.colWidth(grd_fixedassetstretlist.colRef("sel")) = 35;
- grd_fixedassetstretlist.colWidth(grd_fixedassetstretlist.colRef("cmt")) = 115;
- btn_allsel.visible = true;
- btn_conf.visible = true;
- model.setValue("/root/send/search/chantype","0");
- cmb_chantype.disabled = true;
- }else if(flag == "2"){
- model.setValue("/root/send/search/chantype","1");
- cmb_chantype.disabled = true;
- }
- misfGridInit(grd_fixedassetstretlist);
- misfMsterDetailSet(grd_fixedassetstretlist, null, "TRRSC16001" ,"Y","free");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/fromdd", getCurrentDate().substr(0,6)+"01");
- model.setValue("/root/send/search/todd", getCurrentDate());
-
- model.refresh();
- misfMsterDetailRetrieve();
-
- ]]>
- </script>
- <submission id="TRRSC16001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/fixedassetstret"/>
- <submission id="TXRSC16001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </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="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- function fSearchCondChanged() {
- model.removeNodeset(grd_stock.nodeset);
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
- 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:243px; height:14px; ">고정자산 이동 및 폐기 접수</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i < grd_fixedassetstretlist.rows ; i++){
- var tretyn = grd_fixedassetstretlist.valueMatrix(i, grd_fixedassetstretlist.colRef("tretyn"));
- var tretdt = grd_fixedassetstretlist.valueMatrix(i, grd_fixedassetstretlist.colRef("tretdt"));
- if(tretyn == "Y" && tretdt == ""){
- messageBox(i+"번째행에 접수는 되었지만 접수일자가 없습니다. 입력하여주십시오.", "E999", "");
- grd_fixedassetstretlist.row = i;
- grd_fixedassetstretlist.col = grd_fixedassetstretlist.colRef("tretdt");
- grd_fixedassetstretlist.editCell();
- return;
- }
- }
- misfSave("TXRSC16001");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_conf" class="btn4_letter2" visibility="hidden" style="left:1081px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var parent = window.opener;
- var flag = model.getValue("/root/ref/flag");
- if(flag == "1"){
- var cnt = 1;
- for(i = 1 ; i < grd_fixedassetstretlist.rows ; i++){
- var sel = grd_fixedassetstretlist.valueMatrix(i, grd_fixedassetstretlist.colRef("sel"));
- if(sel == "Y"){
- parent.model.makeNode("/root/ref/chgnhist");
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/fixasetcd",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/fixasetcd"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/goodflaghngnm",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/goodflaghngnm"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/tretdt",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/tretdt"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/chantype",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/chantype"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/takeindeptcd",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/takeindeptcd"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/takeindeptnm",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/takeindeptnm"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/takeoutdeptcd",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/takeoutdeptcd"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/takeoutdeptnm",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/takeoutdeptnm"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/fixasetamt",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/fixasetamt"));
- parent.model.makeValue("/root/ref/chgnhist["+cnt+"]/instcd",model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+i+"]/instcd"));
- cnt++;
- }
- }
- parent.model.setValue("/root/ref/cnt",cnt);
- }
- window.close();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter2" style="left:4px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- if(grd_fixedassetstretlist.rows == "1"){
- messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
- exeReportPreview("RPRSC16000", "XMLSTR");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:9px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_fixedassetstretlist);
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관코드</caption>
- <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:55px; "/>
- <input id="ipt_takeindeptcd" ref="/root/send/search/takeindeptcd" class="input_search" navindex="3" style="left:92px; top:34px; width:123px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_takeindeptcd.value == ""){
- ipt_takeindeptnm.value = "";
- }else {
- misfValidationCheck("02", "", "takeindeptcd,takeindeptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_takeindeptcd" class="icon_search" navindex="-1" style="left:220px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_takeindeptcd,"","takeindeptcd,takeindeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_takeindeptnm" ref="/root/send/search/takeindeptnm" class="input_search" disabled="true" appearance="input" style="left:239px; top:34px; width:191px; height:19px; "/>
- <caption id="cap_mngtdeptcd_search" class="search_name" style="left:13px; top:35px; width:92px; height:17px; ">인수부서</caption>
- <caption id="caption4" class="search_name" style="left:270px; top:9px; width:86px; height:17px; ">승인일자</caption>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:350px; top:8px; width:110px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:480px; top:8px; width:110px; height:19px; text-align:center; "/>
- <caption id="caption2" style="left:465px; top:10px; width:15px; height:20px; ">~</caption>
- <button id="btn_takeoutdeptcd" class="icon_search" navindex="-1" style="left:673px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_takeoutdeptcd,"","takeoutdeptcd,takeoutdeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_takeoutdeptnm" ref="/root/send/search/takeoutdeptnm" class="input_search" disabled="true" appearance="input" style="left:692px; top:34px; width:191px; height:19px; "/>
- <input id="ipt_takeoutdeptcd" ref="/root/send/search/takeoutdeptcd" class="input_search" navindex="3" style="left:545px; top:34px; width:123px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_takeoutdeptcd.value == ""){
- ipt_takeoutdeptnm.value = "";
- }else{
- misfValidationCheck("02", "", "takeoutdeptcd,takeoutdeptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:466px; top:35px; width:92px; height:17px; ">인계부서</caption>
- <caption id="caption5" class="search_name" style="left:625px; top:9px; width:86px; height:17px; ">변동유형</caption>
- <select1 id="cmb_chantype" ref="/root/send/search/chantype" appearance="minimal" style="left:710px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>이동</label>
- <value>0</value>
- </item>
- <item>
- <label>폐기</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:1193px; y2:92px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:75px; width:180px; height:13px; ">고정자산 내역</caption>
- <datagrid id="grd_fixedassetstretlist" nodeset="/root/main/fixedassetstret/fixedassetstretlist" caption="선택^계정과목^자산코드^품명^수량^단가^금액^구입일자^인계부서^인수부서^변동유형^변동사유^승인일자^담당자^파트장^팀장^접수일자^반려여부^반려사유" colsep="^" colwidth="35, 100, 95, 120, 45, 70, 80, 70, 120, 120, 55, 150, 70, 45, 45, 45, 100, 55, 100, 0, 0, 0, 0, 0, 0" explorerbar="sort" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:105px; width:1193px; height:633px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="acntnm"/>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflaghngnm"/>
- <col ref="fixasetqty" style="text-align:center; "/>
- <col ref="unicost" format="(-)#,##0" style="text-align:right; padding-right:5; "/>
- <col ref="fixasetamt" format="(-)#,##0" style="text-align:right; padding-right:5; "/>
- <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="takeoutdeptnm"/>
- <col ref="takeindeptnm"/>
- <col disabled="true" ref="chantype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>이동</label>
- <value>0</value>
- </item>
- <item>
- <label>폐기</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="cmt"/>
- <col disabled="true" ref="confdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="tretyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="partyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="teamyn" type="checkbox"/>
- <col ref="tretdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="returnyn" type="checkbox"/>
- <col ref="returncmt" type="input"/>
- <col ref="takeoutdeptcd" visibility="hidden"/>
- <col ref="takeindeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="groupcd" visibility="hidden"/>
- <col ref="partpsn" visibility="hidden"/>
- <col ref="teampsn" visibility="hidden"/>
- <col ref="tretnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixedassetstretlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var parent = window.opener;
- var flag = model.getValue("/root/ref/flag");
- if(flag == "2"){
- var goodflaghngnm = model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+grd_fixedassetstretlist.row+"]/goodflaghngnm");
- var fixasetcd = model.getValue("/root/main/fixedassetstret/fixedassetstretlist["+grd_fixedassetstretlist.row+"]/fixasetcd");
- parent.model.setValue("/root/send/fixasetcd_search",fixasetcd);
- parent.model.setValue("/root/send/fixasetnm_search",goodflaghngnm);
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_fixedassetstretlist.valueMatrix(grd_fixedassetstretlist.row, grd_fixedassetstretlist.colRef("tretyn")) == "Y"){
- grd_fixedassetstretlist.valueMatrix(grd_fixedassetstretlist.row, grd_fixedassetstretlist.colRef("tretdt")) = getCurrentDate();
- }
- if(grd_fixedassetstretlist.valueMatrix(grd_fixedassetstretlist.row, grd_fixedassetstretlist.colRef("sel")) == "Y"){
- var teamyn = grd_fixedassetstretlist.valueMatrix(grd_fixedassetstretlist.row, grd_fixedassetstretlist.colRef("teamyn"));
- if(teamyn == "N" || teamyn == ""){
- messageBox("아직 접수중인 자료입니다. 선택할수없습니다.", "E999", "");
- grd_fixedassetstretlist.valueMatrix(grd_fixedassetstretlist.row, grd_fixedassetstretlist.colRef("sel")) = "N"
- grd_fixedassetstretlist.rowStatus(grd_fixedassetstretlist.row) = 0;
- return;
- }
- grd_fixedassetstretlist.rowStatus(grd_fixedassetstretlist.row) = 0;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:72px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_fixedassetstretlist);
- ]]>
- </script>
- </button>
- <button id="btn_allsel" class="btn2_letter4" visibility="hidden" style="left:1063px; top:72px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i<grd_fixedassetstretlist.rows ; i++){
- var teamyn = grd_fixedassetstretlist.valueMatrix(i, grd_fixedassetstretlist.colRef("teamyn"));
- if(teamyn == "Y"){
- grd_fixedassetstretlist.valueMatrix(i,grd_fixedassetstretlist.colRef("sel")) = "Y";
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|