SMRSI03200_장비입고관리(성의교정).xrw 88 KB

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