123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <?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>
- <fixedassetsconf>
- <fixedassetsconflist/>
- </fixedassetsconf>
- </main>
- <send>
- <search>
- <instcd/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <fromdd/>
- <todd/>
- </search>
- <save>
- <fixedassetsconflist/>
- </save>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_fixedassetsconflist);
- misfMsterDetailSet(grd_fixedassetsconflist, null, "TRRSC15001" ,"Y","free");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
-
- model.setValue("/root/send/search/mngtdeptcd", getUserInfo("dutplcecd")); //기관 설정
- model.setValue("/root/send/search/mngtdeptnm", getUserInfo("dutplcenm")); //기관 설정
-
- misfMsterDetailRetrieve();
-
- model.setValue("/root/send/search/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/search/todd", getCurrentDate());
-
- if(getUserInfo("userid") == "MIS"){
- ipt_mngtdeptcd.disabled = false;
- btn_mngtdeptcd.disabled = false;
- }
-
- for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
- var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("tretyn"));
- if(confyn == "Y"){
- grd_fixedassetsconflist.cellAttribute("disabled",i, 1, i, grd_fixedassetsconflist.colRef("tretyn")) = "true";
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSC15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/fixedassetsconf"/>
- <submission id="TXRSC15001" 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_fixedassetsconflist.rows ; i++){
- var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confyn"));
- var confdt = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confdt"));
- if(confyn == "Y" && confdt == ""){
- messageBox(i+"번째행에 승인은 되었지만 승인일자가 없습니다. 입력하여주십시오.", "E999", "");
- grd_fixedassetsconflist.row = i;
- grd_fixedassetsconflist.col = grd_fixedassetsconflist.colRef("confdt");
- grd_fixedassetsconflist.editCell();
- return;
- }
- }
- misfSave("TXRSC15001");
- btn_search.dispatch("DOMActivate");
- ]]>
- </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:36px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_fixedassetsconflist);
- misfMsterDetailRetrieve();
- for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
- var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("tretyn"));
- if(confyn == "Y"){
- grd_fixedassetsconflist.cellAttribute("disabled",i, 1, i, grd_fixedassetsconflist.colRef("tretyn")) = "true";
- }
- }
- ]]>
- </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:29px; "/>
- <input id="ipt_mngtdeptcd" ref="/root/send/search/mngtdeptcd" class="input_search" disabled="true" navindex="3" style="left:329px; top:8px; width:123px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcd.value == ""){
- ipt_mngtdeptnm.value = "";
- }else {
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mngtdeptcd" class="icon_search" disabled="true" navindex="-1" style="left:457px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mngtdeptnm" ref="/root/send/search/mngtdeptnm" class="input_search" disabled="true" appearance="input" style="left:476px; top:8px; width:191px; height:19px; "/>
- <caption id="cap_mngtdeptcd_search" class="search_name" style="left:250px; top:9px; width:92px; height:17px; ">인수부서</caption>
- <caption id="caption4" class="search_name" style="left:685px; 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:765px; 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:895px; top:8px; width:110px; height:19px; text-align:center; "/>
- <caption id="caption2" style="left:880px; top:9px; width:15px; height:20px; ">~</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1193px; y2:67px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:180px; height:13px; ">고정자산 내역</caption>
- <datagrid id="grd_fixedassetsconflist" nodeset="/root/main/fixedassetsconf/fixedassetsconflist" caption="자산코드^품명^수량^단가^금액^구입일자^인계부서^인수부서^변동유형^폐기번호^변동사유^요청일자^승인여부^승인일자" colsep="^" colwidth="90, 110, 35, 70, 80, 70, 99, 100, 55, 80, 150, 70, 60, 100, 0, 0, 0, 100" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:72px; width:1193px; height:663px; ">
- <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="disuserno" style="text-align:center; "/>
- <col ref="cmt"/>
- <col disabled="true" ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="confyn" type="checkbox"/>
- <col ref="confdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="takeoutdeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="tretyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixedassetsconflist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_fixedassetsconflist.valueMatrix(grd_fixedassetsconflist.row, grd_fixedassetsconflist.colRef("confyn")) == "Y"){
- grd_fixedassetsconflist.valueMatrix(grd_fixedassetsconflist.row, grd_fixedassetsconflist.colRef("confdt")) = getCurrentDate();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:47px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_fixedassetsconflist);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|