SMRSD05300_비품청구 접수(성의교정).xrw 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>비품청구 접수(성의교정)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodreq>
  12. <goodreqlist/>
  13. <goodmaxreqno/>
  14. </goodreq>
  15. <goodreqno>
  16. <goodmaxreqno/>
  17. </goodreqno>
  18. <psgereq>
  19. <psgereqlist/>
  20. </psgereq>
  21. <lrg>
  22. <lrglist/>
  23. </lrg>
  24. <mdl>
  25. <mdllist/>
  26. </mdl>
  27. <sml>
  28. <smllist/>
  29. </sml>
  30. <fixasetcd>
  31. <fixasetcdlist/>
  32. </fixasetcd>
  33. </list>
  34. <goodreq>
  35. <goodreqlist>
  36. <reqdd/>
  37. <reqno/>
  38. <reqpsnnm/>
  39. <reqdeptnm/>
  40. <reqflagnm/>
  41. <reqflag/>
  42. <reqseqno/>
  43. <workflag/>
  44. <goodnm/>
  45. <goodspec/>
  46. <goodmodel/>
  47. <prodcmpycd/>
  48. <prodcmpynm/>
  49. <bugtcd/>
  50. <bugtnm/>
  51. <bugtyy/>
  52. <stdysubjno/>
  53. <reqdeptcd/>
  54. <installplcecd/>
  55. <reqpsnid/>
  56. <reqtm/>
  57. <delivedeptcd/>
  58. <delivehopedd/>
  59. <reqqty/>
  60. <requnit/>
  61. <attfilenm/>
  62. <attfilepathnm/>
  63. <makeyn/>
  64. <deptaprvyn/>
  65. <deptaprvdd/>
  66. <acptflag/>
  67. <acptdd/>
  68. <adjtqty/>
  69. <adjtrsn/>
  70. <acptcharid/>
  71. <plceorddd/>
  72. <plceordseqno/>
  73. <deliveqty/>
  74. <unwinresn/>
  75. <deliveprcsflag/>
  76. <cmt/>
  77. <instcd/>
  78. <installplcenm/>
  79. <lrgcd/>
  80. <lrgnm/>
  81. <mdlcd/>
  82. <mdlnm/>
  83. <smlcd/>
  84. <smlnm/>
  85. <fixasetcd/>
  86. <stdysubjnm/>
  87. <suplplcecd/>
  88. <suplplcenm/>
  89. <wncurncyamt/>
  90. <plceordamt/>
  91. <cntrdeptcd/>
  92. <cntrdeptcdnm/>
  93. <mngtdeptcd/>
  94. <mngtdeptcdnm/>
  95. <reqtel/>
  96. <studyinstcd/>
  97. <groupbugt/>
  98. <acpttype/>
  99. </goodreqlist>
  100. </goodreq>
  101. </main>
  102. <init>
  103. <purcacptflag>
  104. <label>승인</label>
  105. <value>Y</value>
  106. <label>부결</label>
  107. <value>C</value>
  108. <label>미승인</label>
  109. <value>N</value>
  110. </purcacptflag>
  111. <instcdgood/>
  112. <acpttype>
  113. <label>정상구매</label>
  114. <value>1</value>
  115. <label>자제제작</label>
  116. <value>2</value>
  117. <label>재고지급</label>
  118. <value>3</value>
  119. </acpttype>
  120. <acptflag>
  121. <label>미접수</label>
  122. <value>N</value>
  123. <label>접수</label>
  124. <value>Y</value>
  125. <label>종료</label>
  126. <value>C</value>
  127. </acptflag>
  128. </init>
  129. <send>
  130. <save>
  131. <goodreqlist/>
  132. </save>
  133. <goodreq>
  134. <instcd/>
  135. <reqdeptcd/>
  136. <reqdeptnm/>
  137. <reqflag/>
  138. <reqfrdd/>
  139. <deliveprcsflag/>
  140. <retrmaxreqnoyn/>
  141. <reqtodd/>
  142. <acptflag/>
  143. <studyinstcd/>
  144. <reqtempinstcd/>
  145. <checkinstcd/>
  146. <groupbugt/>
  147. </goodreq>
  148. <psgereq>
  149. <instcd/>
  150. <reqflag/>
  151. <reqdd/>
  152. <reqno/>
  153. <reqseqno/>
  154. </psgereq>
  155. <lrgcd>
  156. <lrgcd/>
  157. <mdlcd/>
  158. <instcd/>
  159. <goodflag/>
  160. </lrgcd>
  161. <fixasetcd>
  162. <instcd/>
  163. <goodflag/>
  164. <cntrdeptcd/>
  165. </fixasetcd>
  166. </send>
  167. </root>
  168. </instance>
  169. <bind id="plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" calculate="../wncurncyamt *../reqqty"/>
  170. <script type="javascript" ev:event="xforms-ready">
  171. <![CDATA[
  172. //화면 Control을 초기화한다
  173. fCheckAuth();
  174. fInitialize();
  175. ]]>
  176. </script>
  177. <submission id="TRRSD11102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
  178. <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  179. <submission id="TRRSD11103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/psgereq" resultref="/root/main/list/psgereq"/>
  180. <submission id="TRRSD11104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/lrg"/>
  181. <submission id="TRRSD11105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/mdl"/>
  182. <submission id="TRRSD11106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/sml"/>
  183. <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetcd" resultref="/root/main/list/fixasetcd"/>
  184. <submission id="TRRSD05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  185. </model>
  186. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  189. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  190. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  191. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  192. <script type="javascript">
  193. <![CDATA[
  194. function fInitialize()
  195. {
  196. model.resetInstanceNode("/root/send");
  197. //misfComboComCdListMulti("Z0007,R0032","cmb_instcd_search,cmb_requnit");
  198. misfComboComCdListMulti("R0032,R0246,Z0007,R0316","cmb_requnit,cmb_workflag,cmb_studyinstcd,cmb_fundorigin");
  199. rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
  200. rszfUserReqInstList(cmb_instcd_search,getUserInfo("userid"),"3","B"); // preqpgmgubun : '3' : 비품., 'C' :청구
  201. //rszfComboAppendBlankChild("cmb_deliveprceflag");
  202. misfGridInit(grd_goodreq);
  203. misfGridInit(grd_psgelist);
  204. misfGridInit(grd_lrglist);
  205. misfGridInit(grd_mdllist);
  206. misfGridInit(grd_smllist);
  207. misfGridInit(grd_fixasetcdlist);
  208. fAllControlDisabled('Y');
  209. misfMsterDetailSet(grd_goodreq,null, "TRRSD05101" ,"Y");
  210. misfMsterDetailSet(grd_psgelist,grd_goodreq, "TRRSD11103" ,"Y");
  211. addComboItem( "cmb_studyinstcd", "전체", "", "above");
  212. var curdate = getCurrentDate();
  213. var cvtdate = curdate.toDate("YYYYMMDD");
  214. model.setValue(ipt_reqfrdd_search.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  215. model.setValue(ipt_reqtodd_search.attribute("ref") , curdate);
  216. //getUserInfo("dutplceinstcd")
  217. //if(cmb_instcd.length > 0) cmb_instcd.selectedindex= 0;
  218. model.setValue(cmb_instcd_search.attribute("ref") , getUserInfo("dutplceinstcd"));
  219. //model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  220. //model.setValue(ipt_reqdeptcd_search.attribute("ref") , "4080102000");
  221. //model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  222. if(cmb_instcd_search.value=='032'){
  223. rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
  224. }else{
  225. rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
  226. }
  227. // if(cmb_instcd_search.value != '103')
  228. // {
  229. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
  230. // }else{
  231. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
  232. // }
  233. // hidden
  234. model.setValue(cmb_reqflag_search.attribute("ref") , "D");
  235. model.setValue(ipt_goodflag.attribute("ref") , "G");
  236. model.setValue(opt_instcdgood.attribute("ref") , "103"); // [2008.01.28 HBH] 거래처는 성의교정꺼루.
  237. fSetReqAuth();
  238. cmb_instcd_search.dispatch("xforms-value-changed");
  239. btn_search.dispatch("DOMActivate");
  240. model.refresh();
  241. }
  242. // 관리부서, 귀속부서, 설치장소 조회시.. Default 값 기관코드를 넘겨주게 됩니다. 그 기관코드의 값을 설정.
  243. function fInstcdCheckValue()
  244. {
  245. if(cmb_instcd_search.value == '103' || cmb_instcd_search.value == '032')
  246. {
  247. opt_checkinstcd.value = cmb_instcd_search.value;
  248. }else{
  249. opt_checkinstcd.value = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("studyinstcd"));
  250. }
  251. }
  252. function fCheckAuth() {
  253. btn_search.disabled = !checkAuth("R") ;
  254. //btn_save.disabled = !checkAuth("X") ;
  255. }
  256. function fSetControlDisabled(pDisabled)
  257. {
  258. ipt_reqno.disabled = pDisabled;
  259. }
  260. function fSetReqAuth()
  261. {
  262. // 궈한체크로직이 구매부서기준으로 체크해야한다. 잘못되어 있었다...HBH
  263. rszfGetReqFlagRurcAuthInfo(model.getValue(cmb_instcd_search.attribute("ref")), model.getValue(cmb_reqflag_search.attribute("ref")) , getUserInfo("dutplcecd"), getUserInfo("userid"));
  264. //rszfGetPurcReqAuthInfo(model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_reqflag.attribute("ref")) , getUserInfo("dutplcecd"), getUserInfo("userid"));
  265. //if(rszfGetPurcAuthInfoByCond("reqauth") != "Y")
  266. if ( model.getValue("/root/init/reqflagpurcarth/reqflagpurcarthlist/purcarthyn") == "Y")
  267. {
  268. //btn_saverece.disabled = true;
  269. brn_all_check.disabled = false;
  270. btn_purcaprv.disabled = false;
  271. }
  272. else
  273. {
  274. brn_all_check.disabled = true;
  275. btn_purcaprv.disabled = true;
  276. }
  277. model.refresh();
  278. }
  279. //예산 계정 Disabled 유무 설정!!
  280. function fDisabledComboflag()
  281. {
  282. if( cmb_instcd_search.value == '103' || cmb_instcd_search.value == '032')
  283. {
  284. cmb_groupbugt.disabled = false;
  285. // if(cmb_groupbugt.value == '')
  286. // {
  287. // cmb_bugtcd.disabled = true;
  288. // }else
  289. // {
  290. // cmb_bugtcd.disabled = false;
  291. // }
  292. }else{
  293. cmb_groupbugt.disabled = true;
  294. // cmb_bugtcd.disabled = false;
  295. }
  296. }
  297. /*--------------------------------------------------------------------------------*/
  298. /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
  299. /*--------------------------------------------------------------------------------*/
  300. function fAllControlDisabled(pDisableYn)
  301. {
  302. if(pDisableYn == "Y")
  303. {
  304. ipt_goodnm.disabled ="true";
  305. ipt_goodspec.disabled ="true";
  306. ipt_goodmodel.disabled ="true";
  307. cmb_workflag.disabled ="true";
  308. rbo_makeyn.disabled ="true";
  309. cmb_requnit.disabled ="true";
  310. ipt_prodcmpycd.disabled ="true";
  311. ipt_reqqty.disabled ="true";
  312. // ipt_installplcecd.disabled ="true";
  313. ipt_bugtyy.disabled ="true";
  314. // ipt_attfilename.disabled ="true";
  315. ipt_attfilepathnm.disabled ="true";
  316. /*-----------------------------------------------------------------*/
  317. /* 하단은 disable 해놓구 우측에서 선택하게한다. */
  318. /*-----------------------------------------------------------------*/
  319. ipt_lrgcd.disabled ="true";
  320. opt_lrgnm.disabled ="true";
  321. ipt_mdlcd.disabled ="true";
  322. opt_mdlnm.disabled ="true";
  323. ipt_smlcd.disabled ="true";
  324. opt_smlnm.disabled ="true";
  325. ipt_fixasetcd.disabled ="true";
  326. btn_addfile.disabled="true";
  327. ipt_acptcharid.disabled="true";
  328. ipt_acptdd.disabled="true";
  329. cmb_acptflag.disabled="true";
  330. ipt_adjtqty.disabled="true";
  331. ipt_adjtrsn.disabled="true";
  332. ipt_cmt.disabled="true";
  333. cmb_groupbugt.disabled="true";
  334. // cmb_bugtcd.disabled="true";
  335. ipt_stdysubjno.disabled="true";
  336. ipt_suplplcecd.disabled="true";
  337. btn_suplplcecd.disabled="true";
  338. btn_prodcmpycd.disabled="true";
  339. btn_installplcecd.disabled="true";
  340. btn_stdysubjnm.disabled="true";
  341. ipt_stdysubjnm.disabled="true";
  342. ipt_installplcenm.disabled="true";
  343. ipt_prodcmpynm.disabled="true";
  344. ipt_suplplcenm.disabled="true";
  345. ipt_wncurncyamt.disabled="true";
  346. ipt_installplcecd.disabled="true";
  347. ipt_cntrdeptcd.disabled ="true";
  348. btn_cntrdeptcd.disabled ="true";
  349. ipt_cntrdeptcdnm.disabled ="true";
  350. ipt_mngtdeptcd.disabled ="true";
  351. btn_mngtdeptcd.disabled ="true";
  352. ipt_mngtdeptcdnm.disabled ="true";
  353. ipt_bugtnm.disabled="true";
  354. btn_bugtcd.disabled="true";
  355. }
  356. else
  357. {
  358. ipt_goodnm.disabled ="false";
  359. ipt_goodspec.disabled ="false";
  360. ipt_goodmodel.disabled ="false";
  361. cmb_workflag.disabled ="false";
  362. rbo_makeyn.disabled ="false";
  363. cmb_requnit.disabled ="false";
  364. ipt_prodcmpycd.disabled ="false";
  365. ipt_reqqty.disabled ="false";
  366. ipt_installplcecd.disabled ="false";
  367. ipt_bugtyy.disabled ="false";
  368. // ipt_attfilename.disabled ="false";
  369. ipt_attfilepathnm.disabled ="false";
  370. btn_addfile.disabled="false";
  371. ipt_acptcharid.disabled="false";
  372. ipt_acptdd.disabled="false";
  373. cmb_acptflag.disabled="false";
  374. ipt_adjtqty.disabled="false";
  375. ipt_adjtrsn.disabled="false";
  376. // cmb_groupbugt.disabled="false";
  377. // cmb_bugtcd.disabled="false";
  378. fDisabledComboflag();
  379. ipt_cmt.disabled="false";
  380. ipt_stdysubjno.disabled="false";
  381. ipt_suplplcecd.disabled="false";
  382. btn_suplplcecd.disabled="false";
  383. btn_prodcmpycd.disabled="false";
  384. btn_installplcecd.disabled="false";
  385. btn_stdysubjnm.disabled="false";
  386. ipt_stdysubjnm.disabled="false";
  387. ipt_installplcenm.disabled="false";
  388. ipt_prodcmpynm.disabled="false";
  389. ipt_suplplcenm.disabled="false";
  390. ipt_wncurncyamt.disabled="false";
  391. ipt_installplcecd.disabled="false";
  392. ipt_cntrdeptcd.disabled ="false";
  393. btn_cntrdeptcd.disabled ="false";
  394. ipt_cntrdeptcdnm.disabled ="false";
  395. ipt_mngtdeptcd.disabled ="false";
  396. btn_mngtdeptcd.disabled ="false";
  397. ipt_mngtdeptcdnm.disabled ="false";
  398. ipt_bugtnm.disabled="false";
  399. btn_bugtcd.disabled="false";
  400. }
  401. model.refresh();
  402. }
  403. function fMovecd(pgrid_name)
  404. {
  405. if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
  406. {
  407. messageBox("입력오류 " ,"E008"); // 입력오류입니다.
  408. //model.setFocus("cmb_instcd_search");
  409. return;
  410. }
  411. else if(model.GetValue(ipt_deliveprcsflag.attribute("ref")) != "1")
  412. {
  413. messageBox("'청구'진행상태를 " ,"E003"); // 진행상태를 초과하였습니다.
  414. //model.setFocus("cmb_instcd_search");
  415. return;
  416. }
  417. if(swh_select.selectedIndex == 0)
  418. {
  419. if (pgrid_name == "grd_smllist")
  420. {
  421. if (grd_smllist.row > 0)
  422. {
  423. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  424. /* 대분류 */
  425. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  426. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  427. /* 중분류*/
  428. model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
  429. model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
  430. /* 소분류 */
  431. model.setValue(ipt_smlcd.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlcd")));
  432. model.setValue(opt_smlnm.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
  433. model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) + ' / '+
  434. grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
  435. model.refresh();
  436. }
  437. }
  438. else if(pgrid_name == "grd_mdllist")
  439. {
  440. if (grd_mdllist.row > 0)
  441. {
  442. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  443. /* 대분류 */
  444. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  445. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  446. /* 중분류*/
  447. model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
  448. model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
  449. /* 소분류 */
  450. model.setValue(ipt_smlcd.attribute("ref"), "");
  451. model.setValue(opt_smlnm.attribute("ref"), "");
  452. model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) );
  453. model.refresh();
  454. }
  455. }
  456. else if(pgrid_name == "grd_lrglist")
  457. {
  458. if (grd_mdllist.row > 0)
  459. {
  460. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  461. /* 대분류 */
  462. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  463. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  464. /* 중분류*/
  465. model.setValue(ipt_mdlcd.attribute("ref"), "");
  466. model.setValue(opt_mdlnm.attribute("ref"), "");
  467. /* 소분류 */
  468. model.setValue(ipt_smlcd.attribute("ref"), "");
  469. model.setValue(opt_smlnm.attribute("ref"), "");
  470. //model.setValue(ipt_goodnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")) );
  471. model.refresh();
  472. }
  473. }
  474. }
  475. else
  476. {
  477. // if(model.GetValue(cmb_workflag.attribute("ref")).length != "2")
  478. // {
  479. // messageBox("부서내 자산코드 선택은 '노후교체'를 " ,"C002");
  480. // //model.setFocus("cmb_instcd_search");
  481. // return;
  482. // }
  483. if (grd_fixasetcdlist.row > 0)
  484. {
  485. model.setValue(ipt_lrgcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgcd")));
  486. model.setValue(opt_lrgnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgnm")));
  487. model.setValue(ipt_mdlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlcd")));
  488. model.setValue(opt_mdlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlnm")));
  489. model.setValue(ipt_smlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlcd")));
  490. model.setValue(opt_smlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlnm")));
  491. model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
  492. model.setValue(ipt_goodnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
  493. model.setValue(ipt_goodspec.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodspec")));
  494. model.setValue(ipt_goodmodel.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodmodel")));
  495. model.refresh();
  496. }
  497. }
  498. }
  499. function fAfterRetr()
  500. {
  501. if ( grd_goodreq.rows - grd_goodreq.fixedRows > 0) {
  502. model.resetInstanceNode("/root/main/goodreq");
  503. grd_goodreq.row = 1;
  504. model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
  505. } else {
  506. model.resetInstanceNode("/root/main/goodreq");
  507. if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
  508. {
  509. fSetControlDisabled("true");
  510. }
  511. else
  512. {
  513. fSetControlDisabled("false");
  514. }
  515. model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreq/goodmaxreqno/reqno"));
  516. model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
  517. }
  518. /* 청구상태가 아니면 막는다*/
  519. for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
  520. {
  521. if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("deliveprcsflag")) == "1")
  522. {
  523. grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("purcacptflag")) = false;
  524. }
  525. else
  526. {
  527. grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("purcacptflag")) = true;
  528. }
  529. }
  530. model.refresh();
  531. }
  532. function fSaveDataSetting()
  533. {
  534. model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
  535. }
  536. function fSetReqNo(pReqControl,pAdd)
  537. {
  538. if(pAdd == "Y")
  539. {
  540. var reqno = model.getValue(ipt_reqno.attribute("ref"));
  541. reqno = parseInt(reqno) + 1;
  542. reqno = "" + reqno;
  543. reqno = reqno.getLeftPad(4,"0");
  544. }
  545. else
  546. {
  547. var reqno = model.getValue(ipt_reqno.attribute("ref"));
  548. reqno = parseInt(reqno) - 1;
  549. if(reqno == 0)reqno = 1;
  550. reqno = "" + reqno;
  551. reqno = reqno.getLeftPad(4,"0");
  552. }
  553. model.setValue(pReqControl.attribute("ref"), reqno);
  554. model.refresh();
  555. }
  556. function fRetrByReqNo()
  557. {
  558. model.removenode("/root/main/tmplist");
  559. model.makeNode("/root/main/tmplist/goodreq/goodreqlist");
  560. model.makeNode("/root/main/tmplist/goodreq/goodmaxreqno");
  561. model.copyNode("/root/main/tmplist", "/root/main/list");
  562. model.setValue("/root/send/goodreq/retrmaxreqnoyn","N");
  563. misfMsterDetailRetrieve();
  564. var rtncount = grd_goodreq.rows - grd_goodreq.fixedRows;
  565. if(rtncount == 0)
  566. {
  567. model.copyNode("/root/main/list","/root/main/tmplist");
  568. }
  569. return rtncount;
  570. }
  571. function fCheckRetrieveData(pmsg)
  572. {
  573. if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
  574. {
  575. if(pmsg == true)
  576. {
  577. messageBox("기관코드를 " ,"C002");
  578. model.setFocus("cmb_instcd_search");
  579. }
  580. return false;
  581. }
  582. // if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  583. // {
  584. // if(pmsg == true)
  585. // {
  586. // messageBox("청구부서를 " ,"C002");
  587. // model.setFocus("ipt_reqdeptcd_search");
  588. // }
  589. // return false;
  590. // }
  591. if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
  592. {
  593. if(pmsg == true)
  594. {
  595. messageBox("청구구분을 " ,"C001");
  596. model.setFocus("cmb_reqflag_search");
  597. }
  598. return false;
  599. }
  600. if(model.getValue(ipt_reqfrdd_search.attribute("ref")).length== 0 )
  601. {
  602. if(pmsg == true)
  603. {
  604. messageBox("청구시작일자를 " ,"C001");
  605. model.setFocus("ipt_reqfrdd_search");
  606. }
  607. return false;
  608. }
  609. if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  610. {
  611. if(pmsg == true)
  612. {
  613. messageBox("청구종료일자를 " ,"C001");
  614. model.setFocus("ipt_reqtodd_search");
  615. }
  616. return false;
  617. }
  618. return true;
  619. }
  620. function fCheckSaveData()
  621. {
  622. if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
  623. {
  624. messageBox("기관코드를 " ,"C002");
  625. model.setFocus("cmb_instcd_search");
  626. return false;
  627. }
  628. // if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  629. // {
  630. // messageBox("청구부서를 " ,"C002");
  631. // model.setFocus("ipt_reqdeptcd_search");
  632. // return false;
  633. // }
  634. if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
  635. {
  636. messageBox("청구구분을 " ,"C001");
  637. model.setFocus("cmb_reqflag_search");
  638. return false;
  639. }
  640. if(model.getValue(ipt_reqfrdd_search.attribute("ref")).length== 0 )
  641. {
  642. messageBox("청구시작일자를 " ,"C001");
  643. model.setFocus("ipt_reqfrdd_search");
  644. return false;
  645. }
  646. if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  647. {
  648. messageBox("청구끝일자를 " ,"C001");
  649. model.setFocus("ipt_reqtodd_search");
  650. return false;
  651. }
  652. if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
  653. {
  654. messageBox("물품명을 " ,"C001");
  655. model.setFocus("ipt_goodnm");
  656. return false;
  657. }
  658. if(model.getValue(ipt_reqqty.attribute("ref")).length== 0 )
  659. {
  660. messageBox("청구수량을 " ,"C001");
  661. model.setFocus("ipt_reqqty");
  662. return false;
  663. }
  664. if(model.getValue(cmb_requnit.attribute("ref")).length== 0 )
  665. {
  666. messageBox("청구단위를 " ,"C001");
  667. model.setFocus("cmb_requnit");
  668. return false;
  669. }
  670. if(model.getValue(cmb_workflag.attribute("ref")).length== 0 )
  671. {
  672. messageBox("청구사유를 " ,"C001");
  673. model.setFocus("cmb_workflag");
  674. return false;
  675. }
  676. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  677. {
  678. messageBox("대분류코드를 " ,"C001");
  679. model.setFocus("ipt_lrgcd");
  680. return false;
  681. }
  682. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  683. {
  684. messageBox("중분류코드를 " ,"C001");
  685. model.setFocus("ipt_mdlcd");
  686. return false;
  687. }
  688. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  689. {
  690. messageBox("거래처를 " ,"C001");
  691. model.setFocus("btn_suplplcecd");
  692. return false;
  693. }
  694. if(model.getValue(ipt_installplcecd.attribute("ref")).length== 0 )
  695. {
  696. messageBox("설치장소를 " ,"C001");
  697. model.setFocus("btn_installplcecd");
  698. return false;
  699. }
  700. // 접수이면 지급기준을 입력받아야된다.
  701. if(model.getValue(cmb_acptflag.attribute("ref"))== "Y" )
  702. {
  703. if ( model.getValue(cmb_acpttype.attribute("ref")).length== 0 )
  704. {
  705. messageBox("지급기준을 " ,"C001");
  706. model.setFocus("cmb_acpttype");
  707. return false;
  708. }
  709. if(model.getValue(ipt_wncurncyamt.attribute("ref")).length== 0
  710. || model.getValue(ipt_wncurncyamt.attribute("ref")) == 0 )
  711. {
  712. messageBox("단가를 " ,"C001");
  713. model.setFocus("ipt_wncurncyamt");
  714. return false;
  715. }
  716. }
  717. return true;
  718. }
  719. function fSettingPurcRece ()
  720. {
  721. for(var liRow = grd_goodreq.fixedRows ; liRow < grd_goodreq.rows ; liRow++)
  722. {
  723. if ( model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/prcsstat") == "1" )
  724. {
  725. if ( model.getValue( grd_goodreq.attribute("nodeset")+"["+ (liRow - grd_goodreq.fixedRows + 1) +"]/acptflag") == "Y" )
  726. {
  727. if(model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") == "Y")
  728. {
  729. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag","N");
  730. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacpdd","");
  731. grd_reqeqmtlist.rowStatus(liRow) = "2";
  732. }
  733. /*------------------------------------------------------------------------------------------------
  734. * 부결 제외
  735. ------------------------------------------------------------------------------------------------*/
  736. else if (model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") != "Y" ||
  737. (model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") != "C") )
  738. {
  739. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptflag" ,"Y");
  740. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1)+ "]/purcacptdd",getCurrentDate());
  741. grd_reqeqmtlist.rowStatus(liRow) = "2";
  742. }
  743. }
  744. }
  745. }
  746. model.refresh();
  747. }
  748. ]]>
  749. </script>
  750. </xhtml:head>
  751. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  752. <group id="group1" style="left:0px; top:0px; width:1195px; height:14px; ">
  753. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:157px; height:14px; ">비품청구접수(성의교정)</caption>
  754. </group>
  755. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  756. <line id="line29" class="line_2" style="x1:0px; y1:471px; x2:605px; y2:471px; "/>
  757. <line id="line28" class="line_2" style="x1:0px; y1:449px; x2:605px; y2:449px; "/>
  758. <line id="line16" class="line_2" style="x1:0px; y1:401px; x2:605px; y2:401px; "/>
  759. <line id="line27" class="line_2" style="x1:0px; y1:637px; x2:605px; y2:637px; "/>
  760. <line id="line15" class="line_2" style="x1:0px; y1:377px; x2:605px; y2:377px; "/>
  761. <line id="line26" class="line_2" style="x1:0px; y1:613px; x2:605px; y2:613px; "/>
  762. <line id="line25" class="line_2" style="x1:0px; y1:661px; x2:605px; y2:661px; "/>
  763. <line id="line24" class="line_2" style="x1:0px; y1:542px; x2:605px; y2:542px; "/>
  764. <line id="line23" class="line_2" style="x1:0px; y1:518px; x2:605px; y2:518px; "/>
  765. <line id="line22" class="line_2" style="x1:0px; y1:589px; x2:605px; y2:589px; "/>
  766. <line id="line21" class="line_2" style="x1:0px; y1:425px; x2:605px; y2:425px; "/>
  767. <line id="line31" class="line_3" style="x1:0px; y1:685px; x2:605px; y2:685px; "/>
  768. <line id="line30" class="line_2" style="x1:0px; y1:495px; x2:605px; y2:495px; "/>
  769. <line id="line5" class="line_3" style="x1:0px; y1:737px; x2:605px; y2:737px; "/>
  770. <line id="line14" class="line_2" style="x1:0px; y1:713px; x2:605px; y2:713px; "/>
  771. <caption id="caption9" class="tit_2" style="left:5px; top:335px; width:100px; height:13px; ">비품청구</caption>
  772. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  773. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  774. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="청구일자^청구부서^상태^청구사유^대분류^중분류^소분류^물품명^규격^모델^제조회사^청구량^접수^조정량^구매승인^^승인일자^예산금액" colsep="^" colwidth="64, 72, 44, 74, 79, 83, 82, 194, 108, 65, 76, 48, 55, 45, 66, 52, 100, 82, 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="|" tooltip="true" style="left:0px; top:99px; width:1195px; height:226px; ">
  775. <col ref="reqdd" format="yyyymmdd"/>
  776. <col ref="reqdeptnm"/>
  777. <col ref="deliveprcsflagnm" style="text-align:center; "/>
  778. <col ref="workflagnm"/>
  779. <col ref="lrgnm"/>
  780. <col ref="mdlnm"/>
  781. <col ref="smlnm"/>
  782. <col ref="goodnm"/>
  783. <col ref="goodspec"/>
  784. <col ref="goodmodel"/>
  785. <col ref="prodcmpynm"/>
  786. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  787. <col ref="acptflagnm"/>
  788. <col ref="adjtqty" format="#,###" style="text-align:right; "/>
  789. <col ref="purcacptflag" type="combo" style="left:1083px; top:23px; width:80px; height:23px; ">
  790. <choices>
  791. <itemset nodeset="/root/init/purcacptflag">
  792. <label ref="label"/>
  793. <value ref="value"/>
  794. </itemset>
  795. </choices>
  796. <script type="javascript" ev:event="xforms-value-changed">
  797. <![CDATA[
  798. // 청구진행상태 확인
  799. // 접수진행상태 확인
  800. if ( model.getValue( grd_goodreq.attribute("nodeset")+"["+ (grd_goodreq.Row - grd_reqeqmtlist.fixedRows + 1) +"]/prcsstat") != "1" ||
  801. model.getValue( grd_goodreq.attribute("nodeset")+"["+ (grd_goodreq.Row - grd_goodreq.fixedRows + 1) +"]/acptflag") != "Y" )
  802. {
  803. messageBox("청구진행상태 및 접수 상태를 확인하세요 구매승인상태변경을 하실수 ","E001");
  804. if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag") == "Y")
  805. {
  806. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag","N");
  807. grd_goodreq.rowStatus(grd_goodreq.Row) = "0";
  808. }
  809. else
  810. {
  811. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptflag" ,"Y");
  812. grd_goodreq.rowStatus(grd_goodreq.Row) = "0";
  813. }
  814. }
  815. else model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedRows + 1)+ "]/purcacptdd" ,getCurrentDate());
  816. model.refresh();
  817. ]]>
  818. </script>
  819. </col>
  820. <col ref="acptdd" visibility="hidden"/>
  821. <col ref="reqflag" visibility="hidden"/>
  822. <col ref="reqseqno" visibility="hidden"/>
  823. <col ref="prodcmpycd" visibility="hidden"/>
  824. <col ref="bugtcd" visibility="hidden"/>
  825. <col ref="bugtnm" visibility="hidden"/>
  826. <col ref="bugtyy" visibility="hidden"/>
  827. <col ref="stdysubjno" visibility="hidden"/>
  828. <col ref="reqdeptcd" visibility="hidden"/>
  829. <col ref="installplcecd" visibility="hidden"/>
  830. <col ref="reqpsnid" visibility="hidden"/>
  831. <col ref="reqtm" visibility="hidden"/>
  832. <col ref="delivedeptcd" visibility="hidden"/>
  833. <col ref="delivehopedd" visibility="hidden"/>
  834. <col ref="requnit" visibility="hidden"/>
  835. <col ref="attfilenm" visibility="hidden"/>
  836. <col ref="attfilepathnm" visibility="hidden"/>
  837. <col ref="deptaprvdd" visibility="hidden"/>
  838. <col ref="adjtqty" visibility="hidden"/>
  839. <col ref="adjtrsn" visibility="hidden"/>
  840. <col ref="acptcharid" visibility="hidden"/>
  841. <col ref="plceorddd" visibility="hidden"/>
  842. <col ref="plceordseqno" visibility="hidden"/>
  843. <col ref="plceordno" visibility="hidden"/>
  844. <col ref="fixasetcd" visibility="hidden"/>
  845. <col ref="deliveqty" visibility="hidden"/>
  846. <col ref="unwinresn" visibility="hidden"/>
  847. <col ref="deliveprcsflag" visibility="hidden"/>
  848. <col ref="cmt" visibility="hidden"/>
  849. <col ref="instcd" visibility="hidden"/>
  850. <col ref="workflag" visibility="hidden"/>
  851. <col ref="reqpsnnm" visibility="hidden"/>
  852. <col ref="reqno" visibility="hidden"/>
  853. <col ref="makeyn" visibility="hidden"/>
  854. <col ref="deptaprvyn" visibility="hidden"/>
  855. <col ref="acptflag" visibility="hidden"/>
  856. <col ref="stdysubjnm" visibility="hidden"/>
  857. <col ref="installplcenm" visibility="hidden"/>
  858. <col ref="purcacptdd" visibility="hidden"/>
  859. <col ref="wncurncyamt" visibility="hidden"/>
  860. <col ref="plceordamt" visibility="hidden"/>
  861. <col ref="suplplcecd" visibility="hidden"/>
  862. <col ref="suplplcenm" visibility="hidden"/>
  863. <col ref="lrgcd" visibility="hidden"/>
  864. <col ref="mdlcd" visibility="hidden"/>
  865. <col ref="smlcd" visibility="hidden"/>
  866. <col ref="cntrdeptcd" visibility="hidden"/>
  867. <col ref="cntrdeptcdnm" visibility="hidden"/>
  868. <col ref="mngtdeptcd" visibility="hidden"/>
  869. <col ref="mngtdeptcdnm" visibility="hidden"/>
  870. <col ref="reqtel" visibility="hidden"/>
  871. <col ref="studyinstcd" visibility="hidden"/>
  872. <col ref="acpttype" visibility="hidden"/>
  873. <col ref="groupbugt" visibility="hidden"/>
  874. <col ref="projectid" visibility="hidden"/>
  875. <col ref="projectnm" visibility="hidden"/>
  876. <col ref="totamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  877. <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  878. <col ref="bugtexecamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  879. <col ref="remainder" visibility="hidden" format="#,###" style="text-align:right; "/>
  880. <col ref="fundorigin" visibility="hidden"/>
  881. <script type="javascript" ev:event="onrowchanged">
  882. <![CDATA[
  883. if( grd_goodreq.row >= grd_goodreq.fixedRows )
  884. {
  885. misfGridInit(grd_psgelist);
  886. model.resetInstanceNode("/root/main/goodreq");
  887. //연구계정 콤보 설정.
  888. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd"))=='032'){
  889. cmb_groupbugt.value = rszfComboBgcdBugtList("", '103', '3', grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("bugtcd")), "Y" );
  890. }else{
  891. cmb_groupbugt.value = rszfComboBgcdBugtList("", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")), '3', grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("bugtcd")), "Y" );
  892. }
  893. cmb_groupbugt.dispatch("xforms-value-changed");
  894. model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ (grd_goodreq.row-grd_goodreq.fixedrows+1) + "]");
  895. model.setValue("/root/send/psgereq/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")));
  896. model.setValue("/root/send/psgereq/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqflag")));
  897. model.setValue("/root/send/psgereq/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
  898. model.setValue("/root/send/psgereq/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqno")));
  899. model.setValue("/root/send/psgereq/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqseqno")));
  900. misfMsterDetailRetrieve();
  901. fAllControlDisabled("N");
  902. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C") fAllControlDisabled("Y"); //승인,부결되었으면.
  903. else if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deliveprcsflag")) != "1") fAllControlDisabled("Y"); //발주되었으면.
  904. }
  905. // 구매승인 여부에 따른 권한 설정.
  906. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
  907. {
  908. button13.disabled = true;
  909. button12.disabled = true;
  910. grd_psgelist.disabled = true;
  911. // for(var fRow = grd_psgelist.fixedRows; fRow < grd_psgelist.rows -1; fRow++)
  912. // {
  913. // for(var fCol = grd_psgelist.fixedCols; fCol < grd_psgelist.cols - 1; fCol++)
  914. // {
  915. // grd_psgelist.isReadOnly(fRow, fCol) = true;
  916. // }
  917. // }
  918. }else
  919. {
  920. button13.disabled = false;
  921. button12.disabled = false;
  922. grd_psgelist.disabled = false;
  923. }
  924. // 관리부서, 귀속부서, 설치장소 조회시.. Default 값 기관코드를 넘겨주게 됩니다. 그 기관코드의 값을 설정.
  925. fInstcdCheckValue();
  926. model.refresh();
  927. ]]>
  928. </script>
  929. <script type="javascript" ev:event="xforms-value-changed">
  930. <![CDATA[
  931. if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "N" )
  932. {
  933. model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , "");
  934. }
  935. else
  936. {
  937. model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , getCurrentDate());
  938. //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
  939. }
  940. ]]>
  941. </script>
  942. <script type="javascript" ev:event="onaftersort">
  943. <![CDATA[
  944. grd_goodreq.gridToInstance();
  945. ]]>
  946. </script>
  947. </datagrid>
  948. <line id="line3" class="line_1" style="x1:0px; y1:350px; x2:605px; y2:350px; "/>
  949. <!--</group>-->
  950. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:60px; "/>
  951. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:33px; width:56px; height:22px; ">
  952. <caption>조회</caption>
  953. <script type="javascript" ev:event="DOMActivate">
  954. <![CDATA[
  955. if(fCheckRetrieveData(false) == false)return;
  956. model.setValue("/root/send/goodreq/retrmaxreqnoyn","Y");
  957. // 위의 조건을 변경후 조회하면, 각 조회조건 값들이 이전값이다.
  958. //fDefaultSetting();
  959. misfMsterDetailRetrieve();
  960. fAfterRetr();
  961. ]]>
  962. </script>
  963. </button>
  964. <button id="btn_reqdept" class="icon_search" style="left:835px; top:20px; width:16px; height:16px; ">
  965. <caption/>
  966. <script type="javascript" ev:event="DOMActivate">
  967. <![CDATA[
  968. var recv_list = "reqdeptcd,reqdeptnm";
  969. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_reqtempinstcd.value, "instcd") ;
  970. model.refresh();
  971. btn_search.dispatch("DOMActivate");
  972. ]]>
  973. </script>
  974. </button>
  975. <select1 id="cmb_instcd_search" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:18; width:209px; height:19px; ">
  976. <choices>
  977. <itemset>
  978. <label/>
  979. <value/>
  980. </itemset>
  981. </choices>
  982. <script type="javascript" ev:event="xforms-value-changed">
  983. <![CDATA[
  984. if( cmb_instcd_search.value == '103' || cmb_instcd_search.value == '032' )
  985. {
  986. cmb_groupbugt.value = '';
  987. // cmb_bugtcd.value = '';
  988. cmb_studyinstcd.value = '';
  989. cmb_studyinstcd.disabled = true;
  990. ipt_reqdeptcd_search.value = '';
  991. ipt_reqdeptnm_search.value = '';
  992. if(cmb_instcd_search.value=='032'){
  993. rszfComboBgcdBugtList("cmb_groupbugt", '103', '3');
  994. }else{
  995. rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
  996. }
  997. // if(cmb_instcd_search.value != '103')
  998. // {
  999. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
  1000. // }else{
  1001. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
  1002. // }
  1003. opt_reqtempinstcd.value = cmb_instcd_search.value;
  1004. model.refresh();
  1005. btn_search.dispatch("DOMActivate");
  1006. }else{
  1007. cmb_groupbugt.value = '';
  1008. // cmb_bugtcd.value = '';
  1009. cmb_studyinstcd.disabled = false;
  1010. cmb_studyinstcd.select(0);
  1011. ipt_reqdeptcd_search.value = '';
  1012. ipt_reqdeptnm_search.value = '';
  1013. rszfComboBgcdBugtList("cmb_groupbugt", cmb_instcd_search.value, '3');
  1014. // if(cmb_instcd_search.value != '103')
  1015. // {
  1016. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
  1017. // }else{
  1018. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
  1019. // }
  1020. cmb_studyinstcd.dispatch("xforms-value-changed");
  1021. model.refresh();
  1022. }
  1023. ]]>
  1024. </script>
  1025. </select1>
  1026. <caption id="caption4" class="search_name" style="left:20px; top:19; width:117px; height:17px; ">기관코드 :</caption>
  1027. <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  1028. <select1 id="cmb_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:825px; top:45px; width:90px; height:19px; ">
  1029. <choices>
  1030. <itemset>
  1031. <label/>
  1032. <value/>
  1033. </itemset>
  1034. </choices>
  1035. <script type="javascript" ev:event="xforms-value-changed">
  1036. <![CDATA[
  1037. btn_search.dispatch("DOMActivate");
  1038. ]]>
  1039. </script>
  1040. </select1>
  1041. <input id="ipt_reqdeptcd_search" ref="/root/send/goodreq/reqdeptcd" class="input_s_essential" style="left:735px; top:20px; width:96px; height:19px; ">
  1042. <script type="javascript" ev:event="xforms-value-changed">
  1043. <![CDATA[
  1044. if(ipt_reqdeptcd_search.value.length == 0)
  1045. {
  1046. ipt_reqdeptnm_search.value = "";
  1047. }
  1048. else
  1049. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_reqtempinstcd.value, "instcd" );
  1050. model.refresh();
  1051. btn_search.dispatch("DOMActivate");
  1052. ]]>
  1053. </script>
  1054. </input>
  1055. <caption id="caption8" class="search_name" style="left:650px; top:21px; width:86px; height:17px; ">청구부서 :</caption>
  1056. <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="input_fix" appearance="input" style="left:855px; top:20px; width:239px; height:19px; ">
  1057. <script type="javascript" ev:event="xforms-value-changed">
  1058. <![CDATA[
  1059. if(ipt_reqdeptnm_search.value.length == 0)
  1060. {
  1061. ipt_reqdeptcd_search.value = "";
  1062. }
  1063. else
  1064. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_reqtempinstcd.value, "instcd" );
  1065. model.refresh();
  1066. ]]>
  1067. </script>
  1068. </input>
  1069. <caption id="caption14" class="search_name" style="left:20px; top:45px; width:86px; height:17px; ">청구일자 :</caption>
  1070. <input id="ipt_reqfrdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:105px; top:44; width:96px; height:19px; ">
  1071. <script type="javascript" ev:event="xforms-value-changed">
  1072. <![CDATA[
  1073. btn_search.dispatch("DOMActivate");
  1074. ]]>
  1075. </script>
  1076. </input>
  1077. <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:535px; top:357px; width:20px; height:19px; "/>
  1078. <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:460px; top:357px; width:30px; height:19px; "/>
  1079. <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:315px; top:357px; width:25px; height:19px; "/>
  1080. <caption id="caption67" class="cell_1" style="left:0px; top:427px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
  1081. <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_s_essential" style="left:102px; top:429px; width:504px; height:19px; "/>
  1082. <caption id="caption61" class="cell_1" style="left:0px; top:451px; width:100px; height:21px; vertical-align:middle; ">규격/모델</caption>
  1083. <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:102px; top:453px; width:218px; height:19px; "/>
  1084. <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:325px; top:453px; width:281px; height:19px; "/>
  1085. <button id="btn_prodcmpycd" class="icon_search" style="left:228px; top:501px; width:16px; height:16px; ">
  1086. <caption/>
  1087. <script type="javascript" ev:event="DOMActivate">
  1088. <![CDATA[
  1089. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1090. model.refresh();
  1091. ]]>
  1092. </script>
  1093. </button>
  1094. <caption id="caption66" class="cell_1" style="left:0px; top:497px; width:100px; height:22px; vertical-align:middle; ">제조회사</caption>
  1095. <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_default" style="left:102px; top:499px; width:121px; height:19px; ">
  1096. <script type="javascript" ev:event="xforms-value-changed">
  1097. <![CDATA[
  1098. if(ipt_prodcmpycd.value.length == 0)
  1099. {
  1100. ipt_prodcmpynm.value = "";
  1101. }
  1102. else
  1103. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
  1104. "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,
  1105. ipt_prodcmpycd,"SPRSD00160","","");
  1106. model.refresh();
  1107. model.setFocus("ipt_goodmodel");
  1108. ]]>
  1109. </script>
  1110. <script type="javascript" ev:event="onkeydown">
  1111. <![CDATA[
  1112. if(event.keyCode == 9)
  1113. {
  1114. if(event.shiftKey)model.setFocus("cmb_prodplce");
  1115. else model.setFocus("ipt_goodmodel");
  1116. }
  1117. event.preventDefault();
  1118. ]]>
  1119. </script>
  1120. </input>
  1121. <input id="ipt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="input_fix" appearance="input" style="left:247px; top:499px; width:359px; height:19px; ">
  1122. <script type="javascript" ev:event="xforms-value-changed">
  1123. <![CDATA[
  1124. if(ipt_prodcmpynm.value.length == 0)
  1125. {
  1126. ipt_prodcmpycd.value = "";
  1127. }
  1128. else
  1129. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
  1130. "prodcmpynm," + ipt_prodcmpynm.value, "", "prodcmpycd,prodcmpynm",
  1131. ipt_prodcmpynm, "SPRSD00160", "","");
  1132. model.refresh();
  1133. ]]>
  1134. </script>
  1135. </input>
  1136. <caption id="caption64" class="cell_1" style="left:0px; top:520px; width:100px; height:23px; vertical-align:middle; ">청구수량</caption>
  1137. <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:102px; top:522px; width:88px; height:19px; text-align:right; "/>
  1138. <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="input_s_essential" appearance="minimal" style="left:191px; top:522px; width:109px; height:19px; ">
  1139. <choices>
  1140. <itemset>
  1141. <label/>
  1142. <value/>
  1143. </itemset>
  1144. </choices>
  1145. </select1>
  1146. <input id="ipt_bugtyy" ref="/root/main/goodreq/goodreqlist/bugtyy" class="input_search" format="yyyy" style="left:102px; top:593px; width:88px; height:19px; text-align:left; "/>
  1147. <caption id="caption56" class="cell_1" style="left:0px; top:591px; width:100px; height:23px; vertical-align:middle; ">예산년도</caption>
  1148. <caption id="caption48" class="cell_1" style="left:0px; top:639px; width:160px; height:23px; vertical-align:middle; ">예산편성/추산/집행/잔액</caption>
  1149. <caption id="caption71" class="cell_1" style="left:0px; top:379px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
  1150. <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:392px; top:546px; width:77px; height:19px; ">
  1151. <script type="javascript" ev:event="xforms-value-changed">
  1152. <![CDATA[
  1153. if(ipt_installplcecd.value.length == 0)
  1154. ipt_installplcenm.value = "";
  1155. else
  1156. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  1157. "deptcd," + ipt_installplcecd.value + "," + opt_checkinstcd.value, "", "installplcecd,installplcenm",
  1158. ipt_installplcecd, "PPRAC00700", "instcd","opt_checkinstcd");
  1159. model.refresh();
  1160. ]]>
  1161. </script>
  1162. </input>
  1163. <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:102px; top:382px; width:116px; height:16px; background-color:transparent; border-style:none; ">
  1164. <choices>
  1165. <item>
  1166. <label>예</label>
  1167. <value>Y</value>
  1168. </item>
  1169. <item>
  1170. <label>아니오</label>
  1171. <value>N</value>
  1172. </item>
  1173. </choices>
  1174. </select1>
  1175. <caption id="caption3" class="cell_1" style="left:304px; top:543px; width:86px; height:23px; vertical-align:middle; ">설치장소</caption>
  1176. <caption id="caption57" class="cell_1" style="left:23px; top:691px; width:78px; height:23px; vertical-align:middle; ">접수/조정량</caption>
  1177. <caption id="caption60" class="cell_1" style="left:304px; top:663px; width:86px; height:23px; vertical-align:middle; ">첨부파일</caption>
  1178. <input id="ipt_attfilepathnm" ref="/root/main/goodreq/goodreqlist/attfilepathnm" class="input_default" style="left:392px; top:665px; width:148px; height:19px; "/>
  1179. <caption id="caption1" class="search_name" style="left:360px; top:45px; width:86px; height:17px; ">접수구분 :</caption>
  1180. <caption id="caption2" class="cell_1" style="left:0px; top:355px; width:100px; height:23px; vertical-align:middle; ">청구사유</caption>
  1181. <select1 id="cmb_workflag" ref="/root/main/goodreq/goodreqlist/workflag" class="combo_s_essential" appearance="minimal" style="left:102px; top:357px; width:167px; height:19px; ">
  1182. <choices>
  1183. <itemset>
  1184. <label/>
  1185. <value/>
  1186. </itemset>
  1187. </choices>
  1188. </select1>
  1189. <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
  1190. <caption id="caption5" class="tit_2" style="left:5px; top:80px; width:100px; height:13px; ">비품청구 내역</caption>
  1191. <caption id="caption7" class="tit_2" style="left:615px; top:630px; width:100px; height:13px; ">경유부서 정보</caption>
  1192. <line id="line2" class="line_1" style="x1:610px; y1:645px; x2:1192px; y2:645px; "/>
  1193. <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:340px; top:357px; width:25px; height:19px; "/>
  1194. <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" visibility="hidden" style="left:490px; top:357px; width:20px; height:19px; "/>
  1195. <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:440px; top:357px; width:20px; height:19px; "/>
  1196. <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:410px; top:357px; width:15px; height:19px; "/>
  1197. <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:390px; top:357px; width:20px; height:19px; "/>
  1198. <datagrid id="grd_psgelist" nodeset="/root/main/list/psgereq/psgereqlist" caption="경유부서^경유부서명^접수^의견" colsep="^" colwidth="89, 81, 34, 347, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:610px; top:650px; width:585px; height:87px; ">
  1199. <col ref="psgedeptcd" type="inputbutton"/>
  1200. <col ref="psgedeptnm"/>
  1201. <col ref="psgedeptaprvyn"/>
  1202. <col ref="psgecmt"/>
  1203. <col ref="instcd" visibility="hidden"/>
  1204. <col ref="reqflag" visibility="hidden"/>
  1205. <col ref="reqdd" visibility="hidden"/>
  1206. <col ref="reqno" visibility="hidden"/>
  1207. <col ref="reqseqno" visibility="hidden"/>
  1208. <col ref="psgedeptaprvid" visibility="hidden"/>
  1209. <col ref="psgedeptaprvdd" visibility="hidden"/>
  1210. <script type="javascript" ev:event="onbuttonclick">
  1211. <![CDATA[
  1212. if (grd_psgelist.col == grd_psgelist.colRef("psgedeptcd")) {
  1213. var recv_list = "psgedeptcd,psgedeptnm";
  1214. misfOpenPopUpList("02", grd_psgelist,"",recv_list);
  1215. }
  1216. ]]>
  1217. </script>
  1218. <script type="javascript" ev:event="xforms-value-changed">
  1219. <![CDATA[
  1220. if (grd_psgelist.col == grd_psgelist.colRef("psgedeptcd")) {
  1221. var recv_list = "psgedeptcd,psgedeptnm";
  1222. misfValidationCheck("02", "", recv_list );
  1223. }
  1224. ]]>
  1225. </script>
  1226. </datagrid>
  1227. <button id="btn_addfile" class="btn2_letter4" style="left:542px; top:665px; width:64px; height:19px; ">
  1228. <caption>addfile</caption>
  1229. <script type="javascript" ev:event="DOMActivate">
  1230. <![CDATA[
  1231. var files = window.fileDialog("open", "|", false);
  1232. var replacepath = "";
  1233. /* file 명과 dir을 따로 했다가 하나로 합침......아래로 수정 ..HBH */
  1234. /* file name setting */
  1235. // filelist = files.split("\\");
  1236. // model.setValue(ipt_attfilename.attribute("ref") , filelist[filelist.length-1]);
  1237. /* file path setting */
  1238. // for(var i = 0 ; i < filelist.length -1 ; i++ ) // -1은 화일제거
  1239. // {
  1240. // if(filelist[i].length>0)
  1241. // {
  1242. // if (i == 0) replacepath = replacepath + filelist[i];
  1243. // else replacepath = replacepath + '\\'+filelist[i];
  1244. // }
  1245. // }
  1246. //
  1247. // model.setValue(ipt_attfilepathnm.attribute("ref") , replacepath);
  1248. model.setValue(ipt_attfilepathnm.attribute("ref") , files);
  1249. model.refresh();
  1250. ]]>
  1251. </script>
  1252. </button>
  1253. <line id="line4" class="line_1" style="x1:610px; y1:350px; x2:1195; y2:350px; "/>
  1254. <caption id="caption10" class="tit_2" style="left:615px; top:335px; width:100px; height:13px; ">비품찾기</caption>
  1255. <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="input_fix" appearance="input" style="left:493px; top:546px; width:112px; height:19px; ">
  1256. <script type="javascript" ev:event="xforms-value-changed">
  1257. <![CDATA[
  1258. if(ipt_installplcenm.value.length == 0)
  1259. ipt_installplcecd.value = "";
  1260. else
  1261. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  1262. "deptnm," + ipt_installplcenm.value + "," + opt_checkinstcd.value, "", "installplcecd,installplcenm",
  1263. ipt_installplcenm, "PPRAC00700", "instcd","opt_checkinstcd");
  1264. model.refresh();
  1265. ]]>
  1266. </script>
  1267. </input>
  1268. <button id="btn_installplcecd" class="icon_search" style="left:473px; top:547px; width:16px; height:16px; ">
  1269. <caption/>
  1270. <script type="javascript" ev:event="DOMActivate">
  1271. <![CDATA[
  1272. var recv_list = "installplcecd,installplcenm";
  1273. misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_checkinstcd.value, "instcd") ;
  1274. model.refresh();
  1275. ]]>
  1276. </script>
  1277. </button>
  1278. <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:917px; top:45px; width:30px; height:19px; "/>
  1279. <caption id="caption17" class="cell_1" style="left:0px; top:403px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
  1280. <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:166px; top:405px; width:103px; height:19px; "/>
  1281. <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:333px; top:405px; width:103px; height:19px; "/>
  1282. <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:405px; width:103px; height:19px; "/>
  1283. <caption id="caption13" class="cell_1" style="left:0px; top:663px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
  1284. <input id="ipt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" style="left:102px; top:665px; width:198px; height:19px; "/>
  1285. <caption id="caption15" class="cell_1" style="left:269px; top:379px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
  1286. <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:351px; top:381px; width:113px; height:19px; "/>
  1287. <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" style="left:128px; top:405px; width:36px; height:19px; "/>
  1288. <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_s_essential" style="left:295px; top:405px; width:36px; height:19px; "/>
  1289. <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" style="left:465px; top:405px; width:36px; height:19px; "/>
  1290. <switch id="swh_select" style="left:610px; top:380px; width:585px; height:245px; ">
  1291. <case id="cse_lrgcd" selected="true" style="focus-rect:hidden; ">
  1292. <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" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:197px; top:8px; width:192px; height:232px; ">
  1293. <col class="input_essential" disabled="true" ref="mdlcd" type="input" visibility="hidden"/>
  1294. <col ref="mdlnm" type="output"/>
  1295. <col ref="winacnt" visibility="hidden"/>
  1296. <col ref="winacntnm" visibility="hidden"/>
  1297. <col ref="amtacnt" visibility="hidden"/>
  1298. <col ref="amtacntnm" visibility="hidden"/>
  1299. <col ref="instcd" type="output" visibility="hidden"/>
  1300. <col ref="goodflag" type="output" visibility="hidden"/>
  1301. <col ref="lrgcd" type="output" visibility="hidden"/>
  1302. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1303. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1304. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1305. <script type="javascript" ev:event="onrowchanged">
  1306. <![CDATA[
  1307. model.setValue("/root/send/lrgcd/mdlcd" , grd_mdllist.valueMatrix(grd_mdllist.row, grd_mdllist.colRef("mdlcd")));
  1308. submit("TRRSD11106");
  1309. grd_mdllist.dispatch("onmouseup");
  1310. grd_smllist.dispatch("onmouseup");
  1311. ]]>
  1312. </script>
  1313. <script type="javascript" ev:event="ondblclick">
  1314. <![CDATA[
  1315. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
  1316. {
  1317. }else{
  1318. fMovecd("grd_mdllist");
  1319. }
  1320. ]]>
  1321. </script>
  1322. <script type="javascript" ev:event="onaftersort">
  1323. <![CDATA[
  1324. grd_mdllist.gridToInstance();
  1325. ]]>
  1326. </script>
  1327. </datagrid>
  1328. <datagrid id="grd_smllist" nodeset="/root/main/list/sml/smllist" allowuserresize="false" caption="소분류코드^소분류명^계정코드(입고)^계정코드(입고)^기관코드^물품구분^대분류코드^중분류코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="10, 144, 100, 134, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="bycol" style="left:392px; top:8px; width:191px; height:232px; ">
  1329. <col class="input_essential" disabled="true" ref="smlcd" type="input" visibility="hidden"/>
  1330. <col ref="smlnm" type="output"/>
  1331. <col ref="winacnt" visibility="hidden"/>
  1332. <col ref="winacntnm" visibility="hidden"/>
  1333. <col ref="instcd" visibility="hidden"/>
  1334. <col ref="goodflag" visibility="hidden"/>
  1335. <col ref="lrgcd" visibility="hidden"/>
  1336. <col ref="mdlcd" visibility="hidden"/>
  1337. <col ref="fstrgstrid" visibility="hidden"/>
  1338. <col ref="fstrgstdt" visibility="hidden"/>
  1339. <col ref="lastupdtrid" visibility="hidden"/>
  1340. <col ref="lastupdtdt" visibility="hidden"/>
  1341. <script type="javascript" ev:event="ondblclick">
  1342. <![CDATA[
  1343. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
  1344. {
  1345. }else{
  1346. fMovecd("grd_smllist");
  1347. }
  1348. ]]>
  1349. </script>
  1350. </datagrid>
  1351. <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" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:8px; width:194px; height:232px; ">
  1352. <col class="input_essential" disabled="true" ref="lrgcd" type="input" visibility="hidden"/>
  1353. <col ref="lrgnm" type="output"/>
  1354. <col ref="mainmngtdeptcd" visibility="hidden"/>
  1355. <col ref="mainmngtdeptnm" visibility="hidden"/>
  1356. <col ref="winacnt" visibility="hidden"/>
  1357. <col ref="winacntnm" visibility="hidden"/>
  1358. <col ref="amtacnt" visibility="hidden"/>
  1359. <col ref="amtacntnm" visibility="hidden"/>
  1360. <col ref="instcd" visibility="hidden"/>
  1361. <col ref="goodflag" visibility="hidden"/>
  1362. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1363. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1364. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1365. <col ref="lastupdtdt" type="output" visibility="hidden"/>
  1366. <script type="javascript" ev:event="onrowchanged">
  1367. <![CDATA[
  1368. model.setValue("/root/send/lrgcd/lrgcd" , grd_lrglist.valueMatrix(grd_lrglist.row, grd_lrglist.colRef("lrgcd")));
  1369. submit("TRRSD11105");
  1370. if(grd_mdllist.rows>1) {
  1371. grd_mdllist.row=1;
  1372. }
  1373. grd_mdllist.dispatch("onrowchanged");
  1374. grd_lrglist.dispatch("onmouseup");
  1375. ]]>
  1376. </script>
  1377. <script type="javascript" ev:event="ondblclick">
  1378. <![CDATA[
  1379. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
  1380. {
  1381. }else{
  1382. fMovecd("grd_lrglist");
  1383. }
  1384. ]]>
  1385. </script>
  1386. <script type="javascript" ev:event="onaftersort">
  1387. <![CDATA[
  1388. grd_lrglist.gridToInstance();
  1389. ]]>
  1390. </script>
  1391. </datagrid>
  1392. <line id="line19" class="line_1" style="x1:0px; y1:3px; x2:583px; y2:3px; "/>
  1393. </case>
  1394. <case id="cse_fixasetcd">
  1395. <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^품목명^규격^모델^수량" colsep="^" colwidth="73, 66, 77, 137, 100, 100, 69" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:10px; width:583px; height:230px; ">
  1396. <col ref="lrgnm"/>
  1397. <col ref="mdlnm"/>
  1398. <col ref="smlnm"/>
  1399. <col ref="goodflaghngnm"/>
  1400. <col ref="goodspec"/>
  1401. <col ref="goodmodel"/>
  1402. <col ref="lrgcd"/>
  1403. <col ref="lrgcd" visibility="hidden"/>
  1404. <col ref="mdlcd" visibility="hidden"/>
  1405. <col ref="smlcd" visibility="hidden"/>
  1406. <col ref="fixasetcd" visibility="hidden"/>
  1407. <script type="javascript" ev:event="ondblclick">
  1408. <![CDATA[
  1409. if(grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "Y" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("purcacptflag")) == "C")
  1410. {
  1411. }else{
  1412. fMovecd("grd_fixasetcdlist");
  1413. }
  1414. ]]>
  1415. </script>
  1416. <script type="javascript" ev:event="onaftersort">
  1417. <![CDATA[
  1418. grd_fixasetcdlist.gridToInstance();
  1419. ]]>
  1420. </script>
  1421. </datagrid>
  1422. <line id="line20" class="line_1" style="x1:0px; y1:5px; x2:581px; y2:5px; "/>
  1423. </case>
  1424. </switch>
  1425. <button id="btn_search_cd" class="btn2_letter2" style="left:1151px; top:360px; width:42px; height:19px; ">
  1426. <caption>조회</caption>
  1427. <script type="javascript" ev:event="DOMActivate">
  1428. <![CDATA[
  1429. //hbh
  1430. if(swh_select.selectedIndex == 0)
  1431. {
  1432. misfGridInit(grd_lrglist);
  1433. misfGridInit(grd_mdllist);
  1434. misfGridInit(grd_smllist);
  1435. model.setValue("/root/send/lrgcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
  1436. model.setValue("/root/send/lrgcd/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
  1437. submit("TRRSD11104");
  1438. if(grd_lrglist.rows>1) {
  1439. grd_lrglist.row=1;
  1440. }
  1441. grd_lrglist.dispatch("onrowchanged");
  1442. }
  1443. else
  1444. {
  1445. misfGridInit(grd_fixasetcdlist);
  1446. model.setValue("/root/send/fixasetcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
  1447. model.setValue("/root/send/fixasetcd/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
  1448. model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd.attribute("ref")));
  1449. //model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
  1450. submit("TRRFC00201");
  1451. }
  1452. ]]>
  1453. </script>
  1454. </button>
  1455. <button id="button5" class="btn_sw" group="tab" selected="true" style="left:753px; top:359px; width:144px; height:22px; ">
  1456. <caption>부서내 자산코드</caption>
  1457. <toggle case="cse_fixasetcd" ev:event="DOMActivate"/>
  1458. </button>
  1459. <button id="button4" class="btn_sw" group="tab" selected="true" style="left:610px; top:359px; width:144px; height:22px; ">
  1460. <caption>분류코드</caption>
  1461. <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
  1462. </button>
  1463. <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:218px; top:44; width:96px; height:19px; ">
  1464. <script type="javascript" ev:event="xforms-value-changed">
  1465. <![CDATA[
  1466. btn_search.dispatch("DOMActivate");
  1467. ]]>
  1468. </script>
  1469. </input>
  1470. <select1 id="cmb_acptflag_search" ref="/root/send/goodreq/acptflag" class="combo_s_essential" appearance="minimal" style="left:445px; top:44; width:95px; height:19px; ">
  1471. <choices>
  1472. <item>
  1473. <label>전체</label>
  1474. <value/>
  1475. </item>
  1476. <item>
  1477. <label>미접수</label>
  1478. <value>N</value>
  1479. </item>
  1480. <item>
  1481. <label>접수</label>
  1482. <value>Y</value>
  1483. </item>
  1484. <item>
  1485. <label>부결</label>
  1486. <value>C</value>
  1487. </item>
  1488. </choices>
  1489. <script type="javascript" ev:event="xforms-value-changed">
  1490. <![CDATA[
  1491. btn_search.dispatch("DOMActivate");
  1492. ]]>
  1493. </script>
  1494. </select1>
  1495. <input id="ipt_adjtqty" ref="/root/main/goodreq/goodreqlist/adjtqty" class="input_essential" format="#,###" style="left:192px; top:693px; width:163px; height:19px; text-align:right; "/>
  1496. <select1 id="cmb_acptflag" ref="/root/main/goodreq/goodreqlist/acptflag" class="combo_essential" appearance="minimal" style="left:102px; top:693px; width:88px; height:19px; ">
  1497. <choices>
  1498. <itemset nodeset="/root/init/acptflag">
  1499. <label ref="label"/>
  1500. <value ref="value"/>
  1501. </itemset>
  1502. </choices>
  1503. <script type="javascript" ev:event="xforms-value-changed">
  1504. <![CDATA[
  1505. /* 미접수처리시 */
  1506. if (model.getValue(cmb_acptflag.attribute("ref"))=="N")
  1507. {
  1508. model.setValue(ipt_acptcharid.attribute("ref"), "");
  1509. model.setValue(ipt_acptdd.attribute("ref"), "");
  1510. model.setValue(ipt_adjtqty.attribute("ref"), 0);
  1511. model.setValue(ipt_adjtrsn.attribute("ref"), "");
  1512. model.setValue(cmb_acpttype.attribute("ref"), "");
  1513. }
  1514. /* 접수처리시 */
  1515. else if (model.getValue(cmb_acptflag.attribute("ref"))=="Y")
  1516. {
  1517. model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
  1518. model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
  1519. model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
  1520. model.setValue(cmb_acpttype.attribute("ref"), "1");
  1521. }
  1522. /* 부결처리시 */
  1523. else if (model.getValue(cmb_acptflag.attribute("ref"))=="C")
  1524. {
  1525. model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
  1526. model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
  1527. /* 부결처리시 수량을 0으로 셋팅하는것 */
  1528. model.setValue(ipt_adjtqty.attribute("ref"), 0);
  1529. //model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
  1530. model.setValue(cmb_acpttype.attribute("ref"), "");
  1531. }
  1532. model.refresh();
  1533. ]]>
  1534. </script>
  1535. </select1>
  1536. <input id="ipt_acptdd" ref="/root/main/goodreq/goodreqlist/acptdd" class="input_essential" visibility="hidden" style="left:560px; top:357px; width:25px; height:19px; text-align:right; "/>
  1537. <input id="ipt_acptcharid" ref="/root/main/goodreq/goodreqlist/acptcharid" class="input_essential" visibility="hidden" style="left:570px; top:381px; width:15px; height:19px; text-align:center; "/>
  1538. <caption id="caption11" class="cell_1" style="left:23px; top:715px; width:78px; height:23px; vertical-align:middle; ">조정사유</caption>
  1539. <input id="ipt_adjtrsn" ref="/root/main/goodreq/goodreqlist/adjtrsn" class="input_essential" style="left:102px; top:717px; width:504px; height:19px; text-align:left; "/>
  1540. <line id="line6" class="line_1" style="x1:0px; y1:687px; x2:605px; y2:687px; "/>
  1541. <caption id="caption12" class="cell_1" style="left:0px; top:691px; width:22px; height:47px; vertical-align:middle; ">접수</caption>
  1542. <caption id="caption44" style="left:203px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
  1543. <caption id="caption45" class="cell_1" style="left:101px; top:403px; width:25px; height:23px; vertical-align:middle; ">대</caption>
  1544. <caption id="caption46" class="cell_1" style="left:269px; top:403px; width:25px; height:23px; vertical-align:middle; ">중</caption>
  1545. <caption id="caption47" class="cell_1" style="left:438px; top:403px; width:25px; height:23px; vertical-align:middle; ">소</caption>
  1546. <caption id="caption49" class="cell_1" style="left:198px; top:591px; width:103px; height:23px; vertical-align:middle; ">예산계정</caption>
  1547. <caption id="caption50" class="cell_1" style="left:303px; top:613px; width:100px; height:23px; vertical-align:middle; ">연구과제</caption>
  1548. <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" maxlength="4" style="left:405px; top:615px; width:77px; height:19px; ">
  1549. <script type="javascript" ev:event="xforms-value-changed">
  1550. <![CDATA[
  1551. if(ipt_stdysubjno.value.length == 0)
  1552. {
  1553. ipt_stdysubjnm.value = "";
  1554. }else{
  1555. // var fprojectyn = model.getValue(cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
  1556. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno,reqdd",
  1557. cmb_instcd_search.value + ",stdysubjno," + ipt_stdysubjno.value + "," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")), "", "stdysubjno,stdysubjnm",
  1558. ipt_stdysubjno, "SPRSD00260", "instcd,reqdd","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")) );
  1559. }
  1560. model.refresh();
  1561. ]]>
  1562. </script>
  1563. </input>
  1564. <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" appearance="input" style="left:505px; top:615px; width:98px; height:19px; ">
  1565. <script type="javascript" ev:event="xforms-value-changed">
  1566. <![CDATA[
  1567. if(ipt_stdysubjnm.value.length == 0)
  1568. {
  1569. ipt_stdysubjno.value = "";
  1570. }else
  1571. {
  1572. // var fprojectyn = model.getValue(cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
  1573. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm,reqdd",
  1574. cmb_instcd_search.value + ",stdysubjnm," + ipt_stdysubjnm.value + "," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")), "", "stdysubjno,stdysubjnm",
  1575. ipt_stdysubjnm, "SPRSD00260", "instcd,reqdd","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
  1576. }
  1577. model.refresh();
  1578. ]]>
  1579. </script>
  1580. </input>
  1581. <button id="btn_stdysubjnm" class="icon_search" style="left:485px; top:616px; width:16px; height:16px; ">
  1582. <caption/>
  1583. <script type="javascript" ev:event="DOMActivate">
  1584. <![CDATA[
  1585. // var fprojectyn = model.getValue(cmb_bugtcd.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtcd.focusIndex+1) +"]/projectyn");
  1586. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd,reqdd","cmb_instcd_search," + grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
  1587. model.refresh();
  1588. ]]>
  1589. </script>
  1590. </button>
  1591. <button id="button12" class="btn2_letter3" style="left:1140px; top:624px; width:53px; height:19px; ">
  1592. <caption>행삭제</caption>
  1593. <script type="javascript" ev:event="DOMActivate">
  1594. <![CDATA[
  1595. if(grd_psgelist.valueMatrix(grd_psgelist.row, grd_psgelist.colRef("psgedeptaprvyn"))=="Y")
  1596. {
  1597. messageBox("경유부서에서 접수된건입니다! 삭제 할수 " ,"I004");
  1598. //model.setFocus("cmb_instcd_search");
  1599. return;
  1600. }
  1601. misfGridIUD(grd_psgelist, "D");
  1602. ]]>
  1603. </script>
  1604. </button>
  1605. <button id="button13" class="btn2_letter3" style="left:1085px; top:624px; width:53px; height:19px; ">
  1606. <caption>행추가</caption>
  1607. <script type="javascript" ev:event="DOMActivate">
  1608. <![CDATA[
  1609. if(grd_goodreq.rows - grd_goodreq.fixedRows > 0) misfGridIUD(grd_psgelist, "A");
  1610. ]]>
  1611. </script>
  1612. </button>
  1613. <input id="ipt_suplplcecd" ref="/root/main/goodreq/goodreqlist/suplplcecd" class="input_default" style="left:102px; top:475px; width:120px; height:19px; ">
  1614. <script type="javascript" ev:event="xforms-value-changed">
  1615. <![CDATA[
  1616. if(ipt_suplplcecd.value.length == 0)
  1617. ipt_suplplcenm.value = "";
  1618. else
  1619. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1620. opt_instcdgood.value + "," + "entrregno," + ipt_suplplcecd.value, "", "suplplcecd,suplplcenm",
  1621. ipt_suplplcecd, "SPRSD00220", "instcd","opt_instcdgood");
  1622. model.refresh();
  1623. ]]>
  1624. </script>
  1625. <script type="javascript" ev:event="onkeydown">
  1626. <![CDATA[
  1627. if(event.keyCode == 9)
  1628. {
  1629. if(event.shiftKey)model.setFocus("cmb_prodplce");
  1630. else model.setFocus("ipt_goodmodel");
  1631. }
  1632. event.preventDefault();
  1633. ]]>
  1634. </script>
  1635. </input>
  1636. <caption id="caption51" class="cell_1" style="left:0px; top:473px; width:100px; height:23px; vertical-align:middle; ">거래처</caption>
  1637. <button id="btn_suplplcecd" class="icon_search" style="left:226px; top:477px; width:16px; height:16px; ">
  1638. <caption/>
  1639. <script type="javascript" ev:event="DOMActivate">
  1640. <![CDATA[
  1641. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","opt_instcdgood");
  1642. model.refresh();
  1643. ]]>
  1644. </script>
  1645. </button>
  1646. <input id="ipt_suplplcenm" ref="/root/main/goodreq/goodreqlist/suplplcenm" class="input_fix" appearance="input" style="left:246px; top:475px; width:360px; height:19px; ">
  1647. <script type="javascript" ev:event="xforms-value-changed">
  1648. <![CDATA[
  1649. if(ipt_suplplcenm.value.length == 0)
  1650. ipt_suplplcecd.value = "";
  1651. else
  1652. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1653. opt_instcdgood.value + "," + "custnm," + ipt_suplplcenm.value, "", "suplplcecd,suplplcenm",
  1654. ipt_suplplcenm, "SPRSD00220", "instcd","opt_instcdgood");
  1655. model.refresh();
  1656. ]]>
  1657. </script>
  1658. </input>
  1659. <input id="ipt_plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" class="input_s_essential" disabled="true" format="#,###" style="left:495px; top:522px; width:110px; height:19px; text-align:right; "/>
  1660. <caption id="caption53" class="cell_1" style="left:304px; top:520px; width:36px; height:22px; vertical-align:middle; ">단가</caption>
  1661. <caption id="caption55" class="cell_1" style="left:453px; top:520px; width:40px; height:22px; vertical-align:middle; ">금액</caption>
  1662. <input id="ipt_wncurncyamt" ref="/root/main/goodreq/goodreqlist/wncurncyamt" class="input_s_essential" format="#,###" style="left:342px; top:522px; width:108px; height:19px; text-align:right; "/>
  1663. <button id="brn_all_check" class="btn2_letter10" style="left:976px; top:73px; width:130px; height:19px; ">
  1664. <caption>구매승인/미승인.선택</caption>
  1665. <script type="javascript" ev:event="DOMActivate">
  1666. <![CDATA[
  1667. // fChangeStatus( "C", "접수" );
  1668. // model.refresh();
  1669. fSettingPurcRece();
  1670. ]]>
  1671. </script>
  1672. </button>
  1673. <button id="btn_purcaprv" class="btn2_letter6" style="left:1108px; top:73px; width:86px; height:19px; ">
  1674. <caption>선택승인처리</caption>
  1675. <script type="javascript" ev:event="DOMActivate">
  1676. <![CDATA[
  1677. var updtdata = getGridUpdateData(grd_goodreq);
  1678. if( updtdata!="" ) {
  1679. misfSave("TXRSD11101");
  1680. if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
  1681. }
  1682. ]]>
  1683. </script>
  1684. </button>
  1685. <button id="btn_mngtdeptcd" class="icon_search" style="left:473px; top:571px; width:16px; height:16px; ">
  1686. <caption/>
  1687. <script type="javascript" ev:event="DOMActivate">
  1688. <![CDATA[
  1689. var recv_list = "mngtdeptcd,mngtdeptcdnm";
  1690. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_checkinstcd.value, "instcd") ;
  1691. model.refresh();
  1692. ]]>
  1693. </script>
  1694. </button>
  1695. <caption id="cap_mngtdeptcd" class="cell_1" style="left:304px; top:567px; width:86px; height:23px; vertical-align:middle; ">사용부서</caption>
  1696. <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="input_fix" appearance="input" style="left:493px; top:569px; width:112px; height:19px; ">
  1697. <script type="javascript" ev:event="xforms-value-changed">
  1698. <![CDATA[
  1699. if(ipt_mngtdeptcdnm.value.length == 0)
  1700. ipt_mngtdeptcd.value = "";
  1701. else
  1702. rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
  1703. "deptnm," + ipt_mngtdeptcdnm.value + "," + opt_checkinstcd.value, "", "mngtdeptcd,mngtdeptcdnm",
  1704. ipt_mngtdeptcdnm, "SPRPZ00200", "instcd","opt_checkinstcd");
  1705. model.refresh();
  1706. ]]>
  1707. </script>
  1708. </input>
  1709. <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:102px; top:569px; width:67px; height:19px; ">
  1710. <script type="javascript" ev:event="xforms-value-changed">
  1711. <![CDATA[
  1712. if(ipt_cntrdeptcd.value.length == 0)
  1713. ipt_cntrdeptcdnm.value = "";
  1714. else
  1715. rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
  1716. "deptcd," + model.getValue(ipt_cntrdeptcd.attribute("ref")) + "," + opt_checkinstcd.value, "", "cntrdeptcd,cntrdeptcdnm",
  1717. ipt_cntrdeptcd, "SPRPZ00200", "instcd","opt_checkinstcd");
  1718. model.refresh();
  1719. ]]>
  1720. </script>
  1721. </input>
  1722. <button id="btn_cntrdeptcd" class="icon_search" style="left:172px; top:569px; width:16px; height:16px; ">
  1723. <caption/>
  1724. <script type="javascript" ev:event="DOMActivate">
  1725. <![CDATA[
  1726. var recv_list = "cntrdeptcd,cntrdeptcdnm";
  1727. misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_checkinstcd.value, "instcd") ;
  1728. model.refresh();
  1729. ]]>
  1730. </script>
  1731. </button>
  1732. <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:392px; top:569px; width:77px; height:19px; ">
  1733. <script type="javascript" ev:event="xforms-value-changed">
  1734. <![CDATA[
  1735. if(ipt_mngtdeptcd.value.length == 0)
  1736. ipt_mngtdeptcdnm.value = "";
  1737. else
  1738. rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
  1739. "deptcd," + ipt_mngtdeptcd.value + "," + opt_checkinstcd.value, "", "mngtdeptcd,mngtdeptcdnm",
  1740. ipt_mngtdeptcd, "SPRPZ00200", "instcd","opt_checkinstcd");
  1741. model.refresh();
  1742. ]]>
  1743. </script>
  1744. </input>
  1745. <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="input_fix" appearance="input" style="left:190px; top:569px; width:110px; height:19px; ">
  1746. <script type="javascript" ev:event="xforms-value-changed">
  1747. <![CDATA[
  1748. if(ipt_cntrdeptcdnm.value.length == 0)
  1749. ipt_cntrdeptcd.value = "";
  1750. else
  1751. rszfValidationCheck("TRRPZ00201", "custlist", "refcond,retrnm,instcd",
  1752. "deptnm," + ipt_cntrdeptcdnm.value + "," + opt_checkinstcd.value, "", "cntrdeptcd,cntrdeptcdnm",
  1753. ipt_cntrdeptcdnm, "SPRPZ00200", "instcd","opt_checkinstcd");
  1754. model.refresh();
  1755. ]]>
  1756. </script>
  1757. </input>
  1758. <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:567px; width:100px; height:23px; vertical-align:middle; ">청구부서</caption>
  1759. <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" visibility="hidden" style="left:535px; top:380px; width:25px; height:19px; "/>
  1760. <input id="ipt_studyinstcd" ref="/root/main/goodreq/goodreqlist/studyinstcd" visibility="hidden" style="left:485px; top:380px; width:50px; height:19px; "/>
  1761. <select1 id="cmb_studyinstcd" ref="/root/send/goodreq/studyinstcd" appearance="minimal" style="left:445px; top:18px; width:170px; height:19px; ">
  1762. <choices>
  1763. <itemset>
  1764. <label/>
  1765. <value/>
  1766. </itemset>
  1767. </choices>
  1768. <script type="javascript" ev:event="xforms-value-changed">
  1769. <![CDATA[
  1770. opt_reqtempinstcd.value = cmb_studyinstcd.value;
  1771. btn_search.dispatch("DOMActivate");
  1772. ]]>
  1773. </script>
  1774. </select1>
  1775. <caption id="cap_studyinstcd" class="search_name" style="left:360px; top:19px; width:99px; height:17px; ">연구기관 :</caption>
  1776. <output id="opt_checkinstcd" ref="/root/send/goodreq/checkinstcd" visibility="hidden" style="left:775px; top:70px; width:40px; height:19px; "/>
  1777. <output id="opt_reqtempinstcd" ref="/root/send/goodreq/reqtempinstcd" visibility="hidden" style="left:705px; top:70px; width:40px; height:19px; "/>
  1778. <output id="opt_instcdgood" ref="/root/init/instcdgood" visibility="hidden" style="left:985px; top:45px; width:40px; height:19px; "/>
  1779. <select1 id="cmb_groupbugt" ref="/root/send/goodreq/groupbugt" class="combo_default" appearance="minimal" style="left:304px; top:593px; width:108px; height:19px; ">
  1780. <choices>
  1781. <itemset>
  1782. <label/>
  1783. <value/>
  1784. </itemset>
  1785. </choices>
  1786. <script type="javascript" ev:event="xforms-value-changed">
  1787. <![CDATA[
  1788. // if(cmb_instcd_search.value != '103')
  1789. // {
  1790. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, '', '3');
  1791. // }else{
  1792. // rszfComboBugtList(cmb_bugtcd,cmb_instcd_search.value, cmb_groupbugt.value, '3');
  1793. // }
  1794. //
  1795. fDisabledComboflag();
  1796. ]]>
  1797. </script>
  1798. </select1>
  1799. <select1 id="cmb_acpttype" ref="/root/main/goodreq/goodreqlist/acpttype" class="combo_essential" visibility="hidden" appearance="minimal" style="left:480px; top:695px; width:75px; height:19px; ">
  1800. <choices>
  1801. <itemset nodeset="/root/init/acpttype">
  1802. <label ref="label"/>
  1803. <value ref="value"/>
  1804. </itemset>
  1805. </choices>
  1806. <script type="javascript" ev:event="xforms-value-changed">
  1807. <![CDATA[
  1808. /* 미접수처리시 */
  1809. if (model.getValue(cmb_acptflag.attribute("ref"))=="N")
  1810. {
  1811. model.setValue(ipt_acptcharid.attribute("ref"), "");
  1812. model.setValue(ipt_acptdd.attribute("ref"), "");
  1813. model.setValue(ipt_adjtqty.attribute("ref"), 0);
  1814. model.setValue(ipt_adjtrsn.attribute("ref"), "");
  1815. }
  1816. /* 접수처리시 */
  1817. else if (model.getValue(cmb_acptflag.attribute("ref"))=="Y")
  1818. {
  1819. model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
  1820. model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
  1821. model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
  1822. }
  1823. /* 부결처리시 */
  1824. else if (model.getValue(cmb_acptflag.attribute("ref"))=="C")
  1825. {
  1826. model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
  1827. model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
  1828. /* 부결처리시 수량을 0으로 셋팅하는것 */
  1829. model.setValue(ipt_adjtqty.attribute("ref"), 0);
  1830. //model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
  1831. }
  1832. model.refresh();
  1833. ]]>
  1834. </script>
  1835. </select1>
  1836. <output id="opt_projectnm" ref="/root/main/goodreq/goodreqlist/projectnm" class="output_fix" style="left:102px; top:617px; width:198px; height:19px; "/>
  1837. <input id="ipt_bugtnm" ref="/root/main/goodreq/goodreqlist/bugtnm" style="left:435px; top:593px; width:169px; height:19px; ">
  1838. <script type="javascript" ev:event="xforms-value-changed">
  1839. <![CDATA[
  1840. ipt_stdysubjno.value = '';
  1841. ipt_stdysubjnm.value = '';
  1842. ]]>
  1843. </script>
  1844. </input>
  1845. <input id="ipt_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" visibility="hidden" style="left:395px; top:325px; width:40px; height:19px; "/>
  1846. <button id="btn_bugtcd" class="icon_search" style="left:416px; top:595px; width:16px; height:16px; ">
  1847. <caption/>
  1848. <script type="javascript" ev:event="DOMActivate">
  1849. <![CDATA[
  1850. if(cmb_instcd_search.value=='032'){
  1851. rszfOpenPopUpListByWndName(ipt_bugtnm,"","bugtcd,bugtnm,projectid,projectnm,totamt,bugtexpcamt,useamt,remamt,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", '103' + "," + ipt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
  1852. }else{
  1853. rszfOpenPopUpListByWndName(ipt_bugtnm,"","bugtcd,bugtnm,projectid,projectnm,totamt,bugtexpcamt,useamt,remamt,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", cmb_instcd_search.value + "," + ipt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
  1854. }
  1855. model.refresh();
  1856. ]]>
  1857. </script>
  1858. </button>
  1859. <input id="ipt_projectid" ref="/root/main/goodreq/goodreqlist/projectid" visibility="hidden" style="left:350px; top:325px; width:37px; height:19px; "/>
  1860. <caption id="caption16" class="cell_1" style="left:0px; top:615px; width:100px; height:23px; vertical-align:middle; ">프로젝트</caption>
  1861. <input id="ipt_remainder" ref="/root/main/goodreq/goodreqlist/remainder" class="output_fix" format="#,###" style="left:479px; top:640px; width:101px; height:19px; text-align:right; "/>
  1862. <input id="input1" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="output_fix" format="#,###" style="left:269px; top:640px; width:101px; height:19px; text-align:right; "/>
  1863. <input id="ipt_totamt" ref="/root/main/goodreq/goodreqlist/totamt" class="output_fix" format="#,###" style="left:164px; top:640px; width:101px; height:19px; text-align:right; "/>
  1864. <input id="ipt_bugtexecamt" ref="/root/main/goodreq/goodreqlist/bugtexecamt" class="output_fix" format="#,###" style="left:374px; top:640px; width:101px; height:19px; text-align:right; "/>
  1865. <caption id="cap_fundorigin" class="cell_1" style="left:1px; top:543px; width:100px; height:23px; vertical-align:middle; ">자금출처</caption>
  1866. <select1 id="cmb_fundorigin" ref="/root/main/goodreq/goodreqlist/fundorigin" class="combo_default" disabled="true" appearance="minimal" style="left:102px; top:546px; width:198px; height:19px; ">
  1867. <choices>
  1868. <itemset>
  1869. <label/>
  1870. <value/>
  1871. </itemset>
  1872. </choices>
  1873. </select1>
  1874. </group>
  1875. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  1876. <button id="button46" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1877. <caption>초기화</caption>
  1878. <script type="javascript" ev:event="DOMActivate">
  1879. <![CDATA[
  1880. fInitialize();
  1881. ]]>
  1882. </script>
  1883. </button>
  1884. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1885. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  1886. <caption>저장</caption>
  1887. <script type="javascript" ev:event="DOMActivate">
  1888. <![CDATA[
  1889. if(fCheckSaveData() == false)return;
  1890. if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
  1891. misfGridInit(grd_goodreq);
  1892. misfGridIUD(grd_goodreq, "A");
  1893. model.refresh();
  1894. }
  1895. misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
  1896. model.refresh();
  1897. misfSave("TXRSD11101");
  1898. if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
  1899. ]]>
  1900. </script>
  1901. </button>
  1902. <button id="button28" class="btn6_letter5" visibility="hidden" style="left:0; top:3px; width:92px; height:22px; ">
  1903. <caption>청구서출력</caption>
  1904. </button>
  1905. </group>
  1906. </xhtml:body>
  1907. </xhtml:html>