XSMRFC00300_비품자산코드관리.xrw 108 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>비품자산코드관리</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <list>
  12. <fixaset>
  13. <fixasetlist/>
  14. </fixaset>
  15. <fixasetdet>
  16. <fixasettmplist>
  17. </fixasettmplist>
  18. </fixasetdet>
  19. <rfchmandlist/>
  20. <compslist/>
  21. </list>
  22. <fixasetdet>
  23. <fixasettmplist>
  24. <instcd/>
  25. <fixasetcd/>
  26. <installplcecd/>
  27. <installplcenm/>
  28. <goodflag/>
  29. <goodqty/>
  30. <goodflaghngnm/>
  31. <goodflagengnm/>
  32. <goodspec/>
  33. <goodmodel/>
  34. <asetflag_maineqmtflag/>
  35. <lrgcd/>
  36. <lrgnm/>
  37. <mdlcd/>
  38. <mdlnm/>
  39. <smlcd/>
  40. <smlnm/>
  41. <catalog/>
  42. <fixasetunit/>
  43. <usge/>
  44. <acntcd/>
  45. <acntnm/>
  46. <cntrdeptcd/>
  47. <cntrdeptnm/>
  48. <moveflag/>
  49. <suplplcecd/>
  50. <suplplcenm/>
  51. <suppcustcd/>
  52. <suppcustnm/>
  53. <prodplce/>
  54. <prodcmpy/>
  55. <prodcmpynm/>
  56. <chkdd/>
  57. <delivetermmm/>
  58. <condd/>
  59. <flwgrnttermfr/>
  60. <flwgrnttermto/>
  61. <windd/>
  62. <winno/>
  63. <winseqno/>
  64. <mngtno/>
  65. <profno/>
  66. <incmreptno/>
  67. <incmlicnsdd/>
  68. <custmsenddd/>
  69. <expttaxpostno/>
  70. <custms/>
  71. <innatitax/>
  72. <custmscrnscthouscd/>
  73. <lonno/>
  74. <possnflagcd/>
  75. <possndd/>
  76. <forgncurncyamt/>
  77. <curncyunit/>
  78. <fixasetqty/>
  79. <possnamt/>
  80. <etcaddamt/>
  81. <cntsyearno/>
  82. <repayflag/>
  83. <repaymthd/>
  84. <repayrate/>
  85. <dsplflag/>
  86. <repayenddd/>
  87. <maineqmtcd/>
  88. <lseyn/>
  89. <cmt/>
  90. <mngtdeptcd/>
  91. <maineqmt/>
  92. <barcdprntyn/>
  93. <usedd/>
  94. <suplcntctel/>
  95. <acqtflag/>
  96. <earnvaluyn/>
  97. <agency/>
  98. <agencycntctel/>
  99. <smplce/>
  100. <repaybal/>
  101. <prvnchkyn/>
  102. <fundorigin/>
  103. <ntsubsidyyn/>
  104. <fixtrflag/>
  105. <amtacnt/>
  106. <amtacntnm/>
  107. <mngtdeptnm/>
  108. <maineqmtnm/>
  109. <purcdmnddd/>
  110. <purcdmndno/>
  111. <purcdmndseq/>
  112. <fixasetcdcnt/>
  113. </fixasettmplist>
  114. </fixasetdet>
  115. <fixasetcopy>
  116. <fixasetlist/>
  117. </fixasetcopy>
  118. </main>
  119. <send>
  120. <fixasetlist>
  121. <instcd_search/>
  122. <goodflag_search/>
  123. <lrgcd_search/>
  124. <goodflaghngnm_search/>
  125. <cntrdeptcd_search/>
  126. <installplcecd_search/>
  127. <possnfrdd_search/>
  128. <fixasetcd_search/>
  129. <goodmodel_search/>
  130. <lrgnm_search/>
  131. <cntrdeptnm_search/>
  132. <installplcenm_search/>
  133. <mngtdeptcd_search/>
  134. <mngtdeptnm_search/>
  135. <mdlcd_search/>
  136. <mdlnm_search/>
  137. <smlcd_search/>
  138. <smlnm_search/>
  139. <prodcmpycd_search/>
  140. <prodcmpynm_search/>
  141. <possntodd_search/>
  142. <rfchmandlist_search/>
  143. <mainmngtdeptcd_search/>
  144. <mainmngtdeptnm_search/>
  145. <oldcd_search/>
  146. </fixasetlist>
  147. <tmpnode>
  148. <tmpfixasetnode/>
  149. <tmpgridrow/>
  150. </tmpnode>
  151. <fixasetcd/>
  152. <instcd/>
  153. <save>
  154. <compslist/>
  155. <rfchmandlist/>
  156. <fixasettmplist/>
  157. </save>
  158. <fixasetcopy>
  159. <instcd/>
  160. <goodflag/>
  161. <lrgcd/>
  162. <mdlcd/>
  163. <smlcd/>
  164. </fixasetcopy>
  165. </send>
  166. <init>
  167. <goodflag>
  168. <label>비품</label>
  169. <value>G</value>
  170. <label>의료장비</label>
  171. <value>E</value>
  172. </goodflag>
  173. <asetflagmaineqmtflag>
  174. <label>주요자산</label>
  175. <value>M</value>
  176. <label>기타자산</label>
  177. <value>E</value>
  178. </asetflagmaineqmtflag>
  179. <possnflagcd>
  180. <label>내자</label>
  181. <value>H</value>
  182. <label>외자</label>
  183. <value>F</value>
  184. </possnflagcd>
  185. <lseyn>
  186. <label>예</label>
  187. <value>Y</value>
  188. <label>아니요</label>
  189. <value>N</value>
  190. </lseyn>
  191. <acqtflag>
  192. <label>기증</label>
  193. <value>1</value>
  194. <label>매입</label>
  195. <value>2</value>
  196. <label>임차</label>
  197. <value>3</value>
  198. <label>지불필</label>
  199. <value>4</value>
  200. <label>공동관리</label>
  201. <value>5</value>
  202. <label>사후관리</label>
  203. <value>6</value>
  204. <label>자체제작</label>
  205. <value>7</value>
  206. </acqtflag>
  207. <suik>
  208. <label>예</label>
  209. <value>Y</value>
  210. <label>아니요</label>
  211. <value>N</value>
  212. </suik>
  213. <prvnchkyn>
  214. <label>예</label>
  215. <value>Y</value>
  216. <label>아니요</label>
  217. <value>N</value>
  218. </prvnchkyn>
  219. <moveflag>
  220. <label>Portable</label>
  221. <value>P</value>
  222. <label>Fixed</label>
  223. <value>F</value>
  224. </moveflag>
  225. <repaymthd>
  226. <label>정액</label>
  227. <value>1</value>
  228. <label>정률</label>
  229. <value>2</value>
  230. </repaymthd>
  231. <ntsubsidyyn>
  232. <label>예</label>
  233. <value>Y</value>
  234. <label>아니요</label>
  235. <value>N</value>
  236. </ntsubsidyyn>
  237. <fixasetcd/>
  238. <copycnt/>
  239. <instcd_conv/>
  240. </init>
  241. <temp>
  242. </temp>
  243. <copynode/>
  244. </root>
  245. </instance>
  246. <script type="javascript" ev:event="xforms-ready">
  247. <![CDATA[
  248. //화면 Control을 초기화한다
  249. fInitialize();
  250. // btn_search.dispatch("DOMActivate");
  251. ]]>
  252. </script>
  253. <submission id="TRRFC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/main/list/fixaset"/>
  254. <submission id="TRRFC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/fixasetdet"/>
  255. <submission id="TXRFC00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  256. <submission id="TRRFC00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/compslist"/>
  257. <submission id="TRRFC00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/fixasetdet/fixasettmplist" resultref="/root/main/list/rfchmandlist"/>
  258. <submission id="TRRFC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetcopy" resultref="/root/main/fixasetcopy"/>
  259. </model>
  260. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  261. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  262. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  263. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  264. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  265. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  266. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  267. <script type="javascript">
  268. <![CDATA[
  269. function fInitialize()
  270. {
  271. ipt_vFlag.value = ""; //main grid에서 체크박스를 선택하여 체크 상황이 변할때는 선택한 row가 오른쪽 상세내역 조회를 안할수 있도록 할때 사용하는변구
  272. misfGridInit(grd_fixasetlist);
  273. misfGridInit(grd_rfchmandlist);
  274. misfGridInit(grd_comps);
  275. misfGridInit(grd_fixasettmplist);
  276. //rszfGridComboLrgcdList("G", cmb_lrgcd_search, "lrgcd_search","Y");
  277. misfComboComCdListMulti("Z0007,R0035,R0047,R0042,R0044,R0292,R0316,Z0007",
  278. "cmb_instcd_search,cmb_prodplce,cmb_curncyunit,cmb_repayflag,cmb_dsplflag,cmb_acqtflag,cmb_fundorigin,cmb_instcd_conv");
  279. misfComboCopyItemSet(cmb_prodplce, "", grd_fixasetlist, "prodplce"); //제조국
  280. model.setValue("/root/send/fixasetlist/instcd_search", getUserInfo("dutplceinstcd")); // 기관 설정
  281. if(getUserInfo("dutplceinstcd") =="103"){ //성의교정에서는 여러기관을 관리하고 있어서 disabled을 풀었음
  282. cmb_instcd_search.disabled = false;
  283. //btn_serialnoupdate.visible = true;
  284. }
  285. if ((getUserInfo("dutplceinstcd") == "032" ) || (getUserInfo("dutplceinstcd") == "114")) {
  286. model.setValue(cmb_instcd_conv.attribute("ref"), "103");
  287. }else{
  288. model.setValue(cmb_instcd_conv.attribute("ref"), model.getValue(cmb_instcd_search.attribute("ref")));
  289. }
  290. //물품구분 설정 (비품)
  291. model.setValue("/root/send/fixasetlist/goodflag_search", "GE");
  292. // 대분류 코드 콤보 설정.
  293. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), "", "", "cmb_lrgcd_search", "", "L");
  294. addComboItem( "cmb_lrgcd_search", "전체", "", "above");
  295. cmb_lrgcd_search.dispatch("xforms-value-changed");
  296. var sBaseDate = getCurrentDate();
  297. // model.setValue("/root/send/fixasetlist/goodmodel_search", "L1706");
  298. // model.setValue("/root/send/fixasetlist/possndd_search","20060425");
  299. // model.setValue("/root/send/fixasetlist/possndd_search",sBaseDate);
  300. // model.setValue("/root/send/tmpnode/tmpgridrow", "1");
  301. // model.setValue("/root/send/tmpnode/tmpgridrow", grd_fixasetlist.row);
  302. fAllControlDisabled("true");
  303. model.resetInstanceNode("/root/main/fixasetdet/fixasettmplist");
  304. model.resetInstanceNode("/root/main/list/fixasetdet/fixasettmplist");
  305. misfMsterDetailSet(grd_fixasetlist, null, "TRRFC00202", "Y");
  306. // misfMsterDetailSet(grd_fixasettmplist, grd_fixasetlist, "TRRFC00203", "Y");
  307. misfMsterDetailSet(grd_fixasettmplist, null, "TRRFC00203", "Y");
  308. misfMsterDetailSet(grd_comps, null, "TRRFC00205", "Y");
  309. misfMsterDetailSet(grd_rfchmandlist, null, "TRRFC00207", "Y");
  310. model.refresh();
  311. }
  312. function fMakeNode()
  313. {
  314. model.makeNode("/root/main/fixasetdet/fixasettmplist/acntnm");
  315. model.makeNode("/root/main/fixasetdet/fixasettmplist/amtacntnm");
  316. model.makeNode("/root/main/fixasetdet/fixasettmplist/installplcenm");
  317. model.makeNode("/root/main/fixasetdet/fixasettmplist/cntrdeptnm");
  318. model.makeNode("/root/main/fixasetdet/fixasettmplist/mngtdeptnm");
  319. model.makeNode("/root/main/fixasetdet/fixasettmplist/suplplcenm");
  320. model.makeNode("/root/main/fixasetdet/fixasettmplist/maineqmtnm");
  321. model.makeNode("/root/main/fixasetdet/fixasettmplist/prodcmpynm");
  322. }
  323. function fAllControlDisabled(check)
  324. {
  325. ipt_fixasetcd.disabled = check;
  326. ipt_goodflaghngnm.disabled = check;
  327. ipt_goodspec.disabled = check;
  328. ipt_goodmodel.disabled = check;
  329. rdo_asetflagmaineqmtflag.disabled = check;
  330. ipt_usge.disabled = check;
  331. cmb_lrgcd.disabled = check;
  332. ipt_acntcd.disabled = check;
  333. ipt_amtacnt.disabled = check;
  334. cmb_mdlcd.disabled = check;
  335. cmb_smlcd.disabled = check;
  336. ipt_installplcecd.disabled = check;
  337. ipt_cntrdeptcd.disabled = check;
  338. ipt_cntrdeptcd.disabled = check;
  339. rdo_moveflag.disabled = check;
  340. ipt_mngtdeptcd.disabled = check;
  341. ipt_suplplcecd.disabled = check;
  342. ipt_suplcntctel.disabled = check;
  343. cmb_prodplce.disabled = check;
  344. ipt_condd.disabled = check;
  345. ipt_possndd.disabled = check;
  346. ipt_delivetermmm.disabled = check;
  347. cmb_acqtflag.disabled = check;
  348. rdo_possnflagcd.disabled = check;
  349. ipt_forgncurncyamt.disabled = check;
  350. cmb_curncyunit.disabled = check;
  351. ipt_possndd.disabled = check;
  352. ipt_winno.disabled = check;
  353. ipt_winseqno.disabled = check;
  354. ipt_mngtno.disabled = check;
  355. ipt_flwgrnttermfr.disabled = check;
  356. ipt_flwgrnttermto.disabled = check;
  357. cmb_dsplflag.disabled = check;
  358. cmb_fixasetunit.disabled = check;
  359. cmb_cntsyearno.disabled = check;
  360. ipt_repayenddd.disabled = check
  361. rdo_lseyn.disabled = check;
  362. ipt_maineqmtcd.disabled = check;
  363. rdo_earnvaluyn.disabled = check;
  364. ipt_agency.disabled = check;
  365. ipt_agencycntctel.disabled = check;
  366. ipt_chkdd.disabled = check;
  367. ipt_smplce.disabled = check;
  368. rdo_prvnchkyn.disabled = check;
  369. ipt_possnamt.disabled = check;
  370. ipt_etcaddamt.disabled = check;
  371. ipt_etcaddamt.disabled = check;
  372. cmb_repayflag.disabled = check;
  373. rdo_repaymthd.disabled = check;
  374. ipt_repayrate.disabled = check;
  375. ipt_cmt.disabled = check;
  376. cmb_fundorigin.disabled = check;
  377. //ipt_lrgnm.disabled = check;
  378. //ipt_mdlnm.disabled = check;
  379. ipt_installplcenm.disabled = check;
  380. ipt_acntnm.disabled = check;
  381. ipt_amtacntnm.disabled = check;
  382. //ipt_smlnm.disabled = check;
  383. ipt_cntrdeptnm.disabled = check;
  384. ipt_mngtdeptnm.disabled = check;
  385. ipt_suplplcenm.disabled = check;
  386. ipt_prodcmpynm.disabled = check;
  387. ipt_maineqmtnm.disabled = check;
  388. //btn_lrgcd.disabled = check;
  389. btn_acntcd.disabled = check;
  390. btn_amtacnt.disabled = check;
  391. //btn_mdlcd.disabled = check;
  392. //btn_smlcd.disabled = check;
  393. btn_installplcecd.disabled = check;
  394. btn_cntrdeptcd.disabled = check;
  395. btn_mngtdeptcd.disabled = check;
  396. btn_suplplcecd.disabled = check;
  397. btn_prodcmpy.disabled = check;
  398. btn_prodcmpy.disabled = check;
  399. btn_maineqmt.disabled = check;
  400. ipt_repaybal.disabled = check;
  401. btn_comps.disabled = check;
  402. btn_addrow_.disabled = check;
  403. btn_delrow_.disabled = check;
  404. btn_rfchmandlist.disabled = check;
  405. btn_image.disabled = check;
  406. btn_set.disabled = check;
  407. btn_chnghist.disabled = check;
  408. btn_goodcdcopy.disabled = check;
  409. ipt_suppcustcd.disabled = check;
  410. ipt_suppcustnm.disabled = check;
  411. btn_suppcustcd.disabled = check;
  412. ipt_goodflagengnm.disabled = check;
  413. ipt_incmpemtno.disabled = check;
  414. rdo_ntsubsidyyn.disabled = check;
  415. }
  416. //자산상세내역 control
  417. function fComponentDisabled(BOOL)
  418. {
  419. ipt_fixasetcd.disabled = BOOL;
  420. btn_goodcdcopy.disabled = BOOL;
  421. //ipt_goodflaghngnm.disabled = BOOL;
  422. cmb_lrgcd.disabled = BOOL;
  423. cmb_mdlcd.disabled = BOOL;
  424. cmb_smlcd.disabled = BOOL;
  425. // ipt_installplcecd.disabled = BOOL;
  426. // btn_installplcecd.disabled = BOOL;
  427. // ipt_installplcenm.disabled = BOOL;
  428. ipt_possndd.disabled = BOOL;
  429. cmb_fixasetunit.disabled = BOOL;
  430. ipt_possnamt.disabled = BOOL;
  431. ipt_etcaddamt.disabled = BOOL;
  432. /**** 비고부분 활성화 *******/
  433. // ipt_cmt.disabled = BOOL;
  434. ipt_suplplcecd.disabled = BOOL;
  435. btn_suplplcecd.disabled = BOOL;
  436. ipt_suplplcenm.disabled = BOOL;
  437. cmb_dsplflag.disabled = BOOL;
  438. // ipt_goodmodel.disabled = BOOL;
  439. // cmb_prodplce.disabled = BOOL;
  440. // ipt_goodspec.disabled = BOOL;
  441. ipt_prodcmpynm.disabled = BOOL;
  442. btn_prodcmpy.disabled = BOOL;
  443. ipt_acntcd.disabled = BOOL;
  444. btn_acntcd.disabled = BOOL;
  445. ipt_acntnm.disabled = BOOL;
  446. ipt_amtacnt.disabled = BOOL;
  447. btn_amtacnt.disabled = BOOL;
  448. ipt_amtacntnm.disabled = BOOL;
  449. ipt_cntrdeptcd.disabled = BOOL;
  450. btn_cntrdeptcd.disabled = BOOL;
  451. ipt_cntrdeptnm.disabled = BOOL;
  452. cmb_acqtflag.disabled = BOOL;
  453. ipt_mngtdeptcd.disabled = BOOL;
  454. btn_mngtdeptcd.disabled = BOOL;
  455. ipt_mngtdeptnm.disabled = BOOL;
  456. ipt_suppcustcd.disabled = BOOL;
  457. btn_suppcustcd.disabled = BOOL;
  458. ipt_suppcustnm.disabled = BOOL;
  459. cmb_fundorigin.disabled = BOOL;
  460. }
  461. function fComponentDisabled2(BOOL)
  462. {
  463. ipt_possndd.disabled = BOOL;
  464. cmb_fixasetunit.disabled = BOOL;
  465. ipt_possnamt.disabled = BOOL;
  466. ipt_etcaddamt.disabled = BOOL;
  467. ipt_cmt.disabled = BOOL;
  468. ipt_suplplcecd.disabled = BOOL;
  469. btn_suplplcecd.disabled = BOOL;
  470. ipt_suplplcenm.disabled = BOOL;
  471. cmb_dsplflag.disabled = BOOL;
  472. ipt_prodcmpynm.disabled = BOOL;
  473. btn_prodcmpy.disabled = BOOL;
  474. ipt_acntcd.disabled = BOOL;
  475. btn_acntcd.disabled = BOOL;
  476. ipt_acntnm.disabled = BOOL;
  477. ipt_amtacnt.disabled = BOOL;
  478. btn_amtacnt.disabled = BOOL;
  479. ipt_amtacntnm.disabled = BOOL;
  480. ipt_cntrdeptcd.disabled = BOOL;
  481. btn_cntrdeptcd.disabled = BOOL;
  482. ipt_cntrdeptnm.disabled = BOOL;
  483. cmb_acqtflag.disabled = BOOL;
  484. ipt_mngtdeptcd.disabled = BOOL;
  485. btn_mngtdeptcd.disabled = BOOL;
  486. ipt_mngtdeptnm.disabled = BOOL;
  487. ipt_suppcustcd.disabled = BOOL;
  488. btn_suppcustcd.disabled = BOOL;
  489. ipt_suppcustnm.disabled = BOOL;
  490. cmb_fundorigin.disabled = BOOL;
  491. }
  492. function fSettingGoodList(pnode, nodename)
  493. {
  494. var codynode = instance1.selectNodes(pnode + "/*");
  495. var addRow = grd_comps.rows - grd_comps.fixedRows;
  496. for (var j = 1; j <= codynode.length ; j++)
  497. {
  498. if(addRow > grd_comps.rows - grd_comps.fixedRows)
  499. {
  500. misfGridIUD(grd_comps,"A");
  501. addRow = grd_comps.rows - grd_comps.fixedRows;
  502. }
  503. model.setValue(grd_comps.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  504. model.setValue(grd_comps.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  505. model.setValue(grd_comps.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  506. model.setValue(grd_comps.nodeset + "[" + addRow + "]/purcunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  507. addRow = addRow + 1;
  508. }
  509. model.recalculate();
  510. model.refresh();
  511. }
  512. function fDefaultSetting(prow)
  513. {
  514. model.setValue(grd_fixasetlist.nodeset +"[" + prow+ "]/instcd" ,model.getValue(cmb_instcd_search.attribute("ref")));
  515. model.setValue("/root/main/fixasetdet/fixasettmplist/instcd", model.getValue(cmb_instcd_search.attribute("ref"))); // 기관 설정
  516. model.setValue("/root/main/fixasetdet/fixasettmplist/goodflag", model.getValue(opt_goodflag_search.attribute("ref"))); // 물품구분
  517. model.setValue("/root/main/fixasetdet/fixasettmplist/goodqty", "1"); // 수량
  518. model.setValue(cmb_repayflag.attribute("ref"), "2"); // 상각구분 : 미상각
  519. // model.setValue(grd_fixasetlist.nodeset +"[" + prow+ "]/goodflag" ,model.getValue(opt_goodflag_search.attribute("ref")));
  520. }
  521. function fGoodCdCopy(pCls)
  522. {
  523. if(model.getValue(opt_goodflag_search.attribute("ref")).length== 0 )
  524. {
  525. messageBox("물품구분을 " ,"C002");
  526. model.setFocus("opt_goodflag_search");
  527. return false;
  528. }
  529. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
  530. {
  531. messageBox("대분류코드를 " ,"C002");
  532. model.setFocus("cmb_lrgcd");
  533. return false;
  534. }
  535. if(model.getValue(cmb_mdlcd.attribute("ref")).length== 0 )
  536. {
  537. messageBox("중분류코드를 " ,"C002");
  538. model.setFocus("cmb_mdlcd");
  539. return false;
  540. }
  541. if (model.getValue(cmb_smlcd.attribute("ref")).length== 0 )
  542. {
  543. model.setValue(cmb_smlcd.attribute("ref"), "00");
  544. cmb_smlcd.refresh();
  545. //messageBox("소분류코드를 " ,"C002");
  546. //model.setFocus("cmb_smlcd");
  547. //return false;
  548. }
  549. model.setValue("/root/send/fixasetcopy/instcd", model.getValue(cmb_instcd_search.attribute("ref")));
  550. model.setValue("/root/send/fixasetcopy/goodflag", model.getValue(opt_goodflag_search.attribute("ref")));
  551. model.setValue("/root/send/fixasetcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  552. model.setValue("/root/send/fixasetcopy/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
  553. model.setValue("/root/send/fixasetcopy/smlcd", model.getValue(cmb_smlcd.attribute("ref")));
  554. submit("TRRFC00301");
  555. var fixasetcd = model.getValue("/root/main/fixasetcopy/fixasetlist/fixasetcd");
  556. //if(fixasetcd.length == 0) fixasetcd = model.getValue(opt_goodflag_search.attribute("ref")) + model.getValue(cmb_lrgcd.attribute("ref")) + model.getValue(cmb_mdlcd.attribute("ref")) + model.getValue(cmb_smlcd.attribute("ref")) + "0001";
  557. if (pCls == "C") {
  558. model.setValue(ipt_fixasetcd_copy.attribute("ref"), fixasetcd);
  559. } else {
  560. model.setValue(ipt_fixasetcd.attribute("ref"), fixasetcd);
  561. }
  562. model.refresh();
  563. }
  564. ]]>
  565. </script>
  566. </xhtml:head>
  567. <xhtml:body guideline="1,-1;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  568. <!--<group id="grp_btn" style="left:0px; top:755px; width:1195px; height:27px; ">
  569. <button id="button20" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  570. <caption>초기화</caption>
  571. </button>
  572. <button id="button19" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  573. <caption>저장</caption>
  574. </button>
  575. </group>-->
  576. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  577. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">비품자산코드관리</caption>
  578. </group>
  579. <group id="group4" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  580. <datagrid id="grd_fixasettmplist" nodeset="/root/main/list/fixasetdet/fixasettmplist" visibility="hidden" caption="기관코드^지신코드^caption1^caption2" colsep="^" colwidth="88, 40, 40, 40, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:30px; top:220px; width:495px; height:75px; ">
  581. <col ref="instcd"/>
  582. <col ref="fixasetcd"/>
  583. <col ref="installplcecd"/>
  584. <col ref="installplcenm"/>
  585. <col ref="goodflag"/>
  586. <col ref="goodqty"/>
  587. <col ref="goodflaghngnm"/>
  588. <col ref="goodflagengnm"/>
  589. <col ref="goodspec"/>
  590. <col ref="goodmodel"/>
  591. <col ref="asetflag_maineqmtflag"/>
  592. <col ref="lrgcd"/>
  593. <col ref="lrgnm"/>
  594. <col ref="mdlcd"/>
  595. <col ref="mdlnm"/>
  596. <col ref="smlcd"/>
  597. <col ref="smlnm"/>
  598. <col ref="catalog"/>
  599. <col ref="fixasetunit"/>
  600. <col ref="usge"/>
  601. <col ref="acntcd"/>
  602. <col ref="acntnm"/>
  603. <col ref="cntrdeptcd"/>
  604. <col ref="cntrdeptnm"/>
  605. <col ref="moveflag"/>
  606. <col ref="suplplcecd"/>
  607. <col ref="suplplcenm"/>
  608. <col ref="suppcustcd"/>
  609. <col ref="suppcustnm"/>
  610. <col ref="prodplce"/>
  611. <col ref="prodcmpy"/>
  612. <col ref="prodcmpynm"/>
  613. <col ref="chkdd"/>
  614. <col ref="delivetermmm"/>
  615. <col ref="condd"/>
  616. <col ref="flwgrnttermfr"/>
  617. <col ref="flwgrnttermto"/>
  618. <col ref="windd"/>
  619. <col ref="winno"/>
  620. <col ref="winseqno"/>
  621. <col ref="mngtno"/>
  622. <col ref="profno"/>
  623. <col ref="incmreptno"/>
  624. <col ref="incmlicnsdd"/>
  625. <col ref="custmsenddd"/>
  626. <col ref="expttaxpostno"/>
  627. <col ref="custms"/>
  628. <col ref="innatitax"/>
  629. <col ref="custmscrnscthouscd"/>
  630. <col ref="lonno"/>
  631. <col ref="possnflagcd"/>
  632. <col ref="possndd"/>
  633. <col ref="forgncurncyamt"/>
  634. <col ref="curncyunit"/>
  635. <col ref="fixasetqty"/>
  636. <col ref="possnamt"/>
  637. <col ref="etcaddamt"/>
  638. <col ref="cntsyearno"/>
  639. <col ref="repayflag"/>
  640. <col ref="repaymthd"/>
  641. <col ref="repayrate"/>
  642. <col ref="dsplflag"/>
  643. <col ref="repayenddd"/>
  644. <col ref="maineqmtcd"/>
  645. <col ref="lseyn"/>
  646. <col ref="cmt"/>
  647. <col ref="mngtdeptcd"/>
  648. <col ref="maineqmt"/>
  649. <col ref="barcdprntyn"/>
  650. <col ref="usedd"/>
  651. <col ref="suplcntctel"/>
  652. <col ref="acqtflag"/>
  653. <col ref="earnvaluyn"/>
  654. <col ref="agency"/>
  655. <col ref="agencycntctel"/>
  656. <col ref="smplce"/>
  657. <col ref="repaybal"/>
  658. <col ref="prvnchkyn"/>
  659. <col ref="fundorigin"/>
  660. <col ref="ntsubsidyyn"/>
  661. <col ref="fixtrflag"/>
  662. <col ref="amtacnt"/>
  663. <col ref="amtacntnm"/>
  664. <col ref="purcdmnddd"/>
  665. <col ref="purcdmndno"/>
  666. <col ref="purcdmndseq"/>
  667. <col ref="fixasetcdcnt"/>
  668. </datagrid>
  669. <datagrid id="grd_fixasetlist" nodeset="/root/main/list/fixaset/fixasetlist" caption="비품코드^비품명^모델명^규격^구입금액^구입일자^공급처^보조거래처^제조원^제조국^청구부서^사용부서^입고계정^이미지^구코드^SERIAL NO^사용장소코드^caption1^caption2^caption3^12^13^14^15^goodflagengnm^tempmngtdeptnm^tempmngtdeptcd^S/N 변경^요구일자^요구번호^요구순번^자산수량" colsep="^" colwidth="85, 143, 150, 100, 76, 73, 100, 92, 80, 80, 100, 100, 100, 49, 148, 138, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 79, 73, 77, 66" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:121px; width:1190px; height:200px; ">
  670. <col ref="fixasetcd"/>
  671. <col ref="goodflaghngnm"/>
  672. <col ref="goodmodel"/>
  673. <col ref="goodspec"/>
  674. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  675. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  676. <col ref="suplplcenm" style="text-align:left; "/>
  677. <col ref="suppcustnm"/>
  678. <col ref="prodcmpynm" style="text-align:left; "/>
  679. <col disabled="true" ref="prodplce" type="combo" style="text-align:left; ">
  680. <choices>
  681. <itemset>
  682. <label/>
  683. <value/>
  684. </itemset>
  685. </choices>
  686. </col>
  687. <col ref="cntrdeptnm"/>
  688. <col ref="mngtdeptnm" style="text-align:left; "/>
  689. <col ref="amtacnt" style="text-align:left; "/>
  690. <col checkvalue="Y,N" disabled="true" ref="photoyn" type="checkbox"/>
  691. <col ref="oldcd" style="text-align:center; "/>
  692. <col ref="mngtno"/>
  693. <col ref="installplcecd" visibility="hidden"/>
  694. <col ref="instcd" type="input" visibility="hidden"/>
  695. <col ref="maineqmt" type="input" visibility="hidden"/>
  696. <col ref="prodcmpy" visibility="hidden"/>
  697. <col ref="suplplcecd" visibility="hidden"/>
  698. <col ref="mngtdeptcd" visibility="hidden"/>
  699. <col ref="installplcenm" visibility="hidden" style="text-align:left; "/>
  700. <col ref="ntsubsidyyn" visibility="hidden"/>
  701. <col ref="goodflagengnm" visibility="hidden"/>
  702. <col ref="tempmngtdeptnm" visibility="hidden"/>
  703. <col ref="tempmngtdeptcd" visibility="hidden"/>
  704. <col checkvalue="Y,N" ref="serialchk" type="checkbox"/>
  705. <col ref="purcdmnddd"/>
  706. <col ref="purcdmndno"/>
  707. <col ref="purcdmndseq"/>
  708. <col ref="fixasetcdcnt"/>
  709. <script type="javascript" ev:event="onrowchanged">
  710. <![CDATA[
  711. //main grid에서 체크박스를 선택하여 체크 상황이 변할때는 선택한 row가 오른쪽 상세내역 조회를 안할수 있도록 할때 사용하는변수
  712. if (ipt_vFlag.value == "")
  713. {
  714. /* 수정중이거나 입력 중인 데이터가 있는지 확인 */
  715. misfGridRowStatusChange(grd_fixasettmplist, "/root/main/list/fixasetdet" , "/root/main/fixasetdet");
  716. var updtdata = getGridUpdateData(grd_fixasettmplist);
  717. if ( updtdata != "")
  718. {
  719. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  720. if( ret == 6)
  721. {
  722. if(grd_fixasetlist.rowStatus(grd_fixasetlist.rows - grd_fixasetlist.fixedRows) == 1){
  723. grd_fixasetlist.deleteRow(grd_fixasetlist.rows - grd_fixasetlist.fixedRows);
  724. }
  725. }
  726. else if (ret == 7) { // not OK
  727. grd_fixasetlist.row= model.getValue("/root/send/tmpnode/tmpfixasetnode");
  728. return;
  729. }
  730. }
  731. var fInstcd = grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("instcd"));
  732. var fFixasetcd = grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetcd"));
  733. model.setValue("/root/send/instcd", fInstcd);
  734. model.setValue("/root/send/fixasetcd", fFixasetcd);
  735. model.resetInstanceNode("/root/main/fixasetdet/fixasettmplist");
  736. model.resetInstanceNode("/root/main/list/fixasetdet/fixasettmplist");
  737. submit("TRRFC00203");
  738. if(fInstcd == "" && fFixasetcd == "")
  739. {
  740. misfGridIUD(grd_fixasettmplist, "A");
  741. }
  742. grd_fixasettmplist.row = 1;
  743. model.copyNode("/root/main/fixasetdet/fixasettmplist", "/root/main/list/fixasetdet/fixasettmplist");
  744. fMakeNode();
  745. // 대분류 코드 콤보 설정.
  746. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), "", "", "cmb_lrgcd", "", "L");
  747. cmb_lrgcd.dispatch("xforms-value-changed");
  748. fAllControlDisabled("false");
  749. model.getValue(cmb_instcd_conv.attribute("ref"))
  750. //자산상세내역 Control 활성화
  751. //if (model.getValue(cmb_instcd_conv.attribute("ref")) != "103" ) {
  752. if (model.getValue(cmb_instcd_conv.attribute("ref")) != "103") {
  753. fComponentDisabled(true);
  754. }
  755. if (model.getValue(cmb_instcd_conv.attribute("ref")) == "017" || model.getValue(cmb_instcd_conv.attribute("ref")) == "011") {
  756. fComponentDisabled2(false);
  757. }
  758. //ipt_fixasetcd.disabled = true;
  759. //ipt_goodflaghngnm.disabled = true;
  760. //ipt_installplcecd.disabled = true;
  761. submit("TRRFC00205");
  762. submit("TRRFC00207");
  763. rdo_repaymthd.dispatch("xforms-value-changed"); // 20100217 [최형진] 감가상각관련
  764. cmb_cntsyearno.dispatch("xforms-value-changed"); // 20100217 [최형진] 감가상각관련
  765. model.setValue("/root/send/tmpnode/tmpfixasetnode", grd_fixasetlist.row);
  766. grd_fixasetlist.dispatch("onmouseup");
  767. //보수계약정보Grid를 ReadOnly 상태로 셋팅
  768. grd_rfchmandlist.isReadOnly(grd_rfchmandlist.fixedRows , grd_rfchmandlist.colRef("rpirconfromdd")-1 , grd_rfchmandlist.rows-grd_rfchmandlist.fixedRows , grd_rfchmandlist.colRef("agencycntctel") ) = true;
  769. model.refresh();
  770. }
  771. else
  772. {
  773. }
  774. ]]>
  775. </script>
  776. <script type="javascript" ev:event="onaftersort">
  777. <![CDATA[
  778. grd_fixasetlist.gridToInstance();
  779. ]]>
  780. </script>
  781. <script type="javascript" ev:event="xforms-value-changed">
  782. <![CDATA[
  783. //main grid에서 체크박스를 선택하여 체크 상황이 변할때는 선택한 row가 오른쪽 상세내역 조회를 안할수 있도록 할때 사용하는변구
  784. ipt_vFlag.value = "Y";
  785. ]]>
  786. </script>
  787. </datagrid>
  788. <caption id="cap_dsplflag" class="cell_1" visibility="visible" style="left:567px; top:360px; width:72px; height:19px; vertical-align:middle; ">처분구분</caption>
  789. <select1 id="cmb_dsplflag" ref="/root/main/fixasetdet/fixasettmplist/dsplflag" disabled="true" visibility="visible" appearance="minimal" style="left:640px; top:360px; width:107px; height:19px; ">
  790. <choices>
  791. <itemset>
  792. <label/>
  793. <value/>
  794. </itemset>
  795. </choices>
  796. </select1>
  797. <caption id="cap_winno" class="cell_1" visibility="visible" style="left:567px; top:380px; width:72px; height:19px; vertical-align:middle; ">구입일자</caption>
  798. <input id="ipt_chkdd" ref="/root/main/fixasetdet/fixasettmplist/chkdd" class="input_default" visibility="visible" inputtype="date" style="left:640px; top:440px; width:107px; height:19px; "/>
  799. <caption id="caption9" class="cell_1" visibility="visible" style="left:567px; top:440px; width:72px; height:19px; vertical-align:middle; ">검수일</caption>
  800. <caption id="caption8" class="cell_1" visibility="visible" style="left:567px; top:480px; width:72px; height:19px; vertical-align:middle; ">연락처</caption>
  801. <select1 id="cmb_fundorigin" ref="/root/main/fixasetdet/fixasettmplist/fundorigin" disabled="true" visibility="visible" appearance="minimal" style="left:826px; top:340px; width:123px; height:19px; text-align:center; ">
  802. <choices>
  803. <itemset>
  804. <label/>
  805. <value/>
  806. </itemset>
  807. </choices>
  808. </select1>
  809. <caption id="cap_acqtflag" class="cell_1" visibility="visible" style="left:567px; top:340px; width:72px; height:19px; vertical-align:middle; ">도입구분</caption>
  810. <select1 id="cmb_acqtflag" ref="/root/main/fixasetdet/fixasettmplist/acqtflag" visibility="visible" appearance="minimal" style="left:640px; top:340px; width:107px; height:19px; text-align:center; ">
  811. <choices>
  812. <itemset>
  813. <label/>
  814. <value/>
  815. </itemset>
  816. </choices>
  817. </select1>
  818. <input id="ipt_possndd" ref="/root/main/fixasetdet/fixasettmplist/possndd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:640px; top:380px; width:107px; height:19px; "/>
  819. <input id="ipt_condd" ref="/root/main/fixasetdet/fixasettmplist/condd" class="input_default" visibility="visible" inputtype="date" style="left:640px; top:420px; width:107px; height:19px; "/>
  820. <caption id="cap_fundorigin" class="cell_1" visibility="visible" style="left:752px; top:340px; width:72px; height:19px; vertical-align:middle; ">자금출처</caption>
  821. <caption id="cap_delivetermmm" class="cell_1" visibility="visible" style="left:567px; top:460px; width:72px; height:19px; vertical-align:middle; ">계약만료일</caption>
  822. <input id="ipt_delivetermmm" ref="/root/main/fixasetdet/fixasettmplist/delivetermmm" class="input_default" visibility="visible" appearance="input" style="left:640px; top:460px; width:107px; height:19px; "/>
  823. <caption id="cap_condd" class="cell_1" visibility="visible" style="left:567px; top:420px; width:72px; height:19px; vertical-align:middle; ">계약일</caption>
  824. <caption id="cap_fixasetunit" class="cell_1" visibility="visible" style="left:567px; top:400px; width:72px; height:19px; vertical-align:middle; ">단위</caption>
  825. <caption id="cap_possnamt" class="cell_1" visibility="visible" style="left:752px; top:360px; width:72px; height:19px; vertical-align:middle; ">구입금액</caption>
  826. <input id="ipt_possnamt" ref="/root/main/fixasetdet/fixasettmplist/possnamt" class="input_default" visibility="visible" format="#,###" appearance="input" style="left:826px; top:360px; width:123px; height:19px; text-align:right; "/>
  827. <select1 id="cmb_fixasetunit" ref="/root/main/fixasetdet/fixasettmplist/fixasetunit" visibility="visible" appearance="minimal" style="left:640px; top:400px; width:107px; height:19px; ">
  828. <choices>
  829. <itemset>
  830. <label/>
  831. <value/>
  832. </itemset>
  833. </choices>
  834. </select1>
  835. <input id="ipt_suplcntctel" ref="/root/main/fixasetdet/fixasettmplist/suplcntctel" class="input_default" visibility="visible" appearance="input" style="left:640px; top:480px; width:107px; height:19px; "/>
  836. <group id="group5" style="left:0px; top:0px; width:1195px; height:95px; vertical-align:top; ">
  837. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
  838. <input id="ipt_goodflaghngnm_search" ref="/root/send/fixasetlist/goodflaghngnm_search" class="input_default" style="left:437px; top:6px; width:158px; height:19px; "/>
  839. <caption id="cap_lrgcd_search" class="search_name" style="left:5px; top:28px; width:117px; height:17px; ">대 분 류 :</caption>
  840. <caption id="cap_mngtdeptcd_search" class="search_name" style="left:319px; top:28px; width:117px; height:17px; ">사 용 부 서 :</caption>
  841. <input id="ipt_mngtdeptcd_search" ref="/root/send/fixasetlist/mngtdeptcd_search" class="input_default" style="left:437px; top:28px; width:78px; height:19px; ">
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. if(ipt_mngtdeptcd_search.value.length == 0)
  845. ipt_mngtdeptnm_search.value = "";
  846. else
  847. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  848. "deptcd," + ipt_mngtdeptcd_search.value, "", "mngtdeptcd_search,mngtdeptnm_search",
  849. ipt_mngtdeptcd_search, "SPRPZ00200", "","");
  850. model.refresh();
  851. ]]>
  852. </script>
  853. </input>
  854. <button id="btn_mngtdeptcd_search" class="icon_search" style="left:519px; top:28px; width:16px; height:16px; ">
  855. <caption/>
  856. <script type="javascript" ev:event="DOMActivate">
  857. <![CDATA[
  858. misfOpenPopUpList("02", ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
  859. model.refresh();
  860. ]]>
  861. </script>
  862. </button>
  863. <input id="ipt_mngtdeptnm_search" ref="/root/send/fixasetlist/mngtdeptnm_search" class="input_fix" appearance="input" style="left:539px; top:28px; width:156px; height:19px; ">
  864. <script type="javascript" ev:event="xforms-value-changed">
  865. <![CDATA[
  866. if(ipt_mngtdeptnm_search.value.length == 0)
  867. ipt_mngtdeptcd_search.value = "";
  868. else
  869. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  870. "deptnm," + ipt_mngtdeptnm_search.value, "", "mngtdeptcd_search,mngtdeptnm_search",
  871. ipt_mngtdeptcd_search, "SPRPZ00200", "","");
  872. model.refresh();
  873. ]]>
  874. </script>
  875. </input>
  876. <input id="ipt_installplcecd_search" ref="/root/send/fixasetlist/installplcecd_search" class="input_default" visibility="hidden" style="left:1010px; top:35px; width:28px; height:19px; ">
  877. <script type="javascript" ev:event="xforms-value-changed">
  878. <![CDATA[
  879. if(ipt_installplcecd_search.value.length == 0)
  880. ipt_installplcenm_search.value = "";
  881. else
  882. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  883. "deptcd," + ipt_installplcecd_search.value, "", "installplcecd_search,installplcenm_search",
  884. ipt_installplcecd_search, "PPRAC00700", "","");
  885. model.refresh();
  886. ]]>
  887. </script>
  888. </input>
  889. <button id="btn_installplcecd_search" class="icon_search" visibility="hidden" style="left:1040px; top:35px; width:16px; height:16px; ">
  890. <caption/>
  891. <script type="javascript" ev:event="DOMActivate">
  892. <![CDATA[
  893. misfOpenPopUpList("19", ipt_installplcecd_search,"", "installplcecd_search,installplcenm_search") ;
  894. model.refresh();
  895. ]]>
  896. </script>
  897. </button>
  898. <input id="ipt_installplcenm_search" ref="/root/send/fixasetlist/installplcenm_search" class="input_fix" visibility="hidden" appearance="input" style="left:1060px; top:35px; width:48px; height:19px; ">
  899. <script type="javascript" ev:event="xforms-value-changed">
  900. <![CDATA[
  901. if(ipt_installplcenm_search.value.length == 0)
  902. ipt_installplcecd_search.value = "";
  903. else
  904. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  905. "deptnm," + ipt_installplcenm_search.value, "", "installplcecd_search,installplcenm_search",
  906. ipt_installplcenm_search, "PPRAC00700", "","");
  907. model.refresh();
  908. ]]>
  909. </script>
  910. </input>
  911. <caption id="cap_possndd_search" class="search_name" style="left:319px; top:49px; width:117px; height:17px; ">구 입 일 자 :</caption>
  912. <input id="ipt_possnfrdd_search" ref="/root/send/fixasetlist/possnfrdd_search" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:437px; top:49px; width:78px; height:19px; "/>
  913. <input id="ipt_fixasetcd_search" ref="/root/send/fixasetlist/fixasetcd_search" class="input_default" visibility="hidden" style="left:1010px; top:20px; width:48px; height:19px; "/>
  914. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:40px; width:56px; height:22px; ">
  915. <caption>조회</caption>
  916. <script type="javascript" ev:event="DOMActivate">
  917. <![CDATA[
  918. /* 수정중이거나 입력 중인 데이터가 있는지 확인 */
  919. misfGridRowStatusChange(grd_fixasettmplist, "/root/main/list/fixasetdet" , "/root/main/fixasetdet");
  920. var updtdata = getGridUpdateData(grd_fixasettmplist);
  921. if ( updtdata != "")
  922. {
  923. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  924. if (ret == 7) { // not OK
  925. return;
  926. }
  927. }
  928. rszfComboUnitList (cmb_fixasetunit,model.getValue(cmb_instcd_conv.attribute("ref")),model.getValue(opt_goodflag_search.attribute("ref")));
  929. // misfMsterDetailRetrieve();
  930. submit("TRRFC00202");
  931. if(grd_fixasetlist.rows - grd_fixasetlist.fixedRows > 0 )
  932. {
  933. grd_fixasetlist.row = 1;
  934. grd_fixasetlist.dispatch("onrowchanged");
  935. }
  936. ]]>
  937. </script>
  938. </button>
  939. <caption id="cap_instcd_search" class="search_name" style="left:3px; top:6px; width:117px; height:17px; ">기관코드 :</caption>
  940. <select1 id="cmb_instcd_search" ref="/root/send/fixasetlist/instcd_search" class="combo_s_essential" disabled="true" appearance="minimal" style="left:95px; top:6px; width:190px; height:19px; ">
  941. <choices>
  942. <itemset>
  943. <label/>
  944. <value/>
  945. </itemset>
  946. </choices>
  947. <script type="javascript" ev:event="xforms-value-changed">
  948. <![CDATA[
  949. var vInstcd = model.getValue(cmb_instcd_search.attribute("ref")); // 기관 설정
  950. if ((vInstcd == "032") || (vInstcd == "114") ) {
  951. model.setValue(cmb_instcd_conv.attribute("ref"), "103");
  952. if (getUserInfo("dutplceinstcd") == "103") { // 기관 설정
  953. btn_save.disabled = false;
  954. }else{
  955. btn_save.disabled = true;
  956. }
  957. }else{
  958. model.setValue(cmb_instcd_conv.attribute("ref"), vInstcd);
  959. if (getUserInfo("dutplceinstcd") == vInstcd) { // 기관 설정
  960. btn_save.disabled = false;
  961. }else{
  962. btn_save.disabled = true;
  963. }
  964. }
  965. cmb_instcd_conv.refresh();
  966. ]]>
  967. </script>
  968. </select1>
  969. <input id="ipt_goodmodel_search" ref="/root/send/fixasetlist/goodmodel_search" class="input_default" style="left:600px; top:6px; width:140px; height:19px; "/>
  970. <line id="line12" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:90px; border-color:#ffd799; "/>
  971. <caption id="cap_mdlcd_search" class="search_name" style="left:5px; top:50px; width:117px; height:17px; ">중 분 류 :</caption>
  972. <caption id="cap_smlcd_search" class="search_name" style="left:5px; top:73px; width:117px; height:17px; ">소 분 류 :</caption>
  973. <button id="btn_prodcmpycd_search" class="icon_search" style="left:519px; top:71px; width:16px; height:16px; ">
  974. <caption/>
  975. <script type="javascript" ev:event="DOMActivate">
  976. <![CDATA[
  977. rszfOpenPopUpListByWndName(ipt_prodcmpycd_search,"","prodcmpycd_search,prodcmpynm_search","SPRSD00160","","");
  978. model.refresh();
  979. ]]>
  980. </script>
  981. </button>
  982. <caption id="cap_prodcmpycd" class="search_name" style="left:319px; top:71px; width:117px; height:17px; ">제 조 회 사 :</caption>
  983. <input id="ipt_prodcmpynm_search" ref="/root/send/fixasetlist/prodcmpynm_search" class="input_fix" appearance="input" style="left:539px; top:71px; width:156px; height:19px; ">
  984. <script type="javascript" ev:event="xforms-value-changed">
  985. <![CDATA[
  986. if(ipt_prodcmpynm_search.value != ""){
  987. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  988. "prodcmpynm,," + ipt_prodcmpynm_search.value
  989. ,"","prodcmpycd_search,prodcmpynm_search" , ipt_prodcmpycd_search,"SPRSD00160","","");
  990. }else{
  991. ipt_prodcmpycd_search.value = "";
  992. }
  993. model.refresh();
  994. ]]>
  995. </script>
  996. </input>
  997. <input id="ipt_prodcmpycd_search" ref="/root/send/fixasetlist/prodcmpycd_search" class="input_default" style="left:437px; top:71px; width:78px; height:19px; ">
  998. <script type="javascript" ev:event="xforms-value-changed">
  999. <![CDATA[
  1000. if(ipt_prodcmpycd_search.value != ""){
  1001. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  1002. "prodcmpycd," + ipt_prodcmpycd_search.value + ","
  1003. ,"","prodcmpycd_search,prodcmpynm_search" , ipt_prodcmpycd_search,"SPRSD00160","","");
  1004. }else{
  1005. ipt_prodcmpynm_search.value = "";
  1006. }
  1007. model.refresh();
  1008. ]]>
  1009. </script>
  1010. </input>
  1011. <output id="opt_goodflag_search" ref="/root/send/fixasetlist/goodflag_search" visibility="hidden" style="left:1010px; top:0px; width:100px; height:19px; "/>
  1012. <input id="ipt_possntodd_search" ref="/root/send/fixasetlist/possntodd_search" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:539px; top:49px; width:78px; height:19px; "/>
  1013. <caption id="caption2" style="left:519px; top:49px; width:15px; height:20px; font-weight:bold; ">~</caption>
  1014. <select1 id="cmb_lrgcd_search" ref="/root/send/fixasetlist/lrgcd_search" appearance="minimal" style="left:95px; top:28px; width:190px; height:19px; ">
  1015. <choices>
  1016. <itemset>
  1017. <label/>
  1018. <value/>
  1019. </itemset>
  1020. </choices>
  1021. <script type="javascript" ev:event="xforms-value-changed">
  1022. <![CDATA[
  1023. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M");
  1024. addComboItem( "cmb_mdlcd_search", "전체", "", "above");
  1025. cmb_mdlcd_search.dispatch("xforms-value-changed");
  1026. model.refresh();
  1027. ]]>
  1028. </script>
  1029. </select1>
  1030. <select1 id="cmb_mdlcd_search" ref="/root/send/fixasetlist/mdlcd_search" appearance="minimal" style="left:95px; top:49px; width:190px; height:19px; ">
  1031. <choices>
  1032. <itemset>
  1033. <label/>
  1034. <value/>
  1035. </itemset>
  1036. </choices>
  1037. <script type="javascript" ev:event="xforms-value-changed">
  1038. <![CDATA[
  1039. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S");
  1040. addComboItem( "cmb_smlcd_search", "전체", "", "above");
  1041. model.refresh();
  1042. ]]>
  1043. </script>
  1044. </select1>
  1045. <select1 id="cmb_smlcd_search" ref="/root/send/fixasetlist/smlcd_search" appearance="minimal" style="left:95px; top:71px; width:190px; height:19px; ">
  1046. <choices>
  1047. <itemset>
  1048. <label/>
  1049. <value/>
  1050. </itemset>
  1051. </choices>
  1052. </select1>
  1053. <caption id="cap_rfchmandlist_search" class="search_name" style="left:735px; top:28px; width:125px; height:17px; ">보수계약유무 :</caption>
  1054. <select1 id="cmb_rfchmandlist_search" ref="/root/send/fixasetlist/rfchmandlist_search" class="combo_search" appearance="minimal" style="left:853px; top:28px; width:135px; height:19px; text-align:center; ">
  1055. <choices>
  1056. <item>
  1057. <label>전체</label>
  1058. <value/>
  1059. </item>
  1060. <item>
  1061. <label>유</label>
  1062. <value>Y</value>
  1063. </item>
  1064. <item>
  1065. <label>무</label>
  1066. <value>N</value>
  1067. </item>
  1068. </choices>
  1069. </select1>
  1070. <select1 id="cmb_instcd_conv" ref="/root/init/instcd_conv" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:290px; top:6px; width:45px; height:19px; ">
  1071. <choices>
  1072. <itemset>
  1073. <label/>
  1074. <value/>
  1075. </itemset>
  1076. </choices>
  1077. </select1>
  1078. <caption id="cap_goodflaghngnm_search" class="search_name" style="left:319px; top:6px; width:117px; height:17px; ">비품/모델명 :</caption>
  1079. <input id="ipt_mainmngtdeptcd_search" ref="/root/send/fixasetlist/mainmngtdeptcd_search" class="input_default" style="left:853px; top:49px; width:78px; height:19px; ">
  1080. <script type="javascript" ev:event="xforms-value-changed">
  1081. <![CDATA[
  1082. if(ipt_mainmngtdeptcd_search.value.length == 0)
  1083. ipt_mainmngtdeptcd_search.value = "";
  1084. else
  1085. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  1086. "deptcd," + ipt_mainmngtdeptcd_search.value, "", "mainmngtdeptcd_search,mainmngtdeptnm_search",
  1087. ipt_mainmngtdeptcd_search, "SPRPZ00200", "","");
  1088. model.refresh();
  1089. ]]>
  1090. </script>
  1091. </input>
  1092. <button id="btn_mainmngtdeptcd_search" class="icon_search" style="left:935px; top:49px; width:16px; height:16px; ">
  1093. <caption/>
  1094. <script type="javascript" ev:event="DOMActivate">
  1095. <![CDATA[
  1096. misfOpenPopUpList("02", ipt_mainmngtdeptcd_search,"","mainmngtdeptcd_search,mainmngtdeptnm_search");
  1097. model.refresh();
  1098. ]]>
  1099. </script>
  1100. </button>
  1101. <caption id="cap_mainmngtdeptcd_search" class="search_name" style="left:735px; top:49px; width:117px; height:17px; ">입 력 부 서 :</caption>
  1102. <input id="ipt_mainmngtdeptdeptnm_search" ref="/root/send/fixasetlist/mainmngtdeptnm_search" class="input_fix" appearance="input" style="left:955px; top:49px; width:156px; height:19px; ">
  1103. <script type="javascript" ev:event="xforms-value-changed">
  1104. <![CDATA[
  1105. if(mainmngtdeptnm_search.value.length == 0)
  1106. mainmngtdeptnm_search.value = "";
  1107. else
  1108. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  1109. "deptnm," + mainmngtdeptnm_search.value, "", "mngtdeptcd_search,mngtdeptnm_search",
  1110. mainmngtdeptnm_search, "SPRPZ00200", "","");
  1111. model.refresh();
  1112. ]]>
  1113. </script>
  1114. </input>
  1115. <caption id="caption28" class="search_name" style="left:736px; top:72px; width:118px; height:17px; ">구 코 드 :</caption>
  1116. <input id="ipt_oldcd" ref="/root/send/fixasetlist/oldcd_search" style="left:853px; top:71px; width:192px; height:19px; "/>
  1117. </group>
  1118. <caption id="caption19" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  1119. <caption id="caption20" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  1120. <line id="line16" class="line_1" style="x1:0px; y1:118px; x2:1190px; y2:117px; "/>
  1121. <!--</group>-->
  1122. <caption id="caption21" class="tit_2" style="left:0px; top:103px; width:69px; height:13px; ">비품목록</caption>
  1123. <caption id="caption22" visibility="visible" style="left:370px; top:457px; width:112px; height:20px; ">제조회사코드(히든)</caption>
  1124. <input id="ipt_prodcmpy" ref="/root/main/fixasetdet/fixasettmplist/prodcmpy" visibility="visible" style="left:425px; top:455px; width:44px; height:19px; "/>
  1125. <button id="btn_delrow" class="btn2_letter3" style="left:1138px; top:96px; width:53px; height:19px; ">
  1126. <caption>행삭제</caption>
  1127. <script type="javascript" ev:event="DOMActivate">
  1128. <![CDATA[
  1129. if(grd_fixasetlist.rowStatus(grd_fixasetlist.row) == 1 && grd_fixasetlist.rows- grd_fixasetlist.fixedRows != 0)
  1130. {
  1131. grd_fixasetlist.deleteRow(grd_fixasetlist.row);
  1132. misfGridInit(grd_fixasettmplist);
  1133. model.resetInstanceNode("/root/main/fixasetdet/fixasettmplist");
  1134. fAllControlDisabled("true");
  1135. if(grd_fixasetlist.rows- grd_fixasetlist.fixedRows != 0)
  1136. {
  1137. grd_fixasetlist.row = grd_fixasetlist.rows- grd_fixasetlist.fixedRows;
  1138. grd_fixasetlist.dispatch("onrowchanged");
  1139. }
  1140. model.refresh();
  1141. }
  1142. ]]>
  1143. </script>
  1144. </button>
  1145. <button id="btn_addrow" class="btn2_letter3" style="left:1082px; top:96px; width:53px; height:19px; ">
  1146. <caption>행추가</caption>
  1147. <script type="javascript" ev:event="DOMActivate">
  1148. <![CDATA[
  1149. btn_init.dispatch("DOMActivate");
  1150. misfGridIUD(grd_fixasetlist, "A");
  1151. grd_fixasetlist.dispatch("onrowchanged");
  1152. model.resetInstanceNode("/root/main/fixasetdet/fixasettmplist");
  1153. // default value setting
  1154. addRow = grd_fixasetlist.rows - grd_fixasetlist.fixedRows;
  1155. fDefaultSetting(addRow);
  1156. // disable control
  1157. fAllControlDisabled("false");
  1158. //cmb_dsplflag.select(0);
  1159. model.refresh();
  1160. ]]>
  1161. </script>
  1162. </button>
  1163. <input id="ipt_installplcenm" ref="/root/main/fixasetdet/fixasettmplist/installplcenm" class="input_fix" appearance="input" style="left:165px; top:460px; width:110px; height:19px; ">
  1164. <script type="javascript" ev:event="xforms-value-changed">
  1165. <![CDATA[
  1166. if(ipt_installplcenm.value.length == 0)
  1167. ipt_installplcecd.value = "";
  1168. else
  1169. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  1170. "deptnm," + ipt_installplcenm.value, "", "installplcecd,installplcenm",
  1171. ipt_installplcenm, "PPRAC00700", "","");
  1172. model.refresh();
  1173. ]]>
  1174. </script>
  1175. </input>
  1176. <line id="line21" class="line_1" style="x1:0px; y1:335px; x2:1190px; y2:335px; "/>
  1177. <caption id="cap_goodflaghngnm" class="cell_1" visibility="visible" style="left:285px; top:340px; width:72px; height:19px; vertical-align:middle; ">비품명칭</caption>
  1178. <button id="btn_mngtdeptcd" class="icon_search" style="left:146px; top:440px; width:16px; height:16px; ">
  1179. <caption/>
  1180. <script type="javascript" ev:event="DOMActivate">
  1181. <![CDATA[
  1182. misfOpenPopUpList("02", ipt_mngtdeptcd,"", "mngtdeptcd,mngtdeptnm") ;
  1183. model.refresh();
  1184. ]]>
  1185. </script>
  1186. </button>
  1187. <input id="ipt_installplcecd" ref="/root/main/fixasetdet/fixasettmplist/installplcecd" class="input_essential" appearance="input" style="left:75px; top:460px; width:70px; height:19px; ">
  1188. <script type="javascript" ev:event="xforms-value-changed">
  1189. <![CDATA[
  1190. if(ipt_installplcecd.value.length == 0)
  1191. ipt_installplcenm.value = "";
  1192. else
  1193. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  1194. "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
  1195. ipt_installplcecd, "PPRAC00700", "","");
  1196. model.refresh();
  1197. ]]>
  1198. </script>
  1199. </input>
  1200. <caption id="cap_suplplcecd" class="cell_1" style="left:2px; top:480px; width:72px; height:19px; vertical-align:middle; ">공급처</caption>
  1201. <textarea id="ipt_cmt" ref="/root/main/fixasetdet/fixasettmplist/cmt" maxlength="100" appearance="textarea" style="left:640px; top:520px; width:310px; height:39px; ">
  1202. <script type="javascript" ev:event="onmaxlength">
  1203. <![CDATA[
  1204. model.setFocus("ipt_cmt");
  1205. messageBox("입력 가능한 글자수 초과","I009");
  1206. ]]>
  1207. </script>
  1208. </textarea>
  1209. <caption id="cap_prodcmpy" class="cell_1" visibility="visible" style="left:285px; top:460px; width:72px; height:19px; vertical-align:middle; ">제조회사</caption>
  1210. <button id="btn_prodcmpy" class="icon_search" visibility="visible" style="left:540px; top:460px; width:16px; height:16px; ">
  1211. <caption/>
  1212. <script type="javascript" ev:event="DOMActivate">
  1213. <![CDATA[
  1214. rszfOpenPopUpListByWndName(ipt_prodcmpy,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  1215. model.refresh();
  1216. ]]>
  1217. </script>
  1218. </button>
  1219. <input id="ipt_cntrdeptnm" ref="/root/main/fixasetdet/fixasettmplist/cntrdeptnm" class="input_fix" appearance="input" style="left:165px; top:420px; width:110px; height:19px; ">
  1220. <script type="javascript" ev:event="xforms-value-changed">
  1221. <![CDATA[
  1222. if(ipt_cntrdeptnm.value.length == 0)
  1223. ipt_cntrdeptcd.value = "";
  1224. else
  1225. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  1226. "deptnm," + ipt_cntrdeptnm.value, "", "cntrdeptcd,cntrdeptnm",
  1227. ipt_cntrdeptnm, "SPRPZ00200", "","");
  1228. model.refresh();
  1229. ]]>
  1230. </script>
  1231. </input>
  1232. <caption id="cap_lrgcd" class="cell_1" style="left:2px; top:360px; width:72px; height:19px; vertical-align:middle; ">대분류</caption>
  1233. <caption id="cap_smlcd" class="cell_1" style="left:2px; top:400px; width:72px; height:19px; vertical-align:middle; ">소분류</caption>
  1234. <caption id="cap_mngtdeptcd" class="cell_1" style="left:2px; top:440px; width:72px; height:19px; vertical-align:middle; ">사용부서</caption>
  1235. <input id="ipt_cntrdeptcd" ref="/root/main/fixasetdet/fixasettmplist/cntrdeptcd" class="input_default" appearance="input" style="left:75px; top:420px; width:70px; height:19px; ">
  1236. <script type="javascript" ev:event="xforms-value-changed">
  1237. <![CDATA[
  1238. if(ipt_cntrdeptcd.value.length == 0)
  1239. ipt_cntrdeptnm.value = "";
  1240. else
  1241. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  1242. "deptcd," + ipt_cntrdeptcd.value, "", "cntrdeptcd,cntrdeptnm",
  1243. ipt_cntrdeptcd, "SPRPZ00200", "","");
  1244. model.refresh();
  1245. ]]>
  1246. </script>
  1247. </input>
  1248. <button id="btn_installplcecd" class="icon_search" style="left:146px; top:460px; width:16px; height:16px; ">
  1249. <caption/>
  1250. <script type="javascript" ev:event="DOMActivate">
  1251. <![CDATA[
  1252. misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm") ;
  1253. model.refresh();
  1254. ]]>
  1255. </script>
  1256. </button>
  1257. <input id="ipt_suplplcenm" ref="/root/main/fixasetdet/fixasettmplist/suplplcenm" class="input_fix" appearance="input" style="left:165px; top:480px; width:110px; height:19px; ">
  1258. <script type="javascript" ev:event="xforms-value-changed">
  1259. <![CDATA[
  1260. if(ipt_suplplcenm.value.length == 0)
  1261. ipt_suplplcecd.value = "";
  1262. else
  1263. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1264. cmb_instcd_search.value + "," + "custnm," + ipt_suplplcenm.value, "", "suplplcecd,suplplcenm",
  1265. ipt_suplplcenm, "SPRSD00220", "instcd","cmb_instcd_search");
  1266. model.refresh();
  1267. ]]>
  1268. </script>
  1269. </input>
  1270. <caption id="cap_goodspec" class="cell_1" visibility="visible" style="left:285px; top:380px; width:72px; height:19px; vertical-align:middle; ">규격</caption>
  1271. <input id="ipt_goodspec" ref="/root/main/fixasetdet/fixasettmplist/goodspec" class="input_default" visibility="visible" appearance="input" style="left:358px; top:380px; width:200px; height:19px; "/>
  1272. <caption id="cap_mdlcd" class="cell_1" style="left:2px; top:380px; width:72px; height:19px; vertical-align:middle; ">중분류</caption>
  1273. <input id="ipt_goodflaghngnm" ref="/root/main/fixasetdet/fixasettmplist/goodflaghngnm" class="input_essential" visibility="visible" appearance="input" style="left:358px; top:340px; width:200px; height:19px; "/>
  1274. <line id="line45" class="line_3" style="x1:0px; y1:562px; x2:1190px; y2:562px; "/>
  1275. <input id="ipt_suplplcecd" ref="/root/main/fixasetdet/fixasettmplist/suplplcecd" class="input_default" appearance="input" style="left:75px; top:480px; width:70px; height:19px; ">
  1276. <script type="javascript" ev:event="xforms-value-changed">
  1277. <![CDATA[
  1278. if(ipt_suplplcecd.value.length == 0)
  1279. ipt_suplplcenm.value = "";
  1280. else
  1281. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1282. cmb_instcd_conv.value + "," + "entrregno," + ipt_suplplcecd.value, "", "suplplcecd,suplplcenm",
  1283. ipt_suplplcecd, "SPRSD00220", "instcd","cmb_instcd_search");
  1284. model.refresh();
  1285. ]]>
  1286. </script>
  1287. </input>
  1288. <caption id="cap_cmt" class="cell_1" style="left:567px; top:520px; width:72px; height:39px; vertical-align:middle; ">비고</caption>
  1289. <input id="ipt_mngtdeptnm" ref="/root/main/fixasetdet/fixasettmplist/mngtdeptnm" class="input_fix" appearance="input" style="left:165px; top:440px; width:110px; height:19px; ">
  1290. <script type="javascript" ev:event="xforms-value-changed">
  1291. <![CDATA[
  1292. if(ipt_mngtdeptnm.value.length == 0)
  1293. ipt_mngtdeptcd.value = "";
  1294. else
  1295. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  1296. "deptnm," + ipt_mngtdeptnm.value, "", "mngtdeptcd,mngtdeptnm",
  1297. ipt_mngtdeptnm, "SPRPZ00200", "","");
  1298. model.refresh();
  1299. ]]>
  1300. </script>
  1301. </input>
  1302. <input id="ipt_goodmodel" ref="/root/main/fixasetdet/fixasettmplist/goodmodel" class="input_default" visibility="visible" appearance="input" style="left:358px; top:400px; width:200px; height:19px; "/>
  1303. <caption id="cap_installplcecd" class="cell_1" style="left:2px; top:460px; width:72px; height:19px; vertical-align:middle; ">설치장소</caption>
  1304. <button id="btn_cntrdeptcd" class="icon_search" style="left:146px; top:420px; width:16px; height:16px; ">
  1305. <caption/>
  1306. <script type="javascript" ev:event="DOMActivate">
  1307. <![CDATA[
  1308. misfOpenPopUpList("02", ipt_cntrdeptcd,"","cntrdeptcd,cntrdeptnm");
  1309. model.refresh();
  1310. ]]>
  1311. </script>
  1312. </button>
  1313. <caption id="cap_goodmodel" class="cell_1" visibility="visible" style="left:285px; top:400px; width:72px; height:19px; vertical-align:middle; ">모델명</caption>
  1314. <input id="ipt_fixasetcd" ref="/root/main/fixasetdet/fixasettmplist/fixasetcd" class="input_essential" appearance="input" style="left:75px; top:340px; width:135px; height:19px; "/>
  1315. <input id="ipt_mngtdeptcd" ref="/root/main/fixasetdet/fixasettmplist/mngtdeptcd" class="input_default" appearance="input" style="left:75px; top:440px; width:70px; height:19px; ">
  1316. <script type="javascript" ev:event="xforms-value-changed">
  1317. <![CDATA[
  1318. if(ipt_mngtdeptcd.value.length == 0)
  1319. ipt_mngtdeptnm.value = "";
  1320. else
  1321. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  1322. "deptcd," + ipt_mngtdeptcd.value, "", "mngtdeptcd,mngtdeptnm",
  1323. ipt_mngtdeptcd, "SPRPZ00200", "","");
  1324. model.refresh();
  1325. ]]>
  1326. </script>
  1327. </input>
  1328. <input id="ipt_prodcmpynm" ref="/root/main/fixasetdet/fixasettmplist/prodcmpynm" class="input_fix" visibility="visible" appearance="input" style="left:358px; top:460px; width:177px; height:19px; ">
  1329. <script type="javascript" ev:event="xforms-value-changed">
  1330. <![CDATA[
  1331. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  1332. "prodcmpynm,," + ipt_prodcmpynm.value, "", "prodcmpycd,prodcmpynm",
  1333. ipt_prodcmpynm, "SPRSD00160", "","");
  1334. model.refresh();
  1335. ]]>
  1336. </script>
  1337. </input>
  1338. <caption id="cap_fixasetcd" class="cell_1" style="left:2px; top:340px; width:72px; height:19px; vertical-align:middle; ">비품코드</caption>
  1339. <caption id="cap_acntcd" class="cell_1" style="left:2px; top:540px; width:72px; height:19px; vertical-align:middle; ">입고계정</caption>
  1340. <input id="ipt_acntnm" ref="/root/main/fixasetdet/fixasettmplist/acntnm" class="input_fix" appearance="input" style="left:165px; top:540px; width:110px; height:19px; ">
  1341. <script type="javascript" ev:event="xforms-value-changed">
  1342. <![CDATA[
  1343. if(ipt_acntnm.value.length == 0)
  1344. ipt_acntcd.value = "";
  1345. else
  1346. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  1347. ",Y,2," + ipt_acntnm.value, "", "acntcd,acntnm",
  1348. ipt_acntnm, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
  1349. model.refresh();
  1350. ]]>
  1351. </script>
  1352. </input>
  1353. <line id="line53" class="line_2" style="x1:2px; y1:458px; x2:77px; y2:458px; "/>
  1354. <button id="btn_suplplcecd" class="icon_search" style="left:146px; top:480px; width:16px; height:16px; ">
  1355. <caption/>
  1356. <script type="javascript" ev:event="DOMActivate">
  1357. <![CDATA[
  1358. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd_conv");
  1359. model.refresh();
  1360. ]]>
  1361. </script>
  1362. </button>
  1363. <input id="ipt_acntcd" ref="/root/main/fixasetdet/fixasettmplist/acntcd" class="input_default" appearance="input" style="left:75px; top:540px; width:70px; height:19px; ">
  1364. <script type="javascript" ev:event="xforms-value-changed">
  1365. <![CDATA[
  1366. if(ipt_acntcd.value.length == 0)
  1367. ipt_acntnm.value = "";
  1368. else
  1369. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  1370. ",Y,2," + ipt_acntcd.value, "", "acntcd,acntnm",
  1371. ipt_acntcd, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
  1372. model.refresh();
  1373. ]]>
  1374. </script>
  1375. </input>
  1376. <button id="btn_acntcd" class="icon_search" style="left:146px; top:540px; width:16px; height:16px; ">
  1377. <caption/>
  1378. <script type="javascript" ev:event="DOMActivate">
  1379. <![CDATA[
  1380. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100_계정코드HELP","","");
  1381. model.refresh();
  1382. ]]>
  1383. </script>
  1384. </button>
  1385. <caption id="cap_prodplce" class="cell_1" visibility="visible" style="left:285px; top:480px; width:72px; height:19px; vertical-align:middle; ">제조국</caption>
  1386. <select1 id="cmb_prodplce" ref="/root/main/fixasetdet/fixasettmplist/prodplce" visibility="visible" appearance="minimal" style="left:358px; top:480px; width:200px; height:19px; ">
  1387. <choices>
  1388. <itemset>
  1389. <label/>
  1390. <value/>
  1391. </itemset>
  1392. </choices>
  1393. </select1>
  1394. <caption id="cap_cntrdeptcd" class="cell_1" style="left:2px; top:420px; width:72px; height:19px; vertical-align:middle; ">청구부서</caption>
  1395. <button id="btn_addrow_" class="btn2_letter3" style="left:1074px; top:567px; width:53px; height:19px; ">
  1396. <caption>행추가</caption>
  1397. <script type="javascript" ev:event="DOMActivate">
  1398. <![CDATA[
  1399. if (model.getValue(ipt_fixasetcd.attribute("ref")).length == 0){
  1400. if(!isRequiredControls("ipt_fixasetcd")) return;
  1401. }
  1402. if(btn_rfchmandlist.selected == true)
  1403. {
  1404. misfGridIUD(grd_rfchmandlist, "A");
  1405. var cur_row = grd_rfchmandlist.row;
  1406. //행추가를 누를시 기간코드,고정자산 값을 자동으로 저장한다.
  1407. model.setValue(grd_rfchmandlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd_search.value);
  1408. model.setValue(grd_rfchmandlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
  1409. model.setValue(grd_rfchmandlist.attribute("nodeset")+"["+cur_row+"]/condd",getCurrentDate());
  1410. model.refresh();
  1411. return;
  1412. }
  1413. else if(btn_comps.selected == true)
  1414. {
  1415. misfGridIUD(grd_comps, "A");
  1416. var cur_row = grd_comps.row;
  1417. //행추가를 누를시 기간코드,고정자산 값을 자동으로 저장한다.
  1418. model.setValue(grd_comps.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd_search.value);
  1419. model.setValue(grd_comps.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
  1420. //오류가 납니다. 의미없어 보이는 코드같아 주석 처리 합니다.-MIS 개발팀...송광호-
  1421. //model.setValue(grd_rfchmandlist.attribute("nodeset")+"["+cur_row+"]/condd",getCurrentDate());
  1422. model.refresh();
  1423. return;
  1424. }
  1425. ]]>
  1426. </script>
  1427. </button>
  1428. <button id="btn_chnghist" class="btn2_letter4" style="left:444px; top:567px; width:64px; height:19px; ">
  1429. <caption>변동이력</caption>
  1430. <script type="javascript" ev:event="onclick">
  1431. <![CDATA[
  1432. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  1433. //window.load("SPRSC00211_ALLSIZE.xrw","modeless", "SPRSC00211_ALLSIZE.xrw", "width:810px; height:730;min:hidden;max:hidden;align:center", "" ,"");
  1434. modal("SMRFE00200_자산변동사항관리","20","20","","popup", "/root/main/fixasetdet/fixasettmplist" ,"/root/temp");
  1435. grd_fixasetlist.dispatch("onrowchanged");
  1436. ]]>
  1437. </script>
  1438. </button>
  1439. <button id="btn_comps" class="btn_sw" group="tab" style="left:84px; top:565px; width:100px; height:22px; ">
  1440. <caption>구성품</caption>
  1441. <toggle case="case3" ev:event="DOMActivate"/>
  1442. </button>
  1443. <button id="btn_delrow_" class="btn2_letter3" style="left:1130px; top:567px; width:53px; height:19px; ">
  1444. <caption>행삭제</caption>
  1445. <script type="javascript" ev:event="DOMActivate">
  1446. <![CDATA[
  1447. if(btn_rfchmandlist.selected == true)
  1448. {
  1449. misfGridIUD(grd_rfchmandlist, "D");
  1450. model.refresh();
  1451. return;
  1452. }
  1453. else if(btn_comps.selected == true)
  1454. {
  1455. misfGridIUD(grd_comps, "D");
  1456. model.refresh();
  1457. return;
  1458. }
  1459. ]]>
  1460. </script>
  1461. </button>
  1462. <button id="btn_set" class="btn2_letter3" style="left:388px; top:567px; width:53px; height:19px; ">
  1463. <caption>소모품</caption>
  1464. <script type="javascript" ev:event="onclick">
  1465. <![CDATA[
  1466. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  1467. //window.load("SPRSC00211_ALLSIZE.xrw","modeless", "SPRSC00211_ALLSIZE.xrw", "width:810px; height:730;min:hidden;max:hidden;align:center", "" ,"");
  1468. modal("SMRFE00100","","","","popup", "/root/main/fixasetdet/fixasettmplist" ,"/root/temp");
  1469. ]]>
  1470. </script>
  1471. </button>
  1472. <button id="btn_rfchmandlist" class="btn_sw" group="tab" selected="true" style="left:1px; top:565px; width:84px; height:22px; ">
  1473. <caption>보수계약정보</caption>
  1474. <toggle case="case1" ev:event="DOMActivate"/>
  1475. </button>
  1476. <button id="btn_image" class="btn2_letter5" style="left:310px; top:567px; width:75px; height:19px; ">
  1477. <caption>이미지 정보</caption>
  1478. <script type="javascript" ev:event="onclick">
  1479. <![CDATA[
  1480. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  1481. //window.load("SPRSC00201_이미지.xrw","modeless", "SPRSC00201_이미지.xrw", "width:330px; height:390;min:hidden;max:hidden;align:center", "" ,"");
  1482. if(grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetcd")) != ""){
  1483. rszfOpenPopUpListByWndName(grd_fixasetlist,"","","SPRSC00201_이미지.xrw","goodcd", grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetcd")) );
  1484. }else{
  1485. messageBox("자산을", "C002");
  1486. }
  1487. ]]>
  1488. </script>
  1489. </button>
  1490. <switch id="switch1" style="left:0; top:588px; width:1195; height:150; border-color:#c7a3cf; border-style:solid; ">
  1491. <case id="case1" selected="true">
  1492. <datagrid id="grd_rfchmandlist" nodeset="/root/main/list/rfchmandlist" caption="계약일자^계약기간^계약기간^계약금액^계약처^계약처^계약사항^대리점^대리점연락처^기관코드^자산코드" colsep="^" colwidth="106, 106, 105, 90, 90, 100, 351, 109, 93, 100, 100" dataheight="60" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:2px; top:5px; width:1187px; height:135px; ">
  1493. <col ref="condd" type="inputdate" format="yyyy-mm-dd"/>
  1494. <col class="input_essential" ref="rpirconfromdd" type="inputdate" format="yyyy-mm-dd" _key="true"/>
  1495. <col ref="rpircontodd" type="inputdate" format="yyyy-mm-dd"/>
  1496. <col ref="conamt" type="input" format="#,###" style="text-align:right; "/>
  1497. <col ref="suplplcecd" type="inputbutton"/>
  1498. <col ref="suplplcenm" type="input"/>
  1499. <col ref="concond" type="input"/>
  1500. <col ref="agency" type="input"/>
  1501. <col ref="agencycntctel" type="input"/>
  1502. <col ref="instcd" visibility="hidden"/>
  1503. <col ref="fixasetcd" visibility="hidden"/>
  1504. <script type="javascript" ev:event="onbuttonclick">
  1505. <![CDATA[
  1506. if (grd_rfchmandlist.col == grd_rfchmandlist.colRef("suplplcecd")) {//계약처 버튼을 눌렀을 때
  1507. rszfOpenPopUpListByWndName(grd_rfchmandlist,"",
  1508. "suplplcecd,suplplcenm","SPRSD00220","instcd,goodflag",
  1509. "cmb_instcd_search,opt_goodflag_search","Y");
  1510. }
  1511. ]]>
  1512. </script>
  1513. <script type="javascript" ev:event="xforms-value-changed">
  1514. <![CDATA[
  1515. if(grd_rfchmandlist.col == grd_rfchmandlist.colRef("suplplcenm") && grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcenm")).length> 0)
  1516. {
  1517. if(grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcenm")).length == 0)
  1518. grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcecd")) = "";
  1519. else
  1520. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1521. cmb_instcd_search.value + "," + "custnm," + grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcenm")), "", "suplplcecd,suplplcenm",
  1522. grd_rfchmandlist, "SPRSD00220", "instcd","cmb_instcd_search");
  1523. }
  1524. else if(grd_rfchmandlist.col == grd_rfchmandlist.colRef("suplplcecd") && grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcecd")).length> 0)
  1525. {
  1526. if(grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcecd")).length == 0)
  1527. grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcenm")) = "";
  1528. else
  1529. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1530. cmb_instcd_search.value + "," + "entrregno," + grd_rfchmandlist.valueMatrix(grd_rfchmandlist.row, grd_rfchmandlist.colRef("suplplcecd")), "", "suplplcecd,suplplcenm",
  1531. grd_rfchmandlist, "SPRSD00220", "instcd","cmb_instcd_search");
  1532. }
  1533. ]]>
  1534. </script>
  1535. </datagrid>
  1536. <line id="line1" class="line_1" style="x1:0px; y1:2px; x2:1190; y2:2px; "/>
  1537. </case>
  1538. <case id="case3">
  1539. <datagrid id="grd_comps" nodeset="/root/main/list/compslist" caption="물품코드^품명^규격^단위^수량^주기^비고^기관코드^고정자산코드" colsep="^" colwidth="116, 165, 110, 50, 70, 100, 123, 100, 100" dataheight="25" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:7px; width:1053px; height:88px; ">
  1540. <col class="input_essential" ref="goodcd" type="inputbutton" _key="true"/>
  1541. <col ref="goodnm" type="input"/>
  1542. <col ref="goodspec"/>
  1543. <col ref="purcunit"/>
  1544. <col ref="rpiruseqty" type="input" format="9999999999999"/>
  1545. <col ref="prid" type="input"/>
  1546. <col ref="cmt" type="input"/>
  1547. <col ref="instcd" visibility="hidden"/>
  1548. <col ref="fixasetcd" visibility="hidden"/>
  1549. <script type="javascript" ev:event="onbuttonclick">
  1550. <![CDATA[
  1551. if (grd_comps.col == grd_comps.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
  1552. model.removenode("/root/copynode");
  1553. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1554. model.makeNode("/root/copynode");
  1555. rszfOpenPopUpListByWndName(grd_comps,"",
  1556. "goodcd,goodnm,goodspec,purcunit","SPRSD00190",
  1557. "instcd,goodflag","cmb_instcd_search,B", "Y");
  1558. var cur_row = grd_comps.row;
  1559. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1560. setCSVToNode("/root/copynode", CSV, "compslist");
  1561. fSettingGoodList("/root/copynode", "compslist");
  1562. }
  1563. ]]>
  1564. </script>
  1565. <script type="javascript" ev:event="xforms-value-changed">
  1566. <![CDATA[
  1567. if(grd_comps.col == grd_comps.colRef("goodnm") && grd_comps.valueMatrix(grd_comps.row, grd_comps.colRef("goodnm")).length> 0)
  1568. {
  1569. model.removenode("/root/copynode");
  1570. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1571. model.makeNode("/root/copynode");
  1572. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodnm,goodflag",
  1573. "goodnm," + grd_comps.valueMatrix(grd_comps.row,grd_comps.colRef("instcd")) + ","+ grd_comps.valueMatrix(grd_comps.row,grd_comps.colRef("goodnm"))+ ",B",
  1574. "", "goodcd,goodnm,goodspec,purcunit",
  1575. grd_comps, "SPRSD00190", "instcd,goodflag","cmb_instcd_search,B","Y");
  1576. // gvParamPath : /root/properties/parameters = js에 선언되어있는 변수
  1577. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1578. setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
  1579. fSettingGoodList("/root/copynode", "goodbaseqtylist");
  1580. }
  1581. else if(grd_comps.col == grd_comps.colRef("goodcd") && grd_comps.valueMatrix(grd_comps.row, grd_comps.colRef("goodcd")).length> 0)
  1582. {
  1583. model.removenode("/root/copynode");
  1584. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1585. model.makeNode("/root/copynode");
  1586. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodcd,goodflag",
  1587. "goodcd," + grd_comps.valueMatrix(grd_comps.row,grd_comps.colRef("instcd")) + ","+ grd_comps.valueMatrix(grd_comps.row,grd_comps.colRef("goodcd"))+ ",B",
  1588. "", "goodcd,goodnm,goodspec,purcunit",
  1589. grd_comps, "SPRSD00190", "instcd,goodflag","cmb_instcd_search,B","Y");
  1590. // gvParamPath : /root/properties/parameters = js에 선언되어있는 변수
  1591. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1592. setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
  1593. fSettingGoodList("/root/copynode", "goodbaseqtylist");
  1594. }
  1595. ]]>
  1596. </script>
  1597. </datagrid>
  1598. <line id="line18" class="line_1" style="x1:0px; y1:2px; x2:1193; y2:2px; "/>
  1599. </case>
  1600. </switch>
  1601. <select1 id="rdo_earnvaluyn" ref="/root/main/fixasetdet/fixasettmplist/earnvaluyn" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:826px; top:480px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1602. <choices>
  1603. <itemset nodeset="/root/init/suik">
  1604. <label ref="label"/>
  1605. <value ref="value"/>
  1606. </itemset>
  1607. </choices>
  1608. </select1>
  1609. <input id="ipt_usge" ref="/root/main/fixasetdet/fixasettmplist/usge" class="input_default" visibility="visible" appearance="input" style="left:358px; top:440px; width:200px; height:19px; "/>
  1610. <button id="btn_maineqmt" class="icon_search" visibility="visible" style="left:146px; top:520px; width:16px; height:16px; ">
  1611. <caption/>
  1612. <script type="javascript" ev:event="DOMActivate">
  1613. <![CDATA[
  1614. rszfOpenPopUpListByWndName(ipt_maineqmtcd,"","maineqmtcd,maineqmtnm","SPRSD00240","instcd,goodflag","cmb_instcd_search,opt_goodflag_search");
  1615. model.refresh();
  1616. ]]>
  1617. </script>
  1618. </button>
  1619. <input id="ipt_forgncurncyamt" ref="/root/main/fixasetdet/fixasettmplist/forgncurncyamt" class="input_default" visibility="visible" format="#,###" appearance="input" style="left:358px; top:500px; width:92px; height:19px; text-align:right; "/>
  1620. <input id="ipt_winno" ref="/root/main/fixasetdet/fixasettmplist/winno" class="input_default" visibility="hidden" format="9999999999999" appearance="input" style="left:900px; top:565px; width:131px; height:19px; "/>
  1621. <input id="ipt_smplce" ref="/root/main/fixasetdet/fixasettmplist/smplce" class="input_default" visibility="visible" style="left:1033px; top:340px; width:147px; height:19px; "/>
  1622. <input id="ipt_maineqmtcd" ref="/root/main/fixasetdet/fixasettmplist/maineqmtcd" visibility="visible" style="left:75px; top:520px; width:70px; height:19px; ">
  1623. <script type="javascript" ev:event="xforms-value-changed">
  1624. <![CDATA[
  1625. if(ipt_maineqmtcd.value.length == 0)
  1626. ipt_maineqmtnm.value = "";
  1627. else
  1628. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  1629. cmb_instcd_search.value + "," + "fixasetcd," + ipt_maineqmtcd.value + "," + opt_goodflag_search.value, "", "maineqmtcd,maineqmtnm",
  1630. ipt_maineqmtcd, "SPRSD00240", "instcd,goodflag","cmb_instcd_search,opt_goodflag_search");
  1631. model.refresh();
  1632. ]]>
  1633. </script>
  1634. </input>
  1635. <input id="ipt_flwgrnttermfr" ref="/root/main/fixasetdet/fixasettmplist/flwgrnttermfr" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:358px; top:520px; width:92px; height:19px; "/>
  1636. <input id="ipt_maineqmtnm" ref="/root/main/fixasetdet/fixasettmplist/maineqmtnm" class="input_fix" visibility="visible" appearance="input" style="left:165px; top:520px; width:110px; height:19px; ">
  1637. <script type="javascript" ev:event="xforms-value-changed">
  1638. <![CDATA[
  1639. if(ipt_maineqmtnm.value.length == 0)
  1640. ipt_maineqmtcd.value = "";
  1641. else
  1642. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  1643. cmb_instcd_search.value + "," + "goodflaghngnm," + ipt_maineqmtnm.value + "," + opt_goodflag_search.value, "", "maineqmtcd,maineqmtnm",
  1644. ipt_maineqmtnm, "SPRSD00240", "instcd,goodflag","cmb_instcd_search,opt_goodflag_search");
  1645. model.refresh();
  1646. ]]>
  1647. </script>
  1648. </input>
  1649. <input id="ipt_repayenddd" ref="/root/main/fixasetdet/fixasettmplist/repayenddd" class="input_default" visibility="visible" editable="false" format="yyyy-mm-dd" appearance="input" style="left:1033px; top:520px; width:147px; height:19px; "/>
  1650. <input id="ipt_winseqno" ref="/root/main/fixasetdet/fixasettmplist/winseqno" class="input_default" visibility="hidden" format="9999999999999" appearance="input" style="left:770px; top:565px; width:124px; height:19px; "/>
  1651. <input id="ipt_flwgrnttermto" ref="/root/main/fixasetdet/fixasettmplist/flwgrnttermto" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:466px; top:520px; width:92px; height:19px; "/>
  1652. <input id="ipt_agency" ref="/root/main/fixasetdet/fixasettmplist/agency" class="input_default" visibility="visible" style="left:1033px; top:360px; width:147px; height:19px; "/>
  1653. <input id="ipt_repaybal" ref="/root/main/fixasetdet/fixasettmplist/repaybal" class="input_default" visibility="visible" editable="false" format="#,###" appearance="input" style="left:1033px; top:500px; width:147px; height:19px; text-align:right; "/>
  1654. <input id="ipt_agencycntctel" ref="/root/main/fixasetdet/fixasettmplist/agencycntctel" class="input_default" visibility="visible" style="left:1033px; top:380px; width:147px; height:19px; "/>
  1655. <select1 id="rdo_moveflag" ref="/root/main/fixasetdet/fixasettmplist/moveflag" visibility="visible" overflow="visible" appearance="full" cols="4" style="left:826px; top:440px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1656. <choices>
  1657. <itemset nodeset="/root/init/moveflag">
  1658. <label ref="label"/>
  1659. <value ref="value"/>
  1660. </itemset>
  1661. </choices>
  1662. </select1>
  1663. <input id="ipt_repayrate" ref="/root/main/fixasetdet/fixasettmplist/repayrate" class="input_default" visibility="visible" editable="false" appearance="input" style="left:1033px; top:480px; width:147px; height:19px; "/>
  1664. <select1 id="rdo_repaymthd" ref="/root/main/fixasetdet/fixasettmplist/repaymthd" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:1033px; top:440px; width:147px; height:20px; border-style:none; ">
  1665. <choices>
  1666. <itemset nodeset="/root/init/repaymthd">
  1667. <label ref="label"/>
  1668. <value ref="value"/>
  1669. </itemset>
  1670. </choices>
  1671. <script type="javascript" ev:event="xforms-value-changed">
  1672. <![CDATA[
  1673. // 20100217 [최형진] 감가상각관련
  1674. if(model.getValue(rdo_repaymthd.attribute("ref")) != "")
  1675. {
  1676. radfGetCntsYearNOList(rdo_repaymthd,cmb_cntsyearno,ipt_repayrate);
  1677. }
  1678. ]]>
  1679. </script>
  1680. </select1>
  1681. <select1 id="cmb_repayflag" ref="/root/main/fixasetdet/fixasettmplist/repayflag" visibility="visible" appearance="minimal" showvalue="true" style="left:1033px; top:420px; width:147px; height:19px; ">
  1682. <choices>
  1683. <itemset>
  1684. <label/>
  1685. <value/>
  1686. </itemset>
  1687. </choices>
  1688. <script type="javascript" ev:event="xforms-value-changed">
  1689. <![CDATA[
  1690. // 20100217 [최형진] 감가상각관련
  1691. if(model.getValue(cmb_repayflag.attribute("ref")) == "3")
  1692. {
  1693. rdo_repaymthd.disabled = true;
  1694. cmb_cntsyearno.disabled = true;
  1695. }
  1696. else
  1697. {
  1698. rdo_repaymthd.disabled = false;
  1699. cmb_cntsyearno.disabled = false;
  1700. }
  1701. ]]>
  1702. </script>
  1703. </select1>
  1704. <select1 id="rdo_lseyn" ref="/root/main/fixasetdet/fixasettmplist/lseyn" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:826px; top:500px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1705. <choices>
  1706. <itemset nodeset="/root/init/lseyn">
  1707. <label ref="label"/>
  1708. <value ref="value"/>
  1709. </itemset>
  1710. </choices>
  1711. </select1>
  1712. <select1 id="cmb_curncyunit" ref="/root/main/fixasetdet/fixasettmplist/curncyunit" visibility="visible" appearance="minimal" style="left:453px; top:500px; width:105px; height:19px; ">
  1713. <choices>
  1714. <itemset>
  1715. <label/>
  1716. <value/>
  1717. </itemset>
  1718. </choices>
  1719. </select1>
  1720. <select1 id="rdo_asetflagmaineqmtflag" ref="/root/main/fixasetdet/fixasettmplist/asetflag_maineqmtflag" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:826px; top:420px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1721. <choices>
  1722. <itemset nodeset="/root/init/asetflagmaineqmtflag">
  1723. <label ref="label"/>
  1724. <value ref="value"/>
  1725. </itemset>
  1726. </choices>
  1727. </select1>
  1728. <select1 id="rdo_possnflagcd" ref="/root/main/fixasetdet/fixasettmplist/possnflagcd" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:826px; top:400px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1729. <choices>
  1730. <itemset nodeset="/root/init/possnflagcd">
  1731. <label ref="label"/>
  1732. <value ref="value"/>
  1733. </itemset>
  1734. </choices>
  1735. </select1>
  1736. <select1 id="rdo_prvnchkyn" ref="/root/main/fixasetdet/fixasettmplist/prvnchkyn" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:826px; top:460px; width:123px; height:20px; background-color:transparent; border-style:none; ">
  1737. <choices>
  1738. <itemset nodeset="/root/init/prvnchkyn">
  1739. <label ref="label"/>
  1740. <value ref="value"/>
  1741. </itemset>
  1742. </choices>
  1743. </select1>
  1744. <caption id="caption1" class="tit_2" style="left:3px; top:322px; width:100px; height:13px; ">
  1745. <![CDATA[비품상세내역]]>
  1746. <script type="javascript" ev:event="ondblclick">
  1747. <![CDATA[
  1748. grp_copy.visible = true;
  1749. ]]>
  1750. </script>
  1751. </caption>
  1752. <button id="btn_goodcdcopy" class="btn2_letter4" style="left:210px; top:340px; width:64px; height:19px; ">
  1753. <caption>코드생성</caption>
  1754. <script type="javascript" ev:event="DOMActivate">
  1755. <![CDATA[
  1756. fGoodCdCopy();
  1757. ]]>
  1758. </script>
  1759. </button>
  1760. <select1 id="cmb_lrgcd" ref="/root/main/fixasetdet/fixasettmplist/lrgcd" appearance="minimal" style="left:75px; top:360px; width:200px; height:19px; text-align:left; ">
  1761. <choices>
  1762. <itemset>
  1763. <label/>
  1764. <value/>
  1765. </itemset>
  1766. </choices>
  1767. <script type="javascript" ev:event="xforms-value-changed">
  1768. <![CDATA[
  1769. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M");
  1770. cmb_mdlcd.dispatch("xforms-value-changed");
  1771. model.refresh();
  1772. ]]>
  1773. </script>
  1774. </select1>
  1775. <select1 id="cmb_mdlcd" ref="/root/main/fixasetdet/fixasettmplist/mdlcd" appearance="minimal" style="left:75px; top:380px; width:200px; height:19px; text-align:left; ">
  1776. <choices>
  1777. <itemset>
  1778. <label/>
  1779. <value/>
  1780. </itemset>
  1781. </choices>
  1782. <script type="javascript" ev:event="xforms-value-changed">
  1783. <![CDATA[
  1784. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S");
  1785. model.refresh();
  1786. ]]>
  1787. </script>
  1788. </select1>
  1789. <select1 id="cmb_smlcd" ref="/root/main/fixasetdet/fixasettmplist/smlcd" appearance="minimal" style="left:75px; top:400px; width:200px; height:19px; text-align:left; ">
  1790. <choices>
  1791. <itemset>
  1792. <label/>
  1793. <value/>
  1794. </itemset>
  1795. </choices>
  1796. <script type="javascript" ev:event="xforms-value-changed">
  1797. <![CDATA[
  1798. var smlcd = model.getValue((cmb_smlcd.attribute("ref")));
  1799. if (smlcd.getTrim() != ""){
  1800. model.setValue(ipt_fixasetcd.attribute("ref"), "");
  1801. }
  1802. rszfLMSComboList(model.getValue("/root/send/fixasetlist/goodflag_search"), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M");
  1803. cmb_mdlcd_search.dispatch("xforms-value-changed");
  1804. model.refresh();
  1805. ]]>
  1806. </script>
  1807. </select1>
  1808. <caption id="caption3" class="cell_1" style="left:2px; top:500px; width:72px; height:19px; vertical-align:middle; ">보조거래처</caption>
  1809. <input id="ipt_suppcustnm" ref="/root/main/fixasetdet/fixasettmplist/suppcustnm" class="input_fix" appearance="input" style="left:165px; top:500px; width:110px; height:19px; ">
  1810. <script type="javascript" ev:event="xforms-value-changed">
  1811. <![CDATA[
  1812. if(ipt_suppcustnm.value.length == 0)
  1813. ipt_suppcustcd.value = "";
  1814. else
  1815. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1816. cmb_instcd_search.value + "," + "custnm," + ipt_suppcustnm.value, "", "suppcustcd,suppcustnm",
  1817. ipt_suppcustnm, "SPRSD00220", "instcd","cmb_instcd_search");
  1818. model.refresh();
  1819. ]]>
  1820. </script>
  1821. </input>
  1822. <button id="btn_suppcustcd" class="icon_search" style="left:146px; top:500px; width:16px; height:16px; ">
  1823. <caption/>
  1824. <script type="javascript" ev:event="DOMActivate">
  1825. <![CDATA[
  1826. rszfOpenPopUpListByWndName(ipt_suppcustnm,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd_conv");
  1827. model.refresh();
  1828. ]]>
  1829. </script>
  1830. </button>
  1831. <input id="ipt_suppcustcd" ref="/root/main/fixasetdet/fixasettmplist/suppcustcd" class="input_default" appearance="input" style="left:75px; top:500px; width:70px; height:19px; ">
  1832. <script type="javascript" ev:event="xforms-value-changed">
  1833. <![CDATA[
  1834. if(ipt_suppcustcd.value.length == 0)
  1835. ipt_suppcustnm.value = "";
  1836. else
  1837. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1838. cmb_instcd_conv.value + "," + "entrregno," + ipt_suppcustcd.value, "", "suppcustcd,suppcustnm",
  1839. ipt_suppcustcd, "SPRSD00220", "instcd","cmb_instcd_search");
  1840. model.refresh();
  1841. ]]>
  1842. </script>
  1843. </input>
  1844. <caption id="caption4" class="cell_1" visibility="visible" style="left:285px; top:420px; width:72px; height:19px; vertical-align:middle; ">SERIAL NO</caption>
  1845. <input id="ipt_mngtno" ref="/root/main/fixasetdet/fixasettmplist/mngtno" class="input_default" visibility="visible" appearance="input" style="left:358px; top:420px; width:200px; height:19px; "/>
  1846. <group id="grp_copy" visibility="hidden" style="left:0px; top:340px; width:189px; height:95px; border-color:#339966; border-style:solid; ">
  1847. <button id="button9" class="btn4_letter2" style="left:90px; top:65px; width:56px; height:22px; ">
  1848. <caption>취소</caption>
  1849. <script type="javascript" ev:event="DOMActivate">
  1850. <![CDATA[
  1851. grp_copy.visible = false;
  1852. ]]>
  1853. </script>
  1854. </button>
  1855. <button id="button10" class="btn4_letter2" style="left:20px; top:65px; width:56px; height:22px; ">
  1856. <caption>복사</caption>
  1857. <script type="javascript" ev:event="DOMActivate">
  1858. <![CDATA[
  1859. var vCnt = parseInt(model.getValue(ipt_copycnt.attribute("ref")));
  1860. var vFixasetcd = model.getValue(ipt_fixasetcd_copy.attribute("ref"));
  1861. var vFixasetcd0 = model.getValue(ipt_fixasetcd_copy.attribute("ref"));
  1862. if (vFixasetcd =="") {
  1863. alert("생성코드를 확인하십시요!!");
  1864. return;
  1865. }
  1866. if (vCnt < 1) {
  1867. alert("복사 수량을 확인하십시요!!");
  1868. return;
  1869. }
  1870. var fRow = grd_fixasetlist.row;
  1871. var tRow = grd_fixasettmplist.row;
  1872. vTarget1 = grd_fixasetlist.nodeset;
  1873. vTarget2 = grd_fixasettmplist.nodeset ;
  1874. // vTarget2 = "/root/main/fixasetdet/fixasettmplist"
  1875. //for (var i = 0 ; i < vCnt ; i++) {
  1876. // misfGridIUD(grd_fixasetlist, "A");
  1877. // addRow = grd_fixasetlist.rows - grd_fixasetlist.fixedRows;
  1878. // model.copyNode(vTarget1+ "[" + addRow + "]",vTarget1+ "[" + fRow + "]");
  1879. //}
  1880. if (model.getValue(vTarget2+ "[" + 1+ "]/fixasetcd") =="") {
  1881. alert("복사 대상을 먼저 선택해 주십시요!!");
  1882. return;
  1883. }
  1884. var vFixasetcd1 = vFixasetcd0.substr(0,7);
  1885. var vFixasetcd2 = parseFloat(vFixasetcd0.substr(7,4));
  1886. for (var i = 0 ; i < vCnt ; i++) {
  1887. misfGridIUD(grd_fixasettmplist, "A");
  1888. addRow2 = grd_fixasettmplist.rows - grd_fixasettmplist.fixedRows;
  1889. model.copyNode(vTarget2+ "[" + addRow2+ "]", vTarget2+ "[" + 1 + "]");
  1890. model.setValue(vTarget2+ "[" + addRow2+ "]/fixasetcd", vFixasetcd);
  1891. grd_fixasettmplist.rowStatus(addRow2) = "1";
  1892. // alert(vFixasetcd2);
  1893. vFixasetcd2++;
  1894. vFixasetcd = vFixasetcd1 + (""+vFixasetcd2).getLeftPad(4,"0");
  1895. }
  1896. grd_fixasettmplist.refresh();
  1897. misfSave("TXRFC00204");
  1898. model.setValue(ipt_copycnt.attribute("ref") ,"0");
  1899. model.setValue(ipt_fixasetcd_copy.attribute("ref"),"" );
  1900. grp_copy.refresh();
  1901. btn_search.dispatch("DOMActivate");
  1902. ]]>
  1903. </script>
  1904. </button>
  1905. <caption id="caption32" class="search_name" style="left:5px; top:12px; width:89px; height:17px; ">복사수량 :</caption>
  1906. <input id="ipt_fixasetcd_copy" ref="/root/init/fixasetcd" class="input_essential" appearance="input" style="left:5px; top:37px; width:95px; height:19px; text-align:left; "/>
  1907. <button id="button3" class="btn2_letter4" style="left:111px; top:36px; width:64px; height:19px; ">
  1908. <caption>코드생성</caption>
  1909. <script type="javascript" ev:event="DOMActivate">
  1910. <![CDATA[
  1911. fGoodCdCopy("C");
  1912. ]]>
  1913. </script>
  1914. </button>
  1915. <input id="ipt_copycnt" ref="/root/init/copycnt" class="input_default" appearance="input" style="left:95px; top:12px; width:80px; height:19px; "/>
  1916. </group>
  1917. <caption id="cap_goodflagengnm" class="cell_1" visibility="visible" style="left:285px; top:360px; width:72px; height:19px; vertical-align:middle; ">영문명칭</caption>
  1918. <input id="ipt_goodflagengnm" ref="/root/main/fixasetdet/fixasettmplist/goodflagengnm" class="input_essential" visibility="visible" appearance="input" style="left:358px; top:360px; width:200px; height:19px; "/>
  1919. <caption id="cap_asetflagmaineqmtflag" class="cell_1" visibility="visible" style="left:752px; top:420px; width:72px; height:19px; vertical-align:middle; ">관리구분</caption>
  1920. <caption id="cap_moveflag" class="cell_1" visibility="visible" style="left:752px; top:440px; width:72px; height:19px; vertical-align:middle; ">이동구분</caption>
  1921. <caption id="caption5" class="cell_1" visibility="visible" style="left:285px; top:500px; width:72px; height:19px; vertical-align:middle; ">외화액</caption>
  1922. <input id="ipt_incmpemtno" ref="/root/main/fixasetdet/fixasettmplist/incmpemtno" visibility="visible" appearance="input" style="left:1033px; top:540px; width:147px; height:19px; text-align:left; "/>
  1923. <caption id="cap_incmpemtno" class="cell_1" visibility="visible" style="left:960px; top:540px; width:72px; height:19px; vertical-align:middle; ">허가번호</caption>
  1924. <caption id="caption7" class="cell_1" style="left:2px; top:520px; width:72px; height:19px; vertical-align:middle; ">메인장비</caption>
  1925. <caption id="cap_usge" class="cell_1" visibility="visible" style="left:285px; top:440px; width:72px; height:19px; vertical-align:middle; ">용도</caption>
  1926. <caption id="caption10" class="cell_1" visibility="visible" style="left:285px; top:520px; width:72px; height:19px; vertical-align:middle; ">보증기간</caption>
  1927. <caption id="caption11" class="cell_1" visibility="visible" style="left:752px; top:400px; width:72px; height:19px; vertical-align:middle; ">내/외자</caption>
  1928. <caption id="caption12" class="cell_1" visibility="visible" style="left:752px; top:480px; width:72px; height:19px; vertical-align:middle; ">수익성평가</caption>
  1929. <caption id="caption13" class="cell_1" visibility="visible" style="left:752px; top:500px; width:72px; height:19px; vertical-align:middle; ">리스자산</caption>
  1930. <caption id="caption14" class="cell_1" visibility="visible" style="left:960px; top:340px; width:72px; height:19px; vertical-align:middle; ">메뉴얼장소</caption>
  1931. <caption id="caption15" class="cell_1" visibility="visible" style="left:960px; top:360px; width:72px; height:19px; vertical-align:middle; ">AS 대리점</caption>
  1932. <caption id="caption16" class="cell_1" visibility="visible" style="left:752px; top:460px; width:72px; height:19px; vertical-align:middle; ">예방점검</caption>
  1933. <caption id="caption17" class="cell_1" visibility="visible" style="left:960px; top:380px; width:72px; height:19px; vertical-align:middle; ">AS 연락처</caption>
  1934. <caption id="caption18" class="cell_1" visibility="visible" style="left:960px; top:420px; width:72px; height:19px; vertical-align:middle; ">상각구분</caption>
  1935. <caption id="caption23" class="cell_1" visibility="visible" style="left:960px; top:440px; width:72px; height:19px; vertical-align:middle; ">상각방법</caption>
  1936. <caption id="caption24" class="cell_1" visibility="visible" style="left:960px; top:480px; width:72px; height:19px; vertical-align:middle; ">상각율</caption>
  1937. <caption id="caption25" class="cell_1" visibility="visible" style="left:960px; top:520px; width:72px; height:19px; vertical-align:middle; ">완료일자</caption>
  1938. <caption id="caption26" class="cell_1" visibility="visible" style="left:960px; top:460px; width:72px; height:19px; vertical-align:middle; ">내용연수</caption>
  1939. <caption id="caption27" class="cell_1" visibility="visible" style="left:960px; top:500px; width:72px; height:19px; vertical-align:middle; ">상각후잔액</caption>
  1940. <select1 id="rdo_ntsubsidyyn" ref="/root/main/fixasetdet/fixasettmplist/ntsubsidyyn" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:640px; top:500px; width:107px; height:20px; background-color:transparent; border-style:none; ">
  1941. <choices>
  1942. <itemset nodeset="/root/init/ntsubsidyyn">
  1943. <label ref="label"/>
  1944. <value ref="value"/>
  1945. </itemset>
  1946. </choices>
  1947. </select1>
  1948. <caption id="cap_ntsubsidyyn" class="cell_1" visibility="visible" style="left:567px; top:500px; width:72px; height:19px; vertical-align:middle; ">국고보조</caption>
  1949. <select1 id="cmb_cntsyearno" ref="/root/main/fixasetdet/fixasettmplist/cntsyearno" visibility="visible" appearance="minimal" style="left:1033px; top:460px; width:147px; height:19px; ">
  1950. <choices>
  1951. <itemset>
  1952. <label/>
  1953. <value/>
  1954. </itemset>
  1955. </choices>
  1956. <script type="javascript" ev:event="xforms-value-changed">
  1957. <![CDATA[
  1958. // 20100217 [최형진] 감가상각관련
  1959. if(model.getValue(cmb_cntsyearno.attribute("ref")) != "")
  1960. {
  1961. radfGetRepayRate(rdo_repaymthd,cmb_cntsyearno,ipt_repayrate);
  1962. }
  1963. ]]>
  1964. </script>
  1965. </select1>
  1966. <caption id="cap_fixtrflag" class="cell_1" visibility="visible" style="left:960px; top:400px; width:72px; height:19px; vertical-align:middle; ">비품구분</caption>
  1967. <select1 id="rdo_fixtrflag" ref="/root/main/fixasetdet/fixasettmplist/fixtrflag" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:1033px; top:400px; width:147px; height:20px; background-color:transparent; border-style:none; ">
  1968. <choices>
  1969. <item>
  1970. <label>집기</label>
  1971. <value>1</value>
  1972. </item>
  1973. <item>
  1974. <label>일반</label>
  1975. <value>2</value>
  1976. </item>
  1977. </choices>
  1978. </select1>
  1979. <input id="ipt_etcaddamt" ref="/root/main/fixasetdet/fixasettmplist/etcaddamt" class="input_default" visibility="visible" format="#,###" appearance="input" style="left:826px; top:380px; width:123px; height:19px; text-align:right; "/>
  1980. <caption id="cap_etcaddamt" class="cell_1" visibility="visible" style="left:752px; top:380px; width:72px; height:19px; vertical-align:middle; ">부대비용</caption>
  1981. <button id="btn_serialnoupdate" class="btn4_letter4" visibility="visible" style="left:998px; top:94px; width:80px; height:22px; ">
  1982. <caption>S/N 등록</caption>
  1983. <script type="javascript" ev:event="DOMActivate">
  1984. <![CDATA[
  1985. var copycnt = 1;
  1986. for (var k = grd_fixasetlist.fixedRows ; k < grd_fixasetlist.rows; k++) {
  1987. if (grd_fixasetlist.valueMatrix(k, grd_fixasetlist.colRef("serialchk")) == "Y" ){
  1988. model.makeNode("/root/temp/fixasetlist[" + copycnt + "]");
  1989. //이현민
  1990. //model.makeValue grd_fixasetlist.nodeset+"["+ ( k - grd_fixasetlist.fixedRows + 1) + "]"
  1991. model.copyNode( "/root/temp/fixasetlist[" + copycnt + "]",grd_fixasetlist.nodeset+"["+ ( k - grd_fixasetlist.fixedRows + 1) + "]" );
  1992. model.makeValue("/root/temp/fixasetlist[" + copycnt + "]/pggubun","SMRFC00300" );
  1993. copycnt += 1;
  1994. }
  1995. }
  1996. modal("SPRSC02103", "", "", "", "popup", "root/temp", "/root/temp" );
  1997. for (var k = grd_fixasetlist.fixedRows ; k < grd_fixasetlist.rows; k++) {
  1998. model.removenode("/root/temp/fixasetlist" );
  1999. // btn_search.dispatch("DOMActivate");
  2000. }
  2001. ipt_vFlag.value = "";
  2002. ]]>
  2003. </script>
  2004. </button>
  2005. <input id="ipt_vFlag" visibility="hidden" style="left:515px; top:95px; width:25px; height:19px; "/>
  2006. <caption id="caption29" class="cell_1" style="left:285px; top:540px; width:72px; height:19px; vertical-align:middle; ">비용계정</caption>
  2007. <input id="ipt_amtacntnm" ref="/root/main/fixasetdet/fixasettmplist/amtacntnm" class="input_fix" appearance="input" style="left:450px; top:540px; width:108px; height:19px; ">
  2008. <script type="javascript" ev:event="xforms-value-changed">
  2009. <![CDATA[
  2010. if(ipt_amtacntnm.value.length == 0)
  2011. ipt_amtacnt.value = "";
  2012. else
  2013. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  2014. ",Y,2," + ipt_amtacntnm.value, "", "amtacnt,amtacntnm",
  2015. ipt_amtacntnm, "PPRAC00100_계정코드HELP", "useyn,amtacnt","Y,ipt_amtacnt");
  2016. model.refresh();
  2017. ]]>
  2018. </script>
  2019. </input>
  2020. <input id="ipt_amtacnt" ref="/root/main/fixasetdet/fixasettmplist/amtacnt" class="input_default" appearance="input" style="left:358px; top:540px; width:70px; height:19px; ">
  2021. <script type="javascript" ev:event="xforms-value-changed">
  2022. <![CDATA[
  2023. if(ipt_amtacnt.value.length == 0)
  2024. ipt_amtacntnm.value = "";
  2025. else
  2026. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  2027. model.refresh();
  2028. ]]>
  2029. </script>
  2030. </input>
  2031. <button id="btn_amtacnt" class="icon_search" style="left:431px; top:540px; width:16px; height:16px; ">
  2032. <caption/>
  2033. <script type="javascript" ev:event="DOMActivate">
  2034. <![CDATA[
  2035. rszfOpenPopUpListByWndName(ipt_acntcd,"","amtacnt,amtacntnm","PPRAC00100","","");
  2036. model.refresh();
  2037. ]]>
  2038. </script>
  2039. </button>
  2040. <button id="btn_chksrch" class="btn4_letter4" visibility="visible" style="left:915px; top:93px; width:80px; height:22px; ">
  2041. <caption>검수내역</caption>
  2042. <script type="javascript" ev:event="DOMActivate">
  2043. <![CDATA[
  2044. model.removenode("/root/copynode");
  2045. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  2046. model.makeNode("/root/copynode");
  2047. modal("SPRFC01000");
  2048. if (getParameter("para_purcchkdd") != ""){
  2049. model.setValue(ipt_goodflaghngnm.attribute("ref") , getParameter("para_goodnm" ));
  2050. model.setValue(ipt_goodflagengnm.attribute("ref") , getParameter("para_goodnm" ));
  2051. model.setValue(ipt_goodspec.attribute("ref") , getParameter("para_goodspect" ));
  2052. model.setValue(ipt_cntrdeptcd.attribute("ref") , getParameter("para_cntrdeptcd" ));
  2053. model.setValue(ipt_cntrdeptnm.attribute("ref") , getParameter("para_cntrdeptnm" ));
  2054. model.setValue(ipt_mngtdeptcd.attribute("ref") , getParameter("para_mngtdeptcd" ));
  2055. model.setValue(ipt_mngtdeptnm.attribute("ref") , getParameter("para_mngtdeptnm" ));
  2056. //model.setValue(ipt_tempmngtdeptcd.attribute("ref") , getParameter("para_tempmngtdeptcd"));
  2057. //model.setValue(ipt_tempmngtdeptnm.attribute("ref") , getParameter("para_tempmngtdeptnm"));
  2058. model.setValue(ipt_installplcecd.attribute("ref") , getParameter("para_installplcecd" ));
  2059. model.setValue(ipt_installplcenm.attribute("ref") , getParameter("para_installplcenm" ));
  2060. model.setValue(ipt_suplplcecd.attribute("ref") , getParameter("para_suplplcecd" ));
  2061. model.setValue(ipt_suplplcenm.attribute("ref") , getParameter("para_suplplcenm" ));
  2062. model.setValue(ipt_acntcd.attribute("ref") , getParameter("para_acntcd" ));
  2063. model.setValue(ipt_acntnm.attribute("ref") , getParameter("para_acntnm" ));
  2064. model.setValue(ipt_amtacnt.attribute("ref") , getParameter("para_amtacnt" ));
  2065. model.setValue(ipt_amtacntnm.attribute("ref") , getParameter("para_amtacntnm" ));
  2066. model.setValue(cmb_fixasetunit.attribute("ref") , getParameter("para_fixasetunit" ));
  2067. model.setValue(ipt_chkdd.attribute("ref") , getParameter("para_chkdd" ));
  2068. model.setValue(ipt_possnamt.attribute("ref") , getParameter("para_possnamt" ));
  2069. model.setValue(ipt_purcdmnddd.attribute("ref") , getParameter("para_purcdmnddd" ));
  2070. model.setValue(ipt_purcdmndno.attribute("ref") , getParameter("para_purcdmndno" ));
  2071. model.setValue(ipt_purcdmndseq.attribute("ref") , getParameter("para_purcdmndseq" ));
  2072. model.setValue(ipt_fixasetcdcnt.attribute("ref") , getParameter("para_fixasetcdcnt" ));
  2073. }
  2074. model.refresh()
  2075. ]]>
  2076. </script>
  2077. </button>
  2078. <caption id="caption30" class="search_name" style="left:760px; top:97px; width:89px; height:17px; ">자산수량 :</caption>
  2079. <input id="ipt_fixasetcdcnt" ref="/root/main/fixasetdet/fixasettmplist/fixasetcdcnt" class="input_default" appearance="input" style="left:855px; top:95px; width:50px; height:19px; text-align:right; "/>
  2080. <input id="ipt_purcdmnddd" ref="/root/main/fixasetdet/fixasettmplist/purcdmnddd" visibility="hidden" style="left:545px; top:95px; width:95px; height:19px; text-align:center; "/>
  2081. <input id="ipt_purcdmndno" ref="/root/main/fixasetdet/fixasettmplist/purcdmndno" visibility="hidden" style="left:645px; top:95px; width:55px; height:19px; text-align:center; "/>
  2082. <input id="ipt_purcdmndseq" ref="/root/main/fixasetdet/fixasettmplist/purcdmndseq" visibility="hidden" style="left:705px; top:95px; width:50px; height:19px; text-align:center; "/>
  2083. </group>
  2084. <group id="group1" style="left:0px; top:12; width:1195; height:27px; ">
  2085. <button id="btn_print" class="btn3_letter2" visibility="hidden" style="left:3px; top:3px; width:56px; height:22px; ">
  2086. <caption>출력</caption>
  2087. </button>
  2088. <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
  2089. <caption>초기화</caption>
  2090. <script type="javascript" ev:event="DOMActivate">
  2091. <![CDATA[
  2092. model.resetInstanceNode("/root/send");
  2093. fInitialize();
  2094. ]]>
  2095. </script>
  2096. </button>
  2097. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:3px; width:56px; height:22px; ">
  2098. <caption>저장</caption>
  2099. <script type="javascript" ev:event="DOMActivate">
  2100. <![CDATA[
  2101. /* 보수계약정보 */
  2102. if(!checkKeyColumn("grd_rfchmandlist")) return;
  2103. /* 구성품,소모품 */
  2104. if(!checkKeyColumn("grd_comps")) return;
  2105. /* 새로운 데이터를 입력시 */
  2106. if(grd_fixasetlist.rowStatus(grd_fixasetlist.row) == 1)
  2107. {
  2108. if(!isRequiredControls("ipt_fixasetcd")) return;
  2109. if(!isRequiredControls("ipt_goodflaghngnm")) return;
  2110. if(!isRequiredControls("ipt_installplcecd")) return;
  2111. model.copyNode("/root/main/list/fixasetdet/fixasettmplist", "/root/main/fixasetdet/fixasettmplist");
  2112. model.refresh();
  2113. //model.copyNode("/root/main/list/fixasetdet", "/root/main/fixasetdet");
  2114. misfSave("TXRFC00204");
  2115. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  2116. model.setValue(ipt_mngtdeptcd_search.attribute("ref") , model.getValue(ipt_mngtdeptcd.attribute("ref")));
  2117. model.setValue(ipt_mngtdeptnm_search.attribute("ref") , model.getValue(ipt_mngtdeptnm.attribute("ref")));
  2118. model.setValue(ipt_goodflaghngnm_search.attribute("ref") , model.getValue(ipt_goodflaghngnm.attribute("ref")));
  2119. model.setValue(cmb_lrgcd_search.attribute("ref") , model.getValue(cmb_lrgcd.attribute("ref")));
  2120. cmb_lrgcd_search.dispatch("xforms-value-changed");
  2121. model.setValue(cmb_mdlcd_search.attribute("ref") , model.getValue(cmb_mdlcd.attribute("ref")));
  2122. cmb_mdlcd_search.dispatch("xforms-value-changed");
  2123. model.setValue(cmb_smlcd_search.attribute("ref") , model.getValue(cmb_smlcd.attribute("ref")));
  2124. btn_search.dispatch("DOMActivate");
  2125. }
  2126. }
  2127. /* 조회된 데이터를 수정 할때 */
  2128. else if(grd_fixasetlist.rowStatus(grd_fixasetlist.row) == 0)
  2129. {
  2130. misfGridRowStatusChange(grd_fixasettmplist, "/root/main/list/fixasetdet" , "/root/main/fixasetdet");
  2131. model.refresh();
  2132. misfSave("TXRFC00204");
  2133. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  2134. btn_search.dispatch("DOMActivate");
  2135. }
  2136. }
  2137. grd_fixasetlist.dispatch("onrowchanged");
  2138. ]]>
  2139. </script>
  2140. </button>
  2141. <line id="line14" class="line_6" style="x1:0; y1:25; x2:1194; y2:25; "/>
  2142. </group>
  2143. </xhtml:body>
  2144. </xhtml:html>