SMRFE00200_자산변동사항관리.xrw 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>자산변동사항관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <chgnhistlist/>
  11. <list>
  12. <fixaset>
  13. <fixasetlist/>
  14. </fixaset>
  15. <fixasetexcel>
  16. <fixasetexcellist/>
  17. </fixasetexcel>
  18. </list>
  19. <chgnhist/>
  20. </main>
  21. <send>
  22. <rfchcgmt_send>
  23. <instcd/>
  24. <fixasetcd/>
  25. </rfchcgmt_send>
  26. <chgnhistlist/>
  27. <fixasetlist>
  28. <instcd_search/>
  29. <fixasetcd_search/>
  30. <goodflag_search/>
  31. <lrgcd_search/>
  32. <mngtdeptcd_search/>
  33. <mngtdeptnm_search/>
  34. <dsplflag_search/>
  35. <cntrdeptcd_search/>
  36. <cntrdeptnm_search/>
  37. <goodflagnm_search/>
  38. <mdlcd_search/>
  39. <possnfrdd_search/>
  40. <possntodd_search/>
  41. <prodcmpycd_search/>
  42. <prodcmpynm_search/>
  43. <suplplcecd_search/>
  44. <suplplcenm_search/>
  45. <goodmodel_search/>
  46. <acqtflag_search/>
  47. <rfchmandlist_search/>
  48. <queryflag/>
  49. </fixasetlist>
  50. </send>
  51. <temp>
  52. <instcd/>
  53. <fixasetcd/>
  54. <bfdsplflag>A</bfdsplflag>
  55. <cron>
  56. <updtdd/>
  57. <updtflag/>
  58. <mngtdeptcd/>
  59. <mngtdeptnm/>
  60. <installplcecd/>
  61. <installplcenm/>
  62. </cron>
  63. <addsearch/>
  64. <searchresult>
  65. <fixaset/>
  66. </searchresult>
  67. <saveresult/>
  68. </temp>
  69. <init>
  70. <possnflagcd>
  71. <label>내자</label>
  72. <value>H</value>
  73. <label>외자</label>
  74. <value>F</value>
  75. </possnflagcd>
  76. <goodflag>
  77. <label>일반비품</label>
  78. <value>GE</value>
  79. <label>의료장비</label>
  80. <value>EQ</value>
  81. </goodflag>
  82. <acqtflag>
  83. <label>기증</label>
  84. <value>1</value>
  85. <label>매입</label>
  86. <value>2</value>
  87. <label>임차</label>
  88. <value>3</value>
  89. <label>지불필</label>
  90. <value>4</value>
  91. <label>공동운영</label>
  92. <value>5</value>
  93. <label>사후관리</label>
  94. <value>6</value>
  95. </acqtflag>
  96. <popmenu>
  97. <grd_fixasetlist>
  98. <item>
  99. <name>설치장소변경</name>
  100. <func>fSetMainCustLastInstallplce</func>
  101. </item>
  102. <item>
  103. <name>사용부서변경</name>
  104. <func>fSetMainCustLastMngtdept</func>
  105. </item>
  106. </grd_fixasetlist>
  107. <grd_chgnhistlist>
  108. <item>
  109. <name>일괄변경</name>
  110. <func>fViewListSetting</func>
  111. </item>
  112. </grd_chgnhistlist>
  113. </popmenu>
  114. <poptitle/>
  115. <popinputcd/>
  116. <popinputnm/>
  117. <popcond/>
  118. <popformat/>
  119. </init>
  120. <ref>
  121. <flag/>
  122. <cnt/>
  123. </ref>
  124. </root>
  125. </instance>
  126. <script type="javascript" ev:event="xforms-ready">
  127. <![CDATA[
  128. //화면 Control을 초기화한다
  129. fInitialize();
  130. fGetdata();
  131. model.setFocus("ipt_fixasetcd");
  132. ]]>
  133. </script>
  134. <submission id="TRRFE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/main/chgnhistlist"/>
  135. <submission id="TXRFE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/temp/saveresult"/>
  136. <submission id="TRRFC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/temp/searchresult/fixaset"/>
  137. <submission id="TRRFC00209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/fixasetexcel"/>
  138. <submission id="TXRFE00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/temp/saveresult"/>
  139. <submission id="TRRFE00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/main/chgnhist"/>
  140. </model>
  141. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  143. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  144. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  147. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFE00200.js"/>
  148. <script type="javascript">
  149. <![CDATA[
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body guideline="1,1195;" cellspacing="4" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  155. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">자산변동사항관리</caption>
  156. </group>
  157. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  158. <datagrid id="grd_fixasetexcellist" nodeset="/root/main/list/fixasetexcel/fixasetexcellist" class="datagrid1" visibility="hidden" caption="기관명^자산코드^자산명(한글)^자산명(영문)^메인장비^모델명^규격^설치장소코드^설치장소명^공급처코드^공급처명^제조국^제조회사코드^제조회사명^취득일자^취득금액^관리부서코드^관리부서명^이미지여부^보조거래처^보조거래처명^청구부서^청구부서명^외화금액^화폐단위^바코드출력여부^바코드선택^구성품유무^S/N^구코드^도입구분^취득구분^물품구분^관리부서코드(의공쪽)^관리부서명(의공쪽)^수입신고번호^허가번호^분류번호^비고^거래처연락처^처분구분^고정자산단위^대분류코드^중분류코드^소분류코드^하자보증기간From^하자보증기간To^계정코드^ 계정 ^ 비고 ^귀속부서코드^입고일자^순번^변동일자^변동구분^변동구분명^변경설치장소코드^변경설치장소명^취득구분 ^취득구분명^외화액^단위^금액^적요^변경부서 코드^변경부서명" colsep="^" colwidth="82, 80, 149, 165, 109, 116, 80, 95, 116, 95, 159, 80, 105, 111, 80, 80, 80, 80, 80, 97, 121, 102, 112, 80, 80, 106, 80, 80, 80, 80, 80, 80, 80, 149, 119, 96, 98, 92, 99, 103, 80, 97, 80, 80, 80, 122, 115, 80, 123, 97, 96, 80, 80, 80, 80, 100, 117, 107, 103, 100, 80, 80, 80, 80, 94, 80" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:560px; top:590px; width:544px; height:151px; font-weight:normal; text-align:center; ">
  159. <col ref="instnm" style="text-align:center; "/>
  160. <col ref="fixasetcd" style="text-align:center; "/>
  161. <col ref="goodflaghngnm" style="text-align:left; padding-left:10; "/>
  162. <col ref="goodflagengnm" style="text-align:left; padding-left:10; "/>
  163. <col ref="maineqmt" style="text-align:left; padding-left:10; "/>
  164. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  165. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  166. <col ref="installplcecd" style="text-align:center; "/>
  167. <col ref="installplcenm" style="text-align:left; padding-left:10; "/>
  168. <col ref="suplplcecd" style="text-align:center; "/>
  169. <col ref="suplplcenm" style="text-align:left; padding-left:10; "/>
  170. <col ref="prodplce" style="text-align:left; padding-left:10; "/>
  171. <col ref="prodcmpy" style="text-align:center; "/>
  172. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  173. <col ref="possndd" format="yyyy/mm/dd" style="text-align:center; "/>
  174. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  175. <col ref="mngtdeptcd" style="text-align:left; "/>
  176. <col ref="mngtdeptnm" style="text-align:left; "/>
  177. <col ref="photoyn" style="text-align:center; "/>
  178. <col ref="suppcustcd" style="text-align:center; "/>
  179. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  180. <col ref="cntrdeptcd" style="text-align:center; "/>
  181. <col ref="cntrdeptnm" style="text-align:left; padding-left:10; "/>
  182. <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
  183. <col ref="curncyunit" style="text-align:center; "/>
  184. <col ref="barcdprntyn" style="text-align:left; "/>
  185. <col ref="choice" style="text-align:left; "/>
  186. <col ref="chkcnt" style="text-align:center; "/>
  187. <col ref="mngtno" style="text-align:left; padding-left:10; "/>
  188. <col ref="oldcd" style="text-align:center; "/>
  189. <col ref="acqtflag" style="text-align:center; "/>
  190. <col ref="possnflagcd" style="text-align:left; "/>
  191. <col ref="goodflag" style="text-align:left; "/>
  192. <col ref="tempmngtdeptcd" style="text-align:center; "/>
  193. <col ref="tempmngtdeptnm" style="text-align:left; padding-left:10; "/>
  194. <col ref="incmreptno" style="text-align:left; padding-left:10; "/>
  195. <col ref="incmpemtno" style="text-align:left; padding-left:10; "/>
  196. <col ref="mtlmngtno" style="text-align:left; padding-left:10; "/>
  197. <col ref="cmt" style="text-align:left; padding-left:10; "/>
  198. <col ref="cntctel" style="text-align:left; padding-left:10; "/>
  199. <col ref="dsplflag" style="text-align:center; "/>
  200. <col ref="fixasetunit" style="text-align:center; "/>
  201. <col ref="lrgcd" style="text-align:center; "/>
  202. <col ref="mdlcd" style="text-align:center; "/>
  203. <col ref="smlcd" style="text-align:center; "/>
  204. <col ref="flwgrnttermfr" format="yyyy/mm/dd" style="text-align:center; "/>
  205. <col ref="flwgrnttermto" format="yyyy/mm/dd" style="text-align:center; "/>
  206. <col ref="acntcd" style="text-align:center; "/>
  207. <col ref="acntnm" style="text-align:left; padding-left:10; "/>
  208. <col ref="cmt" style="text-align:left; padding-left:10; "/>
  209. <col ref="cntrdeptcd" style="text-align:center; "/>
  210. <col ref="windd" format="yyyy/mm/dd" style="text-align:center; "/>
  211. <col ref="histupdtseq" style="text-align:center; "/>
  212. <col ref="histupdtdd" format="yyyy/mm/dd" style="text-align:center; "/>
  213. <col ref="histupdtflag" type="combo" _key="true" style="text-align:center; ">
  214. <choices>
  215. <itemset>
  216. <label/>
  217. <value/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col ref="histupdtdesc" style="text-align:left; padding-left:10; "/>
  222. <col ref="histinstallplcecd" style="text-align:center; "/>
  223. <col ref="histinstallplcenm" style="text-align:left; padding-left:10; "/>
  224. <col ref="histpossnflagcd" type="combo" style="text-align:left; ">
  225. <choices>
  226. <itemset nodeset="/root/init/possnflagcd">
  227. <label ref="label"/>
  228. <value ref="value"/>
  229. </itemset>
  230. </choices>
  231. </col>
  232. <col ref="histpossnflagdesc" style="text-align:center; "/>
  233. <col ref="histforgncurncyamt" format="#,###" style="text-align:right; "/>
  234. <col ref="histcurncyunit" style="text-align:center; "/>
  235. <col ref="histfixasetamt" format="#,###" style="text-align:right; "/>
  236. <col ref="histmainrec" style="text-align:left; padding-left:10; "/>
  237. <col ref="histupddeptcd" style="text-align:center; "/>
  238. <col ref="histupddeptnm" style="text-align:left; padding-left:10; "/>
  239. </datagrid>
  240. <line id="line1" class="line_1" style="x1:0px; y1:464px; x2:1194px; y2:464px; "/>
  241. <caption id="caption4" class="tit_2" style="left:0px; top:444px; width:209px; height:14px; ">자산변동저장 및 자산변동이력</caption>
  242. <button id="btn_delrow" class="btn2_letter3" visibility="hidden" style="left:1025px; top:442px; width:53px; height:19px; ">
  243. <caption>행삭제</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. if(grd_chgnhistlist.selectedRows < 1)messageBox("삭제하실 행을 선택","I008");
  247. grd_chgnhistlist.deleteRow(grd_chgnhistlist.row, false);
  248. grd_chgnhistlist.refresh();
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="btn_addrow" class="btn2_letter3" visibility="hidden" style="left:1081px; top:442px; width:53px; height:19px; ">
  253. <caption>행추가</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. var sBaseDate = getCurrentDate();
  257. var baseRows = grd_chgnhistlist.Rows;
  258. for(var idx = 0; idx<grd_fixasetlist.selectedRows; idx++){
  259. var chkFlag = false;
  260. var sel_row = grd_fixasetlist.selectedRow(idx);
  261. for(var c = grd_chgnhistlist.fixedRows ; c<baseRows ; c++){
  262. if(grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("instcd")) == grd_chgnhistlist.valueMatrix(c, grd_chgnhistlist.colRef("instcd"))
  263. && grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("fixasetcd")) == grd_chgnhistlist.valueMatrix(c, grd_chgnhistlist.colRef("fixasetcd"))){
  264. chkFlag = true;
  265. }
  266. }
  267. if(!chkFlag){
  268. misfGridIUD(grd_chgnhistlist, "A");
  269. var cur_row = grd_chgnhistlist.row;
  270. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  271. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd",grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("instcd")) );
  272. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("fixasetcd")) );
  273. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("mngtdeptcd")) );
  274. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("mngtdeptnm")) );
  275. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("installplcecd")) );
  276. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("installplcenm")) ); //20100308
  277. // 행추가를 누를시 날짜를 오늘 날짜로 자동 세팅 한다
  278. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
  279. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/dsplflag", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("dsplflag")) );
  280. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/repaymthd", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("repaymthd")) );
  281. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetamt", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("possnamt")) );
  282. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/goodflagengnm", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("goodflagengnm")) );
  283. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/cmt", grd_fixasetlist.valueMatrix(sel_row, grd_fixasetlist.colRef("cmt")) );
  284. }
  285. }
  286. grd_chgnhistlist.refresh();
  287. ]]>
  288. </script>
  289. </button>
  290. <caption id="caption21" class="tit_2" style="left:0px; top:145px; width:69px; height:13px; ">자산목록</caption>
  291. <line id="line16" class="line_1" style="x1:0px; y1:164px; x2:1194px; y2:163px; "/>
  292. <datagrid id="grd_fixasetlist" nodeset="/root/main/list/fixaset/fixasetlist" caption="자산코드^자산명^자산명^모델명^규격^처분구분^구입금액^외화금액^화폐단위^구입일^거래처^제조원^제조국^청구부서^사용부서^사용부서^도입구분^설치장소^설치장소^관리번호^구코드^수입신고번호^분류번호(등급)^기관코드^중요장비^제조회사^공급처코드^상각방법^비고" colsep="^" colwidth="92, 240, 240, 150, 87, 60, 76, 75, 63, 73, 90, 104, 65, 100, 100, 75, 70, 100, 75, 75, 131, 108, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:167px; width:1194px; height:270px; ">
  293. <col ref="fixasetcd" style="text-align:center; "/>
  294. <col ref="goodflaghngnm" style="text-align:left; padding-left:5; "/>
  295. <col ref="goodflagengnm" style="text-align:left; padding-left:5; "/>
  296. <col ref="goodmodel" style="text-align:left; padding-left:5; "/>
  297. <col ref="goodspec" style="text-align:left; padding-left:5; "/>
  298. <col disabled="true" ref="dsplflag" type="combo" style="text-align:center; ">
  299. <choices>
  300. <itemset>
  301. <label/>
  302. <value/>
  303. </itemset>
  304. </choices>
  305. </col>
  306. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  307. <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
  308. <col disabled="true" ref="curncyunit" type="combo" style="text-align:center; ">
  309. <choices>
  310. <itemset>
  311. <label/>
  312. <value/>
  313. </itemset>
  314. </choices>
  315. </col>
  316. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  317. <col ref="suplplcenm" style="text-align:left; padding-left:5; "/>
  318. <col ref="prodcmpynm" style="padding-left:10; "/>
  319. <col disabled="true" ref="prodplce" type="combo" style="text-align:center; ">
  320. <choices>
  321. <itemset>
  322. <label/>
  323. <value/>
  324. </itemset>
  325. </choices>
  326. </col>
  327. <col ref="cntrdeptnm" style="text-align:left; padding-left:5; "/>
  328. <col ref="mngtdeptnm" style="text-align:left; padding-left:5; "/>
  329. <col ref="mngtdeptcd" visibility="visible" style="text-align:center; "/>
  330. <col disabled="true" ref="acqtflag" type="combo" style="text-align:center; ">
  331. <choices>
  332. <item>
  333. <label>기증</label>
  334. <value>1</value>
  335. </item>
  336. <item>
  337. <label>매입</label>
  338. <value>2</value>
  339. </item>
  340. <item>
  341. <label>임차</label>
  342. <value>3</value>
  343. </item>
  344. <item>
  345. <label>지불필</label>
  346. <value>4</value>
  347. </item>
  348. <item>
  349. <label>공동운영</label>
  350. <value>5</value>
  351. </item>
  352. <item>
  353. <label>사후관리</label>
  354. <value>6</value>
  355. </item>
  356. </choices>
  357. </col>
  358. <col ref="installplcenm" style="text-align:left; padding-left:5; "/>
  359. <col ref="installplcecd" style="text-align:center; "/>
  360. <col ref="mngtno" style="text-align:left; padding-left:5; "/>
  361. <col ref="oldcd" style="text-align:left; padding-left:5; "/>
  362. <col ref="incmreptno" style="text-align:left; padding-left:5; "/>
  363. <col ref="mtlmngtno" style="text-align:left; padding-left:5; "/>
  364. <col ref="instcd" type="input" visibility="hidden"/>
  365. <col ref="maineqmt" type="input" visibility="hidden"/>
  366. <col ref="prodcmpy" visibility="hidden"/>
  367. <col ref="suplplcecd" visibility="hidden"/>
  368. <col ref="repaymthd" visibility="hidden"/>
  369. <col ref="cmt" visibility="hidden"/>
  370. <script type="javascript" ev:event="onrowchanged">
  371. <![CDATA[
  372. if(selectedTab == "History") {
  373. fSearchHistory();
  374. }
  375. ]]>
  376. </script>
  377. <script type="javascript" ev:event="onaftersort">
  378. <![CDATA[
  379. grd_fixasetlist.gridToInstance();
  380. ]]>
  381. </script>
  382. <script type="javascript" ev:event="onmousedown">
  383. <![CDATA[
  384. if(event.button == 3){
  385. if(grd_fixasetlist.isCell(event.target) && grd_fixasetlist.mouseRow >= grd_fixasetlist.fixedrows){
  386. window.setPopupMenu(true, "/root/init/popmenu/grd_fixasetlist/item", "name", "func", false);
  387. }else{
  388. window.setPopupMenu(false);
  389. }
  390. }
  391. ]]>
  392. </script>
  393. <script type="javascript" ev:event="DOMFocusOut">
  394. <![CDATA[
  395. window.setPopupMenu(false);
  396. ]]>
  397. </script>
  398. </datagrid>
  399. <caption id="caption23" visibility="hidden" style="left:817px; top:140px; width:375px; height:21px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※ 자산목록을 더블클릭시 자산변동이력List에 추가됩니다.</caption>
  400. <button id="btn_multi" class="btn_sw" group="tab" selected="true" style="left:0px; top:469px; width:100px; height:22px; ">
  401. <caption>멀티변경</caption>
  402. <toggle case="case_multi" ev:event="onclick"/>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. btn_addrow.visible = true;
  406. btn_multisave.visible = true;
  407. btn_delrow.visible= true;
  408. btn_tret.visible = true;
  409. //btn_multiaplly.visible= true;
  410. selectedTab = "MultiEdit";
  411. ]]>
  412. </script>
  413. </button>
  414. <button id="btn_history" class="btn_sw" group="tab" selected="false" style="left:100px; top:469px; width:100px; height:22px; ">
  415. <caption>자산변동이력</caption>
  416. <toggle case="case_history" ev:event="onclick"/>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. btn_addrow.visible= false;
  420. btn_multisave.visible = false;
  421. btn_delrow.visible= false;
  422. btn_tret.visible = false;
  423. //btn_multiaplly.visible = false;
  424. selectedTab = "History";
  425. fSearchHistory();
  426. ]]>
  427. </script>
  428. </button>
  429. <button id="btn_multisave" class="btn4_letter2" visibility="hidden" style="left:1137px; top:441px; width:56px; height:22px; ">
  430. <caption>저장</caption>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. fSave();
  434. ]]>
  435. </script>
  436. </button>
  437. <button id="btn_multiaplly" class="btn2_letter5" visibility="hidden" style="left:850px; top:442px; width:75px; height:19px; ">
  438. <caption>변경행추가</caption>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. //if(!isRequiredControls("ipt_fixasetcd")) return;
  442. var sBaseDate = getCurrentDate();
  443. for(var fRow = grd_fixasetlist.fixedRows; fRow < grd_fixasetlist.rows; fRow++){
  444. if(grd_fixasetlist.rowStatus(fRow) == "2"){
  445. misfGridIUD(grd_chgnhistlist, "A");
  446. var cur_row = grd_chgnhistlist.row;
  447. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  448. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  449. //model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
  450. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("fixasetcd")) );
  451. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("mngtdeptcd")) );
  452. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("mngtdeptnm")) );
  453. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("installplcecd")) );
  454. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("installplcenm")) ); //20100308
  455. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", getUserInfo("dutplcecd"));
  456. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", getUserInfo("dutplcenm"));
  457. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", getUserInfo("dutplcecd"));
  458. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", getUserInfo("dutplcenm"));
  459. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd", sBaseDate); // 행추가를 누를시 날짜를 오늘 날짜로 자동 세팅 한다
  460. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/goodflagengnm", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("goodflagengnm")) ); //20100308
  461. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/forgncurncyamt", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("forgncurncyamt")) ); //20100308
  462. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/curncyunit", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("curncyunit")) ); //20100308
  463. model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd", grd_fixasetlist.valueMatrix(fRow, grd_fixasetlist.colRef("instcd")) ); //20100308
  464. }
  465. }
  466. ]]>
  467. </script>
  468. </button>
  469. <switch id="switch2" style="left:0px; top:490px; width:1195px; height:250px; ">
  470. <case id="case_multi" selected="true" style="left:0px; top:0px; width:1193px; height:263px; ">
  471. <datagrid id="grd_chgnhistlist" nodeset="/root/main/chgnhistlist" caption="순번^자산코드^자산명^변동일자^변동구분^처분구분(현재)^변경부서^변경부서^변경설치장소^변경설치장소^취득구분^외화액^단위^자산금액^변동금액^적요^비고^거래처코드^기관코드^상각방법^" colsep="^" colwidth="45, 97, 196, 100, 60, 90, 95, 110, 105, 130, 100, 100, 69, 85, 85, 115, 200, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="false" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:0px; width:1195px; height:240px; ">
  472. <col ref="updtseq" format="999999-9999999" style="text-align:center; "/>
  473. <col ref="fixasetcd" _key="true" style="text-align:center; "/>
  474. <col ref="goodflagengnm"/>
  475. <col class="input_essential" ref="updtdd" type="inputdate" format="yyyy-mm-dd" maxlength="8" _key="true" style="text-align:center; "/>
  476. <col class="input_essential" ref="updtflag" type="combo" _key="true" style="text-align:center; ">
  477. <choices>
  478. <itemset>
  479. <label/>
  480. <value/>
  481. </itemset>
  482. </choices>
  483. </col>
  484. <col ref="dsplflag" visibility="hidden" style="text-align:center; "/>
  485. <col class="input_essential" ref="upddeptcd" type="inputbutton" _key="true" style="text-align:center; "/>
  486. <col ref="upddeptnm" style="text-align:left; "/>
  487. <col class="input_essential" ref="chnginstallplcecd" type="inputbutton" maxlength="12" _key="true" style="text-align:center; "/>
  488. <col disabled="true" ref="installplcenm" style="text-align:left; "/>
  489. <col ref="possnflagcd" type="combo" visibility="hidden">
  490. <choices>
  491. <itemset nodeset="/root/init/possnflagcd">
  492. <label ref="label"/>
  493. <value ref="value"/>
  494. </itemset>
  495. </choices>
  496. </col>
  497. <col ref="forgncurncyamt" type="input" visibility="hidden" format="#,###" maxlength="12" style="text-align:right; "/>
  498. <col ref="curncyunit" type="combo" visibility="hidden" maxlength="2">
  499. <choices>
  500. <itemset>
  501. <label/>
  502. <value/>
  503. </itemset>
  504. </choices>
  505. </col>
  506. <col disabled="true" ref="fixasetamt" type="input" format="#,###" maxlength="12" style="text-align:right; "/>
  507. <col ref="updtamt" type="input" format="(-)#,###" maxlength="12" style="text-align:right; "/>
  508. <col ref="mainrec" type="input" visibility="hidden" maxlength="60"/>
  509. <col ref="cmt" type="input" maxlength="500"/>
  510. <col ref="custcd" visibility="hidden"/>
  511. <col ref="instcd" visibility="hidden"/>
  512. <col ref="repaymthd" visibility="hidden"/>
  513. <col ref="rtnreqdeptcd" visibility="hidden"/>
  514. <col ref="rtnreqdd" visibility="hidden"/>
  515. <col ref="rtnreqseq" visibility="hidden"/>
  516. <script type="javascript" ev:event="onbuttonclick">
  517. <![CDATA[
  518. if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
  519. {
  520. misfOpenPopUpList("02", grd_chgnhistlist,"","upddeptcd,upddeptnm");
  521. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
  522. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
  523. grd_chgnhistlist.refresh();
  524. }else if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd"))//변경설치 버튼을 눌렀을 때
  525. {
  526. rszfOpenPopUpListByWndName(grd_chgnhistlist,"","chnginstallplcecd,installplcenm","PPRAC00700","instcd","cmb_instcd");
  527. grd_chgnhistlist.refresh();
  528. }
  529. ]]>
  530. </script>
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
  534. {
  535. misfValidationCheck("02", "", "upddeptcd,upddeptnm" );
  536. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
  537. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
  538. grd_chgnhistlist.refresh();
  539. }else if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd") && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")).length> 0)
  540. {
  541. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  542. "deptcd," + grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")), "", "chnginstallplcecd,installplcenm",
  543. grd_chgnhistlist, "PPRAC00700", "","");
  544. grd_chgnhistlist.refresh();
  545. }else if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("updtflag"))
  546. {
  547. if(grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) == "1"
  548. && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("dsplflag")) == "1")
  549. {
  550. messageBox("이미 폐기 된 자산","I009");
  551. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) = "";
  552. grd_chgnhistlist.refresh();
  553. return;
  554. }
  555. if(grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) == "1"
  556. && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("repaymthd")) != "3")
  557. {
  558. messageBox("처분자산감가상각에서 폐기가 가능한 자산","I009");
  559. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) = "";
  560. grd_chgnhistlist.refresh();
  561. return;
  562. }
  563. if(grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("dsplflag")) == "1"
  564. && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("repaymthd")) != "3")
  565. {
  566. messageBox("처분자산감가상각에서 폐기 된 자산","I009")
  567. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) = "";
  568. grd_chgnhistlist.refresh();
  569. return;
  570. }
  571. if(grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("dsplflag")) == grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")))
  572. {
  573. messageBox("현재 [" + grd_chgnhistlist.labelMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) + "] 상태인 자산", "I009");
  574. grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("updtflag")) = "";
  575. grd_chgnhistlist.refresh();
  576. return;
  577. }
  578. }
  579. ]]>
  580. </script>
  581. <script type="javascript" ev:event="onaftersort">
  582. <![CDATA[
  583. grd_chgnhistlist.gridToInstance();
  584. ]]>
  585. </script>
  586. <script type="javascript" ev:event="onrowchanged">
  587. <![CDATA[
  588. if( grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("rtnreqseq")) != "" )
  589. {
  590. btn_delrow.disabled = true;
  591. }else{
  592. btn_delrow.disabled = false;
  593. }
  594. ]]>
  595. </script>
  596. <script type="javascript" ev:event="onmousedown">
  597. <![CDATA[
  598. if(event.button == 3){
  599. if(grd_chgnhistlist.isCell(event.target) && grd_chgnhistlist.mouseRow >= grd_chgnhistlist.fixedrows) {
  600. window.setPopupMenu(true, "/root/init/popmenu/grd_chgnhistlist/item", "name", "func", false);
  601. }else{
  602. window.setPopupMenu(false);
  603. }
  604. }
  605. ]]>
  606. </script>
  607. <script type="javascript" ev:event="DOMFocusOut">
  608. <![CDATA[
  609. window.setPopupMenu(false);
  610. ]]>
  611. </script>
  612. </datagrid>
  613. </case>
  614. <case id="case_history">
  615. <datagrid id="grd_histlist" nodeset="/root/main/chgnhist" autoresize="true" caption="순번^자산^자산^변동일자^변동구분^이전부서^이전부서^변경부서^변경부서^이전설치장소^이전설치장소^변경설치장소^변경설치장소^취득구분^외화액^단위^자산금액^변동금액^비고^적요^거래처코드^기관코드^" colsep="^" colwidth="35, 92, 151, 74, 62, 90, 118, 89, 130, 80, 127, 80, 134, 100, 100, 70, 100, 100, 200, 152, 100, 80, 99, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:0px; width:1193px; height:240px; ">
  616. <col ref="updtseq" format="999999-9999999" style="text-align:center; "/>
  617. <col ref="fixasetcd" _key="true" style="text-align:center; "/>
  618. <col ref="goodflagengnm"/>
  619. <col ref="updtdd" type="output" format="yyyy-mm-dd" maxlength="8" _key="true" style="text-align:center; "/>
  620. <col disabled="true" ref="updtflag" type="combo" _key="true" style="text-align:center; ">
  621. <choices>
  622. <itemset>
  623. <label/>
  624. <value/>
  625. </itemset>
  626. </choices>
  627. </col>
  628. <col ref="premngtdeptcd" type="output" visibility="hidden" _key="true" style="text-align:center; "/>
  629. <col ref="premngtdeptnm" visibility="hidden" style="text-align:left; "/>
  630. <col ref="upddeptcd" type="output" _key="true" style="text-align:center; "/>
  631. <col ref="upddeptnm" style="text-align:left; "/>
  632. <col ref="preinstallplcecd" type="output" visibility="hidden" _key="true" style="text-align:center; "/>
  633. <col ref="preinstallplcenm" visibility="hidden" style="text-align:left; "/>
  634. <col ref="chnginstallplcecd" type="output" maxlength="12" _key="true" style="text-align:center; "/>
  635. <col disabled="true" ref="installplcenm" style="text-align:left; "/>
  636. <col ref="possnflagcd" type="combo" visibility="hidden">
  637. <choices>
  638. <itemset nodeset="/root/init/possnflagcd">
  639. <label ref="label"/>
  640. <value ref="value"/>
  641. </itemset>
  642. </choices>
  643. </col>
  644. <col ref="forgncurncyamt" type="output" visibility="hidden" format="#,###" maxlength="12" style="text-align:right; "/>
  645. <col ref="curncyunit" type="combo" visibility="hidden" maxlength="2">
  646. <choices>
  647. <itemset>
  648. <label/>
  649. <value/>
  650. </itemset>
  651. </choices>
  652. </col>
  653. <col ref="fixasetamt" type="output" format="#,###" maxlength="12" style="text-align:right; "/>
  654. <col ref="updtamt" type="output" format="#,###" maxlength="12" style="text-align:right; "/>
  655. <col ref="cmt"/>
  656. <col ref="mainrec" visibility="hidden"/>
  657. <col ref="custcd" visibility="hidden"/>
  658. <col ref="instcd" visibility="hidden"/>
  659. <col ref="rtnreqdeptcd" visibility="hidden"/>
  660. <col ref="rtnreqdd" visibility="hidden"/>
  661. <col ref="rtnreqseq" visibility="hidden"/>
  662. <script type="javascript" ev:event="onaftersort">
  663. <![CDATA[
  664. grd_chgnhistlist.gridToInstance();
  665. ]]>
  666. </script>
  667. </datagrid>
  668. </case>
  669. </switch>
  670. <button id="btn_tret" class="btn2_letter4" style="left:958px; top:442px; width:64px; height:19px; ">
  671. <caption>접수내역</caption>
  672. <script type="javascript" ev:event="DOMActivate">
  673. <![CDATA[
  674. misfGridInit(grd_chgnhistlist);
  675. model.setValue("/root/ref/cnt","0");
  676. //model.setValue("/root/ref/flag","1");
  677. window.load("SMRSC16000_고정자산이동및폐기접수.xrw", "modal", "pop1", "align center;min:hidden; max:hidden;","/root/ref","/root/ref");
  678. var cnt = model.getValue("/root/ref/cnt");
  679. for(i = 1 ; i < cnt ; i++){
  680. misfGridIUD(grd_chgnhistlist, "A");
  681. if(model.getValue("/root/ref/chgnhist["+i+"]/chantype") == "0"){
  682. model.setValue("/root/ref/chgnhist["+i+"]/chantype","4")
  683. }
  684. model.setValue("/root/main/chgnhistlist["+i+"]/fixasetcd",model.getValue("/root/ref/chgnhist["+i+"]/fixasetcd"));
  685. model.setValue("/root/main/chgnhistlist["+i+"]/goodflagengnm",model.getValue("/root/ref/chgnhist["+i+"]/goodflaghngnm"));
  686. model.setValue("/root/main/chgnhistlist["+i+"]/updtdd",model.getValue("/root/ref/chgnhist["+i+"]/tretdt"));
  687. model.setValue("/root/main/chgnhistlist["+i+"]/updtflag",model.getValue("/root/ref/chgnhist["+i+"]/chantype"));
  688. model.setValue("/root/main/chgnhistlist["+i+"]/upddeptcd",model.getValue("/root/ref/chgnhist["+i+"]/takeindeptcd"));
  689. model.setValue("/root/main/chgnhistlist["+i+"]/upddeptnm",model.getValue("/root/ref/chgnhist["+i+"]/takeindeptnm"));
  690. model.setValue("/root/main/chgnhistlist["+i+"]/chnginstallplcecd",model.getValue("/root/ref/chgnhist["+i+"]/takeoutdeptcd"));
  691. model.setValue("/root/main/chgnhistlist["+i+"]/installplcenm",model.getValue("/root/ref/chgnhist["+i+"]/takeoutdeptnm"));
  692. model.setValue("/root/main/chgnhistlist["+i+"]/fixasetamt",model.getValue("/root/ref/chgnhist["+i+"]/fixasetamt"));
  693. model.setValue("/root/main/chgnhistlist["+i+"]/instcd",model.getValue("/root/ref/chgnhist["+i+"]/instcd"));
  694. }
  695. grd_chgnhistlist.refresh();
  696. ]]>
  697. </script>
  698. </button>
  699. <group id="grp_setlist" visibility="hidden" style="left:430px; top:535px; width:375px; height:111px; ">
  700. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:375px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  701. <input id="input1" ref="/root/temp/cron/updtdd" class="input_search" navindex="14" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:95px; top:10px; width:95px; height:19px; text-align:center; "/>
  702. <button id="button3" class="icon_search" navindex="-1" style="left:196px; top:35px; width:16px; height:16px; ">
  703. <caption/>
  704. <script type="javascript" ev:event="DOMActivate">
  705. <![CDATA[
  706. misfOpenPopUpList("02", ipt_cron_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  707. ipt_cron_mngtdeptcd.refresh();
  708. ipt_cron_mngtdeptnm.refresh();
  709. ]]>
  710. </script>
  711. </button>
  712. <input id="ipt_cron_mngtdeptcd" ref="/root/temp/cron/mngtdeptcd" class="input_search" navindex="4" style="left:118px; top:35px; width:75px; height:19px; ">
  713. <script type="javascript" ev:event="xforms-value-changed">
  714. <![CDATA[
  715. misfSearchDept(ipt_cron_mngtdeptnm);
  716. ]]>
  717. </script>
  718. </input>
  719. <input id="ipt_cron_mngtdeptnm" ref="/root/temp/cron/mngtdeptnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:215px; top:35px; width:150px; height:19px; "/>
  720. <select1 id="cmb_cron_updtflag" ref="/root/temp/cron/updtflag" class="combo_search" navindex="12" appearance="minimal" style="left:285px; top:10px; width:80px; height:19px; text-align:center; ">
  721. <choices>
  722. <itemset>
  723. <label/>
  724. <value/>
  725. </itemset>
  726. </choices>
  727. </select1>
  728. <button id="button4" class="icon_search" navindex="-1" style="left:196px; top:60px; width:16px; height:16px; ">
  729. <caption/>
  730. <script type="javascript" ev:event="DOMActivate">
  731. <![CDATA[
  732. misfOpenPopUpList("19", ipt_cron_installplcecd,"","installplcecd,installplcenm");
  733. ipt_cron_installplcecd.refresh();
  734. ipt_cron_installplcenm.refresh();
  735. ]]>
  736. </script>
  737. </button>
  738. <input id="ipt_cron_installplcecd" ref="/root/temp/cron/installplcecd" class="input_search" navindex="4" style="left:118px; top:60px; width:75px; height:19px; ">
  739. <script type="javascript" ev:event="xforms-value-changed">
  740. <![CDATA[
  741. misfSearchDept(ipt_cron_installplcenm);
  742. ]]>
  743. </script>
  744. </input>
  745. <input id="ipt_cron_installplcenm" ref="/root/temp/cron/installplcenm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:215px; top:60px; width:150px; height:19px; "/>
  746. <button id="btn_seqapp" class="btn2_letter4" style="left:250px; top:85px; width:64px; height:19px; ">
  747. <caption>일괄적용</caption>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. fSetSelectList();
  751. ]]>
  752. </script>
  753. </button>
  754. <caption id="caption7" class="search_name" style="left:5px; top:10px; width:88px; height:17px; ">변동일자 :</caption>
  755. <caption id="caption8" class="search_name" style="left:195px; top:10px; width:88px; height:17px; ">변동구분 :</caption>
  756. <caption id="caption9" class="search_name" style="left:5px; top:35px; width:108px; height:17px; ">변경사용부서 :</caption>
  757. <caption id="caption10" class="search_name" style="left:5px; top:60px; width:115px; height:17px; ">변경설치장소 :</caption>
  758. <button id="button5" class="btn2_letter2" style="left:320px; top:85px; width:42px; height:19px; ">
  759. <caption>취소</caption>
  760. <script type="javascript" ev:event="DOMActivate">
  761. <![CDATA[
  762. grd_chgnhistlist.disabled = false;
  763. grp_setlist.visible = false;
  764. ]]>
  765. </script>
  766. </button>
  767. </group>
  768. </group>
  769. <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
  770. <button id="button26" class="btn3_letter4" visibility="hidden" style="left:0; top:3; width:80px; height:22px; ">
  771. <caption>화면이동</caption>
  772. </button>
  773. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3; width:68px; height:22px; ">
  774. <caption>초기화</caption>
  775. <script type="javascript" ev:event="DOMActivate">
  776. <![CDATA[
  777. fInitialize();
  778. ]]>
  779. </script>
  780. </button>
  781. <line id="line11" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  782. <button id="button2" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  783. <caption>엑셀</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. var fileName = window.fileDialog("save", ",", false, "자산코드리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  787. fsearch_excel();
  788. if (fileName != "") {
  789. grd_fixasetexcellist.saveExcel(fileName, "자산코드리스트", "sheetname:sheet1;colhiddenextend:false;");
  790. }
  791. ]]>
  792. </script>
  793. </button>
  794. <output id="opt_popinputcd" ref="/root/init/popinputcd" visibility="hidden" style="left:719px; top:5px; width:100px; height:19px; "/>
  795. <output id="opt_poptitle" ref="/root/init/poptitle" visibility="hidden" style="left:616px; top:5px; width:100px; height:19px; "/>
  796. <output id="opt_popformat" ref="/root/init/popformat" visibility="hidden" style="left:410px; top:5px; width:100px; height:19px; "/>
  797. <output id="opt_popcond" ref="/root/init/popcond" visibility="hidden" style="left:513px; top:5px; width:100px; height:19px; "/>
  798. </group>
  799. <group id="group5" style="left:0px; top:47px; width:1195px; height:133px; vertical-align:top; ">
  800. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:131px; background-color:#fffbf2; border-color:#ffd799; "/>
  801. <caption id="cap_mngtdeptcd_search" class="search_name" style="left:8px; top:103px; width:92px; height:17px; ">사용부서 :</caption>
  802. <input id="ipt_mngtdeptcd_search" ref="/root/send/fixasetlist/mngtdeptcd_search" class="input_search" navindex="4" style="left:103px; top:103px; width:75px; height:19px; ">
  803. <script type="javascript" ev:event="xforms-value-changed">
  804. <![CDATA[
  805. misfSearchDept(ipt_mngtdeptnm_search);
  806. ]]>
  807. </script>
  808. </input>
  809. <button id="btn_mngtdeptcd_search" class="icon_search" navindex="-1" style="left:181px; top:103px; width:16px; height:16px; ">
  810. <caption/>
  811. <script type="javascript" ev:event="DOMActivate">
  812. <![CDATA[
  813. misfOpenPopUpList("02", ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
  814. ipt_mngtdeptcd_search.refresh();
  815. ipt_mngtdeptnm_search.refresh();
  816. ]]>
  817. </script>
  818. </button>
  819. <input id="ipt_mngtdeptnm_search" ref="/root/send/fixasetlist/mngtdeptnm_search" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:200px; top:103px; width:150px; height:19px; "/>
  820. <caption id="cap_instcd_search" class="search_name" style="left:8px; top:9px; width:117px; height:17px; ">기관코드 :</caption>
  821. <line id="line12" class="line_4" style="x1:1100px; y1:8px; x2:1100px; y2:120px; border-color:#ffd799; "/>
  822. <select1 id="cmb_goodflag_search" ref="/root/send/fixasetlist/goodflag_search" class="input_search" navindex="5" appearance="minimal" style="left:510px; top:9px; width:170px; height:19px; ">
  823. <choices>
  824. <itemset nodeset="/root/init/goodflag">
  825. <label ref="label"/>
  826. <value ref="value"/>
  827. </itemset>
  828. </choices>
  829. <script type="javascript" ev:event="xforms-value-changed">
  830. <![CDATA[
  831. var goodflag = model.getValue(cmb_goodflag_search.attribute("ref"));
  832. if(goodflag == ""){
  833. model.setValue(cmb_lrgcd_search.attribute("ref"),"");
  834. model.setValue(cmb_mdlcd_search.attribute("ref"),"");
  835. cmb_lrgcd_search.disabled = true;
  836. cmb_mdlcd_search.disabled = true;
  837. }else{
  838. cmb_lrgcd_search.disabled = false;
  839. misfChangeItemsetFilter(cmb_lrgcd_search,"goodflag=null or goodflag='" + goodflag + "'");
  840. cmb_lrgcd_search.refresh();
  841. cmb_lrgcd_search.dispatch("xforms-value-changed");
  842. }
  843. fGridGoodflagCheck();
  844. model.setValue(cmb_lrgcd_search.attribute("ref"),"");
  845. model.setValue(cmb_mdlcd_search.attribute("ref"),"");
  846. fGridGoodflagCheck();
  847. ]]>
  848. </script>
  849. </select1>
  850. <caption id="cap_goodflag_search" class="search_name" style="left:415px; top:9px; width:88px; height:17px; ">물품구분 :</caption>
  851. <select1 id="cmb_instcd" ref="/root/send/fixasetlist/instcd_search" class="combo_s_essential" navindex="1" appearance="minimal" style="left:103px; top:9px; width:174px; height:19px; text-align:left; ">
  852. <choices>
  853. <itemset>
  854. <label/>
  855. <value/>
  856. </itemset>
  857. </choices>
  858. </select1>
  859. <caption id="caption2" class="search_name" style="left:742px; top:102px; width:90px; height:17px; ">자산코드 :</caption>
  860. <input id="ipt_fixasetcd" ref="/root/send/fixasetlist/fixasetcd_search" class="input_search" navindex="16" imemode="disabled" _chartype="upper" appearance="input" style="left:832px; top:102px; width:170px; height:19px; ">
  861. <script type="javascript" ev:event="onkeyup">
  862. <![CDATA[
  863. inputEnterKey("btn_search", "DOMActivate");
  864. if(event.keyCode == "13") {
  865. model.setFocus("ipt_fixasetcd");
  866. }
  867. ]]>
  868. </script>
  869. </input>
  870. <button id="btn_search" class="btn1_letter2" navindex="17" style="left:1115px; top:57px; width:56px; height:22px; ">
  871. <caption>조회</caption>
  872. <script type="javascript" ev:event="DOMActivate">
  873. <![CDATA[
  874. fsearch();
  875. ]]>
  876. </script>
  877. </button>
  878. <button id="button1" class="icon_search" navindex="-1" style="left:181px; top:79px; width:16px; height:16px; ">
  879. <caption/>
  880. <script type="javascript" ev:event="DOMActivate">
  881. <![CDATA[
  882. misfOpenPopUpList("02", ipt_cntrdeptcd_search,"","cntrdeptcd_search,cntrdeptnm_search");
  883. ipt_cntrdeptcd_search.refresh();
  884. ipt_deptnm_search.refresh();
  885. ]]>
  886. </script>
  887. </button>
  888. <input id="ipt_deptnm_search" ref="/root/send/fixasetlist/cntrdeptnm_search" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:200px; top:79px; width:150px; height:19px; "/>
  889. <input id="ipt_cntrdeptcd_search" ref="/root/send/fixasetlist/cntrdeptcd_search" class="input_search" navindex="3" style="left:103px; top:79px; width:75px; height:19px; ">
  890. <script type="javascript" ev:event="xforms-value-changed">
  891. <![CDATA[
  892. misfSearchDept(ipt_deptnm_search);
  893. ]]>
  894. </script>
  895. </input>
  896. <caption id="caption1" class="search_name" style="left:8px; top:79px; width:92px; height:17px; ">청구부서 :</caption>
  897. <caption id="cap_dsplflag_search" class="search_name" style="left:8px; top:33px; width:86px; height:17px; ">처분구분 :</caption>
  898. <select1 id="cmb_lrgcd_search" ref="/root/send/fixasetlist/lrgcd_search" class="input_search" disabled="true" navindex="6" appearance="minimal" style="left:510px; top:32px; width:170px; height:19px; ">
  899. <choices>
  900. <itemset>
  901. <label/>
  902. <value/>
  903. </itemset>
  904. </choices>
  905. <script type="javascript" ev:event="xforms-value-changed">
  906. <![CDATA[
  907. var goodflag = model.getValue(cmb_goodflag_search.attribute("ref"));
  908. var lrgcd = model.getValue(cmb_lrgcd_search.attribute("ref"));
  909. if(lrgcd == ""){
  910. cmb_mdlcd_search.disabled = true;
  911. }else{
  912. cmb_mdlcd_search.disabled = false;
  913. misfChangeItemsetFilter(cmb_mdlcd_search,"goodflag='" + goodflag + "' and lrgcd='" + lrgcd + "' or value=null");
  914. }
  915. model.setValue(cmb_mdlcd_search.attribute("ref"),"");
  916. cmb_mdlcd_search.refresh();
  917. ]]>
  918. </script>
  919. </select1>
  920. <caption id="cap_possndd_search" class="search_name" visibility="visible" style="left:742px; top:79px; width:90px; height:17px; ">구입일자 :</caption>
  921. <caption id="caption3" class="search_name" style="left:415px; top:32px; width:88px; height:17px; ">대 분 류 :</caption>
  922. <input id="ipt_goodflagnm_search" ref="/root/send/fixasetlist/goodflagnm_search" class="input_search" navindex="8" style="left:510px; top:79px; width:170px; height:19px; "/>
  923. <caption id="caption5" visibility="visible" style="left:932px; top:80px; width:15px; height:20px; font-weight:bold; ">~</caption>
  924. <select1 id="cmb_mdlcd_search" ref="/root/send/fixasetlist/mdlcd_search" class="input_search" disabled="true" navindex="7" appearance="minimal" style="left:510px; top:56px; width:170px; height:19px; ">
  925. <choices>
  926. <itemset>
  927. <label/>
  928. <value/>
  929. </itemset>
  930. </choices>
  931. </select1>
  932. <input id="ipt_possntodd_search" ref="/root/send/fixasetlist/possntodd_search" class="input_search" navindex="15" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:949px; top:80px; width:95px; height:19px; text-align:center; "/>
  933. <caption id="cap_mdlcd_search" class="search_name" style="left:415px; top:56px; width:88px; height:17px; ">중 분 류 :</caption>
  934. <caption id="cap_goodflagengnm_search" class="search_name" style="left:415px; top:79px; width:88px; height:17px; ">자 산 명 :</caption>
  935. <input id="ipt_possnfrdd_search" ref="/root/send/fixasetlist/possnfrdd_search" class="input_search" navindex="14" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:832px; top:80px; width:95px; height:19px; text-align:center; "/>
  936. <select1 id="cmb_rfchmandlist_search" ref="/root/send/fixasetlist/rfchmandlist_search" class="combo_search" navindex="13" appearance="minimal" style="left:1003px; top:57px; width:60px; height:19px; text-align:center; ">
  937. <choices>
  938. <item>
  939. <label>전체</label>
  940. <value/>
  941. </item>
  942. <item>
  943. <label>유</label>
  944. <value>Y</value>
  945. </item>
  946. <item>
  947. <label>무</label>
  948. <value>N</value>
  949. </item>
  950. </choices>
  951. </select1>
  952. <caption id="cap_rfchmandlist_search" class="search_name" style="left:915px; top:57px; width:90px; height:17px; ">보수계약 :</caption>
  953. <input id="ipt_goodmodel_search" ref="/root/send/fixasetlist/goodmodel_search" class="input_search" navindex="9" style="left:510px; top:102px; width:170px; height:19px; "/>
  954. <caption id="cap_suplcecd_search" class="search_name" style="left:742px; top:9px; width:90px; height:17px; ">거 래 처 :</caption>
  955. <button id="btn_prodcmpycd_search" class="icon_search" navindex="-1" style="left:906px; top:33px; width:16px; height:16px; ">
  956. <caption/>
  957. <script type="javascript" ev:event="DOMActivate">
  958. <![CDATA[
  959. rszfOpenPopUpListByWndName(ipt_prodcmpycd_search,"","prodcmpycd_search,prodcmpynm_search","SPRSD00160","","");
  960. model.refresh();
  961. ]]>
  962. </script>
  963. </button>
  964. <button id="btn_suplcecd_search" class="icon_search" navindex="-1" style="left:906px; top:9px; width:16px; height:16px; ">
  965. <caption/>
  966. <script type="javascript" ev:event="DOMActivate">
  967. <![CDATA[
  968. rszfOpenPopUpListByWndName(ipt_suplplcecd_search,"","suplplcecd_search,suplplcenm_search","SPRSD00220","instcd","cmb_instcd");
  969. ipt_suplplcecd_search.refresh();
  970. ipt_suplplcenm_search.refresh();
  971. ]]>
  972. </script>
  973. </button>
  974. <select1 id="cmb_acqtflag_search" ref="/root/send/fixasetlist/acqtflag_search" class="combo_search" navindex="12" appearance="minimal" style="left:832px; top:57px; width:80px; height:19px; text-align:center; ">
  975. <choices>
  976. <item>
  977. <label>전체</label>
  978. <value/>
  979. </item>
  980. <item>
  981. <label>기증</label>
  982. <value>1</value>
  983. </item>
  984. <item>
  985. <label>매입</label>
  986. <value>2</value>
  987. </item>
  988. <item>
  989. <label>임차</label>
  990. <value>3</value>
  991. </item>
  992. <item>
  993. <label>지불필</label>
  994. <value>4</value>
  995. </item>
  996. <item>
  997. <label>공동운영</label>
  998. <value>5</value>
  999. </item>
  1000. <item>
  1001. <label>사후관리</label>
  1002. <value>6</value>
  1003. </item>
  1004. <item>
  1005. <label>외자</label>
  1006. <value>7</value>
  1007. </item>
  1008. </choices>
  1009. </select1>
  1010. <caption id="cap_prodcmpycd" class="search_name" style="left:742px; top:33px; width:90px; height:17px; ">제조회사 :</caption>
  1011. <input id="ipt_suplplcecd_search" ref="/root/send/fixasetlist/suplplcecd_search" class="input_search" navindex="10" style="left:832px; top:9px; width:70px; height:19px; ">
  1012. <script type="javascript" ev:event="xforms-value-changed">
  1013. <![CDATA[
  1014. if(ipt_suplplcecd_search.value != '') {
  1015. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1016. cmb_instcd.value + "," + "entrregno," + ipt_suplplcecd_search.value, "", "suplplcecd_search,suplplcenm_search",
  1017. ipt_suplplcecd_search, "SPRSD00220", "instcd","cmb_instcd");
  1018. } else {
  1019. ipt_suplplcenm_search.value = '';
  1020. }
  1021. ipt_suplplcecd_search.refresh();
  1022. ipt_suplplcenm_search.refresh();
  1023. ]]>
  1024. </script>
  1025. </input>
  1026. <input id="ipt_suplplcenm_search" ref="/root/send/fixasetlist/suplplcenm_search" class="output_fix" navindex="-1" editable="false" style="left:926px; top:9px; width:136px; height:19px; "/>
  1027. <input id="ipt_prodcmpycd_search" ref="/root/send/fixasetlist/prodcmpycd_search" class="input_search" navindex="11" style="left:832px; top:33px; width:70px; height:19px; ">
  1028. <script type="javascript" ev:event="xforms-value-changed">
  1029. <![CDATA[
  1030. if(ipt_prodcmpycd_search.value != ""){
  1031. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  1032. "prodcmpycd," + ipt_prodcmpycd_search.value + ","
  1033. ,"","prodcmpycd_search,prodcmpynm_search" , ipt_prodcmpycd_search,"SPRSD00160","","");
  1034. }else{
  1035. ipt_prodcmpynm_search.value = "";
  1036. }
  1037. model.refresh();
  1038. ]]>
  1039. </script>
  1040. </input>
  1041. <input id="ipt_prodcmpynm_search" ref="/root/send/fixasetlist/prodcmpynm_search" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:926px; top:33px; width:136px; height:19px; "/>
  1042. <caption id="cap_acqtflag_search" class="search_name" style="left:742px; top:57px; width:90px; height:17px; ">도입구분 :</caption>
  1043. <caption id="cap_goodmodel_search" class="search_name" style="left:415px; top:102px; width:88px; height:17px; ">모 델 명 :</caption>
  1044. <select id="chk_dsplflag_search" ref="/root/send/fixasetlist/dsplflag_search" disabled="false" navindex="2" overflow="visible" appearance="full" cellspacing="11" cols="4" sep="," vcellspacing="2" style="left:103px; top:33px; width:227px; height:41px; text-align:center; border-style:hidden; ">
  1045. <choices>
  1046. <itemset>
  1047. <label/>
  1048. <value/>
  1049. </itemset>
  1050. </choices>
  1051. <script type="javascript" ev:event="xforms-value-changed">
  1052. <![CDATA[
  1053. var bfdsplflag = model.getValue("/root/temp/bfdsplflag");
  1054. var dsplflag = model.getValue(chk_dsplflag_search.attribute("ref"));
  1055. if (isSearchString(bfdsplflag, 'A')){
  1056. model.setValue(chk_dsplflag_search.attribute("ref"), dsplflag.replace("A", ""));
  1057. }else{
  1058. dsplflagArr = dsplflag.split(",");
  1059. for (var i=0; i< dsplflagArr.length; i++){
  1060. if (dsplflagArr[i] == "A"){
  1061. model.setValue(chk_dsplflag_search.attribute("ref"), "A");
  1062. break;
  1063. }
  1064. }
  1065. }
  1066. model.makeValue("/root/temp/bfdsplflag", model.getValue(chk_dsplflag_search.attribute("ref")));
  1067. chk_dsplflag_search.refresh();
  1068. ]]>
  1069. </script>
  1070. </select>
  1071. <bool id="chk_addsearch" checkvalue="Y,N" ref="/root/temp/addsearch" style="left:1108px; top:84px; width:20px; height:20px; "/>
  1072. <caption id="caption11" style="left:1128px; top:84px; width:55px; height:20px; ">추가조회</caption>
  1073. </group>
  1074. </xhtml:body>
  1075. </xhtml:html>