SMRSI03100_장비입고관리.xrw 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>장비입고관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <prcsstat>
  11. <label>신청</label>
  12. <value>A</value>
  13. <label>접수</label>
  14. <value>C</value>
  15. <label>발주</label>
  16. <value>P</value>
  17. <label>입고</label>
  18. <value>W</value>
  19. </prcsstat>
  20. <iopsnflag>
  21. <label>내자</label>
  22. <value>H</value>
  23. <label>외자</label>
  24. <value>F</value>
  25. </iopsnflag>
  26. <paycond>
  27. <label>정상결제</label>
  28. <value>1</value>
  29. <label>지불필</label>
  30. <value>2</value>
  31. </paycond>
  32. <acqtflag>
  33. <label>기증</label>
  34. <value>1</value>
  35. <label>매입</label>
  36. <value>2</value>
  37. <label>임차</label>
  38. <value>3</value>
  39. <label>지불필</label>
  40. <value>4</value>
  41. <label>공동관리</label>
  42. <value>5</value>
  43. <label>사후관리</label>
  44. <value>6</value>
  45. </acqtflag>
  46. </init>
  47. <main>
  48. <list>
  49. <eqmtplceordlist/>
  50. <eqmtplcewinlist/>
  51. <serialnolist>
  52. <fixasetcd/>
  53. <mngtno/>
  54. </serialnolist>
  55. <fixasetcd>
  56. <fixasetcdlist/>
  57. </fixasetcd>
  58. <lrg>
  59. <lrglist/>
  60. </lrg>
  61. <mdl>
  62. <mdllist/>
  63. </mdl>
  64. </list>
  65. <cp_node>
  66. <eqmtplcewinlist>
  67. <suplplcecd/>
  68. <suplplcenm/>
  69. <prodcmpy/>
  70. <prodcmpynm/>
  71. <prodplce/>
  72. <curncyunit>\</curncyunit>
  73. <calcdocukind/>
  74. <calcdocudd/>
  75. <installplcecd/>
  76. <installplcenm/>
  77. <plcewinqty/>
  78. <plcewinamt/>
  79. <forgncurncyamt/>
  80. <chgrate/>
  81. <wncurncyamt/>
  82. <forgnwinamt/>
  83. <flwgrntterm/>
  84. <installplcecmt/>
  85. </eqmtplcewinlist>
  86. </cp_node>
  87. </main>
  88. <send>
  89. <sendlist>
  90. <instcd/>
  91. <prcsstat/>
  92. <frmpurcacptdd/>
  93. <topurcacptdd/>
  94. <frmplceorddd/>
  95. <toplceorddd/>
  96. <reqdeptcd/>
  97. <reqdeptnm/>
  98. <purcacptflag/>
  99. <goodflag/>
  100. <suplplcecd/>
  101. <suplplcenm/>
  102. <goodflagengnm/>
  103. </sendlist>
  104. <sendlist_detail>
  105. <instcd/>
  106. <goodflag/>
  107. <windd/>
  108. <winno/>
  109. <winseqno/>
  110. <plceorddd/>
  111. <plceordseqno/>
  112. </sendlist_detail>
  113. <save>
  114. <eqmtplcewinlist/>
  115. <serialnolist/>
  116. </save>
  117. <lrgcd>
  118. <lrgcd/>
  119. <mdlcd/>
  120. <instcd/>
  121. <goodflag/>
  122. </lrgcd>
  123. </send>
  124. <hidden/>
  125. <temp/>
  126. </root>
  127. </instance>
  128. <script type="javascript" ev:event="xforms-ready">
  129. <![CDATA[
  130. fInitialize();
  131. misfMsterDetailSet(grd_eqmtplceordlist, null , "TRRSR04201", "N");
  132. misfMsterDetailSet(grd_eqmtplcewinlist,grd_eqmtplceordlist, "TRRSI03101", "Y");
  133. model.refresh();
  134. ]]>
  135. </script>
  136. <submission id="TRRSR04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/eqmtplceordlist"/>
  137. <submission id="TRRSI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist_detail" resultref="/root/main/list/eqmtplcewinlist"/>
  138. <submission id="TRRSI03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist_detail" resultref="/root/main/list/serialnolist"/>
  139. <submission id="TXRSI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  140. <submission id="TRRSD11104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/lrg"/>
  141. <submission id="TRRSD11105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/mdl"/>
  142. <submission id="TRRSD11106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/sml"/>
  143. <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/fixasetcd"/>
  144. <bind id="bind1" ref="ww" calculate="ww"/>
  145. </model>
  146. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  148. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  149. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  152. <script type="javascript">
  153. <![CDATA[
  154. function fInitialize() {
  155. misfGridInit(grd_eqmtplceordlist);
  156. misfGridInit(grd_eqmtplcewinlist);
  157. misfGridInit(grd_lrglist);
  158. misfGridInit(grd_mdllist);
  159. misfGridInit(grd_fixasetcdlist);
  160. rszfUserInstList(cmb_instcd_search,getUserInfo("userid"));
  161. // model.setValue(ipt_reqdeptcd_search.attribute("ref"), getUserInfo("dutplcecd"));
  162. // model.setValue(ipt_reqdeptnm_search.attribute("ref"), getUserInfo("dutplcenm"));
  163. model.setValue(cmb_instcd_search.attribute("ref") , getUserInfo("dutplceinstcd"));
  164. //misfComboComCdListMulti("R0047,R0035,R0116","cmb_curncyunit,cmb_prodplce,cmb_prcsstat_search");
  165. //2009.01.23. 기관코드 전체다이보이게 수정 김인성 선생님 요구사항 -김동환 수정
  166. misfComboComCdListMulti("R0047,R0035,R0116,Z0007,R0348","cmb_curncyunit,cmb_prodplce,cmb_prcsstat_search,cmb_instcd_search,cmb_flwgrntterm");
  167. rszfComboBugtList(cmb_bugtflag,getUserInfo("dutplceinstcd"));
  168. rszfComboAppendBlankChild("cmb_prcsstat_search");
  169. var curdate = getCurrentDate();
  170. var cvtdate = curdate.toDate("YYYYMMDD");
  171. model.setValue(ipt_frmplceorddd.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  172. model.setValue(ipt_toplceorddd.attribute("ref") ,curdate);
  173. // 구매 승인된 청구건만 보여준다.
  174. model.setValue(opt_purcacptflag.attribute("ref"), "Y");
  175. // hidden ( 물품구분 -> 의료장비 )
  176. model.setValue(ipt_goodflag.attribute("ref") ,"EQ");
  177. if(cmb_instcd_search.length> 0) {
  178. model.setValue(cmb_instcd_search.attribute("ref"), getUserInfo("dutplceinstcd"));
  179. }
  180. fAllControlDisabled('Y');
  181. btn_search.dispatch("DOMActivate");
  182. model.refresh();
  183. }
  184. function fCheckSaveData()
  185. {
  186. if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
  187. {
  188. messageBox("기관코드를 " ,"C002");
  189. model.setFocus("cmb_instcd");
  190. return false;
  191. }
  192. if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
  193. {
  194. messageBox("입고일자를 " ,"C001");
  195. model.setFocus("ipt_windd");
  196. return false;
  197. }
  198. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  199. {
  200. messageBox("대분류코드를 " ,"C001");
  201. model.setFocus("ipt_lrgcd");
  202. return false;
  203. }
  204. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  205. {
  206. messageBox("중분류코드를 " ,"C001");
  207. model.setFocus("ipt_mdlcd");
  208. return false;
  209. }
  210. if(model.getValue(rdo_iopsnflag.attribute("ref")).length== 0 )
  211. {
  212. messageBox("내외자구분을 " ,"C001");
  213. model.setFocus("rdo_iopsnflag");
  214. return false;
  215. }
  216. /*
  217. if(model.getValue(cmb_calcdocukind.attribute("ref")).length== 0 )
  218. {
  219. messageBox("세금계산서유형을 " ,"C001");
  220. model.setFocus("cmb_calcdocukind");
  221. return false;
  222. }
  223. */
  224. /*
  225. if(model.getValue(ipt_calcdocudd.attribute("ref")).length== 0 )
  226. {
  227. messageBox("세금계산서일자를 " ,"C001");
  228. model.setFocus("ipt_calcdocudd");
  229. return false;
  230. }
  231. */
  232. if(model.getValue(ipt_plcewinqty.attribute("ref")).length == 0 || model.getValue(ipt_plcewinqty.attribute("ref")) == 0 )
  233. {
  234. messageBox("입고수량을 " ,"C001");
  235. model.setFocus("ipt_plcewinqty");
  236. return false;
  237. }
  238. if(model.getValue(ipt_plcewinamt.attribute("ref")).length== 0 || model.getValue(ipt_plcewinamt.attribute("ref")) == 0 )
  239. {
  240. messageBox("원화금액을 " ,"C001");
  241. model.setFocus("ipt_plcewinamt");
  242. return false;
  243. }
  244. if(model.getValue(ipt_goodflagengnm.attribute("ref")).length== 0 )
  245. {
  246. messageBox("장비명을 " ,"C001");
  247. model.setFocus("ipt_goodflagengnm");
  248. return false;
  249. }
  250. // if(model.getValue(ipt_goodflaghngnm.attribute("ref")).length== 0 )
  251. // {
  252. // messageBox("장비명(한글)을 " ,"C001");
  253. // model.setFocus("ipt_goodflaghngnm");
  254. // return false;
  255. // }
  256. if(model.getValue(ipt_cntrdeptnm.attribute("ref")).length== 0 )
  257. {
  258. messageBox("귀속부서를 " ,"C001");
  259. model.setFocus("ipt_cntrdeptnm");
  260. return false;
  261. }
  262. if(model.getValue(ipt_mngtdeptnm.attribute("ref")).length== 0 )
  263. {
  264. messageBox("사용부서를 " ,"C001");
  265. model.setFocus("ipt_mngtdeptnm");
  266. return false;
  267. }
  268. if(model.getValue(ipt_tempmngtdeptnm.attribute("ref")).length== 0 )
  269. {
  270. messageBox("관리부서를 " ,"C001");
  271. model.setFocus("ipt_tempmngtdeptnm");
  272. return false;
  273. }
  274. if(model.getValue(cmb_acqtflag.attribute("ref")).length== 0 )
  275. {
  276. messageBox("도입구분을 " ,"C001");
  277. model.setFocus("cmb_acqtflag");
  278. return false;
  279. }
  280. if(model.getValue(cmb_paycond.attribute("ref")).length== 0 )
  281. {
  282. messageBox("결재조건을 " ,"C001");
  283. model.setFocus("cmb_paycond");
  284. return false;
  285. }
  286. return true;
  287. }
  288. /* 내/외자 선택에 의한 disable 처리 */
  289. function fSetDispByIopsnflag()
  290. {
  291. if(rdo_iopsnflag.value == "H")
  292. {
  293. ipt_plcewinamt.disabled="false";
  294. ipt_forgnwinamt.disabled="true";
  295. ipt_chgrate.disabled="true";
  296. //ipt_etccostrt.disabled="true";
  297. cmb_curncyunit.disabled="true";
  298. }
  299. else
  300. {
  301. //ipt_plcewinamt.disabled="true"; //의정부성모병원요청으로 외자인경우 수정가능하도록 disabled 막음
  302. ipt_forgnwinamt.disabled="false";
  303. ipt_chgrate.disabled="false";
  304. //ipt_etccostrt.disabled="false";
  305. cmb_curncyunit.disabled="false";
  306. }
  307. model.refresh();
  308. }
  309. function fSetAmt2() {
  310. if (grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("iopsnflag")) == 'H' )
  311. {
  312. var plcewinqty = Number(model.getValue(ipt_plcewinqty.attribute("ref"))); //수량
  313. var wncurncyamt = Number(model.getValue(ipt_wncurncyamt.attribute("ref"))); //원화단가
  314. model.setValue(ipt_plcewinamt.attribute("ref"), plcewinqty * wncurncyamt); //원화금액
  315. ipt_plcewinamt.refresh();//
  316. //
  317. model.setValue(ipt_forgnwinamt.attribute("ref"), "0"); // 외화금액
  318. //model.setValue(ipt_forgncurncyamt.attribute("ref"), "0"); // 외화단가
  319. }
  320. else if (grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("iopsnflag")) == 'F' )
  321. {//ipt_forgnwinamt
  322. var forgncurncyamt = Number(model.getValue(ipt_forgncurncyamt.attribute("ref")));
  323. var plcewinqty = Number(model.getValue(ipt_plcewinqty.attribute("ref")));
  324. model.setValue(ipt_forgnwinamt.attribute("ref"), forgncurncyamt * plcewinqty);
  325. ipt_forgnwinamt.refresh();
  326. model.setValue(ipt_plcewinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("costamt"))); // 원화금액
  327. //model.setValue(ipt_wncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("costamt"))
  328. // / ipt_plcewinqty.value ); // 원화단가
  329. ipt_plcewinamt.refresh();
  330. //model.setValue(ipt_forgnwinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("forgnordamt"))); // 외화금액
  331. //model.setValue(ipt_forgncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("forgnordamt"))
  332. // / ipt_plcewinqty.value ); // 외화단가
  333. }
  334. }
  335. function fSetAmt()
  336. {
  337. /*-----------------------------------------------------------------------------------------------------------
  338. * 내/외자에따른 금액 셋팅
  339. * 내자인경우 외자금액및단가 0 ,
  340. 원화금액 및 단가는 발주시 금액으로 계산
  341. * 외자인경우 외자금액및단가는 발주시금액
  342. 원화금액 및 단가는 외자관리 총금액 ( costamt) 로 계산
  343. -----------------------------------------------------------------------------------------------------------*/
  344. if (grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("iopsnflag")) == 'H' )
  345. {
  346. // var plcewinqty = Number(model.getValue(ipt_plcewinqty.attribute("ref"))); //수량
  347. // var wncurncyamt = Number(model.getValue(ipt_wncurncyamt.attribute("ref"))); //원화단가
  348. //
  349. // model.setValue(ipt_plcewinamt.attribute("ref"), plcewinqty * wncurncyamt); //원화금액
  350. // ipt_plcewinamt.refresh();
  351. //
  352. // model.setValue(ipt_plcewinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("plceordamt"))); // 원화금액
  353. model.setValue(ipt_wncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("plceordamt"))
  354. / ipt_plcewinqty.value ); // 원화단가
  355. model.setValue(ipt_forgnwinamt.attribute("ref"), "0"); // 외화금액
  356. //model.setValue(ipt_forgncurncyamt.attribute("ref"), "0"); // 외화단가
  357. }
  358. else if (grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("iopsnflag")) == 'F' )
  359. {
  360. model.setValue(ipt_plcewinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("costamt"))); // 원화금액 //입고내역에서 잘못가져오는 관계로 막음-다시요청으로 품
  361. //model.setValue(ipt_wncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("costamt"))
  362. // / ipt_plcewinqty.value ); // 원화단가
  363. model.setValue(ipt_forgnwinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("forgnordamt"))); // 외화금액
  364. //model.setValue(ipt_forgncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("forgnordamt"))
  365. // / ipt_plcewinqty.value ); // 외화단가
  366. }
  367. }
  368. function fSetAmtByIopsnflag()
  369. {
  370. if(rdo_iopsnflag.value == "H")
  371. {
  372. model.setValue(ipt_chgrate.attribute("ref"),"0" );
  373. model.setValue(ipt_forgnwinamt.attribute("ref"),"0" );
  374. //model.setValue(ipt_etccostrt.attribute("ref"),"0" );
  375. model.setValue(ipt_forgncurncyamt.attribute("ref"),"0" );
  376. var plcewinqty = model.getValue(ipt_plcewinqty.attribute("ref"));
  377. var plcewinamt = model.getValue(ipt_plcewinamt.attribute("ref"));
  378. model.setValue(ipt_wncurncyamt.attribute("ref"), plcewinamt/plcewinqty);
  379. }
  380. else
  381. {
  382. //의정부요청으로 외자일 경우에 원화를 직접입력할수 있도록 막음
  383. /* //
  384. // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
  385. var bugtwncurncy = ( parseInt(ipt_forgnwinamt.value) * parseInt(ipt_chgrate.value) ) +
  386. ( ( parseInt(ipt_forgnwinamt.value) * parseInt(ipt_chgrate.value) ) / 100 ) ;
  387. // ( ( parseInt(ipt_forgnwinamt.value) * parseInt(ipt_chgrate.value) * parseInt(ipt_etccostrt.value) ) / 100 ) ;
  388. var wncurncyamt = bugtwncurncy / ipt_plcewinqty.value;
  389. if (isNaN(bugtwncurncy))
  390. {
  391. model.setValue(ipt_plcewinamt.attribute("ref") ,"0" );
  392. model.setValue(ipt_wncurncyamt.attribute("ref"),"0" );
  393. }
  394. else
  395. {
  396. model.setValue(ipt_plcewinamt.attribute("ref") ,bugtwncurncy );
  397. model.setValue(ipt_wncurncyamt.attribute("ref"),wncurncyamt );
  398. }
  399. */
  400. }
  401. model.refresh();
  402. }
  403. function fSave()
  404. {
  405. var updtdata = getGridUpdateData(grd_serialno);
  406. model.setValue("/root/send/save/serialnolist", updtdata);
  407. misfGridRowStatusChange(grd_eqmtplcewinlist,"/root/main/list","/root/main/cp_node");
  408. model.refresh();
  409. misfSave("TXRSI03101");
  410. if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
  411. }
  412. /*--------------------------------------------------------------------------------*/
  413. /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
  414. /*--------------------------------------------------------------------------------*/
  415. function fAllControlDisabled(pDisableYn)
  416. {
  417. if(pDisableYn == "Y")
  418. {
  419. ipt_windd.disabled="true";
  420. ipt_winno.disabled="true";
  421. //ipt_lrgcd.disabled="true";
  422. //opt_lrgnm.disabled="true";
  423. //ipt_mdlcd.disabled="true";
  424. //opt_mdlnm.disabled="true";
  425. //ipt_smlcd.disabled="true";
  426. //opt_smlnm.disabled="true";
  427. ipt_suplplcecd.disabled="true";
  428. opt_suplplcenm.disabled="true";
  429. ipt_goodflagengnm.disabled="true";
  430. ipt_goodflaghngnm.disabled="true";
  431. ipt_goodnm.disabled="true";
  432. ipt_goodmodel.disabled="true";
  433. ipt_prodcmpy.disabled="true";
  434. ipt_prodcmpynm.disabled="true";
  435. cmb_prodplce.disabled="true";
  436. rdo_iopsnflag.disabled="true";
  437. //ipt_forgncurncyamt.disabled="true";
  438. cmb_curncyunit.disabled="true";
  439. //ipt_wncurncyamt.disabled="true";
  440. ipt_plcewinqty.disabled="true";
  441. ipt_forgnwinamt.disabled="true";
  442. ipt_chgrate.disabled="true";
  443. ipt_plcewinamt.disabled="true";
  444. //cmb_calcdocukind.disabled="true";
  445. //ipt_calcdocudd.disabled="true";
  446. ipt_incmpemtno.disabled="true";
  447. ipt_mtlmngtno.disabled="true";
  448. rdo_eqmtearnvaluyn.disabled="true";
  449. ipt_installplcecd.disabled="true";
  450. opt_installplcenm.disabled="true";
  451. btn_suplplcecd.disabled="true";
  452. btn_installplcecd.disabled="true";
  453. ipt_cntrdeptnm.disabled="true";
  454. ipt_mngtdeptnm.disabled="true";
  455. ipt_tempmngtdeptnm.disabled="true";
  456. ipt_installplcecmt.disabled="true";
  457. cmb_acqtflag.disabled="true";
  458. cmb_paycond.disabled="true";
  459. ipt_bugtyy.disabled="true";
  460. cmb_bugtflag.disabled="true";
  461. ipt_stdysubjnm.disabled="true";
  462. ipt_flwgrnttermfr.disabled="ture";
  463. ipt_flwgrnttermto.disabled="true";
  464. cmb_flwgrntterm.disabled="true";
  465. }
  466. else
  467. {
  468. ipt_windd.disabled="false";
  469. ipt_winno.disabled="false";
  470. //ipt_lrgcd.disabled="false";
  471. //opt_lrgnm.disabled="false";
  472. //ipt_mdlcd.disabled="false";
  473. //opt_mdlnm.disabled="false";
  474. //ipt_smlcd.disabled="false";
  475. //opt_smlnm.disabled="false";
  476. ipt_suplplcecd.disabled="false";
  477. opt_suplplcenm.disabled="false";
  478. ipt_goodflagengnm.disabled="false";
  479. ipt_goodflaghngnm.disabled="false";
  480. ipt_goodnm.disabled="false";
  481. ipt_goodmodel.disabled="false";
  482. ipt_prodcmpy.disabled="false";
  483. ipt_prodcmpynm.disabled="false";
  484. cmb_prodplce.disabled="false";
  485. rdo_iopsnflag.disabled="false";
  486. //ipt_forgncurncyamt.disabled="false";
  487. cmb_curncyunit.disabled="false";
  488. //ipt_wncurncyamt.disabled="false";
  489. ipt_plcewinqty.disabled="false";
  490. ipt_forgnwinamt.disabled="false";
  491. ipt_chgrate.disabled="false";
  492. ipt_plcewinamt.disabled="false";
  493. //cmb_calcdocukind.disabled="false";
  494. //ipt_calcdocudd.disabled="false";
  495. ipt_incmpemtno.disabled="false";
  496. ipt_mtlmngtno.disabled="false";
  497. rdo_eqmtearnvaluyn.disabled="false";
  498. ipt_installplcecd.disabled="false";
  499. opt_installplcenm.disabled="false";
  500. btn_suplplcecd.disabled="false";
  501. btn_installplcecd.disabled="false";
  502. ipt_cntrdeptnm.disabled="false";
  503. ipt_mngtdeptnm.disabled="false";
  504. ipt_tempmngtdeptnm.disabled="false";
  505. ipt_installplcecmt.disabled="false";
  506. cmb_acqtflag.disabled="false";
  507. cmb_paycond.disabled="false";
  508. ipt_bugtyy.disabled="false";
  509. cmb_bugtflag.disabled="false";
  510. ipt_stdysubjnm.disabled="false";
  511. ipt_flwgrnttermfr.disabled="false";
  512. ipt_flwgrnttermto.disabled="false";
  513. cmb_flwgrntterm.disabled="false";
  514. }
  515. model.refresh();
  516. }
  517. function fReplacefilename()
  518. {
  519. if(model.getValue(ipt_attfilepathnm.attribute("ref")).length !=0)
  520. {
  521. var attfilepathnm = model.getValue(ipt_attfilepathnm.attribute("ref"));
  522. var replacepath = "";
  523. attfilepathnmlist = attfilepathnm.split("\\");
  524. for(var i = 0 ; i < attfilepathnmlist.length ; i++ )
  525. {
  526. if(attfilepathnmlist[i].length>0)
  527. {
  528. if (i == 0) replacepath = replacepath + attfilepathnmlist[i];
  529. else replacepath = replacepath + '\\'+attfilepathnmlist[i];
  530. }
  531. }
  532. model.setValue(ipt_attfilepathnm.attribute("ref"),replacepath);
  533. model.refresh();
  534. }
  535. }
  536. function fMovecd(pgrid_name)
  537. {
  538. if(model.GetValue(ipt_windd.attribute("ref")).length == 0)
  539. {
  540. messageBox("행추가를 먼저하시거나 입고일자를 먼저 " ,"C002");
  541. //model.setFocus("cmb_instcd_search");
  542. return;
  543. }
  544. if(swh_select.selectedIndex == 1)
  545. {
  546. if(pgrid_name == "grd_mdllist")
  547. {
  548. if (grd_mdllist.row > 0)
  549. {
  550. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  551. /* 대분류 */
  552. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  553. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  554. /* 중분류*/
  555. model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
  556. model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
  557. /* 소분류 */
  558. model.setValue(ipt_smlcd.attribute("ref"), "");
  559. model.setValue(opt_smlnm.attribute("ref"), "");
  560. model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) );
  561. model.refresh();
  562. }
  563. }
  564. else if(pgrid_name == "grd_lrglist")
  565. {
  566. if (grd_mdllist.row > 0)
  567. {
  568. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  569. /* 대분류 */
  570. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  571. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  572. /* 중분류*/
  573. model.setValue(ipt_mdlcd.attribute("ref"), "");
  574. model.setValue(opt_mdlnm.attribute("ref"), "");
  575. /* 소분류 */
  576. model.setValue(ipt_smlcd.attribute("ref"), "");
  577. model.setValue(opt_smlnm.attribute("ref"), "");
  578. //model.setValue(ipt_goodnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")) );
  579. model.refresh();
  580. }
  581. }
  582. }
  583. else
  584. {
  585. if (grd_fixasetcdlist.row > 0)
  586. {
  587. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  588. /* 대분류 */
  589. model.setValue(ipt_lrgcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgcd")));
  590. model.setValue(opt_lrgnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgnm")));
  591. /* 중분류*/
  592. model.setValue(ipt_mdlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlcd")));
  593. model.setValue(opt_mdlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlnm")));
  594. model.refresh();
  595. }
  596. }
  597. }
  598. function fDefaultSetting()
  599. {
  600. model.setValue(ipt_windd.attribute("ref"), getCurrentDate());
  601. model.setValue(ipt_calcdocudd.attribute("ref"), getCurrentDate());
  602. model.setValue(ipt_lrgcd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("lrgcd")));
  603. model.setValue(opt_lrgnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("lrgnm")));
  604. model.setValue(ipt_mdlcd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("mdlcd")));
  605. model.setValue(opt_mdlnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("mdlnm")));
  606. model.setValue(ipt_suplplcecd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("suplplcecd")));
  607. model.setValue(opt_suplplcenm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("suplplcenm")));
  608. model.setValue(ipt_goodnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("goodflaghngnm")));
  609. model.setValue(ipt_goodflagengnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("goodnm")));
  610. model.setValue(ipt_goodflaghngnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("goodflaghngnm")));
  611. model.setValue(ipt_goodmodel.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("goodmodel")));
  612. model.setValue(ipt_prodcmpy.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("prodcmpy")));
  613. model.setValue(ipt_prodcmpynm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("prodcmpynm")));
  614. model.setValue(cmb_prodplce.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("prodplce")));
  615. model.setValue(rdo_iopsnflag.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("iopsnflag")));
  616. model.setValue(ipt_forgncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("forgncurncyamt")));
  617. model.setValue(ipt_wncurncyamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("wncurncyamt")));
  618. model.setValue(ipt_plcewinamt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("plceordamt")));
  619. model.setValue(cmb_curncyunit.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("curncyunit")));
  620. //model.setValue(ipt_chgrate.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("chgrate")));
  621. model.setValue(ipt_installplcecd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("installplcecd")));
  622. model.setValue(opt_installplcenm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("installplcenm")));
  623. model.setValue(ipt_cntrdeptcd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("cntrdeptcd")));
  624. model.setValue(ipt_cntrdeptnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("cntrdeptnm")));
  625. model.setValue(ipt_mngtdeptcd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("mngtdeptcd")));
  626. model.setValue(ipt_mngtdeptnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("mngtdeptnm")));
  627. model.setValue(ipt_tempmngtdeptcd.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("tempmngtdeptcd")));
  628. model.setValue(ipt_tempmngtdeptnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("tempmngtdeptnm")));
  629. model.setValue(ipt_bugtyy.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("bugtyy")));
  630. model.setValue(cmb_bugtflag.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("bugtflag")));
  631. model.setValue(ipt_stdysubjno.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("stdysubjno")));
  632. model.setValue(ipt_stdysubjnm.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("stdysubjnm")));
  633. model.setValue(ipt_plcewinqty.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("plceordqty")));
  634. model.setValue(ipt_installplcecmt.attribute("ref"), grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row , grd_eqmtplceordlist.colRef("installplcecmt")));
  635. fSetAmt()
  636. model.refresh();
  637. }
  638. ]]>
  639. </script>
  640. </xhtml:head>
  641. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  642. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  643. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:129px; height:14px; ">장비입고관리</caption>
  644. </group>
  645. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:742px; ">
  646. <input id="ipt_installplcecmt" ref="/root/main/cp_node/eqmtplcewinlist/installplcecmt" class="input_fix" appearance="input" style="left:443px; top:638px; width:398px; height:19px; "/>
  647. <caption id="caption38" class="cell_1" style="left:340px; top:635px; width:101px; height:23px; vertical-align:middle; ">설치장소(기타)</caption>
  648. <line id="line7" class="line_2" style="x1:340px; y1:633px; x2:739px; y2:633px; "/>
  649. <line id="line6" class="line_2" style="x1:340px; y1:418px; x2:845px; y2:418px; "/>
  650. <line id="line28" class="line_2" style="x1:340px; y1:514px; x2:845px; y2:514px; "/>
  651. <line id="line38" class="line_2" style="x1:340px; y1:585px; x2:845px; y2:585px; "/>
  652. <line id="line37" class="line_2" style="x1:340px; y1:561px; x2:845px; y2:561px; "/>
  653. <line id="line15" class="line_2" style="x1:340px; y1:372px; x2:845px; y2:372px; "/>
  654. <line id="line14" class="line_2" style="x1:340px; y1:395px; x2:845px; y2:395px; "/>
  655. <line id="line35" class="line_2" style="x1:340px; y1:537px; x2:845px; y2:537px; "/>
  656. <line id="line13" class="line_1" style="x1:340px; y1:346px; x2:845px; y2:346px; "/>
  657. <line id="line12" class="line_2" style="x1:340px; y1:682px; x2:845px; y2:682px; "/>
  658. <line id="line8" class="line_3" style="x1:340px; y1:731px; x2:845px; y2:731px; "/>
  659. <line id="line40" class="line_2" style="x1:340px; y1:609px; x2:845px; y2:609px; "/>
  660. <line id="line11" class="line_2" style="x1:340px; y1:633px; x2:845px; y2:633px; "/>
  661. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  662. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  663. <caption id="caption2" class="search_name" style="left:15px; top:9; width:86px; height:17px; ">기관코드 :</caption>
  664. <caption id="caption11" class="search_name" style="left:343px; top:9; width:86px; height:17px; ">청구부서 :</caption>
  665. <input id="ipt_reqdeptcd_search" ref="/root/send/sendlist/reqdeptcd" class="input_default" style="left:429px; top:8px; width:87px; height:19px; ">
  666. <script type="javascript" ev:event="xforms-value-changed">
  667. <![CDATA[
  668. if(ipt_reqdeptcd_search.value.length == 0)
  669. ipt_reqdeptnm_search.value = "";
  670. else
  671. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  672. "deptcd," + ipt_reqdeptcd_search.value, "", "reqdeptcd,reqdeptnm",
  673. ipt_reqdeptcd_search, "SPRPZ00200", "","");
  674. model.refresh();
  675. ]]>
  676. </script>
  677. </input>
  678. <button id="button5" class="icon_search" style="left:520px; top:8px; width:16px; height:16px; ">
  679. <caption/>
  680. <script type="javascript" ev:event="DOMActivate">
  681. <![CDATA[
  682. var recv_list = "reqdeptcd,reqdeptnm";
  683. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, cmb_instcd_search.value, "instcd") ;
  684. model.refresh();
  685. ]]>
  686. </script>
  687. </button>
  688. <input id="ipt_reqdeptnm_search" ref="/root/send/sendlist/reqdeptnm" class="input_fix" appearance="input" style="left:539px; top:8px; width:150px; height:19px; ">
  689. <script type="javascript" ev:event="xforms-value-changed">
  690. <![CDATA[
  691. if(ipt_reqdeptnm_search.value.length == 0)
  692. ipt_reqdeptcd_search.value = "";
  693. else
  694. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  695. "deptnm," + ipt_reqdeptnm_search.value, "", "reqdeptcd,reqdeptnm",
  696. ipt_reqdeptnm_search, "SPRPZ00200", "","");
  697. model.refresh();
  698. ]]>
  699. </script>
  700. </input>
  701. <line id="line30" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:52px; "/>
  702. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  703. <caption>조회</caption>
  704. <script type="javascript" ev:event="DOMActivate">
  705. <![CDATA[
  706. // 외자관리 grid clear 한다.
  707. model.resetInstanceNode("/root/main/cp_node");
  708. misfMsterDetailRetrieve();
  709. ]]>
  710. </script>
  711. </button>
  712. <input id="ipt_frmplceorddd" ref="/root/send/sendlist/frmplceorddd" class="input_default" inputtype="date" style="left:100px; top:34; width:90px; height:19px; "/>
  713. <caption id="caption19" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">발주일자 :</caption>
  714. <input id="ipt_toplceorddd" ref="/root/send/sendlist/toplceorddd" class="input_default" inputtype="date" style="left:212px; top:34; width:90px; height:19px; "/>
  715. <button id="bnt_suplplcecd" class="icon_search" style="left:520px; top:35px; width:16px; height:16px; ">
  716. <caption/>
  717. <script type="javascript" ev:event="DOMActivate">
  718. <![CDATA[
  719. rszfOpenPopUpListByWndName(ipt_suplplcecd_search,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd_search");
  720. model.refresh();
  721. btn_search.dispatch("DOMActivate");
  722. ]]>
  723. </script>
  724. </button>
  725. <caption id="caption3" class="search_name" style="left:346px; top:35; width:86px; height:17px; ">거 래 처 :</caption>
  726. <input id="ipt_suplplcecd_search" ref="/root/send/sendlist/suplplcecd" class="input_essential" maxlength="10" style="left:429px; top:34; width:87px; height:19px; ">
  727. <script type="javascript" ev:event="xforms-value-changed">
  728. <![CDATA[
  729. if(ipt_suplplcecd_search.value.length == 0)
  730. ipt_suplplcenm_search.value = "";
  731. else
  732. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd_search.attribute("ref")) +",," + model.getValue(ipt_suplplcecd_search.attribute("ref")),"","suplplcecd,suplplcenm" ,ipt_suplplcecd_search,"SPRSD00220","instcd","cmb_instcd_search");
  733. model.refresh();
  734. btn_search.dispatch("DOMActivate");
  735. ]]>
  736. </script>
  737. </input>
  738. <input id="ipt_suplplcenm_search" ref="/root/send/sendlist/suplplcenm" class="input_fix" appearance="input" style="left:539px; top:34; width:150px; height:19px; ">
  739. <script type="javascript" ev:event="xforms-value-changed">
  740. <![CDATA[
  741. if(ipt_suplplcenm_search.value.length == 0)
  742. ipt_suplplcecd_search.value = "";
  743. else
  744. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  745. model.getValue(cmb_instcd_search.attribute("ref")) +",," + model.getValue(ipt_suplplcenm_search.attribute("ref")),"","suplplcecd,suplplcenm" ,
  746. ipt_suplplcenm_search,"SPRSD00220","instcd","cmb_instcd_search");
  747. model.refresh();
  748. ]]>
  749. </script>
  750. </input>
  751. <caption id="caption5" class="search_name" style="left:724px; top:35; width:86px; height:17px; ">진행상태 :</caption>
  752. <select1 id="cmb_prcsstat_search" ref="/root/send/sendlist/prcsstat" class="combo_default" appearance="minimal" style="left:809px; top:34; width:98px; height:19px; ">
  753. <choices>
  754. <itemset nodeset="/root/init/prcsstat">
  755. <label ref="label"/>
  756. <value ref="value"/>
  757. </itemset>
  758. </choices>
  759. </select1>
  760. <caption id="caption14" class="search_no_b" style="left:195px; top:35px; width:12px; height:17px; ">~</caption>
  761. </group>
  762. <caption id="caption4" class="tit_2" style="left:5px; top:79px; width:157px; height:13px; ">장비발주 목록</caption>
  763. <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
  764. <line id="line3" class="line_1" style="x1:0px; y1:346px; x2:330px; y2:346px; "/>
  765. <caption id="caption9" class="tit_2" style="left:5px; top:331px; width:100px; height:13px; ">입고내역</caption>
  766. <input id="ipt_plcewinamt" ref="/root/main/cp_node/eqmtplcewinlist/plcewinamt" class="input_s_essential" format="#,###" style="left:736px; top:565px; width:109px; height:19px; text-align:right; ">
  767. <script type="javascript" ev:event="xforms-value-changed">
  768. <![CDATA[
  769. fSetAmtByIopsnflag();
  770. ]]>
  771. </script>
  772. </input>
  773. <output id="opt_installplcenm" ref="/root/main/cp_node/eqmtplcewinlist/installplcenm" class="output_fix" style="left:417px; top:613px; width:133px; height:19px; "/>
  774. <input id="ipt_installplcecd" ref="/root/main/cp_node/eqmtplcewinlist/installplcecd" visibility="hidden" style="left:735px; top:350px; width:22px; height:19px; "/>
  775. <caption id="caption61" class="tit_2" style="left:345px; top:331px; width:95px; height:13px; ">입고내역상세</caption>
  776. <input id="ipt_goodnm" ref="/root/main/cp_node/eqmtplcewinlist/goodnm" class="input_default" visibility="visible" style="left:422px; top:421px; width:423px; height:19px; "/>
  777. <input id="ipt_prodcmpy" ref="/root/main/cp_node/eqmtplcewinlist/prodcmpy" class="input_default" visibility="hidden" style="left:695px; top:390px; width:33px; height:19px; "/>
  778. <input id="ipt_chgrate" ref="/root/main/cp_node/eqmtplcewinlist/chgrate" class="input_default" visibility="hidden" style="left:790px; top:350px; width:24px; height:19px; text-align:right; ">
  779. <script type="javascript" ev:event="xforms-value-changed">
  780. <![CDATA[
  781. fSetAmtByIopsnflag();
  782. ]]>
  783. </script>
  784. </input>
  785. <caption id="caption30" class="cell_1" style="left:340px; top:444px; width:75px; height:23px; vertical-align:middle; ">품명(한글)</caption>
  786. <output id="opt_smlnm" ref="/root/main/cp_node/eqmtplcewinlist/smlnm" visibility="hidden" style="left:770px; top:353px; width:16px; height:19px; "/>
  787. <output id="opt_lrgnm" ref="/root/main/cp_node/eqmtplcewinlist/lrgnm" class="output_fix" style="left:474px; top:376px; width:149px; height:19px; "/>
  788. <input id="ipt_incmpemtno" ref="/root/main/cp_node/eqmtplcewinlist/incmpemtno" style="left:417px; top:662px; width:161px; height:19px; "/>
  789. <caption id="caption20" class="cell_1" style="left:340px; top:660px; width:75px; height:23px; vertical-align:middle; ">허가번호</caption>
  790. <input id="ipt_goodflagengnm" ref="/root/main/cp_node/eqmtplcewinlist/goodflagengnm" class="input_s_essential" style="left:422px; top:399px; width:423px; height:19px; "/>
  791. <caption id="caption32" class="cell_1" style="left:340px; top:563px; width:55px; height:23px; vertical-align:middle; ">외화단가</caption>
  792. <caption id="caption10" class="cell_1" style="left:340px; top:493px; width:80px; height:22px; vertical-align:middle; ">제조국</caption>
  793. <caption id="caption21" class="cell_1" style="left:340px; top:445px; width:80px; height:23px; vertical-align:middle; ">모델</caption>
  794. <input id="ipt_forgnwinamt" ref="/root/main/cp_node/eqmtplcewinlist/forgnwinamt" class="input_default" format="#,###" style="left:565px; top:565px; width:106px; height:19px; text-align:right; ">
  795. <script type="javascript" ev:event="xforms-value-changed">
  796. <![CDATA[
  797. fSetAmtByIopsnflag();
  798. ]]>
  799. </script>
  800. </input>
  801. <caption id="caption33" class="cell_1" style="left:340px; top:374px; width:80px; height:22px; vertical-align:middle; ">대/중분류</caption>
  802. <caption id="caption44" class="cell_1" style="left:340px; top:516px; width:80px; height:22px; vertical-align:middle; ">내자/외자</caption>
  803. <button id="btn_prodcmpy" class="icon_search" style="left:552px; top:470px; width:16px; height:16px; ">
  804. <caption/>
  805. <script type="javascript" ev:event="DOMActivate">
  806. <![CDATA[
  807. rszfOpenPopUpListByWndName(ipt_prodcmpy,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  808. model.refresh();
  809. ]]>
  810. </script>
  811. </button>
  812. <caption id="caption34" class="cell_1" style="left:340px; top:397px; width:80px; height:23px; vertical-align:middle; ">장비명(영문)</caption>
  813. <output id="opt_mdlnm" ref="/root/main/cp_node/eqmtplcewinlist/mdlnm" class="output_fix" style="left:679px; top:376px; width:166px; height:19px; "/>
  814. <caption id="caption12" class="cell_1" style="left:580px; top:493px; width:81px; height:22px; vertical-align:middle; ">거래처</caption>
  815. <input id="ipt_forgncurncyamt" ref="/root/main/cp_node/eqmtplcewinlist/forgncurncyamt" class="input_default" disabled="true" format="#,###" style="left:397px; top:565px; width:106px; height:19px; text-align:right; "/>
  816. <caption id="caption23" class="cell_1" style="left:505px; top:563px; width:58px; height:23px; vertical-align:middle; ">외화금액</caption>
  817. <input id="ipt_suplplcecd" ref="/root/main/cp_node/eqmtplcewinlist/suplplcecd" class="input_default" visibility="hidden" style="left:715px; top:350px; width:22px; height:19px; "/>
  818. <caption id="caption13" class="cell_1" style="left:340px; top:469px; width:80px; height:23px; vertical-align:middle; ">제조원</caption>
  819. <caption id="caption24" class="cell_1" style="left:674px; top:563px; width:60px; height:23px; vertical-align:middle; ">원화금액</caption>
  820. <input id="ipt_mtlmngtno" ref="/root/main/cp_node/eqmtplcewinlist/mtlmngtno" style="left:679px; top:662px; width:163px; height:19px; "/>
  821. <select1 id="rdo_iopsnflag" ref="/root/main/cp_node/eqmtplcewinlist/iopsnflag" class="input_s_essential" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:422px; top:518px; width:153px; height:15px; background-color:transparent; border-style:none; ">
  822. <choices>
  823. <itemset nodeset="/root/init/iopsnflag">
  824. <label ref="label"/>
  825. <value ref="value"/>
  826. </itemset>
  827. </choices>
  828. <script type="javascript" ev:event="xforms-value-changed">
  829. <![CDATA[
  830. fSetDispByIopsnflag();
  831. fSetAmtByIopsnflag();
  832. ]]>
  833. </script>
  834. </select1>
  835. <input id="ipt_goodmodel" ref="/root/main/cp_node/eqmtplcewinlist/goodmodel" class="input_default" style="left:422px; top:445px; width:158px; height:19px; "/>
  836. <input id="ipt_smlcd" ref="/root/main/cp_node/eqmtplcewinlist/smlcd" visibility="hidden" style="left:755px; top:353px; width:15px; height:19px; "/>
  837. <input id="ipt_lrgcd" ref="/root/main/cp_node/eqmtplcewinlist/lrgcd" class="input_s_essential" disabled="true" style="left:422px; top:376px; width:50px; height:19px; text-align:center; "/>
  838. <output id="opt_suplplcenm" ref="/root/main/cp_node/eqmtplcewinlist/suplplcenm" class="output_fix" appearance="output" style="left:664px; top:495px; width:161px; height:19px; "/>
  839. <caption id="caption26" class="cell_1" style="left:340px; top:611px; width:75px; height:23px; vertical-align:middle; ">설치장소</caption>
  840. <caption id="caption15" class="cell_1" style="left:674px; top:539px; width:60px; height:23px; vertical-align:middle; ">원화단가</caption>
  841. <input id="ipt_wncurncyamt" ref="/root/main/cp_node/eqmtplcewinlist/wncurncyamt" class="input_default" disabled="true" format="#,###" style="left:736px; top:541px; width:109px; height:19px; text-align:right; "/>
  842. <output id="ipt_prodcmpynm" ref="/root/main/cp_node/eqmtplcewinlist/prodcmpynm" class="output_fix" appearance="output" style="left:422px; top:470px; width:125px; height:19px; "/>
  843. <caption id="caption27" class="cell_1" style="left:582px; top:445px; width:80px; height:23px; vertical-align:middle; ">수익성평가</caption>
  844. <caption id="caption16" class="cell_1" style="left:580px; top:469px; width:81px; height:23px; vertical-align:middle; ">수량</caption>
  845. <caption id="caption28" class="cell_1" style="left:580px; top:660px; width:95px; height:23px; vertical-align:middle; ">분류번호(등급)</caption>
  846. <caption id="caption17" class="cell_1" style="left:580px; top:516px; width:81px; height:23px; vertical-align:middle; ">화폐단위</caption>
  847. <input id="ipt_mdlcd" ref="/root/main/cp_node/eqmtplcewinlist/mdlcd" class="input_s_essential" disabled="true" style="left:627px; top:376px; width:49px; height:19px; text-align:center; "/>
  848. <select1 id="cmb_curncyunit" ref="/root/main/cp_node/eqmtplcewinlist/curncyunit" class="combo_search" appearance="minimal" style="left:664px; top:518px; width:162px; height:19px; ">
  849. <choices>
  850. <itemset>
  851. <label/>
  852. <value/>
  853. </itemset>
  854. </choices>
  855. </select1>
  856. <select1 id="cmb_prodplce" ref="/root/main/cp_node/eqmtplcewinlist/prodplce" class="combo_search" appearance="minimal" style="left:422px; top:495px; width:153px; height:19px; ">
  857. <choices>
  858. <itemset>
  859. <label ref="label"/>
  860. <value ref="value"/>
  861. </itemset>
  862. </choices>
  863. </select1>
  864. <datagrid id="grd_eqmtplceordlist" nodeset="/root/main/list/eqmtplceordlist" visibility="visible" caption="상태^발주일자^번호^청구부서^품명^모델^발주량^원화금액^외화금액^외자비용^단위^제조원^거래처^내/외자^LC/NO^caption1^caption2^caption3^caption4" colsep="^" colwidth="45, 60, 38, 89, 198, 108, 50, 74, 61, 62, 48, 100, 93, 55, 85, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:99px; width:1195px; height:211px; ">
  865. <col ref="prcsstatnm"/>
  866. <col ref="plceorddd"/>
  867. <col ref="plceordseqno" style="text-align:center; "/>
  868. <col ref="reqdeptnm"/>
  869. <col ref="goodnm"/>
  870. <col ref="goodmodel"/>
  871. <col ref="plceordqty" format="#,###" style="text-align:right; "/>
  872. <col ref="plceordamt" format="#,###" style="text-align:right; "/>
  873. <col ref="forgnordamt" format="#,###" style="text-align:right; "/>
  874. <col ref="costamt" format="#,###" style="text-align:right; "/>
  875. <col ref="curncyunitnm"/>
  876. <col ref="prodcmpynm"/>
  877. <col ref="suplplcenm"/>
  878. <col ref="iopsnflagnm"/>
  879. <col ref="lcno"/>
  880. <col ref="instcd" visibility="hidden"/>
  881. <col ref="goodflag" visibility="hidden"/>
  882. <col ref="prodcmpy" visibility="hidden"/>
  883. <col ref="prodplce" visibility="hidden"/>
  884. <col ref="prodplcenm" visibility="hidden"/>
  885. <col ref="suppcustcd" visibility="hidden"/>
  886. <col ref="suppcustnm" visibility="hidden"/>
  887. <col ref="forgncurncyamt" visibility="hidden"/>
  888. <col ref="wncurncyamt"/>
  889. <col ref="trancond" visibility="hidden"/>
  890. <col ref="paycond" visibility="hidden"/>
  891. <col ref="delivedd" visibility="hidden"/>
  892. <col ref="grntterm" visibility="hidden"/>
  893. <col ref="testmthd" visibility="hidden"/>
  894. <col ref="cnsttndd" visibility="hidden"/>
  895. <col ref="prcsstat" visibility="hidden"/>
  896. <col ref="cmt" visibility="hidden"/>
  897. <col ref="slipdd" visibility="hidden"/>
  898. <col ref="slipno" visibility="hidden"/>
  899. <col ref="reqdd" visibility="hidden"/>
  900. <col ref="reqseqno" visibility="hidden"/>
  901. <col ref="iopsnflag" visibility="hidden"/>
  902. <col ref="etccostrt" visibility="hidden"/>
  903. <col ref="prcsstat" visibility="hidden"/>
  904. <col ref="lrgcd" visibility="hidden"/>
  905. <col ref="lrgnm" visibility="hidden"/>
  906. <col ref="mdlcd" visibility="hidden"/>
  907. <col ref="mdlnm" visibility="hidden"/>
  908. <col ref="smlcd" visibility="hidden"/>
  909. <col ref="smlnm" visibility="hidden"/>
  910. <col ref="reqdeptcd" visibility="hidden"/>
  911. <col ref="installplcecd" visibility="hidden"/>
  912. <col ref="installplcenm" visibility="hidden"/>
  913. <col ref="lcestbdd" visibility="hidden"/>
  914. <col ref="lcestbbank" visibility="hidden"/>
  915. <col ref="suplplcecd" visibility="hidden"/>
  916. <col ref="curncyunit" visibility="hidden"/>
  917. <col ref="chgrate" visibility="hidden"/>
  918. <col ref="bugtyy" visibility="hidden"/>
  919. <col ref="bugtflag" visibility="hidden"/>
  920. <col ref="stdysubjno" visibility="hidden"/>
  921. <col ref="cntrdeptcd" visibility="hidden"/>
  922. <col ref="cntrdeptnm" visibility="hidden"/>
  923. <col ref="mngtdeptcd" visibility="hidden"/>
  924. <col ref="mngtdeptnm" visibility="hidden"/>
  925. <col ref="stdysubjnm" visibility="hidden"/>
  926. <col ref="goodflaghngnm" visibility="hidden"/>
  927. <col ref="tempmngtdeptcd" visibility="hidden"/>
  928. <col ref="tempmngtdeptnm" visibility="hidden"/>
  929. <col ref="windd" visibility="hidden"/>
  930. <col ref="winno" visibility="hidden"/>
  931. <col ref="winseqno" visibility="hidden"/>
  932. <col ref="installplcecmt"/>
  933. <script type="javascript" ev:event="onrowchanged">
  934. <![CDATA[
  935. grp_serialno.visible = false;
  936. if( grd_eqmtplceordlist.rows >= grd_eqmtplceordlist.fixedRows ) {
  937. misfGridInit(grd_eqmtplcewinlist);
  938. model.resetInstanceNode("/root/main/cp_node/eqmtplcewinlist");
  939. model.setValue("/root/send/sendlist_detail/instcd" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("instcd")));
  940. model.setValue("/root/send/sendlist_detail/goodflag" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("goodflag")));
  941. model.setValue("/root/send/sendlist_detail/plceorddd" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("plceorddd")));
  942. model.setValue("/root/send/sendlist_detail/plceordseqno" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("plceordseqno")));
  943. model.setValue("/root/send/sendlist_detail/windd" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("windd")));
  944. model.setValue("/root/send/sendlist_detail/winno" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("winno")));
  945. model.setValue("/root/send/sendlist_detail/winseqno" , grd_eqmtplceordlist.valueMatrix(grd_eqmtplceordlist.row, grd_eqmtplceordlist.colRef("winseqno")));
  946. submit("TRRSI03101");
  947. submit("TRRSI03102");
  948. //misfMsterDetailRetrieve();
  949. fAllControlDisabled('Y')
  950. grd_eqmtplcewinlist.row = 1;
  951. grd_eqmtplcewinlist.dispatch("onrowchanged");
  952. model.refresh();
  953. }
  954. grd_eqmtplceordlist.dispatch("onmouseup");
  955. ]]>
  956. </script>
  957. <script type="javascript" ev:event="onaftersort">
  958. <![CDATA[
  959. grd_eqmtplceordlist.gridToInstance();
  960. ]]>
  961. </script>
  962. </datagrid>
  963. <datagrid id="grd_eqmtplcewinlist" nodeset="/root/main/list/eqmtplcewinlist" caption="실입고일^입고번호^입고번호^입고수량^단가^금액^대분류^중분류^소분류^품명^규격^모델^제조회사^설치장소^caption1^caption2" colsep="^" colwidth="80, 32, 40, 57, 62, 73, 105, 99, 102, 157, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:355px; width:330px; height:375px; ">
  964. <col ref="windd" format="YYYYMMDD"/>
  965. <col ref="winno" style="text-align:center; "/>
  966. <col ref="winseqno" style="text-align:center; "/>
  967. <col ref="plcewinqty" format="#,###" style="text-align:right; "/>
  968. <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
  969. <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
  970. <col ref="lrgnm" visibility="hidden"/>
  971. <col ref="mdlnm" visibility="hidden"/>
  972. <col ref="smlnm" visibility="hidden"/>
  973. <col ref="goodnm" visibility="hidden"/>
  974. <col ref="goodspec" visibility="hidden"/>
  975. <col ref="goodmodel" visibility="hidden"/>
  976. <col ref="prodcmpynm" visibility="hidden"/>
  977. <col ref="installplcecd" visibility="hidden"/>
  978. <col ref="installplcenm" visibility="hidden"/>
  979. <col ref="instcd" visibility="hidden"/>
  980. <col ref="goodflag" visibility="hidden"/>
  981. <col ref="calcdocukind" visibility="hidden"/>
  982. <col ref="calcdocudd" visibility="hidden"/>
  983. <col ref="lrgcd" visibility="hidden"/>
  984. <col ref="mdlcd" visibility="hidden"/>
  985. <col ref="smlcd" visibility="hidden"/>
  986. <col ref="goodflagengnm" visibility="hidden"/>
  987. <col ref="goodflaghngnm" visibility="hidden"/>
  988. <col ref="prodcmpy" visibility="hidden"/>
  989. <col ref="prodplce" visibility="hidden"/>
  990. <col ref="prodplcenm" visibility="hidden"/>
  991. <col ref="suplplcecd" visibility="hidden"/>
  992. <col ref="suplplcenm" visibility="hidden"/>
  993. <col ref="suppcustcd" visibility="hidden"/>
  994. <col ref="suppcustnm" visibility="hidden"/>
  995. <col ref="iopsnflag" visibility="hidden"/>
  996. <col ref="curncyunit" visibility="hidden"/>
  997. <col ref="forgncurncyamt" visibility="hidden"/>
  998. <col ref="chgrate" visibility="hidden"/>
  999. <col ref="forgnwinamt" visibility="hidden"/>
  1000. <col ref="bugtflag" visibility="hidden"/>
  1001. <col ref="stdysubjno" visibility="hidden"/>
  1002. <col ref="bugtyy" visibility="hidden"/>
  1003. <col ref="acntcd" visibility="hidden"/>
  1004. <col ref="cntrdeptcd" visibility="hidden"/>
  1005. <col ref="mngtdeptcd" visibility="hidden"/>
  1006. <col ref="incmpemtno" visibility="hidden"/>
  1007. <col ref="mtlmngtno" visibility="hidden"/>
  1008. <col ref="eqmtearnvaluyn" visibility="hidden"/>
  1009. <col ref="prcsstat" visibility="hidden"/>
  1010. <col ref="plceorddd" visibility="hidden"/>
  1011. <col ref="plceordseqno" visibility="hidden"/>
  1012. <col ref="slipdd" visibility="hidden"/>
  1013. <col ref="slipno" visibility="hidden"/>
  1014. <col ref="cmt" visibility="hidden"/>
  1015. <col ref="acqtflag" visibility="hidden"/>
  1016. <col ref="paycond" visibility="hidden"/>
  1017. <col ref="pre_plcewinqty" visibility="hidden"/>
  1018. <col ref="cntrdeptnm" visibility="hidden"/>
  1019. <col ref="mngtdeptnm" visibility="hidden"/>
  1020. <col ref="stdysubjnm" visibility="hidden"/>
  1021. <col ref="flwgrnttermfr" visibility="hidden"/>
  1022. <col ref="flwgrnttermto" visibility="hidden"/>
  1023. <col ref="tempmngtdeptnm" visibility="hidden"/>
  1024. <col ref="tempmngtdeptcd" visibility="hidden"/>
  1025. <col ref="installplcecmt" visibility="hidden"/>
  1026. <script type="javascript" ev:event="onrowchanged">
  1027. <![CDATA[
  1028. model.resetInstanceNode("/root/main/cp_node");
  1029. if( grd_eqmtplcewinlist.rows > grd_eqmtplcewinlist.fixedRows )
  1030. {
  1031. model.copyNode("/root/main/cp_node/eqmtplcewinlist" ,grd_eqmtplcewinlist.nodeset + "["+ grd_eqmtplcewinlist.row + "]");
  1032. // 입고된건은 어떠한 데이타도 수정할수 없다.
  1033. if (grd_eqmtplcewinlist.valueMatrix(grd_eqmtplcewinlist.row,grd_eqmtplcewinlist.colRef("winno")) == null || grd_eqmtplcewinlist.valueMatrix(grd_eqmtplcewinlist.row,grd_eqmtplcewinlist.colRef("winno")).length== 0)
  1034. fAllControlDisabled('N');
  1035. else fAllControlDisabled('Y');
  1036. }
  1037. model.refresh();
  1038. grd_eqmtplcewinlist.dispatch("onmouseup");
  1039. ]]>
  1040. </script>
  1041. </datagrid>
  1042. <select1 id="cmb_instcd_search" ref="/root/send/sendlist/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18px; width:202px; height:19px; ">
  1043. <choices>
  1044. <itemset>
  1045. <label/>
  1046. <value/>
  1047. </itemset>
  1048. </choices>
  1049. </select1>
  1050. <button id="btn_insert" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:738px; top:325px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  1051. <caption>행추가</caption>
  1052. <script type="javascript" ev:event="DOMActivate">
  1053. <![CDATA[
  1054. //if(fCheckRetrieveData(true) == false)return;
  1055. if (grd_eqmtplceordlist.rows-grd_eqmtplceordlist.fixedRows == 0) return;
  1056. misfGridIUD(grd_eqmtplcewinlist, "A");
  1057. grd_eqmtplcewinlist.dispatch("onrowchanged");
  1058. /*
  1059. model.copyNode("/root/main/cp_node/eqmtplcewinlist" ,grd_eqmtplcewinlist.nodeset + "["+ grd_eqmtplcewinlist.row + "]");
  1060. fAllControlDisabled('N')
  1061. */
  1062. fDefaultSetting();
  1063. fSetDispByIopsnflag();
  1064. /* 동일 장비명 검색 */
  1065. ipt_goodflagengnm_search.value = ipt_goodflagengnm.value;
  1066. btn_search_cd.dispatch("DOMActivate");
  1067. model.makeNode("/root/main/cp_node/eqmtplcewinlist/flwgrntterm");
  1068. model.resetInstanceNode("/root/main/list/serialnolist");
  1069. model.refresh();
  1070. ]]>
  1071. </script>
  1072. </button>
  1073. <button id="btn_delete" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:792px; top:325px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  1074. <caption>행삭제</caption>
  1075. <script type="javascript" ev:event="DOMActivate">
  1076. <![CDATA[
  1077. misfGridIUD(grd_eqmtplcewinlist, "D");
  1078. grd_eqmtplcewinlist.dispatch("onrowchanged");
  1079. ]]>
  1080. </script>
  1081. </button>
  1082. <caption id="caption1" class="tit_2" style="left:863px; top:331px; width:105px; height:13px; ">장비 명칭 검색</caption>
  1083. <line id="line2" class="line_1" style="x1:859px; y1:346px; x2:1178px; y2:346px; "/>
  1084. <button id="btn_search_cd" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1133px; top:325px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  1085. <caption>조회</caption>
  1086. <script type="javascript" ev:event="DOMActivate">
  1087. <![CDATA[
  1088. if(swh_select.selectedIndex == 1)
  1089. {
  1090. misfGridInit(grd_lrglist);
  1091. misfGridInit(grd_mdllist);
  1092. // misfGridInit(grd_smllist);
  1093. model.setValue("/root/send/lrgcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
  1094. model.setValue("/root/send/lrgcd/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
  1095. submit("TRRSD11104");
  1096. if(grd_lrglist.rows>1) {
  1097. grd_lrglist.row=1;
  1098. }
  1099. grd_lrglist.dispatch("onrowchanged");
  1100. }
  1101. else
  1102. {
  1103. misfGridInit(grd_fixasetcdlist);
  1104. submit("TRRFC00201");
  1105. }
  1106. grd_lrglist.rebuild();
  1107. ]]>
  1108. </script>
  1109. </button>
  1110. <button id="btn_installplcecd" class="icon_search" style="left:555px; top:612px; width:16px; height:16px; ">
  1111. <caption/>
  1112. <script type="javascript" ev:event="DOMActivate">
  1113. <![CDATA[
  1114. var recv_list = "installplcecd,installplcenm";
  1115. misfOpenPopUpList("19", ipt_installplcecd,"", recv_list) ;
  1116. model.refresh();
  1117. ]]>
  1118. </script>
  1119. </button>
  1120. <select1 id="rdo_eqmtearnvaluyn" ref="/root/main/cp_node/eqmtplcewinlist/eqmtearnvaluyn" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:664px; top:445px; width:148px; height:15px; background-color:transparent; border-style:none; ">
  1121. <choices>
  1122. <item>
  1123. <label>유</label>
  1124. <value>Y</value>
  1125. </item>
  1126. <item>
  1127. <label>무</label>
  1128. <value>N</value>
  1129. </item>
  1130. </choices>
  1131. </select1>
  1132. <input id="ipt_plcewinqty" ref="/root/main/cp_node/eqmtplcewinlist/plcewinqty" class="input_s_essential" format="#,###" style="left:664px; top:469px; width:63px; height:19px; text-align:right; ">
  1133. <script type="javascript" ev:event="xforms-value-changed">
  1134. <![CDATA[
  1135. //fSetAmtByIopsnflag();();
  1136. setInputNodeCurText();
  1137. fSetAmt2();
  1138. ]]>
  1139. </script>
  1140. </input>
  1141. <caption id="caption7" class="cell_1" style="left:340px; top:421px; width:80px; height:23px; vertical-align:middle; ">장비명(한글)</caption>
  1142. <caption id="caption8" class="cell_1" style="left:340px; top:684px; width:75px; height:23px; vertical-align:middle; ">도 입 구 분</caption>
  1143. <caption id="caption18" class="cell_1" style="left:580px; top:684px; width:81px; height:23px; vertical-align:middle; ">결재조건</caption>
  1144. <select1 id="cmb_acqtflag" ref="/root/main/cp_node/eqmtplcewinlist/acqtflag" class="combo_search" appearance="minimal" style="left:417px; top:686px; width:161px; height:19px; ">
  1145. <choices>
  1146. <item>
  1147. <label>기증</label>
  1148. <value>1</value>
  1149. </item>
  1150. <item>
  1151. <label>매입</label>
  1152. <value>2</value>
  1153. </item>
  1154. <item>
  1155. <label>임차</label>
  1156. <value>3</value>
  1157. </item>
  1158. <item>
  1159. <label>지불필</label>
  1160. <value>4</value>
  1161. </item>
  1162. <item>
  1163. <label>공동운영</label>
  1164. <value>5</value>
  1165. </item>
  1166. <item>
  1167. <label>사후관리</label>
  1168. <value>6</value>
  1169. </item>
  1170. </choices>
  1171. </select1>
  1172. <select1 id="cmb_paycond" ref="/root/main/cp_node/eqmtplcewinlist/paycond" class="combo_search" appearance="minimal" style="left:663px; top:686px; width:182px; height:19px; ">
  1173. <choices>
  1174. <itemset nodeset="/root/init/paycond">
  1175. <label ref="label"/>
  1176. <value ref="value"/>
  1177. </itemset>
  1178. </choices>
  1179. </select1>
  1180. <line id="line16" class="line_2" style="x1:339px; y1:492px; x2:844px; y2:492px; "/>
  1181. <line id="line18" class="line_2" style="x1:340px; y1:466px; x2:845px; y2:466px; "/>
  1182. <line id="line19" class="line_2" style="x1:340px; y1:442px; x2:845px; y2:442px; "/>
  1183. <button id="btn_suplplcecd" class="icon_search" style="left:829px; top:496px; width:16px; height:16px; ">
  1184. <caption/>
  1185. <script type="javascript" ev:event="DOMActivate">
  1186. <![CDATA[
  1187. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd_search");
  1188. model.refresh();
  1189. ]]>
  1190. </script>
  1191. </button>
  1192. <input id="ipt_cntrdeptnm" ref="/root/main/cp_node/eqmtplcewinlist/cntrdeptnm" class="input_s_essential" appearance="input" style="left:417px; top:590px; width:133px; height:19px; ">
  1193. <script type="javascript" ev:event="xforms-valid">
  1194. <![CDATA[
  1195. if(ipt_cntrdeptnm.value.length == 0)
  1196. ipt_cntrdeptcd.value = "";
  1197. else
  1198. misfValidationCheck("02", "", "cntrdeptcd,cntrdeptnm" );
  1199. model.refresh();
  1200. ]]>
  1201. </script>
  1202. </input>
  1203. <input id="ipt_cntrdeptcd" ref="/root/main/cp_node/eqmtplcewinlist/cntrdeptcd" class="input_s_essential" visibility="hidden" style="left:695px; top:350px; width:23px; height:19px; ">
  1204. <script type="javascript" ev:event="xforms-value-changed">
  1205. <![CDATA[
  1206. misfValidationCheck("02", "", "cntrdeptcd,cntrdeptnm" );
  1207. model.refresh();
  1208. model.setFocus("ipt_cntrdeptcd");
  1209. ]]>
  1210. </script>
  1211. </input>
  1212. <button id="btn_cntrdeptcd" class="icon_search" style="left:555px; top:590px; width:16px; height:16px; ">
  1213. <caption/>
  1214. <script type="javascript" ev:event="DOMActivate">
  1215. <![CDATA[
  1216. var recv_list = "cntrdeptcd,cntrdeptnm";
  1217. misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list) ;
  1218. model.refresh();
  1219. ]]>
  1220. </script>
  1221. </button>
  1222. <caption id="caption22" class="cell_1" style="left:340px; top:587px; width:75px; height:23px; vertical-align:middle; ">청구부서</caption>
  1223. <button id="btn_mngtdeptcd" class="icon_search" style="left:829px; top:591px; width:16px; height:16px; ">
  1224. <caption/>
  1225. <script type="javascript" ev:event="DOMActivate">
  1226. <![CDATA[
  1227. var recv_list = "mngtdeptcd,mngtdeptnm";
  1228. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
  1229. model.refresh();
  1230. ]]>
  1231. </script>
  1232. </button>
  1233. <input id="ipt_mngtdeptnm" ref="/root/main/cp_node/eqmtplcewinlist/mngtdeptnm" class="input_s_essential" appearance="input" style="left:663px; top:590px; width:157px; height:19px; ">
  1234. <script type="javascript" ev:event="xforms-value-changed">
  1235. <![CDATA[
  1236. if(ipt_mngtdeptnm.value.length == 0)
  1237. ipt_mngtdeptcd.value = "";
  1238. else
  1239. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm" );
  1240. model.refresh();
  1241. ]]>
  1242. </script>
  1243. </input>
  1244. <input id="ipt_mngtdeptcd" ref="/root/main/cp_node/eqmtplcewinlist/mngtdeptcd" class="input_s_essential" visibility="hidden" style="left:680px; top:350px; width:18px; height:19px; ">
  1245. <script type="javascript" ev:event="xforms-value-changed">
  1246. <![CDATA[
  1247. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm" );
  1248. model.refresh();
  1249. model.setFocus("ipt_mngtdeptcd");
  1250. ]]>
  1251. </script>
  1252. </input>
  1253. <caption id="caption25" class="cell_1" style="left:580px; top:587px; width:81px; height:23px; vertical-align:middle; ">사용부서</caption>
  1254. <input id="ipt_bugtyy" ref="/root/main/cp_node/eqmtplcewinlist/bugtyy" class="input_search" format="yyyy" style="left:417px; top:710px; width:50px; height:19px; text-align:center; "/>
  1255. <select1 id="cmb_bugtflag" ref="/root/main/cp_node/eqmtplcewinlist/bugtflag" class="combo_default" appearance="minimal" style="left:471px; top:710px; width:105px; height:19px; ">
  1256. <choices>
  1257. <itemset>
  1258. <label/>
  1259. <value/>
  1260. </itemset>
  1261. </choices>
  1262. </select1>
  1263. <caption id="caption35" class="cell_1" style="left:580px; top:708px; width:81px; height:23px; vertical-align:middle; ">연구과제</caption>
  1264. <input id="ipt_stdysubjnm" ref="/root/main/cp_node/eqmtplcewinlist/stdysubjnm" class="input_fix" appearance="input" style="left:663px; top:710px; width:157px; height:19px; ">
  1265. <script type="javascript" ev:event="xforms-value-changed">
  1266. <![CDATA[
  1267. if(ipt_stdysubjnm.value.length == 0)
  1268. ipt_stdysubjno.value = "";
  1269. else
  1270. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm",
  1271. opt_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value, "", "stdysubjno,stdysubjnm",
  1272. ipt_stdysubjnm, "SPRSD00260", "","");
  1273. model.refresh();
  1274. ]]>
  1275. </script>
  1276. </input>
  1277. <caption id="caption36" class="cell_1" style="left:340px; top:708px; width:75px; height:23px; vertical-align:middle; ">예산년/계정</caption>
  1278. <input id="ipt_stdysubjno" ref="/root/main/cp_node/eqmtplcewinlist/stdysubjno" class="input_search" visibility="hidden" maxlength="4" style="left:655px; top:350px; width:27px; height:19px; ">
  1279. <script type="javascript" ev:event="xforms-value-changed">
  1280. <![CDATA[
  1281. ]]>
  1282. </script>
  1283. </input>
  1284. <button id="btn_stdysubjnm" class="icon_search" style="left:825px; top:710px; width:16px; height:16px; ">
  1285. <caption/>
  1286. <script type="javascript" ev:event="DOMActivate">
  1287. <![CDATA[
  1288. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","opt_instcd");
  1289. model.refresh();
  1290. ]]>
  1291. </script>
  1292. </button>
  1293. <caption id="cap_flwgrnttermfr" class="cell_1" style="left:340px; top:539px; width:80px; height:23px; vertical-align:middle; ">하자보증기간</caption>
  1294. <input id="ipt_flwgrnttermfr" ref="/root/main/cp_node/eqmtplcewinlist/flwgrnttermfr" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:423px; top:541px; width:95px; height:19px; "/>
  1295. <input id="ipt_flwgrnttermto" ref="/root/main/cp_node/eqmtplcewinlist/flwgrnttermto" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:521px; top:541px; width:95px; height:19px; "/>
  1296. <input id="ipt_goodflaghngnm" ref="/root/main/cp_node/eqmtplcewinlist/goodflaghngnm" class="input_s_essential" visibility="hidden" style="left:740px; top:470px; width:25px; height:19px; "/>
  1297. <input id="ipt_calcdocudd" ref="/root/main/cp_node/eqmtplcewinlist/calcdocudd" class="input_s_essential" visibility="visible" inputtype="date" style="left:422px; top:353px; width:140px; height:19px; "/>
  1298. <caption id="caption31" class="cell_1" style="left:340px; top:351px; width:80px; height:22px; vertical-align:middle; ">계산서일자</caption>
  1299. <input id="ipt_windd" ref="/root/main/cp_node/eqmtplcewinlist/windd" class="input_s_essential" inputtype="date" style="left:627px; top:353px; width:115px; height:19px; "/>
  1300. <output id="ipt_winno" ref="/root/main/cp_node/eqmtplcewinlist/winno" class="output_fix" style="left:744px; top:353px; width:37px; height:19px; "/>
  1301. <output id="ipt_winseqno" ref="/root/main/cp_node/eqmtplcewinlist/winseqno" class="output_fix" style="left:805px; top:355px; width:37px; height:19px; "/>
  1302. <input id="input1" ref="/root/main/cp_node/eqmtplcewinlist/windd" class="input_s_essential" inputtype="date" style="left:648px; top:353px; width:115px; height:19px; "/>
  1303. <caption id="caption29" class="cell_1" style="left:571px; top:351px; width:75px; height:22px; vertical-align:middle; ">실입고일</caption>
  1304. <switch id="swh_select" style="left:855px; top:380px; width:335px; height:350px; ">
  1305. <case id="cse_fixasetcd">
  1306. <input id="ipt_goodflagengnm_search" ref="/root/send/sendlist/goodflagengnm" class="input_s_essential" style="left:5px; top:5px; width:320px; height:19px; "/>
  1307. <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="영문명칭^모델^제조원^대분류^대분류명^중분류^중분류명^소분류^소분류명" colsep="^" colwidth="117, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:320px; height:290px; ">
  1308. <col ref="goodflagengnm"/>
  1309. <col ref="goodmodel"/>
  1310. <col ref="prodcmpynm"/>
  1311. <col ref="lrgcd" visibility="hidden"/>
  1312. <col ref="lrgnm" visibility="hidden"/>
  1313. <col ref="mdlcd" visibility="hidden"/>
  1314. <col ref="mdlnm" visibility="hidden"/>
  1315. <col ref="smlcd" visibility="hidden"/>
  1316. <col ref="smlnm" visibility="hidden"/>
  1317. <script type="javascript" ev:event="ondblclick">
  1318. <![CDATA[
  1319. fMovecd();
  1320. ]]>
  1321. </script>
  1322. </datagrid>
  1323. </case>
  1324. <case id="cse_lrgcd" selected="true" style="left:0px; top:0px; width:583px; height:329px; ">
  1325. <datagrid id="grd_mdllist" nodeset="/root/main/list/mdl/mdllist" allowuserresize="false" caption="중분류코드^중분류명^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^물품구분^대분류코드^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시" colsep="^" colwidth="6, 135, 100, 120, 100, 120, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:162px; top:4px; width:170px; height:316px; ">
  1326. <col class="input_essential" disabled="true" ref="mdlcd" type="input" visibility="hidden"/>
  1327. <col ref="mdlnm" type="output"/>
  1328. <col ref="winacnt" visibility="hidden"/>
  1329. <col ref="winacntnm" visibility="hidden"/>
  1330. <col ref="amtacnt" visibility="hidden"/>
  1331. <col ref="amtacntnm" visibility="hidden"/>
  1332. <col ref="instcd" type="output" visibility="hidden"/>
  1333. <col ref="goodflag" type="output" visibility="hidden"/>
  1334. <col ref="lrgcd" type="output" visibility="hidden"/>
  1335. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1336. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1337. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1338. <script type="javascript" ev:event="onrowchanged">
  1339. <![CDATA[
  1340. model.setValue("/root/send/lrgcd/mdlcd" , grd_mdllist.valueMatrix(grd_mdllist.row, grd_mdllist.colRef("mdlcd")));
  1341. submit("TRRSD11106");
  1342. grd_mdllist.dispatch("onmouseup");
  1343. ]]>
  1344. </script>
  1345. <script type="javascript" ev:event="ondblclick">
  1346. <![CDATA[
  1347. // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
  1348. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
  1349. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_mdllist");
  1350. if (grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("deptaprvyn")) == "Y" || (grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("acptflag")) == "C" || grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("acptflag")) == "Y"))
  1351. {
  1352. }else{
  1353. fMovecd("grd_mdllist");
  1354. }
  1355. ]]>
  1356. </script>
  1357. </datagrid>
  1358. <datagrid id="grd_lrglist" nodeset="/root/main/list/lrg/lrglist" caption="대분류코드^대분류명^주관부서^주관부서^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="6, 103, 130, 135, 130, 135, 130, 135, 100, 100, 130, 120, 150, 120" ellipsis="true" extendlastcol="scroll" rowheader="update" rowsep="|" tooltip="true" style="left:1px; top:3px; width:159px; height:317px; ">
  1359. <col class="input_essential" disabled="true" ref="lrgcd" type="input" visibility="hidden"/>
  1360. <col ref="lrgnm" type="output"/>
  1361. <col ref="mainmngtdeptcd" visibility="hidden"/>
  1362. <col ref="mainmngtdeptnm" visibility="hidden"/>
  1363. <col ref="winacnt" visibility="hidden"/>
  1364. <col ref="winacntnm" visibility="hidden"/>
  1365. <col ref="amtacnt" visibility="hidden"/>
  1366. <col ref="amtacntnm" visibility="hidden"/>
  1367. <col ref="instcd" visibility="hidden"/>
  1368. <col ref="goodflag" visibility="hidden"/>
  1369. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1370. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1371. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1372. <col ref="lastupdtdt" type="output" visibility="hidden"/>
  1373. <script type="javascript" ev:event="onrowchanged">
  1374. <![CDATA[
  1375. model.setValue("/root/send/lrgcd/lrgcd" , grd_lrglist.valueMatrix(grd_lrglist.row, grd_lrglist.colRef("lrgcd")));
  1376. submit("TRRSD11105");
  1377. if(grd_mdllist.rows>1) {
  1378. grd_mdllist.row=1;
  1379. }
  1380. grd_mdllist.dispatch("onrowchanged");
  1381. grd_lrglist.dispatch("onmouseup");
  1382. ]]>
  1383. </script>
  1384. <script type="javascript" ev:event="ondblclick">
  1385. <![CDATA[
  1386. if (grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("deptaprvyn")) == "Y" || (grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("acptflag")) == "C" || grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row, grd_fixasetcdlist.colRef("acptflag")) == "Y"))
  1387. {
  1388. }else{
  1389. fMovecd("grd_lrglist");
  1390. }
  1391. ]]>
  1392. </script>
  1393. </datagrid>
  1394. </case>
  1395. </switch>
  1396. <button id="button4" class="btn_sw" group="tab" selected="true" style="left:855px; top:355px; width:144px; height:22px; ">
  1397. <caption>분류코드</caption>
  1398. <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
  1399. <script type="javascript" ev:event="DOMActivate">
  1400. <![CDATA[
  1401. //btn_exceldown.visible = false;
  1402. ]]>
  1403. </script>
  1404. </button>
  1405. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:998px; top:355px; width:144px; height:22px; ">
  1406. <caption>부서내 비품코드</caption>
  1407. <toggle case="cse_fixasetcd" ev:event="DOMActivate"/>
  1408. <script type="javascript" ev:event="DOMActivate">
  1409. <![CDATA[
  1410. // btn_exceldown.visible = true;
  1411. ]]>
  1412. </script>
  1413. </button>
  1414. <caption id="caption37" class="cell_1" style="left:580px; top:611px; width:81px; height:23px; vertical-align:middle; ">관리부서</caption>
  1415. <input id="ipt_tempmngtdeptnm" ref="/root/main/cp_node/eqmtplcewinlist/tempmngtdeptnm" class="input_s_essential" appearance="input" style="left:663px; top:613px; width:157px; height:19px; ">
  1416. <script type="javascript" ev:event="xforms-value-changed">
  1417. <![CDATA[
  1418. if(ipt_tempmngtdeptnm.value.length == 0)
  1419. ipt_tempmngtdeptcd.value = "";
  1420. else
  1421. misfValidationCheck("02", "", "tempmngtdeptcd,tempmngtdeptnm" );
  1422. model.refresh();
  1423. ]]>
  1424. </script>
  1425. </input>
  1426. <button id="button2" class="icon_search" style="left:829px; top:612px; width:16px; height:16px; ">
  1427. <caption/>
  1428. <script type="javascript" ev:event="DOMActivate">
  1429. <![CDATA[
  1430. var recv_list = "tempmngtdeptcd,tempmngtdeptnm";
  1431. misfOpenPopUpList("02", ipt_tempmngtdeptcd,"", recv_list) ;
  1432. model.refresh();
  1433. ]]>
  1434. </script>
  1435. </button>
  1436. <output id="output1" ref="/root/main/cp_node/eqmtplcewinlist/winno" class="output_fix" style="left:764px; top:353px; width:37px; height:19px; "/>
  1437. <output id="output2" ref="/root/main/cp_node/eqmtplcewinlist/winseqno" class="output_fix" style="left:805px; top:353px; width:37px; height:19px; "/>
  1438. <input id="ipt_tempmngtdeptcd" ref="/root/main/cp_node/eqmtplcewinlist/tempmngtdeptcd" class="input_s_essential" visibility="hidden" style="left:775px; top:469px; width:18px; height:19px; ">
  1439. <script type="javascript" ev:event="xforms-value-changed">
  1440. <![CDATA[
  1441. misfValidationCheck("02", "", "tempmngtdeptcd,tempmngtdeptnm" );
  1442. model.refresh();
  1443. model.setFocus("ipt_tempmngtdeptcd");
  1444. ]]>
  1445. </script>
  1446. </input>
  1447. <select1 id="cmb_flwgrntterm" ref="/root/main/cp_node/eqmtplcewinlist/flwgrntterm" class="input_search" appearance="minimal" style="left:618px; top:541px; width:53px; height:19px; ">
  1448. <choices>
  1449. <itemset>
  1450. <label/>
  1451. <value/>
  1452. </itemset>
  1453. </choices>
  1454. <script type="javascript" ev:event="xforms-value-changed">
  1455. <![CDATA[
  1456. var flwgrntterm = parseInt(model.getValue(cmb_flwgrntterm.attribute("ref")));
  1457. var flwgrnttermfr = model.getValue(ipt_flwgrnttermfr.attribute("ref"));
  1458. flwgrnttermfr_dt = flwgrnttermfr.toDate("YYYYMMDD");
  1459. model.setValue(ipt_flwgrnttermto.attribute("ref"), flwgrnttermfr_dt.getAddDate(+flwgrntterm,"Y").getDateFormat("YYYYMMDD"));
  1460. ipt_flwgrnttermto.refresh();
  1461. ]]>
  1462. </script>
  1463. </select1>
  1464. <button id="btn_serialno" class="btn2_letter7" visibility="visible" style="left:732px; top:469px; width:97px; height:19px; ">
  1465. <caption>serial no. 생성</caption>
  1466. <script type="javascript" ev:event="DOMActivate">
  1467. <![CDATA[
  1468. var chk_flag = false;
  1469. var plcewinqty = model.getValue(ipt_plcewinqty.attribute("ref"));
  1470. for (var i=1;i < grd_serialno.rows;i++){
  1471. if (!(grd_serialno.valueMatrix(i, grd_serialno.colRef("fixasetcd"))=="")){
  1472. chk_flag = true;
  1473. break;
  1474. }
  1475. }
  1476. grp_serialno.visible = true;
  1477. if (chk_flag==false){
  1478. grd_serialno.rowstatus(1) = 1;
  1479. }
  1480. if (chk_flag==false && grd_serialno.rows-1 < plcewinqty){
  1481. for (var i=0;grd_serialno.rows <= plcewinqty;i++){
  1482. grd_serialno.addRow();
  1483. }
  1484. }
  1485. ]]>
  1486. </script>
  1487. </button>
  1488. <group id="grp_serialno" visibility="hidden" showeffect="slidepositive 500" style="left:340px; top:350px; width:280px; height:350px; ">
  1489. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:280px; height:340px; border-color:#339966; border-width:2px; "/>
  1490. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:268px; height:27px; background-color:#fffbf2; border-color:#ffd799; "/>
  1491. <button id="btn_confirm" class="btn4_letter2" style="left:207px; top:5px; width:56px; height:22px; ">
  1492. <caption>확인</caption>
  1493. <script type="javascript" ev:event="DOMActivate">
  1494. <![CDATA[
  1495. grp_serialno.attribute("visibility") = "hidden" ;
  1496. ]]>
  1497. </script>
  1498. </button>
  1499. <datagrid id="grd_serialno" nodeset="/root/main/list/serialnolist" caption="자산코드^Serial No." colsep="^" colwidth="83, 126" ellipsis="true" extendlastcol="scroll" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:35px; width:260px; height:295px; ">
  1500. <col ref="fixasetcd" type="output"/>
  1501. <col ref="mngtno" type="input"/>
  1502. </datagrid>
  1503. </group>
  1504. </group>
  1505. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  1506. <button id="btn_print" class="btn6_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:0px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  1507. <caption>출력</caption>
  1508. <script type="javascript" ev:event="DOMActivate">
  1509. <![CDATA[
  1510. ]]>
  1511. </script>
  1512. </button>
  1513. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1070px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1514. <caption>저장</caption>
  1515. <script type="javascript" ev:event="DOMActivate">
  1516. <![CDATA[
  1517. if(fCheckSaveData() == false)return;
  1518. fSave();
  1519. //misfMsterDetailRetrieve();
  1520. ]]>
  1521. </script>
  1522. </button>
  1523. <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  1524. <caption>초기화</caption>
  1525. <script type="javascript" ev:event="DOMActivate">
  1526. <![CDATA[
  1527. fInitialize();
  1528. ]]>
  1529. </script>
  1530. </button>
  1531. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  1532. <line id="line9" class="line_2" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  1533. <output id="opt_purcacptflag" ref="/root/send/sendlist/purcacptflag" class="output_fix" visibility="hidden" appearance="output" style="left:835px; top:5px; width:78px; height:19px; "/>
  1534. <input id="ipt_goodflag" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:763px; top:5px; width:70px; height:19px; "/>
  1535. <button id="button8" class="btn4_letter6" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn4_letter6.gif" style="left:965px; top:3px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter6.gif; ">
  1536. <caption>거래처 관리</caption>
  1537. <script type="javascript" ev:event="DOMActivate">
  1538. <![CDATA[
  1539. modalUrl("../../../mis/acntbaseinfoweb/xrw/SMRAC00600_거래처관리.xrw", 1, 0, 0, "", "", "");
  1540. ]]>
  1541. </script>
  1542. </button>
  1543. </group>
  1544. </xhtml:body>
  1545. </xhtml:html>