SMRSD05100_비품청구 접수.xrw 98 KB

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