SPIRB00100_과제변경항목.xrw 166 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <engsubjnm/>
  68. <drugmngtamt/>
  69. <documngtamt/>
  70. <roothospidxcasecnt/>
  71. <allidxcase/>
  72. <hiddrugamt/>
  73. <hiddocuamt/>
  74. </item>
  75. <drug>
  76. <updtflag/>
  77. <usernm/>
  78. <rrgstno/>
  79. <userseqno/>
  80. <mpphonno/>
  81. <email/>
  82. <deptnm/>
  83. <jobposnm/>
  84. <workplceaddr/>
  85. <bankcd/>
  86. <acntno/>
  87. <depor/>
  88. <instcd/>
  89. <subjid/>
  90. <reptseqno/>
  91. <reptkind/>
  92. <userid/>
  93. <userkind/>
  94. <cmt/>
  95. </drug>
  96. <codi>
  97. <updtflag/>
  98. <usernm/>
  99. <rrgstno/>
  100. <workplceaddr/>
  101. <deptnm/>
  102. <jobposnm/>
  103. <mpphonno/>
  104. <email/>
  105. <bankcd/>
  106. <acntno/>
  107. <depor/>
  108. <instcd/>
  109. <subjid/>
  110. <reptseqno/>
  111. <reptkind/>
  112. <userid/>
  113. <userkind/>
  114. <cmt/>
  115. <userseqno/>
  116. </codi>
  117. <comn>
  118. <updtflag/>
  119. <usernm/>
  120. <rrgstno/>
  121. <deptnm/>
  122. <jobposnm/>
  123. <workplceaddr/>
  124. <mpphonno/>
  125. <email/>
  126. <bankcd/>
  127. <acntno/>
  128. <depor/>
  129. <instcd/>
  130. <subjid/>
  131. <reptseqno/>
  132. <reptkind/>
  133. <userid/>
  134. <userkind/>
  135. <cmt/>
  136. <userseqno/>
  137. </comn>
  138. <perchgr>
  139. <updtflag/>
  140. <usernm/>
  141. <rrgstno/>
  142. <userseqno/>
  143. <mpphonno/>
  144. <email/>
  145. <deptnm/>
  146. <jobposnm/>
  147. <bankcd/>
  148. <acntno/>
  149. <depor/>
  150. <instcd/>
  151. <subjid/>
  152. <reptseqno/>
  153. <reptkind/>
  154. <userid/>
  155. <userkind/>
  156. <cmt/>
  157. <workplceaddr/>
  158. </perchgr>
  159. <reser>
  160. <updtflag/>
  161. <usernm/>
  162. <rrgstno/>
  163. <deptnm/>
  164. <jobposnm/>
  165. <workplceaddr/>
  166. <mpphonno/>
  167. <email/>
  168. <bankcd/>
  169. <acntno/>
  170. <depor/>
  171. <instcd/>
  172. <subjid/>
  173. <reptseqno/>
  174. <reptkind/>
  175. <userid/>
  176. <userkind/>
  177. </reser>
  178. <serv>
  179. <updtflag/>
  180. <usernm/>
  181. <rrgstno/>
  182. <deptnm/>
  183. <jobposnm/>
  184. <workplceaddr/>
  185. <mpphonno/>
  186. <email/>
  187. <bankcd/>
  188. <acntno/>
  189. <depor/>
  190. <instcd/>
  191. <subjid/>
  192. <reptseqno/>
  193. <reptkind/>
  194. <userid/>
  195. <userkind/>
  196. </serv>
  197. </updtsubj>
  198. </main>
  199. <send>
  200. <savedata>
  201. </savedata>
  202. <searchitem>
  203. <subjid/>
  204. <instcd/>
  205. <reptseqno/>
  206. <reptkind/>
  207. <totstdycost/>
  208. <direccost/>
  209. <centercost/>
  210. <hospcost/>
  211. <consorflag/>
  212. <reqinstcd/>
  213. <rtnbtn/>
  214. <rtndate/>
  215. <rtnresn/>
  216. <croinstcd/>
  217. </searchitem>
  218. <tempnode>
  219. <drug/>
  220. </tempnode>
  221. <attach/>
  222. </send>
  223. <hidden/>
  224. <init>
  225. <hosp>
  226. <ret>
  227. <instcd/>
  228. <hospnm/>
  229. </ret>
  230. </hosp>
  231. <hosp1>
  232. <ret>
  233. <instcd/>
  234. <hospnm/>
  235. </ret>
  236. </hosp1>
  237. <cmb_info>
  238. <initbank>
  239. <cdid/>
  240. <cdnm/>
  241. </initbank>
  242. </cmb_info>
  243. </init>
  244. <rex>
  245. <view>
  246. <appformhead>
  247. <subjnm/>
  248. <subjno/>
  249. <hospnm/>
  250. <depthngnm/>
  251. <cdnm/>
  252. <usernm/>
  253. <hospcd/>
  254. </appformhead>
  255. <irsdcollareser>
  256. <subjid/>
  257. <instcd/>
  258. <userid/>
  259. <userkind/>
  260. <usernm/>
  261. <posnm/>
  262. <jobposnm/>
  263. </irsdcollareser>
  264. <imcmreqinst>
  265. <cmpynm/>
  266. <prsdnm/>
  267. <jobposnm/>
  268. </imcmreqinst>
  269. </view>
  270. <reptdetl>
  271. <item>
  272. <instcd/>
  273. <subjid/>
  274. <subjno/>
  275. <reptseqno/>
  276. <judgappdg/>
  277. <reptkind/>
  278. <fstplanjudgdd/>
  279. <acptyn/>
  280. <acptdd/>
  281. <subjnm/>
  282. <roothospidxcasecnt/>
  283. <prcsidxcase/>
  284. <cnts1/>
  285. <cnts2/>
  286. <cnts3/>
  287. <cnts4/>
  288. <cnts5/>
  289. <cnts6/>
  290. <cnts7/>
  291. <cnts8/>
  292. <cnts9/>
  293. <acptdd/>
  294. </item>
  295. </reptdetl>
  296. <updtsubj>
  297. <item>
  298. <instcd/>
  299. <subjid/>
  300. <reptseqno/>
  301. <reptkind/>
  302. <stdystartdd/>
  303. <stdyenddd/>
  304. <ddupdtresn/>
  305. <direccost/>
  306. <costupdtresn/>
  307. <verplan/>
  308. <verupdtresn1/>
  309. <veraprv/>
  310. <verupdtresn2/>
  311. <vercrf/>
  312. <verupdtresn3/>
  313. <verib/>
  314. <verupdtresn4/>
  315. <subjnm/>
  316. <nmupdtresn/>
  317. <retyn/>
  318. <acptyn/>
  319. <totstdycost/>
  320. <centercost/>
  321. <hospcost/>
  322. </item>
  323. </updtsubj>
  324. <basesubjinfo>
  325. <basesubjinfo>
  326. <subjid/>
  327. <perchgrid/>
  328. <acptyn/>
  329. <judgkind/>
  330. <subjnm/>
  331. <subjpwd/>
  332. <clinictrgtflag/>
  333. <reqinstflag/>
  334. <stdycostsuppinst/>
  335. <stdycostsuppinstnm/>
  336. <itemnm/>
  337. <comnm/>
  338. <allidxcase/>
  339. <stdystartdd/>
  340. <stdyenddd/>
  341. <appdd/>
  342. <testeeaprvflag/>
  343. <relprstdata1/>
  344. <relprstdata2/>
  345. <relprstdata3/>
  346. <relprstdata4/>
  347. <relprstdata5/>
  348. <prstdataetc5/>
  349. <resercd/>
  350. <reqinstcd/>
  351. <concernrela/>
  352. <verplan/>
  353. <veraprv/>
  354. <vercrf/>
  355. <verib/>
  356. <consorflag/>
  357. <deptcd/>
  358. <reqcnfmyn/>
  359. <inqrgoal/>
  360. <trgtsick/>
  361. <inqrmthd/>
  362. <stdykind1/>
  363. <etctrgt1/>
  364. <stdykind2/>
  365. <etctrgt2/>
  366. <stdykind3/>
  367. <manynation/>
  368. <manyinst/>
  369. <cmcinstcnt/>
  370. <stdykind4/>
  371. <etctrgt4/>
  372. <stdytrgt/>
  373. <etctrgt/>
  374. <agenestdyflag/>
  375. <cellcurestdyyn/>
  376. <testeestat/>
  377. <fratesteeflag/>
  378. <stdyspcl1/>
  379. <stdyspcl2/>
  380. <stdyspcl3/>
  381. <stdyspcl4/>
  382. <stdyspcl5/>
  383. <stdyspcl6/>
  384. <stdyspcl7/>
  385. <examadjthosp/>
  386. <examadjtprf/>
  387. <allexamresppos/>
  388. <allexamrespnm/>
  389. <foodscrtgovpassyn/>
  390. <prmisnnatiyn/>
  391. <intermarketyn/>
  392. <judgkindcode/>
  393. <firstdg/>
  394. <firstjudgdd/>
  395. <croinstcd/>
  396. <reqinstchrgid/>
  397. <reqinstchrgnm/>
  398. <croinstnm/>
  399. </basesubjinfo>
  400. </basesubjinfo>
  401. <data>
  402. <a/>
  403. </data>
  404. </rex>
  405. <temp/>
  406. </root>
  407. </instance>
  408. <submission id="TRIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
  409. <submission id="TXIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance"/>
  410. <submission id="TRIRB00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  411. <submission id="TRIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  412. <submission id="TXIRB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  413. <submission id="TRIRS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  414. <submission id="TXIRB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  415. <submission id="TRIRB00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/temp/updtsubj"/>
  416. <submission id="TRIRB00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/init/hosp1"/>
  417. <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"/>
  418. <bind id="bind2" ref="/root/main/updtsubj/item/centercost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.05) * 0.1) * 10"/>
  419. <bind id="bind3" ref="/root/main/updtsubj/item/hospcost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.10) * 0.1) * 10"/>
  420. <submission id="TRIRS00102" mediatype="application/x-www-form-urlencoded" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  421. <submission id="TXIIA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance"/>
  422. <submission id="TRZBC00101"/>
  423. <submission id="TXIRB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  424. <submission id="TXIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  425. <submission id="TXIRS00199" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  426. <submission id="TRIRS00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  427. <submission id="TXIRS00198" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  428. <submission id="TRIRS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
  429. </model>
  430. <script type="javascript" src="../../../crc/comsubjweb/js/common.js"/>
  431. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  432. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  433. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  434. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  435. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  436. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  437. <script type="javascript" src="../../../com/autocompleteweb/js/ZSC001.js"/>
  438. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  439. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  440. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  441. <script type="javascript">
  442. <![CDATA[
  443. //20090512 이창록 추가 (outrsrparam - > param,userflag -> 사용자구분)
  444. function fGetOutRsrInfo(outrsrparam,userflag)
  445. {
  446. var outArr = outrsrparam.split("▩");
  447. if((userflag =="2") || (userflag =="1")){
  448. for(var i = 0; i <(outArr.length-1); i++){
  449. grd_comn.addRow();
  450. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/usernm" , outArr[i].split("▦")[0]);
  451. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/deptnm" , outArr[i].split("▦")[1]);
  452. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/jobposnm" , outArr[i].split("▦")[2]);
  453. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
  454. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/mpphonno" , outArr[i].split("▦")[4]);
  455. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/email" , outArr[i].split("▦")[5]);
  456. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/bankcd" , outArr[i].split("▦")[6]);
  457. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/acntno" , outArr[i].split("▦")[7]);
  458. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/depor" , outArr[i].split("▦")[8]);
  459. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/instcd" , outArr[i].split("▦")[14]);
  460. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/cmt" , outArr[i].split("▦")[9]);
  461. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
  462. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userid" , outArr[i].split("▦")[10]);
  463. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userkind" , outArr[i].split("▦")[11]);
  464. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/rrgstno" , outArr[i].split("▦")[12]);
  465. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userseqno" , outArr[i].split("▦")[13]);
  466. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
  467. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
  468. }
  469. }else if(userflag =="4"){
  470. for(var i = 0; i <(outArr.length-1); i++){
  471. grd_drug.addRow();
  472. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/usernm" , outArr[i].split("▦")[0]);
  473. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/deptnm" , outArr[i].split("▦")[1]);
  474. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/jobposnm" , outArr[i].split("▦")[2]);
  475. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
  476. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/mpphonno" , outArr[i].split("▦")[4]);
  477. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/email" , outArr[i].split("▦")[5]);
  478. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/bankcd" , outArr[i].split("▦")[6]);
  479. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/acntno" , outArr[i].split("▦")[7]);
  480. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/depor" , outArr[i].split("▦")[8]);
  481. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/instcd" , outArr[i].split("▦")[14]);
  482. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/cmt" , outArr[i].split("▦")[9]);
  483. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
  484. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userid" , outArr[i].split("▦")[10]);
  485. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userkind" , outArr[i].split("▦")[11]);
  486. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/rrgstno" , outArr[i].split("▦")[12]);
  487. model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userseqno" , outArr[i].split("▦")[13]);
  488. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/reptkind", "5");
  489. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "I");
  490. }
  491. }else if(userflag =="3"){
  492. for(var i = 0; i <(outArr.length-1); i++){
  493. grd_codi.addRow();
  494. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/usernm" , outArr[i].split("▦")[0]);
  495. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/deptnm" , outArr[i].split("▦")[1]);
  496. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/jobposnm" , outArr[i].split("▦")[2]);
  497. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
  498. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/mpphonno" , outArr[i].split("▦")[4]);
  499. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/email" , outArr[i].split("▦")[5]);
  500. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/bankcd" , outArr[i].split("▦")[6]);
  501. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/acntno" , outArr[i].split("▦")[7]);
  502. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/depor" , outArr[i].split("▦")[8]);
  503. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/instcd" , outArr[i].split("▦")[14]);
  504. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/cmt" , outArr[i].split("▦")[9]);
  505. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
  506. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userid" , outArr[i].split("▦")[10]);
  507. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userkind" , outArr[i].split("▦")[11]);
  508. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/rrgstno" , outArr[i].split("▦")[12]);
  509. model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userseqno" , outArr[i].split("▦")[13]);
  510. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/reptkind", "5");
  511. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "I");
  512. }
  513. }
  514. }
  515. ]]>
  516. </script>
  517. <script type="javascript" ev:event="xforms-ready">
  518. <![CDATA[
  519. grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
  520. grd_drug.colDisabled(grd_drug.colRef("bankcd"))=true;
  521. grd_drug.colDisabled(grd_drug.colRef("updtflag"))=true;
  522. grd_comn.colDisabled(grd_comn.colRef("updtflag"))=true;
  523. grd_codi.colDisabled(grd_codi.colRef("updtflag"))=true;
  524. grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
  525. grd_reser.colDisabled(grd_reser.colRef("updtflag"))=true;
  526. //권한이 없는경우 보고서 상단의 저장 버튼 숨기기
  527. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  528. btn_tmpsave.visible = false;
  529. btn_reptacpt.visible = false;
  530. button5.visible = false;
  531. btn_rowadd4.visible = false;
  532. btn_rowdel4.visible = false;
  533. button25.visible = false;
  534. button7.visible = false;
  535. button6.visible = false;
  536. btn_rowadd2.visible = false;
  537. btn_rowdel2.visible = false;
  538. btn_rowadd3.visible = false;
  539. btn_rowdel3.visible = false;
  540. button1.visible = false;
  541. button2.visible = false;
  542. ipt_filenm.visible = true;
  543. btn_fileatt.visible = false;
  544. btn_filedel.visible = false;
  545. btn_filedown.visible=true;
  546. }
  547. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  548. ipt_filenm.visible = true;
  549. btn_fileatt.visible = false;
  550. btn_filedel.visible = false;
  551. btn_tmpsave.visible = false;
  552. btn_reptacpt.visible = false;
  553. btn_filedown.visible=true;
  554. button1.visible = false;
  555. }
  556. group1.visible = false;
  557. submit("TRIRB00102"); //병원 조회
  558. if ( model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid") ) != ""){
  559. model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid"));
  560. model.setValue("/root/send/searchitem/reptseqno", opener.javascript.getParameter("reptseqno"));
  561. model.setValue("/root/send/searchitem/reptkind", opener.javascript.getParameter("reptkind"));
  562. model.setValue("/root/send/searchitem/instcd", opener.javascript.getParameter("instcd"));
  563. model.setValue("/root/send/searchitem/totstdycost", opener.javascript.getParameter("totstdycost"));
  564. model.setValue("/root/send/searchitem/direccost", opener.javascript.getParameter("direccost"));
  565. model.setValue("/root/send/searchitem/reqinstcd", opener.javascript.getParameter("reqinstcd"));
  566. model.setValue("/root/send/searchitem/croinstcd", opener.javascript.getParameter("croinstcd"));
  567. } else {
  568. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  569. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  570. model.setValue("/root/send/searchitem/reptkind", "5");
  571. model.setValue("/root/send/searchitem/totstdycost", parent.model.getValue("/root/send/searchitem2/totstdycost"));
  572. model.setValue("/root/send/searchitem/direccost", parent.model.getValue("/root/send/searchitem2/direccost"));
  573. model.setValue("/root/send/searchitem/reqinstcd", parent.model.getValue("/root/send/searchitem2/reqinstcd"));
  574. model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
  575. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  576. }
  577. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  578. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  579. if ( consorflag == "Y" ) {
  580. model.setValue("/root/send/searchitem/consorflag", "Y");
  581. cmb_instcd.disabled = false;
  582. submit("TRIRB00106"); //병원 조회
  583. submit("TRIRS00203"); //공동과제일 때 Version관련 항목 조회(2010.06.29추가)
  584. model.copyNode("/root/init/hosp", "/root/init/hosp1");
  585. }
  586. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  587. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  588. submit("TRIRB00104"); //결과보고서 내용 조회
  589. submit("TRIMR00101"); //변경내용요약 조회
  590. }
  591. // ***** kjw 추가 (2010-01-13) *****
  592. if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0)
  593. input4.disabled = true;
  594. if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0)
  595. input5.disabled = true;
  596. // ***** 2010-01-13 *****
  597. if ( opener.javascript.getParameter("report") == "Y" ) {
  598. btn_tmpsave.visible = false;
  599. btn_reptacpt.visible = false;
  600. button5.visible = false;
  601. ipt_filenm.visible = true;
  602. btn_fileatt.visible = false;
  603. btn_filedel.visible = false;
  604. btn_filedown.visible=true;
  605. btn_rowadd4.visible = false;
  606. btn_rowdel4.visible = false;
  607. button25.visible = false;
  608. button6.visible = false;
  609. btn_rowadd2.visible = false;
  610. btn_rowdel2.visible = false;
  611. btn_rowadd3.visible = false;
  612. btn_rowdel3.visible = false;
  613. button1.visible = false;
  614. button2.visible = false;
  615. group1.visible = true;
  616. submit("TRIRB00104"); //결과보고서 내용 조회
  617. submit("TRIMR00101"); //변경내용요약 조회
  618. }
  619. else if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") != "Y" ){
  620. // ***** kjw 수정(2010-02-03, TRIMR00101의 return 트리('/root/main/reptdetl/item')에 중복 저장되어 temp아래로 받은 뒤에 copy 처리함) *****
  621. submit("TRIRB00108"); //기존에 등록되어 있는 공동연구자, 코디, 약사 조회
  622. model.setValue("/root/main/updtsubj/item/retyn", "/root/temp/updtsubj/item/drugmngtamt");
  623. model.setValue("/root/main/updtsubj/item/retyn", "/root/temp/updtsubj/item/documngtamt");
  624. model.setValue("/root/main/updtsubj/item/retyn", 'N');
  625. model.removenode("/root/main/updtsubj/drug");
  626. var k = 1;
  627. while (model.getValue("/root/temp/updtsubj/drug["+ k +"]/updtflag") != "") {
  628. model.makeValue("/root/main/updtsubj/drug["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/drug["+ k +"]/updtflag"));
  629. model.makeValue("/root/main/updtsubj/drug["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/usernm"));
  630. model.makeValue("/root/main/updtsubj/drug["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/rrgstno"));
  631. model.makeValue("/root/main/updtsubj/drug["+ k +"]/userseqno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userseqno"));
  632. model.makeValue("/root/main/updtsubj/drug["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/mpphonno"));
  633. model.makeValue("/root/main/updtsubj/drug["+ k +"]/email", model.getValue("/root/temp/updtsubj/drug["+ k +"]/email"));
  634. model.makeValue("/root/main/updtsubj/drug["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/deptnm"));
  635. model.makeValue("/root/main/updtsubj/drug["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/jobposnm"));
  636. model.makeValue("/root/main/updtsubj/drug["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/drug["+ k +"]/workplceaddr"));
  637. model.makeValue("/root/main/updtsubj/drug["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/drug["+ k +"]/bankcd"));
  638. model.makeValue("/root/main/updtsubj/drug["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/acntno"));
  639. model.makeValue("/root/main/updtsubj/drug["+ k +"]/depor", model.getValue("/root/temp/updtsubj/drug["+ k +"]/depor"));
  640. model.makeValue("/root/main/updtsubj/drug["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/drug["+ k +"]/instcd"));
  641. model.makeValue("/root/main/updtsubj/drug["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/drug["+ k +"]/subjid"));
  642. model.makeValue("/root/main/updtsubj/drug["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/reptseqno"));
  643. model.makeValue("/root/main/updtsubj/drug["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/drug["+ k +"]/reptkind"));
  644. model.makeValue("/root/main/updtsubj/drug["+ k +"]/userid", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userid"));
  645. model.makeValue("/root/main/updtsubj/drug["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userkind"));
  646. k = k + 1;
  647. }
  648. model.removenode("/root/main/updtsubj/comn");
  649. k = 1;
  650. while (model.getValue("/root/temp/updtsubj/comn["+ k +"]/updtflag") != "") {
  651. model.makeValue("/root/main/updtsubj/comn["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/comn["+ k +"]/updtflag"));
  652. model.makeValue("/root/main/updtsubj/comn["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/usernm"));
  653. model.makeValue("/root/main/updtsubj/comn["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/rrgstno"));
  654. model.makeValue("/root/main/updtsubj/comn["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/deptnm"));
  655. model.makeValue("/root/main/updtsubj/comn["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/jobposnm"));
  656. model.makeValue("/root/main/updtsubj/comn["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/comn["+ k +"]/workplceaddr"));
  657. model.makeValue("/root/main/updtsubj/comn["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/mpphonno"));
  658. model.makeValue("/root/main/updtsubj/comn["+ k +"]/email", model.getValue("/root/temp/updtsubj/comn["+ k +"]/email"));
  659. model.makeValue("/root/main/updtsubj/comn["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/comn["+ k +"]/bankcd"));
  660. model.makeValue("/root/main/updtsubj/comn["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/acntno"));
  661. model.makeValue("/root/main/updtsubj/comn["+ k +"]/depor", model.getValue("/root/temp/updtsubj/comn["+ k +"]/depor"));
  662. model.makeValue("/root/main/updtsubj/comn["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/comn["+ k +"]/instcd"));
  663. model.makeValue("/root/main/updtsubj/comn["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/comn["+ k +"]/subjid"));
  664. model.makeValue("/root/main/updtsubj/comn["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/reptseqno"));
  665. model.makeValue("/root/main/updtsubj/comn["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/comn["+ k +"]/reptkind"));
  666. model.makeValue("/root/main/updtsubj/comn["+ k +"]/userid", model.getValue("/root/temp/updtsubj/comn["+ k +"]/userid"));
  667. model.makeValue("/root/main/updtsubj/comn["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/comn["+ k +"]/userkind"));
  668. k = k + 1;
  669. }
  670. model.removenode("/root/main/updtsubj/codi");
  671. k = 1;
  672. while (model.getValue("/root/temp/updtsubj/codi["+ k +"]/updtflag") != "") {
  673. model.makeValue("/root/main/updtsubj/codi["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/codi["+ k +"]/updtflag"));
  674. model.makeValue("/root/main/updtsubj/codi["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/usernm"));
  675. model.makeValue("/root/main/updtsubj/codi["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/rrgstno"));
  676. model.makeValue("/root/main/updtsubj/codi["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/codi["+ k +"]/workplceaddr"));
  677. model.makeValue("/root/main/updtsubj/codi["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/deptnm"));
  678. model.makeValue("/root/main/updtsubj/codi["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/jobposnm"));
  679. model.makeValue("/root/main/updtsubj/codi["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/mpphonno"));
  680. model.makeValue("/root/main/updtsubj/codi["+ k +"]/email", model.getValue("/root/temp/updtsubj/codi["+ k +"]/email"));
  681. model.makeValue("/root/main/updtsubj/codi["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/codi["+ k +"]/bankcd"));
  682. model.makeValue("/root/main/updtsubj/codi["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/acntno"));
  683. model.makeValue("/root/main/updtsubj/codi["+ k +"]/depor", model.getValue("/root/temp/updtsubj/codi["+ k +"]/depor"));
  684. model.makeValue("/root/main/updtsubj/codi["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/codi["+ k +"]/instcd"));
  685. model.makeValue("/root/main/updtsubj/codi["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/codi["+ k +"]/subjid"));
  686. model.makeValue("/root/main/updtsubj/codi["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/reptseqno"));
  687. model.makeValue("/root/main/updtsubj/codi["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/codi["+ k +"]/reptkind"));
  688. model.makeValue("/root/main/updtsubj/codi["+ k +"]/userid", model.getValue("/root/temp/updtsubj/codi["+ k +"]/userid"));
  689. model.makeValue("/root/main/updtsubj/codi["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/codi["+ k +"]/userkind"));
  690. k = k + 1;
  691. }
  692. model.removenode("/root/main/updtsubj/perchgr");
  693. k = 1;
  694. while (model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/updtflag") != "") {
  695. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/updtflag"));
  696. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/usernm"));
  697. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/rrgstno"));
  698. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userseqno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userseqno"));
  699. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/mpphonno"));
  700. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/email", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/email"));
  701. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/deptnm"));
  702. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/jobposnm"));
  703. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/bankcd"));
  704. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/acntno"));
  705. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/depor", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/depor"));
  706. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/instcd"));
  707. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/subjid"));
  708. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/reptseqno"));
  709. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/reptkind"));
  710. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userid", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userid"));
  711. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userkind"));
  712. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/cmt", "");
  713. model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/workplceaddr"));
  714. k = k + 1;
  715. }
  716. model.removenode("/root/main/updtsubj/reser");
  717. k = 1;
  718. while (model.getValue("/root/temp/updtsubj/reser["+ k +"]/updtflag") != "") {
  719. model.makeValue("/root/main/updtsubj/reser["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/reser["+ k +"]/updtflag"));
  720. model.makeValue("/root/main/updtsubj/reser["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/usernm"));
  721. model.makeValue("/root/main/updtsubj/reser["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/rrgstno"));
  722. model.makeValue("/root/main/updtsubj/reser["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/deptnm"));
  723. model.makeValue("/root/main/updtsubj/reser["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/jobposnm"));
  724. model.makeValue("/root/main/updtsubj/reser["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/reser["+ k +"]/workplceaddr"));
  725. model.makeValue("/root/main/updtsubj/reser["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/mpphonno"));
  726. model.makeValue("/root/main/updtsubj/reser["+ k +"]/email", model.getValue("/root/temp/updtsubj/reser["+ k +"]/email"));
  727. model.makeValue("/root/main/updtsubj/reser["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/reser["+ k +"]/bankcd"));
  728. model.makeValue("/root/main/updtsubj/reser["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/acntno"));
  729. model.makeValue("/root/main/updtsubj/reser["+ k +"]/depor", model.getValue("/root/temp/updtsubj/reser["+ k +"]/depor"));
  730. model.makeValue("/root/main/updtsubj/reser["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/reser["+ k +"]/instcd"));
  731. model.makeValue("/root/main/updtsubj/reser["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/reser["+ k +"]/subjid"));
  732. model.makeValue("/root/main/updtsubj/reser["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/reptseqno"));
  733. model.makeValue("/root/main/updtsubj/reser["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/reser["+ k +"]/reptkind"));
  734. model.makeValue("/root/main/updtsubj/reser["+ k +"]/userid", model.getValue("/root/temp/updtsubj/reser["+ k +"]/userid"));
  735. model.makeValue("/root/main/updtsubj/reser["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/reser["+ k +"]/userkind"));
  736. k = k + 1;
  737. }
  738. model.removenode("/root/main/updtsubj/serv");
  739. k = 1;
  740. while (model.getValue("/root/temp/updtsubj/serv["+ k +"]/updtflag") != "") {
  741. model.makeValue("/root/main/updtsubj/serv["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/serv["+ k +"]/updtflag"));
  742. model.makeValue("/root/main/updtsubj/serv["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/usernm"));
  743. model.makeValue("/root/main/updtsubj/serv["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/rrgstno"));
  744. model.makeValue("/root/main/updtsubj/serv["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/deptnm"));
  745. model.makeValue("/root/main/updtsubj/serv["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/jobposnm"));
  746. model.makeValue("/root/main/updtsubj/serv["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/serv["+ k +"]/workplceaddr"));
  747. model.makeValue("/root/main/updtsubj/serv["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/mpphonno"));
  748. model.makeValue("/root/main/updtsubj/serv["+ k +"]/email", model.getValue("/root/temp/updtsubj/serv["+ k +"]/email"));
  749. model.makeValue("/root/main/updtsubj/serv["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/serv["+ k +"]/bankcd"));
  750. model.makeValue("/root/main/updtsubj/serv["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/acntno"));
  751. model.makeValue("/root/main/updtsubj/serv["+ k +"]/depor", model.getValue("/root/temp/updtsubj/serv["+ k +"]/depor"));
  752. model.makeValue("/root/main/updtsubj/serv["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/serv["+ k +"]/instcd"));
  753. model.makeValue("/root/main/updtsubj/serv["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/serv["+ k +"]/subjid"));
  754. model.makeValue("/root/main/updtsubj/serv["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/reptseqno"));
  755. model.makeValue("/root/main/updtsubj/serv["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/serv["+ k +"]/reptkind"));
  756. model.makeValue("/root/main/updtsubj/serv["+ k +"]/userid", model.getValue("/root/temp/updtsubj/serv["+ k +"]/userid"));
  757. model.makeValue("/root/main/updtsubj/serv["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/serv["+ k +"]/userkind"));
  758. k = k + 1;
  759. }
  760. model.removenode("/root/temp");
  761. // ***** 2010-02-03 *****
  762. messageBox("※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우, "
  763. +"\n" +"\n" + " 반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."
  764. +"\n" +"\n" + " * 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오."
  765. +"\n" +"\n" + "\n" + "---------------------------------------------------------------------"
  766. +"\n" +"\n" + "\n" + "※ 관리약사, 공동연구자, 코디네이터 등록이나 변경할 경우,"
  767. +"\n" +"\n" + " 1. 단순 추가나 삭제일 경우에는 행추가나 행삭제로 처리."
  768. +"\n" +"\n" + " 2. A에서 B로 변경될 경우에는 A를 행삭제, B를 추가입력."
  769. +"\n" +"\n" + " (버튼을 눌러 찾아질 경우에는 찾아서, 아닐 경우에는 타이핑)"
  770. +"\n" +"\n" + " 3. 코디네이터를 등록할 경우 모든 항목이 필수 입력 항목임."
  771. +"\n" +"\n" + " 4. 의뢰담당자 변경시 성명란에 있는 파란 버튼을 눌러 변경."
  772. +"\n" +"\n" + "\n" + "---------------------------------------------------------------------"
  773. +"\n" +"\n" + "\n" + "※ 연구진에 대한 변경이 있는 경우는 변경 신청서와 함께"
  774. +"\n" +"\n" + " 다음의 서류를 추가로 제출해 주십시요."
  775. +"\n" +"\n" + " 1. 책임 연구자 변경시"
  776. +"\n" +"\n" + " (1) 연구자 이력서"
  777. +"\n" +"\n" + " (2) 연구자 서약서"
  778. +"\n" +"\n" + " (3) Delegation Log"
  779. +"\n" +"\n" + " (4) 비상 연락망(교육 수료증 첨부 - 기 제출된 경우 면제)"
  780. +"\n" +"\n" + " (5) 이해 상충 신고서"
  781. +"\n" +"\n" + "\n" + " 2. 공동 연구자 또는 코디네이터 변경 및 추가 등록시"
  782. +"\n" +"\n" + " (1) Delegation Log"
  783. +"\n" +"\n" + " (2) 비상연락망 (교육 수료증 첨부 - 기 제출된 경우 면제)"
  784. +"\n" +"\n" + " (3) 이해 상충 신고서", "I999");
  785. //model.refresh();
  786. }
  787. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  788. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  789. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  790. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  791. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  792. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  793. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  794. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  795. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  796. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  797. var direccost = model.getValue("/root/send/searchitem/direccost");
  798. //센타간접비(직접연구비의 5%), 병원간접비(직접연구비의 10%) 계산
  799. if ( direccost != "" ) {
  800. model.setValue("/root/send/searchitem/centercost", parseFloat(direccost*0.05));
  801. model.setValue("/root/send/searchitem/hospcost", parseFloat(direccost*0.1));
  802. }
  803. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  804. // 접수 여부
  805. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  806. btn_rowadd4.visible = false;
  807. btn_rowdel4.visible = false;
  808. button25.visible = false;
  809. btn_rowadd2.visible = false;
  810. btn_rowdel2.visible = false;
  811. button7.visible = false;
  812. btn_rowadd3.visible = false;
  813. btn_rowdel3.visible = false;
  814. tar_cnts1.attribute("editable") = "false";
  815. tar_cnts2.attribute("editable") = "false";
  816. tar_cnts3.attribute("editable") = "false";
  817. tar_cnts4.attribute("editable") = "false";
  818. tar_cnts5.attribute("editable") = "false";
  819. tar_cnts6.attribute("editable") = "false";
  820. tar_cnts7.attribute("editable") = "false";
  821. tar_cnts8.attribute("editable") = "false";
  822. tar_cnts9.attribute("editable") = "false";
  823. ipt_stdystartdd.attribute("editable") = "false";
  824. ipt_stdyenddd.attribute("editable") = "false";
  825. ipt_ddupdtresn.attribute("editable") = "false";
  826. ipt_direccost.attribute("editable") = "false";
  827. ipt_costupdtresn.attribute("editable") = "false";
  828. ipt_verplan.attribute("editable") = "false";
  829. ipt_verupdtresn1.attribute("editable") = "false";
  830. ipt_veraprv.attribute("editable") = "false";
  831. ipt_verupdtresn2.attribute("editable") = "false";
  832. ipt_vercrf.attribute("editable") = "false";
  833. ipt_verupdtresn3.attribute("editable") = "false";
  834. ipt_verib.attribute("editable") = "false";
  835. ipt_verupdtresn4.attribute("editable") = "false";
  836. ipt_subjnm.attribute("editable") = "false";
  837. ipt_engsubjnm.attribute("editable") = "false";
  838. ipt_nmupdtresn.attribute("editable") = "false";
  839. for ( var i = 1; i < grd_drug.rows; i++ ) {
  840. for ( var j = 1; j < 20; j++ ) {
  841. grd_drug.isReadOnly(i, j) = true;
  842. }
  843. }
  844. for ( var i = 1; i < grd_comn.rows; i++ ) {
  845. for ( var j = 1; j < 20; j++ ) {
  846. grd_comn.isReadOnly(i, j) = true;
  847. }
  848. }
  849. for ( var i = 1; i < grd_codi.rows; i++ ) {
  850. for ( var j = 1; j < 20; j++ ) {
  851. grd_codi.isReadOnly(i, j) = true;
  852. }
  853. }
  854. for ( var j = 1; j < 20; j++ ) {
  855. grd_perchgr.isReadOnly(1, j) = true;
  856. }
  857. for ( var j = 1; j < 20; j++ ) {
  858. grd_reser.isReadOnly(1, j) = true;
  859. }
  860. } else {
  861. btn_rowadd4.visible = true;
  862. btn_rowdel4.visible = true;
  863. // Test
  864. //button25.visible = true;
  865. btn_rowadd2.visible = true;
  866. btn_rowdel2.visible = true;
  867. // Test
  868. //button7.visible = true;
  869. btn_rowadd3.visible = true;
  870. btn_rowdel3.visible = true;
  871. tar_cnts1.attribute("editable") = "true";
  872. tar_cnts2.attribute("editable") = "true";
  873. tar_cnts3.attribute("editable") = "true";
  874. tar_cnts4.attribute("editable") = "true";
  875. tar_cnts5.attribute("editable") = "true";
  876. tar_cnts6.attribute("editable") = "true";
  877. tar_cnts7.attribute("editable") = "true";
  878. tar_cnts8.attribute("editable") = "true";
  879. tar_cnts9.attribute("editable") = "true";
  880. ipt_stdystartdd.attribute("editable") = "true";
  881. ipt_stdyenddd.attribute("editable") = "true";
  882. ipt_ddupdtresn.attribute("editable") = "true";
  883. ipt_direccost.attribute("editable") = "true";
  884. ipt_costupdtresn.attribute("editable") = "true";
  885. ipt_verplan.attribute("editable") = "true";
  886. ipt_verupdtresn1.attribute("editable") = "true";
  887. ipt_veraprv.attribute("editable") = "true";
  888. ipt_verupdtresn2.attribute("editable") = "true";
  889. ipt_vercrf.attribute("editable") = "true";
  890. ipt_verupdtresn3.attribute("editable") = "true";
  891. ipt_verib.attribute("editable") = "true";
  892. ipt_verupdtresn4.attribute("editable") = "true";
  893. ipt_subjnm.attribute("editable") = "true";
  894. ipt_engsubjnm.attribute("editable") = "true";
  895. ipt_nmupdtresn.attribute("editable") = "true";
  896. }
  897. model.refresh();
  898. ]]>
  899. </script>
  900. </xhtml:head>
  901. <xhtml:body pagewidth="1090" pageheight="930" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  902. <group id="grp_biz" scroll="auto" style="left:5px; top:0px; width:1060px; height:295px; ">
  903. <button id="btn_close" class="btn2_letter2" style="left:1000px; top:10px; width:42px; height:19px; ">
  904. <caption>닫기</caption>
  905. <script type="javascript" ev:event="DOMActivate">
  906. <![CDATA[
  907. window.close();
  908. ]]>
  909. </script>
  910. </button>
  911. <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; ">
  912. <choices>
  913. <itemset nodeset="/root/init/hosp/ret">
  914. <label ref="hospnm"/>
  915. <value ref="instcd"/>
  916. </itemset>
  917. </choices>
  918. </select1>
  919. <caption id="caption21" class="cell_1" style="left:5px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">선택된 병원</caption>
  920. <caption id="caption10" class="cell_1" style="left:527px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  921. <![CDATA[피험자 동의
  922. 및 안전관련]]>
  923. </caption>
  924. <caption id="caption2" class="cell_1" style="left:280px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  925. <caption id="caption11" class="cell_1" style="left:527px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기 타</caption>
  926. <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; ">
  927. <choices>
  928. <item>
  929. <label>접수</label>
  930. <value>Y</value>
  931. </item>
  932. <item>
  933. <label>미접수</label>
  934. <value>N</value>
  935. </item>
  936. </choices>
  937. </select1>
  938. <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" navindex="1" style="left:92px; top:64px; width:428px; height:41px; "/>
  939. <caption id="caption3" class="cell_1" style="left:5px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  940. <![CDATA[연구목적
  941. 및 배경]]>
  942. </caption>
  943. <caption id="caption12" class="cell_1" style="left:527px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">변경사유</caption>
  944. <line id="line3" class="line_1" style="x1:5px; y1:33px; x2:1040px; y2:32px; "/>
  945. <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" navindex="2" style="left:92px; top:109px; width:428px; height:41px; "/>
  946. <caption id="caption4" class="cell_1" style="left:5px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
  947. <![CDATA[임상시험
  948. 대상관련]]>
  949. </caption>
  950. <caption id="caption13" class="tit_2" style="left:529px; top:225px; width:101px; height:13px; ">변경사유</caption>
  951. <textarea id="tar_cnts3" ref="/root/main/reptdetl/item/cnts3" navindex="3" style="left:92px; top:154px; width:428px; height:41px; "/>
  952. <caption id="caption5" class="cell_1" style="left:5px; top:199px; width:85px; height:41px; text-align:center; vertical-align:middle; ">피험자 관련</caption>
  953. <caption id="caption14" class="tit_2" style="left:10px; top:15px; width:140px; height:13px; ">변경계획서</caption>
  954. <caption id="caption6" class="cell_1" style="left:5px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기본사항</caption>
  955. <textarea id="tar_cnts4" ref="/root/main/reptdetl/item/cnts4" navindex="4" style="left:92px; top:199px; width:428px; height:41px; "/>
  956. <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts5" navindex="5" style="left:92px; top:244px; width:428px; height:41px; "/>
  957. <caption id="caption8" class="cell_1" style="left:5px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">임상시험 방법</caption>
  958. <textarea id="tar_cnts6" ref="/root/main/reptdetl/item/cnts6" navindex="6" style="left:614px; top:64px; width:428px; height:41px; "/>
  959. <caption id="caption9" class="cell_1" style="left:527px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">통계관련</caption>
  960. <textarea id="tar_cnts7" ref="/root/main/reptdetl/item/cnts7" navindex="7" style="left:614px; top:109px; width:428px; height:41px; "/>
  961. <textarea id="tar_cnts8" ref="/root/main/reptdetl/item/cnts8" navindex="8" style="left:614px; top:154px; width:428px; height:41px; "/>
  962. <textarea id="tar_cnts9" ref="/root/main/reptdetl/item/cnts9" navindex="9" maxlength="500" style="left:614px; top:244px; width:428px; height:41px; "/>
  963. <button id="button3" class="btn2_letter9" _auth="P" style="left:877px; top:10px; width:119px; height:19px; ">
  964. <caption>변경계획보고서 출력</caption>
  965. <script type="javascript" ev:event="DOMActivate">
  966. <![CDATA[
  967. var cnts1 ="";
  968. var cnts2 ="";
  969. var cnts3 ="";
  970. var cnts4 ="";
  971. var cnts5 ="";
  972. var cnts6 ="";
  973. var cnts7 ="";
  974. var cnts8 ="";
  975. var cnts9 ="";
  976. var cnts10 ="";
  977. var cnts11 ="";
  978. var cnts12 ="";
  979. var cnts13 ="";
  980. var cnts14 ="";
  981. var cnts15 ="";
  982. var data = "";
  983. var i =0;
  984. var kk = 0;
  985. if(submit("TRIRS00101")) {
  986. submit("TRIRS00102");
  987. model.copyNode("/root/rex/reptdetl", "/root/main/reptdetl");
  988. model.copyNode("/root/rex/updtsubj", "/root/main/updtsubj");
  989. cnts1="";
  990. cnts2="";
  991. cnts3="";
  992. cnts4="";
  993. cnts5="";
  994. cnts6="";
  995. cnts7="";
  996. cnts8="";
  997. cnts9="";
  998. cnts10="";
  999. cnts11="";
  1000. cnts12="";
  1001. cnts13="";
  1002. cnts14="";
  1003. cnts15="";
  1004. data="";
  1005. if ( model.getValue("/root/rex/reptdetl/item/cnts1") != "" && model.getValue("/root/rex/reptdetl/item/cnts1") != " ") {
  1006. cnts1 = "▶ 기본사항 : " + model.getValue("/root/rex/reptdetl/item/cnts1") + "\n";
  1007. }
  1008. if ( model.getValue("/root/rex/reptdetl/item/cnts2") != "" && model.getValue("/root/rex/reptdetl/item/cnts2") != " ") {
  1009. cnts2 = "▶ 연구목적 및 배경 : " + model.getValue("/root/rex/reptdetl/item/cnts2") + "\n";
  1010. }
  1011. if ( model.getValue("/root/rex/reptdetl/item/cnts3") != "" && model.getValue("/root/rex/reptdetl/item/cnts3") != " ") {
  1012. cnts3 = "▶ 임상시험 대상관련 : " + model.getValue("/root/rex/reptdetl/item/cnts3") + "\n";
  1013. }
  1014. if ( model.getValue("/root/rex/reptdetl/item/cnts4") != "" && model.getValue("/root/rex/reptdetl/item/cnts4") != " ") {
  1015. cnts4 = "▶ 피험자 관련 : " + model.getValue("/root/rex/reptdetl/item/cnts4") + "\n";
  1016. }
  1017. if ( model.getValue("/root/rex/reptdetl/item/cnts5") != "" && model.getValue("/root/rex/reptdetl/item/cnts5") != " ") {
  1018. cnts5 = "▶ 임상시험 방법 : " + model.getValue("/root/rex/reptdetl/item/cnts5") + "\n";
  1019. }
  1020. if ( model.getValue("/root/rex/reptdetl/item/cnts6") != "" && model.getValue("/root/rex/reptdetl/item/cnts6") != " ") {
  1021. cnts6 = "▶ 통계관련 : " + model.getValue("/root/rex/reptdetl/item/cnts6") + "\n";
  1022. }
  1023. if ( model.getValue("/root/rex/reptdetl/item/cnts7") != "" && model.getValue("/root/rex/reptdetl/item/cnts7") != " ") {
  1024. cnts7 = "▶ 피험자 동의 및 안전대책 : " + model.getValue("/root/rex/reptdetl/item/cnts7") + "\n";
  1025. }
  1026. if ( model.getValue("/root/rex/reptdetl/item/cnts8") != "" && model.getValue("/root/rex/reptdetl/item/cnts8") != " ") {
  1027. cnts8 = "▶ 기타 : " + model.getValue("/root/rex/reptdetl/item/cnts8") + "\n";
  1028. }
  1029. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  1030. model.makeValue("/root/rex/reptdetl/item/data", data);
  1031. var data = model.getValue("/root/rex/reptdetl/item/data");
  1032. var j = 0;
  1033. var p = 0;
  1034. var k = 0;
  1035. if ( data.indexOf("\n",p ) >=0 ){
  1036. while ( (j = data.indexOf("\n",p ))>=0){
  1037. var sdata = data.substring( p, j );
  1038. p = j + 1;
  1039. k = k + 1;
  1040. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  1041. }
  1042. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  1043. var sdata = data.substring( p, data.length );
  1044. k = k + 1;
  1045. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  1046. }
  1047. } else { //엔터없을때 처리
  1048. k = k + 1;
  1049. model.makeNode("/root/rex/reptdetl");
  1050. model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", data);
  1051. }
  1052. cnts1="";
  1053. cnts2="";
  1054. cnts3="";
  1055. cnts4="";
  1056. cnts5="";
  1057. cnts6="";
  1058. cnts7="";
  1059. cnts8="";
  1060. cnts9="";
  1061. cnts10="";
  1062. cnts11="";
  1063. cnts12="";
  1064. cnts13="";
  1065. cnts14="";
  1066. cnts15="";
  1067. data="";
  1068. if ( model.getValue("/root/rex/updtsubj/item/stdystartdd") != "" && model.getValue("/root/rex/updtsubj/item/stdystartdd") != " ") {
  1069. cnts1 = "▶ 연구기간 : " + model.getValue("/root/rex/updtsubj/item/stdystartdd") + " ~ " + model.getValue("/root/rex/updtsubj/item/stdyenddd") + "\n";
  1070. }
  1071. if ( model.getValue("/root/rex/updtsubj/item/direccost") != "" && model.getValue("/root/rex/updtsubj/item/direccost") != " ") {
  1072. cnts3 = "▶ 직접비 : " + model.getValue("/root/rex/updtsubj/item/direccost") + "\n";
  1073. }
  1074. if ( model.getValue("/root/rex/updtsubj/item/verplan") != "" && model.getValue("/root/rex/updtsubj/item/verplan") != " ") {
  1075. cnts5 = "▶ 계획서 Version : " + model.getValue("/root/rex/updtsubj/item/verplan") + "\n";
  1076. }
  1077. if ( model.getValue("/root/rex/updtsubj/item/veraprv") != "" && model.getValue("/root/rex/updtsubj/item/veraprv") != " ") {
  1078. cnts7 = "▶ 동의서 Version : " + model.getValue("/root/rex/updtsubj/item/veraprv") + "\n";
  1079. }
  1080. if ( model.getValue("/root/rex/updtsubj/item/vercrf") != "" && model.getValue("/root/rex/updtsubj/item/vercrf") != " ") {
  1081. cnts9 = "▶ CRF Version : " + model.getValue("/root/rex/updtsubj/item/vercrf") + "\n";
  1082. }
  1083. if ( model.getValue("/root/rex/updtsubj/item/verib") != "" && model.getValue("/root/rex/updtsubj/item/verib") != " ") {
  1084. cnts11 = "▶ IB Version : " + model.getValue("/root/rex/updtsubj/item/verib") + "\n";
  1085. }
  1086. if ( model.getValue("/root/rex/updtsubj/item/subjnm") != "" && model.getValue("/root/rex/updtsubj/item/subjnm") != " ") {
  1087. cnts13 = "▶ 과제명 : " + model.getValue("/root/rex/updtsubj/item/subjnm") + "\n";
  1088. }
  1089. data = cnts1 + cnts3 + cnts5 + cnts7 + cnts9 + cnts11 + cnts13 ;
  1090. model.makeValue("/root/rex/updtsubj/item/data", data);
  1091. var data = model.getValue("/root/rex/updtsubj/item/data");
  1092. var j = 0;
  1093. var p = 0;
  1094. var k = 0;
  1095. if ( data.indexOf("\n",p ) >=0 ){
  1096. while ( (j = data.indexOf("\n",p ))>=0){
  1097. var sdata = data.substring( p, j );
  1098. p = j + 1;
  1099. k = k + 1;
  1100. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  1101. }
  1102. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  1103. var sdata = data.substring( p, data.length );
  1104. k = k + 1;
  1105. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
  1106. }
  1107. } else { //엔터없을때 처리
  1108. k = k + 1;
  1109. model.makeNode("/root/rex/updtsubj");
  1110. model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", data);
  1111. }
  1112. cnts1="";
  1113. cnts2="";
  1114. cnts3="";
  1115. cnts4="";
  1116. cnts5="";
  1117. cnts6="";
  1118. cnts7="";
  1119. cnts8="";
  1120. cnts9="";
  1121. cnts10="";
  1122. cnts11="";
  1123. cnts12="";
  1124. cnts13="";
  1125. cnts14="";
  1126. cnts15="";
  1127. data="";
  1128. if ( model.getValue("/root/rex/updtsubj/item/ddupdtresn") != "" ) {
  1129. cnts2 = "연구기간 변경사유 : " + model.getValue("/root/rex/updtsubj/item/ddupdtresn") + "\n";
  1130. }
  1131. if ( model.getValue("/root/rex/updtsubj/item/costupdtresn") != "" ) {
  1132. cnts4 = "직접비 변경사유 : " + model.getValue("/root/rex/updtsubj/item/costupdtresn") + "\n";
  1133. }
  1134. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn1") != "" ) {
  1135. cnts6 = "계획서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn1") + "\n";
  1136. }
  1137. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn2") != "" ) {
  1138. cnts8 = "동의서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn2") + "\n";
  1139. }
  1140. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn3") != "" ) {
  1141. cnts10 = "CRF Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn3") + "\n";
  1142. }
  1143. if ( model.getValue("/root/rex/updtsubj/item/verupdtresn4") != "" ) {
  1144. cnts12 = "IB Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn4") + "\n";
  1145. }
  1146. if ( model.getValue("/root/rex/updtsubj/item/nmupdtresn") != "" ) {
  1147. cnts14 = "과제명 변경사유 : " + model.getValue("/root/rex/updtsubj/item/nmupdtresn") + "\n";
  1148. }
  1149. data = cnts2 + cnts4 + cnts6 + cnts8 + cnts10 + cnts12 + cnts14;
  1150. model.makeValue("/root/rex/updtsubj/item/data1", data);
  1151. var data = model.getValue("/root/rex/updtsubj/item/data1");
  1152. var j = 0;
  1153. var p = 0;
  1154. var k = 0;
  1155. if ( data.indexOf("\n",p ) >=0 ){
  1156. while ( (j = data.indexOf("\n",p ))>=0){
  1157. var sdata = data.substring( p, j );
  1158. p = j + 1;
  1159. k = k + 1;
  1160. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
  1161. }
  1162. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  1163. var sdata = data.substring( p, data.length );
  1164. k = k + 1;
  1165. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
  1166. }
  1167. } else { //엔터없을때 처리
  1168. k = k + 1;
  1169. model.makeNode("/root/rex/updtsubj");
  1170. model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", data);
  1171. }
  1172. //관리약사
  1173. if ( grd_drug.rows > 0 ) {
  1174. for ( var kk = 0; kk < grd_drug.rows -1; kk++ ) {
  1175. if ( grd_drug.valueMatrix(kk+1, grd_drug.colRef("updtflag")) != "-" ) {
  1176. i = i + 1;
  1177. cnts1="";
  1178. cnts2="";
  1179. cnts3="";
  1180. cnts4="";
  1181. cnts5="";
  1182. cnts6="";
  1183. cnts7="";
  1184. cnts8="";
  1185. cnts9="";
  1186. cnts10="";
  1187. cnts11="";
  1188. cnts12="";
  1189. cnts13="";
  1190. cnts14="";
  1191. cnts15="";
  1192. if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'I' ) {
  1193. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1194. } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'U' ) {
  1195. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1196. } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'D' ) {
  1197. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1198. }
  1199. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  1200. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/usernm") + "\n";
  1201. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/rrgatno") + "\n";
  1202. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/mpphonno") + "\n";
  1203. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/email") + "\n";
  1204. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/deptnm") + "\n" ;
  1205. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/jobposnm") + "\n" ;
  1206. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/workplceaddr") + "\n" ;
  1207. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n";
  1208. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n" ;
  1209. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/depor") + "\n" ;
  1210. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1211. var s = data;
  1212. var j = 0;
  1213. var p = 0;
  1214. var k = 0;
  1215. j = i;
  1216. if ( s.indexOf("\n",p ) >=0 ){
  1217. while ( (j = s.indexOf("\n",p ))>=0){
  1218. var sdata = s.substring( p, j );
  1219. p = j + 1;
  1220. k = k + 1;
  1221. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
  1222. }
  1223. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1224. var sdata = s.substring( p, s.length );
  1225. k = k + 1;
  1226. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
  1227. }
  1228. } else { //엔터없을때 처리
  1229. k = k + 1;
  1230. model.makeNode("/root/rex/updtsubj");
  1231. model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", s);
  1232. }
  1233. }
  1234. }
  1235. }
  1236. //공동연구자
  1237. if ( grd_comn.rows > 0 ) {
  1238. for ( var kk = 0; kk < grd_comn.rows -1; kk++ ) {
  1239. if ( grd_comn.valueMatrix(kk+1, grd_comn.colRef("updtflag")) != "-" ) {
  1240. i = i + 1;
  1241. cnts1="";
  1242. cnts2="";
  1243. cnts3="";
  1244. cnts4="";
  1245. cnts5="";
  1246. cnts6="";
  1247. cnts7="";
  1248. cnts8="";
  1249. cnts9="";
  1250. cnts10="";
  1251. cnts11="";
  1252. cnts12="";
  1253. cnts13="";
  1254. cnts14="";
  1255. cnts15="";
  1256. if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'I' ) {
  1257. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1258. } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'U' ) {
  1259. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1260. } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'D' ) {
  1261. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1262. }
  1263. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  1264. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/usernm") + "\n";
  1265. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/rrgatno") + "\n";
  1266. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/mpphonno") + "\n";
  1267. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/email") + "\n";
  1268. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/deptnm") + "\n" ;
  1269. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/jobposnm") + "\n" ;
  1270. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/workplceaddr") + "\n" ;
  1271. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n";
  1272. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n" ;
  1273. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/depor") + "\n" ;
  1274. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1275. var s = data;
  1276. var j = 0;
  1277. var p = 0;
  1278. var k = 0;
  1279. j = i;
  1280. if ( s.indexOf("\n",p ) >=0 ){
  1281. while ( (j = s.indexOf("\n",p ))>=0){
  1282. var sdata = s.substring( p, j );
  1283. p = j + 1;
  1284. k = k + 1;
  1285. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
  1286. }
  1287. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1288. var sdata = s.substring( p, s.length );
  1289. k = k + 1;
  1290. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
  1291. }
  1292. } else { //엔터없을때 처리
  1293. k = k + 1;
  1294. model.makeNode("/root/rex/updtsubj");
  1295. model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", s);
  1296. }
  1297. }
  1298. }
  1299. }
  1300. //코디네이터
  1301. if ( grd_codi.rows > 0 ) {
  1302. for ( var kk = 0; kk < grd_codi.rows -1; kk++ ) {
  1303. if ( grd_codi.valueMatrix(kk+1, grd_codi.colRef("updtflag")) != "-" ) {
  1304. i = i + 1;
  1305. cnts1="";
  1306. cnts2="";
  1307. cnts3="";
  1308. cnts4="";
  1309. cnts5="";
  1310. cnts6="";
  1311. cnts7="";
  1312. cnts8="";
  1313. cnts9="";
  1314. cnts10="";
  1315. cnts11="";
  1316. cnts12="";
  1317. cnts13="";
  1318. cnts14="";
  1319. cnts15="";
  1320. if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'I' ) {
  1321. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1322. } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'U' ) {
  1323. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1324. } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'D' ) {
  1325. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1326. }
  1327. // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
  1328. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/usernm") + "\n";
  1329. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/rrgatno") + "\n";
  1330. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/mpphonno") + "\n";
  1331. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/email") + "\n";
  1332. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/deptnm") + "\n" ;
  1333. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/jobposnm") + "\n" ;
  1334. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/workplceaddr") + "\n" ;
  1335. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n";
  1336. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n" ;
  1337. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/depor") + "\n" ;
  1338. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1339. var s = data;
  1340. var j = 0;
  1341. var p = 0;
  1342. var k = 0;
  1343. j = i;
  1344. if ( s.indexOf("\n",p ) >=0 ){
  1345. while ( (j = s.indexOf("\n",p ))>=0){
  1346. var sdata = s.substring( p, j );
  1347. p = j + 1;
  1348. k = k + 1;
  1349. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
  1350. }
  1351. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1352. var sdata = s.substring( p, s.length );
  1353. k = k + 1;
  1354. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
  1355. }
  1356. } else { //엔터없을때 처리
  1357. k = k + 1;
  1358. model.makeNode("/root/rex/updtsubj");
  1359. model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", s);
  1360. }
  1361. }
  1362. }
  1363. }
  1364. //의뢰담당자
  1365. if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") != "-" ) {
  1366. cnts1="";
  1367. cnts2="";
  1368. cnts3="";
  1369. cnts4="";
  1370. cnts5="";
  1371. cnts6="";
  1372. cnts7="";
  1373. cnts8="";
  1374. cnts9="";
  1375. cnts10="";
  1376. cnts11="";
  1377. cnts12="";
  1378. cnts13="";
  1379. cnts14="";
  1380. cnts15="";
  1381. data="";
  1382. if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'I' ) {
  1383. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1384. } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'U' ) {
  1385. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1386. } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'D' ) {
  1387. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1388. }
  1389. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/usernm") + "\n";
  1390. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/rrgatno") + "\n";
  1391. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/mpphonno") + "\n";
  1392. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/email") + "\n";
  1393. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/deptnm") + "\n" ;
  1394. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/jobposnm") + "\n" ;
  1395. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/workplceaddr") + "\n" ;
  1396. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n";
  1397. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n" ;
  1398. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/depor") + "\n" ;
  1399. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1400. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  1401. var s = data;
  1402. var j = 0;
  1403. var p = 0;
  1404. var k = 0;
  1405. if ( s.indexOf("\n",p ) >=0 ){
  1406. while ( (j = s.indexOf("\n",p ))>=0){
  1407. var sdata = s.substring( p, j );
  1408. p = j + 1;
  1409. k = k + 1;
  1410. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
  1411. }
  1412. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1413. var sdata = s.substring( p, s.length );
  1414. k = k + 1;
  1415. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
  1416. }
  1417. } else { //엔터없을때 처리
  1418. k = k + 1;
  1419. model.makeNode("/root/rex/updtsubj");
  1420. model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", s);
  1421. }
  1422. }
  1423. //책임연구자
  1424. if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") != "-" ) {
  1425. cnts1="";
  1426. cnts2="";
  1427. cnts3="";
  1428. cnts4="";
  1429. cnts5="";
  1430. cnts6="";
  1431. cnts7="";
  1432. cnts8="";
  1433. cnts9="";
  1434. cnts10="";
  1435. cnts11="";
  1436. cnts12="";
  1437. cnts13="";
  1438. cnts14="";
  1439. cnts15="";
  1440. data="";
  1441. if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'I' ) {
  1442. cnts1 = "▶ 상태 : 추가" + "\n" ;
  1443. } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'U' ) {
  1444. cnts1 = "▶ 상태 : 수정" + "\n" ;
  1445. } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'D' ) {
  1446. cnts1 = "▶ 상태 : 삭제" + "\n" ;
  1447. }
  1448. cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/reser[1]/usernm") + "\n";
  1449. cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/rrgatno") + "\n";
  1450. cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/reser[1]/mpphonno") + "\n";
  1451. cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/reser[1]/email") + "\n";
  1452. cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/reser[1]/deptnm") + "\n" ;
  1453. cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/reser[1]/jobposnm") + "\n" ;
  1454. cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/reser[1]/workplceaddr") + "\n" ;
  1455. cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n";
  1456. cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n" ;
  1457. cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/reser[1]/depor") + "\n" ;
  1458. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
  1459. data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
  1460. var s = data;
  1461. var j = 0;
  1462. var p = 0;
  1463. var k = 0;
  1464. if ( s.indexOf("\n",p ) >=0 ){
  1465. while ( (j = s.indexOf("\n",p ))>=0){
  1466. var sdata = s.substring( p, j );
  1467. p = j + 1;
  1468. k = k + 1;
  1469. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
  1470. }
  1471. if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
  1472. var sdata = s.substring( p, s.length );
  1473. k = k + 1;
  1474. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
  1475. }
  1476. } else { //엔터없을때 처리
  1477. k = k + 1;
  1478. model.makeNode("/root/rex/updtsubj");
  1479. model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", s);
  1480. }
  1481. }
  1482. exeReportPreview("PSIRB00700", "XMLSTR" , "/root/rex");
  1483. }
  1484. ]]>
  1485. </script>
  1486. </button>
  1487. <group id="group1" visibility="hidden" style="left:455px; top:37px; width:585px; height:25px; ">
  1488. <button id="button4" class="btn5_letter2" _auth="X" style="left:535px; top:0px; width:42px; height:19px; ">
  1489. <caption>저장</caption>
  1490. <script type="javascript" ev:event="DOMActivate">
  1491. <![CDATA[
  1492. submit("TXIIA00116");
  1493. window.close();
  1494. ]]>
  1495. </script>
  1496. </button>
  1497. <input id="input2" ref="/root/send/searchitem/rtnresn" class="input_default" disabled="true" navindex="20" style="left:340px; top:2px; width:185px; height:19px; "/>
  1498. <caption id="caption19" class="cell_1" style="left:265px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려사유</caption>
  1499. <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; "/>
  1500. <caption id="caption18" class="cell_1" style="left:90px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려일자</caption>
  1501. <bool id="bool1" ref="/root/send/searchitem/rtnbtn" style="left:55px; top:3px; width:30px; height:19px; ">
  1502. <script type="javascript" ev:event="xforms-value-changed">
  1503. <![CDATA[
  1504. if ( model.getValue("/root/send/searchitem/rtnbtn") == 'true') {
  1505. input2.disabled = false;
  1506. input1.disabled = false;
  1507. input1.value = getCurrentDate();
  1508. } else {
  1509. input2.disabled = true;
  1510. input1.disabled = true;
  1511. input2.value = "";
  1512. }
  1513. ]]>
  1514. </script>
  1515. </bool>
  1516. <caption id="caption17" class="cell_1" style="left:0px; top:0px; width:55px; height:23px; text-align:center; vertical-align:middle; ">반려</caption>
  1517. </group>
  1518. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:342px; top:10px; width:200px; height:19px; "/>
  1519. <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:545px; top:10px; width:64px; height:19px; ">
  1520. <caption>내려받기</caption>
  1521. <script type="javascript" ev:event="DOMActivate">
  1522. <![CDATA[
  1523. var s = model.getValue("/root/main/reptdetl/item/attfile");
  1524. var ss = s.split("/");
  1525. var filepath = "";
  1526. var filenm = "";
  1527. for ( var i = 0; i < ss.length; i ++){
  1528. if ( i < ss.length -2 ) {
  1529. filepath = filepath+ss[i] +"/";
  1530. } else if ( i < ss.length -1 ) {
  1531. filepath = filepath+ss[i] ;
  1532. } else {
  1533. filenm = ss[i];
  1534. }
  1535. }
  1536. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  1537. if (localfile != "") {
  1538. model.download(getActionURL("TRIRS00105")+"&filepath="+filepath,localfile);
  1539. var rtn = messageBox("파일을", "Q004");
  1540. if( rtn == 6 ) {
  1541. window.exec(localfile);
  1542. }
  1543. }
  1544. ]]>
  1545. </script>
  1546. </button>
  1547. <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; "/>
  1548. <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:545px; top:10px; width:64px; height:19px; ">
  1549. <caption>파일첨부</caption>
  1550. <script type="javascript" ev:event="onclick">
  1551. <![CDATA[
  1552. if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
  1553. messageBox("임시저장 후 첨부파일을 올리세요", "I");
  1554. return;
  1555. }
  1556. var maxsize = upload1.attribute("filesize");
  1557. files = window.fileDialog("open", "|", true);
  1558. filelist = files.split("|");
  1559. for(var i = 0 ; i < filelist.length ; i++ ) {
  1560. grd_attach.addRow(false);
  1561. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  1562. if (!checkFileSize(upload1)){
  1563. grd_attach.removeItem();
  1564. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  1565. return;
  1566. }
  1567. }
  1568. if ( filelist[0] != "") {
  1569. if (submit("TXIRS00199")) {
  1570. messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
  1571. model.removeNodeset("/root/send/attach");
  1572. parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
  1573. parent.btn_report5.selected = true;
  1574. parent.btn_report5.dispatch("DOMActivate");
  1575. model.refresh();
  1576. }
  1577. }
  1578. submit("TRIRB00104"); //결과보고서 내용 조회
  1579. submit("TRIMR00101"); //변경내용요약 조회
  1580. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  1581. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  1582. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  1583. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  1584. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  1585. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  1586. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  1587. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  1588. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  1589. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  1590. model.refresh();
  1591. ]]>
  1592. </script>
  1593. </button>
  1594. <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; ">
  1595. <col ref="file"/>
  1596. </datagrid>
  1597. </group>
  1598. <button id="btn_reptacpt" class="btn5_letter5" _auth="X" style="left:798px; top:10px; width:75px; height:19px; ">
  1599. <caption>보고서접수</caption>
  1600. <script type="javascript" ev:event="DOMActivate">
  1601. <![CDATA[
  1602. //접수 후 수정불가
  1603. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1604. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1605. return;
  1606. }
  1607. /* if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
  1608. messageBox("변경사유는", "I003");
  1609. model.setFocus("ipt_verupdtresn1");
  1610. return;
  1611. }*/
  1612. if ( model.getValue("/root/main/updtsubj/item/stdystartdd") != '' && model.getValue("/root/main/updtsubj/item/stdyenddd") != '' && model.getValue("/root/main/updtsubj/item/ddupdtresn") == '') {
  1613. messageBox("변경사유는", "I003");
  1614. model.setFocus("ipt_ddupdtresn");
  1615. return;
  1616. }
  1617. if ( model.getValue("/root/main/updtsubj/item/direccost") != '' && model.getValue("/root/main/updtsubj/item/direccost") != 0 && model.getValue("/root/main/updtsubj/item/costupdtresn") == '') {
  1618. messageBox("변경사유는", "I003");
  1619. model.setFocus("ipt_costupdtresn");
  1620. return;
  1621. }
  1622. if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
  1623. messageBox("변경사유는", "I003");
  1624. model.setFocus("ipt_verupdtresn1");
  1625. return;
  1626. }
  1627. if ( model.getValue("/root/main/updtsubj/item/veraprv") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn2") == '') {
  1628. messageBox("변경사유는", "I003");
  1629. model.setFocus("verupdtresn2");
  1630. return;
  1631. }
  1632. if ( model.getValue("/root/main/updtsubj/item/vercrf") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn3") == '') {
  1633. messageBox("변경사유는", "I003");
  1634. model.setFocus("verupdtresn3");
  1635. return;
  1636. }
  1637. if ( model.getValue("/root/main/updtsubj/item/verib") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn4") == '') {
  1638. messageBox("변경사유는", "I003");
  1639. model.setFocus("verupdtresn4");
  1640. return;
  1641. }
  1642. if ( model.getValue("/root/main/updtsubj/item/subjnm") != '' && model.getValue("/root/main/updtsubj/item/nmupdtresn") == '') {
  1643. messageBox("변경사유는", "I003");
  1644. model.setFocus("ipt_nmupdtresn");
  1645. return;
  1646. }
  1647. //20090518 이창록 수정
  1648. for ( i=1; i<grd_comn.rows; i++ ) {
  1649. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/updtflag") != 'D' ) {
  1650. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "") {
  1651. messageBox("공동연구자님의 성명은 필수사항입니다.", "i999");
  1652. model.setFocus("grd_comn");
  1653. return;
  1654. }
  1655. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/deptnm") == "" ) {
  1656. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 소속은 필수사항입니다.", "i999");
  1657. model.setFocus("grd_comn");
  1658. return;
  1659. }
  1660. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/jobposnm") == "" ) {
  1661. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 직위는 필수사항입니다.", "i999");
  1662. model.setFocus("grd_comn");
  1663. return;
  1664. }
  1665. /*if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/workplceaddr") == '' ) {
  1666. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 주소는 필수사항입니다.", "i999");
  1667. model.setFocus("grd_comn");
  1668. return;
  1669. }
  1670. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/mpphonno") == '' ) {
  1671. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 연락처는 필수사항입니다.", "i999");
  1672. model.setFocus("grd_comn");
  1673. return;
  1674. }
  1675. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/email") == '' ) {
  1676. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 이메일은 필수사항입니다.", "i999");
  1677. model.setFocus("grd_comn");
  1678. return;
  1679. }
  1680. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/bankcd") == '' ) {
  1681. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 은행은 필수사항입니다.", "i999");
  1682. model.setFocus("grd_comn");
  1683. return;
  1684. }
  1685. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/acntno") == '' ) {
  1686. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 계좌번호는 필수사항입니다.", "i999");
  1687. model.setFocus("grd_comn");
  1688. return;
  1689. }
  1690. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/depor") == '' ) {
  1691. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 예금주는 필수사항입니다.", "i999");
  1692. model.setFocus("grd_comn");
  1693. return;
  1694. }*/
  1695. }
  1696. }
  1697. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  1698. if ( reptseqno != '') {
  1699. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1700. }
  1701. //변경계획서
  1702. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  1703. model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
  1704. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  1705. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  1706. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  1707. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  1708. var instcd = model.getValue("/root/send/savedata/instcd");
  1709. if ( instcd == '' ) {
  1710. messageBox("병원을 ", "C002");
  1711. }
  1712. submit("TXIRB00102");
  1713. } else {
  1714. submit("TXIRB00101");
  1715. }
  1716. model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1717. model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1718. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1719. //변경내용요약
  1720. model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
  1721. model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
  1722. model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
  1723. model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1724. model.setValue("/root/send/savedata/reptkind", "5");
  1725. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  1726. //관리약사등록 그리드 필수입력항목 체크
  1727. for ( i=1; i<grd_drug.rows; i++ ) {
  1728. model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1729. }
  1730. var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
  1731. var rCSV1 = getNodeListCSV(update1);
  1732. if ( rCSV1 != null ) {
  1733. for ( i=1; i<grd_drug.rows; i++ ) {
  1734. if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
  1735. messageBox("관리약사 성명을", "C002");
  1736. submit("TXIRB00103");
  1737. return;
  1738. }
  1739. }
  1740. model.makeNode("/root/send/savedata/drug");
  1741. model.setValue("/root/send/savedata/drug", rCSV1);
  1742. }
  1743. //공동연구자등록 그리드 필수입력항목 체크
  1744. for ( i=1; i<grd_comn.rows; i++ ) {
  1745. model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1746. }
  1747. var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
  1748. var rCSV2 = getNodeListCSV(update2);
  1749. if ( rCSV2 != null) {
  1750. for ( i=1; i<grd_comn.rows; i++ ) {
  1751. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
  1752. messageBox("공동연구자 성명을", "C002");
  1753. submit("TXIRB00103");
  1754. return;
  1755. }
  1756. }
  1757. model.makeNode("/root/send/savedata/comn");
  1758. model.setValue("/root/send/savedata/comn", rCSV2);
  1759. }
  1760. //코디네이터등록 그리드 필수입력항목 체크
  1761. for ( i=1; i<grd_codi.rows; i++ ) {
  1762. model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1763. }
  1764. var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
  1765. var rCSV3 = getNodeListCSV(update3);
  1766. if ( rCSV3 != null ) {
  1767. for ( i=1; i<grd_codi.rows; i++ ) {
  1768. if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
  1769. messageBox("코디네이터 성명을", "C002");
  1770. submit("TXIRB00103");
  1771. return;
  1772. }
  1773. }
  1774. model.makeNode("/root/send/savedata/codi");
  1775. model.setValue("/root/send/savedata/codi", rCSV3);
  1776. }
  1777. //의뢰담당자등록 그리드 필수입력항목 체크
  1778. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1779. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1780. }
  1781. var updtflag = '';
  1782. for ( var i = 0; i < grd_perchgr.rows; i++ ) {
  1783. updtflag += model.getValue("/root/main/updtsubj/perchgr["+ i +"]/updtflag");
  1784. }
  1785. if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
  1786. messageBox("의뢰담당자는 반드시 한명이 존재하여야 합니다.", "E999");
  1787. return;
  1788. }
  1789. var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
  1790. var rCSV4 = getNodeListCSV(update4);
  1791. if ( rCSV4 != null ) {
  1792. for ( i=1; i<grd_perchgr.rows; i++ ) {
  1793. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
  1794. messageBox("의뢰담당자 성명을", "C002");
  1795. submit("TXIRB00103");
  1796. return;
  1797. }
  1798. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1799. }
  1800. model.makeNode("/root/send/savedata/perchgr");
  1801. model.setValue("/root/send/savedata/perchgr", rCSV4);
  1802. }
  1803. //책임연구자 그리드 필수입력항목 체크
  1804. for ( i=1; i<grd_reser.rows; i++ ) {
  1805. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1806. }
  1807. var updtflag = '';
  1808. for ( var i = 0; i < grd_reser.rows; i++ ) {
  1809. updtflag += model.getValue("/root/main/updtsubj/reser["+ i +"]/updtflag");
  1810. }
  1811. if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
  1812. messageBox("책임연구자는 반드시 한명이 존재하여야 합니다.", "E999");
  1813. return;
  1814. }
  1815. var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
  1816. var rCSV5 = getNodeListCSV(update5);
  1817. if ( rCSV5 != null ) {
  1818. for ( i=1; i<grd_reser.rows; i++ ) {
  1819. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
  1820. messageBox("책임연구자 성명을", "C002");
  1821. submit("TXIRB00103");
  1822. return;
  1823. }
  1824. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1825. }
  1826. model.makeNode("/root/send/savedata/reser");
  1827. model.setValue("/root/send/savedata/reser", rCSV5);
  1828. }
  1829. //실무자 그리드 필수입력항목 체크
  1830. var update6 = instance1.selectNodes("/root/main/updtsubj/serv");
  1831. var rCSV6 = getNodeListCSV(update6);
  1832. if ( rCSV6 != null ) {
  1833. for ( i=1; i<grd_serv.rows; i++ ) {
  1834. if ( model.getValue("/root/main/updtsubj/serv["+ i +"]/usernm") == "" ) {
  1835. messageBox("실무자 성명을", "C002");
  1836. submit("TXIRB00103");
  1837. return;
  1838. }
  1839. model.setValue("/root/main/updtsubj/serv["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1840. }
  1841. model.makeNode("/root/send/savedata/serv");
  1842. model.setValue("/root/send/savedata/serv", rCSV6);
  1843. }
  1844. submit("TXIMR00101");
  1845. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  1846. model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
  1847. model.refresh();
  1848. /*
  1849. 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' ) {
  1850. setParameter("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
  1851. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1852. open("SMISA00102");
  1853. }
  1854. */
  1855. // parent.model.setValue("/root/temp/ivieweryn", "N"); //변경계획서 iviewer 호출 여부 = N
  1856. parent.btn_report5.selected = true;
  1857. parent.btn_report5.dispatch("DOMActivate");
  1858. model.removeNodeset("/root/send/savedata");
  1859. model.makeNode("/root/send/savedata");
  1860. window.close();
  1861. ]]>
  1862. </script>
  1863. </button>
  1864. <button id="btn_tmpsave" class="btn5_letter4" _auth="X" style="left:684px; top:10px; width:64px; height:19px; ">
  1865. <caption>임시저장</caption>
  1866. <script type="javascript" ev:event="DOMActivate">
  1867. <![CDATA[
  1868. //접수 후 수정불가
  1869. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  1870. messageBox("이미 접수되어 저장 또는 수정", "E001");
  1871. return;
  1872. }
  1873. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  1874. if ( reptseqno != "") {
  1875. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1876. }
  1877. // 변경계획서
  1878. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  1879. model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
  1880. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  1881. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  1882. for ( i=1; i<grd_comn.rows; i++ ) {
  1883. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/updtflag") != "D" ) {
  1884. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "") {
  1885. messageBox("공동연구자님의 성명은 필수사항입니다.", "i999");
  1886. model.setFocus("grd_comn");
  1887. return;
  1888. }
  1889. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/deptnm") == "" ) {
  1890. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 소속은 필수사항입니다.", "i999");
  1891. model.setFocus("grd_comn");
  1892. return;
  1893. }
  1894. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/jobposnm") == "" ) {
  1895. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 직위는 필수사항입니다.", "i999");
  1896. model.setFocus("grd_comn");
  1897. return;
  1898. }
  1899. /*if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/workplceaddr") == '' ) {
  1900. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 주소는 필수사항입니다.", "i999");
  1901. model.setFocus("grd_comn");
  1902. return;
  1903. }
  1904. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/mpphonno") == '' ) {
  1905. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 연락처는 필수사항입니다.", "i999");
  1906. model.setFocus("grd_comn");
  1907. return;
  1908. }
  1909. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/email") == '' ) {
  1910. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 이메일은 필수사항입니다.", "i999");
  1911. model.setFocus("grd_comn");
  1912. return;
  1913. }
  1914. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/bankcd") == '' ) {
  1915. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 은행은 필수사항입니다.", "i999");
  1916. model.setFocus("grd_comn");
  1917. return;
  1918. }
  1919. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/acntno") == '' ) {
  1920. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 계좌번호는 필수사항입니다.", "i999");
  1921. model.setFocus("grd_comn");
  1922. return;
  1923. }
  1924. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/depor") == '' ) {
  1925. messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 예금주는 필수사항입니다.", "i999");
  1926. model.setFocus("grd_comn");
  1927. return;
  1928. }*/
  1929. }
  1930. }
  1931. if (model.getValue("/root/send/searchitem/consorflag") == "Y") {
  1932. var instcd = model.getValue("/root/send/savedata/instcd");
  1933. if ( instcd == "" ) {
  1934. messageBox("병원을 ", "C002");
  1935. }
  1936. submit("TXIRB00102");
  1937. } else {
  1938. submit("TXIRB00101");
  1939. }
  1940. model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  1941. model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  1942. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1943. //변경내용요약
  1944. model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
  1945. model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
  1946. model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
  1947. model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1948. model.setValue("/root/send/savedata/reptkind", "5");
  1949. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  1950. //관리약사등록 그리드 필수입력항목 체크
  1951. //model.removeNodeset("/root/send/tempnode/drug");
  1952. for ( i=1; i<grd_drug.rows; i++ ) {
  1953. model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1954. }
  1955. var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
  1956. var rCSV1 = getNodeListCSV(update1);
  1957. if ( rCSV1 != null ) {
  1958. for ( i=1; i<grd_drug.rows; i++ ) {
  1959. if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
  1960. messageBox("관리약사 성명을", "C002");
  1961. submit("TXIRB00103");
  1962. return;
  1963. }
  1964. }
  1965. model.makeNode("/root/send/savedata/drug");
  1966. model.setValue("/root/send/savedata/drug", rCSV1);
  1967. }
  1968. //공동연구자등록 그리드 필수입력항목 체크
  1969. for ( i=1; i<grd_comn.rows; i++ ) {
  1970. model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1971. }
  1972. var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
  1973. var rCSV2 = getNodeListCSV(update2);
  1974. if ( rCSV2 != null) {
  1975. for ( i=1; i<grd_comn.rows; i++ ) {
  1976. if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
  1977. messageBox("공동연구자 성명을", "C002");
  1978. submit("TXIRB00103");
  1979. return;
  1980. }
  1981. }
  1982. model.makeNode("/root/send/savedata/comn");
  1983. model.setValue("/root/send/savedata/comn", rCSV2);
  1984. }
  1985. //코디네이터등록 그리드 필수입력항목 체크
  1986. for ( i=1; i<grd_codi.rows; i++ ) {
  1987. model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  1988. }
  1989. var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
  1990. var rCSV3 = getNodeListCSV(update3);
  1991. if ( rCSV3 != null ) {
  1992. for ( i=1; i<grd_codi.rows; i++ ) {
  1993. if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
  1994. messageBox("코디네이터 성명을", "C002");
  1995. submit("TXIRB00103");
  1996. return;
  1997. }
  1998. }
  1999. model.makeNode("/root/send/savedata/codi");
  2000. model.setValue("/root/send/savedata/codi", rCSV3);
  2001. }
  2002. //의뢰담당자등록 그리드 필수입력항목 체크
  2003. for ( i=1; i<grd_perchgr.rows; i++ ) {
  2004. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  2005. }
  2006. var updtflag = '';
  2007. for ( var i = 0; i < grd_perchgr.rows; i++ ) {
  2008. updtflag += model.getValue("/root/main/updtsubj/perchgr["+ i +"]/updtflag");
  2009. }
  2010. if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
  2011. messageBox("의뢰담당자는 반드시 한명이 존재하여야 합니다.", "E999");
  2012. return;
  2013. }
  2014. var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
  2015. var rCSV4 = getNodeListCSV(update4);
  2016. if ( rCSV4 != null ) {
  2017. for ( i=1; i<grd_perchgr.rows; i++ ) {
  2018. if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
  2019. messageBox("의뢰담당자 성명을", "C002");
  2020. submit("TXIRB00103");
  2021. return;
  2022. }
  2023. model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  2024. }
  2025. model.makeNode("/root/send/savedata/perchgr");
  2026. model.setValue("/root/send/savedata/perchgr", rCSV4);
  2027. }
  2028. //책임연구자 그리드 필수입력항목 체크
  2029. for ( i=1; i<grd_reser.rows; i++ ) {
  2030. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
  2031. }
  2032. var updtflag = '';
  2033. for ( var i = 0; i < grd_reser.rows; i++ ) {
  2034. updtflag += model.getValue("/root/main/updtsubj/reser["+ i +"]/updtflag");
  2035. }
  2036. if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
  2037. messageBox("책임연구자는 반드시 한명이 존재하여야 합니다.", "E999");
  2038. return;
  2039. }
  2040. var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
  2041. var rCSV5 = getNodeListCSV(update5);
  2042. if ( rCSV5 != null ) {
  2043. for ( i=1; i<grd_reser.rows; i++ ) {
  2044. if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
  2045. messageBox("책임연구자 성명을", "C002");
  2046. submit("TXIRB00103");
  2047. return;
  2048. }
  2049. model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  2050. }
  2051. model.makeNode("/root/send/savedata/reser");
  2052. model.setValue("/root/send/savedata/reser", rCSV5);
  2053. }
  2054. //실무자 그리드 필수입력항목 체크
  2055. var update6 = instance1.selectNodes("/root/main/updtsubj/serv");
  2056. var rCSV6 = getNodeListCSV(update6);
  2057. if ( rCSV6 != null ) {
  2058. for ( i=1; i<grd_serv.rows; i++ ) {
  2059. if ( model.getValue("/root/main/updtsubj/serv["+ i +"]/usernm") == "" ) {
  2060. messageBox("실무자 성명을", "C002");
  2061. submit("TXIRB00103");
  2062. return;
  2063. }
  2064. model.setValue("/root/main/updtsubj/serv["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  2065. }
  2066. model.makeNode("/root/send/savedata/serv");
  2067. model.setValue("/root/send/savedata/serv", rCSV6);
  2068. }
  2069. submit("TXIMR00101");
  2070. model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
  2071. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  2072. model.refresh();
  2073. /*
  2074. 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' ) {
  2075. setParameterd("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
  2076. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2077. open("SMISA00102");
  2078. }
  2079. */
  2080. parent.btn_report5.selected = true;
  2081. parent.btn_report5.dispatch("DOMActivate");
  2082. submit("TRIRB00104"); //변경계획서 내용 조회
  2083. submit("TRIMR00101"); //변경내용요약 조회
  2084. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  2085. model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
  2086. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  2087. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  2088. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  2089. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  2090. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  2091. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  2092. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  2093. model.removeNodeset("/root/send/savedata");
  2094. model.makeNode("/root/send/savedata");
  2095. model.refresh();
  2096. ]]>
  2097. </script>
  2098. </button>
  2099. <button id="button5" class="btn5_letter2" _auth="X" style="left:752px; top:10px; width:42px; height:19px; ">
  2100. <caption>삭제</caption>
  2101. <script type="javascript" ev:event="DOMActivate">
  2102. <![CDATA[
  2103. //접수 후 수정불가
  2104. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  2105. messageBox("이미 접수되어 저장 또는 수정", "E001");
  2106. return;
  2107. }
  2108. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  2109. if ( reptseqno != '') {
  2110. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  2111. }
  2112. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  2113. /* var instcd = model.getValue("/root/send/savedata/instcd");
  2114. if ( instcd == '' ) {
  2115. messageBox("병원을 ", "C002");
  2116. }*/
  2117. submit("TXIRB00104");
  2118. } else {
  2119. submit("TXIRB00103");
  2120. }
  2121. model.refresh();
  2122. parent.btn_report5.selected = true;
  2123. parent.btn_report5.dispatch("DOMActivate");
  2124. ]]>
  2125. </script>
  2126. </button>
  2127. <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:615px; top:10px; width:64px; height:19px; ">
  2128. <caption>첨부삭제</caption>
  2129. <script type="javascript" ev:event="DOMActivate">
  2130. <![CDATA[
  2131. //접수 후 수정불가
  2132. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  2133. messageBox("이미 접수되어 저장 또는 수정", "E001");
  2134. return;
  2135. } else {
  2136. if (submit("TXIRS00198")) {
  2137. messageBox("첨부파일이 삭제되었습니다.","I999");
  2138. model.refresh();
  2139. }
  2140. }
  2141. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  2142. submit("TRIRB00104"); //결과보고서 내용 조회
  2143. submit("TRIMR00101"); //변경내용요약 조회
  2144. }
  2145. ]]>
  2146. </script>
  2147. </button>
  2148. <group id="group2" style="left:5px; top:295px; width:1055px; height:625px; border-color:#ff0000; border-style:solid; ">
  2149. <input id="input6" ref="/root/main/updtsubj/item/roothospidxcasecnt" class="input_default" navindex="16" maxlength="5" format="(-)#,###" style="left:296px; top:104px; width:224px; height:19px; "/>
  2150. <input id="input5" ref="/root/main/updtsubj/item/documngtamt" class="input_default" navindex="18" maxlength="12" format="(-)#,###" style="left:816px; top:104px; width:224px; height:19px; ">
  2151. <script type="javascript" ev:event="onmousedown">
  2152. <![CDATA[
  2153. // ***** kjw추가 (2010.01.13) *****
  2154. if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0) {
  2155. messageBox("이미 책정된 [문서보관비]가 있으므로 [연구비 담당자]에게 문의하시기 바랍니다.\n전화번호 : 02-2258-7857", "I999");
  2156. return;
  2157. }
  2158. // ***** 2010.01.13 *****
  2159. ]]>
  2160. </script>
  2161. <script type="javascript" ev:event="onkeyup">
  2162. <![CDATA[
  2163. if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0) {
  2164. input5.value= "";
  2165. inputEnterKey("input5", "xforms-value-changed");
  2166. return false;
  2167. }
  2168. ]]>
  2169. </script>
  2170. </input>
  2171. <caption id="caption29" class="cell_1" style="left:525px; top:102px; width:100px; height:23px; text-align:center; vertical-align:middle; ">약제관리비</caption>
  2172. <input id="input4" ref="/root/main/updtsubj/item/drugmngtamt" class="input_default" navindex="17" maxlength="12" format="(-)#,###" style="left:629px; top:104px; width:100px; height:19px; ">
  2173. <script type="javascript" ev:event="onmousedown">
  2174. <![CDATA[
  2175. // ***** kjw추가 (2010.01.13) *****
  2176. if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0) {
  2177. messageBox("이미 책정된 [약제관리비]가 있으므로 [연구비 담당자]에게 문의하시기 바랍니다.\n전화번호 : 02-2258-7857", "I999");
  2178. return;
  2179. }
  2180. // ***** 2010.01.13 *****
  2181. ]]>
  2182. </script>
  2183. <script type="javascript" ev:event="onkeyup">
  2184. <![CDATA[
  2185. if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0) {
  2186. input4.value= "";
  2187. inputEnterKey("input4", "xforms-value-changed");
  2188. return false;
  2189. }
  2190. ]]>
  2191. </script>
  2192. </input>
  2193. <caption id="caption28" class="cell_1" style="left:213px; top:102px; width:79px; height:23px; text-align:center; vertical-align:middle; ">본원목표례수</caption>
  2194. <caption id="caption27" class="cell_1" style="left:5px; top:102px; width:106px; height:23px; text-align:center; vertical-align:middle; ">전체증례수</caption>
  2195. <caption id="caption30" class="cell_1" style="left:733px; top:102px; width:79px; height:23px; text-align:center; vertical-align:middle; ">문서보관비</caption>
  2196. <input id="input7" ref="/root/main/updtsubj/item/allidxcase" class="input_default" navindex="15" maxlength="20" format="(-)#,###" style="left:115px; top:104px; width:94px; height:19px; "/>
  2197. <input id="ipt_verupdtresn1" ref="/root/main/updtsubj/item/verupdtresn1" class="input_default" navindex="20" maxlength="100" style="left:296px; top:130px; width:224px; height:19px; "/>
  2198. <button id="button1" class="btn2_letter3" _auth="X" style="left:409px; top:498px; width:53px; height:19px; ">
  2199. <caption>행추가</caption>
  2200. <script type="javascript" ev:event="DOMActivate">
  2201. <![CDATA[
  2202. if ( grd_perchgr.rows < 3 ) {
  2203. grd_perchgr.addRow(true, true);
  2204. grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
  2205. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  2206. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  2207. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/reptkind", "5");
  2208. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userkind", "5"); //5=담당자
  2209. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "I");
  2210. } else {
  2211. messageBox("행추가를 하실 수 없습니다.", "I999");
  2212. return;
  2213. }
  2214. ]]>
  2215. </script>
  2216. </button>
  2217. <input id="ipt_verupdtresn2" ref="/root/main/updtsubj/item/verupdtresn2" class="input_default" navindex="24" maxlength="100" style="left:296px; top:155px; width:224px; height:19px; "/>
  2218. <button id="button2" class="btn2_letter3" _auth="X" style="left:464px; top:498px; width:53px; height:19px; ">
  2219. <caption>행삭제</caption>
  2220. <script type="javascript" ev:event="DOMActivate">
  2221. <![CDATA[
  2222. if (grd_perchgr.selectedRows == 0)
  2223. {
  2224. messageBox("삭제할 행을 선택하여 주세요", "I999");
  2225. return;
  2226. }
  2227. else
  2228. {
  2229. if ( model.getValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag")=="I"){
  2230. grd_perchgr.deleterow(grd_perchgr.row);
  2231. } else {
  2232. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "D");
  2233. }
  2234. }
  2235. ]]>
  2236. </script>
  2237. </button>
  2238. <caption id="caption50" class="cell_1" style="left:525px; top:180px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2239. <input id="ipt_verupdtresn3" ref="/root/main/updtsubj/item/verupdtresn3" class="input_default" navindex="22" maxlength="100" style="left:816px; top:129px; width:224px; height:19px; "/>
  2240. <line id="line20" class="line_3" style="x1:525px; y1:358px; x2:1040px; y2:358px; "/>
  2241. <caption id="caption51" class="cell_1" style="left:213px; top:128px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2242. <input id="ipt_verupdtresn4" ref="/root/main/updtsubj/item/verupdtresn4" class="input_default" navindex="26" maxlength="100" style="left:816px; top:155px; width:224px; height:19px; "/>
  2243. <input id="ipt_verib" ref="/root/main/updtsubj/item/verib" class="input_default" navindex="25" maxlength="50" style="left:629px; top:155px; width:100px; height:19px; ">
  2244. <script type="javascript" ev:event="onclick">
  2245. <![CDATA[
  2246. // 2010.06.30 추가
  2247. if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/verib") == "")
  2248. messageBox("IB 항목을 입력하세요", "I999");
  2249. ]]>
  2250. </script>
  2251. </input>
  2252. <line id="line21" class="line_1" style="x1:5px; y1:386px; x2:520px; y2:386px; "/>
  2253. <button id="btn_rowadd2" class="btn2_letter3" _auth="X" style="left:930px; top:229px; width:53px; height:19px; ">
  2254. <caption>행추가</caption>
  2255. <script type="javascript" ev:event="DOMActivate">
  2256. <![CDATA[
  2257. grd_comn.addRow(true, true);
  2258. grd_comn.colDisabled(grd_comn.colRef("updtflag"))=true;
  2259. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  2260. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  2261. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
  2262. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
  2263. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
  2264. model.refresh();
  2265. ]]>
  2266. </script>
  2267. </button>
  2268. <caption id="caption40" class="cell_1" style="left:213px; top:154px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2269. <caption id="caption52" class="cell_1" style="left:213px; top:76px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2270. <button id="btn_rowadd3" class="btn2_letter3" _auth="X" style="left:409px; top:364px; width:53px; height:19px; ">
  2271. <caption>행추가</caption>
  2272. <script type="javascript" ev:event="DOMActivate">
  2273. <![CDATA[
  2274. grd_codi.addRow(true, true);
  2275. grd_codi.colDisabled(grd_codi.colRef("updtflag"))=true;
  2276. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  2277. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  2278. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/reptkind", "5");
  2279. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/userkind", "3"); //3=코디네이터
  2280. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "I");
  2281. model.refresh();
  2282. ]]>
  2283. </script>
  2284. </button>
  2285. <caption id="caption41" class="cell_1" style="left:525px; top:128px; width:100px; height:23px; text-align:center; vertical-align:middle; ">CRF Version</caption>
  2286. <input id="ipt_verplan" ref="/root/main/updtsubj/item/verplan" class="input_default" navindex="19" maxlength="100" style="left:115px; top:130px; width:94px; height:19px; ">
  2287. <script type="javascript" ev:event="onclick">
  2288. <![CDATA[
  2289. // 2010.06.30 추가
  2290. if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/verplan") == "")
  2291. messageBox("계획서 항목을 입력하세요", "I999");
  2292. ]]>
  2293. </script>
  2294. </input>
  2295. <caption id="caption53" class="cell_1" style="left:325px; top:50px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2296. <button id="btn_rowadd4" class="btn2_letter3" _auth="X" style="left:409px; top:229px; width:53px; height:19px; ">
  2297. <caption>행추가</caption>
  2298. <script type="javascript" ev:event="DOMActivate">
  2299. <![CDATA[
  2300. grd_drug.addRow(false);
  2301. grd_drug.colDisabled(grd_drug.colRef("bankcd"))=true;
  2302. grd_drug.colDisabled(grd_drug.colRef("updtflag"))=true;
  2303. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  2304. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  2305. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/reptkind", "5");
  2306. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/userkind", "4"); //4=관리약사
  2307. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "I");
  2308. model.refresh();
  2309. ]]>
  2310. </script>
  2311. </button>
  2312. <caption id="caption42" class="tit_2" style="left:530px; top:235px; width:108px; height:13px; ">공동연구자등록</caption>
  2313. <caption id="caption1" class="tit_2" style="left:5px; top:505px; width:113px; height:13px; ">의뢰담당자 변경</caption>
  2314. <caption id="caption43" class="tit_2" style="left:5px; top:371px; width:108px; height:13px; ">코디네이터등록</caption>
  2315. <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; "/>
  2316. <caption id="caption44" class="tit_2" style="left:5px; top:235px; width:100px; height:13px; ">관리약사등록</caption>
  2317. <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; "/>
  2318. <caption id="caption45" class="cell_1" style="left:525px; top:154px; width:100px; height:23px; text-align:center; vertical-align:middle; ">IB Version</caption>
  2319. <line id="line15" class="line_1" style="x1:5px; y1:45px; x2:1040px; y2:45px; "/>
  2320. <caption id="caption46" class="cell_1" style="left:5px; top:180px; width:106px; height:23px; text-align:center; vertical-align:middle; ">과제명</caption>
  2321. <line id="line16" class="line_3" style="x1:5px; y1:493px; x2:520px; y2:493px; "/>
  2322. <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; ">
  2323. <script type="javascript" ev:event="xforms-value-changed">
  2324. <![CDATA[
  2325. var direccost = Math.ceil(model.getValue("/root/main/updtsubj/item/direccost") * 0.1) *10;
  2326. // alert(direccost);
  2327. model.setValue("/root/main/updtsubj/item/direccost", direccost);
  2328. //ceiling( /root/main/updtsubj/item/direccost * 0.1) * 10
  2329. model.refresh();
  2330. ]]>
  2331. </script>
  2332. </input>
  2333. <caption id="caption35" class="tit_2" style="left:5px; top:30px; width:158px; height:13px; ">변경내용요약</caption>
  2334. <line id="line1" class="line_1" style="x1:5px; y1:520px; x2:520px; y2:520px; "/>
  2335. <input id="ipt_nmupdtresn" ref="/root/main/updtsubj/item/nmupdtresn" class="input_default" navindex="28" maxlength="100" style="left:629px; top:181px; width:411px; height:19px; "/>
  2336. <caption id="caption47" style="left:212px; top:55px; width:15px; height:20px; ">~</caption>
  2337. <line id="line17" class="line_1" style="x1:5px; y1:250px; x2:520px; y2:250px; "/>
  2338. <button id="btn_rowdel2" class="btn2_letter3" _auth="X" style="left:985px; top:229px; width:53px; height:19px; ">
  2339. <caption>행삭제</caption>
  2340. <script type="javascript" ev:event="DOMActivate">
  2341. <![CDATA[
  2342. if (grd_comn.selectedRows == 0)
  2343. {
  2344. messageBox("삭제할 행을 선택하여 주세요", "I999");
  2345. return;
  2346. }
  2347. else
  2348. {
  2349. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag")=="I"){
  2350. grd_comn.deleterow(grd_comn.row);
  2351. } else {
  2352. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "D");
  2353. }
  2354. }
  2355. model.refresh();
  2356. ]]>
  2357. </script>
  2358. </button>
  2359. <caption id="caption36" class="cell_1" style="left:5px; top:50px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구기간</caption>
  2360. <caption id="caption15" class="cell_1" style="left:428px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">센터간접비(5%)</caption>
  2361. <line id="line2" class="line_3" style="x1:5px; y1:619px; x2:520px; y2:619px; "/>
  2362. <caption id="caption48" class="cell_1" style="left:733px; top:128px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2363. <line id="line18" class="line_1" style="x1:525px; y1:250px; x2:1040px; y2:250px; "/>
  2364. <button id="btn_rowdel3" class="btn2_letter3" _auth="X" style="left:464px; top:364px; width:53px; height:19px; ">
  2365. <caption>행삭제</caption>
  2366. <script type="javascript" ev:event="DOMActivate">
  2367. <![CDATA[
  2368. if (grd_codi.selectedRows == 0)
  2369. {
  2370. messageBox("삭제할 행을 선택하여 주세요", "I999");
  2371. return;
  2372. }
  2373. else
  2374. {
  2375. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag")=="I"){
  2376. grd_codi.deleterow(grd_codi.row);
  2377. } else {
  2378. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "D");
  2379. }
  2380. }
  2381. model.refresh();
  2382. ]]>
  2383. </script>
  2384. </button>
  2385. <caption id="caption37" class="cell_1" style="left:5px; top:76px; width:106px; height:23px; text-align:center; vertical-align:middle; ">직접비(100%)</caption>
  2386. <caption id="caption16" class="cell_1" style="left:632px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">병원간접비(10%)</caption>
  2387. <caption id="caption7" class="cell_1" style="left:835px; top:75px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구비총액(115%)</caption>
  2388. <caption id="caption49" class="cell_1" style="left:733px; top:154px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
  2389. <line id="line19" class="line_3" style="x1:5px; y1:358px; x2:520px; y2:358px; "/>
  2390. <button id="btn_rowdel4" class="btn2_letter3" _auth="X" style="left:464px; top:229px; width:53px; height:19px; ">
  2391. <caption>행삭제</caption>
  2392. <script type="javascript" ev:event="DOMActivate">
  2393. <![CDATA[
  2394. if (grd_drug.selectedRows == 0)
  2395. {
  2396. messageBox("삭제할 행을 선택하여 주세요", "I999");
  2397. return;
  2398. }
  2399. else
  2400. {
  2401. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag")=="I"){
  2402. grd_drug.deleterow(grd_drug.row);
  2403. } else {
  2404. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "D");
  2405. }
  2406. }
  2407. model.refresh();
  2408. ]]>
  2409. </script>
  2410. </button>
  2411. <caption id="caption38" class="cell_1" style="left:5px; top:128px; width:106px; height:23px; text-align:center; vertical-align:middle; ">계획서Version</caption>
  2412. <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; "/>
  2413. <input id="ipt_vercrf" ref="/root/main/updtsubj/item/vercrf" class="input_default" navindex="21" maxlength="100" style="left:629px; top:129px; width:100px; height:19px; ">
  2414. <script type="javascript" ev:event="onclick">
  2415. <![CDATA[
  2416. // 2010.06.30 추가
  2417. if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/vercrf") == "")
  2418. messageBox("CRF 항목을 입력하세요", "I999");
  2419. ]]>
  2420. </script>
  2421. </input>
  2422. <caption id="caption39" class="cell_1" style="left:5px; top:154px; width:106px; height:23px; text-align:center; vertical-align:middle; ">동의서Version</caption>
  2423. <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; "/>
  2424. <input id="ipt_veraprv" ref="/root/main/updtsubj/item/veraprv" class="input_default" navindex="23" maxlength="100" style="left:115px; top:155px; width:94px; height:19px; ">
  2425. <script type="javascript" ev:event="onclick">
  2426. <![CDATA[
  2427. // 2010.06.30 추가
  2428. if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/veraprv") == "")
  2429. messageBox("동의서 항목을 입력하세요", "I999");
  2430. ]]>
  2431. </script>
  2432. </input>
  2433. <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; "/>
  2434. <input id="ipt_subjnm" ref="/root/main/updtsubj/item/subjnm" class="input_default" navindex="27" style="left:115px; top:181px; width:405px; height:19px; "/>
  2435. <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; "/>
  2436. <input id="ipt_costupdtresn" ref="/root/main/updtsubj/item/costupdtresn" class="input_default" navindex="14" maxlength="100" style="left:296px; top:78px; width:128px; height:19px; "/>
  2437. <button id="button25" class="btn2_letter8" visibility="hidden" _auth="R" style="left:820px; top:229px; width:108px; height:19px; ">
  2438. <caption>신규외부연구등록</caption>
  2439. <script type="javascript" ev:event="DOMActivate">
  2440. <![CDATA[
  2441. /* model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/usernm", getParameter("insusernm"));
  2442. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/deptnm", getParameter("insposnm"));
  2443. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/jobposnm", getParameter("insjobposnm"));
  2444. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/workplceaddr", getParameter("insworkplceaddr"));
  2445. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/mpphonno", getParameter("inscmpytelno"));
  2446. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/email", getParameter("insemail"));
  2447. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/bankcd", getParameter("insbankcd"));
  2448. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/acntno", getParameter("insacntno"));
  2449. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/depor", getParameter("insdepor"));
  2450. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/cmt", getParameter("inscmt"));
  2451. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/subjid", model.getValue("/root/send/searchitem/subjid"));
  2452. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/instcd", getParameter("insinstcd"));
  2453. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userid", getParameter("insuserid"));
  2454. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/rrgstno", getParameter("insrrgstno"));
  2455. model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userseqno", getParameter("insuserseqno"));
  2456. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
  2457. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
  2458. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I"); */
  2459. clearParameter("instcd");
  2460. clearParameter("target");
  2461. clearParameter("userflag");
  2462. setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
  2463. setParameter("target","respo");
  2464. setParameter("userflag","2");
  2465. window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2466. ]]>
  2467. </script>
  2468. </button>
  2469. <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; "/>
  2470. <caption id="caption54" class="cell_1" visibility="hidden" style="left:519px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">연구비총액</caption>
  2471. <caption id="caption55" class="cell_1" visibility="hidden" style="left:692px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">센타간접비</caption>
  2472. <caption id="caption56" class="cell_1" visibility="hidden" style="left:866px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">병원간접비</caption>
  2473. <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; "/>
  2474. <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; "/>
  2475. <caption id="caption20" style="left:114px; top:9px; width:908px; height:20px; font-weight:bold; color:#cc3300; ">※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우 "반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."</caption>
  2476. <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:255px; width:515px; height:100px; ">
  2477. <col disabled="true" ref="updtflag" type="combo">
  2478. <choices>
  2479. <item>
  2480. <label/>
  2481. <value>-</value>
  2482. </item>
  2483. <item>
  2484. <label>추가</label>
  2485. <value>I</value>
  2486. </item>
  2487. <item>
  2488. <label>수정</label>
  2489. <value>U</value>
  2490. </item>
  2491. <item>
  2492. <label>삭제</label>
  2493. <value>D</value>
  2494. </item>
  2495. </choices>
  2496. </col>
  2497. <col editable="false" ref="usernm" type="inputbutton"/>
  2498. <col ref="rrgstno" visibility="hidden"/>
  2499. <col ref="deptnm" type="output"/>
  2500. <col ref="jobposnm" type="output"/>
  2501. <col ref="workplceaddr" type="input"/>
  2502. <col ref="mpphonno" type="input"/>
  2503. <col ref="email" type="input"/>
  2504. <col class="gridcombo" ref="bankcd" type="combo">
  2505. <choices>
  2506. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2507. <label ref="cdnm"/>
  2508. <value ref="cdid"/>
  2509. </itemset>
  2510. </choices>
  2511. </col>
  2512. <col ref="acntno" type="input"/>
  2513. <col ref="depor" type="input"/>
  2514. <col ref="instcd" visibility="hidden"/>
  2515. <col ref="subjid" visibility="hidden"/>
  2516. <col ref="reptseqno" visibility="hidden"/>
  2517. <col ref="reptkind" visibility="hidden"/>
  2518. <col ref="userid" visibility="hidden"/>
  2519. <col ref="userkind" visibility="hidden"/>
  2520. <col ref="cmt" visibility="hidden"/>
  2521. <col ref="userseqno" visibility="hidden"/>
  2522. <script type="javascript" ev:event="onbuttonclick">
  2523. <![CDATA[
  2524. if ( grd_comn.col == grd_comn.colRef("usernm") ) {
  2525. setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2526. setParameter("target","resp");
  2527. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2528. setParameter("usernm", "");
  2529. setParameter("userid", "");
  2530. setParameter("hospnm", "");
  2531. setParameter("jobposnm", "");
  2532. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2533. if ( getParameter("usernm") != '' ) {
  2534. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/usernm", getParameter("usernm"));
  2535. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/userid", getParameter("userid"));
  2536. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/deptnm", getParameter("deptnm"));
  2537. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/jobposnm", getParameter("jobposnm"));
  2538. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/workplceaddr", getParameter("workplceaddr"));
  2539. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/mpphonno", getParameter("cmpytelno"));
  2540. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/email", getParameter("email"));
  2541. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/bankcd", getParameter("bankcd"));
  2542. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/acntno", getParameter("acntno"));
  2543. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/depor", getParameter("depor"));
  2544. model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/rrgstno", getParameter("rrgstno"));
  2545. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == "-" ) {
  2546. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
  2547. }
  2548. }
  2549. //grd_comn.isReadOnly(grd_comn.colRef("usernm"), grd_comn.row)=true;
  2550. grd_comn.refresh();
  2551. setParameter("usernm", "");
  2552. setParameter("userid", "");
  2553. setParameter("deptnm", "");
  2554. setParameter("jobposnm", "");
  2555. setParameter("workplceaddr", "");
  2556. setParameter("cmpytelno", "");
  2557. setParameter("email", "");
  2558. setParameter("bankcd", "");
  2559. setParameter("acntno", "");
  2560. setParameter("depor", "");
  2561. setParameter("rrgstno", "");
  2562. //var rownum = grd_mealprcpcd.row - 1;
  2563. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2564. // grd_drug.addStatus(grd_drug.row, "update");
  2565. }
  2566. ]]>
  2567. </script>
  2568. <script type="javascript" ev:event="onclick">
  2569. <![CDATA[
  2570. grd_comn.editCell();
  2571. ]]>
  2572. </script>
  2573. <script type="javascript" ev:event="xforms-value-changed">
  2574. <![CDATA[
  2575. if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == '-' ) {
  2576. model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
  2577. model.refresh();
  2578. }
  2579. ]]>
  2580. </script>
  2581. </datagrid>
  2582. <datagrid id="grd_codi" nodeset="/root/main/updtsubj/codi" caption="상태^성명^주민번호^소속^직위^주소^연락처^이메일^은행^계좌번호^예금주^병원코드^과제ID^reptseqno^reptkind^userid^userkind^cmt^userseqno" colsep="^" colwidth="55, 100, 113, 100, 100, 231, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:391px; width:515px; height:100px; ">
  2583. <col disabled="true" ref="updtflag" type="combo">
  2584. <choices>
  2585. <item>
  2586. <label/>
  2587. <value>-</value>
  2588. </item>
  2589. <item>
  2590. <label>추가</label>
  2591. <value>I</value>
  2592. </item>
  2593. <item>
  2594. <label>수정</label>
  2595. <value>U</value>
  2596. </item>
  2597. <item>
  2598. <label>삭제</label>
  2599. <value>D</value>
  2600. </item>
  2601. </choices>
  2602. </col>
  2603. <col editable="false" ref="usernm" type="inputbutton"/>
  2604. <col ref="rrgstno" type="input" visibility="hidden" format="999999-9999999"/>
  2605. <col ref="deptnm" type="output"/>
  2606. <col ref="jobposnm" type="output"/>
  2607. <col ref="workplceaddr" type="input"/>
  2608. <col ref="mpphonno" type="input"/>
  2609. <col ref="email" type="input"/>
  2610. <col class="gridcombo" ref="bankcd" type="combo">
  2611. <choices>
  2612. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2613. <label ref="cdnm"/>
  2614. <value ref="cdid"/>
  2615. </itemset>
  2616. </choices>
  2617. </col>
  2618. <col ref="acntno" type="input"/>
  2619. <col ref="depor" type="input"/>
  2620. <col ref="instcd" visibility="hidden"/>
  2621. <col ref="subjid" visibility="hidden"/>
  2622. <col ref="reptseqno" visibility="hidden"/>
  2623. <col ref="reptkind" visibility="hidden"/>
  2624. <col ref="userid" visibility="hidden"/>
  2625. <col ref="userkind" visibility="hidden"/>
  2626. <col ref="cmt" visibility="hidden"/>
  2627. <col ref="userseqno" visibility="hidden"/>
  2628. <script type="javascript" ev:event="onbuttonclick">
  2629. <![CDATA[
  2630. if ( grd_codi.col == grd_codi.colRef("usernm") ) {
  2631. setParameter("userkind", "3"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2632. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2633. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2634. if ( getParameter("usernm") != '' ) {
  2635. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/usernm", getParameter("usernm"));
  2636. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/userid", getParameter("userid"));
  2637. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/deptnm", getParameter("hospnm"));
  2638. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/jobposnm", getParameter("jobposnm"));
  2639. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/workplceaddr", getParameter("workplceaddr"));
  2640. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/mpphonno", getParameter("cmpytelno"));
  2641. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/email", getParameter("email"));
  2642. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/bankcd", getParameter("bankcd"));
  2643. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/acntno", getParameter("acntno"));
  2644. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/depor", getParameter("depor"));
  2645. model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/rrgstno", getParameter("rrgstno"));
  2646. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == "-" ) {
  2647. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
  2648. }
  2649. }
  2650. //grd_codi.isReadOnly(grd_codi.colRef("usernm"), grd_codi.row)=true;
  2651. grd_codi.refresh();
  2652. setParameter("usernm", "");
  2653. setParameter("userid", "");
  2654. setParameter("deptnm", "");
  2655. setParameter("jobposnm", "");
  2656. setParameter("workplceaddr", "");
  2657. setParameter("cmpytelno", "");
  2658. setParameter("email", "");
  2659. setParameter("bankcd", "");
  2660. setParameter("acntno", "");
  2661. setParameter("depor", "");
  2662. setParameter("rrgstno", "");
  2663. //var rownum = grd_mealprcpcd.row - 1;
  2664. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2665. // grd_drug.addStatus(grd_drug.row, "update");
  2666. }
  2667. ]]>
  2668. </script>
  2669. <script type="javascript" ev:event="onclick">
  2670. <![CDATA[
  2671. grd_codi.editCell();
  2672. ]]>
  2673. </script>
  2674. <script type="javascript" ev:event="xforms-value-changed">
  2675. <![CDATA[
  2676. if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == '-' ) {
  2677. model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
  2678. model.refresh();
  2679. }
  2680. ]]>
  2681. </script>
  2682. </datagrid>
  2683. <datagrid id="grd_drug" nodeset="/root/main/updtsubj/drug" caption="상태^성명^주민번호^userseqno^연락처^이메일^소속^직위^주소^은행^계좌번호^예금주^instcd^subjid^reptseqno^reptkind^userid^userkind^cmt^userseqno" colsep="^" colwidth="56, 100, 44, 33, 75, 100, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:255px; width:515px; height:100px; ">
  2684. <col disabled="true" ref="updtflag" type="combo">
  2685. <choices>
  2686. <item>
  2687. <label/>
  2688. <value>-</value>
  2689. </item>
  2690. <item>
  2691. <label>추가</label>
  2692. <value>I</value>
  2693. </item>
  2694. <item>
  2695. <label>수정</label>
  2696. <value>U</value>
  2697. </item>
  2698. <item>
  2699. <label>삭제</label>
  2700. <value>D</value>
  2701. </item>
  2702. </choices>
  2703. </col>
  2704. <col ref="usernm" type="inputbutton"/>
  2705. <col ref="rrgstno" visibility="hidden"/>
  2706. <col ref="userseqno" visibility="hidden"/>
  2707. <col ref="mpphonno" type="output"/>
  2708. <col ref="email" type="output"/>
  2709. <col ref="deptnm" type="output"/>
  2710. <col ref="jobposnm" type="output"/>
  2711. <col ref="workplceaddr" type="output"/>
  2712. <col class="gridcombo" disabled="true" ref="bankcd" type="combo">
  2713. <choices>
  2714. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2715. <label ref="cdnm"/>
  2716. <value ref="cdid"/>
  2717. </itemset>
  2718. </choices>
  2719. </col>
  2720. <col ref="acntno" type="output"/>
  2721. <col ref="depor" type="output"/>
  2722. <col ref="instcd" visibility="hidden"/>
  2723. <col ref="subjid" visibility="hidden"/>
  2724. <col ref="reptseqno" visibility="hidden"/>
  2725. <col ref="reptkind" visibility="hidden"/>
  2726. <col ref="userid" visibility="hidden"/>
  2727. <col ref="userkind" visibility="hidden"/>
  2728. <col ref="cmt" visibility="hidden"/>
  2729. <script type="javascript" ev:event="onbuttonclick">
  2730. <![CDATA[
  2731. if ( grd_drug.col == grd_drug.colRef("usernm") ) {
  2732. setParameter("userkind", "4"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2733. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2734. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","code", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2735. //clearParameter("reqinstcd");
  2736. if ( getParameter("usernm") != '' ) {
  2737. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/usernm", getParameter("usernm"));
  2738. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/userid", getParameter("userid"));
  2739. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/deptnm", getParameter("deptnm"));
  2740. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/jobposnm", getParameter("jobposnm"));
  2741. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/workplceaddr", getParameter("workplceaddr"));
  2742. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/mpphonno", getParameter("cmpytelno"));
  2743. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/email", getParameter("email"));
  2744. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/bankcd", getParameter("bankcd"));
  2745. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/acntno", getParameter("acntno"));
  2746. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/depor", getParameter("depor"));
  2747. model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/rrgstno", getParameter("rrgstno"));
  2748. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == "-" ) {
  2749. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
  2750. }
  2751. }
  2752. //grd_drug.isReadOnly(grd_drug.colRef("usernm"), grd_drug.row)=true;
  2753. grd_drug.refresh();
  2754. setParameter("usernm", "");
  2755. setParameter("userid", "");
  2756. setParameter("deptnm", "");
  2757. setParameter("jobposnm", "");
  2758. setParameter("workplceaddr", "");
  2759. setParameter("cmpytelno", "");
  2760. setParameter("email", "");
  2761. setParameter("bankcd", "");
  2762. setParameter("acntno", "");
  2763. setParameter("depor", "");
  2764. setParameter("rrgstno", "");
  2765. //var rownum = grd_mealprcpcd.row - 1;
  2766. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2767. // grd_drug.addStatus(grd_drug.row, "update");
  2768. }
  2769. ]]>
  2770. </script>
  2771. <script type="javascript" ev:event="onclick">
  2772. <![CDATA[
  2773. if(grd_drug.col == grd_drug.colRef("usernm")){
  2774. //grd_drug.editCell();
  2775. grd_drug.colAttribute(grd_drug.colRef("usernm"),"editable")="false";
  2776. }
  2777. ]]>
  2778. </script>
  2779. <script type="javascript" ev:event="xforms-value-changed">
  2780. <![CDATA[
  2781. if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == '-' ) {
  2782. model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
  2783. model.refresh();
  2784. }
  2785. ]]>
  2786. </script>
  2787. </datagrid>
  2788. <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:525px; width:515px; height:89px; ">
  2789. <col disabled="true" ref="updtflag" type="combo">
  2790. <choices>
  2791. <item>
  2792. <label/>
  2793. <value>-</value>
  2794. </item>
  2795. <item>
  2796. <label>추가</label>
  2797. <value>I</value>
  2798. </item>
  2799. <item>
  2800. <label>수정</label>
  2801. <value>U</value>
  2802. </item>
  2803. <item>
  2804. <label>삭제</label>
  2805. <value>D</value>
  2806. </item>
  2807. </choices>
  2808. </col>
  2809. <col editable="false" ref="usernm" type="inputbutton"/>
  2810. <col ref="rrgstno" visibility="hidden"/>
  2811. <col ref="userseqno" visibility="hidden"/>
  2812. <col ref="deptnm" type="input"/>
  2813. <col ref="jobposnm" type="input"/>
  2814. <col ref="mpphonno" type="input"/>
  2815. <col ref="email" type="input"/>
  2816. <col ref="bankcd" type="combo" visibility="hidden">
  2817. <choices>
  2818. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  2819. <label ref="cdnm"/>
  2820. <value ref="cdid"/>
  2821. </itemset>
  2822. </choices>
  2823. </col>
  2824. <col ref="acntno" type="input" visibility="hidden"/>
  2825. <col ref="depor" type="input" visibility="hidden"/>
  2826. <col ref="instcd" visibility="hidden"/>
  2827. <col ref="subjid" visibility="hidden"/>
  2828. <col ref="reptseqno" visibility="hidden"/>
  2829. <col ref="reptkind" visibility="hidden"/>
  2830. <col ref="userid" visibility="hidden"/>
  2831. <col ref="userkind" visibility="hidden"/>
  2832. <col ref="cmt" visibility="hidden"/>
  2833. <col ref="workplceaddr" visibility="hidden"/>
  2834. <script type="javascript" ev:event="onbuttonclick">
  2835. <![CDATA[
  2836. if ( grd_perchgr.col == grd_perchgr.colRef("usernm") ) {
  2837. if ( model.getValue("/root/send/searchitem/croinstcd") != '' ) {
  2838. var reqinstcd = model.getValue("/root/send/searchitem/croinstcd");
  2839. } else {
  2840. var reqinstcd = model.getValue("/root/send/searchitem/reqinstcd");
  2841. }
  2842. setParameter("reqinstcd",reqinstcd);
  2843. window.load("../../../crc/comsubjweb/xrw/SMIMR00300_담당자조회팝업.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2844. /*
  2845. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userid", getParameter("perchgrid"));
  2846. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/usernm", getParameter("nm"));
  2847. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno1", getParameter("rrgstno").substr(0,6));
  2848. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno2", getParameter("rrgstno").substr(6,7));
  2849. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/deptnm", getParameter("posnm"));
  2850. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/jobposnm", getParameter("jobposnm"));
  2851. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/email", getParameter("email"));
  2852. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/mpphonno", getParameter("cntctelno"));
  2853. */
  2854. if ( getParameter("nm") != '' ) {
  2855. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/usernm", getParameter("nm"));
  2856. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/userid", getParameter("perchgrid"));
  2857. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/deptnm", getParameter("posnm"));
  2858. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/jobposnm", getParameter("jobposnm"));
  2859. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/workplceaddr", getParameter("workplceaddr"));
  2860. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/mpphonno", getParameter("cntctelno"));
  2861. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/email", getParameter("email"));
  2862. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/bankcd", getParameter("bankcd"));
  2863. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/acntno", getParameter("acntno"));
  2864. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/depor", getParameter("depor"));
  2865. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/rrgstno", getParameter("rrgstno"));
  2866. if ( model.getValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag") == "-" ) {
  2867. model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "U");
  2868. }
  2869. }
  2870. setParameter("reqinstcd", "");
  2871. grd_perchgr.refresh();
  2872. //var rownum = grd_mealprcpcd.row - 1;
  2873. // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
  2874. // grd_drug.addStatus(grd_drug.row, "update");
  2875. }
  2876. ]]>
  2877. </script>
  2878. <script type="javascript" ev:event="onclick">
  2879. <![CDATA[
  2880. grd_perchgr.editCell();
  2881. ]]>
  2882. </script>
  2883. <script type="javascript" ev:event="xforms-value-changed">
  2884. <![CDATA[
  2885. if ( model.getValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag") == '-' ) {
  2886. model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag", "U");
  2887. }
  2888. model.refresh();
  2889. ]]>
  2890. </script>
  2891. </datagrid>
  2892. <caption id="caption22" visibility="hidden" style="left:119px; top:369px; width:320px; height:20px; font-size:8pt; font-weight:bold; color:#0000ff; ">※ 코디네이터는 모든 항목이 필수 입력 항목입니다.</caption>
  2893. <caption id="caption23" style="left:119px; top:27px; width:410px; height:20px; font-weight:bold; color:#339933; ">* 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오.</caption>
  2894. <caption id="caption24" class="tit_2" style="left:530px; top:371px; width:113px; height:13px; ">책임연구자 변경</caption>
  2895. <line id="line4" class="line_1" style="x1:525px; y1:386px; x2:1040px; y2:386px; "/>
  2896. <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" rowheader="update" rowsep="|" style="left:525px; top:391px; width:515px; height:100px; ">
  2897. <col disabled="true" ref="updtflag" type="combo">
  2898. <choices>
  2899. <item>
  2900. <label/>
  2901. <value>-</value>
  2902. </item>
  2903. <item>
  2904. <label>추가</label>
  2905. <value>I</value>
  2906. </item>
  2907. <item>
  2908. <label>수정</label>
  2909. <value>U</value>
  2910. </item>
  2911. <item>
  2912. <label>삭제</label>
  2913. <value>D</value>
  2914. </item>
  2915. </choices>
  2916. </col>
  2917. <col editable="false" ref="usernm" type="inputbutton"/>
  2918. <col ref="rrgstno" visibility="hidden"/>
  2919. <col ref="deptnm"/>
  2920. <col ref="jobposnm"/>
  2921. <col ref="workplceaddr"/>
  2922. <col ref="mpphonno"/>
  2923. <col ref="email"/>
  2924. <col ref="bankcd"/>
  2925. <col ref="acntno"/>
  2926. <col ref="depor"/>
  2927. <col ref="instcd" visibility="hidden"/>
  2928. <col ref="subjid" visibility="hidden"/>
  2929. <col ref="reptseqno" visibility="hidden"/>
  2930. <col ref="reptkind" visibility="hidden"/>
  2931. <col ref="userid"/>
  2932. <col ref="userkind" visibility="hidden"/>
  2933. <script type="javascript" ev:event="onbuttonclick">
  2934. <![CDATA[
  2935. if ( grd_reser.col == grd_reser.colRef("usernm") ) {
  2936. setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
  2937. setParameter("target","resp");
  2938. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  2939. setParameter("usernm", "");
  2940. setParameter("userid", "");
  2941. setParameter("hospnm", "");
  2942. setParameter("jobposnm", "");
  2943. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2944. if ( getParameter("usernm") != "" ) {
  2945. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/usernm", getParameter("usernm"));
  2946. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/userid", getParameter("userid"));
  2947. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/deptnm", getParameter("deptnm"));
  2948. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/jobposnm", getParameter("jobposnm"));
  2949. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/workplceaddr", getParameter("workplceaddr"));
  2950. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/mpphonno", getParameter("cmpytelno"));
  2951. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/email", getParameter("email"));
  2952. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/bankcd", getParameter("bankcd"));
  2953. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/acntno", getParameter("acntno"));
  2954. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/depor", getParameter("depor"));
  2955. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/rrgstno", getParameter("rrgstno"));
  2956. if ( model.getValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag") == "-" ) {
  2957. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "U");
  2958. }
  2959. }
  2960. setParameter("usernm", "");
  2961. setParameter("userid", "");
  2962. setParameter("deptnm", "");
  2963. setParameter("jobposnm", "");
  2964. setParameter("workplceaddr", "");
  2965. setParameter("cmpytelno", "");
  2966. setParameter("email", "");
  2967. setParameter("bankcd", "");
  2968. setParameter("acntno", "");
  2969. setParameter("depor", "");
  2970. setParameter("rrgstno", "");
  2971. grd_reser.refresh();
  2972. }
  2973. ]]>
  2974. </script>
  2975. <script type="javascript" ev:event="xforms-value-changed">
  2976. <![CDATA[
  2977. if ( model.getValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag") == '-' ) {
  2978. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag", "U");
  2979. }
  2980. model.refresh();
  2981. ]]>
  2982. </script>
  2983. </datagrid>
  2984. <line id="line5" class="line_3" style="x1:526px; y1:493px; x2:1040px; y2:493px; "/>
  2985. <button id="button6" class="btn2_letter8" visibility="hidden" _auth="X" style="left:299px; top:229px; width:108px; height:19px; ">
  2986. <caption>신규관리약사등록</caption>
  2987. <script type="javascript" ev:event="DOMActivate">
  2988. <![CDATA[
  2989. clearParameter("instcd");
  2990. clearParameter("target");
  2991. clearParameter("userflag");
  2992. setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
  2993. setParameter("target","respo");
  2994. setParameter("userflag","4");
  2995. window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  2996. ]]>
  2997. </script>
  2998. </button>
  2999. <button id="button7" class="btn2_letter9" visibility="hidden" _auth="X" style="left:288px; top:364px; width:119px; height:19px; ">
  3000. <caption>신규코디네이터등록</caption>
  3001. <script type="javascript" ev:event="DOMActivate">
  3002. <![CDATA[
  3003. clearParameter("instcd");
  3004. clearParameter("target");
  3005. clearParameter("userflag");
  3006. setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
  3007. setParameter("target","respo");
  3008. setParameter("userflag","3");
  3009. window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  3010. ]]>
  3011. </script>
  3012. </button>
  3013. <button id="button8" class="btn2_letter3" _auth="X" style="left:929px; top:365px; width:53px; height:19px; ">
  3014. <caption>행추가</caption>
  3015. <script type="javascript" ev:event="DOMActivate">
  3016. <![CDATA[
  3017. if ( grd_reser.rows < 3 ) {
  3018. grd_reser.addRow(true, true);
  3019. grd_reser.colDisabled(grd_reser.colRef("updtflag"))=true;
  3020. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  3021. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  3022. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/reptkind", "5");
  3023. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/userkind", "1"); //20091026,pwh: '1' 로 변경, 책임연구자 변경이므로
  3024. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "I");
  3025. } else {
  3026. messageBox("행추가를 하실 수 없습니다.", "I999");
  3027. return;
  3028. }
  3029. ]]>
  3030. </script>
  3031. </button>
  3032. <button id="button9" class="btn2_letter3" _auth="X" style="left:984px; top:365px; width:53px; height:19px; ">
  3033. <caption>행삭제</caption>
  3034. <script type="javascript" ev:event="DOMActivate">
  3035. <![CDATA[
  3036. if (grd_reser.selectedRows == 0)
  3037. {
  3038. messageBox("삭제할 행을 선택하여 주세요", "I999");
  3039. return;
  3040. }
  3041. else
  3042. {
  3043. if ( model.getValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag")=="I"){
  3044. grd_reser.deleterow(grd_reser.row);
  3045. } else {
  3046. model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "D");
  3047. }
  3048. }
  3049. ]]>
  3050. </script>
  3051. </button>
  3052. <caption id="caption25" class="cell_1" style="left:5px; top:206px; width:106px; height:22px; text-align:center; vertical-align:middle; ">영문과제명</caption>
  3053. <input id="ipt_engsubjnm" ref="/root/main/updtsubj/item/engsubjnm" class="input_default" navindex="29" style="left:115px; top:206px; width:405px; height:19px; "/>
  3054. <caption id="caption26" class="tit_2" style="left:530px; top:504px; width:113px; height:13px; ">실무자 변경</caption>
  3055. <button id="button12" class="btn2_letter3" _auth="X" style="left:929px; top:498px; width:53px; height:19px; ">
  3056. <caption>행추가</caption>
  3057. <script type="javascript" ev:event="DOMActivate">
  3058. <![CDATA[
  3059. if ( grd_serv.rows < 3 ) {
  3060. grd_serv.addRow(true, true);
  3061. grd_serv.colDisabled(grd_serv.colRef("updtflag"))=true;
  3062. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
  3063. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
  3064. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/reptkind", "5");
  3065. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/userkind", "9"); // 실무자 사용자구분값("9")
  3066. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "I");
  3067. } else {
  3068. messageBox("행추가를 하실 수 없습니다.", "I999");
  3069. return;
  3070. }
  3071. ]]>
  3072. </script>
  3073. </button>
  3074. <button id="button13" class="btn2_letter3" _auth="X" style="left:984px; top:498px; width:53px; height:19px; ">
  3075. <caption>행삭제</caption>
  3076. <script type="javascript" ev:event="DOMActivate">
  3077. <![CDATA[
  3078. if (grd_serv.selectedRows == 0)
  3079. {
  3080. messageBox("삭제할 행을 선택하여 주세요", "I999");
  3081. return;
  3082. }
  3083. else
  3084. {
  3085. if ( model.getValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag")=="I"){
  3086. grd_serv.deleterow(grd_serv.row);
  3087. } else {
  3088. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "D");
  3089. }
  3090. }
  3091. ]]>
  3092. </script>
  3093. </button>
  3094. <line id="line6" class="line_1" style="x1:525px; y1:519px; x2:1040px; y2:519px; "/>
  3095. <datagrid id="grd_serv" nodeset="/root/main/updtsubj/serv" 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" rowheader="update" rowsep="|" style="left:525px; top:524px; width:515px; height:90px; ">
  3096. <col disabled="true" ref="updtflag" type="combo">
  3097. <choices>
  3098. <item>
  3099. <label/>
  3100. <value>-</value>
  3101. </item>
  3102. <item>
  3103. <label>추가</label>
  3104. <value>I</value>
  3105. </item>
  3106. <item>
  3107. <label>수정</label>
  3108. <value>U</value>
  3109. </item>
  3110. <item>
  3111. <label>삭제</label>
  3112. <value>D</value>
  3113. </item>
  3114. </choices>
  3115. </col>
  3116. <col editable="false" ref="usernm" type="inputbutton"/>
  3117. <col ref="rrgstno" visibility="hidden"/>
  3118. <col ref="deptnm"/>
  3119. <col ref="jobposnm"/>
  3120. <col ref="workplceaddr"/>
  3121. <col ref="mpphonno"/>
  3122. <col ref="email"/>
  3123. <col ref="bankcd"/>
  3124. <col ref="acntno"/>
  3125. <col ref="depor"/>
  3126. <col ref="instcd" visibility="hidden"/>
  3127. <col ref="subjid" visibility="hidden"/>
  3128. <col ref="reptseqno" visibility="hidden"/>
  3129. <col ref="reptkind" visibility="hidden"/>
  3130. <col ref="userid"/>
  3131. <col ref="userkind" visibility="hidden"/>
  3132. <script type="javascript" ev:event="onbuttonclick">
  3133. <![CDATA[
  3134. if ( grd_serv.col == grd_serv.colRef("usernm") ) {
  3135. setParameter("userkind", "0");
  3136. setParameter("target","resp");
  3137. setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
  3138. setParameter("usernm", "");
  3139. setParameter("userid", "");
  3140. setParameter("hospnm", "");
  3141. setParameter("jobposnm", "");
  3142. // ***** 실무자에 보여질 사용자ID 조회 *****
  3143. var getid1 = "";
  3144. var getid2 = "";
  3145. var getid3 = "";
  3146. var getid4 = "";
  3147. var getid5 = "";
  3148. var getid = "";
  3149. // 관리약사
  3150. for (var i = 1; i < grd_drug.rows; i++)
  3151. {
  3152. if (getid1 == "")
  3153. getid1 = model.getValue(grd_drug.nodeset + "[" + i +"]/userid");
  3154. else
  3155. getid1 += ";" + model.getValue(grd_drug.nodeset + "[" + i +"]/userid");
  3156. }
  3157. // 공동연구자
  3158. for (var i = 1; i < grd_comn.rows; i++)
  3159. {
  3160. if (getid2 == "")
  3161. getid2 = model.getValue(grd_comn.nodeset + "[" + i +"]/userid");
  3162. else
  3163. getid2 += ";" + model.getValue(grd_comn.nodeset + "[" + i +"]/userid");
  3164. }
  3165. // 코디네이터
  3166. for (var i = 1; i < grd_codi.rows; i++)
  3167. {
  3168. if (getid3 == "")
  3169. getid3 = model.getValue(grd_codi.nodeset + "[" + i +"]/userid");
  3170. else
  3171. getid3 += ";" + model.getValue(grd_codi.nodeset + "[" + i +"]/userid");
  3172. }
  3173. // 책임연구자
  3174. for (var i = 1; i < grd_reser.rows; i++)
  3175. {
  3176. if (getid4 == "")
  3177. getid4 = model.getValue(grd_reser.nodeset + "[" + i +"]/userid");
  3178. else
  3179. getid4 += ";" + model.getValue(grd_reser.nodeset + "[" + i +"]/userid");
  3180. }
  3181. // 의뢰담당자
  3182. for (var i = 1; i < grd_perchgr.rows; i++)
  3183. {
  3184. if (getid5 == "")
  3185. getid5 = model.getValue(grd_perchgr.nodeset + "[" + i +"]/userid");
  3186. else
  3187. getid5 += ";" + model.getValue(grd_perchgr.nodeset + "[" + i +"]/userid");
  3188. }
  3189. if (getid1 == "" && getid2 == "" && getid3 == "" && getid4 == "" && getid5 == "")
  3190. getid = "@;"; // 검색안되게 임의 값 셋팅
  3191. else
  3192. getid = getid1 + ";" + getid2 + ";" + getid3 + ";" + getid4 + ";" + getid5;
  3193. setParameter("realuserid", getid);
  3194. // ***** ID 조회 끝 *****
  3195. window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  3196. if ( getParameter("usernm") != "" ) {
  3197. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/usernm", getParameter("usernm"));
  3198. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/userid", getParameter("userid"));
  3199. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/deptnm", getParameter("deptnm"));
  3200. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/jobposnm", getParameter("jobposnm"));
  3201. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/workplceaddr", getParameter("workplceaddr"));
  3202. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/mpphonno", getParameter("cmpytelno"));
  3203. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/email", getParameter("email"));
  3204. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/bankcd", getParameter("bankcd"));
  3205. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/acntno", getParameter("acntno"));
  3206. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/depor", getParameter("depor"));
  3207. model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/rrgstno", getParameter("rrgstno"));
  3208. if ( model.getValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag") == "-" ) {
  3209. model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "U");
  3210. }
  3211. }
  3212. setParameter("usernm", "");
  3213. setParameter("userid", "");
  3214. setParameter("deptnm", "");
  3215. setParameter("jobposnm", "");
  3216. setParameter("workplceaddr", "");
  3217. setParameter("cmpytelno", "");
  3218. setParameter("email", "");
  3219. setParameter("bankcd", "");
  3220. setParameter("acntno", "");
  3221. setParameter("depor", "");
  3222. setParameter("rrgstno", "");
  3223. grd_serv.refresh();
  3224. }
  3225. ]]>
  3226. </script>
  3227. <script type="javascript" ev:event="xforms-value-changed">
  3228. <![CDATA[
  3229. if ( model.getValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag") == '-' ) {
  3230. model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag", "U");
  3231. }
  3232. model.refresh();
  3233. ]]>
  3234. </script>
  3235. </datagrid>
  3236. <line id="line7" class="line_3" style="x1:526px; y1:619px; x2:1040px; y2:620px; "/>
  3237. </group>
  3238. </xhtml:body>
  3239. </xhtml:html>