SPIRB00100_과제변경항목.xrw 116 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>과제변경항목</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reptdetl>
  11. <item>
  12. <instcd/>
  13. <subjid/>
  14. <subjno/>
  15. <reptseqno/>
  16. <judgappdg/>
  17. <reptkind/>
  18. <fstplanjudgdd/>
  19. <acptyn/>
  20. <acptdd/>
  21. <subjnm/>
  22. <roothospidxcasecnt/>
  23. <prcsidxcase/>
  24. <cnts1/>
  25. <cnts2/>
  26. <cnts3/>
  27. <cnts4/>
  28. <cnts5/>
  29. <cnts6/>
  30. <cnts7/>
  31. <cnts8/>
  32. <cnts9/>
  33. <acptdd/>
  34. <screenmenu/>
  35. <stdykind2/>
  36. <rc/>
  37. <attfile/>
  38. <resercnfmyn/>
  39. </item>
  40. </reptdetl>
  41. <updtsubj>
  42. <item>
  43. <instcd/>
  44. <subjid/>
  45. <reptseqno/>
  46. <reptkind/>
  47. <stdystartdd/>
  48. <stdyenddd/>
  49. <ddupdtresn/>
  50. <direccost/>
  51. <costupdtresn/>
  52. <verplan/>
  53. <verupdtresn1/>
  54. <veraprv/>
  55. <verupdtresn2/>
  56. <vercrf/>
  57. <verupdtresn3/>
  58. <verib/>
  59. <verupdtresn4/>
  60. <subjnm/>
  61. <nmupdtresn/>
  62. <retyn/>
  63. <acptyn/>
  64. <totstdycost/>
  65. <centercost/>
  66. <hospcost/>
  67. </item>
  68. <drug>
  69. <updtflag/>
  70. <usernm/>
  71. <rrgstno/>
  72. <userseqno/>
  73. <mpphonno/>
  74. <email/>
  75. <deptnm/>
  76. <jobposnm/>
  77. <workplceaddr/>
  78. <bankcd/>
  79. <acntno/>
  80. <depor/>
  81. <instcd/>
  82. <subjid/>
  83. <reptseqno/>
  84. <reptkind/>
  85. <userid/>
  86. <userkind/>
  87. <cmt/>
  88. </drug>
  89. <codi>
  90. <updtflag/>
  91. <usernm/>
  92. <rrgstno/>
  93. <mpphonno/>
  94. <deptnm/>
  95. <jobposnm/>
  96. <workplceaddr/>
  97. <email/>
  98. <bankcd/>
  99. <acntno/>
  100. <depor/>
  101. <instcd/>
  102. <subjid/>
  103. <reptseqno/>
  104. <reptkind/>
  105. <userid/>
  106. <userkind/>
  107. <cmt/>
  108. <userseqno/>
  109. </codi>
  110. <comn>
  111. <updtflag/>
  112. <usernm/>
  113. <rrgstno/>
  114. <deptnm/>
  115. <jobposnm/>
  116. <workplceaddr/>
  117. <mpphonno/>
  118. <email/>
  119. <bankcd/>
  120. <acntno/>
  121. <depor/>
  122. <instcd/>
  123. <subjid/>
  124. <reptseqno/>
  125. <reptkind/>
  126. <userid/>
  127. <userkind/>
  128. <cmt/>
  129. <userseqno/>
  130. </comn>
  131. <perchgr>
  132. <updtflag/>
  133. <usernm/>
  134. <rrgstno/>
  135. <userseqno/>
  136. <mpphonno/>
  137. <email/>
  138. <deptnm/>
  139. <jobposnm/>
  140. <bankcd/>
  141. <acntno/>
  142. <depor/>
  143. <instcd/>
  144. <subjid/>
  145. <reptseqno/>
  146. <reptkind/>
  147. <userid/>
  148. <userkind/>
  149. <cmt/>
  150. <workplceaddr/>
  151. </perchgr>
  152. <reser>
  153. <updtflag/>
  154. <userid/>
  155. <usernm/>
  156. <rrgstno/>
  157. <mpphonno/>
  158. <email/>
  159. <deptnm/>
  160. <jobposnm/>
  161. <workplceaddr/>
  162. <bankcd/>
  163. <acntno/>
  164. <depor/>
  165. <instcd/>
  166. <subjid/>
  167. <reptseqno/>
  168. <reptkind/>
  169. <userkind/>
  170. </reser>
  171. </updtsubj>
  172. </main>
  173. <send>
  174. <savedata>
  175. </savedata>
  176. <searchitem>
  177. <subjid/>
  178. <instcd/>
  179. <reptseqno/>
  180. <reptkind/>
  181. <totstdycost/>
  182. <direccost/>
  183. <centercost/>
  184. <hospcost/>
  185. <consorflag/>
  186. <reqinstcd/>
  187. <rtnbtn/>
  188. <rtndate/>
  189. <rtnresn/>
  190. <croinstcd/>
  191. </searchitem>
  192. <tempnode>
  193. <drug/>
  194. </tempnode>
  195. <attach/>
  196. </send>
  197. <hidden/>
  198. <init>
  199. <hosp>
  200. <ret>
  201. <instcd/>
  202. <hospnm/>
  203. </ret>
  204. </hosp>
  205. <hosp1>
  206. <ret>
  207. <instcd/>
  208. <hospnm/>
  209. </ret>
  210. </hosp1>
  211. <cmb_info>
  212. <initbank>
  213. <cdid/>
  214. <cdnm/>
  215. </initbank>
  216. </cmb_info>
  217. </init>
  218. <rex>
  219. <view>
  220. <appformhead>
  221. <subjnm/>
  222. <subjno/>
  223. <hospnm/>
  224. <depthngnm/>
  225. <cdnm/>
  226. <usernm/>
  227. <hospcd/>
  228. </appformhead>
  229. <irsdcollareser>
  230. <subjid/>
  231. <instcd/>
  232. <userid/>
  233. <userkind/>
  234. <usernm/>
  235. <posnm/>
  236. <jobposnm/>
  237. </irsdcollareser>
  238. <imcmreqinst>
  239. <cmpynm/>
  240. <prsdnm/>
  241. <jobposnm/>
  242. </imcmreqinst>
  243. </view>
  244. <reptdetl>
  245. <item>
  246. <instcd/>
  247. <subjid/>
  248. <subjno/>
  249. <reptseqno/>
  250. <judgappdg/>
  251. <reptkind/>
  252. <fstplanjudgdd/>
  253. <acptyn/>
  254. <acptdd/>
  255. <subjnm/>
  256. <roothospidxcasecnt/>
  257. <prcsidxcase/>
  258. <cnts1/>
  259. <cnts2/>
  260. <cnts3/>
  261. <cnts4/>
  262. <cnts5/>
  263. <cnts6/>
  264. <cnts7/>
  265. <cnts8/>
  266. <cnts9/>
  267. <acptdd/>
  268. </item>
  269. </reptdetl>
  270. <updtsubj>
  271. <item>
  272. <instcd/>
  273. <subjid/>
  274. <reptseqno/>
  275. <reptkind/>
  276. <stdystartdd/>
  277. <stdyenddd/>
  278. <ddupdtresn/>
  279. <direccost/>
  280. <costupdtresn/>
  281. <verplan/>
  282. <verupdtresn1/>
  283. <veraprv/>
  284. <verupdtresn2/>
  285. <vercrf/>
  286. <verupdtresn3/>
  287. <verib/>
  288. <verupdtresn4/>
  289. <subjnm/>
  290. <nmupdtresn/>
  291. <retyn/>
  292. <acptyn/>
  293. <totstdycost/>
  294. <centercost/>
  295. <hospcost/>
  296. </item>
  297. </updtsubj>
  298. <basesubjinfo>
  299. <basesubjinfo>
  300. <subjid/>
  301. <perchgrid/>
  302. <acptyn/>
  303. <judgkind/>
  304. <subjnm/>
  305. <subjpwd/>
  306. <clinictrgtflag/>
  307. <reqinstflag/>
  308. <stdycostsuppinst/>
  309. <stdycostsuppinstnm/>
  310. <itemnm/>
  311. <comnm/>
  312. <allidxcase/>
  313. <stdystartdd/>
  314. <stdyenddd/>
  315. <appdd/>
  316. <testeeaprvflag/>
  317. <relprstdata1/>
  318. <relprstdata2/>
  319. <relprstdata3/>
  320. <relprstdata4/>
  321. <relprstdata5/>
  322. <prstdataetc5/>
  323. <resercd/>
  324. <reqinstcd/>
  325. <concernrela/>
  326. <verplan/>
  327. <veraprv/>
  328. <vercrf/>
  329. <verib/>
  330. <consorflag/>
  331. <deptcd/>
  332. <reqcnfmyn/>
  333. <inqrgoal/>
  334. <trgtsick/>
  335. <inqrmthd/>
  336. <stdykind1/>
  337. <etctrgt1/>
  338. <stdykind2/>
  339. <etctrgt2/>
  340. <stdykind3/>
  341. <manynation/>
  342. <manyinst/>
  343. <cmcinstcnt/>
  344. <stdykind4/>
  345. <etctrgt4/>
  346. <stdytrgt/>
  347. <etctrgt/>
  348. <agenestdyflag/>
  349. <cellcurestdyyn/>
  350. <testeestat/>
  351. <fratesteeflag/>
  352. <stdyspcl1/>
  353. <stdyspcl2/>
  354. <stdyspcl3/>
  355. <stdyspcl4/>
  356. <stdyspcl5/>
  357. <stdyspcl6/>
  358. <stdyspcl7/>
  359. <examadjthosp/>
  360. <examadjtprf/>
  361. <allexamresppos/>
  362. <allexamrespnm/>
  363. <foodscrtgovpassyn/>
  364. <prmisnnatiyn/>
  365. <intermarketyn/>
  366. <judgkindcode/>
  367. <firstdg/>
  368. <firstjudgdd/>
  369. <croinstcd/>
  370. <reqinstchrgid/>
  371. <reqinstchrgnm/>
  372. <croinstnm/>
  373. </basesubjinfo>
  374. </basesubjinfo>
  375. <data>
  376. <a/>
  377. </data>
  378. </rex>
  379. <temp/>
  380. </root>
  381. </instance>
  382. <submission id="TRIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
  383. <submission id="TXIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance"/>
  384. <submission id="TRIRB00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  385. <submission id="TRIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  386. <submission id="TXIRB00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  387. <submission id="TRIRS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  388. <submission id="TXIRB00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  389. <submission id="TRIRB00128" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
  390. <submission id="TRIRB00126" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/init/hosp1"/>
  391. <bind id="bind1" ref="/root/main/updtsubj/item/totstdycost" calculate="ceiling(/root/main/updtsubj/item/direccost * 0.1) * 10 + ceiling((/root/main/updtsubj/item/direccost * 0.05) * 0.1) * 10+ ceiling((/root/main/updtsubj/item/direccost * 0.10) * 0.1) * 10"/>
  392. <bind id="bind2" ref="/root/main/updtsubj/item/centercost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.05) * 0.1) * 10"/>
  393. <bind id="bind3" ref="/root/main/updtsubj/item/hospcost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.10) * 0.1) * 10"/>
  394. <submission id="TRIRS00132" mediatype="application/x-www-form-urlencoded" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  395. <submission id="TXIIA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance"/>
  396. <submission id="TRZBC00101"/>
  397. <submission id="TXIRB00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  398. <submission id="TXIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  399. <submission id="TXIRS00189" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  400. <submission id="TRIRS00135" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  401. <submission id="TXIRS00188" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  402. </model>
  403. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  404. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  405. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  406. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  407. <script type="javascript" ev:event="xforms-ready">
  408. <![CDATA[
  409. //권한이 없는경우 보고서 상단의 저장 버튼 숨기기
  410. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  411. alert("TT");
  412. btn_tmpsave.visible = false;
  413. btn_reptacpt.visible = false;
  414. button5.visible = false;
  415. btn_rowadd4.visible = false;
  416. btn_rowdel4.visible = false;
  417. button25.visible = false;
  418. btn_rowadd2.visible = false;
  419. btn_rowdel2.visible = false;
  420. btn_rowadd3.visible = false;
  421. btn_rowdel3.visible = false;
  422. button1.visible = false;
  423. button2.visible = false;
  424. ipt_filenm.visible = true;
  425. btn_fileatt.visible = false;
  426. btn_filedel.visible = false;
  427. btn_filedown.visible=true;
  428. }
  429. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  430. ipt_filenm.visible = true;
  431. btn_fileatt.visible = false;
  432. btn_filedel.visible = false;
  433. btn_tmpsave.visible = false;
  434. btn_reptacpt.visible = false;
  435. btn_filedown.visible=true;
  436. button1.visible = false;
  437. }
  438. group1.visible = false;
  439. submit("TRIRB00122"); //병원 조회
  440. if ( model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid") ) != ""){
  441. model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid"));
  442. model.setValue("/root/send/searchitem/reptseqno", opener.javascript.getParameter("reptseqno"));
  443. model.setValue("/root/send/searchitem/reptkind", opener.javascript.getParameter("reptkind"));
  444. model.setValue("/root/send/searchitem/instcd", opener.javascript.getParameter("instcd"));
  445. model.setValue("/root/send/searchitem/totstdycost", opener.javascript.getParameter("totstdycost"));
  446. model.setValue("/root/send/searchitem/direccost", opener.javascript.getParameter("direccost"));
  447. model.setValue("/root/send/searchitem/reqinstcd", opener.javascript.getParameter("reqinstcd"));
  448. model.setValue("/root/send/searchitem/croinstcd", opener.javascript.getParameter("croinstcd"));
  449. } else {
  450. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  451. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  452. model.setValue("/root/send/searchitem/reptkind", "5");
  453. model.setValue("/root/send/searchitem/totstdycost", parent.model.getValue("/root/send/searchitem2/totstdycost"));
  454. model.setValue("/root/send/searchitem/direccost", parent.model.getValue("/root/send/searchitem2/direccost"));
  455. model.setValue("/root/send/searchitem/reqinstcd", parent.model.getValue("/root/send/searchitem2/reqinstcd"));
  456. model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
  457. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  458. }
  459. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  460. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  461. if ( consorflag == "Y" ) {
  462. model.setValue("/root/send/searchitem/consorflag", "Y");
  463. cmb_instcd.disabled = false;
  464. submit("TRIRB00126"); //병원 조회
  465. model.copyNode("/root/init/hosp", "/root/init/hosp1");
  466. }
  467. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  468. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  469. submit("TRIRB00124"); //결과보고서 내용 조회
  470. submit("TRIMR00101"); //변경내용요약 조회
  471. }
  472. if ( opener.javascript.getParameter("report") == "Y" ) {
  473. alert("RRR");
  474. btn_tmpsave.visible = false;
  475. btn_reptacpt.visible = false;
  476. button5.visible = false;
  477. ipt_filenm.visible = true;
  478. btn_fileatt.visible = false;
  479. btn_filedel.visible = false;
  480. btn_filedown.visible=true;
  481. btn_rowadd4.visible = false;
  482. btn_rowdel4.visible = false;
  483. button25.visible = false;
  484. btn_rowadd2.visible = false;
  485. btn_rowdel2.visible = false;
  486. btn_rowadd3.visible = false;
  487. btn_rowdel3.visible = false;
  488. button1.visible = false;
  489. button2.visible = false;
  490. group1.visible = true;
  491. submit("TRIRB00124"); //결과보고서 내용 조회
  492. submit("TRIMR00101"); //변경내용요약 조회
  493. }
  494. else if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") != "Y" ){
  495. submit("TRIRB00128"); //기존에 등록되어 있는 공동연구자, 코디, 약사 조회
  496. model.setValue("/root/main/updtsubj/item/retyn", 'N');
  497. messageBox("※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우, "
  498. +"\n" +"\n" + " 반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."
  499. +"\n" +"\n" + " * 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오."
  500. +"\n" +"\n" + "\n" + "※ 관리약사, 공동연구자, 코디네이터 등록이나 변경할 경우,"
  501. +"\n" +"\n" + "1. 단순 추가나 삭제일 경우에는 행추가나 행삭제로 처리."
  502. +"\n" +"\n" + "2. A에서 B로 변경될 경우에는 A를 행삭제, B를 추가입력."
  503. +"\n" +"\n" + " (버튼을 눌러 찾아질 경우에는 찾아서, 아닐 경우에는 타이핑)"
  504. +"\n" +"\n" + "3. 코디네이터를 등록할 경우 모든 항목이 필수 입력 항목임."
  505. +"\n" +"\n" + "4. 의뢰담당자 변경시 성명란에 있는 파란 버튼을 눌러 변경.", "I999");
  506. model.refresh();
  507. }
  508. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  509. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  510. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  511. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  512. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  513. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  514. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  515. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  516. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  517. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  518. var direccost = model.getValue("/root/send/searchitem/direccost");
  519. //센타간접비(직접연구비의 5%), 병원간접비(직접연구비의 10%) 계산
  520. if ( direccost != "" ) {
  521. model.setValue("/root/send/searchitem/centercost", parseFloat(direccost*0.05));
  522. model.setValue("/root/send/searchitem/hospcost", parseFloat(direccost*0.1));
  523. }
  524. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  525. alert("GGG");
  526. model.refresh();
  527. alert("FFF");
  528. ]]>
  529. </script>
  530. </xhtml:head>
  531. <xhtml:body pagewidth="1100" pageheight="830" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  532. <group id="grp_biz" scroll="auto" style="left:5px; top:0px; width:1060px; height:295px; ">
  533. <button id="btn_close" class="btn2_letter2" style="left:1000px; top:10px; width:42px; height:19px; ">
  534. <caption>닫기</caption>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. window.close();
  538. ]]>
  539. </script>
  540. </button>
  541. <select1 id="cmb_instcd" ref="/root/main/reptdetl/item/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:38px; width:168px; height:19px; ">
  542. <choices>
  543. <itemset nodeset="/root/init/hosp/ret">
  544. <label ref="hospnm"/>
  545. <value ref="instcd"/>
  546. </itemset>
  547. </choices>
  548. </select1>
  549. <caption id="caption21" class="cell_1" style="left:5px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">선택된 병원</caption>
  550. <caption id="caption10" class="cell_1" style="left:527px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  551. <![CDATA[피험자 동의
  552. 및 안전관련]]>
  553. </caption>
  554. <caption id="caption2" class="cell_1" style="left:280px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  555. <caption id="caption11" class="cell_1" style="left:527px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기 타</caption>
  556. <select1 id="cmb_acptyn" ref="/root/main/reptdetl/item/acptyn" class="combo_search" disabled="true" appearance="minimal" style="left:367px; top:38px; width:75px; height:19px; ">
  557. <choices>
  558. <item>
  559. <label>접수</label>
  560. <value>Y</value>
  561. </item>
  562. <item>
  563. <label>미접수</label>
  564. <value>N</value>
  565. </item>
  566. </choices>
  567. </select1>
  568. <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" navindex="1" style="left:92px; top:64px; width:428px; height:41px; "/>
  569. <caption id="caption3" class="cell_1" style="left:5px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  570. <![CDATA[연구목적
  571. 및 배경]]>
  572. </caption>
  573. <caption id="caption12" class="cell_1" style="left:527px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">변경사유</caption>
  574. <line id="line3" class="line_1" style="x1:5px; y1:33px; x2:1040px; y2:32px; "/>
  575. <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" navindex="2" style="left:92px; top:109px; width:428px; height:41px; "/>
  576. <caption id="caption4" class="cell_1" style="left:5px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  577. <![CDATA[임상시험
  578. 대상관련]]>
  579. </caption>
  580. <caption id="caption13" class="tit_2" style="left:529px; top:225px; width:101px; height:13px; ">변경사유</caption>
  581. <textarea id="tar_cnts3" ref="/root/main/reptdetl/item/cnts3" navindex="3" style="left:92px; top:154px; width:428px; height:41px; "/>
  582. <caption id="caption5" class="cell_1" style="left:5px; top:199px; width:85px; height:41px; text-align:center; vertical-align:middle; ">피험자 관련</caption>
  583. <caption id="caption14" class="tit_2" style="left:10px; top:15px; width:140px; height:13px; ">변경계획서</caption>
  584. <caption id="caption6" class="cell_1" style="left:5px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기본사항</caption>
  585. <textarea id="tar_cnts4" ref="/root/main/reptdetl/item/cnts4" navindex="4" style="left:92px; top:199px; width:428px; height:41px; "/>
  586. <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts5" navindex="5" style="left:92px; top:244px; width:428px; height:41px; "/>
  587. <caption id="caption8" class="cell_1" style="left:5px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">임상시험 방법</caption>
  588. <textarea id="tar_cnts6" ref="/root/main/reptdetl/item/cnts6" navindex="6" style="left:614px; top:64px; width:428px; height:41px; "/>
  589. <caption id="caption9" class="cell_1" style="left:527px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">통계관련</caption>
  590. <textarea id="tar_cnts7" ref="/root/main/reptdetl/item/cnts7" navindex="7" style="left:614px; top:109px; width:428px; height:41px; "/>
  591. <textarea id="tar_cnts8" ref="/root/main/reptdetl/item/cnts8" navindex="8" style="left:614px; top:154px; width:428px; height:41px; "/>
  592. <textarea id="tar_cnts9" ref="/root/main/reptdetl/item/cnts9" navindex="9" maxlength="500" style="left:614px; top:244px; width:428px; height:41px; "/>
  593. <button id="button3" class="btn2_letter9" _auth="P" style="left:877px; top:10px; width:119px; height:19px; ">
  594. <caption>변경계획보고서 출력</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. var cnts1 ="";
  598. var cnts2 ="";
  599. var cnts3 ="";
  600. var cnts4 ="";
  601. var cnts5 ="";
  602. var cnts6 ="";
  603. var cnts7 ="";
  604. var cnts8 ="";
  605. var cnts9 ="";
  606. var cnts10 ="";
  607. var cnts11 ="";
  608. var cnts12 ="";
  609. var cnts13 ="";
  610. var cnts14 ="";
  611. var cnts15 ="";
  612. var data = "";
  613. var i =0;
  614. var kk = 0;
  615. if(submit("TRIRS00131")) {
  616. submit("TRIRS00132");
  617. model.copyNode("/root/rex/reptdetl", "/root/main/reptdetl");
  618. model.copyNode("/root/rex/updtsubj", "/root/main/updtsubj");
  619. cnts1="";
  620. cnts2="";
  621. cnts3="";
  622. cnts4="";
  623. cnts5="";
  624. cnts6="";
  625. cnts7="";
  626. cnts8="";
  627. cnts9="";
  628. cnts10="";
  629. cnts11="";
  630. cnts12="";
  631. cnts13="";
  632. cnts14="";
  633. cnts15="";
  634. data="";
  635. if ( model.getValue("/root/rex/reptdetl/item/cnts1") != "" && model.getValue("/root/rex/reptdetl/item/cnts1") != " ") {
  636. cnts1 = "▶ 기본사항 : " + model.getValue("/root/rex/reptdetl/item/cnts1") + "\n";
  637. }
  638. if ( model.getValue("/root/rex/reptdetl/item/cnts2") != "" && model.getValue("/root/rex/reptdetl/item/cnts2") != " ") {
  639. cnts2 = "▶ 연구목적 및 배경 : " + model.getValue("/root/rex/reptdetl/item/cnts2") + "\n";
  640. }
  641. if ( model.getValue("/root/rex/reptdetl/item/cnts3") != "" && model.getValue("/root/rex/reptdetl/item/cnts3") != " ") {
  642. cnts3 = "▶ 임상시험 대상관련 : " + model.getValue("/root/rex/reptdetl/item/cnts3") + "\n";
  643. }
  644. if ( model.getValue("/root/rex/reptdetl/item/cnts4") != "" && model.getValue("/root/rex/reptdetl/item/cnts4") != " ") {
  645. cnts4 = "▶ 피험자 관련 : " + model.getValue("/root/rex/reptdetl/item/cnts4") + "\n";
  646. }
  647. if ( model.getValue("/root/rex/reptdetl/item/cnts5") != "" && model.getValue("/root/rex/reptdetl/item/cnts5") != " ") {
  648. cnts5 = "▶ 임상시험 방법 : " + model.getValue("/root/rex/reptdetl/item/cnts5") + "\n";
  649. }
  650. if ( model.getValue("/root/rex/reptdetl/item/cnts6") != "" && model.getValue("/root/rex/reptdetl/item/cnts6") != " ") {
  651. cnts6 = "▶ 통계관련 : " + model.getValue("/root/rex/reptdetl/item/cnts6") + "\n";
  652. }
  653. if ( model.getValue("/root/rex/reptdetl/item/cnts7") != "" && model.getValue("/root/rex/reptdetl/item/cnts7") != " ") {
  654. cnts7 = "▶ 피험자 동의 및 안전대책 : " + model.getValue("/root/rex/reptdetl/item/cnts7") + "\n";
  655. }
  656. if ( model.getValue("/root/rex/reptdetl/item/cnts8") != "" && model.getValue("/root/rex/reptdetl/item/cnts8") != " ") {
  657. cnts8 = "▶ 기타 : " + model.getValue("/root/rex/reptdetl/item/cnts8") + "\n";
  658. }
  659. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  660. model.makeValue("/root/rex/reptdetl/item/data", data);
  661. var data = model.getValue("/root/rex/reptdetl/item/data");
  662. var j = 0;
  663. var p = 0;
  664. var k = 0;
  665. if ( data.indexOf("\n",p ) >=0 ){
  666. while ( (j = data.indexOf("\n",p ))>=0){
  667. var sdata = data.substring( p, j );
  668. p = j + 1;
  669. k = k + 1;
  670. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  671. }
  672. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  673. var sdata = data.substring( p, data.length );
  674. k = k + 1;
  675. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  676. }
  677. } else { //엔터없을때 처리
  678. k = k + 1;
  679. model.makeNode("/root/rex/reptdetl");
  680. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", data);
  681. }
  682. cnts1="";
  683. cnts2="";
  684. cnts3="";
  685. cnts4="";
  686. cnts5="";
  687. cnts6="";
  688. cnts7="";
  689. cnts8="";
  690. cnts9="";
  691. cnts10="";
  692. cnts11="";
  693. cnts12="";
  694. cnts13="";
  695. cnts14="";
  696. cnts15="";
  697. data="";
  698. if ( model.getValue("/root/rex/updtsubj/item/stdystartdd") != "" && model.getValue("/root/rex/updtsubj/item/stdystartdd") != " ") {
  699. cnts1 = "▶ 연구기간 : " + model.getValue("/root/rex/updtsubj/item/stdystartdd") + " ~ " + model.getValue("/root/rex/updtsubj/item/stdyenddd") + "\n";
  700. }
  701. if ( model.getValue("/root/rex/updtsubj/item/direccost") != "" && model.getValue("/root/rex/updtsubj/item/direccost") != " ") {
  702. cnts3 = "▶ 직접비 : " + model.getValue("/root/rex/updtsubj/item/direccost") + "\n";
  703. }
  704. if ( model.getValue("/root/rex/updtsubj/item/verplan") != "" && model.getValue("/root/rex/updtsubj/item/verplan") != " ") {
  705. cnts5 = "▶ 계획서 Version : " + model.getValue("/root/rex/updtsubj/item/verplan") + "\n";
  706. }
  707. if ( model.getValue("/root/rex/updtsubj/item/veraprv") != "" && model.getValue("/root/rex/updtsubj/item/veraprv") != " ") {
  708. cnts7 = "▶ 동의서 Version : " + model.getValue("/root/rex/updtsubj/item/veraprv") + "\n";
  709. }
  710. if ( model.getValue("/root/rex/updtsubj/item/vercrf") != "" && model.getValue("/root/rex/updtsubj/item/vercrf") != " ") {
  711. cnts9 = "▶ CRF Version : " + model.getValue("/root/rex/updtsubj/item/vercrf") + "\n";
  712. }
  713. if ( model.getValue("/root/rex/updtsubj/item/verib") != "" && model.getValue("/root/rex/updtsubj/item/verib") != " ") {
  714. cnts11 = "▶ IB Version : " + model.getValue("/root/rex/updtsubj/item/verib") + "\n";
  715. }
  716. if ( model.getValue("/root/rex/updtsubj/item/subjnm") != "" && model.getValue("/root/rex/updtsubj/item/subjnm") != " ") {
  717. cnts13 = "▶ 과제명 : " + model.getValue("/root/rex/updtsubj/item/subjnm") + "\n";
  718. }
  719. data = cnts1 + cnts3 + cnts5 + cnts7 + cnts9 + cnts11 + cnts13 ;
  720. model.makeValue("/root/rex/updtsubj/item/data", data);
  721. var data = model.getValue("/root/rex/updtsubj/item/data");
  722. var j = 0;
  723. var p = 0;
  724. var k = 0;
  725. if ( data.indexOf("\n",p ) >=0 ){
  726. while ( (j = data.indexOf("\n",p ))>=0){
  727. var sdata = data.substring( p, j );
  728. p = j + 1;
  729. k = k + 1;
  730. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  731. }
  732. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  733. var sdata = data.substring( p, data.length );
  734. k = k + 1;
  735. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  736. }
  737. } else { //엔터없을때 처리
  738. k = k + 1;
  739. model.makeNode("/root/rex/updtsubj");
  740. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", data);
  741. }
  742. cnts1="";
  743. cnts2="";
  744. cnts3="";
  745. cnts4="";
  746. cnts5="";
  747. cnts6="";
  748. cnts7="";
  749. cnts8="";
  750. cnts9="";
  751. cnts10="";
  752. cnts11="";
  753. cnts12="";
  754. cnts13="";
  755. cnts14="";
  756. cnts15="";
  757. data="";
  758. if ( model.getValue("/root/rex/updtsubj/item/ddupdtresn") != "" ) {
  759. cnts2 = "연구기간 변경사유 : " + model.getValue("/root/rex/updtsubj/item/ddupdtresn") + "\n";
  760. }
  761. if ( model.getValue("/root/rex/updtsubj/item/costupdtresn") != "" ) {
  762. cnts4 = "직접비 변경사유 : " + model.getValue("/root/rex/updtsubj/item/costupdtresn") + "\n";
  763. }
  764. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn1") != "" ) {
  765. cnts6 = "계획서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn1") + "\n";
  766. }
  767. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn2") != "" ) {
  768. cnts8 = "동의서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn2") + "\n";
  769. }
  770. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn3") != "" ) {
  771. cnts10 = "CRF Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn3") + "\n";
  772. }
  773. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn4") != "" ) {
  774. cnts12 = "IB Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn4") + "\n";
  775. }
  776. if ( model.getValue("/root/rex/updtsubj/item/nmupdtresn") != "" ) {
  777. cnts14 = "과제명 변경사유 : " + model.getValue("/root/rex/updtsubj/item/nmupdtresn") + "\n";
  778. }
  779. data = cnts2 + cnts4 + cnts6 + cnts8 + cnts10 + cnts12 + cnts14;
  780. model.makeValue("/root/rex/updtsubj/item/data1", data);
  781. var data = model.getValue("/root/rex/updtsubj/item/data1");
  782. var j = 0;
  783. var p = 0;
  784. var k = 0;
  785. if ( data.indexOf("\n",p ) >=0 ){
  786. while ( (j = data.indexOf("\n",p ))>=0){
  787. var sdata = data.substring( p, j );
  788. p = j + 1;
  789. k = k + 1;
  790. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
  791. }
  792. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  793. var sdata = data.substring( p, data.length );
  794. k = k + 1;
  795. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
  796. }
  797. } else { //엔터없을때 처리
  798. k = k + 1;
  799. model.makeNode("/root/rex/updtsubj");
  800. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", data);
  801. }
  802. //관리약사
  803. if ( grd_drug.rows > 0 ) {
  804. for ( var kk = 0; kk < grd_drug.rows -1; kk++ ) {
  805. if ( grd_drug.valueMatrix(kk+1, grd_drug.colRef("updtflag")) != "-" ) {
  806. i = i + 1;
  807. cnts1="";
  808. cnts2="";
  809. cnts3="";
  810. cnts4="";
  811. cnts5="";
  812. cnts6="";
  813. cnts7="";
  814. cnts8="";
  815. cnts9="";
  816. cnts10="";
  817. cnts11="";
  818. cnts12="";
  819. cnts13="";
  820. cnts14="";
  821. cnts15="";
  822. if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'I' ) {
  823. cnts1 = "▶ 상태 : 추가" + "\n" ;
  824. } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'U' ) {
  825. cnts1 = "▶ 상태 : 수정" + "\n" ;
  826. } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'D' ) {
  827. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  828. }
  829. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  830. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/usernm") + "\n";
  831. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/rrgatno") + "\n";
  832. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/mpphonno") + "\n";
  833. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/email") + "\n";
  834. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/deptnm") + "\n" ;
  835. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/jobposnm") + "\n" ;
  836. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/workplceaddr") + "\n" ;
  837. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n";
  838. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n" ;
  839. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/depor") + "\n" ;
  840. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  841. var s = data;
  842. var j = 0;
  843. var p = 0;
  844. var k = 0;
  845. j = i;
  846. if ( s.indexOf("\n",p ) >=0 ){
  847. while ( (j = s.indexOf("\n",p ))>=0){
  848. var sdata = s.substring( p, j );
  849. p = j + 1;
  850. k = k + 1;
  851. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
  852. }
  853. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  854. var sdata = s.substring( p, s.length );
  855. k = k + 1;
  856. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
  857. }
  858. } else { //엔터없을때 처리
  859. k = k + 1;
  860. model.makeNode("/root/rex/updtsubj");
  861. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", s);
  862. }
  863. }
  864. }
  865. }
  866. //공동연구자
  867. if ( grd_comn.rows > 0 ) {
  868. for ( var kk = 0; kk < grd_comn.rows -1; kk++ ) {
  869. if ( grd_comn.valueMatrix(kk+1, grd_comn.colRef("updtflag")) != "-" ) {
  870. i = i + 1;
  871. cnts1="";
  872. cnts2="";
  873. cnts3="";
  874. cnts4="";
  875. cnts5="";
  876. cnts6="";
  877. cnts7="";
  878. cnts8="";
  879. cnts9="";
  880. cnts10="";
  881. cnts11="";
  882. cnts12="";
  883. cnts13="";
  884. cnts14="";
  885. cnts15="";
  886. if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'I' ) {
  887. cnts1 = "▶ 상태 : 추가" + "\n" ;
  888. } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'U' ) {
  889. cnts1 = "▶ 상태 : 수정" + "\n" ;
  890. } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'D' ) {
  891. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  892. }
  893. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  894. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/usernm") + "\n";
  895. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/rrgatno") + "\n";
  896. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/mpphonno") + "\n";
  897. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/email") + "\n";
  898. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/deptnm") + "\n" ;
  899. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/jobposnm") + "\n" ;
  900. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/workplceaddr") + "\n" ;
  901. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n";
  902. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n" ;
  903. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/depor") + "\n" ;
  904. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  905. var s = data;
  906. var j = 0;
  907. var p = 0;
  908. var k = 0;
  909. j = i;
  910. if ( s.indexOf("\n",p ) >=0 ){
  911. while ( (j = s.indexOf("\n",p ))>=0){
  912. var sdata = s.substring( p, j );
  913. p = j + 1;
  914. k = k + 1;
  915. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
  916. }
  917. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  918. var sdata = s.substring( p, s.length );
  919. k = k + 1;
  920. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
  921. }
  922. } else { //엔터없을때 처리
  923. k = k + 1;
  924. model.makeNode("/root/rex/updtsubj");
  925. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", s);
  926. }
  927. }
  928. }
  929. }
  930. //코디네이터
  931. if ( grd_codi.rows > 0 ) {
  932. for ( var kk = 0; kk < grd_codi.rows -1; kk++ ) {
  933. if ( grd_codi.valueMatrix(kk+1, grd_codi.colRef("updtflag")) != "-" ) {
  934. i = i + 1;
  935. cnts1="";
  936. cnts2="";
  937. cnts3="";
  938. cnts4="";
  939. cnts5="";
  940. cnts6="";
  941. cnts7="";
  942. cnts8="";
  943. cnts9="";
  944. cnts10="";
  945. cnts11="";
  946. cnts12="";
  947. cnts13="";
  948. cnts14="";
  949. cnts15="";
  950. if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'I' ) {
  951. cnts1 = "▶ 상태 : 추가" + "\n" ;
  952. } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'U' ) {
  953. cnts1 = "▶ 상태 : 수정" + "\n" ;
  954. } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'D' ) {
  955. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  956. }
  957. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  958. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/usernm") + "\n";
  959. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/rrgatno") + "\n";
  960. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/mpphonno") + "\n";
  961. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/email") + "\n";
  962. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/deptnm") + "\n" ;
  963. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/jobposnm") + "\n" ;
  964. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/workplceaddr") + "\n" ;
  965. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n";
  966. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n" ;
  967. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/depor") + "\n" ;
  968. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  969. var s = data;
  970. var j = 0;
  971. var p = 0;
  972. var k = 0;
  973. j = i;
  974. if ( s.indexOf("\n",p ) >=0 ){
  975. while ( (j = s.indexOf("\n",p ))>=0){
  976. var sdata = s.substring( p, j );
  977. p = j + 1;
  978. k = k + 1;
  979. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
  980. }
  981. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  982. var sdata = s.substring( p, s.length );
  983. k = k + 1;
  984. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
  985. }
  986. } else { //엔터없을때 처리
  987. k = k + 1;
  988. model.makeNode("/root/rex/updtsubj");
  989. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", s);
  990. }
  991. }
  992. }
  993. }
  994. //의뢰담당자
  995. if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") != "-" ) {
  996. cnts1="";
  997. cnts2="";
  998. cnts3="";
  999. cnts4="";
  1000. cnts5="";
  1001. cnts6="";
  1002. cnts7="";
  1003. cnts8="";
  1004. cnts9="";
  1005. cnts10="";
  1006. cnts11="";
  1007. cnts12="";
  1008. cnts13="";
  1009. cnts14="";
  1010. cnts15="";
  1011. data="";
  1012. if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'I' ) {
  1013. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1014. } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'U' ) {
  1015. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1016. } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'D' ) {
  1017. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1018. }
  1019. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/usernm") + "\n";
  1020. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/rrgatno") + "\n";
  1021. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/mpphonno") + "\n";
  1022. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/email") + "\n";
  1023. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/deptnm") + "\n" ;
  1024. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/jobposnm") + "\n" ;
  1025. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/workplceaddr") + "\n" ;
  1026. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n";
  1027. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n" ;
  1028. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/depor") + "\n" ;
  1029. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1030. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  1031. var s = data;
  1032. var j = 0;
  1033. var p = 0;
  1034. var k = 0;
  1035. if ( s.indexOf("\n",p ) >=0 ){
  1036. while ( (j = s.indexOf("\n",p ))>=0){
  1037. var sdata = s.substring( p, j );
  1038. p = j + 1;
  1039. k = k + 1;
  1040. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
  1041. }
  1042. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1043. var sdata = s.substring( p, s.length );
  1044. k = k + 1;
  1045. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
  1046. }
  1047. } else { //엔터없을때 처리
  1048. k = k + 1;
  1049. model.makeNode("/root/rex/updtsubj");
  1050. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", s);
  1051. }
  1052. }
  1053. //책임연구자
  1054. if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") != "-" ) {
  1055. cnts1="";
  1056. cnts2="";
  1057. cnts3="";
  1058. cnts4="";
  1059. cnts5="";
  1060. cnts6="";
  1061. cnts7="";
  1062. cnts8="";
  1063. cnts9="";
  1064. cnts10="";
  1065. cnts11="";
  1066. cnts12="";
  1067. cnts13="";
  1068. cnts14="";
  1069. cnts15="";
  1070. data="";
  1071. if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'I' ) {
  1072. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1073. } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'U' ) {
  1074. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1075. } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'D' ) {
  1076. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1077. }
  1078. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/reser[1]/usernm") + "\n";
  1079. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/rrgatno") + "\n";
  1080. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/reser[1]/mpphonno") + "\n";
  1081. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/reser[1]/email") + "\n";
  1082. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/reser[1]/deptnm") + "\n" ;
  1083. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/reser[1]/jobposnm") + "\n" ;
  1084. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/reser[1]/workplceaddr") + "\n" ;
  1085. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n";
  1086. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n" ;
  1087. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/reser[1]/depor") + "\n" ;
  1088. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1089. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  1090. var s = data;
  1091. var j = 0;
  1092. var p = 0;
  1093. var k = 0;
  1094. if ( s.indexOf("\n",p ) >=0 ){
  1095. while ( (j = s.indexOf("\n",p ))>=0){
  1096. var sdata = s.substring( p, j );
  1097. p = j + 1;
  1098. k = k + 1;
  1099. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
  1100. }
  1101. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1102. var sdata = s.substring( p, s.length );
  1103. k = k + 1;
  1104. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
  1105. }
  1106. } else { //엔터없을때 처리
  1107. k = k + 1;
  1108. model.makeNode("/root/rex/updtsubj");
  1109. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", s);
  1110. }
  1111. }
  1112. exeReportPreview("PSIRB00700", "XMLSTR" , "/root/rex");
  1113. }
  1114. ]]>
  1115. </script>
  1116. </button>
  1117. <group id="group1" visibility="hidden" style="left:455px; top:37px; width:585px; height:25px; ">
  1118. <button id="button4" class="btn5_letter2" _auth="X" style="left:535px; top:0px; width:42px; height:19px; ">
  1119. <caption>저장</caption>
  1120. <script type="javascript" ev:event="DOMActivate">
  1121. <![CDATA[
  1122. submit("TXIIA00116");
  1123. window.close();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <input id="input2" ref="/root/send/searchitem/rtnresn" class="input_default" disabled="true" navindex="20" style="left:340px; top:2px; width:185px; height:19px; "/>
  1128. <caption id="caption19" class="cell_1" style="left:265px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려사유</caption>
  1129. <input id="input1" ref="/root/send/searchitem/rtndate" class="input_default" disabled="true" navindex="10" inputtype="date" style="left:165px; top:2px; width:94px; height:19px; text-align:center; "/>
  1130. <caption id="caption18" class="cell_1" style="left:90px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려일자</caption>
  1131. <bool id="bool1" ref="/root/send/searchitem/rtnbtn" style="left:55px; top:3px; width:30px; height:19px; ">
  1132. <script type="javascript" ev:event="xforms-value-changed">
  1133. <![CDATA[
  1134. if ( model.getValue("/root/send/searchitem/rtnbtn") == 'true') {
  1135. input2.disabled = false;
  1136. input1.disabled = false;
  1137. input1.value = getCurrentDate();
  1138. } else {
  1139. input2.disabled = true;
  1140. input1.disabled = true;
  1141. input2.value = "";
  1142. }
  1143. ]]>
  1144. </script>
  1145. </bool>
  1146. <caption id="caption17" class="cell_1" style="left:0px; top:0px; width:55px; height:23px; text-align:center; vertical-align:middle; ">반려</caption>
  1147. </group>
  1148. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:342px; top:10px; width:200px; height:19px; "/>
  1149. <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:545px; top:10px; width:64px; height:19px; ">
  1150. <caption>내려받기</caption>
  1151. <script type="javascript" ev:event="DOMActivate">
  1152. <![CDATA[
  1153. var s = model.getValue("/root/main/reptdetl/item/attfile");
  1154. var ss = s.split("/");
  1155. var filepath = "";
  1156. var filenm = "";
  1157. for ( var i = 0; i < ss.length; i ++){
  1158. if ( i < ss.length -2 ) {
  1159. filepath = filepath+ss[i] +"/";
  1160. } else if ( i < ss.length -1 ) {
  1161. filepath = filepath+ss[i] ;
  1162. } else {
  1163. filenm = ss[i];
  1164. }
  1165. }
  1166. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  1167. if (localfile != "") {
  1168. model.download(getActionURL("TRIRS00135")+"&filepath="+filepath,localfile);
  1169. var rtn = messageBox("파일을", "Q004");
  1170. if( rtn == 6 ) {
  1171. window.exec(localfile);
  1172. }
  1173. }
  1174. ]]>
  1175. </script>
  1176. </button>
  1177. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="52428800" validate="true" style="left:240px; top:10px; width:100px; height:20px; "/>
  1178. <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:545px; top:10px; width:64px; height:19px; ">
  1179. <caption>파일첨부</caption>
  1180. <script type="javascript" ev:event="onclick">
  1181. <![CDATA[
  1182. if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
  1183. messageBox("임시저장 후 첨부파일을 올리세요", "I");
  1184. return;
  1185. }
  1186. var maxsize = upload1.attribute("filesize");
  1187. files = window.fileDialog("open", "|", true);
  1188. filelist = files.split("|");
  1189. for(var i = 0 ; i < filelist.length ; i++ ) {
  1190. grd_attach.addRow(false);
  1191. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  1192. if (!checkFileSize(upload1)){
  1193. grd_attach.removeItem();
  1194. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  1195. return;
  1196. }
  1197. }
  1198. if ( filelist[0] != "") {
  1199. if (submit("TXIRS00189")) {
  1200. messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
  1201. model.removeNodeset("/root/send/attach");
  1202. parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
  1203. parent.btn_report5.selected = true;
  1204. parent.btn_report5.dispatch("DOMActivate");
  1205. model.refresh();
  1206. }
  1207. }
  1208. submit("TRIRB00124"); //결과보고서 내용 조회
  1209. submit("TRIMR00101"); //변경내용요약 조회
  1210. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  1211. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  1212. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  1213. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  1214. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  1215. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  1216. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  1217. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  1218. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  1219. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  1220. model.refresh();
  1221. ]]>
  1222. </script>
  1223. </button>
  1224. <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:245px; top:90px; width:665px; height:150px; ">
  1225. <col ref="file"/>
  1226. </datagrid>
  1227. </group>
  1228. <button id="btn_reptacpt" class="btn5_letter5" _auth="X" style="left:798px; top:10px; width:75px; height:19px; ">
  1229. <caption>보고서접수</caption>
  1230. <script type="javascript" ev:event="DOMActivate">
  1231. <![CDATA[
  1232. //접수 후 수정불가
  1233. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1234. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1235. return;
  1236. }
  1237. /* if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
  1238. messageBox("변경사유는", "I003");
  1239. model.setFocus("ipt_verupdtresn1");
  1240. return;
  1241. }*/
  1242. if ( model.getValue("/root/main/updtsubj/item/stdystartdd") != '' && model.getValue("/root/main/updtsubj/item/stdyenddd") != '' && model.getValue("/root/main/updtsubj/item/ddupdtresn") == '') {
  1243. messageBox("변경사유는", "I003");
  1244. model.setFocus("ipt_ddupdtresn");
  1245. return;
  1246. }
  1247. if ( model.getValue("/root/main/updtsubj/item/direccost") != '' && model.getValue("/root/main/updtsubj/item/direccost") != 0 && model.getValue("/root/main/updtsubj/item/costupdtresn") == '') {
  1248. messageBox("변경사유는", "I003");
  1249. model.setFocus("ipt_costupdtresn");
  1250. return;
  1251. }
  1252. if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
  1253. messageBox("변경사유는", "I003");
  1254. model.setFocus("ipt_verupdtresn1");
  1255. return;
  1256. }
  1257. if ( model.getValue("/root/main/updtsubj/item/veraprv") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn2") == '') {
  1258. messageBox("변경사유는", "I003");
  1259. model.setFocus("verupdtresn2");
  1260. return;
  1261. }
  1262. if ( model.getValue("/root/main/updtsubj/item/vercrf") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn3") == '') {
  1263. messageBox("변경사유는", "I003");
  1264. model.setFocus("verupdtresn3");
  1265. return;
  1266. }
  1267. if ( model.getValue("/root/main/updtsubj/item/verib") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn4") == '') {
  1268. messageBox("변경사유는", "I003");
  1269. model.setFocus("verupdtresn4");
  1270. return;
  1271. }
  1272. if ( model.getValue("/root/main/updtsubj/item/subjnm") != '' && model.getValue("/root/main/updtsubj/item/nmupdtresn") == '') {
  1273. messageBox("변경사유는", "I003");
  1274. model.setFocus("ipt_nmupdtresn");
  1275. return;
  1276. }
  1277. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  1278. if ( reptseqno != '') {
  1279. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1280. }
  1281. //변경계획서
  1282. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  1283. model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
  1284. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  1285. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  1286. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  1287. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  1288. var instcd = model.getValue("/root/send/savedata/instcd");
  1289. if ( instcd == '' ) {
  1290. messageBox("병원을 ", "C002");
  1291. }
  1292. submit("TXIRB00122");
  1293. } else {
  1294. submit("TXIRB00121");
  1295. }
  1296. model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1297. model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1298. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1299. //변경내용요약
  1300. model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
  1301. model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
  1302. model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
  1303. model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1304. model.setValue("/root/send/savedata/reptkind", "5");
  1305. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  1306. //관리약사등록 그리드 필수입력항목 체크
  1307. for ( i=1; i<grd_drug.rows; i++ ) {
  1308. model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1309. }
  1310. var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
  1311. var rCSV1 = getNodeListCSV(update1);
  1312. if ( rCSV1 != null ) {
  1313. for ( i=1; i<grd_drug.rows; i++ ) {
  1314. if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
  1315. messageBox("관리약사 성명을", "C002");
  1316. submit("TXIRB00123");
  1317. return;
  1318. }
  1319. }
  1320. model.makeNode("/root/send/savedata/drug");
  1321. model.setValue("/root/send/savedata/drug", rCSV1);
  1322. }
  1323. //공동연구자등록 그리드 필수입력항목 체크
  1324. for ( i=1; i<grd_comn.rows; i++ ) {
  1325. model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1326. }
  1327. var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
  1328. var rCSV2 = getNodeListCSV(update2);
  1329. if ( rCSV2 != null) {
  1330. for ( i=1; i<grd_comn.rows; i++ ) {
  1331. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
  1332. messageBox("공동연구자 성명을", "C002");
  1333. submit("TXIRB00123");
  1334. return;
  1335. }
  1336. }
  1337. model.makeNode("/root/send/savedata/comn");
  1338. model.setValue("/root/send/savedata/comn", rCSV2);
  1339. }
  1340. //코디네이터등록 그리드 필수입력항목 체크
  1341. for ( i=1; i<grd_codi.rows; i++ ) {
  1342. model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1343. }
  1344. var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
  1345. var rCSV3 = getNodeListCSV(update3);
  1346. if ( rCSV3 != null ) {
  1347. for ( i=1; i<grd_codi.rows; i++ ) {
  1348. if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
  1349. messageBox("코디네이터 성명을", "C002");
  1350. submit("TXIRB00123");
  1351. return;
  1352. }
  1353. }
  1354. model.makeNode("/root/send/savedata/codi");
  1355. model.setValue("/root/send/savedata/codi", rCSV3);
  1356. }
  1357. //의뢰담당자등록 그리드 필수입력항목 체크
  1358. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1359. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1360. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/subjid") == '' ) {
  1361. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1362. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1363. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/userkind", "5");
  1364. }
  1365. }
  1366. var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
  1367. var rCSV4 = getNodeListCSV(update4);
  1368. if ( rCSV4 != null ) {
  1369. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1370. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
  1371. messageBox("의뢰담당자 성명을", "C002");
  1372. submit("TXIRB00123");
  1373. return;
  1374. }
  1375. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1376. }
  1377. model.makeNode("/root/send/savedata/perchgr");
  1378. model.setValue("/root/send/savedata/perchgr", rCSV4);
  1379. }
  1380. //책임연구자 그리드 필수입력항목 체크
  1381. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1382. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1383. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/subjid") == '' ) {
  1384. model.setValue("/root/main/updtsubj/reser["+ i +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1385. model.setValue("/root/main/updtsubj/reser["+ i +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1386. model.setValue("/root/main/updtsubj/reser["+ i +"]/userkind", "1");
  1387. }
  1388. }
  1389. var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
  1390. var rCSV5 = getNodeListCSV(update5);
  1391. if ( rCSV5 != null ) {
  1392. for ( i=1; i<grd_reser.rows; i++ ) {
  1393. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
  1394. messageBox("책임연구자 성명을", "C002");
  1395. submit("TXIRB00123");
  1396. return;
  1397. }
  1398. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1399. }
  1400. model.makeNode("/root/send/savedata/reser");
  1401. model.setValue("/root/send/savedata/reser", rCSV5);
  1402. }
  1403. submit("TXIMR00101");
  1404. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  1405. model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
  1406. model.refresh();
  1407. /*
  1408. if ( parseInt(model.getValue("/root/main/updtsubj/item/direccost")) > 0 && model.getValue("/root/main/reptdetl/item/stdykind2") == 'I' && model.getValue("/root/main/reptdetl/item/rc") == 'R' && parent.model.getValue("/root/init/screenmenu") == 'R' ) {
  1409. setParameter("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
  1410. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1411. open("SMISA00102");
  1412. }
  1413. */
  1414. // parent.model.setValue("/root/temp/ivieweryn", "N"); //변경계획서 iviewer 호출 여부 = N
  1415. parent.btn_report5.selected = true;
  1416. parent.btn_report5.dispatch("DOMActivate");
  1417. model.removeNodeset("/root/send/savedata");
  1418. model.makeNode("/root/send/savedata");
  1419. window.close();
  1420. ]]>
  1421. </script>
  1422. </button>
  1423. <button id="btn_tmpsave" class="btn5_letter4" _auth="X" style="left:684px; top:10px; width:64px; height:19px; ">
  1424. <caption>임시저장</caption>
  1425. <script type="javascript" ev:event="DOMActivate">
  1426. <![CDATA[
  1427. //접수 후 수정불가
  1428. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1429. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1430. return;
  1431. }
  1432. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  1433. if ( reptseqno != '') {
  1434. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1435. }
  1436. // 변경계획서
  1437. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  1438. model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
  1439. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  1440. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  1441. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  1442. var instcd = model.getValue("/root/send/savedata/instcd");
  1443. if ( instcd == '' ) {
  1444. messageBox("병원을 ", "C002");
  1445. }
  1446. submit("TXIRB00122");
  1447. } else {
  1448. submit("TXIRB00121");
  1449. }
  1450. model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1451. model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1452. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1453. //변경내용요약
  1454. model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
  1455. model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
  1456. model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
  1457. model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1458. model.setValue("/root/send/savedata/reptkind", "5");
  1459. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  1460. //관리약사등록 그리드 필수입력항목 체크
  1461. //model.removeNodeset("/root/send/tempnode/drug");
  1462. for ( i=1; i<grd_drug.rows; i++ ) {
  1463. model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1464. }
  1465. var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
  1466. var rCSV1 = getNodeListCSV(update1);
  1467. if ( rCSV1 != null ) {
  1468. for ( i=1; i<grd_drug.rows; i++ ) {
  1469. if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
  1470. messageBox("관리약사 성명을", "C002");
  1471. submit("TXIRB00123");
  1472. return;
  1473. }
  1474. }
  1475. model.makeNode("/root/send/savedata/drug");
  1476. model.setValue("/root/send/savedata/drug", rCSV1);
  1477. }
  1478. //공동연구자등록 그리드 필수입력항목 체크
  1479. for ( i=1; i<grd_comn.rows; i++ ) {
  1480. model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1481. }
  1482. var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
  1483. var rCSV2 = getNodeListCSV(update2);
  1484. if ( rCSV2 != null) {
  1485. for ( i=1; i<grd_comn.rows; i++ ) {
  1486. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
  1487. messageBox("공동연구자 성명을", "C002");
  1488. submit("TXIRB00123");
  1489. return;
  1490. }
  1491. }
  1492. model.makeNode("/root/send/savedata/comn");
  1493. model.setValue("/root/send/savedata/comn", rCSV2);
  1494. }
  1495. //코디네이터등록 그리드 필수입력항목 체크
  1496. for ( i=1; i<grd_codi.rows; i++ ) {
  1497. model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1498. }
  1499. var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
  1500. var rCSV3 = getNodeListCSV(update3);
  1501. if ( rCSV3 != null ) {
  1502. for ( i=1; i<grd_codi.rows; i++ ) {
  1503. if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
  1504. messageBox("코디네이터 성명을", "C002");
  1505. submit("TXIRB00123");
  1506. return;
  1507. }
  1508. }
  1509. model.makeNode("/root/send/savedata/codi");
  1510. model.setValue("/root/send/savedata/codi", rCSV3);
  1511. }
  1512. //의뢰담당자등록 그리드 필수입력항목 체크
  1513. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1514. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1515. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/subjid") == '' ) {
  1516. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1517. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1518. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/userkind", "5");
  1519. }
  1520. }
  1521. var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
  1522. var rCSV4 = getNodeListCSV(update4);
  1523. if ( rCSV4 != null ) {
  1524. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1525. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
  1526. messageBox("의뢰담당자 성명을", "C002");
  1527. submit("TXIRB00123");
  1528. return;
  1529. }
  1530. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1531. }
  1532. model.makeNode("/root/send/savedata/perchgr");
  1533. model.setValue("/root/send/savedata/perchgr", rCSV4);
  1534. }
  1535. //책임연구자 그리드 필수입력항목 체크
  1536. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1537. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1538. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/subjid") == '' ) {
  1539. model.setValue("/root/main/updtsubj/reser["+ i +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1540. model.setValue("/root/main/updtsubj/reser["+ i +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1541. model.setValue("/root/main/updtsubj/reser["+ i +"]/userkind", "1");
  1542. }
  1543. }
  1544. var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
  1545. var rCSV5 = getNodeListCSV(update5);
  1546. if ( rCSV5 != null ) {
  1547. for ( i=1; i<grd_reser.rows; i++ ) {
  1548. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
  1549. messageBox("책임연구자 성명을", "C002");
  1550. return;
  1551. }
  1552. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1553. }
  1554. model.makeNode("/root/send/savedata/reser");
  1555. model.setValue("/root/send/savedata/reser", rCSV5);
  1556. }
  1557. submit("TXIMR00101");
  1558. model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
  1559. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  1560. model.refresh();
  1561. /*
  1562. if ( parseInt(model.getValue("/root/main/updtsubj/item/direccost")) > 0 && model.getValue("/root/main/reptdetl/item/stdykind2") == 'I' && model.getValue("/root/main/reptdetl/item/rc") == 'R' ) {
  1563. setParameterd("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
  1564. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1565. open("SMISA00102");
  1566. }
  1567. */
  1568. parent.btn_report5.selected = true;
  1569. parent.btn_report5.dispatch("DOMActivate");
  1570. submit("TRIRB00124"); //결과보고서 내용 조회
  1571. submit("TRIMR00101"); //변경내용요약 조회
  1572. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  1573. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  1574. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  1575. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  1576. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  1577. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  1578. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  1579. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  1580. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  1581. model.removeNodeset("/root/send/savedata");
  1582. model.makeNode("/root/send/savedata");
  1583. model.refresh();
  1584. ]]>
  1585. </script>
  1586. </button>
  1587. <button id="button5" class="btn5_letter2" _auth="X" style="left:752px; top:10px; width:42px; height:19px; ">
  1588. <caption>삭제</caption>
  1589. <script type="javascript" ev:event="DOMActivate">
  1590. <![CDATA[
  1591. //접수 후 수정불가
  1592. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1593. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1594. return;
  1595. }
  1596. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  1597. if ( reptseqno != '') {
  1598. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1599. }
  1600. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  1601. /* var instcd = model.getValue("/root/send/savedata/instcd");
  1602. if ( instcd == '' ) {
  1603. messageBox("병원을 ", "C002");
  1604. }*/
  1605. submit("TXIRB00124");
  1606. } else {
  1607. submit("TXIRB00123");
  1608. }
  1609. model.refresh();
  1610. parent.btn_report5.selected = true;
  1611. parent.btn_report5.dispatch("DOMActivate");
  1612. ]]>
  1613. </script>
  1614. </button>
  1615. <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:615px; top:10px; width:64px; height:19px; ">
  1616. <caption>첨부삭제</caption>
  1617. <script type="javascript" ev:event="DOMActivate">
  1618. <![CDATA[
  1619. //접수 후 수정불가
  1620. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1621. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1622. return;
  1623. } else {
  1624. if (submit("TXIRS00188")) {
  1625. messageBox("첨부파일이 삭제되었습니다.","I999");
  1626. model.refresh();
  1627. }
  1628. }
  1629. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  1630. submit("TRIRB00124"); //결과보고서 내용 조회
  1631. submit("TRIMR00101"); //변경내용요약 조회
  1632. }
  1633. ]]>
  1634. </script>
  1635. </button>
  1636. <group id="group2" style="left:5px; top:295px; width:1055px; height:510px; border-color:#ff0000; border-style:solid; ">
  1637. <input id="ipt_verupdtresn1" ref="/root/main/updtsubj/item/verupdtresn1" class="input_default" navindex="16" maxlength="100" style="left:287px; top:104px; width:233px; height:19px; "/>
  1638. <button id="button1" class="btn2_letter3" visibility="hidden" _auth="X" style="left:409px; top:403px; width:53px; height:19px; ">
  1639. <caption>행추가</caption>
  1640. <script type="javascript" ev:event="DOMActivate">
  1641. <![CDATA[
  1642. grd_perchgr.addRow(true, true);
  1643. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1644. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1645. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/reptkind", "5");
  1646. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userkind", "5"); //5=담당자
  1647. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "I");
  1648. ]]>
  1649. </script>
  1650. </button>
  1651. <input id="ipt_verupdtresn2" ref="/root/main/updtsubj/item/verupdtresn2" class="input_default" navindex="18" maxlength="100" style="left:287px; top:130px; width:233px; height:19px; "/>
  1652. <button id="button2" class="btn2_letter3" visibility="hidden" _auth="X" style="left:464px; top:403px; width:53px; height:19px; ">
  1653. <caption>행삭제</caption>
  1654. <script type="javascript" ev:event="DOMActivate">
  1655. <![CDATA[
  1656. if ( model.getValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag")=="I"){
  1657. grd_perchgr.deleterow(grd_perchgr.row);
  1658. } else {
  1659. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "D");
  1660. }
  1661. ]]>
  1662. </script>
  1663. </button>
  1664. <caption id="caption50" class="cell_1" style="left:525px; top:153px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1665. <input id="ipt_verupdtresn3" ref="/root/main/updtsubj/item/verupdtresn3" class="input_default" navindex="20" maxlength="100" style="left:807px; top:103px; width:233px; height:19px; "/>
  1666. <line id="line20" class="line_3" style="x1:525px; y1:288px; x2:1040px; y2:288px; "/>
  1667. <caption id="caption51" class="cell_1" style="left:213px; top:102px; width:70px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1668. <input id="ipt_verupdtresn4" ref="/root/main/updtsubj/item/verupdtresn4" class="input_default" navindex="22" maxlength="100" style="left:807px; top:129px; width:233px; height:19px; "/>
  1669. <input id="ipt_verib" ref="/root/main/updtsubj/item/verib" class="input_default" navindex="21" maxlength="50" style="left:629px; top:129px; width:100px; height:19px; "/>
  1670. <line id="line21" class="line_1" style="x1:5px; y1:316px; x2:1040px; y2:316px; "/>
  1671. <button id="btn_rowadd2" class="btn2_letter3" _auth="X" style="left:930px; top:184px; width:53px; height:19px; ">
  1672. <caption>행추가</caption>
  1673. <script type="javascript" ev:event="DOMActivate">
  1674. <![CDATA[
  1675. grd_comn.addRow(true, true);
  1676. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1677. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1678. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
  1679. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
  1680. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
  1681. model.refresh();
  1682. ]]>
  1683. </script>
  1684. </button>
  1685. <caption id="caption40" class="cell_1" style="left:213px; top:128px; width:70px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1686. <caption id="caption52" class="cell_1" style="left:213px; top:76px; width:70px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1687. <button id="btn_rowadd3" class="btn2_letter3" _auth="X" style="left:929px; top:294px; width:53px; height:19px; ">
  1688. <caption>행추가</caption>
  1689. <script type="javascript" ev:event="DOMActivate">
  1690. <![CDATA[
  1691. grd_codi.addRow(true, true);
  1692. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1693. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1694. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/reptkind", "5");
  1695. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/userkind", "3"); //3=코디네이터
  1696. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "I");
  1697. model.refresh();
  1698. ]]>
  1699. </script>
  1700. </button>
  1701. <caption id="caption41" class="cell_1" style="left:525px; top:101px; width:100px; height:23px; text-align:center; vertical-align:middle; ">CRF Version</caption>
  1702. <input id="ipt_verplan" ref="/root/main/updtsubj/item/verplan" class="input_default" navindex="15" maxlength="100" style="left:115px; top:104px; width:94px; height:19px; "/>
  1703. <caption id="caption53" class="cell_1" style="left:325px; top:50px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1704. <button id="btn_rowadd4" class="btn2_letter3" _auth="X" style="left:409px; top:184px; width:53px; height:19px; ">
  1705. <caption>행추가</caption>
  1706. <script type="javascript" ev:event="DOMActivate">
  1707. <![CDATA[
  1708. grd_drug.addRow(true, true);
  1709. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  1710. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1711. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/reptkind", "5");
  1712. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/userkind", "4"); //4=관리약사
  1713. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "I");
  1714. model.refresh();
  1715. ]]>
  1716. </script>
  1717. </button>
  1718. <caption id="caption42" class="tit_2" style="left:530px; top:190px; width:108px; height:13px; ">공동연구자등록</caption>
  1719. <caption id="caption1" class="tit_2" style="left:5px; top:410px; width:113px; height:13px; ">의뢰담당자 변경</caption>
  1720. <caption id="caption43" class="tit_2" style="left:5px; top:301px; width:108px; height:13px; ">코디네이터등록</caption>
  1721. <input id="ipt_stdyenddd" ref="/root/main/updtsubj/item/stdyenddd" class="input_default" navindex="11" inputtype="date" style="left:225px; top:52px; width:94px; height:19px; text-align:center; "/>
  1722. <caption id="caption44" class="tit_2" style="left:5px; top:190px; width:100px; height:13px; ">관리약사등록</caption>
  1723. <input id="ipt_ddupdtresn" ref="/root/main/updtsubj/item/ddupdtresn" class="input_default" navindex="12" maxlength="500" style="left:429px; top:52px; width:611px; height:19px; "/>
  1724. <caption id="caption45" class="cell_1" style="left:525px; top:127px; width:100px; height:23px; text-align:center; vertical-align:middle; ">IB Version</caption>
  1725. <line id="line15" class="line_1" style="x1:5px; y1:45px; x2:1040px; y2:45px; "/>
  1726. <caption id="caption46" class="cell_1" style="left:5px; top:153px; width:106px; height:23px; text-align:center; vertical-align:middle; ">과제명</caption>
  1727. <line id="line16" class="line_3" style="x1:5px; y1:398px; x2:1040px; y2:398px; "/>
  1728. <input id="ipt_direccost" ref="/root/main/updtsubj/item/direccost" class="input_default" navindex="13" format="#,###" style="left:115px; top:78px; width:94px; height:19px; text-align:right; ">
  1729. <script type="javascript" ev:event="xforms-value-changed">
  1730. <![CDATA[
  1731. var direccost = Math.ceil(model.getValue("/root/main/updtsubj/item/direccost") * 0.1) *10;
  1732. // alert(direccost);
  1733. model.setValue("/root/main/updtsubj/item/direccost", direccost);
  1734. //ceiling( /root/main/updtsubj/item/direccost * 0.1) * 10
  1735. model.refresh();
  1736. ]]>
  1737. </script>
  1738. </input>
  1739. <caption id="caption35" class="tit_2" style="left:5px; top:30px; width:158px; height:13px; ">변경내용요약</caption>
  1740. <line id="line1" class="line_1" style="x1:5px; y1:425px; x2:520px; y2:425px; "/>
  1741. <input id="ipt_nmupdtresn" ref="/root/main/updtsubj/item/nmupdtresn" class="input_default" navindex="24" maxlength="100" style="left:629px; top:155px; width:411px; height:19px; "/>
  1742. <caption id="caption47" style="left:212px; top:55px; width:15px; height:20px; ">~</caption>
  1743. <line id="line17" class="line_1" style="x1:5px; y1:205px; x2:520px; y2:205px; "/>
  1744. <button id="btn_rowdel2" class="btn2_letter3" _auth="X" style="left:985px; top:184px; width:53px; height:19px; ">
  1745. <caption>행삭제</caption>
  1746. <script type="javascript" ev:event="DOMActivate">
  1747. <![CDATA[
  1748. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag")=="I"){
  1749. grd_comn.deleterow(grd_comn.row);
  1750. } else {
  1751. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "D");
  1752. }
  1753. model.refresh();
  1754. ]]>
  1755. </script>
  1756. </button>
  1757. <caption id="caption36" class="cell_1" style="left:5px; top:50px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구기간</caption>
  1758. <caption id="caption15" class="cell_1" style="left:428px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">센터간접비(5%)</caption>
  1759. <line id="line2" class="line_3" style="x1:5px; y1:499px; x2:520px; y2:499px; "/>
  1760. <caption id="caption48" class="cell_1" style="left:733px; top:101px; width:70px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1761. <line id="line18" class="line_1" style="x1:525px; y1:205px; x2:1040px; y2:205px; "/>
  1762. <button id="btn_rowdel3" class="btn2_letter3" _auth="X" style="left:984px; top:294px; width:53px; height:19px; ">
  1763. <caption>행삭제</caption>
  1764. <script type="javascript" ev:event="DOMActivate">
  1765. <![CDATA[
  1766. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag")=="I"){
  1767. grd_codi.deleterow(grd_codi.row);
  1768. } else {
  1769. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "D");
  1770. }
  1771. model.refresh();
  1772. ]]>
  1773. </script>
  1774. </button>
  1775. <caption id="caption37" class="cell_1" style="left:5px; top:76px; width:106px; height:23px; text-align:center; vertical-align:middle; ">직접비(100%)</caption>
  1776. <caption id="caption16" class="cell_1" style="left:632px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">병원간접비(10%)</caption>
  1777. <caption id="caption7" class="cell_1" style="left:835px; top:75px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구비총액(115%)</caption>
  1778. <caption id="caption49" class="cell_1" style="left:733px; top:127px; width:70px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  1779. <line id="line19" class="line_3" style="x1:5px; y1:288px; x2:520px; y2:288px; "/>
  1780. <button id="btn_rowdel4" class="btn2_letter3" _auth="X" style="left:464px; top:184px; width:53px; height:19px; ">
  1781. <caption>행삭제</caption>
  1782. <script type="javascript" ev:event="DOMActivate">
  1783. <![CDATA[
  1784. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag")=="I"){
  1785. grd_drug.deleterow(grd_drug.row);
  1786. } else {
  1787. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "D");
  1788. }
  1789. model.refresh();
  1790. ]]>
  1791. </script>
  1792. </button>
  1793. <caption id="caption38" class="cell_1" style="left:5px; top:102px; width:106px; height:23px; text-align:center; vertical-align:middle; ">계획서Version</caption>
  1794. <input id="ipt_stdystartdd" ref="/root/main/updtsubj/item/stdystartdd" class="input_default" navindex="10" inputtype="date" style="left:115px; top:52px; width:94px; height:19px; text-align:center; "/>
  1795. <input id="ipt_vercrf" ref="/root/main/updtsubj/item/vercrf" class="input_default" navindex="19" maxlength="100" style="left:629px; top:103px; width:100px; height:19px; "/>
  1796. <caption id="caption39" class="cell_1" style="left:5px; top:128px; width:106px; height:23px; text-align:center; vertical-align:middle; ">동의서Version</caption>
  1797. <output id="output1" ref="/root/main/updtsubj/item/totstdycost" class="output_fix" format="#,###" appearance="output" style="left:945px; top:77px; width:94px; height:19px; text-align:right; "/>
  1798. <input id="ipt_veraprv" ref="/root/main/updtsubj/item/veraprv" class="input_default" navindex="17" maxlength="100" style="left:115px; top:130px; width:94px; height:19px; "/>
  1799. <output id="output2" ref="/root/main/updtsubj/item/centercost" class="output_fix" format="#,###" appearance="output" style="left:532px; top:77px; width:94px; height:19px; text-align:right; "/>
  1800. <input id="ipt_subjnm" ref="/root/main/updtsubj/item/subjnm" class="input_default" navindex="23" style="left:115px; top:155px; width:405px; height:19px; "/>
  1801. <output id="output3" ref="/root/main/updtsubj/item/hospcost" class="output_fix" format="#,###" appearance="output" style="left:736px; top:77px; width:94px; height:19px; text-align:right; "/>
  1802. <input id="ipt_costupdtresn" ref="/root/main/updtsubj/item/costupdtresn" class="input_default" navindex="14" maxlength="100" style="left:287px; top:78px; width:138px; height:19px; "/>
  1803. <button id="button25" class="btn2_letter8" _auth="R" style="left:820px; top:184px; width:108px; height:19px; ">
  1804. <caption>신규외부연구등록</caption>
  1805. <script type="javascript" ev:event="DOMActivate">
  1806. <![CDATA[
  1807. setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
  1808. setParameter("target","respo");
  1809. window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  1810. grd_comn.addRow();
  1811. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/usernm", getParameter("insusernm"));
  1812. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/deptnm", getParameter("insposnm"));
  1813. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/jobposnm", getParameter("insjobposnm"));
  1814. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/workplceaddr", getParameter("insworkplceaddr"));
  1815. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/mpphonno", getParameter("inscmpytelno"));
  1816. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/email", getParameter("insemail"));
  1817. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/bankcd", getParameter("insbankcd"));
  1818. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/acntno", getParameter("insacntno"));
  1819. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/depor", getParameter("insdepor"));
  1820. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/cmt", getParameter("inscmt"));
  1821. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/subjid", model.getValue("/root/send/searchitem/subjid"));
  1822. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/instcd", getParameter("insinstcd"));
  1823. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userid", getParameter("insuserid"));
  1824. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/rrgstno", getParameter("insrrgstno"));
  1825. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userseqno", getParameter("insuserseqno"));
  1826. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
  1827. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
  1828. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
  1829. model.refresh();
  1830. ]]>
  1831. </script>
  1832. </button>
  1833. <output id="opt_hospcost" ref="/root/send/searchitem/hospcost" class="output_fix" visibility="hidden" format="#,###" appearance="output" style="left:946px; top:31px; width:94px; height:19px; text-align:right; "/>
  1834. <caption id="caption54" class="cell_1" visibility="hidden" style="left:519px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">연구비총액</caption>
  1835. <caption id="caption55" class="cell_1" visibility="hidden" style="left:692px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">센타간접비</caption>
  1836. <caption id="caption56" class="cell_1" visibility="hidden" style="left:866px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">병원간접비</caption>
  1837. <output id="opt_totstdycost" ref="/root/send/searchitem/totstdycost" class="output_fix" visibility="hidden" format="#,###" appearance="output" style="left:599px; top:31px; width:94px; height:19px; text-align:right; "/>
  1838. <output id="opt_centercost" ref="/root/send/searchitem/centercost" class="output_fix" visibility="hidden" format="#,###" appearance="output" style="left:771px; top:31px; width:94px; height:19px; text-align:right; "/>
  1839. <caption id="caption20" style="left:114px; top:9px; width:908px; height:20px; font-weight:bold; color:#cc3300; ">※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우 "반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."</caption>
  1840. <datagrid id="grd_comn" nodeset="/root/main/updtsubj/comn" caption="상태^성명^주민번호^소속^직위^주소^연락처^이메일^은행^계좌번호^예금주^병원코드^과제ID^보고서일련번호^보고서종류^사번^사용자종류^비고^userseqno" colsep="^" colwidth="54, 100, 28, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:525px; top:210px; width:515px; height:75px; ">
  1841. <col disabled="true" ref="updtflag" type="combo">
  1842. <choices>
  1843. <item>
  1844. <label/>
  1845. <value>-</value>
  1846. </item>
  1847. <item>
  1848. <label>추가</label>
  1849. <value>I</value>
  1850. </item>
  1851. <item>
  1852. <label>수정</label>
  1853. <value>U</value>
  1854. </item>
  1855. <item>
  1856. <label>삭제</label>
  1857. <value>D</value>
  1858. </item>
  1859. </choices>
  1860. </col>
  1861. <col ref="usernm" type="inputbutton"/>
  1862. <col ref="rrgstno" visibility="hidden"/>
  1863. <col ref="deptnm" type="input"/>
  1864. <col ref="jobposnm" type="input"/>
  1865. <col ref="workplceaddr" type="input"/>
  1866. <col ref="mpphonno" type="input"/>
  1867. <col ref="email" type="input"/>
  1868. <col class="gridcombo" ref="bankcd" type="combo">
  1869. <choices>
  1870. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  1871. <label ref="cdnm"/>
  1872. <value ref="cdid"/>
  1873. </itemset>
  1874. </choices>
  1875. </col>
  1876. <col ref="acntno" type="input"/>
  1877. <col ref="depor" type="input"/>
  1878. <col ref="instcd" visibility="hidden"/>
  1879. <col ref="subjid" visibility="hidden"/>
  1880. <col ref="reptseqno" visibility="hidden"/>
  1881. <col ref="reptkind" visibility="hidden"/>
  1882. <col ref="userid" visibility="hidden"/>
  1883. <col ref="userkind" visibility="hidden"/>
  1884. <col ref="cmt" visibility="hidden"/>
  1885. <col ref="userseqno" visibility="hidden"/>
  1886. <script type="javascript" ev:event="onbuttonclick">
  1887. <![CDATA[
  1888. if ( grd_comn.col == grd_comn.colRef("usernm") ) {
  1889. setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  1890. setParameter("target","resp");
  1891. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1892. setParameter("usernm", "");
  1893. setParameter("userid", "");
  1894. setParameter("hospnm", "");
  1895. setParameter("jobposnm", "");
  1896. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  1897. if ( getParameter("usernm") != '' ) {
  1898. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/usernm", getParameter("usernm"));
  1899. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/userid", getParameter("userid"));
  1900. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/deptnm", getParameter("deptnm"));
  1901. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/jobposnm", getParameter("jobposnm"));
  1902. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/workplceaddr", getParameter("workplceaddr"));
  1903. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/mpphonno", getParameter("cmpytelno"));
  1904. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/email", getParameter("email"));
  1905. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/bankcd", getParameter("bankcd"));
  1906. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/acntno", getParameter("acntno"));
  1907. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/depor", getParameter("depor"));
  1908. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/rrgstno", getParameter("rrgstno"));
  1909. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == "-" ) {
  1910. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
  1911. }
  1912. }
  1913. grd_comn.isReadOnly(grd_comn.colRef("usernm"), grd_comn.row)=true;
  1914. grd_comn.refresh();
  1915. setParameter("usernm", "");
  1916. setParameter("userid", "");
  1917. setParameter("deptnm", "");
  1918. setParameter("jobposnm", "");
  1919. setParameter("workplceaddr", "");
  1920. setParameter("cmpytelno", "");
  1921. setParameter("email", "");
  1922. setParameter("bankcd", "");
  1923. setParameter("acntno", "");
  1924. setParameter("depor", "");
  1925. setParameter("rrgstno", "");
  1926. //var rownum = grd_mealprcpcd.row - 1;
  1927. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  1928. // grd_drug.addStatus(grd_drug.row, "update");
  1929. }
  1930. ]]>
  1931. </script>
  1932. <script type="javascript" ev:event="onclick">
  1933. <![CDATA[
  1934. grd_comn.editCell();
  1935. ]]>
  1936. </script>
  1937. <script type="javascript" ev:event="xforms-value-changed">
  1938. <![CDATA[
  1939. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == '-' ) {
  1940. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
  1941. model.refresh();
  1942. }
  1943. ]]>
  1944. </script>
  1945. </datagrid>
  1946. <datagrid id="grd_codi" nodeset="/root/main/updtsubj/codi" caption="상태^성명^주민번호^연락처^소속^직위^주소^이메일^은행^계좌번호^예금주^병원코드^과제ID^reptseqno^reptkind^userid^userkind^cmt^userseqno" colsep="^" colwidth="55, 100, 113, 100, 100, 100, 231, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:321px; width:1035px; height:74px; ">
  1947. <col disabled="true" ref="updtflag" type="combo">
  1948. <choices>
  1949. <item>
  1950. <label/>
  1951. <value>-</value>
  1952. </item>
  1953. <item>
  1954. <label>추가</label>
  1955. <value>I</value>
  1956. </item>
  1957. <item>
  1958. <label>수정</label>
  1959. <value>U</value>
  1960. </item>
  1961. <item>
  1962. <label>삭제</label>
  1963. <value>D</value>
  1964. </item>
  1965. </choices>
  1966. </col>
  1967. <col ref="usernm" type="inputbutton"/>
  1968. <col ref="rrgstno" type="input" format="999999-9999999"/>
  1969. <col ref="mpphonno" type="input"/>
  1970. <col ref="deptnm" type="input"/>
  1971. <col ref="jobposnm" type="input"/>
  1972. <col ref="workplceaddr" type="input"/>
  1973. <col ref="email" type="input"/>
  1974. <col class="gridcombo" ref="bankcd" type="combo">
  1975. <choices>
  1976. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  1977. <label ref="cdnm"/>
  1978. <value ref="cdid"/>
  1979. </itemset>
  1980. </choices>
  1981. </col>
  1982. <col ref="acntno" type="input"/>
  1983. <col ref="depor" type="input"/>
  1984. <col ref="instcd" visibility="hidden"/>
  1985. <col ref="subjid" visibility="hidden"/>
  1986. <col ref="reptseqno" visibility="hidden"/>
  1987. <col ref="reptkind" visibility="hidden"/>
  1988. <col ref="userid" visibility="hidden"/>
  1989. <col ref="userkind" visibility="hidden"/>
  1990. <col ref="cmt" visibility="hidden"/>
  1991. <col ref="userseqno" visibility="hidden"/>
  1992. <script type="javascript" ev:event="onbuttonclick">
  1993. <![CDATA[
  1994. if ( grd_codi.col == grd_codi.colRef("usernm") ) {
  1995. setParameter("userkind", "3"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  1996. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1997. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  1998. if ( getParameter("usernm") != '' ) {
  1999. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/usernm", getParameter("usernm"));
  2000. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/userid", getParameter("userid"));
  2001. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/deptnm", getParameter("hospnm"));
  2002. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/jobposnm", getParameter("jobposnm"));
  2003. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/workplceaddr", getParameter("workplceaddr"));
  2004. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/mpphonno", getParameter("cmpytelno"));
  2005. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/email", getParameter("email"));
  2006. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/bankcd", getParameter("bankcd"));
  2007. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/acntno", getParameter("acntno"));
  2008. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/depor", getParameter("depor"));
  2009. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/rrgstno", getParameter("rrgstno"));
  2010. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == "-" ) {
  2011. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
  2012. }
  2013. }
  2014. grd_codi.isReadOnly(grd_codi.colRef("usernm"), grd_codi.row)=true;
  2015. grd_codi.refresh();
  2016. setParameter("usernm", "");
  2017. setParameter("userid", "");
  2018. setParameter("deptnm", "");
  2019. setParameter("jobposnm", "");
  2020. setParameter("workplceaddr", "");
  2021. setParameter("cmpytelno", "");
  2022. setParameter("email", "");
  2023. setParameter("bankcd", "");
  2024. setParameter("acntno", "");
  2025. setParameter("depor", "");
  2026. setParameter("rrgstno", "");
  2027. //var rownum = grd_mealprcpcd.row - 1;
  2028. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2029. // grd_drug.addStatus(grd_drug.row, "update");
  2030. }
  2031. ]]>
  2032. </script>
  2033. <script type="javascript" ev:event="onclick">
  2034. <![CDATA[
  2035. grd_codi.editCell();
  2036. ]]>
  2037. </script>
  2038. <script type="javascript" ev:event="xforms-value-changed">
  2039. <![CDATA[
  2040. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == '-' ) {
  2041. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
  2042. model.refresh();
  2043. }
  2044. ]]>
  2045. </script>
  2046. </datagrid>
  2047. <datagrid id="grd_drug" nodeset="/root/main/updtsubj/drug" caption="상태^성명^주민번호^userseqno^연락처^이메일^소속^직위^주소^은행^계좌번호^예금주^instcd^subjid^reptseqno^reptkind^userid^userkind^cmt" colsep="^" colwidth="56, 100, 44, 33, 100, 100, 100, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:210px; width:515px; height:75px; ">
  2048. <col disabled="true" ref="updtflag" type="combo">
  2049. <choices>
  2050. <item>
  2051. <label/>
  2052. <value>-</value>
  2053. </item>
  2054. <item>
  2055. <label>추가</label>
  2056. <value>I</value>
  2057. </item>
  2058. <item>
  2059. <label>수정</label>
  2060. <value>U</value>
  2061. </item>
  2062. <item>
  2063. <label>삭제</label>
  2064. <value>D</value>
  2065. </item>
  2066. </choices>
  2067. </col>
  2068. <col ref="usernm" type="inputbutton"/>
  2069. <col ref="rrgstno" visibility="hidden"/>
  2070. <col ref="userseqno" visibility="hidden"/>
  2071. <col ref="mpphonno" type="input"/>
  2072. <col ref="email" type="input"/>
  2073. <col ref="deptnm" type="input"/>
  2074. <col ref="jobposnm" type="input"/>
  2075. <col ref="workplceaddr" type="input"/>
  2076. <col class="gridcombo" ref="bankcd" type="combo">
  2077. <choices>
  2078. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2079. <label ref="cdnm"/>
  2080. <value ref="cdid"/>
  2081. </itemset>
  2082. </choices>
  2083. </col>
  2084. <col ref="acntno" type="input"/>
  2085. <col ref="depor" type="input"/>
  2086. <col ref="instcd" visibility="hidden"/>
  2087. <col ref="subjid" visibility="hidden"/>
  2088. <col ref="reptseqno" visibility="hidden"/>
  2089. <col ref="reptkind" visibility="hidden"/>
  2090. <col ref="userid" visibility="hidden"/>
  2091. <col ref="userkind" visibility="hidden"/>
  2092. <col ref="cmt" visibility="hidden"/>
  2093. <script type="javascript" ev:event="onbuttonclick">
  2094. <![CDATA[
  2095. if ( grd_drug.col == grd_drug.colRef("usernm") ) {
  2096. setParameter("userkind", "4"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2097. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2098. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","code", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2099. //clearParameter("reqinstcd");
  2100. if ( getParameter("usernm") != '' ) {
  2101. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/usernm", getParameter("usernm"));
  2102. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/userid", getParameter("userid"));
  2103. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/deptnm", getParameter("deptnm"));
  2104. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/jobposnm", getParameter("jobposnm"));
  2105. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/workplceaddr", getParameter("workplceaddr"));
  2106. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/mpphonno", getParameter("cmpytelno"));
  2107. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/email", getParameter("email"));
  2108. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/bankcd", getParameter("bankcd"));
  2109. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/acntno", getParameter("acntno"));
  2110. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/depor", getParameter("depor"));
  2111. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/rrgstno", getParameter("rrgstno"));
  2112. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == "-" ) {
  2113. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
  2114. }
  2115. }
  2116. grd_drug.isReadOnly(grd_drug.colRef("usernm"), grd_drug.row)=true;
  2117. grd_drug.refresh();
  2118. setParameter("usernm", "");
  2119. setParameter("userid", "");
  2120. setParameter("deptnm", "");
  2121. setParameter("jobposnm", "");
  2122. setParameter("workplceaddr", "");
  2123. setParameter("cmpytelno", "");
  2124. setParameter("email", "");
  2125. setParameter("bankcd", "");
  2126. setParameter("acntno", "");
  2127. setParameter("depor", "");
  2128. setParameter("rrgstno", "");
  2129. //var rownum = grd_mealprcpcd.row - 1;
  2130. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2131. // grd_drug.addStatus(grd_drug.row, "update");
  2132. }
  2133. ]]>
  2134. </script>
  2135. <script type="javascript" ev:event="onclick">
  2136. <![CDATA[
  2137. grd_drug.editCell();
  2138. ]]>
  2139. </script>
  2140. <script type="javascript" ev:event="xforms-value-changed">
  2141. <![CDATA[
  2142. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == '-' ) {
  2143. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
  2144. model.refresh();
  2145. }
  2146. ]]>
  2147. </script>
  2148. </datagrid>
  2149. <datagrid id="grd_perchgr" nodeset="/root/main/updtsubj/perchgr" caption="상태^성명^주민번호^userseqno^연락처^이메일^소속^직위^은행^계좌번호^예금주^instcd^subjid^reptseqno^reptkind^userid^userkind^cmt^workplceaddr" colsep="^" colwidth="60, 100, 34, 34, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:430px; width:515px; height:64px; ">
  2150. <col disabled="true" ref="updtflag" type="combo">
  2151. <choices>
  2152. <item>
  2153. <label/>
  2154. <value>-</value>
  2155. </item>
  2156. <item>
  2157. <label>추가</label>
  2158. <value>I</value>
  2159. </item>
  2160. <item>
  2161. <label>수정</label>
  2162. <value>U</value>
  2163. </item>
  2164. <item>
  2165. <label>삭제</label>
  2166. <value>D</value>
  2167. </item>
  2168. </choices>
  2169. </col>
  2170. <col ref="usernm" type="inputbutton" editable="false"/>
  2171. <col ref="rrgstno" visibility="hidden"/>
  2172. <col ref="userseqno" visibility="hidden"/>
  2173. <col ref="mpphonno" type="input"/>
  2174. <col ref="email" type="input"/>
  2175. <col ref="deptnm" type="input"/>
  2176. <col ref="jobposnm" type="input"/>
  2177. <col ref="bankcd" type="combo" visibility="hidden">
  2178. <choices>
  2179. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2180. <label ref="cdnm"/>
  2181. <value ref="cdid"/>
  2182. </itemset>
  2183. </choices>
  2184. </col>
  2185. <col ref="acntno" type="input" visibility="hidden"/>
  2186. <col ref="depor" type="input" visibility="hidden"/>
  2187. <col ref="instcd" visibility="hidden"/>
  2188. <col ref="subjid" visibility="hidden"/>
  2189. <col ref="reptseqno" visibility="hidden"/>
  2190. <col ref="reptkind" visibility="hidden"/>
  2191. <col ref="userid" visibility="hidden"/>
  2192. <col ref="userkind" visibility="hidden"/>
  2193. <col ref="cmt" visibility="hidden"/>
  2194. <col ref="workplceaddr" visibility="hidden"/>
  2195. <script type="javascript" ev:event="onbuttonclick">
  2196. <![CDATA[
  2197. if ( grd_perchgr.col == grd_perchgr.colRef("usernm") ) {
  2198. if ( model.getValue("/root/send/searchitem/croinstcd") != '' ) {
  2199. var reqinstcd = model.getValue("/root/send/searchitem/croinstcd");
  2200. } else {
  2201. var reqinstcd = model.getValue("/root/send/searchitem/reqinstcd");
  2202. }
  2203. setParameter("reqinstcd",reqinstcd);
  2204. window.load("../../../crc/comsubjweb/xrw/SMIMR00300_담당자조회팝업.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2205. /*
  2206. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userid", getParameter("perchgrid"));
  2207. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/usernm", getParameter("nm"));
  2208. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno1", getParameter("rrgstno").substr(0,6));
  2209. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno2", getParameter("rrgstno").substr(6,7));
  2210. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/deptnm", getParameter("posnm"));
  2211. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/jobposnm", getParameter("jobposnm"));
  2212. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/email", getParameter("email"));
  2213. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/mpphonno", getParameter("cntctelno"));
  2214. */
  2215. if ( getParameter("nm") != '' ) {
  2216. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/usernm", getParameter("nm"));
  2217. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/userid", getParameter("perchgrid"));
  2218. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/deptnm", getParameter("posnm"));
  2219. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/jobposnm", getParameter("jobposnm"));
  2220. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/workplceaddr", getParameter("workplceaddr"));
  2221. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/mpphonno", getParameter("cntctelno"));
  2222. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/email", getParameter("email"));
  2223. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/bankcd", getParameter("bankcd"));
  2224. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/acntno", getParameter("acntno"));
  2225. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/depor", getParameter("depor"));
  2226. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/rrgstno", getParameter("rrgstno"));
  2227. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag", "U");
  2228. }
  2229. setParameter("reqinstcd", "");
  2230. grd_perchgr.refresh();
  2231. //var rownum = grd_mealprcpcd.row - 1;
  2232. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2233. // grd_drug.addStatus(grd_drug.row, "update");
  2234. }
  2235. ]]>
  2236. </script>
  2237. <script type="javascript" ev:event="onclick">
  2238. <![CDATA[
  2239. grd_perchgr.editCell();
  2240. ]]>
  2241. </script>
  2242. <script type="javascript" ev:event="xforms-value-changed">
  2243. <![CDATA[
  2244. if ( model.getValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag") == '-' ) {
  2245. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag", "U");
  2246. }
  2247. model.refresh();
  2248. ]]>
  2249. </script>
  2250. </datagrid>
  2251. <caption id="caption22" style="left:139px; top:299px; width:320px; height:20px; font-weight:bold; color:#0000ff; ">※ 코디네이터는 모든 항목이 필수 입력 항목입니다.</caption>
  2252. <caption id="caption23" style="left:119px; top:27px; width:410px; height:20px; font-weight:bold; color:#339933; ">* 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오.</caption>
  2253. <caption id="caption24" class="tit_2" style="left:530px; top:410px; width:113px; height:13px; ">책임연구자 변경</caption>
  2254. <line id="line4" class="line_1" style="x1:525px; y1:425px; x2:1040px; y2:425px; "/>
  2255. <datagrid id="grd_reser" nodeset="/root/main/updtsubj/reser" caption="상태^사번^성명^주민번호^연락처^이메일^소속^직위^주소^은행^계좌번호^예금주^병원코드^과제ID^reptseqno^reptkind^userkind" colsep="^" colwidth="66, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 45, 39, 36, 28, 39" mergecellsfixedrows="bycolrec" rowsep="|" style="left:525px; top:430px; width:515px; height:64px; ">
  2256. <col ref="updtflag" type="combo">
  2257. <choices>
  2258. <item>
  2259. <label/>
  2260. <value>-</value>
  2261. </item>
  2262. <item>
  2263. <label>추가</label>
  2264. <value>I</value>
  2265. </item>
  2266. <item>
  2267. <label>수정</label>
  2268. <value>U</value>
  2269. </item>
  2270. <item>
  2271. <label>삭제</label>
  2272. <value>D</value>
  2273. </item>
  2274. </choices>
  2275. </col>
  2276. <col ref="userid"/>
  2277. <col ref="usernm" type="inputbutton" editable="false"/>
  2278. <col ref="rrgstno" visibility="hidden"/>
  2279. <col ref="mpphonno"/>
  2280. <col ref="email"/>
  2281. <col ref="deptnm"/>
  2282. <col ref="jobposnm"/>
  2283. <col ref="workplceaddr"/>
  2284. <col ref="bankcd"/>
  2285. <col ref="acntno"/>
  2286. <col ref="depor"/>
  2287. <col ref="instcd" visibility="hidden"/>
  2288. <col ref="subjid" visibility="hidden"/>
  2289. <col ref="reptseqno" visibility="hidden"/>
  2290. <col ref="reptkind" visibility="hidden"/>
  2291. <col ref="userkind" visibility="hidden"/>
  2292. <script type="javascript" ev:event="onbuttonclick">
  2293. <![CDATA[
  2294. if ( grd_reser.col == grd_reser.colRef("usernm") ) {
  2295. setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2296. setParameter("target","resp");
  2297. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2298. setParameter("usernm", "");
  2299. setParameter("userid", "");
  2300. setParameter("hospnm", "");
  2301. setParameter("jobposnm", "");
  2302. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2303. if ( getParameter("usernm") != '' ) {
  2304. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/usernm", getParameter("usernm"));
  2305. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/userid", getParameter("userid"));
  2306. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/deptnm", getParameter("deptnm"));
  2307. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/jobposnm", getParameter("jobposnm"));
  2308. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/workplceaddr", getParameter("workplceaddr"));
  2309. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/mpphonno", getParameter("cmpytelno"));
  2310. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/email", getParameter("email"));
  2311. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/bankcd", getParameter("bankcd"));
  2312. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/acntno", getParameter("acntno"));
  2313. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/depor", getParameter("depor"));
  2314. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/rrgstno", getParameter("rrgstno"));
  2315. if ( model.getValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag") == "-" ) {
  2316. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "U");
  2317. }
  2318. }
  2319. grd_reser.refresh();
  2320. setParameter("usernm", "");
  2321. setParameter("userid", "");
  2322. setParameter("deptnm", "");
  2323. setParameter("jobposnm", "");
  2324. setParameter("workplceaddr", "");
  2325. setParameter("cmpytelno", "");
  2326. setParameter("email", "");
  2327. setParameter("bankcd", "");
  2328. setParameter("acntno", "");
  2329. setParameter("depor", "");
  2330. setParameter("rrgstno", "");
  2331. }
  2332. ]]>
  2333. </script>
  2334. <script type="javascript" ev:event="xforms-value-changed">
  2335. <![CDATA[
  2336. if ( model.getValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag") == '-' ) {
  2337. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag", "U");
  2338. }
  2339. model.refresh();
  2340. ]]>
  2341. </script>
  2342. </datagrid>
  2343. <line id="line5" class="line_3" style="x1:526px; y1:499px; x2:1040px; y2:499px; "/>
  2344. </group>
  2345. </xhtml:body>
  2346. </xhtml:html>