SMRSC20200_장비신청상세내역(경북대).xrw 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <reqeqmtlist>
  11. <workflag/>
  12. <reqpsnid/>
  13. <reqpsnnm/>
  14. <goodflagengnm/>
  15. <goodflaghngnm/>
  16. <reqdeptcd/>
  17. <reqdeptnm/>
  18. <installplcecd/>
  19. <installplcenm/>
  20. <mngtdeptcd/>
  21. <mngtdeptnm/>
  22. <usemthd/>
  23. <appqty/>
  24. <goodunitcost/>
  25. <welfcd/>
  26. <bugtforgnamt/>
  27. <fcstuseyearno/>
  28. <bugtyy/>
  29. <bugtforgnamtunit/>
  30. <chgrate/>
  31. <etccostrt/>
  32. <bugtwncurncy/>
  33. <addmnpwrdr/>
  34. <addmnpwrnurs/>
  35. <addmnpwrengr/>
  36. <addmnpwretc/>
  37. <installspcepossnyn/>
  38. <calcscorgenryn/>
  39. <usgepurcneed/>
  40. <possesdocucd/>
  41. <requsrtel/>
  42. <rowstatus/>
  43. <instcd/>
  44. <revwopin1/>
  45. <revwopin2/>
  46. <revwopin3/>
  47. <revwopin4/>
  48. <usepsn/>
  49. <goodflag/>
  50. <reqdd/>
  51. <fileyn1/>
  52. <fileyn2/>
  53. <fileyn3/>
  54. <fileyn4/>
  55. <fileyn5/>
  56. <fileyn6/>
  57. <fileyn7/>
  58. <fileyn8/>
  59. <comusedept/>
  60. <comusedeptnm/>
  61. <commissionyn/>
  62. <kreqmtcmt/>
  63. <kreqmtyn/>
  64. <deprdistprf1/>
  65. <deprdistper1/>
  66. <deprdistprf2/>
  67. <deprdistper2/>
  68. <deprdistprf3/>
  69. <deprdistper3/>
  70. <deprdistprf4/>
  71. <deprdistper4/>
  72. <deprdistprf5/>
  73. <deprdistper5/>
  74. <deprdistprf6/>
  75. <deprdistper6/>
  76. <deprdistprf7/>
  77. <deprdistper7/>
  78. <deprdistprf8/>
  79. <deprdistper8/>
  80. <deprdistprf9/>
  81. <deprdistper9/>
  82. <deprdistprf10/>
  83. <deprdistper10/>
  84. <introtype/>
  85. <rental/>
  86. <smkindeqyn>Y</smkindeqyn>
  87. <prcpcntyn>Y</prcpcntyn>
  88. <deprdistpyn>Y</deprdistpyn>
  89. </reqeqmtlist>
  90. <list>
  91. <recmeqmtlist/>
  92. <smlartyeqmtlist/>
  93. <fixasetcd>
  94. <fixasetcdlistv/>
  95. </fixasetcd>
  96. <mon1cdlist/>
  97. <mon2cdlist/>
  98. <introductioneqmtlist/>
  99. <purcprcsprescondlist/>
  100. </list>
  101. <calc/>
  102. </main>
  103. <send>
  104. <instcd/>
  105. <mngtdeptcd/>
  106. <reqdeptcd/>
  107. <cntrdeptcd/>
  108. <save>
  109. <smlartyeqmtlist/>
  110. <recmeqmtlist/>
  111. <mon1cdlist/>
  112. <mon2cdlist/>
  113. <reqeqmtlist/>
  114. <purcprcsprescondlist/>
  115. </save>
  116. </send>
  117. <hidden>
  118. <file/>
  119. </hidden>
  120. <temp>
  121. <qchgrate/>
  122. </temp>
  123. <emplno>
  124. <emplno/>
  125. <dutplcedeptcd/>
  126. </emplno>
  127. <delete>
  128. <fiepath/>
  129. </delete>
  130. <introgrid>
  131. <search>
  132. <fixasetcd/>
  133. <introflag>search</introflag>
  134. <instcd/>
  135. </search>
  136. <result/>
  137. <save>
  138. <introductioneqmtlist/>
  139. </save>
  140. </introgrid>
  141. <garbage>
  142. <goodflag>EQ</goodflag>
  143. </garbage>
  144. </root>
  145. </instance>
  146. <script type="javascript" ev:event="xforms-ready">
  147. <![CDATA[
  148. misfGridInit(grd_recmeqlist);
  149. misfGridInit(grd_introductioneqmt);
  150. misfGridInit(grd_purcprcsprescond);
  151. // misfGridInit(grd_smlartyeqmtlist);
  152. // misfGridInit(grd_recmeqlist);
  153. // misfGridInit(grd_psgedeptlist);
  154. // misfGridInit(grd_fixasetcdlistv);
  155. // misfGridInit(grd_fixasetcdlist);
  156. //
  157. // misfGridInit(grd_mon1cdlist);
  158. // misfGridInit(grd_mon2cdlist);
  159. // misfGridComboComCdList("M0044", grd_mon1cdlist, "insu_nopyyn"); // 급여,비급여.
  160. // misfComboComCdList("030R0005", chk_possesdocu); //구비서류
  161. misfGridComboComCdList("030R0027",grd_purcprcsprescond,"purcprcsstat");
  162. misfComboComCdListMulti("R0052,R0047,R0047,R0035","cmb_usemthd,cmb_bugtforgnamtunit,grd_recmeqlist.curncyunit,grd_recmeqlist.prodplce"); //공동사용여부,화폐단위,추천장비.화폐단위
  163. submit("TRRSC20201");
  164. // submit("TRRSC20202");
  165. // submit("TRRSC20203");
  166. // submit("TRRSC20204");
  167. model.makeNode("/root/main/reqeqmtlist/introtype");
  168. model.makeNode("/root/main/reqeqmtlist/rental");
  169. model.makeNode("/root/main/reqeqmtlist/smkindeqyn");
  170. if(model.getValue("/root/main/reqeqmtlist/smkindeqyn") == ""){
  171. model.setValue("/root/main/reqeqmtlist/smkindeqyn","Y");
  172. }
  173. if(model.getValue("/root/main/reqeqmtlist/smkindeqyn") == "N"){
  174. btn_addsmlart.disabled = true;
  175. btn_delsmlart.disabled = true;
  176. }
  177. model.makeNode("/root/main/reqeqmtlist/prcpcntyn");
  178. if(model.getValue("/root/main/reqeqmtlist/prcpcntyn") == ""){
  179. model.setValue("/root/main/reqeqmtlist/prcpcntyn","Y");
  180. }
  181. if(model.getValue("/root/main/reqeqmtlist/prcpcntyn") == "N"){
  182. btn_addmon1.disabled = true;
  183. btn_delmon1.disabled = true;
  184. }
  185. model.makeNode("/root/main/reqeqmtlist/deprdistpyn");
  186. if(model.getValue("/root/main/reqeqmtlist/deprdistpyn") == ""){
  187. model.setValue("/root/main/reqeqmtlist/deprdistpyn","Y");
  188. }
  189. if(model.getValue("/root/main/reqeqmtlist/deprdistpyn") == "N"){
  190. ipt_deprdistprf1.disabled = true;
  191. ipt_deprdistper1.disabled = true;
  192. ipt_deprdistprf2.disabled = true;
  193. ipt_deprdistper2.disabled = true;
  194. ipt_deprdistprf3.disabled = true;
  195. ipt_deprdistper3.disabled = true;
  196. ipt_deprdistprf4.disabled = true;
  197. ipt_deprdistper4.disabled = true;
  198. ipt_deprdistprf5.disabled = true;
  199. ipt_deprdistper5.disabled = true;
  200. ipt_deprdistprf6.disabled = true;
  201. ipt_deprdistper6.disabled = true;
  202. ipt_deprdistprf7.disabled = true;
  203. ipt_deprdistper7.disabled = true;
  204. ipt_deprdistprf8.disabled = true;
  205. ipt_deprdistper8.disabled = true;
  206. ipt_deprdistprf9.disabled = true;
  207. ipt_deprdistper9.disabled = true;
  208. ipt_deprdistprf10.disabled = true;
  209. ipt_deprdistper10.disabled = true; ;
  210. }
  211. filedeletebtnvisible();
  212. var instcd = model.getValue("/root/main/reqeqmtlist/instcd");
  213. var commissionyn = model.getValue("/root/main/reqeqmtlist/commissionyn");
  214. if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "disabled")
  215. {
  216. buydisabled("all");
  217. group3.disabled = true;
  218. btn_save.disabled = true;
  219. //2014.06.30 박준범 - comment처리
  220. //btn_print.visible = true;
  221. btn_smlartyeqmt.dispatch("onclick");
  222. }else if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "buy"){
  223. group3.disabled = true;
  224. buydisabled("buy");
  225. btn_purcprcsprescond.dispatch("onclick");
  226. }else if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "review"){
  227. group3.disabled = true;
  228. model.setValue("/root/emplno/emplno", getUserInfo("userid"));
  229. model.setValue("/root/emplno/dutplcedeptcd", getUserInfo("dutplcecd"));
  230. submit("TRRSC20102");
  231. var deprtmangr = model.getValue("/root/deprtmangr/deprtmangr");
  232. var dutplcedeptcd = model.getValue("/root/deprtmangr/dutplcedeptcd");
  233. //기자재도입심의 ※ 본원일 경우 위원회여부 상관없이 이제문선생님 , 칠곡일경우 위원회여부가 Y이면 이제문선생님, N이면 서보성선생님
  234. if((instcd == "032" && commissionyn == "Y" && getUserInfo("userid") == "08190") || getUserInfo("userid") == "MIS" || getUserInfo("userid") == "95034"
  235. || (instcd == "031" && getUserInfo("userid") == "08190") || (instcd == "032" && commissionyn == "N" && getUserInfo("userid") == "10326")){
  236. tx_revwopin1.disabled = false;
  237. }
  238. if(dutplcedeptcd == "4090500000" || getUserInfo("userid") == "MIS"){ //의공학과장
  239. tx_revwopin2.disabled = false;
  240. }
  241. if(dutplcedeptcd == "4060100000" || getUserInfo("userid") == "MIS"){ //시설팀
  242. tx_revwopin3.disabled = false;
  243. }
  244. if(dutplcedeptcd == "4130116000" || getUserInfo("userid") == "MIS"){ //의료정보센터장
  245. tx_revwopin4.disabled = false;
  246. }
  247. buydisabled("review");
  248. group3.disabled = true;
  249. btn_reviewdeptopin.dispatch("onclick");
  250. }else if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "i"){
  251. model.setValue("/root/main/reqeqmtlist/reqdd",getCurrentDate().substr(0,8));
  252. model.setValue("/root/main/reqeqmtlist/goodflag","EQ");
  253. model.setValue("/root/main/reqeqmtlist/reqpsnid",getUserInfo("userid"));
  254. model.setValue("/root/main/reqeqmtlist/reqpsnnm",getUserInfo("usernm"));
  255. model.setValue("/root/main/reqeqmtlist/prcsstat", "1");
  256. btn_reviewdeptopin.visible = false;
  257. btn_introductioneqmt.visible = false;
  258. btn_purcprcsprescond.visible = false;
  259. btn_smlartyeqmt.dispatch("onclick");
  260. }else{
  261. grd_purcprcsprescond.disabled = true;
  262. btn_addpurc.disabled = true;
  263. btn_delpurc.disabled = true;
  264. //2014.06.30 박준범 - comment처리
  265. //btn_print.visible = true;
  266. btn_smlartyeqmt.dispatch("onclick");
  267. }
  268. model.refresh();
  269. //2014.06.30 박준범 추가
  270. messageBox("2014. 7. 1.부터 장비신청은 전자결재로 전환됩니다. " + "\n\n" +
  271. "전자결재 진행시 수신자(기획조정팀, 치과지원팀, 칠곡병원 기획팀)가 신청부서의 장비 위원회를 관리하는지 재확인하시고, " + "\n" +
  272. "필요서류 붙임이 누락되지 않도록 유념하여 주시기 바랍니다. ", "I999", "");
  273. ]]>
  274. </script>
  275. <submission id="TRRSC11902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/publusedeptlist"/>
  276. <submission id="TRRSC11906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/psgedeptlist"/>
  277. <submission id="TXRSC11903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  278. <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/fixasetcd"/>
  279. <submission id="TRRSC20102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/emplno" resultref="/root/temp"/>
  280. <submission id="TXRSC20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  281. <submission id="TRRSC20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list"/>
  282. <submission id="TRRSC20202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/smlartyeqmtlist"/>
  283. <submission id="TRRSC20203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/mon1cdlist"/>
  284. <submission id="TRRSC20204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/mon2cdlist"/>
  285. <submission id="TRRSC20205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/fixasetcd"/>
  286. <submission id="TXRSC20202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  287. <submission id="TXRSC20203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/hidden/file" resultref="/root/main/filepath"/>
  288. <submission id="TXRSC20204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/delete" resultref="/root/temp"/>
  289. <submission id="TRRSC20206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/introgrid/search" resultref="/root/introgrid/result"/>
  290. <submission id="TXRSC20206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/introgrid/save" resultref="/root/temp"/>
  291. </model>
  292. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  293. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  294. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  295. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  296. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  297. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  298. <script type="javascript">
  299. <![CDATA[
  300. var printsaveyn = "N";
  301. function filedeletebtnvisible(){
  302. }
  303. function fAfterRetr()
  304. {
  305. /* 접수부서의 접수가 되었으면*/
  306. for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows; fRow++)
  307. {
  308. if(grd_reqeqmtlist.valueMatrix(fRow, grd_reqeqmtlist.colRef("acptflag")) == "Y")
  309. {
  310. grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = true;
  311. }
  312. else
  313. {
  314. grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = false;
  315. }
  316. }
  317. }
  318. function fupload(flag){
  319. var files = window.fileDialog("open", ",", false);
  320. var replacepath = "";
  321. if ( files.length <= 0 ) return;
  322. model.makeValue(ipt_updpath.attribute("ref") , files); //전체파일경로와이름을 셋팅
  323. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  324. model.setValue("/root/main/reqeqmtlist/filenm"+flag, filename);
  325. submit("TXRSC20203");
  326. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  327. model.setValue("/root/main/reqeqmtlist/filepath"+flag,model.getValue("/root/main/filepath[1]/filepath"));
  328. }
  329. }
  330. function fdelete(flag){
  331. model.setValue("/root/delete/fiepath",model.getValue("/root/main/reqeqmtlist/filepath"+flag));
  332. if(submit("TXRSC20204") == true){
  333. model.setValue("/root/main/reqeqmtlist/fileyn"+flag, "N");
  334. model.setValue("/root/main/reqeqmtlist/filepath"+flag, "");
  335. model.setValue("/root/main/reqeqmtlist/filenm"+flag, "");
  336. }
  337. }
  338. function fdown(flag){
  339. var filepath = model.getValue("/root/main/reqeqmtlist/filepath"+flag);
  340. var filenm = model.getValue("/root/main/reqeqmtlist/filenm"+flag);
  341. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  342. if (localfile != "") {
  343. model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
  344. var rtn = messageBox("파일을", "Q004");
  345. if( rtn == 6 ) {
  346. window.exec(localfile);
  347. }
  348. }
  349. }
  350. function saveChk()
  351. {
  352. if(model.getValue("/root/main/reqeqmtlist/goodflagengnm") == ""){
  353. messageBox("장비명(영)은 필수 입력입니다. 확인하십시오.", "E999", "");
  354. model.setFocus("ipt_goodflagengnm");
  355. return false;
  356. }
  357. if(model.getValue("/root/main/reqeqmtlist/goodflaghngnm") == ""){
  358. messageBox("장비명(한)은 필수 입력입니다. 확인하십시오.", "E999", "");
  359. model.setFocus("ipt_goodflaghngnm");
  360. return false;
  361. }
  362. if(model.getValue("/root/main/reqeqmtlist/workflag") == ""){
  363. messageBox("신청구분을 선택하십시오.", "E999", "");
  364. model.setFocus("cmb_workflag");
  365. return false;
  366. }
  367. if(model.getValue("/root/main/reqeqmtlist/reqdeptcd") == ""){
  368. messageBox("신청부서는 필수 입력입니다. 확인하십시오.", "E999", "");
  369. model.setFocus("ipt_reqdeptcd");
  370. return false;
  371. }
  372. if(model.getValue("/root/main/reqeqmtlist/mngtdeptcd") == ""){
  373. messageBox("사용부서는 필수 입력입니다. 확인하십시오.", "E999", "");
  374. model.setFocus("ipt_mngtdeptcd");
  375. return false;
  376. }
  377. // if(model.getValue("/root/main/reqeqmtlist/appqty") == ""){
  378. // messageBox("청구수량은 필수 입력입니다. 확인하십시오.", "E999", "");
  379. // model.setFocus("ipt_appqty");
  380. // return false;
  381. // }
  382. // if(model.getValue("/root/main/reqeqmtlist/goodunitcost") == ""){
  383. // messageBox("단가는 필수 입력입니다. 확인하십시오.", "E999", "");
  384. // model.setFocus("ipt_goodunitcost");
  385. // return false;
  386. // }
  387. }
  388. function buydisabled(flag)
  389. {
  390. // grd_smlartyeqmtlist.disabled = true;
  391. // grd_fixasetcdlistv.disabled = true;
  392. btn_addsmlart.disabled = true;
  393. btn_delsmlart.disabled = true;
  394. button22.disabled = true;
  395. // btn_eqip.disabled = true;
  396. // grd_mon1cdlist.disabled = true;
  397. btn_addmon1.disabled = true;
  398. btn_delmon1.disabled = true;
  399. //grd_mon2cdlist.disabled = true;
  400. btn_addmon2.disabled = true;
  401. btn_delmon2.disabled = true;
  402. //grd_introductioneqmt.disabled = true;
  403. //grd_recmeqlist.disabled = true;
  404. button1.disabled = true;
  405. button8.disabled = true;
  406. btn_introsave.disabled = true;
  407. btn_addintroductioneqmt.disabled = true;
  408. btn_delintroductioneqmt.disabled = true;
  409. if(flag == "review"){
  410. //grd_purcprcsprescond.disabled = true;
  411. btn_addpurc.disabled = true;
  412. btn_delpurc.disabled = true;
  413. }
  414. if(flag == "all"){
  415. //grd_purcprcsprescond.disabled = true;
  416. btn_addpurc.disabled = true;
  417. btn_delpurc.disabled = true;
  418. }
  419. }
  420. function fSettingGoodList(pnode, nodename)
  421. {
  422. var codynode = instance1.selectNodes(pnode + "/*");
  423. var addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
  424. if(model.getValue(grd_mon2cdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  425. for (var j = 1; j <= codynode.length ; j++) {
  426. if((grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows == 0) || (addRow > grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows))
  427. {
  428. misfGridIUD(grd_mon2cdlist,"A");
  429. // grd_mon2cdlist.addRow(true, true);
  430. // misfGridDefaultSet(grd_mon2cdlist);
  431. addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
  432. }
  433. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  434. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcdnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  435. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplce" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplce"));
  436. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplcenm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplcenm"));
  437. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/purcunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  438. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/instcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/instcd"));
  439. // [2011.04.04] by J.woo
  440. // 내용: 월간재료비 추가로 인한 REQDD 세팅
  441. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/reqdd" , model.getValue("/root/main/reqeqmtlist/reqdd"));
  442. addRow = addRow + 1;
  443. }
  444. //model.removenode(pnode);
  445. model.refresh();
  446. }
  447. // function fCheckRetrieveData(pmsg)
  448. // {
  449. //
  450. // if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  451. // {
  452. // if(pmsg == true)
  453. // {
  454. // messageBox("기관코드를 " ,"C002");
  455. // model.setFocus("opt_instcd");
  456. // }
  457. // return false;
  458. // }
  459. //
  460. // //pmsg == "fselect" --> 조회시
  461. // //pmsg == "true" --> 행추가시
  462. // //구매팀에서 부서코드 없이 조회시 전체를 조회해서 볼수있도록 조건을 바꾸고 행추가시에는 구매팀이더라도 부서를 세팅하고 행추가 할수 있도록 수정함
  463. //
  464. // var ideptcd = getUserInfo("dutplcecd");
  465. // if( (ideptcd=="4080101000" || ideptcd=="4080100000" || ideptcd=="4080102000"|| ideptcd=="4080300000") && pmsg == "fselect" ){
  466. // }else{
  467. // if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  468. // {
  469. // if(pmsg == true || pmsg == "fselect")
  470. // {
  471. //
  472. // messageBox("청구부서를 " ,"C002");
  473. // model.setFocus("ipt_reqdeptcd_search");
  474. // }
  475. // return false;
  476. // }
  477. // }
  478. //
  479. //
  480. //
  481. //
  482. // if(model.getValue(ipt_reqfrmdd_search.attribute("ref")).length== 0 )
  483. // {
  484. // if(pmsg == true)
  485. // {
  486. // messageBox("청구조회시작일자를 " ,"C001");
  487. // model.setFocus("ipt_reqfrmdd_search");
  488. // }
  489. // return false;
  490. // }
  491. //
  492. // if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  493. // {
  494. // if(pmsg == true)
  495. // {
  496. // messageBox("청구조회종료일자를 " ,"C001");
  497. // model.setFocus("ipt_reqtodd_search");
  498. // }
  499. // return false;
  500. // }
  501. //
  502. // return true;
  503. // }
  504. // function fDataCheck( ) {
  505. // if ( grd_reqeqmtlist.rows > 1 )
  506. // misfGridRowStatusChange(grd_reqeqmtlist,"/root/main/list","/root/main");
  507. // var updtdata = getGridUpdateData(grd_reqeqmtlist);
  508. //
  509. // model.refresh();
  510. // if (updtdata != "" ) return true;
  511. //
  512. // updtdata = getGridUpdateData(grd_publusedeptlist);
  513. // if (updtdata != "" ) return true;
  514. // updtdata = getGridUpdateData(grd_smlartyeqmtlist);
  515. // if (updtdata != "" ) return true;
  516. // updtdata = getGridUpdateData(grd_recmeqlist);
  517. // if (updtdata != "" ) return true;
  518. // updtdata = getGridUpdateData(grd_psgedeptlist);
  519. // if (updtdata != "" ) return true;
  520. // updtdata = getGridUpdateData(grd_mon1cdlist);
  521. // if (updtdata != "" ) return true;
  522. // updtdata = getGridUpdateData(grd_mon2cdlist);
  523. // if (updtdata != "" ) return true;
  524. // else return false;
  525. // }
  526. function fSetAddRow( grd_temp ) {
  527. misfGridIUD(grd_temp,"A","N");
  528. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/instcd", model.getValue("/root/main/reqeqmtlist/instcd"));
  529. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqdd", model.getValue("/root/main/reqeqmtlist/reqdd"));
  530. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqseqno", model.getValue("/root/main/reqeqmtlist/reqseqno"));
  531. }
  532. // function fCheckSaveData()
  533. // {
  534. // if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
  535. // {
  536. // messageBox("신청부서는" ,"I003");
  537. // model.setFocus("ipt_reqdeptcd");
  538. // return false;
  539. // }
  540. // if(model.getValue(cmb_workflag.attribute("ref")).length==0)
  541. // {
  542. // messageBox("청구구분은","I003");
  543. // model.setFocus("cmb_workflag");
  544. // return false;
  545. // }
  546. // if(model.getValue(ipt_appqty.attribute("ref")).length==0 || model.getValue(ipt_appqty.attribute("ref"))==0)
  547. // {
  548. // messageBox("청구수량은","I003");
  549. // model.setFocus("ipt_appqty");
  550. // return false;
  551. // }
  552. //
  553. // if(model.getValue(ipt_goodflagengnm.attribute("ref")).length==0)
  554. // {
  555. // messageBox("장비영문명을","I003");
  556. // model.setFocus("ipt_goodflagengnm");
  557. // return false;
  558. // }
  559. // if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length==0)
  560. // {
  561. // messageBox("관리부서를","I003");
  562. // model.setFocus("ipt_mngtdeptcd");
  563. // return false;
  564. // }
  565. // if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
  566. // {
  567. // messageBox("청구부서를","I003");
  568. // model.setFocus("ipt_reqdeptcd");
  569. // return false;
  570. // }
  571. // if(model.getValue(ipt_goodunitcost.attribute("ref")) < 0)
  572. // {
  573. // messageBox("단가를","I003");
  574. // model.setFocus("ipt_goodunitcost");
  575. // return false;
  576. // }
  577. //
  578. // if( checkKeyColumn("grd_recmeqlist") == false) return;
  579. // if( checkKeyColumn("grd_smlartyeqmtlist") == false) return;
  580. // if( checkKeyColumn("grd_psgedeptlist") == false) return;
  581. // if( checkKeyColumn("grd_publusedeptlist") == false) return;
  582. //
  583. // if( checkKeyColumn("grd_mon1cdlist") == false) return;
  584. // if( checkKeyColumn("grd_mon2cdlist") == false) return;
  585. //
  586. // return true;
  587. // }
  588. // function fDefaultSetting()
  589. // {
  590. // model.copyNode("/root/main/reqeqmtlist" , grd_reqeqmtlist.nodeset + "["+ (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]");
  591. //
  592. // model.setValue(opt_reqdd.attribute("ref"), getCurrentDate() );
  593. // model.setValue(ipt_reqdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  594. // model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
  595. // model.setValue(opt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
  596. //
  597. // // 진행상태 "1" :청구
  598. // model.setValue(ipt_prcsstat.attribute("ref"), "1");
  599. // model.setValue(cmb_iopsnflag.attribute("ref"), "H");
  600. //
  601. // var curdate = getCurrentDate();
  602. // var cvtdate = curdate.toDate("YYYYMMDD");
  603. //
  604. // model.setValue(ipt_bugtyy.attribute("ref"), cvtdate.getYear());
  605. //
  606. // // 청구부서,관리부서 셋팅
  607. // model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  608. // model.setValue(ipt_mngtdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
  609. // model.setValue(ipt_reqdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  610. // model.setValue(ipt_reqdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
  611. //
  612. // model.refresh();
  613. // }
  614. // function fMovecd(pgrid_name)
  615. // {
  616. // if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
  617. // {
  618. // messageBox("행추가를 먼저하시거나 '청구구분' 란을 먼저 " ,"C002");
  619. // //model.setFocus("opt_instcd");
  620. // return;
  621. // }
  622. //
  623. // if (grd_fixasetcdlist.row > 0)
  624. // {
  625. // //model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
  626. // model.setValue(ipt_goodflaghngnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
  627. // model.setValue(ipt_goodflagengnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflagengnm")));
  628. //
  629. // model.refresh();
  630. // }
  631. //
  632. // }
  633. // function fSetAmt()
  634. // {
  635. // if(cmb_iopsnflag.value == "H")
  636. // {
  637. //
  638. // ipt_bugtwncurncy.disabled="false";
  639. // ipt_bugtforgnamt.disabled="true";
  640. // ipt_chgrate.disabled="true";
  641. // ipt_etccostrt.disabled="true";
  642. //
  643. // model.setValue(ipt_chgrate.attribute("ref"),"0" );
  644. // model.setValue(ipt_bugtforgnamt.attribute("ref"),"0" );
  645. // model.setValue(ipt_etccostrt.attribute("ref"),"0" );
  646. // }
  647. // else
  648. // {
  649. // ipt_bugtwncurncy.disabled="true";
  650. // ipt_bugtforgnamt.disabled="false";
  651. // ipt_chgrate.disabled="false";
  652. // ipt_etccostrt.disabled="false";
  653. //
  654. // // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
  655. // var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) +
  656. // ( ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) * parseInt(ipt_etccostrt.value) ) / 100 ) ;
  657. // //var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) ;
  658. //
  659. // model.setValue(ipt_bugtwncurncy.attribute("ref"),bugtwncurncy );
  660. // }
  661. // model.refresh();
  662. // }
  663. // function fSetReqAuth()
  664. // {
  665. // if(getUserInfo("dutplceinstcd") == '001')
  666. // {
  667. // return;
  668. // }
  669. // /* ---------------------------------------------------------------------------------------
  670. // * [2007.12.12 HBH ] 청구주기 추가.
  671. // * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
  672. // ---------------------------------------------------------------------------------------*/
  673. // rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_reqflag.attribute("ref")) , ipt_reqdeptcd_search.value, getUserInfo("userid"),"1");
  674. // /*
  675. // if(purcGetPurcAuthInfoByCond("reqauth") != "Y")btn_save.disabled = true;
  676. // else btn_save.disabled = false;
  677. //
  678. // if(purcGetPurcAuthInfoByCond("reqaprvflag") != "2")btn_accept.disabled = true;
  679. // else btn_accept.disabled = false;
  680. // */
  681. //
  682. // btn_accept.disabled = true;
  683. // // btn_save.disabled = true;
  684. // btnselect.disabled = true;
  685. //
  686. // // if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1" || (getUserInfo("dutplcecd") == '4080102000'))
  687. //
  688. // if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1" || (rszfGetPurcDeptCd(cmb_instcd.value) == getUserInfo("dutplcecd")))
  689. // {
  690. // btn_save.disabled = false;
  691. //
  692. // for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows; fRow++)
  693. // {
  694. // grd_reqeqmtlist.isReadOnly(fRow, grd_reqeqmtlist.colRef("deptaprvyn")) = true;
  695. // }
  696. // }
  697. //
  698. // if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" || (rszfGetPurcDeptCd(cmb_instcd.value) == getUserInfo("dutplcecd")))
  699. // // if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" || (getUserInfo("dutplcecd") == '4080102000'))
  700. // {
  701. // btn_save.disabled = false;
  702. // btn_accept.disabled = false;
  703. // btnselect.disabled = false;
  704. // }
  705. //
  706. //
  707. // model.refresh();
  708. // }
  709. // function fControlDisabled(fBool)
  710. // {
  711. // button13.disabled = fBool;
  712. // button14.disabled = fBool;
  713. // grd_recmeqlist.disabled = fBool;
  714. //
  715. // button16.disabled = fBool;
  716. // button18.disabled = fBool;
  717. // grd_smlartyeqmtlist.disabled = fBool;
  718. //
  719. // button17.disabled = fBool;
  720. // button15.disabled = fBool;
  721. // grd_psgedeptlist.disabled = fBool;
  722. //
  723. // button6.disabled = fBool;
  724. // button4.disabled = fBool;
  725. // grd_publusedeptlist.disabled = fBool;
  726. //
  727. // button12.disabled = fBool;
  728. // button11.disabled = fBool;
  729. // grd_mon1cdlist.disabled = fBool;
  730. //
  731. // button20.disabled = fBool;
  732. // button19.disabled = fBool;
  733. // grd_mon2cdlist.disabled = fBool;
  734. //
  735. // grd_fixasetcdlist.disabled = fBool;
  736. // }
  737. function fSetNum(grd_temp, node)
  738. {
  739. var num = new String(grd_temp.row);
  740. if(num.length == 1){
  741. num = "00" + num;
  742. }
  743. else if(num.length == 2){
  744. num = "0" + num;
  745. }
  746. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef(node)) = num;
  747. }
  748. function fDispCalc()
  749. {
  750. // 그룹위치 설정.
  751. var pos = event.y + 360;
  752. //group3.disabled = true;
  753. //grp_btn.disabled= true;
  754. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("money")) = grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("forgncurncyamt"));
  755. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("persent")) = 0;
  756. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("exchange")) = 0;
  757. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("currency")) = 0;
  758. grd_calc.isReadOnly(grd_calc.rows-1, grd_calc.colRef("money")) = false;
  759. // gro_calc.attribute("style") = 'left:350px; top:185px; width:375px; height:99px; top:' + pos + 'px';
  760. gro_calc.attribute("visibility") = 'visible';
  761. grd_calc.col = grd_calc.colRef("persent");
  762. grd_calc.editCell();
  763. model.refresh();
  764. }
  765. function fOpenPopupUserHelp(pCtrl, pInstance)
  766. {
  767. misfOpenPopUpList("01", pCtrl, "", pInstance);
  768. model.refresh();
  769. }
  770. function autoamt(){
  771. if(grd_recmeqlist.rows != "1"){
  772. var maxamt = grd_recmeqlist.valueMatrix(1, grd_recmeqlist.colRef("wncurncyamt"));
  773. var maxrowid = 1;
  774. for(i = 2 ; i < grd_recmeqlist.rows ; i++){
  775. var wncurncyamt = grd_recmeqlist.valueMatrix(i, grd_recmeqlist.colRef("wncurncyamt"));
  776. if( parseInt(maxamt) > parseInt(wncurncyamt) ) {
  777. maxamt = wncurncyamt;
  778. maxrowid = i;
  779. }
  780. }
  781. var introtype = model.getValue("/root/main/reqeqmtlist/introtype");
  782. if (introtype == ""){
  783. messageBox("도입형태를 입력해주세요.", "E999", "");
  784. return;
  785. }else{
  786. if(introtype == "A" || introtype == "C"){
  787. model.setValue("/root/main/reqeqmtlist/bugtwncurncy", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/wncurncyamt"));
  788. }else if (introtype == "B"){
  789. model.setValue("/root/main/reqeqmtlist/bugtwncurncy", "0");
  790. }
  791. }
  792. model.setValue("/root/main/reqeqmtlist/bugtforgnamt", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/forgncurncyamt"));
  793. model.setValue("/root/main/reqeqmtlist/bugtforgnamtunit", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/curncyunit"));
  794. ipt_bugtwncurncy.refresh();
  795. ipt_bugtforgnamt.refresh();
  796. cmb_bugtforgnamtunit.refresh();
  797. }
  798. }
  799. function fDelautoamt(){
  800. //if(grd_recmeqlist.rows != "1"){
  801. var maxamt = grd_recmeqlist.valueMatrix(1, grd_recmeqlist.colRef("wncurncyamt"));
  802. var maxrowid = 1;
  803. for(i = 2 ; i < grd_recmeqlist.rows ; i++){
  804. if (grd_recmeqlist.rowStatus(i) != "4"){
  805. var wncurncyamt = grd_recmeqlist.valueMatrix(i, grd_recmeqlist.colRef("wncurncyamt"));
  806. if( parseInt(maxamt) > parseInt(wncurncyamt) ) {
  807. maxamt = wncurncyamt;
  808. maxrowid = i;
  809. }
  810. }
  811. }
  812. var introtype = model.getValue("/root/main/reqeqmtlist/introtype");
  813. if (introtype == ""){
  814. messageBox("도입형태를 입력해주세요.", "E999", "");
  815. return;
  816. }else{
  817. if(introtype == "A" || introtype == "C"){
  818. model.setValue("/root/main/reqeqmtlist/bugtwncurncy", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/wncurncyamt"));
  819. }else if (introtype == "B"){
  820. model.setValue("/root/main/reqeqmtlist/bugtwncurncy", "0");
  821. }
  822. }
  823. model.setValue("/root/main/reqeqmtlist/bugtforgnamt", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/forgncurncyamt"));
  824. model.setValue("/root/main/reqeqmtlist/bugtforgnamtunit", model.getValue("/root/main/list/recmeqmtlist["+maxrowid+"]/curncyunit"));
  825. ipt_bugtwncurncy.refresh();
  826. ipt_bugtforgnamt.refresh();
  827. cmb_bugtforgnamtunit.refresh();
  828. //}
  829. }
  830. //========================================================================================
  831. // 전자결재
  832. //========================================================================================
  833. function fElecapproval(){
  834. var instcd = model.getValue("/root/main/reqeqmtlist/instcd");
  835. var reqdd = model.getValue("/root/main/reqeqmtlist/reqdd");
  836. var reqseqno = model.getValue("/root/main/reqeqmtlist/reqseqno");
  837. var pmaprefcol = "knuhdomain,instId";
  838. var pmaprefvalue = "KnuhMisAssetsReview,"+instcd+"-"+reqdd+"-"+reqseqno;
  839. misfMakeElctSanct("assetsReview",pmaprefcol,pmaprefvalue);
  840. window.close();
  841. }
  842. ]]>
  843. </script>
  844. </xhtml:head>
  845. <xhtml:body pagewidth="1100" pageheight="740" guideline="1,-12;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  846. <group id="group1" style="left:0px; top:0px; width:1075px; height:14px; ">
  847. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">장비 세부 내역</caption>
  848. </group>
  849. <group id="group3" scroll="auto" style="left:0px; top:43px; width:1075px; height:692px; ">
  850. <caption id="caption66" class="cell_1" style="left:0px; top:85px; width:100px; height:23px; vertical-align:middle; background-color:#ccccff; "/>
  851. <line id="line9" class="line_1" style="x1:0px; y1:3px; x2:1075px; y2:3px; "/>
  852. <input id="ipt_goodflagengnm" ref="/root/main/reqeqmtlist/goodflagengnm" class="input_s_essential" navindex="1" style="left:103px; top:10px; width:687px; height:19px; "/>
  853. <caption id="caption22" class="cell_1" style="left:818px; top:8px; width:127px; height:23px; vertical-align:middle; background-color:#ccccff; ">신청구분</caption>
  854. <select1 id="cmb_workflag" ref="/root/main/reqeqmtlist/workflag" class="combo_s_essential" navindex="3" appearance="minimal" style="left:818px; top:36px; width:127px; height:19px; ">
  855. <choices>
  856. <item>
  857. <label>신규</label>
  858. <value>1</value>
  859. </item>
  860. <item>
  861. <label>수량부족</label>
  862. <value>2</value>
  863. </item>
  864. <item>
  865. <label>노후교체</label>
  866. <value>3</value>
  867. </item>
  868. </choices>
  869. </select1>
  870. <caption id="caption23" class="cell_1" style="left:0px; top:34px; width:101px; height:23px; vertical-align:middle; background-color:#ccccff; ">장비명(한)</caption>
  871. <caption id="caption27" class="cell_1" style="left:0px; top:433px; width:101px; height:23px; vertical-align:middle; background-color:#ccccff; ">신청자</caption>
  872. <caption id="caption28" class="cell_1" visibility="hidden" style="left:700px; top:304px; width:70px; height:23px; vertical-align:middle; ">청구수량</caption>
  873. <caption id="caption65" class="cell_1" style="left:0px; top:8px; width:101px; height:23px; vertical-align:middle; background-color:#ccccff; ">장비명(영)</caption>
  874. <input id="ipt_goodflaghngnm" ref="/root/main/reqeqmtlist/goodflaghngnm" class="input_s_essential" navindex="2" style="left:103px; top:36px; width:712px; height:19px; "/>
  875. <!--</group>-->
  876. <caption id="caption17" class="cell_1" style="left:555px; top:316px; width:118px; height:23px; vertical-align:middle; ">설치공간 확보여부</caption>
  877. <caption id="caption21" class="cell_1" style="left:825px; top:316px; width:110px; height:23px; vertical-align:middle; ">수가신설여부</caption>
  878. <caption id="caption24" class="cell_1" style="left:0px; top:316px; width:101px; height:23px; vertical-align:middle; ">소요인력</caption>
  879. <input id="ipt_addmnpwrengr" ref="/root/main/reqeqmtlist/addmnpwrengr" class="input_default" navindex="20" style="left:369px; top:318px; width:35px; height:19px; text-align:right; "/>
  880. <caption id="caption15" style="left:104px; top:319px; width:34px; height:19px; vertical-align:middle; ">의사 :</caption>
  881. <caption id="caption37" style="left:217px; top:319px; width:46px; height:19px; vertical-align:middle; ">간호사 :</caption>
  882. <caption id="caption40" style="left:335px; top:319px; width:38px; height:20px; vertical-align:middle; ">기사 :</caption>
  883. <caption id="caption41" style="left:444px; top:319px; width:38px; height:20px; vertical-align:middle; ">기타 :</caption>
  884. <input id="ipt_addmnpwretc" ref="/root/main/reqeqmtlist/addmnpwretc" class="input_default" navindex="21" style="left:478px; top:318px; width:35px; height:19px; text-align:right; "/>
  885. <input id="ipt_addmnpwrnurs" ref="/root/main/reqeqmtlist/addmnpwrnurs" class="input_default" navindex="19" style="left:263px; top:318px; width:35px; height:19px; text-align:right; "/>
  886. <input id="ipt_addmnpwrdr" ref="/root/main/reqeqmtlist/addmnpwrdr" class="input_default" navindex="18" style="left:139px; top:318px; width:35px; height:19px; text-align:right; "/>
  887. <caption id="caption43" style="left:178px; top:320px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  888. <caption id="caption44" style="left:301px; top:320px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  889. <caption id="caption46" style="left:412px; top:320px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  890. <caption id="caption47" style="left:516px; top:320px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  891. <input id="ipt_appqty" ref="/root/main/reqeqmtlist/appqty" class="input_default" navindex="77" visibility="hidden" format="#,###" style="left:775px; top:307px; width:90px; height:19px; text-align:right; "/>
  892. <input id="ipt_reqpsnid" ref="/root/main/reqeqmtlist/reqpsnid" class="input_s_essential" disabled="true" navindex="25" style="left:103px; top:435px; width:82px; height:19px; "/>
  893. <output id="opt_reqpsnnm" ref="/root/main/reqeqmtlist/reqpsnnm" class="output_fix" appearance="output" style="left:186px; top:435px; width:115px; height:19px; "/>
  894. <caption id="caption31" class="cell_1" style="left:255px; top:290px; width:101px; height:23px; vertical-align:middle; ">총금액(내자)</caption>
  895. <caption id="caption7" class="cell_1" style="left:0px; top:238px; width:101px; height:23px; vertical-align:middle; background-color:#ccccff; ">사용부서</caption>
  896. <caption id="caption18" class="cell_1" style="left:0px; top:212px; width:101px; height:23px; vertical-align:middle; background-color:#ccccff; ">신청부서</caption>
  897. <caption id="caption20" class="cell_1" visibility="visible" style="left:490px; top:264px; width:69px; height:23px; vertical-align:middle; ">예산년도</caption>
  898. <caption id="caption29" class="cell_1" style="left:552px; top:212px; width:101px; height:23px; vertical-align:middle; ">설치장소</caption>
  899. <caption id="caption32" class="cell_1" style="left:0px; top:264px; width:101px; height:23px; vertical-align:middle; ">공동사용여부</caption>
  900. <input id="ipt_bugtforgnamt" ref="/root/main/reqeqmtlist/bugtforgnamt" class="input_default" disabled="true" navindex="14" format="#,###" style="left:103px; top:292px; width:147px; height:19px; text-align:right; "/>
  901. <caption id="caption34" class="cell_1" style="left:0px; top:290px; width:101px; height:23px; vertical-align:middle; ">총금액(외자)</caption>
  902. <select1 id="cmb_usemthd" ref="/root/main/reqeqmtlist/usemthd" class="combo_default" navindex="10" appearance="minimal" style="left:103px; top:267px; width:147px; height:19px; ">
  903. <choices>
  904. <itemset>
  905. <label/>
  906. <value/>
  907. </itemset>
  908. </choices>
  909. <script type="javascript" ev:event="xforms-value-changed">
  910. <![CDATA[
  911. //if (cmb_usemthd.value== "2") btn_publusedeptcd_case.dispatch("onclick");
  912. ]]>
  913. </script>
  914. </select1>
  915. <select1 id="cmb_bugtforgnamtunit" ref="/root/main/reqeqmtlist/bugtforgnamtunit" class="combo_default" navindex="16" appearance="minimal" style="left:565px; top:292px; width:90px; height:19px; ">
  916. <choices>
  917. <itemset>
  918. <label/>
  919. <value/>
  920. </itemset>
  921. </choices>
  922. </select1>
  923. <input id="ipt_bugtwncurncy" ref="/root/main/reqeqmtlist/bugtwncurncy" class="input_default" disabled="true" navindex="15" format="#,###" style="left:360px; top:292px; width:125px; height:19px; text-align:right; "/>
  924. <input id="ipt_bugtyy" ref="/root/main/reqeqmtlist/bugtyy" class="input_search" navindex="12" visibility="visible" format="yyyy" style="left:565px; top:267px; width:105px; height:19px; text-align:center; "/>
  925. <button id="btn_mngtdeptcd" class="icon_search" navindex="75" style="left:240px; top:239px; width:16px; height:16px; ">
  926. <caption/>
  927. <script type="javascript" ev:event="DOMActivate">
  928. <![CDATA[
  929. var recv_list = "mngtdeptcd,mngtdeptnm";
  930. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, ipt_instcd.value, "instcd") ;
  931. model.refresh();
  932. ]]>
  933. </script>
  934. </button>
  935. <input id="ipt_mngtdeptcd" ref="/root/main/reqeqmtlist/mngtdeptcd" class="input_s_essential" navindex="7" style="left:103px; top:240px; width:132px; height:19px; ">
  936. <script type="javascript" ev:event="xforms-value-changed">
  937. <![CDATA[
  938. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", ipt_instcd.value, "instcd");
  939. model.refresh();
  940. model.setFocus("ipt_mngtdeptcd");
  941. ]]>
  942. </script>
  943. </input>
  944. <input id="ipt_installplcecd" ref="/root/main/reqeqmtlist/installplcecd" class="input_search" navindex="8" style="left:656px; top:214px; width:127px; height:19px; ">
  945. <script type="javascript" ev:event="xforms-value-changed">
  946. <![CDATA[
  947. if(ipt_installplcecd.value.length == 0)
  948. ipt_installplcenm.value = "";
  949. else
  950. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  951. "deptcd," + ipt_installplcecd.value + "," + ipt_instcd.value, "", "installplcecd,installplcenm",
  952. ipt_installplcecd, "PPRAC00700", "instcd","ipt_instcd");
  953. model.refresh();
  954. ]]>
  955. </script>
  956. </input>
  957. <button id="btn_installplcecd" class="icon_search" navindex="72" style="left:787px; top:215px; width:16px; height:16px; ">
  958. <caption/>
  959. <script type="javascript" ev:event="DOMActivate">
  960. <![CDATA[
  961. var recv_list = "installplcecd,installplcenm";
  962. misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, ipt_instcd.value, "instcd") ;
  963. model.refresh();
  964. ]]>
  965. </script>
  966. </button>
  967. <select1 id="rdo_installspcepossnyn" ref="/root/main/reqeqmtlist/installspcepossnyn" navindex="22" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:680px; top:318px; width:117px; height:16px; background-color:transparent; border-style:none; ">
  968. <choices>
  969. <item>
  970. <label>Y</label>
  971. <value>Y</value>
  972. </item>
  973. <item>
  974. <label>N</label>
  975. <value>N</value>
  976. </item>
  977. </choices>
  978. </select1>
  979. <select1 id="rdo_calcscorgenryn" ref="/root/main/reqeqmtlist/calcscorgenryn" navindex="23" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:945px; top:318px; width:116px; height:16px; background-color:transparent; border-style:none; ">
  980. <choices>
  981. <item>
  982. <label>Y</label>
  983. <value>Y</value>
  984. </item>
  985. <item>
  986. <label>N</label>
  987. <value>N</value>
  988. </item>
  989. </choices>
  990. </select1>
  991. <button id="btn_goodflagengnm" class="icon_search" navindex="68" style="left:799px; top:10px; width:16px; height:16px; ">
  992. <caption/>
  993. <script type="javascript" ev:event="DOMActivate">
  994. <![CDATA[
  995. rszfOpenPopUpListByWndName(ipt_goodflagengnm,"", "goodflaghngnm,goodflagengnm","SPRSD00240","instcd,goodflag","ipt_instcd,ipt_goodflag_search", "Y");
  996. // rszfOpenPopUpListByWndName(ipt_goodflagengnm,"", "goodflaghngnm,goodflagengnm","SPRSD00240","instcd,goodflag","cmb_instcd_search,ipt_goodflag_search","Y");
  997. model.refresh();
  998. ]]>
  999. </script>
  1000. </button>
  1001. <caption id="caption12" class="cell_1" style="left:490px; top:290px; width:70px; height:23px; vertical-align:middle; ">화폐단위</caption>
  1002. <input id="ipt_mngtdeptnm" ref="/root/main/reqeqmtlist/mngtdeptnm" class="input_fix" navindex="76" appearance="input" style="left:260px; top:240px; width:290px; height:19px; ">
  1003. <script type="javascript" ev:event="xforms-value-changed">
  1004. <![CDATA[
  1005. if(ipt_mngtdeptnm.value.length == 0)
  1006. ipt_mngtdeptcd.value = "";
  1007. else
  1008. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", ipt_instcd.value, "instcd" );
  1009. model.refresh();
  1010. ]]>
  1011. </script>
  1012. </input>
  1013. <input id="ipt_installplcenm" ref="/root/main/reqeqmtlist/installplcenm" class="input_fix" navindex="73" appearance="input" style="left:805px; top:214px; width:265px; height:19px; ">
  1014. <script type="javascript" ev:event="xforms-value-changed">
  1015. <![CDATA[
  1016. if(ipt_installplcenm.value.length == 0)
  1017. ipt_installplcecd.value = "";
  1018. else
  1019. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  1020. "deptnm," + ipt_installplcenm.value + "," + ipt_instcd.value, "", "installplcecd,installplcenm",
  1021. ipt_installplcenm, "PPRAC00700", "instcd","ipt_instcd");
  1022. model.refresh();
  1023. ]]>
  1024. </script>
  1025. </input>
  1026. <button id="btn_reqdeptcd" class="icon_search" navindex="69" style="left:240px; top:215px; width:16px; height:16px; ">
  1027. <caption/>
  1028. <script type="javascript" ev:event="DOMActivate">
  1029. <![CDATA[
  1030. var recv_list = "reqdeptcd,reqdeptnm";
  1031. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, ipt_instcd.value, "instcd") ;
  1032. model.refresh();
  1033. ]]>
  1034. </script>
  1035. </button>
  1036. <input id="ipt_reqdeptnm" ref="/root/main/reqeqmtlist/reqdeptnm" class="input_fix" navindex="70" appearance="input" style="left:260px; top:214px; width:290px; height:19px; ">
  1037. <script type="javascript" ev:event="xforms-valid">
  1038. <![CDATA[
  1039. if(ipt_reqdeptnm.value.length == 0)
  1040. ipt_reqdeptcd.value = "";
  1041. else
  1042. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", ipt_instcd.value, "instcd");
  1043. model.refresh();
  1044. ]]>
  1045. </script>
  1046. </input>
  1047. <input id="ipt_reqdeptcd" ref="/root/main/reqeqmtlist/reqdeptcd" class="input_s_essential" navindex="6" style="left:103px; top:214px; width:132px; height:19px; ">
  1048. <script type="javascript" ev:event="xforms-value-changed">
  1049. <![CDATA[
  1050. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", ipt_instcd.value, "instcd");
  1051. model.refresh();
  1052. model.setFocus("ipt_reqdeptcd");
  1053. ]]>
  1054. </script>
  1055. </input>
  1056. <caption id="caption16" class="cell_1" style="left:0px; top:343px; width:101px; height:87px; vertical-align:middle; ">
  1057. <![CDATA[도입필요성
  1058. 기대효과
  1059. (500자 이하)]]>
  1060. </caption>
  1061. <textarea id="tar_usgepurcneed" ref="/root/main/reqeqmtlist/usgepurcneed" navindex="24" style="left:103px; top:343px; width:967px; height:87px; "/>
  1062. <caption id="caption33" class="cell_1" style="left:255px; top:264px; width:101px; height:23px; vertical-align:middle; ">예상 운용연수</caption>
  1063. <input id="ipt_fcstuseyearno" ref="/root/main/reqeqmtlist/fcstuseyearno" class="input_default" navindex="11" maxlength="2" format="#,###" style="left:360px; top:267px; width:125px; height:19px; text-align:right; ">
  1064. <script type="javascript" ev:event="xforms-value-changed">
  1065. <![CDATA[
  1066. //fSetAmt()
  1067. ]]>
  1068. </script>
  1069. </input>
  1070. <caption id="caption38" class="cell_1" visibility="hidden" style="left:870px; top:304px; width:67px; height:23px; vertical-align:middle; ">단가</caption>
  1071. <input id="ipt_goodunitcost" ref="/root/main/reqeqmtlist/goodunitcost" class="input_default" navindex="78" visibility="hidden" format="#,###" style="left:940px; top:307px; width:140px; height:19px; text-align:right; "/>
  1072. <caption id="caption39" class="cell_1" style="left:948px; top:8px; width:125px; height:23px; vertical-align:middle; ">복지부코드</caption>
  1073. <input id="ipt_welfcd" ref="/root/main/reqeqmtlist/welfcd" class="input_default" navindex="4" style="left:948px; top:36px; width:125px; height:19px; text-align:right; "/>
  1074. <input id="input2" ref="/root/main/reqeqmtlist/requsrtel" navindex="26" style="left:302px; top:435px; width:68px; height:19px; "/>
  1075. <line id="line6" class="line_2" style="x1:0px; y1:32px; x2:1075px; y2:32px; "/>
  1076. <line id="line8" class="line_2" style="x1:0px; y1:58px; x2:1075px; y2:58px; "/>
  1077. <line id="line3" class="line_2" style="x1:0px; y1:314px; x2:1075px; y2:314px; "/>
  1078. <caption id="caption2" class="cell_1" style="left:660px; top:290px; width:67px; height:23px; vertical-align:middle; ">사용자</caption>
  1079. <input id="input4" ref="/root/main/reqeqmtlist/usepsn" navindex="17" maxlength="15" style="left:730px; top:292px; width:340px; height:19px; "/>
  1080. <button id="button1" class="btn2_letter3" navindex="79" style="left:960px; top:90px; width:53px; height:19px; ">
  1081. <caption>행추가</caption>
  1082. <script type="javascript" ev:event="DOMActivate">
  1083. <![CDATA[
  1084. fSetAddRow( grd_recmeqlist );
  1085. fSetNum(grd_recmeqlist, "recmseqno");
  1086. /* ----------------------------------------------------------------------------
  1087. 추천장비 입력시 제일 처음건에 대하여 금액 및 단위를 기본으로 뿌려달라
  1088. ----------------------------------------------------------------------------*/
  1089. if ( grd_recmeqlist.row == 1 )
  1090. {
  1091. model.setValue(grd_recmeqlist.nodeset + "[" + (grd_recmeqlist.row - grd_recmeqlist.fixedRows + 1) + "]/wncurncyamt" ,
  1092. model.getValue(ipt_bugtwncurncy.attribute("ref") ) );
  1093. model.setValue(grd_recmeqlist.nodeset + "[" + (grd_recmeqlist.row - grd_recmeqlist.fixedRows + 1) + "]/forgncurncyamt" ,
  1094. model.getValue(ipt_bugtforgnamt.attribute("ref") ) );
  1095. model.setValue(grd_recmeqlist.nodeset + "[" + (grd_recmeqlist.row - grd_recmeqlist.fixedRows + 1) + "]/curncyunit" ,
  1096. model.getValue(cmb_bugtforgnamtunit.attribute("ref") ) );
  1097. }
  1098. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("appqty")) = 0;
  1099. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("goodunitcost")) = 0; //외화금액
  1100. model.refresh();
  1101. ]]>
  1102. </script>
  1103. </button>
  1104. <caption id="caption3" class="tit_2" style="left:5px; top:93px; width:95px; height:13px; ">추천장비</caption>
  1105. <button id="button8" class="btn2_letter3" navindex="80" style="left:1015px; top:90px; width:53px; height:19px; ">
  1106. <caption>행삭제</caption>
  1107. <script type="javascript" ev:event="DOMActivate">
  1108. <![CDATA[
  1109. if(grd_recmeqlist.rows == "2"){
  1110. messageBox("추천장비는 하나이상 필수입니다.", "E999", "");
  1111. return;
  1112. }
  1113. var introtype = model.getValue("/root/main/reqeqmtlist/introtype");
  1114. if (introtype == ""){
  1115. grd_recmeqlist.refresh();
  1116. messageBox("도입형태를 입력해주세요.", "E999", "");
  1117. return;
  1118. }else{
  1119. misfGridIUD(grd_recmeqlist,"D");
  1120. fDelautoamt();
  1121. }
  1122. ]]>
  1123. </script>
  1124. </button>
  1125. <datagrid id="grd_recmeqlist" nodeset="/root/main/list/recmeqmtlist" caption="추천순위^모델^화폐단위^신청수량^단가^외화금액[계산기]^외화금액[계산기]^원화총금액^제조회사^제조국^거래처^담당자^담당자전화번호^담당자핸드폰" colsep="^" colwidth="58, 116, 100, 60, 70, 102, 18, 100, 122, 120, 130, 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" navindex="5" style="left:0px; top:110px; width:1070px; height:100px; ">
  1126. <col ref="recmseqno"/>
  1127. <col imemode="alpha" ref="model" type="input" maxlength="64"/>
  1128. <col class="gridcombo" ref="curncyunit" type="combo">
  1129. <choices>
  1130. <itemset>
  1131. <label/>
  1132. <value/>
  1133. </itemset>
  1134. </choices>
  1135. </col>
  1136. <col ref="appqty" type="input" format="#" style="text-align:center; "/>
  1137. <col ref="goodunitcost" type="input" format="#,###" style="text-align:right; "/>
  1138. <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
  1139. <col ref="calc" type="inputbutton"/>
  1140. <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
  1141. <col ref="prodcmpynm" type="inputbutton"/>
  1142. <col class="gridcombo" ref="prodplce" type="combo">
  1143. <choices>
  1144. <itemset>
  1145. <label/>
  1146. <value/>
  1147. </itemset>
  1148. </choices>
  1149. </col>
  1150. <col ref="innatiagtplcenm" type="inputbutton" style="left:767px; top:23px; width:130px; height:23px; "/>
  1151. <col ref="chrgpsnid" type="input" style="left:725px; top:23px; width:130px; height:23px; "/>
  1152. <col ref="chrgtel" type="input" maxlength="15"/>
  1153. <col ref="chrghptel" type="input" maxlength="15"/>
  1154. <script type="javascript" ev:event="onbuttonclick">
  1155. <![CDATA[
  1156. if (grd_recmeqlist.col == grd_recmeqlist.colRef("prodcmpynm") ) {// 그리드 제조회사명 클릭
  1157. rszfOpenPopUpListByWndName(grd_recmeqlist,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  1158. model.refresh();
  1159. } else if (grd_recmeqlist.col == grd_recmeqlist.colRef("innatiagtplcenm")) {// 그리드 제조회사명 클릭
  1160. rszfOpenPopUpListByWndName(grd_recmeqlist,"","innatiagtplce,innatiagtplcenm","SPRSD00220","instcd","ipt_instcd");
  1161. model.refresh();
  1162. }
  1163. /// 추가 사항 계산기
  1164. else if(grd_recmeqlist.col == grd_recmeqlist.colRef("calc"))
  1165. {
  1166. var curncyunit = grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("curncyunit"));
  1167. if(curncyunit == "13"){
  1168. messageBox("화폐단위가 WON일경우 해당사항이 없습니다.", "E999", "");
  1169. return;
  1170. }
  1171. fDispCalc();
  1172. }
  1173. ]]>
  1174. </script>
  1175. <col ref="instcd" visibility="hidden"/>
  1176. <col ref="reqdd" visibility="hidden"/>
  1177. <col ref="reqseqno" visibility="hidden"/>
  1178. <col ref="prodcmpy" visibility="hidden"/>
  1179. <col ref="innatiagtplce" visibility="hidden"/>
  1180. <script type="javascript" ev:event="onaftersort">
  1181. <![CDATA[
  1182. grd_recmeqlist.gridToInstance();
  1183. ]]>
  1184. </script>
  1185. <script type="javascript" ev:event="xforms-value-changed">
  1186. <![CDATA[
  1187. if(grd_recmeqlist.col == grd_recmeqlist.colRef("curncyunit"))
  1188. {
  1189. if (grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("curncyunit")) == "13" )
  1190. {
  1191. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("forgncurncyamt")) = true
  1192. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("calc")) = true
  1193. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("forgncurncyamt")) = 0; //외화금액
  1194. }
  1195. else
  1196. {
  1197. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("forgncurncyamt")) = false
  1198. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("calc")) = false
  1199. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("wncurncyamt")) = 0; //원화총금액
  1200. }
  1201. }
  1202. var appqty = grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("appqty"));
  1203. var goodunitcost = grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("goodunitcost"));
  1204. var curncyunit = grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("curncyunit"));
  1205. var amt = 0;
  1206. if(grd_recmeqlist.col == grd_recmeqlist.colRef("curncyunit") || grd_recmeqlist.col == grd_recmeqlist.colRef("appqty") || grd_recmeqlist.col == grd_recmeqlist.colRef("goodunitcost")){
  1207. if((parseInt(appqty) > 0 && parseInt(goodunitcost) != 0) || (parseInt(goodunitcost) > 0 && parseInt(appqty) != 0)){
  1208. amt = parseInt(appqty) * parseInt(goodunitcost);
  1209. if(curncyunit == "13"){
  1210. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("wncurncyamt")) = amt; //원화총금액
  1211. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("forgncurncyamt")) = 0; //외화금액
  1212. grd_recmeqlist.refresh();
  1213. }else{
  1214. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("forgncurncyamt")) = amt; //외화금액
  1215. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("wncurncyamt")) = 0; //원화총금액
  1216. grd_recmeqlist.refresh();
  1217. fDispCalc();
  1218. }
  1219. }
  1220. }
  1221. autoamt();
  1222. ]]>
  1223. </script>
  1224. <script type="javascript" ev:event="onrowchanged">
  1225. <![CDATA[
  1226. if (grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("curncyunit")) == "13" )
  1227. {
  1228. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("forgncurncyamt")) = true
  1229. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("calc")) = true
  1230. }
  1231. else
  1232. {
  1233. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("forgncurncyamt")) = false
  1234. grd_recmeqlist.isReadOnly(grd_recmeqlist.row,grd_recmeqlist.colRef("calc")) = false
  1235. }
  1236. ]]>
  1237. </script>
  1238. </datagrid>
  1239. <line id="line1" class="line_2" style="x1:0px; y1:210px; x2:1075px; y2:210px; "/>
  1240. <line id="line5" class="line_2" style="x1:0px; y1:236px; x2:1075px; y2:236px; "/>
  1241. <line id="line7" class="line_2" style="x1:0px; y1:262px; x2:1075px; y2:262px; "/>
  1242. <line id="line2" class="line_2" style="x1:0px; y1:340px; x2:1075px; y2:340px; "/>
  1243. <line id="line4" class="line_2" style="x1:0px; y1:431px; x2:1075px; y2:431px; "/>
  1244. <line id="line11" class="line_2" style="x1:1px; y1:457px; x2:1076px; y2:457px; "/>
  1245. <button id="btn_publusedeptcd_case" class="btn_sw" visibility="hidden" group="tab2" style="left:925px; top:510px; width:144px; height:22px; ">
  1246. <caption>공동사용부서</caption>
  1247. <toggle case="publusedeptcd_case" ev:event="onclick"/>
  1248. </button>
  1249. <line id="line15" class="line_2" style="x1:0px; y1:509px; x2:1075px; y2:509px; "/>
  1250. <line id="line16" class="line_2" style="x1:0px; y1:288px; x2:1075px; y2:288px; "/>
  1251. <input id="ipt_instcd" ref="/root/main/reqeqmtlist/instcd" visibility="hidden" style="left:930px; top:292px; width:30px; height:19px; "/>
  1252. <input id="ipt_goodflag" ref="/root/main/reqeqmtlist/goodflag" visibility="hidden" style="left:960px; top:292px; width:25px; height:19px; "/>
  1253. <caption id="caption19" class="cell_1" style="left:46px; top:459px; width:73px; height:23px; vertical-align:middle; ">1. 견적서</caption>
  1254. <caption id="caption25" class="cell_1" style="left:46px; top:485px; width:73px; height:23px; vertical-align:middle; ">5. 카탈로그</caption>
  1255. <caption id="caption26" class="cell_1" style="left:255px; top:459px; width:105px; height:23px; vertical-align:middle; ">2.규격서</caption>
  1256. <caption id="caption30" class="cell_1" style="left:494px; top:459px; width:208px; height:23px; vertical-align:middle; ">3. 비교사양서 or 단일모델지정사유서</caption>
  1257. <caption id="caption35" class="cell_1" style="left:812px; top:459px; width:143px; height:23px; vertical-align:middle; ">4. 제품설명서</caption>
  1258. <caption id="caption42" class="cell_1" style="left:255px; top:485px; width:105px; height:23px; vertical-align:middle; ">6.수입품목허가증</caption>
  1259. <caption id="caption45" class="cell_1" style="left:494px; top:485px; width:208px; height:23px; vertical-align:middle; ">7. 구입/무상임차 수익성 비교</caption>
  1260. <caption id="caption48" class="cell_1" style="left:812px; top:485px; width:143px; height:23px; vertical-align:middle; ">8. 의공학과의견 외 기타</caption>
  1261. <line id="line20" class="line_2" style="x1:47px; y1:483px; x2:1075px; y2:483px; "/>
  1262. <caption id="caption36" class="cell_1" style="left:0px; top:459px; width:45px; height:49px; text-align:center; vertical-align:middle; ">
  1263. <![CDATA[구비
  1264. 서류]]>
  1265. </caption>
  1266. <upload id="upload1" nodeset="/root/hidden/file" style="left:930px; top:435px; width:15px; height:20px; "/>
  1267. <input id="ipt_comusedeptnm" ref="/root/main/reqeqmtlist/comusedeptnm" class="input_fix" navindex="74" appearance="input" style="left:805px; top:240px; width:265px; height:19px; ">
  1268. <script type="javascript" ev:event="xforms-value-changed">
  1269. <![CDATA[
  1270. if(ipt_comusedeptnm.value.length == 0)
  1271. ipt_comusedept.value = "";
  1272. else
  1273. misfValidationCheck("02", "", "comusedept,comusedeptnm", ipt_instcd.value, "instcd" );
  1274. model.refresh();
  1275. ]]>
  1276. </script>
  1277. </input>
  1278. <input id="ipt_comusedept" ref="/root/main/reqeqmtlist/comusedept" class="input_search" navindex="9" style="left:656px; top:240px; width:127px; height:19px; ">
  1279. <script type="javascript" ev:event="xforms-value-changed">
  1280. <![CDATA[
  1281. misfValidationCheck("02", "", "comusedept,comusedeptnm", ipt_instcd.value, "instcd");
  1282. model.refresh();
  1283. model.setFocus("ipt_comusedept");
  1284. ]]>
  1285. </script>
  1286. </input>
  1287. <button id="btn_comusedept" class="icon_search" navindex="71" style="left:787px; top:240px; width:16px; height:16px; ">
  1288. <caption/>
  1289. <script type="javascript" ev:event="DOMActivate">
  1290. <![CDATA[
  1291. var recv_list = "comusedept,comusedeptnm";
  1292. misfOpenPopUpList("02", ipt_comusedept,"", recv_list, ipt_instcd.value, "instcd") ;
  1293. model.refresh()
  1294. ]]>
  1295. </script>
  1296. </button>
  1297. <caption id="caption51" class="cell_1" style="left:552px; top:238px; width:101px; height:23px; vertical-align:middle; ">공동사용부서</caption>
  1298. <input id="ipt_commissionyn" ref="/root/main/reqeqmtlist/commissionyn" visibility="hidden" style="left:985px; top:292px; width:20px; height:19px; "/>
  1299. <select1 id="rbo_fileyn1" ref="/root/main/reqeqmtlist/fileyn1" navindex="27" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:120px; top:461px; width:89px; height:20px; border-style:none; ">
  1300. <choices>
  1301. <item>
  1302. <label>Y</label>
  1303. <value>Y</value>
  1304. </item>
  1305. <item>
  1306. <label>N</label>
  1307. <value>N</value>
  1308. </item>
  1309. </choices>
  1310. </select1>
  1311. <select1 id="radio1" ref="/root/main/reqeqmtlist/fileyn5" navindex="31" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:120px; top:485px; width:89px; height:20px; border-style:none; ">
  1312. <choices>
  1313. <item>
  1314. <label>Y</label>
  1315. <value>Y</value>
  1316. </item>
  1317. <item>
  1318. <label>N</label>
  1319. <value>N</value>
  1320. </item>
  1321. </choices>
  1322. </select1>
  1323. <select1 id="radio2" ref="/root/main/reqeqmtlist/fileyn2" navindex="28" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:361px; top:461px; width:89px; height:20px; border-style:none; ">
  1324. <choices>
  1325. <item>
  1326. <label>Y</label>
  1327. <value>Y</value>
  1328. </item>
  1329. <item>
  1330. <label>N</label>
  1331. <value>N</value>
  1332. </item>
  1333. </choices>
  1334. </select1>
  1335. <select1 id="radio3" ref="/root/main/reqeqmtlist/fileyn6" navindex="32" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:361px; top:485px; width:89px; height:20px; border-style:none; ">
  1336. <choices>
  1337. <item>
  1338. <label>Y</label>
  1339. <value>Y</value>
  1340. </item>
  1341. <item>
  1342. <label>N</label>
  1343. <value>N</value>
  1344. </item>
  1345. </choices>
  1346. </select1>
  1347. <select1 id="radio4" ref="/root/main/reqeqmtlist/fileyn3" navindex="29" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:703px; top:461px; width:89px; height:20px; border-style:none; ">
  1348. <choices>
  1349. <item>
  1350. <label>Y</label>
  1351. <value>Y</value>
  1352. </item>
  1353. <item>
  1354. <label>N</label>
  1355. <value>N</value>
  1356. </item>
  1357. </choices>
  1358. </select1>
  1359. <select1 id="radio5" ref="/root/main/reqeqmtlist/fileyn7" navindex="33" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:703px; top:485px; width:89px; height:20px; border-style:none; ">
  1360. <choices>
  1361. <item>
  1362. <label>Y</label>
  1363. <value>Y</value>
  1364. </item>
  1365. <item>
  1366. <label>N</label>
  1367. <value>N</value>
  1368. </item>
  1369. </choices>
  1370. </select1>
  1371. <select1 id="radio6" ref="/root/main/reqeqmtlist/fileyn4" navindex="30" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:961px; top:461px; width:89px; height:20px; border-style:none; ">
  1372. <choices>
  1373. <item>
  1374. <label>Y</label>
  1375. <value>Y</value>
  1376. </item>
  1377. <item>
  1378. <label>N</label>
  1379. <value>N</value>
  1380. </item>
  1381. </choices>
  1382. </select1>
  1383. <select1 id="radio7" ref="/root/main/reqeqmtlist/fileyn8" navindex="34" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:961px; top:485px; width:89px; height:20px; border-style:none; ">
  1384. <choices>
  1385. <item>
  1386. <label>Y</label>
  1387. <value>Y</value>
  1388. </item>
  1389. <item>
  1390. <label>N</label>
  1391. <value>N</value>
  1392. </item>
  1393. </choices>
  1394. </select1>
  1395. <caption id="caption53" class="cell_1" style="left:685px; top:264px; width:110px; height:23px; vertical-align:middle; background-color:#ccccff; ">국산동급장비유무</caption>
  1396. <select1 id="rbo_kreqmtyn" ref="/root/main/reqeqmtlist/kreqmtyn" navindex="13" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:810px; top:268px; width:89px; height:20px; border-style:none; ">
  1397. <choices>
  1398. <item>
  1399. <label>Y</label>
  1400. <value>Y</value>
  1401. </item>
  1402. <item>
  1403. <label>N</label>
  1404. <value>N</value>
  1405. </item>
  1406. </choices>
  1407. </select1>
  1408. <line id="line10" class="line_2" style="x1:0px; y1:84px; x2:1075px; y2:84px; "/>
  1409. <caption id="caption54" class="cell_1" style="left:0px; top:60px; width:101px; height:23px; vertical-align:middle; ">도입형태</caption>
  1410. <select1 id="rdo_introtype" ref="/root/main/reqeqmtlist/introtype" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:105px; top:62px; width:290px; height:15px; border-style:none; ">
  1411. <choices>
  1412. <item>
  1413. <label>구매/제조</label>
  1414. <value>A</value>
  1415. </item>
  1416. <item>
  1417. <label>무상임차</label>
  1418. <value>B</value>
  1419. </item>
  1420. <item>
  1421. <label>렌탈도입</label>
  1422. <value>C</value>
  1423. </item>
  1424. </choices>
  1425. <script type="javascript" ev:event="xforms-value-changed">
  1426. <![CDATA[
  1427. var introtype = model.getValue("/root/main/reqeqmtlist/introtype");
  1428. if (introtype == "C"){
  1429. ipt_rental.disabled= false;
  1430. messageBox("월 렌탈료를 ", "C001", "");
  1431. model.setFocus("ipt_rental");
  1432. }else if(introtype == "B"){
  1433. model.setValue("/root/main/reqeqmtlist/bugtwncurncy","0");
  1434. ipt_rental.value="";
  1435. ipt_rental.disabled= true;
  1436. }else{
  1437. ipt_rental.value="";
  1438. ipt_rental.disabled= true;
  1439. }
  1440. model.refresh();
  1441. autoamt();
  1442. ]]>
  1443. </script>
  1444. </select1>
  1445. <caption id="caption63" style="left:400px; top:60px; width:35px; height:20px; ">(월</caption>
  1446. <input id="ipt_rental" ref="/root/main/reqeqmtlist/rental" disabled="true" format="999999" style="left:420px; top:60px; width:100px; height:19px; "/>
  1447. <caption id="caption64" style="left:520px; top:60px; width:100px; height:20px; ">천원)</caption>
  1448. </group>
  1449. <group id="group2" style="left:0px; top:553px; width:1045px; height:25px; ">
  1450. <button id="btn_reviewdeptopin" class="btn_sw" group="tab2" style="left:607px; top:0px; width:120px; height:22px; ">
  1451. <caption>검토부서의견</caption>
  1452. <toggle case="reviewdeptopin_case" ev:event="onclick"/>
  1453. </button>
  1454. <button id="btn_introductioneqmt" class="btn_sw" group="tab2" style="left:728px; top:0px; width:120px; height:22px; ">
  1455. <caption>도입장비</caption>
  1456. <toggle case="introductioneqmt_case" ev:event="onclick"/>
  1457. </button>
  1458. <button id="btn_purcprcsprescond" class="btn_sw" group="tab2" style="left:849px; top:0px; width:120px; height:22px; ">
  1459. <caption>구매진행현황</caption>
  1460. <toggle case="purcprcsprescond_case" ev:event="onclick"/>
  1461. </button>
  1462. <button id="btn_smlartyeqmt" navindex="35" group="tab2" style="left:0px; top:0px; width:120px; height:22px; background-color:#ccccff; ">
  1463. <caption>부서동일유사장비</caption>
  1464. <toggle case="smlartyeqmt_case" ev:event="onclick"/>
  1465. </button>
  1466. <button id="bnt_moncd_1" group="tab2" style="left:121px; top:0px; width:120px; height:22px; background-color:#ccccff; ">
  1467. <caption>예상진료건수</caption>
  1468. <toggle case="moncd_1_case" ev:event="onclick"/>
  1469. </button>
  1470. <button id="btn_moncd_2" class="btn_sw" group="tab2" style="left:486px; top:0px; width:120px; height:22px; ">
  1471. <caption>월간재료비</caption>
  1472. <toggle case="moncd_2_case" ev:event="onclick"/>
  1473. </button>
  1474. <button id="button2" class="btn_sw" group="tab2" style="left:242px; top:0px; width:140px; height:22px; ">
  1475. <caption>국산장비미신청사유서</caption>
  1476. <toggle case="kreqmtcmt_case" ev:event="onclick"/>
  1477. </button>
  1478. <button id="button3" group="tab2" style="left:383px; top:0px; width:102px; height:22px; background-color:#ccccff; ">
  1479. <caption>감가상각액배분</caption>
  1480. <toggle case="deprdist_case" ev:event="onclick"/>
  1481. </button>
  1482. </group>
  1483. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1075px; height:27px; font-weight:bold; ">
  1484. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1075px; y2:25px; "/>
  1485. <button id="btn_save" class="btn4_letter2" style="left:1015px; top:3px; width:56px; height:22px; ">
  1486. <caption>저장</caption>
  1487. <script type="javascript" ev:event="DOMActivate">
  1488. <![CDATA[
  1489. var bugtwncurncy = model.getValue("/root/main/reqeqmtlist/bugtwncurncy");
  1490. if(parseInt(bugtwncurncy) >= 30000000){
  1491. var fileyn1 = model.getValue("/root/main/reqeqmtlist/fileyn1");
  1492. var fileyn2 = model.getValue("/root/main/reqeqmtlist/fileyn2");
  1493. var fileyn3 = model.getValue("/root/main/reqeqmtlist/fileyn3");
  1494. if(!(fileyn1 == "Y" && fileyn2 == "Y" && fileyn3 == "Y")){
  1495. messageBox("총금액이 30,000,000원이상일경우 1,2,3번 구비서류는 필수입니다. 확인하십시오.", "E999", "");
  1496. return;
  1497. }
  1498. }
  1499. if(rdo_introtype.value == ""){
  1500. messageBox("도입형태는 필수 입력입니다.", "E999", "");
  1501. return;
  1502. }
  1503. var introtype = model.getValue("/root/main/reqeqmtlist/introtype");
  1504. var rental = model.getValue("/root/main/reqeqmtlist/rental");
  1505. if(introtype == "C" && rental == ""){
  1506. messageBox("도입형태가 렌탈도입이면 렌탈료는 필수 입력입니다.", "E999", "");
  1507. model.setFocus("ipt_rental");
  1508. return;
  1509. }
  1510. if(grd_recmeqlist.rows == "1"){
  1511. messageBox("추천장비는 하나이상 필수 입력입니다.", "E999", "");
  1512. return;
  1513. }
  1514. //2014.06.30 박준범 추가
  1515. if (rbo_kreqmtyn.value == "") {
  1516. messageBox("국산동급장비유무는 필수 입력입니다.", "E999", "");
  1517. return;
  1518. }
  1519. if (rbo_kreqmtyn.value == "Y" && txt_kreqmtcmt.value.getTrim() == "") {
  1520. messageBox("국산동급장비유무가 'Y' 인 경우, 국산장비미신청사유서가 필수 입력입니다.", "E999", "");
  1521. return;
  1522. }
  1523. //동일유사장비 해당유무
  1524. if(rdo_smkindeqyn.value == "Y"){
  1525. if(grd_smlartyeqmtlist.rows == "1"){
  1526. messageBox("동일유사장비 해당있음인 경우 내역은 필수 입력입니다.\n 해당없을경우 해당없음을 체크하여주세요" , "E999", "");
  1527. return;
  1528. }
  1529. }
  1530. //동일유사 장비
  1531. if(grd_smlartyeqmtlist.rows != "1"){
  1532. for(var i = 1 ; i < grd_smlartyeqmtlist.rows ; i++){
  1533. var eqmtcd = grd_smlartyeqmtlist.valueMatrix(i, grd_smlartyeqmtlist.colRef("eqmtcd"));
  1534. if(eqmtcd == ""){
  1535. messageBox("동일유사장비 "+i+"번째 행에 장비코드가 비었습니다. 확인해주십시오", "I999", "");
  1536. return;
  1537. }
  1538. }
  1539. }
  1540. //예상진료건수 해당유무
  1541. if(rdo_prcpcntyn.value == "Y"){
  1542. if(grd_mon1cdlist.rows == "1"){
  1543. messageBox("예상진료건수가 해당있음인 경우 내역은 필수 입력입니다.\n 해당없을경우 해당없음을 체크하여주세요" , "E999", "");
  1544. return;
  1545. }
  1546. }
  1547. //월간시행건수
  1548. if(grd_mon1cdlist.rows != "1"){
  1549. for(var i = 1 ; i < grd_mon1cdlist.rows ; i++){
  1550. var cstcd = grd_mon1cdlist.valueMatrix(i, grd_mon1cdlist.colRef("cstcd"));
  1551. if(cstcd == ""){
  1552. messageBox("월간시행건수 "+i+"번째 행에 수가코드가 비었습니다. 확인해주십시오", "I999", "");
  1553. return;
  1554. }
  1555. }
  1556. }
  1557. //월간재료비
  1558. if(grd_mon2cdlist.rows != "1"){
  1559. for(var i = 1 ; i < grd_mon2cdlist.rows ; i++){
  1560. var cstcd = grd_mon2cdlist.valueMatrix(i, grd_mon2cdlist.colRef("cstcd"));
  1561. if(cstcd == ""){
  1562. messageBox("월간재료비 "+i+"번째 행에 수가코드가 비었습니다. 확인해주십시오", "I999", "");
  1563. return;
  1564. }
  1565. }
  1566. }
  1567. //감가상각액배분
  1568. if(rdo_deprdistpyn.value == "Y"){
  1569. if(ipt_deprdistprf1.value == "" && ipt_deprdistper1.value == "" ){
  1570. messageBox("감가상각액배분이 해당있음인 경우 내역은 필수 입력입니다.\n 해당없을경우 해당없음을 체크하여주세요" , "E999", "");
  1571. model.setFocus("ipt_deprdistprf1");
  1572. return;
  1573. }
  1574. }
  1575. model.setValue("/root/main/reqeqmtlist/appqty", grd_recmeqlist.valueMatrix(1, grd_recmeqlist.colRef("appqty")));
  1576. if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "buy"){ //구매진행현황관리에서 접근하였을시
  1577. if(grd_purcprcsprescond.rows != "1") model.setValue("/root/send/save/purcprcsprescondlist", grd_purcprcsprescond.getUpdateData());
  1578. submit("TXRSC20202");
  1579. }else if(model.getValue("/root/main/reqeqmtlist/rowstatus") == "review"){ //장비도입검토부서의견입력에서 접근하였을시
  1580. model.setValue("/root/main/reqeqmtlist/rowstatus","u");
  1581. model.copyNode("/root/send/save/reqeqmtlist","/root/main/reqeqmtlist");
  1582. submit("TXRSC20201");
  1583. }else{
  1584. var rowstatus = model.getValue("/root/main/reqeqmtlist/rowstatus")
  1585. if(rowstatus == "i"){
  1586. //필수조건 체크
  1587. if(saveChk() == false){
  1588. return;
  1589. }
  1590. //저장하기위해 COPYNODE
  1591. model.copyNode("/root/send/save/reqeqmtlist","/root/main/reqeqmtlist");
  1592. //하단 그리드 업데이트
  1593. if(grd_recmeqlist.rows != "1") model.setValue("/root/send/save/recmeqmtlist", grd_recmeqlist.getUpdateData());
  1594. if(grd_smlartyeqmtlist.rows != "1") model.setValue("/root/send/save/smlartyeqmtlist", grd_smlartyeqmtlist.getUpdateData());
  1595. if(grd_mon1cdlist.rows != "1") model.setValue("/root/send/save/mon1cdlist", grd_mon1cdlist.getUpdateData());
  1596. if(grd_mon2cdlist.rows != "1") model.setValue("/root/send/save/mon2cdlist", grd_mon2cdlist.getUpdateData());
  1597. if(submit("TXRSC20201")){
  1598. if(printsaveyn == "N"){
  1599. window.close();
  1600. }
  1601. };
  1602. }else if(rowstatus == "u"){
  1603. if(saveChk() == false){
  1604. return;
  1605. }
  1606. //저장하기위해 COPYNODE
  1607. model.copyNode("/root/send/save/reqeqmtlist","/root/main/reqeqmtlist");
  1608. //하단 그리드 업데이트
  1609. if(grd_recmeqlist.rows != "1") model.setValue("/root/send/save/recmeqmtlist", grd_recmeqlist.getUpdateData());
  1610. if(grd_smlartyeqmtlist.rows != "1") model.setValue("/root/send/save/smlartyeqmtlist", grd_smlartyeqmtlist.getUpdateData());
  1611. if(grd_mon1cdlist.rows != "1") model.setValue("/root/send/save/mon1cdlist", grd_mon1cdlist.getUpdateData());
  1612. if(grd_mon2cdlist.rows != "1") model.setValue("/root/send/save/mon2cdlist", grd_mon2cdlist.getUpdateData());
  1613. if(submit("TXRSC20201")){
  1614. if(printsaveyn == "N"){
  1615. window.close();
  1616. }
  1617. };
  1618. }
  1619. }
  1620. ]]>
  1621. </script>
  1622. </button>
  1623. <button id="btn_print" class="btn6_letter5" visibility="hidden" style="left:85px; top:3px; width:92px; height:22px; ">
  1624. <caption>청구서출력</caption>
  1625. <script type="javascript" ev:event="DOMActivate">
  1626. <![CDATA[
  1627. var req = messageBox("청구서출력 전 자동저장합니다.", "Q003");
  1628. if(req == 6){
  1629. printsaveyn = "Y";
  1630. btn_save.dispatch("DOMActivate");
  1631. exeReportPreview("RPRSC20201", "XMLSTR");
  1632. printsaveyn = "N";
  1633. }else{
  1634. return;
  1635. }
  1636. ]]>
  1637. </script>
  1638. </button>
  1639. <input id="ipt_goodflag_search" ref="/root/garbage/goodflag" visibility="hidden" style="left:185px; top:5px; width:20px; height:19px; "/>
  1640. <button id="btn_reqapp" class="btn6_letter4" visibility="visible" style="left:2px; top:3px; width:80px; height:22px; ">
  1641. <caption>전자결재</caption>
  1642. <script type="javascript" ev:event="DOMActivate">
  1643. <![CDATA[
  1644. fElecapproval();
  1645. ]]>
  1646. </script>
  1647. </button>
  1648. <shape id="rectangle1" appearance="rectangle" style="left:860px; top:5px; width:35px; height:15px; background-color:#ccccff; "/>
  1649. <caption id="caption89" style="left:900px; top:5px; width:100px; height:15px; ">: 필수입력사항</caption>
  1650. </group>
  1651. <group id="gro_calc" visibility="hidden" style="left:690px; top:155px; width:375px; height:99px; ">
  1652. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:375px; height:96px; "/>
  1653. <line id="line24" class="line_3" style="x1:2px; y1:20px; x2:372px; y2:20px; "/>
  1654. <datagrid id="grd_calc" nodeset="/root/main/calc" caption="외화금액^부대비용(%)^환율^원화금액" colsep="^" colwidth="100, 75, 93, 93" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" navindex="81" style="left:0px; top:18px; width:373px; height:50px; ">
  1655. <col ref="money" visibility="visible" format="#,###" style="text-align:center; "/>
  1656. <col ref="persent" type="input" format="#,###" style="text-align:center; "/>
  1657. <col ref="exchange" type="input" format="#,###" style="text-align:center; "/>
  1658. <col disabled="true" ref="currency" format="#,###" style="text-align:right; "/>
  1659. <script type="javascript" ev:event="xforms-value-changed">
  1660. <![CDATA[
  1661. // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
  1662. grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency")) =( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange")) )
  1663. + Math.round(( ( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("persent")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange"))) /100 ));
  1664. model.refresh();
  1665. ]]>
  1666. </script>
  1667. </datagrid>
  1668. <caption id="cap_calc" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">원화금액 계산기</caption>
  1669. <button id="btn_calc" class="btn6_letter10" navindex="82" style="left:35px; top:70px; width:156px; height:22px; ">
  1670. <caption>확 인</caption>
  1671. <script type="javascript" ev:event="DOMActivate">
  1672. <![CDATA[
  1673. if(grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency")) == ""){
  1674. grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency")) = 0;
  1675. }
  1676. gro_calc.attribute("visibility") = 'hidden';
  1677. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("wncurncyamt")) = grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency"));
  1678. gro_calc.visible = false;
  1679. group3.disabled = false;
  1680. autoamt();
  1681. model.refresh();
  1682. ]]>
  1683. </script>
  1684. </button>
  1685. <button id="button23" class="btn6_letter10" style="left:205px; top:70px; width:156px; height:22px; ">
  1686. <caption>취 소</caption>
  1687. <script type="javascript" ev:event="DOMActivate">
  1688. <![CDATA[
  1689. if(grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("wncurncyamt")) == "0"){
  1690. messageBox("계산이 이루어지지 않았습니다.. 확인해주십시오.", "E999", "");
  1691. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("appqty")) = 0;
  1692. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("goodunitcost")) = 0;
  1693. grd_recmeqlist.valueMatrix(grd_recmeqlist.row, grd_recmeqlist.colRef("forgncurncyamt")) = 0;
  1694. }
  1695. gro_calc.attribute("visibility") = 'hidden';
  1696. gro_calc.visible = false;
  1697. group3.disabled = false;
  1698. autoamt();
  1699. model.refresh();
  1700. ]]>
  1701. </script>
  1702. </button>
  1703. </group>
  1704. <switch id="switch1" style="left:0px; top:575px; width:1075px; height:158px; ">
  1705. <case id="smlartyeqmt_case">
  1706. <datagrid id="grd_smlartyeqmtlist" nodeset="/root/main/list/smlartyeqmtlist" caption="장비코드^장비명^모델^입고일자^설치일자^제조회사^거래처^금액" colsep="^" colwidth="120, 200, 140, 80, 80, 90, 90, 77, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="36" style="left:0px; top:30px; width:720px; height:125px; ">
  1707. <col ref="eqmtcd" type="inputbutton" _key="true"/>
  1708. <col ref="eqmtnm" style="left:115px; top:23px; width:200px; height:23px; "/>
  1709. <col ref="goodmodel"/>
  1710. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  1711. <col visibility="hidden"/>
  1712. <col ref="prodcmpynm"/>
  1713. <col ref="suplplcenm"/>
  1714. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  1715. <col ref="instcd" visibility="hidden"/>
  1716. <col ref="reqdd" visibility="hidden"/>
  1717. <col ref="reqseqno" visibility="hidden"/>
  1718. <col ref="cntrdeptcd" visibility="hidden"/>
  1719. <col ref="installplcenm" visibility="hidden"/>
  1720. <col ref="possnflagcd" visibility="hidden"/>
  1721. <col ref="possnflagcdnm" visibility="hidden"/>
  1722. <col ref="prodcmpy" visibility="hidden"/>
  1723. <col ref="suplplcecd" visibility="hidden"/>
  1724. <col ref="empthnm" visibility="hidden"/>
  1725. <col ref="forgncurncyamt" visibility="hidden"/>
  1726. <col ref="possnamt" visibility="hidden"/>
  1727. <col ref="curncyunit" visibility="hidden"/>
  1728. <col ref="fixasetcd" visibility="hidden"/>
  1729. <col ref="goodflaghngnm" visibility="hidden"/>
  1730. <script type="javascript" ev:event="onbuttonclick">
  1731. <![CDATA[
  1732. if(grd_smlartyeqmtlist.col == grd_smlartyeqmtlist.colRef("eqmtcd"))
  1733. {
  1734. rszfOpenPopUpListByWndName(grd_smlartyeqmtlist,"","fixasetcd,goodflaghngnm,eqmtcd,eqmtnm,goodmodel,cntrdeptcd,installplcenm,prodcmpy,prodcmpynm,windd,suplplcecd,suplplcenm,possnflagcd,possnflagcdnm,forgncurncyamt,possnamt,eqmtnm,curncyunit","SPRSD00240","instcd,goodflag","ipt_instcd,ipt_goodflag_search","Y");
  1735. grd_smlartyeqmtlist.valueMatrix(grd_smlartyeqmtlist.row, grd_smlartyeqmtlist.colRef("eqmtcd")) = grd_smlartyeqmtlist.valueMatrix(grd_smlartyeqmtlist.row, grd_smlartyeqmtlist.colRef("fixasetcd"));
  1736. grd_smlartyeqmtlist.valueMatrix(grd_smlartyeqmtlist.row, grd_smlartyeqmtlist.colRef("eqmtnm")) = grd_smlartyeqmtlist.valueMatrix(grd_smlartyeqmtlist.row, grd_smlartyeqmtlist.colRef("goodflaghngnm"));
  1737. model.refresh();
  1738. }
  1739. ]]>
  1740. </script>
  1741. <script type="javascript" ev:event="onaftersort">
  1742. <![CDATA[
  1743. grd_smlartyeqmtlist.gridToInstance();
  1744. ]]>
  1745. </script>
  1746. </datagrid>
  1747. <datagrid id="grd_fixasetcdlistv" nodeset="/root/main/list/fixasetcd/fixasetcdlistv" caption="^품목영문명^규격^모델^입고일^제조사^거래처^수량^자산코드^대분류^중분류^소분류^caption1" colsep="^" colwidth="26, 160, 80, 102, 190, 80, 110, 100, 100, 100, 48, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="37" style="left:760px; top:30px; width:310px; height:125px; ">
  1748. <col checkvalue="Y,N" ref="che" type="checkbox"/>
  1749. <col ref="goodflagengnm"/>
  1750. <col ref="goodspec"/>
  1751. <col ref="goodmodel"/>
  1752. <col ref="windd" visibility="hidden"/>
  1753. <col ref="prodcmpynm" visibility="hidden"/>
  1754. <col ref="suplplcenm" visibility="hidden">
  1755. <![CDATA[re]]>
  1756. </col>
  1757. <col ref="goodqty" visibility="hidden" style="text-align:right; "/>
  1758. <col ref="fixasetcd" visibility="hidden"/>
  1759. <col ref="lrgnm" visibility="hidden"/>
  1760. <col ref="mdlnm" visibility="hidden"/>
  1761. <col ref="smlnm" visibility="hidden"/>
  1762. <col ref="lrgcd" visibility="hidden"/>
  1763. <col ref="mdlcd" visibility="hidden"/>
  1764. <col ref="smlcd" visibility="hidden"/>
  1765. <col ref="fixasetcd" visibility="hidden"/>
  1766. <col ref="possnamt" visibility="hidden"/>
  1767. <script type="javascript" ev:event="onaftersort">
  1768. <![CDATA[
  1769. grd_fixasetcdlistv.gridToInstance();
  1770. ]]>
  1771. </script>
  1772. </datagrid>
  1773. <caption id="caption10" class="tit_2" style="left:760px; top:10px; width:113px; height:13px; ">부서내 보유장비</caption>
  1774. <caption id="caption5" class="tit_2" style="left:0px; top:10px; width:113px; height:13px; ">동일유사장비</caption>
  1775. <line id="line25" class="line_1" style="x1:0px; y1:25px; x2:720px; y2:25px; "/>
  1776. <button id="btn_eqip" class="btn2_letter2" style="left:1030px; top:4px; width:42px; height:19px; ">
  1777. <caption>조회</caption>
  1778. <script type="javascript" ev:event="DOMActivate">
  1779. <![CDATA[
  1780. if(ipt_mngtdeptnm.value == ""){
  1781. messageBox("사용부서를 선택하십시오.","");
  1782. model.setFocus("ipt_mngtdeptnm");
  1783. return;
  1784. }
  1785. submit("TRRSC20205");
  1786. ]]>
  1787. </script>
  1788. </button>
  1789. <button id="btn_addsmlart" class="btn2_letter3" style="left:610px; top:4px; width:53px; height:19px; ">
  1790. <caption>행추가</caption>
  1791. <script type="javascript" ev:event="DOMActivate">
  1792. <![CDATA[
  1793. fSetAddRow( grd_smlartyeqmtlist );
  1794. // model.refresh();
  1795. ]]>
  1796. </script>
  1797. </button>
  1798. <button id="btn_delsmlart" class="btn2_letter3" style="left:665px; top:4px; width:53px; height:19px; ">
  1799. <caption>행삭제</caption>
  1800. <script type="javascript" ev:event="DOMActivate">
  1801. <![CDATA[
  1802. misfGridIUD(grd_smlartyeqmtlist,"D");
  1803. ]]>
  1804. </script>
  1805. </button>
  1806. <line id="line23" class="line_1" style="x1:760px; y1:25px; x2:1070px; y2:25px; "/>
  1807. <button id="button22" class="icon_left" style="left:727px; top:90px; width:26px; height:19px; ">
  1808. <caption/>
  1809. <script type="javascript" ev:event="DOMActivate">
  1810. <![CDATA[
  1811. if(grd_fixasetcdlistv.rows - grd_fixasetcdlistv.fixedRows == 0)
  1812. {
  1813. messageBox("적용할 내역이","I004");
  1814. return;
  1815. }
  1816. for(var row = grd_fixasetcdlistv.fixedRows ; row < grd_fixasetcdlistv.rows; row++)
  1817. {
  1818. if(grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) == 'Y')
  1819. {
  1820. var sGoodflagengnm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodflagengnm");
  1821. var sGoodmodel = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodmodel");
  1822. var sFixasetcd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/fixasetcd");
  1823. var sWindd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/windd");
  1824. var sProdcmpynm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/prodcmpynm");
  1825. var sSuplplcenm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/suplplcenm");
  1826. var sPossnamt = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/possnamt");
  1827. fSetAddRow( grd_smlartyeqmtlist );
  1828. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtcd" , sFixasetcd );
  1829. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtnm" , sGoodflagengnm );
  1830. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/goodmodel" , sGoodmodel );
  1831. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/windd" , sWindd );
  1832. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/prodcmpynm" , sProdcmpynm );
  1833. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/suplplcenm" , sSuplplcenm );
  1834. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/possnamt" , sPossnamt );
  1835. grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) = 'N';
  1836. }
  1837. }
  1838. model.refresh();
  1839. ]]>
  1840. </script>
  1841. </button>
  1842. <select1 id="rdo_smkindeqyn" ref="/root/main/reqeqmtlist/smkindeqyn" appearance="full" cols="2" overflow="visible" style="left:445px; top:5px; width:155px; height:20px; border-style:none; ">
  1843. <choices>
  1844. <item>
  1845. <label>해당있음</label>
  1846. <value>Y</value>
  1847. </item>
  1848. <item>
  1849. <label>해당없음</label>
  1850. <value>N</value>
  1851. </item>
  1852. </choices>
  1853. <script type="javascript" ev:event="xforms-value-changed">
  1854. <![CDATA[
  1855. var smkindeqyn = model.getValue("/root/main/reqeqmtlist/smkindeqyn");
  1856. if (smkindeqyn == "Y"){
  1857. btn_addsmlart.disabled = false;
  1858. btn_delsmlart.disabled = false;
  1859. }else{
  1860. if(grd_smlartyeqmtlist.rows != "1"){
  1861. messageBox("동일유사장비 내역이 존재하여 선택","E001");
  1862. model.setValue("/root/main/reqeqmtlist/smkindeqyn","Y");
  1863. model.refresh();
  1864. return;
  1865. }else{
  1866. btn_addsmlart.disabled = true;
  1867. btn_delsmlart.disabled = true;
  1868. }
  1869. }
  1870. model.refresh();
  1871. ]]>
  1872. </script>
  1873. </select1>
  1874. </case>
  1875. <case id="publusedeptcd_case">
  1876. <button id="button4" class="btn2_letter3" style="left:1015px; top:4px; width:53px; height:19px; ">
  1877. <caption>행삭제</caption>
  1878. <script type="javascript" ev:event="DOMActivate">
  1879. <![CDATA[
  1880. misfGridIUD(grd_publusedeptlist,"D");
  1881. ]]>
  1882. </script>
  1883. </button>
  1884. <button id="button6" class="btn2_letter3" style="left:960px; top:4px; width:53px; height:19px; ">
  1885. <caption>행추가</caption>
  1886. <script type="javascript" ev:event="DOMActivate">
  1887. <![CDATA[
  1888. fSetAddRow( grd_publusedeptlist );
  1889. fSetNum(grd_publusedeptlist, "useseq");
  1890. // model.refresh();
  1891. ]]>
  1892. </script>
  1893. </button>
  1894. <caption id="caption13" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">공동사용부서</caption>
  1895. <datagrid id="grd_publusedeptlist" nodeset="/root/main/list/publusedeptlist" caption="기관코드^신청일자^신청순번^순번^사용부서^사용부서^책임자^책임자^전화번호^비율^용도" colsep="^" colwidth="21, 17, 16, 51, 100, 79, 93, 83, 100, 80, 516" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="38" style="left:0px; top:30px; width:1070px; height:120px; ">
  1896. <col ref="instcd" visibility="hidden"/>
  1897. <col ref="reqdd" visibility="hidden"/>
  1898. <col ref="reqseqno" visibility="hidden"/>
  1899. <col ref="useseq"/>
  1900. <col ref="usedeptcd" type="inputbutton" _key="true"/>
  1901. <col ref="usedeptnm"/>
  1902. <col ref="usepsnid" type="inputbutton"/>
  1903. <col ref="usepsnidnm"/>
  1904. <col ref="usechrgtel" type="input" maxlength="15"/>
  1905. <col ref="rate" type="input" style="text-align:right; "/>
  1906. <col ref="usecmt" type="input" maxlength="100"/>
  1907. <script type="javascript" ev:event="onbuttonclick">
  1908. <![CDATA[
  1909. if (grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd") ) {// 그리드 부서명 버튼 클릭
  1910. var recv_list = "usedeptcd,usedeptnm";
  1911. misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list,opt_instcd.value,"instcd") ;
  1912. //misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list) ;
  1913. var cur_row = grd_publusedeptlist.row;
  1914. var status = grd_publusedeptlist.valueMatrix(cur_row, grd_publusedeptlist.colRef("m"));
  1915. if(status !="insert" && status !="delete") grd_publusedeptlist.addStatus(cur_row,"update");
  1916. }
  1917. else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
  1918. {
  1919. var recv_list = "usepsnid,usepsnidnm";
  1920. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1921. //misfOpenPopUpList("12", grd_publusedeptlist,"", recv_list, "%","instcd") ;
  1922. misfOpenPopUpList("12", grd_publusedeptlist, "", recv_list, opt_instcd.value + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm");
  1923. }
  1924. model.refresh();
  1925. ]]>
  1926. </script>
  1927. <script type="javascript" ev:event="xforms-value-changed">
  1928. <![CDATA[
  1929. if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd"))
  1930. {
  1931. var recv_list = "usedeptcd,usedeptnm";
  1932. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1933. misfValidationCheck("02","", recv_list, opt_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm") ;
  1934. model.refresh();
  1935. }
  1936. else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
  1937. {
  1938. var recv_list = "usepsnid,usepsnidnm";
  1939. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1940. rszfValidationCheckS("12","", recv_list, opt_instcd.value + "," +grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm") ;
  1941. model.refresh();
  1942. }
  1943. ]]>
  1944. </script>
  1945. <script type="javascript" ev:event="onaftersort">
  1946. <![CDATA[
  1947. grd_publusedeptlist.gridToInstance();
  1948. ]]>
  1949. </script>
  1950. </datagrid>
  1951. <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:1070px; y2:25px; "/>
  1952. </case>
  1953. <case id="moncd_1_case">
  1954. <button id="btn_delmon1" class="btn2_letter3" style="left:1015px; top:4px; width:53px; height:19px; ">
  1955. <caption>행삭제</caption>
  1956. <script type="javascript" ev:event="DOMActivate">
  1957. <![CDATA[
  1958. misfGridIUD(grd_mon1cdlist,"D");
  1959. ]]>
  1960. </script>
  1961. </button>
  1962. <button id="btn_addmon1" class="btn2_letter3" style="left:960px; top:4px; width:53px; height:19px; ">
  1963. <caption>행추가</caption>
  1964. <script type="javascript" ev:event="DOMActivate">
  1965. <![CDATA[
  1966. fSetAddRow( grd_mon1cdlist );
  1967. ]]>
  1968. </script>
  1969. </button>
  1970. <caption id="caption50" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간시행건수</caption>
  1971. <line id="line13" class="line_1" style="x1:0px; y1:25px; x2:1070px; y2:25px; "/>
  1972. <datagrid id="grd_mon1cdlist" nodeset="/root/main/list/mon1cdlist" caption="수가코드^수가명^급여/비급여^금액^월건수^소요시간^주처방의사^주처방의사" colsep="^" colwidth="124, 449, 129, 100, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="39" style="left:0px; top:30px; width:1070px; height:120px; ">
  1973. <col ref="cstcd" type="input" _key="true"/>
  1974. <col ref="cstcdnm" type="input"/>
  1975. <col ref="insu_nopyyn" type="combo">
  1976. <choices>
  1977. <item>
  1978. <label>급여</label>
  1979. <value>0</value>
  1980. </item>
  1981. <item>
  1982. <label>비급여</label>
  1983. <value>1</value>
  1984. </item>
  1985. </choices>
  1986. </col>
  1987. <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
  1988. <col ref="mmuseqty" type="input" format="#,###" style="text-align:right; "/>
  1989. <col ref="usetm" type="input" style="text-align:center; "/>
  1990. <col class="text_center" ref="mainprcpdrid" type="inputbutton" style="text-align:center; "/>
  1991. <col ref="mainprcpdrnm" style="text-align:center; "/>
  1992. <col ref="instcd" visibility="hidden"/>
  1993. <col ref="reqdd" visibility="hidden"/>
  1994. <col ref="reqseqno" visibility="hidden"/>
  1995. <col ref="cstflag" visibility="hidden"/>
  1996. <col ref="reqseq" visibility="hidden"/>
  1997. <col ref="suplplce" visibility="hidden"/>
  1998. <col ref="suplplcenm" visibility="hidden"/>
  1999. <col ref="mainusge" visibility="hidden"/>
  2000. <script type="javascript" ev:event="onaftersort">
  2001. <![CDATA[
  2002. grd_mon1cdlist.gridToInstance();
  2003. ]]>
  2004. </script>
  2005. <script type="javascript" ev:event="onbuttonclick">
  2006. <![CDATA[
  2007. if(grd_mon1cdlist.col == grd_mon1cdlist.colRef("mainprcpdrid"))
  2008. {
  2009. fOpenPopupUserHelp(grd_mon1cdlist, "mainprcpdrid,mainprcpdrnm");
  2010. }
  2011. ]]>
  2012. </script>
  2013. </datagrid>
  2014. <select1 id="rdo_prcpcntyn" ref="/root/main/reqeqmtlist/prcpcntyn" appearance="full" cols="2" overflow="visible" style="left:810px; top:5px; width:140px; height:20px; border-style:none; ">
  2015. <choices>
  2016. <item>
  2017. <label>해당있음</label>
  2018. <value>Y</value>
  2019. </item>
  2020. <item>
  2021. <label>해당없음</label>
  2022. <value>N</value>
  2023. </item>
  2024. </choices>
  2025. <script type="javascript" ev:event="xforms-value-changed">
  2026. <![CDATA[
  2027. var prcpcntyn = model.getValue("/root/main/reqeqmtlist/prcpcntyn");
  2028. if (prcpcntyn == "Y"){
  2029. btn_addmon1.disabled = false;
  2030. btn_delmon1.disabled = false;
  2031. }else{
  2032. if(grd_mon1cdlist.rows != "1"){
  2033. messageBox("예상진료건수 내역이 존재하여 선택","E001");
  2034. model.setValue("/root/main/reqeqmtlist/prcpcntyn","Y");
  2035. model.refresh();
  2036. return;
  2037. }else{
  2038. btn_addmon1.disabled = true;
  2039. btn_delmon1.disabled = true;
  2040. }
  2041. }
  2042. model.refresh();
  2043. ]]>
  2044. </script>
  2045. </select1>
  2046. </case>
  2047. <case id="moncd_2_case" selected="true">
  2048. <caption id="caption49" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간재료비</caption>
  2049. <line id="line14" class="line_1" style="x1:0px; y1:25px; x2:1070px; y2:25px; "/>
  2050. <button id="btn_delmon2" class="btn2_letter3" style="left:1015px; top:4px; width:53px; height:19px; ">
  2051. <caption>행삭제</caption>
  2052. <script type="javascript" ev:event="DOMActivate">
  2053. <![CDATA[
  2054. misfGridIUD(grd_mon2cdlist,"D");
  2055. ]]>
  2056. </script>
  2057. </button>
  2058. <button id="btn_addmon2" class="btn2_letter3" style="left:960px; top:4px; width:53px; height:19px; ">
  2059. <caption>행추가</caption>
  2060. <script type="javascript" ev:event="DOMActivate">
  2061. <![CDATA[
  2062. fSetAddRow( grd_mon2cdlist );
  2063. // model.refresh();
  2064. ]]>
  2065. </script>
  2066. </button>
  2067. <datagrid id="grd_mon2cdlist" nodeset="/root/main/list/mon2cdlist" caption="재료코드^품명^급여/비급여^월소요량^구입단가^공급업체^공급업체명^주요용도^caption1" colsep="^" colwidth="111, 332, 90, 64, 110, 94, 100, 224, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="update" rowsep="|" tooltip="true" navindex="40" style="left:0px; top:30px; width:1070px; height:120px; ">
  2068. <col ref="cstcd" type="inputbutton" _chartype="upper" _key="true"/>
  2069. <col ref="cstcdnm"/>
  2070. <col ref="insu_nopyyn" type="combo">
  2071. <choices>
  2072. <item>
  2073. <label>급여</label>
  2074. <value>0</value>
  2075. </item>
  2076. <item>
  2077. <label>비급여</label>
  2078. <value>1</value>
  2079. </item>
  2080. </choices>
  2081. </col>
  2082. <col ref="mmuseqty" type="input"/>
  2083. <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
  2084. <col ref="suplplce" type="inputbutton"/>
  2085. <col ref="suplplcenm"/>
  2086. <col ref="mainusge" type="input" style="text-align:left; "/>
  2087. <col ref="instcd"/>
  2088. <col ref="reqdd" visibility="hidden"/>
  2089. <col ref="reqseqno" visibility="hidden"/>
  2090. <col ref="cstflag" visibility="hidden"/>
  2091. <col ref="reqseq" visibility="hidden"/>
  2092. <col ref="goodcd" visibility="hidden"/>
  2093. <col ref="goodnm" visibility="hidden"/>
  2094. <col ref="goodunitcost" visibility="hidden"/>
  2095. <col ref="maincustlastsuplplce" visibility="hidden"/>
  2096. <col ref="maincustlastsuplplcenm" visibility="hidden"/>
  2097. <script type="javascript" ev:event="onbuttonclick">
  2098. <![CDATA[
  2099. if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.rowStatus(grd_mon2cdlist.row) == "1" ) {//구성물품코드를 눌렀을 경우
  2100. model.removenode("/root/copynode");
  2101. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  2102. model.makeNode("/root/copynode");
  2103. rszfOpenPopUpListByWndName(grd_mon2cdlist,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce","SPRSD00190","instcd","ipt_instcd");
  2104. var cur_row = grd_mon2cdlist.row;
  2105. var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
  2106. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  2107. setCSVToNode("/root/copynode", CSV, "goodreqlist");
  2108. fSettingGoodList("/root/copynode", "goodreqlist");
  2109. }else if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce")) {// 그리드 제조회사명 클릭
  2110. rszfOpenPopUpListByWndName(grd_mon2cdlist,"","suplplce,suplplcenm","SPRSD00220","instcd","ipt_instcd");
  2111. model.refresh();
  2112. }
  2113. ]]>
  2114. </script>
  2115. <script type="javascript" ev:event="xforms-value-changed">
  2116. <![CDATA[
  2117. // if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("cstcd")).length> 0)
  2118. // {
  2119. //
  2120. // model.removenode("/root/copynode");
  2121. // model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  2122. // model.makeNode("/root/copynode");
  2123. // // purfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,workflag","cstcd," + model.getValue(cmb_instcd_search.attribute("ref")) + ",," + model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodcd") + ",,,,," ,"goodcd,goodnm",grd_mon2cdlist,"SPRSD00190","instcd","cmb_instcd_search" ,"Y");
  2124. // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd","goodcd," + ipt_instcd + "," + ipt_goodflag_search + "," +model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd") ,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce,maincustlastsuplplcenm",grd_mon2cdlist,"SPRSD00190","instcd","ipt_instcd","Y");
  2125. //
  2126. // var sGoodunitcost = model.getValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/goodunitcost");
  2127. //
  2128. // model.setValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/purcunitcost", sGoodunitcost);
  2129. //
  2130. // model.refresh();
  2131. //
  2132. // var cur_row = grd_mon2cdlist.row;
  2133. // var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
  2134. //
  2135. // var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  2136. //
  2137. // if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length == 0)
  2138. // {
  2139. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , "");
  2140. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , "");
  2141. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , "");
  2142. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , "");
  2143. // grd_mon2cdlist.col = grd_mon2cdlist.colRef("cstcd");
  2144. // grd_mon2cdlist.editCell();
  2145. // }
  2146. // else if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length > 0)
  2147. // {
  2148. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodcd") );
  2149. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodnm") );
  2150. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplce") );
  2151. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplcenm") );
  2152. // grd_mon2cdlist.col = grd_mon2cdlist.colRef("insu_nopyyn");
  2153. // grd_mon2cdlist.editCell();
  2154. // }
  2155. // else if (CSV.length > 0)
  2156. // {
  2157. // model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd","");
  2158. // setCSVToNode("/root/copynode", CSV, "goodreqlist");
  2159. //
  2160. // fSettingGoodList("/root/copynode", "goodreqlist" );
  2161. // }
  2162. // }
  2163. // if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce"))
  2164. // {
  2165. //
  2166. // if(grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce")) != ""){
  2167. // rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  2168. // ipt_instcd.value + ",," + grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce"))
  2169. // ,"","suplplce,suplplcenm",grd_mon2cdlist,"SPRSD00220","instcd","ipt_instcd");
  2170. // }else{
  2171. // grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplcenm")) = "";
  2172. // }
  2173. //
  2174. // }
  2175. ]]>
  2176. </script>
  2177. <script type="javascript" ev:event="onaftersort">
  2178. <![CDATA[
  2179. grd_mon2cdlist.gridToInstance();
  2180. ]]>
  2181. </script>
  2182. <script type="javascript" ev:event="onclick">
  2183. <![CDATA[
  2184. if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.rowStatus(grd_mon2cdlist.row) == "1" ){
  2185. grd_mon2cdlist.dispatch("onbuttonclick");
  2186. }else if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce") && grd_mon2cdlist.rowStatus(grd_mon2cdlist.row) == "1" ){
  2187. grd_mon2cdlist.dispatch("onbuttonclick");
  2188. }
  2189. ]]>
  2190. </script>
  2191. </datagrid>
  2192. </case>
  2193. <case id="reviewdeptopin_case">
  2194. <textarea id="tx_revwopin1" ref="/root/main/reqeqmtlist/revwopin1" disabled="true" navindex="41" style="left:0px; top:26px; width:530px; height:49px; "/>
  2195. <caption id="caption1" class="cell_1" style="left:0px; top:2px; width:530px; height:23px; vertical-align:middle; ">가. 기자재도입심의(의료기기분야) 위원회</caption>
  2196. <caption id="caption4" class="cell_1" style="left:535px; top:2px; width:535px; height:23px; vertical-align:middle; ">나. 의공학과장</caption>
  2197. <textarea id="tx_revwopin2" ref="/root/main/reqeqmtlist/revwopin2" disabled="true" navindex="42" style="left:535px; top:26px; width:535px; height:49px; "/>
  2198. <caption id="caption8" class="cell_1" style="left:0px; top:75px; width:530px; height:23px; vertical-align:middle; ">다. 정보통신실장</caption>
  2199. <textarea id="tx_revwopin3" ref="/root/main/reqeqmtlist/revwopin3" disabled="true" navindex="43" style="left:0px; top:99px; width:530px; height:49px; "/>
  2200. <caption id="caption9" class="cell_1" style="left:535px; top:75px; width:535px; height:23px; vertical-align:middle; ">라. 시설팀장</caption>
  2201. <textarea id="tx_revwopin4" ref="/root/main/reqeqmtlist/revwopin4" disabled="true" navindex="44" style="left:535px; top:99px; width:535px; height:49px; "/>
  2202. </case>
  2203. <case id="introductioneqmt_case">
  2204. <datagrid id="grd_introductioneqmt" nodeset="/root/main/list/introductioneqmtlist" caption="기관^자산코드^자산명^규격^모델^수량^제조사^제조국^거래처(공급처)^자산명(한글)" colsep="^" colwidth="140, 120, 157, 90, 90, 56, 130, 110, 140, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="45" style="left:0px; top:30px; width:1070px; height:120px; ">
  2205. <col ref="instcd" type="combo">
  2206. <choices>
  2207. <item>
  2208. <label>경북대학교병원</label>
  2209. <value>031</value>
  2210. </item>
  2211. <item>
  2212. <label>칠곡경북대학교병원</label>
  2213. <value>032</value>
  2214. </item>
  2215. </choices>
  2216. </col>
  2217. <col ref="fixasetcd" type="inputbutton" style="text-align:center; "/>
  2218. <col ref="goodflagengnm"/>
  2219. <col ref="goodspec" style="text-align:center; "/>
  2220. <col ref="goodmodel" style="text-align:center; "/>
  2221. <col ref="fixasetqty" style="text-align:right; "/>
  2222. <col ref="prodcmpy"/>
  2223. <col ref="prodplce"/>
  2224. <col ref="suplplcenm"/>
  2225. <col ref="goodflaghngnm" visibility="hidden"/>
  2226. <col ref="reqdd" visibility="hidden"/>
  2227. <col ref="reqseqno" visibility="hidden"/>
  2228. <script type="javascript" ev:event="onbuttonclick">
  2229. <![CDATA[
  2230. if(grd_introductioneqmt.colAttribute(grd_introductioneqmt.col,"ref") == "fixasetcd"){
  2231. rszfOpenPopUpListByWndName(grd_introductioneqmt,"", "fixasetcd,goodflaghngnm", "SPRSD00240","instcd,goodflag","ipt_instcd,ipt_goodflag");
  2232. if(model.getValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/fixasetcd") != ""){
  2233. model.setValue("/root/introgrid/search/fixasetcd",model.getValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/fixasetcd"));
  2234. model.setValue("/root/introgrid/search/instcd",model.getValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/instcd"));
  2235. submit("TRRSC20206");
  2236. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/fixasetcd",model.getValue("/root/introgrid/result/introresult[1]/fixasetcd"));
  2237. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/goodflaghngnm",model.getValue("/root/introgrid/result/introresult[1]/goodflaghngnm"));
  2238. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/goodflagengnm",model.getValue("/root/introgrid/result/introresult[1]/goodflagengnm"));
  2239. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/goodspec",model.getValue("/root/introgrid/result/introresult[1]/goodspec"));
  2240. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/goodmodel",model.getValue("/root/introgrid/result/introresult[1]/goodmodel"));
  2241. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/fixasetqty",model.getValue("/root/introgrid/result/introresult[1]/fixasetqty"));
  2242. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/prodcmpy",model.getValue("/root/introgrid/result/introresult[1]/prodcmpy"));
  2243. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/prodplce",model.getValue("/root/introgrid/result/introresult[1]/prodplce"));
  2244. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/suplplcecd",model.getValue("/root/introgrid/result/introresult[1]/suplplcecd"));
  2245. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/suplplcenm",model.getValue("/root/introgrid/result/introresult[1]/suplplcenm"));
  2246. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/reqdd",model.getValue("/root/main/reqeqmtlist/reqdd"));
  2247. model.setValue("/root/main/list/introductioneqmtlist["+grd_introductioneqmt.row+"]/reqseqno",model.getValue("/root/main/reqeqmtlist/reqseqno"));
  2248. }else{
  2249. messageBox("자산코드를 입력하여 주십시오.", "E999", "");
  2250. }
  2251. }
  2252. ]]>
  2253. </script>
  2254. <script type="javascript" ev:event="onkeypress">
  2255. <![CDATA[
  2256. if(grd_introductioneqmt.colAttribute(grd_introductioneqmt.col,"ref") == "fixasetcd"){
  2257. if(event.keyCode == "13"){
  2258. grd_introductioneqmt.dispatch("onbuttonclick");
  2259. }
  2260. }
  2261. ]]>
  2262. </script>
  2263. </datagrid>
  2264. <caption id="caption14" class="tit_2" style="left:0px; top:10px; width:113px; height:14px; ">도입장비</caption>
  2265. <line id="line19" class="line_1" style="x1:0px; y1:25px; x2:1070px; y2:25px; "/>
  2266. <button id="btn_addintroductioneqmt" class="btn2_letter3" style="left:960px; top:4px; width:53px; height:19px; ">
  2267. <caption>행추가</caption>
  2268. <script type="javascript" ev:event="DOMActivate">
  2269. <![CDATA[
  2270. fSetAddRow( grd_introductioneqmt );
  2271. grd_introductioneqmt.valueMatrix(grd_introductioneqmt.row, grd_introductioneqmt.colRef("instcd")) = model.getValue("/root/main/reqeqmtlist/instcd");
  2272. ]]>
  2273. </script>
  2274. </button>
  2275. <button id="btn_delintroductioneqmt" class="btn2_letter3" style="left:1015px; top:4px; width:53px; height:19px; ">
  2276. <caption>행삭제</caption>
  2277. <script type="javascript" ev:event="DOMActivate">
  2278. <![CDATA[
  2279. messageBox("자산마스터에 장비신청코드만 지웁니다.", "E999", "");
  2280. misfGridIUD(grd_introductioneqmt,"D");
  2281. grd_introductioneqmt.refresh();
  2282. ]]>
  2283. </script>
  2284. </button>
  2285. <button id="btn_introsave" class="btn5_letter2" style="left:917px; top:4px; width:42px; height:19px; ">
  2286. <caption>저장</caption>
  2287. <script type="javascript" ev:event="DOMActivate">
  2288. <![CDATA[
  2289. model.setValue("/root/introgrid/save/introductioneqmtlist", grd_introductioneqmt.getUpdateData());
  2290. submit("TXRSC20206");
  2291. grd_introductioneqmt.refresh();
  2292. ]]>
  2293. </script>
  2294. </button>
  2295. </case>
  2296. <case id="purcprcsprescond_case">
  2297. <caption id="caption11" class="tit_2" style="left:0px; top:10px; width:113px; height:14px; ">구매진행현황</caption>
  2298. <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:1070px; y2:25px; "/>
  2299. <datagrid id="grd_purcprcsprescond" nodeset="/root/main/list/purcprcsprescondlist" caption="순번^기준일자^구매진행상태^구매진행비고" colsep="^" colwidth="70, 100, 120, 717, 0, 0, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="46" style="left:0px; top:30px; width:1070px; height:120px; ">
  2300. <col ref="seq" visibility="hidden" style="text-align:center; "/>
  2301. <col ref="badd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  2302. <col ref="purcprcsstat" type="combo" style="text-align:center; ">
  2303. <choices>
  2304. <itemset>
  2305. <label/>
  2306. <value/>
  2307. </itemset>
  2308. </choices>
  2309. </col>
  2310. <col ref="purcprcscmt" type="input"/>
  2311. <col ref="instcd" visibility="hidden"/>
  2312. <col ref="reqdd" visibility="hidden"/>
  2313. <col ref="reqseqno" visibility="hidden"/>
  2314. </datagrid>
  2315. <button id="btn_delpurc" class="btn2_letter3" style="left:1015px; top:4px; width:53px; height:19px; ">
  2316. <caption>행삭제</caption>
  2317. <script type="javascript" ev:event="DOMActivate">
  2318. <![CDATA[
  2319. misfGridIUD(grd_purcprcsprescond,"D");
  2320. ]]>
  2321. </script>
  2322. </button>
  2323. <button id="btn_addpurc" class="btn2_letter3" style="left:960px; top:4px; width:53px; height:19px; ">
  2324. <caption>행추가</caption>
  2325. <script type="javascript" ev:event="DOMActivate">
  2326. <![CDATA[
  2327. fSetAddRow( grd_purcprcsprescond );
  2328. ]]>
  2329. </script>
  2330. </button>
  2331. </case>
  2332. <case id="kreqmtcmt_case">
  2333. <textarea id="txt_kreqmtcmt" ref="/root/main/reqeqmtlist/kreqmtcmt" navindex="47" style="left:0px; top:20px; width:1070px; height:130px; "/>
  2334. <caption id="caption52" class="tit_2" style="left:0px; top:2px; width:147px; height:15px; ">국산장비미신청사유서</caption>
  2335. </case>
  2336. <case id="deprdist_case">
  2337. <input id="ipt_deprdistper1" ref="/root/main/reqeqmtlist/deprdistper1" navindex="49" style="left:210px; top:9px; width:40px; height:19px; text-align:right; "/>
  2338. <caption id="caption55" style="left:175px; top:9px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2339. <caption id="caption56" style="left:250px; top:9px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2340. <input id="ipt_deprdistprf1" ref="/root/main/reqeqmtlist/deprdistprf1" navindex="48" style="left:105px; top:9px; width:65px; height:19px; "/>
  2341. <line id="line22" class="line_2" style="x1:0px; y1:36px; x2:1055px; y2:36px; "/>
  2342. <caption id="caption60" style="left:250px; top:83px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2343. <caption id="caption61" style="left:250px; top:121px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2344. <caption id="caption62" style="left:175px; top:121px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2345. <input id="ipt_deprdistper2" ref="/root/main/reqeqmtlist/deprdistper2" navindex="51" style="left:210px; top:46px; width:40px; height:19px; text-align:right; "/>
  2346. <input id="ipt_deprdistper3" ref="/root/main/reqeqmtlist/deprdistper3" navindex="53" style="left:210px; top:83px; width:40px; height:19px; text-align:right; "/>
  2347. <input id="ipt_deprdistper4" ref="/root/main/reqeqmtlist/deprdistper4" navindex="55" style="left:210px; top:121px; width:40px; height:19px; text-align:right; "/>
  2348. <caption id="caption57" style="left:175px; top:46px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2349. <caption id="caption58" style="left:250px; top:46px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2350. <caption id="caption59" style="left:175px; top:83px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2351. <input id="ipt_deprdistprf2" ref="/root/main/reqeqmtlist/deprdistprf2" navindex="50" style="left:105px; top:46px; width:65px; height:19px; "/>
  2352. <input id="ipt_deprdistprf3" ref="/root/main/reqeqmtlist/deprdistprf3" navindex="52" style="left:105px; top:83px; width:65px; height:19px; "/>
  2353. <input id="ipt_deprdistprf4" ref="/root/main/reqeqmtlist/deprdistprf4" navindex="54" style="left:105px; top:121px; width:65px; height:19px; "/>
  2354. <line id="line26" class="line_2" style="x1:0px; y1:73px; x2:1055px; y2:73px; "/>
  2355. <line id="line27" class="line_2" style="x1:0px; y1:110px; x2:1055px; y2:110px; "/>
  2356. <line id="line28" class="line_2" style="x1:0px; y1:147px; x2:1055px; y2:147px; "/>
  2357. <caption id="caption67" style="left:250px; top:158px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2358. <caption id="caption68" style="left:175px; top:158px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2359. <input id="ipt_deprdistper5" ref="/root/main/reqeqmtlist/deprdistper5" navindex="57" style="left:210px; top:158px; width:40px; height:19px; text-align:right; "/>
  2360. <input id="ipt_deprdistprf5" ref="/root/main/reqeqmtlist/deprdistprf5" navindex="56" style="left:105px; top:158px; width:65px; height:19px; "/>
  2361. <caption id="caption69" class="cell_1" style="left:0px; top:2px; width:101px; height:32px; vertical-align:middle; ">감가상각액배분1</caption>
  2362. <caption id="caption70" class="cell_1" style="left:0px; top:39px; width:101px; height:32px; vertical-align:middle; ">감가상각액배분2</caption>
  2363. <caption id="caption71" class="cell_1" style="left:0px; top:76px; width:101px; height:32px; vertical-align:middle; ">감가상각액배분3</caption>
  2364. <caption id="caption72" class="cell_1" style="left:0px; top:113px; width:101px; height:32px; vertical-align:middle; ">감가상각액배분4</caption>
  2365. <caption id="caption73" class="cell_1" style="left:0px; top:150px; width:101px; height:30px; vertical-align:middle; ">감가상각액배분5</caption>
  2366. <caption id="caption74" class="cell_1" style="left:270px; top:39px; width:110px; height:32px; vertical-align:middle; ">감가상각액배분7</caption>
  2367. <caption id="caption75" class="cell_1" style="left:270px; top:76px; width:110px; height:32px; vertical-align:middle; ">감가상각액배분8</caption>
  2368. <caption id="caption76" class="cell_1" style="left:270px; top:113px; width:110px; height:32px; vertical-align:middle; ">감가상각액배분9</caption>
  2369. <caption id="caption77" class="cell_1" style="left:270px; top:150px; width:110px; height:30px; vertical-align:middle; ">감가상각액배분10</caption>
  2370. <caption id="caption78" class="cell_1" style="left:270px; top:2px; width:110px; height:32px; vertical-align:middle; ">감가상각액배분6</caption>
  2371. <caption id="caption79" style="left:532px; top:83px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2372. <caption id="caption80" style="left:532px; top:121px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2373. <caption id="caption81" style="left:457px; top:121px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2374. <input id="ipt_deprdistper6" ref="/root/main/reqeqmtlist/deprdistper6" navindex="59" style="left:492px; top:9px; width:40px; height:19px; text-align:right; "/>
  2375. <input id="ipt_deprdistper7" ref="/root/main/reqeqmtlist/deprdistper7" navindex="61" style="left:492px; top:46px; width:40px; height:19px; text-align:right; "/>
  2376. <input id="ipt_deprdistper8" ref="/root/main/reqeqmtlist/deprdistper8" navindex="63" style="left:492px; top:83px; width:40px; height:19px; text-align:right; "/>
  2377. <caption id="caption82" style="left:457px; top:9px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2378. <caption id="caption83" style="left:532px; top:158px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2379. <input id="ipt_deprdistper9" ref="/root/main/reqeqmtlist/deprdistper9" navindex="65" style="left:492px; top:121px; width:40px; height:19px; text-align:right; "/>
  2380. <caption id="caption84" style="left:532px; top:9px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2381. <caption id="caption85" style="left:457px; top:158px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2382. <caption id="caption86" style="left:457px; top:46px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2383. <caption id="caption87" style="left:532px; top:46px; width:13px; height:19px; vertical-align:middle; ">%</caption>
  2384. <input id="ipt_deprdistper10" ref="/root/main/reqeqmtlist/deprdistper10" navindex="67" style="left:492px; top:158px; width:40px; height:19px; text-align:right; "/>
  2385. <caption id="caption88" style="left:457px; top:83px; width:34px; height:19px; vertical-align:middle; ">교수</caption>
  2386. <input id="ipt_deprdistprf10" ref="/root/main/reqeqmtlist/deprdistprf10" navindex="66" style="left:387px; top:158px; width:65px; height:19px; "/>
  2387. <input id="ipt_deprdistprf6" ref="/root/main/reqeqmtlist/deprdistprf6" navindex="58" style="left:387px; top:9px; width:65px; height:19px; "/>
  2388. <input id="ipt_deprdistprf7" ref="/root/main/reqeqmtlist/deprdistprf7" navindex="60" style="left:387px; top:46px; width:65px; height:19px; "/>
  2389. <input id="ipt_deprdistprf8" ref="/root/main/reqeqmtlist/deprdistprf8" navindex="62" style="left:387px; top:83px; width:65px; height:19px; "/>
  2390. <input id="ipt_deprdistprf9" ref="/root/main/reqeqmtlist/deprdistprf9" navindex="64" style="left:387px; top:121px; width:65px; height:19px; "/>
  2391. <select1 id="rdo_deprdistpyn" ref="/root/main/reqeqmtlist/deprdistpyn" appearance="full" cols="2" overflow="visible" style="left:860px; top:10px; width:165px; height:20px; border-style:none; ">
  2392. <choices>
  2393. <item>
  2394. <label>해당있음</label>
  2395. <value>Y</value>
  2396. </item>
  2397. <item>
  2398. <label>해당없음</label>
  2399. <value>N</value>
  2400. </item>
  2401. </choices>
  2402. <script type="javascript" ev:event="xforms-value-changed">
  2403. <![CDATA[
  2404. var deprdistpyn = model.getValue("/root/main/reqeqmtlist/deprdistpyn");
  2405. if (deprdistpyn == "Y"){
  2406. ipt_deprdistprf1.disabled = false;
  2407. ipt_deprdistper1.disabled = false;
  2408. ipt_deprdistprf2.disabled = false;
  2409. ipt_deprdistper2.disabled = false;
  2410. ipt_deprdistprf3.disabled = false;
  2411. ipt_deprdistper3.disabled = false;
  2412. ipt_deprdistprf4.disabled = false;
  2413. ipt_deprdistper4.disabled = false;
  2414. ipt_deprdistprf5.disabled = false;
  2415. ipt_deprdistper5.disabled = false;
  2416. ipt_deprdistprf6.disabled = false;
  2417. ipt_deprdistper6.disabled = false;
  2418. ipt_deprdistprf7.disabled = false;
  2419. ipt_deprdistper7.disabled = false;
  2420. ipt_deprdistprf8.disabled = false;
  2421. ipt_deprdistper8.disabled = false;
  2422. ipt_deprdistprf9.disabled = false;
  2423. ipt_deprdistper9.disabled = false;
  2424. ipt_deprdistprf10.disabled = false;
  2425. ipt_deprdistper10.disabled = false;
  2426. }else{
  2427. ipt_deprdistprf1.value = "";
  2428. ipt_deprdistper1.value = "";
  2429. ipt_deprdistprf2.value = "";
  2430. ipt_deprdistper2.value = "";
  2431. ipt_deprdistprf3.value = "";
  2432. ipt_deprdistper3.value = "";
  2433. ipt_deprdistprf4.value = "";
  2434. ipt_deprdistper4.value = "";
  2435. ipt_deprdistprf5.value = "";
  2436. ipt_deprdistper5.value = "";
  2437. ipt_deprdistprf6.value = "";
  2438. ipt_deprdistper6.value = "";
  2439. ipt_deprdistprf7.value = "";
  2440. ipt_deprdistper7.value = "";
  2441. ipt_deprdistprf8.value = "";
  2442. ipt_deprdistper8.value = "";
  2443. ipt_deprdistprf9.value = "";
  2444. ipt_deprdistper9.value = "";
  2445. ipt_deprdistprf10.value = "";
  2446. ipt_deprdistper10.value = "";
  2447. ipt_deprdistprf1.disabled = true;
  2448. ipt_deprdistper1.disabled = true;
  2449. ipt_deprdistprf2.disabled = true;
  2450. ipt_deprdistper2.disabled = true;
  2451. ipt_deprdistprf3.disabled = true;
  2452. ipt_deprdistper3.disabled = true;
  2453. ipt_deprdistprf4.disabled = true;
  2454. ipt_deprdistper4.disabled = true;
  2455. ipt_deprdistprf5.disabled = true;
  2456. ipt_deprdistper5.disabled = true;
  2457. ipt_deprdistprf6.disabled = true;
  2458. ipt_deprdistper6.disabled = true;
  2459. ipt_deprdistprf7.disabled = true;
  2460. ipt_deprdistper7.disabled = true;
  2461. ipt_deprdistprf8.disabled = true;
  2462. ipt_deprdistper8.disabled = true;
  2463. ipt_deprdistprf9.disabled = true;
  2464. ipt_deprdistper9.disabled = true;
  2465. ipt_deprdistprf10.disabled = true;
  2466. ipt_deprdistper10.disabled = true;
  2467. }
  2468. model.refresh();
  2469. ]]>
  2470. </script>
  2471. </select1>
  2472. </case>
  2473. </switch>
  2474. <input id="ipt_updpath" ref="/root/hidden/file" visibility="hidden" style="left:965px; top:480px; width:100px; height:19px; "/>
  2475. </xhtml:body>
  2476. </xhtml:html>