123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <fixedassets>
- <fixedassetslist/>
- </fixedassets>
- <fixedassetsmodify>
- <fixedassetsmodifylist/>
- </fixedassetsmodify>
- </main>
- <send>
- <search>
- <instcd/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <goodflaghngnm/>
- <fixasetcd/>
- </search>
- <save>
- <fixedassetsmodifylist/>
- </save>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- <fixaset>
- <fixasetcd/>
- <instcd/>
- </fixaset>
- <result>
- <reqno/>
- </result>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_fixedassetslist);
- misfGridInit(grd_fixedassetsmodifylist);
- misfMsterDetailSet(grd_fixedassetsmodifylist, null, "TRRSC14002" ,"Y","free");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- model.setValue("/root/send/search/mngtdeptcd", getUserInfo("dutplcecd")); //기관 설정
- model.setValue("/root/send/search/mngtdeptnm", getUserInfo("dutplcenm")); //기관 설정
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
-
- misfMsterDetailRetrieve();
- for(i = 1 ; i < grd_fixedassetsmodifylist.rows ; i++){
- var confyn = grd_fixedassetsmodifylist.valueMatrix(i, grd_fixedassetsmodifylist.colRef("confyn"));
- if(confyn == "Y"){
- grd_fixedassetsmodifylist.cellAttribute("disabled",i, 1, i, grd_fixedassetsmodifylist.colRef("confyn")) = "true";
- }
- }
-
- if(getUserInfo("userid") == "MIS"){
- messageBox("MIS입니다.", "E999", "");
- ipt_mngtdeptcd.disabled = false;
- btn_mngtdeptcd.disabled = false;
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSC14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/fixedassets"/>
- <submission id="TRRSC14002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/fixedassetsmodify"/>
- <submission id="TXRSC14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC14003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/fixaset" resultref="/root/result"/>
- </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_fixedassetsmodifylist.rows ; i++){
- var reqdd = grd_fixedassetsmodifylist.valueMatrix(i, grd_fixedassetsmodifylist.colRef("reqdd"));
- var takeindeptcd = grd_fixedassetsmodifylist.valueMatrix(i, grd_fixedassetsmodifylist.colRef("takeindeptcd"));
- if(takeindeptcd == ""){
- messageBox(i+"번째행에 인수부서가 선택되지않았습니다. 선택하여주십시오.", "E999", "");
- grd_fixedassetsmodifylist.row = i;
- grd_fixedassetsmodifylist.col = grd_fixedassetsmodifylist.colRef("takeindeptnm");
- return;
- }
- if(reqdd == ""){
- messageBox(i+"번째행에 요청일자가 입력되지않았습니다. 입력하여주십시오.", "E999", "");
- grd_fixedassetsmodifylist.row = i;
- grd_fixedassetsmodifylist.col = grd_fixedassetsmodifylist.colRef("reqdd");
- grd_fixedassetsmodifylist.editCell();
- return;
- }
- }
-
- misfSave("TXRSC14001");
- 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:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_fixedassetslist);
- misfGridInit(grd_fixedassetsmodifylist);
- submit("TRRSC14001");
- misfMsterDetailRetrieve();
- for(i = 1 ; i < grd_fixedassetsmodifylist.rows ; i++){
- var confyn = grd_fixedassetsmodifylist.valueMatrix(i, grd_fixedassetsmodifylist.colRef("confyn"));
- if(confyn == "Y"){
- grd_fixedassetsmodifylist.cellAttribute("disabled",i, 1, i, grd_fixedassetsmodifylist.colRef("confyn")) = "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:9px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:10px; width:86px; height:17px; ">기관코드</caption>
- <line id="line30" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:53px; "/>
- <input id="ipt_mngtdeptcd" ref="/root/send/search/mngtdeptcd" class="input_search" disabled="true" navindex="3" style="left:390px; top:9px; 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>
- <input id="ipt_goodflagnm_search" ref="/root/send/search/goodflaghngnm" class="input_search" navindex="4" style="left:390px; top:33px; width:170px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:13px; top:34px; width:88px; height:17px; ">자산코드</caption>
- <button id="btn_mngtdeptcd" class="icon_search" disabled="true" navindex="-1" style="left:518px; top:10px; 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_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" navindex="5" imemode="disabled" _chartype="upper" appearance="input" style="left:92px; top:33px; width:170px; height:19px; "/>
- <caption id="cap_goodflagengnm_search" class="search_name" style="left:311px; top:34px; width:88px; height:17px; ">자 산 명</caption>
- <input id="ipt_mngtdeptnm" ref="/root/send/search/mngtdeptnm" class="input_search" disabled="true" appearance="input" style="left:537px; top:9px; width:191px; height:19px; "/>
- <caption id="cap_mngtdeptcd_search" class="search_name" style="left:311px; top:10px; width:92px; height:17px; ">사용부서</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1193px; y2:90px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:73px; width:180px; height:14px; ">고정자산 내역</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:391px; width:185px; height:14px; ">자산 이동 및 폐기 요청 목록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:405px; x2:1193px; y2:405px; "/>
- <datagrid id="grd_fixedassetslist" nodeset="/root/main/fixedassets/fixedassetslist" caption="자산코드^품명^모델^규격^계정과목명^수량^단가^금액^구입일자^사용부서" colsep="^" colwidth="110, 240, 110, 110, 80, 40, 90, 80, 90, 120, 0, 0, 0, 0, 0" explorerbar="sort" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:1193px; height:285px; text-align:center; ">
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="goodflag"/>
- <col ref="fixasetqty"/>
- <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="mngtdeptnm"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="tempmngtdeptcd" visibility="hidden"/>
- <col ref="tempmngtdeptnm" visibility="hidden"/>
- <col ref="takeindeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/fixasetcd") == ""){
- messageBox("고정자산 내역이 비어있습니다.", "E999", "");
- return;
- }
- misfGridIUD(grd_fixedassetsmodifylist,"A");
-
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/instcd",model.getValue("/root/send/search/instcd"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/fixasetcd",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/fixasetcd"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/goodflaghngnm",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/goodflaghngnm"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/fixasetqty",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/fixasetqty"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/fixasetamt",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/fixasetamt"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/takeoutdeptnm",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/mngtdeptnm"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/takeoutdeptcd",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/mngtdeptcd"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/possndd",model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/possndd"));
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/chantype", 0);
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/confyn", "N");
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/reqdd", getCurrentDate());
-
- grd_fixedassetsmodifylist.cellAttribute("disabled",grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("confpsn")) = "true";
- grd_fixedassetsmodifylist.cellAttribute("disabled",grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("reqdd")) = "true";
- grd_fixedassetsmodifylist.cellAttribute("disabled",grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("returnyn")) = "true";
- //grd_fixedassetsmodifylist.cellAttribute("disabled",grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("reqdd")) = "true";
- grd_fixedassetsmodifylist.cellAttribute("disabled",grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("confyn")) = "true";
- grd_fixedassetsmodifylist.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixedassetslist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_fixedassetsmodifylist" nodeset="/root/main/fixedassetsmodify/fixedassetsmodifylist" caption="자산코드^품명^수량^금액^구입일자^인계부서^인수부서^인수부서^변동유형^폐기번호^변동사유^요청일자^승인여부^반려여부" colsep="^" colwidth="100, 135, 45, 80, 90, 90, 90, 19, 60, 85, 155, 85, 60, 60, 0, 0, 0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:410px; width:1193px; height:330px; ">
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflaghngnm"/>
- <col ref="fixasetqty" style="text-align:center; "/>
- <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 ref="takeindeptcd" type="inputbutton"/>
- <col 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="disuseno" style="text-align:center; "/>
- <col ref="cmt" type="input"/>
- <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="confyn" type="checkbox" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="returnyn" type="checkbox"/>
- <col ref="takeoutdeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_fixedassetsmodifylist.colAttribute(grd_fixedassetsmodifylist.col,"ref") == "takeindeptcd"){
- misfOpenPopUpList("02", grd_fixedassetsmodifylist,"","takeindeptcd,takeindeptnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixedassetsmodifylist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_fixedassetsmodifylist.valueMatrix(grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("chantype")) == "1"){
- model.setValue("/root/fixaset/fixasetcd", model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/fixasetcd"));
- model.setValue("/root/fixaset/instcd", model.getValue("/root/main/fixedassets/fixedassetslist[" + grd_fixedassetslist.row + "]/instcd"));
- submit("TRRSC14003");
- var reqno = model.getValue("/root/result/reqno");
- // if(reqno == ""){
- // messageBox("폐기번호가 없어 폐기할수 없습니다.", "E999", "");
- // grd_fixedassetsmodifylist.valueMatrix(grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("chantype")) = "0"
- // return;
- // }
- model.setValue("/root/main/fixedassetsmodify/fixedassetsmodifylist[" + grd_fixedassetsmodifylist.row + "]/disuseno", reqno);
- grd_fixedassetsmodifylist.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:70px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_fixedassetslist);
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1139px; top:385px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_fixedassetsmodifylist.valueMatrix(grd_fixedassetsmodifylist.row, grd_fixedassetsmodifylist.colRef("confyn")) == "Y"){
- messageBox("승인된 자료는 삭제할 수 없습니다.", "E999", "");
- return;
- }
- misfGridIUD(grd_fixedassetsmodifylist, "D");
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:1074px; top:385px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_fixedassetsmodifylist);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|