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

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