SMRSD05600_비품청구 등록(성의교정).xrw 83 KB

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