SMRSI03101_장비코드입고.xrw 71 KB

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