123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>과제변경항목</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <reptdetl>
- <item>
- <instcd/>
- <subjid/>
- <subjno/>
- <reptseqno/>
- <judgappdg/>
- <reptkind/>
- <fstplanjudgdd/>
- <acptyn/>
- <acptdd/>
- <subjnm/>
- <roothospidxcasecnt/>
- <prcsidxcase/>
- <cnts1/>
- <cnts2/>
- <cnts3/>
- <cnts4/>
- <cnts5/>
- <cnts6/>
- <cnts7/>
- <cnts8/>
- <cnts9/>
- <acptdd/>
- <screenmenu/>
- <stdykind2/>
- <rc/>
- <attfile/>
- <resercnfmyn/>
- </item>
- </reptdetl>
- <updtsubj>
- <item>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <stdystartdd/>
- <stdyenddd/>
- <ddupdtresn/>
- <direccost/>
- <costupdtresn/>
- <verplan/>
- <verupdtresn1/>
- <veraprv/>
- <verupdtresn2/>
- <vercrf/>
- <verupdtresn3/>
- <verib/>
- <verupdtresn4/>
- <subjnm/>
- <nmupdtresn/>
- <retyn/>
- <acptyn/>
- <totstdycost/>
- <centercost/>
- <hospcost/>
- <engsubjnm/>
- <drugmngtamt/>
- <documngtamt/>
- <roothospidxcasecnt/>
- <allidxcase/>
- <hiddrugamt/>
- <hiddocuamt/>
- </item>
- <drug>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <userseqno/>
- <mpphonno/>
- <email/>
- <deptnm/>
- <jobposnm/>
- <workplceaddr/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- <cmt/>
- </drug>
- <codi>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <workplceaddr/>
- <deptnm/>
- <jobposnm/>
- <mpphonno/>
- <email/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- <cmt/>
- <userseqno/>
- </codi>
- <comn>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <deptnm/>
- <jobposnm/>
- <workplceaddr/>
- <mpphonno/>
- <email/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- <cmt/>
- <userseqno/>
- </comn>
- <perchgr>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <userseqno/>
- <mpphonno/>
- <email/>
- <deptnm/>
- <jobposnm/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- <cmt/>
- <workplceaddr/>
- </perchgr>
- <reser>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <deptnm/>
- <jobposnm/>
- <workplceaddr/>
- <mpphonno/>
- <email/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- </reser>
- <serv>
- <updtflag/>
- <usernm/>
- <rrgstno/>
- <deptnm/>
- <jobposnm/>
- <workplceaddr/>
- <mpphonno/>
- <email/>
- <bankcd/>
- <acntno/>
- <depor/>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <userid/>
- <userkind/>
- </serv>
- </updtsubj>
- </main>
- <send>
- <savedata>
- </savedata>
- <searchitem>
- <subjid/>
- <instcd/>
- <reptseqno/>
- <reptkind/>
- <totstdycost/>
- <direccost/>
- <centercost/>
- <hospcost/>
- <consorflag/>
- <reqinstcd/>
- <rtnbtn/>
- <rtndate/>
- <rtnresn/>
- <croinstcd/>
- </searchitem>
- <tempnode>
- <drug/>
- </tempnode>
- <attach/>
- </send>
- <hidden/>
- <init>
- <hosp>
- <ret>
- <instcd/>
- <hospnm/>
- </ret>
- </hosp>
- <hosp1>
- <ret>
- <instcd/>
- <hospnm/>
- </ret>
- </hosp1>
- <cmb_info>
- <initbank>
- <cdid/>
- <cdnm/>
- </initbank>
- </cmb_info>
- </init>
- <rex>
- <view>
- <appformhead>
- <subjnm/>
- <subjno/>
- <hospnm/>
- <depthngnm/>
- <cdnm/>
- <usernm/>
- <hospcd/>
- </appformhead>
- <irsdcollareser>
- <subjid/>
- <instcd/>
- <userid/>
- <userkind/>
- <usernm/>
- <posnm/>
- <jobposnm/>
- </irsdcollareser>
- <imcmreqinst>
- <cmpynm/>
- <prsdnm/>
- <jobposnm/>
- </imcmreqinst>
- </view>
- <reptdetl>
- <item>
- <instcd/>
- <subjid/>
- <subjno/>
- <reptseqno/>
- <judgappdg/>
- <reptkind/>
- <fstplanjudgdd/>
- <acptyn/>
- <acptdd/>
- <subjnm/>
- <roothospidxcasecnt/>
- <prcsidxcase/>
- <cnts1/>
- <cnts2/>
- <cnts3/>
- <cnts4/>
- <cnts5/>
- <cnts6/>
- <cnts7/>
- <cnts8/>
- <cnts9/>
- <acptdd/>
- </item>
- </reptdetl>
- <updtsubj>
- <item>
- <instcd/>
- <subjid/>
- <reptseqno/>
- <reptkind/>
- <stdystartdd/>
- <stdyenddd/>
- <ddupdtresn/>
- <direccost/>
- <costupdtresn/>
- <verplan/>
- <verupdtresn1/>
- <veraprv/>
- <verupdtresn2/>
- <vercrf/>
- <verupdtresn3/>
- <verib/>
- <verupdtresn4/>
- <subjnm/>
- <nmupdtresn/>
- <retyn/>
- <acptyn/>
- <totstdycost/>
- <centercost/>
- <hospcost/>
- </item>
- </updtsubj>
- <basesubjinfo>
- <basesubjinfo>
- <subjid/>
- <perchgrid/>
- <acptyn/>
- <judgkind/>
- <subjnm/>
- <subjpwd/>
- <clinictrgtflag/>
- <reqinstflag/>
- <stdycostsuppinst/>
- <stdycostsuppinstnm/>
- <itemnm/>
- <comnm/>
- <allidxcase/>
- <stdystartdd/>
- <stdyenddd/>
- <appdd/>
- <testeeaprvflag/>
- <relprstdata1/>
- <relprstdata2/>
- <relprstdata3/>
- <relprstdata4/>
- <relprstdata5/>
- <prstdataetc5/>
- <resercd/>
- <reqinstcd/>
- <concernrela/>
- <verplan/>
- <veraprv/>
- <vercrf/>
- <verib/>
- <consorflag/>
- <deptcd/>
- <reqcnfmyn/>
- <inqrgoal/>
- <trgtsick/>
- <inqrmthd/>
- <stdykind1/>
- <etctrgt1/>
- <stdykind2/>
- <etctrgt2/>
- <stdykind3/>
- <manynation/>
- <manyinst/>
- <cmcinstcnt/>
- <stdykind4/>
- <etctrgt4/>
- <stdytrgt/>
- <etctrgt/>
- <agenestdyflag/>
- <cellcurestdyyn/>
- <testeestat/>
- <fratesteeflag/>
- <stdyspcl1/>
- <stdyspcl2/>
- <stdyspcl3/>
- <stdyspcl4/>
- <stdyspcl5/>
- <stdyspcl6/>
- <stdyspcl7/>
- <examadjthosp/>
- <examadjtprf/>
- <allexamresppos/>
- <allexamrespnm/>
- <foodscrtgovpassyn/>
- <prmisnnatiyn/>
- <intermarketyn/>
- <judgkindcode/>
- <firstdg/>
- <firstjudgdd/>
- <croinstcd/>
- <reqinstchrgid/>
- <reqinstchrgnm/>
- <croinstnm/>
- </basesubjinfo>
- </basesubjinfo>
- <data>
- <a/>
- </data>
- </rex>
- <temp/>
- </root>
- </instance>
- <submission id="TRIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
- <submission id="TXIMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance"/>
- <submission id="TRIRB00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
- <submission id="TRIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
- <submission id="TXIRB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRIRS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
- <submission id="TXIRB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRIRB00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/temp/updtsubj"/>
- <submission id="TRIRB00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/init/hosp1"/>
- <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"/>
- <bind id="bind2" ref="/root/main/updtsubj/item/centercost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.05) * 0.1) * 10"/>
- <bind id="bind3" ref="/root/main/updtsubj/item/hospcost" calculate="ceiling((/root/main/updtsubj/item/direccost * 0.10) * 0.1) * 10"/>
- <submission id="TRIRS00102" mediatype="application/x-www-form-urlencoded" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
- <submission id="TXIIA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance"/>
- <submission id="TRZBC00101"/>
- <submission id="TXIRB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
- <submission id="TXIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
- <submission id="TXIRS00199" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRIRS00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXIRS00198" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRIRS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/updtsubj"/>
- </model>
- <script type="javascript" src="../../../crc/comsubjweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/autocompleteweb/js/ZSC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
- //20090512 이창록 추가 (outrsrparam - > param,userflag -> 사용자구분)
- function fGetOutRsrInfo(outrsrparam,userflag)
- {
- var outArr = outrsrparam.split("▩");
-
- if((userflag =="2") || (userflag =="1")){
- for(var i = 0; i <(outArr.length-1); i++){
- grd_comn.addRow();
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/usernm" , outArr[i].split("▦")[0]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/deptnm" , outArr[i].split("▦")[1]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/jobposnm" , outArr[i].split("▦")[2]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/mpphonno" , outArr[i].split("▦")[4]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/email" , outArr[i].split("▦")[5]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/bankcd" , outArr[i].split("▦")[6]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/acntno" , outArr[i].split("▦")[7]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/depor" , outArr[i].split("▦")[8]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/instcd" , outArr[i].split("▦")[14]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/cmt" , outArr[i].split("▦")[9]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userid" , outArr[i].split("▦")[10]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userkind" , outArr[i].split("▦")[11]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/rrgstno" , outArr[i].split("▦")[12]);
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userseqno" , outArr[i].split("▦")[13]);
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
- }
- }else if(userflag =="4"){
- for(var i = 0; i <(outArr.length-1); i++){
- grd_drug.addRow();
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/usernm" , outArr[i].split("▦")[0]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/deptnm" , outArr[i].split("▦")[1]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/jobposnm" , outArr[i].split("▦")[2]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/mpphonno" , outArr[i].split("▦")[4]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/email" , outArr[i].split("▦")[5]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/bankcd" , outArr[i].split("▦")[6]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/acntno" , outArr[i].split("▦")[7]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/depor" , outArr[i].split("▦")[8]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/instcd" , outArr[i].split("▦")[14]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/cmt" , outArr[i].split("▦")[9]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userid" , outArr[i].split("▦")[10]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userkind" , outArr[i].split("▦")[11]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/rrgstno" , outArr[i].split("▦")[12]);
- model.setValue("/root/main/updtsubj/drug[" + grd_drug.row + "]/userseqno" , outArr[i].split("▦")[13]);
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "I");
- }
- }else if(userflag =="3"){
- for(var i = 0; i <(outArr.length-1); i++){
- grd_codi.addRow();
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/usernm" , outArr[i].split("▦")[0]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/deptnm" , outArr[i].split("▦")[1]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/jobposnm" , outArr[i].split("▦")[2]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/workplceaddr" , outArr[i].split("▦")[3]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/mpphonno" , outArr[i].split("▦")[4]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/email" , outArr[i].split("▦")[5]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/bankcd" , outArr[i].split("▦")[6]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/acntno" , outArr[i].split("▦")[7]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/depor" , outArr[i].split("▦")[8]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/instcd" , outArr[i].split("▦")[14]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/cmt" , outArr[i].split("▦")[9]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/subjid" , model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userid" , outArr[i].split("▦")[10]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userkind" , outArr[i].split("▦")[11]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/rrgstno" , outArr[i].split("▦")[12]);
- model.setValue("/root/main/updtsubj/codi[" + grd_codi.row + "]/userseqno" , outArr[i].split("▦")[13]);
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "I");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
- grd_drug.colDisabled(grd_drug.colRef("bankcd"))=true;
- grd_drug.colDisabled(grd_drug.colRef("updtflag"))=true;
- grd_comn.colDisabled(grd_comn.colRef("updtflag"))=true;
- grd_codi.colDisabled(grd_codi.colRef("updtflag"))=true;
- grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
- grd_reser.colDisabled(grd_reser.colRef("updtflag"))=true;
- //권한이 없는경우 보고서 상단의 저장 버튼 숨기기
- if ( opener.javascript.getParameter("actionyn") == "N" ) {
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- button5.visible = false;
- btn_rowadd4.visible = false;
- btn_rowdel4.visible = false;
- button25.visible = false;
- button7.visible = false;
- button6.visible = false;
- btn_rowadd2.visible = false;
- btn_rowdel2.visible = false;
- btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- button1.visible = false;
- button2.visible = false;
- ipt_filenm.visible = true;
- btn_fileatt.visible = false;
- btn_filedel.visible = false;
- btn_filedown.visible=true;
- }
- if ( parent.model.getValue("/root/send/report") == "Y" ) {
- ipt_filenm.visible = true;
- btn_fileatt.visible = false;
- btn_filedel.visible = false;
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- btn_filedown.visible=true;
- button1.visible = false;
- }
-
- group1.visible = false;
-
- submit("TRIRB00102"); //병원 조회
- if ( model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid") ) != ""){
- model.setValue("/root/send/searchitem/subjid", opener.javascript.getParameter("subjid"));
- model.setValue("/root/send/searchitem/reptseqno", opener.javascript.getParameter("reptseqno"));
- model.setValue("/root/send/searchitem/reptkind", opener.javascript.getParameter("reptkind"));
- model.setValue("/root/send/searchitem/instcd", opener.javascript.getParameter("instcd"));
- model.setValue("/root/send/searchitem/totstdycost", opener.javascript.getParameter("totstdycost"));
- model.setValue("/root/send/searchitem/direccost", opener.javascript.getParameter("direccost"));
- model.setValue("/root/send/searchitem/reqinstcd", opener.javascript.getParameter("reqinstcd"));
- model.setValue("/root/send/searchitem/croinstcd", opener.javascript.getParameter("croinstcd"));
- } else {
- model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
- model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/send/searchitem/reptkind", "5");
- model.setValue("/root/send/searchitem/totstdycost", parent.model.getValue("/root/send/searchitem2/totstdycost"));
- model.setValue("/root/send/searchitem/direccost", parent.model.getValue("/root/send/searchitem2/direccost"));
- model.setValue("/root/send/searchitem/reqinstcd", parent.model.getValue("/root/send/searchitem2/reqinstcd"));
- model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
- model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
- }
-
- model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
-
- var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
- if ( consorflag == "Y" ) {
- model.setValue("/root/send/searchitem/consorflag", "Y");
- cmb_instcd.disabled = false;
- submit("TRIRB00106"); //병원 조회
- submit("TRIRS00203"); //공동과제일 때 Version관련 항목 조회(2010.06.29추가)
- model.copyNode("/root/init/hosp", "/root/init/hosp1");
- }
-
- //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
- if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
- submit("TRIRB00104"); //결과보고서 내용 조회
- submit("TRIMR00101"); //변경내용요약 조회
- }
-
- // ***** kjw 추가 (2010-01-13) *****
- if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0)
- input4.disabled = true;
- if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0)
- input5.disabled = true;
- // ***** 2010-01-13 *****
-
- if ( opener.javascript.getParameter("report") == "Y" ) {
- btn_tmpsave.visible = false;
- btn_reptacpt.visible = false;
- button5.visible = false;
- ipt_filenm.visible = true;
- btn_fileatt.visible = false;
- btn_filedel.visible = false;
- btn_filedown.visible=true;
-
- btn_rowadd4.visible = false;
- btn_rowdel4.visible = false;
- button25.visible = false;
- button6.visible = false;
- btn_rowadd2.visible = false;
- btn_rowdel2.visible = false;
- btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- button1.visible = false;
- button2.visible = false;
-
- group1.visible = true;
- submit("TRIRB00104"); //결과보고서 내용 조회
- submit("TRIMR00101"); //변경내용요약 조회
-
- }
- else if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") != "Y" ){
- // ***** kjw 수정(2010-02-03, TRIMR00101의 return 트리('/root/main/reptdetl/item')에 중복 저장되어 temp아래로 받은 뒤에 copy 처리함) *****
- submit("TRIRB00108"); //기존에 등록되어 있는 공동연구자, 코디, 약사 조회
-
- model.setValue("/root/main/updtsubj/item/retyn", "/root/temp/updtsubj/item/drugmngtamt");
- model.setValue("/root/main/updtsubj/item/retyn", "/root/temp/updtsubj/item/documngtamt");
- model.setValue("/root/main/updtsubj/item/retyn", 'N');
-
- model.removenode("/root/main/updtsubj/drug");
- var k = 1;
- while (model.getValue("/root/temp/updtsubj/drug["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/drug["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/userseqno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userseqno"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/email", model.getValue("/root/temp/updtsubj/drug["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/drug["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/drug["+ k +"]/workplceaddr"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/drug["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/depor", model.getValue("/root/temp/updtsubj/drug["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/drug["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/drug["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/drug["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/drug["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/userid", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/drug["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/drug["+ k +"]/userkind"));
- k = k + 1;
- }
- model.removenode("/root/main/updtsubj/comn");
- k = 1;
- while (model.getValue("/root/temp/updtsubj/comn["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/comn["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/comn["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/comn["+ k +"]/workplceaddr"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/email", model.getValue("/root/temp/updtsubj/comn["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/comn["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/depor", model.getValue("/root/temp/updtsubj/comn["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/comn["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/comn["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/comn["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/comn["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/userid", model.getValue("/root/temp/updtsubj/comn["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/comn["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/comn["+ k +"]/userkind"));
- k = k + 1;
- }
-
- model.removenode("/root/main/updtsubj/codi");
- k = 1;
- while (model.getValue("/root/temp/updtsubj/codi["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/codi["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/codi["+ k +"]/workplceaddr"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/codi["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/email", model.getValue("/root/temp/updtsubj/codi["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/codi["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/depor", model.getValue("/root/temp/updtsubj/codi["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/codi["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/codi["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/codi["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/codi["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/userid", model.getValue("/root/temp/updtsubj/codi["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/codi["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/codi["+ k +"]/userkind"));
- k = k + 1;
- }
-
- model.removenode("/root/main/updtsubj/perchgr");
- k = 1;
- while (model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userseqno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userseqno"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/email", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/depor", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userid", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/userkind"));
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/cmt", "");
- model.makeValue("/root/main/updtsubj/perchgr["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/perchgr["+ k +"]/workplceaddr"));
-
- k = k + 1;
- }
-
- model.removenode("/root/main/updtsubj/reser");
- k = 1;
- while (model.getValue("/root/temp/updtsubj/reser["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/reser["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/reser["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/reser["+ k +"]/workplceaddr"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/email", model.getValue("/root/temp/updtsubj/reser["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/reser["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/depor", model.getValue("/root/temp/updtsubj/reser["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/reser["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/reser["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/reser["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/reser["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/userid", model.getValue("/root/temp/updtsubj/reser["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/reser["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/reser["+ k +"]/userkind"));
- k = k + 1;
- }
-
- model.removenode("/root/main/updtsubj/serv");
- k = 1;
- while (model.getValue("/root/temp/updtsubj/serv["+ k +"]/updtflag") != "") {
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/updtflag", model.getValue("/root/temp/updtsubj/serv["+ k +"]/updtflag"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/usernm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/usernm"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/rrgstno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/rrgstno"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/deptnm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/deptnm"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/jobposnm", model.getValue("/root/temp/updtsubj/serv["+ k +"]/jobposnm"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/workplceaddr", model.getValue("/root/temp/updtsubj/serv["+ k +"]/workplceaddr"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/mpphonno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/mpphonno"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/email", model.getValue("/root/temp/updtsubj/serv["+ k +"]/email"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/bankcd", model.getValue("/root/temp/updtsubj/serv["+ k +"]/bankcd"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/acntno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/acntno"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/depor", model.getValue("/root/temp/updtsubj/serv["+ k +"]/depor"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/instcd", model.getValue("/root/temp/updtsubj/serv["+ k +"]/instcd"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/subjid", model.getValue("/root/temp/updtsubj/serv["+ k +"]/subjid"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/reptseqno", model.getValue("/root/temp/updtsubj/serv["+ k +"]/reptseqno"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/reptkind", model.getValue("/root/temp/updtsubj/serv["+ k +"]/reptkind"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/userid", model.getValue("/root/temp/updtsubj/serv["+ k +"]/userid"));
- model.makeValue("/root/main/updtsubj/serv["+ k +"]/userkind", model.getValue("/root/temp/updtsubj/serv["+ k +"]/userkind"));
- k = k + 1;
- }
-
- model.removenode("/root/temp");
- // ***** 2010-02-03 *****
- messageBox("※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우, "
- +"\n" +"\n" + " 반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."
- +"\n" +"\n" + " * 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오."
- +"\n" +"\n" + "\n" + "---------------------------------------------------------------------"
- +"\n" +"\n" + "\n" + "※ 관리약사, 공동연구자, 코디네이터 등록이나 변경할 경우,"
- +"\n" +"\n" + " 1. 단순 추가나 삭제일 경우에는 행추가나 행삭제로 처리."
- +"\n" +"\n" + " 2. A에서 B로 변경될 경우에는 A를 행삭제, B를 추가입력."
- +"\n" +"\n" + " (버튼을 눌러 찾아질 경우에는 찾아서, 아닐 경우에는 타이핑)"
- +"\n" +"\n" + " 3. 코디네이터를 등록할 경우 모든 항목이 필수 입력 항목임."
- +"\n" +"\n" + " 4. 의뢰담당자 변경시 성명란에 있는 파란 버튼을 눌러 변경."
- +"\n" +"\n" + "\n" + "---------------------------------------------------------------------"
- +"\n" +"\n" + "\n" + "※ 연구진에 대한 변경이 있는 경우는 변경 신청서와 함께"
- +"\n" +"\n" + " 다음의 서류를 추가로 제출해 주십시요."
- +"\n" +"\n" + " 1. 책임 연구자 변경시"
- +"\n" +"\n" + " (1) 연구자 이력서"
- +"\n" +"\n" + " (2) 연구자 서약서"
- +"\n" +"\n" + " (3) Delegation Log"
- +"\n" +"\n" + " (4) 비상 연락망(교육 수료증 첨부 - 기 제출된 경우 면제)"
- +"\n" +"\n" + " (5) 이해 상충 신고서"
- +"\n" +"\n" + "\n" + " 2. 공동 연구자 또는 코디네이터 변경 및 추가 등록시"
- +"\n" +"\n" + " (1) Delegation Log"
- +"\n" +"\n" + " (2) 비상연락망 (교육 수료증 첨부 - 기 제출된 경우 면제)"
- +"\n" +"\n" + " (3) 이해 상충 신고서", "I999");
- //model.refresh();
- }
-
- model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
- model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
- model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
- model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
- model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
- model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
- model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
-
- model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
-
- var direccost = model.getValue("/root/send/searchitem/direccost");
-
- //센타간접비(직접연구비의 5%), 병원간접비(직접연구비의 10%) 계산
- if ( direccost != "" ) {
- model.setValue("/root/send/searchitem/centercost", parseFloat(direccost*0.05));
- model.setValue("/root/send/searchitem/hospcost", parseFloat(direccost*0.1));
- }
-
- zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
-
- // 접수 여부
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- btn_rowadd4.visible = false;
- btn_rowdel4.visible = false;
- button25.visible = false;
- btn_rowadd2.visible = false;
- btn_rowdel2.visible = false;
- button7.visible = false;
- btn_rowadd3.visible = false;
- btn_rowdel3.visible = false;
- tar_cnts1.attribute("editable") = "false";
- tar_cnts2.attribute("editable") = "false";
- tar_cnts3.attribute("editable") = "false";
- tar_cnts4.attribute("editable") = "false";
- tar_cnts5.attribute("editable") = "false";
- tar_cnts6.attribute("editable") = "false";
- tar_cnts7.attribute("editable") = "false";
- tar_cnts8.attribute("editable") = "false";
- tar_cnts9.attribute("editable") = "false";
- ipt_stdystartdd.attribute("editable") = "false";
- ipt_stdyenddd.attribute("editable") = "false";
- ipt_ddupdtresn.attribute("editable") = "false";
- ipt_direccost.attribute("editable") = "false";
- ipt_costupdtresn.attribute("editable") = "false";
- ipt_verplan.attribute("editable") = "false";
- ipt_verupdtresn1.attribute("editable") = "false";
- ipt_veraprv.attribute("editable") = "false";
- ipt_verupdtresn2.attribute("editable") = "false";
- ipt_vercrf.attribute("editable") = "false";
- ipt_verupdtresn3.attribute("editable") = "false";
- ipt_verib.attribute("editable") = "false";
- ipt_verupdtresn4.attribute("editable") = "false";
- ipt_subjnm.attribute("editable") = "false";
- ipt_engsubjnm.attribute("editable") = "false";
- ipt_nmupdtresn.attribute("editable") = "false";
-
- for ( var i = 1; i < grd_drug.rows; i++ ) {
- for ( var j = 1; j < 20; j++ ) {
- grd_drug.isReadOnly(i, j) = true;
- }
- }
-
- for ( var i = 1; i < grd_comn.rows; i++ ) {
- for ( var j = 1; j < 20; j++ ) {
- grd_comn.isReadOnly(i, j) = true;
- }
- }
-
- for ( var i = 1; i < grd_codi.rows; i++ ) {
- for ( var j = 1; j < 20; j++ ) {
- grd_codi.isReadOnly(i, j) = true;
- }
- }
-
- for ( var j = 1; j < 20; j++ ) {
- grd_perchgr.isReadOnly(1, j) = true;
- }
-
- for ( var j = 1; j < 20; j++ ) {
- grd_reser.isReadOnly(1, j) = true;
- }
- } else {
- btn_rowadd4.visible = true;
- btn_rowdel4.visible = true;
- // Test
- //button25.visible = true;
-
- btn_rowadd2.visible = true;
- btn_rowdel2.visible = true;
- // Test
- //button7.visible = true;
- btn_rowadd3.visible = true;
- btn_rowdel3.visible = true;
- tar_cnts1.attribute("editable") = "true";
- tar_cnts2.attribute("editable") = "true";
- tar_cnts3.attribute("editable") = "true";
- tar_cnts4.attribute("editable") = "true";
- tar_cnts5.attribute("editable") = "true";
- tar_cnts6.attribute("editable") = "true";
- tar_cnts7.attribute("editable") = "true";
- tar_cnts8.attribute("editable") = "true";
- tar_cnts9.attribute("editable") = "true";
- ipt_stdystartdd.attribute("editable") = "true";
- ipt_stdyenddd.attribute("editable") = "true";
- ipt_ddupdtresn.attribute("editable") = "true";
- ipt_direccost.attribute("editable") = "true";
- ipt_costupdtresn.attribute("editable") = "true";
- ipt_verplan.attribute("editable") = "true";
- ipt_verupdtresn1.attribute("editable") = "true";
- ipt_veraprv.attribute("editable") = "true";
- ipt_verupdtresn2.attribute("editable") = "true";
- ipt_vercrf.attribute("editable") = "true";
- ipt_verupdtresn3.attribute("editable") = "true";
- ipt_verib.attribute("editable") = "true";
- ipt_verupdtresn4.attribute("editable") = "true";
- ipt_subjnm.attribute("editable") = "true";
- ipt_engsubjnm.attribute("editable") = "true";
- ipt_nmupdtresn.attribute("editable") = "true";
- }
-
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1090" pageheight="930" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:5px; top:0px; width:1060px; height:295px; ">
- <button id="btn_close" class="btn2_letter2" style="left:1000px; top:10px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/hosp/ret">
- <label ref="hospnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:5px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">선택된 병원</caption>
- <caption id="caption10" class="cell_1" style="left:527px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
- <![CDATA[피험자 동의
- 및 안전관련]]>
- </caption>
- <caption id="caption2" class="cell_1" style="left:280px; top:37px; width:85px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
- <caption id="caption11" class="cell_1" style="left:527px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기 타</caption>
- <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; ">
- <choices>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" navindex="1" style="left:92px; top:64px; width:428px; height:41px; "/>
- <caption id="caption3" class="cell_1" style="left:5px; top:109px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
- <![CDATA[연구목적
- 및 배경]]>
- </caption>
- <caption id="caption12" class="cell_1" style="left:527px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:33px; x2:1040px; y2:32px; "/>
- <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" navindex="2" style="left:92px; top:109px; width:428px; height:41px; "/>
- <caption id="caption4" class="cell_1" style="left:5px; top:154px; width:85px; height:41px; text-align:center; vertical-align:middle; ">
- <![CDATA[임상시험
- 대상관련]]>
- </caption>
- <caption id="caption13" class="tit_2" style="left:529px; top:225px; width:101px; height:13px; ">변경사유</caption>
- <textarea id="tar_cnts3" ref="/root/main/reptdetl/item/cnts3" navindex="3" style="left:92px; top:154px; width:428px; height:41px; "/>
- <caption id="caption5" class="cell_1" style="left:5px; top:199px; width:85px; height:41px; text-align:center; vertical-align:middle; ">피험자 관련</caption>
- <caption id="caption14" class="tit_2" style="left:10px; top:15px; width:140px; height:13px; ">변경계획서</caption>
- <caption id="caption6" class="cell_1" style="left:5px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">기본사항</caption>
- <textarea id="tar_cnts4" ref="/root/main/reptdetl/item/cnts4" navindex="4" style="left:92px; top:199px; width:428px; height:41px; "/>
- <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts5" navindex="5" style="left:92px; top:244px; width:428px; height:41px; "/>
- <caption id="caption8" class="cell_1" style="left:5px; top:244px; width:85px; height:41px; text-align:center; vertical-align:middle; ">임상시험 방법</caption>
- <textarea id="tar_cnts6" ref="/root/main/reptdetl/item/cnts6" navindex="6" style="left:614px; top:64px; width:428px; height:41px; "/>
- <caption id="caption9" class="cell_1" style="left:527px; top:64px; width:85px; height:41px; text-align:center; vertical-align:middle; ">통계관련</caption>
- <textarea id="tar_cnts7" ref="/root/main/reptdetl/item/cnts7" navindex="7" style="left:614px; top:109px; width:428px; height:41px; "/>
- <textarea id="tar_cnts8" ref="/root/main/reptdetl/item/cnts8" navindex="8" style="left:614px; top:154px; width:428px; height:41px; "/>
- <textarea id="tar_cnts9" ref="/root/main/reptdetl/item/cnts9" navindex="9" maxlength="500" style="left:614px; top:244px; width:428px; height:41px; "/>
- <button id="button3" class="btn2_letter9" _auth="P" style="left:877px; top:10px; width:119px; height:19px; ">
- <caption>변경계획보고서 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnts1 ="";
- var cnts2 ="";
- var cnts3 ="";
- var cnts4 ="";
- var cnts5 ="";
- var cnts6 ="";
- var cnts7 ="";
- var cnts8 ="";
- var cnts9 ="";
- var cnts10 ="";
- var cnts11 ="";
- var cnts12 ="";
- var cnts13 ="";
- var cnts14 ="";
- var cnts15 ="";
-
- var data = "";
- var i =0;
- var kk = 0;
-
- if(submit("TRIRS00101")) {
-
- submit("TRIRS00102");
- model.copyNode("/root/rex/reptdetl", "/root/main/reptdetl");
- model.copyNode("/root/rex/updtsubj", "/root/main/updtsubj");
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
- data="";
-
- if ( model.getValue("/root/rex/reptdetl/item/cnts1") != "" && model.getValue("/root/rex/reptdetl/item/cnts1") != " ") {
- cnts1 = "▶ 기본사항 : " + model.getValue("/root/rex/reptdetl/item/cnts1") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts2") != "" && model.getValue("/root/rex/reptdetl/item/cnts2") != " ") {
- cnts2 = "▶ 연구목적 및 배경 : " + model.getValue("/root/rex/reptdetl/item/cnts2") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts3") != "" && model.getValue("/root/rex/reptdetl/item/cnts3") != " ") {
- cnts3 = "▶ 임상시험 대상관련 : " + model.getValue("/root/rex/reptdetl/item/cnts3") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts4") != "" && model.getValue("/root/rex/reptdetl/item/cnts4") != " ") {
- cnts4 = "▶ 피험자 관련 : " + model.getValue("/root/rex/reptdetl/item/cnts4") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts5") != "" && model.getValue("/root/rex/reptdetl/item/cnts5") != " ") {
- cnts5 = "▶ 임상시험 방법 : " + model.getValue("/root/rex/reptdetl/item/cnts5") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts6") != "" && model.getValue("/root/rex/reptdetl/item/cnts6") != " ") {
- cnts6 = "▶ 통계관련 : " + model.getValue("/root/rex/reptdetl/item/cnts6") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts7") != "" && model.getValue("/root/rex/reptdetl/item/cnts7") != " ") {
- cnts7 = "▶ 피험자 동의 및 안전대책 : " + model.getValue("/root/rex/reptdetl/item/cnts7") + "\n";
- }
- if ( model.getValue("/root/rex/reptdetl/item/cnts8") != "" && model.getValue("/root/rex/reptdetl/item/cnts8") != " ") {
- cnts8 = "▶ 기타 : " + model.getValue("/root/rex/reptdetl/item/cnts8") + "\n";
- }
-
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
-
- model.makeValue("/root/rex/reptdetl/item/data", data);
-
-
- var data = model.getValue("/root/rex/reptdetl/item/data");
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( data.indexOf("\n",p ) >=0 ){
- while ( (j = data.indexOf("\n",p ))>=0){
-
- var sdata = data.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = data.substring( p, data.length );
- k = k + 1;
- model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/reptdetl");
- model.makeValue("/root/rex/reptdetl/item[1]/datainfo["+k+"]/data", data);
- }
-
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
- data="";
-
- if ( model.getValue("/root/rex/updtsubj/item/stdystartdd") != "" && model.getValue("/root/rex/updtsubj/item/stdystartdd") != " ") {
- cnts1 = "▶ 연구기간 : " + model.getValue("/root/rex/updtsubj/item/stdystartdd") + " ~ " + model.getValue("/root/rex/updtsubj/item/stdyenddd") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/direccost") != "" && model.getValue("/root/rex/updtsubj/item/direccost") != " ") {
- cnts3 = "▶ 직접비 : " + model.getValue("/root/rex/updtsubj/item/direccost") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verplan") != "" && model.getValue("/root/rex/updtsubj/item/verplan") != " ") {
- cnts5 = "▶ 계획서 Version : " + model.getValue("/root/rex/updtsubj/item/verplan") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/veraprv") != "" && model.getValue("/root/rex/updtsubj/item/veraprv") != " ") {
- cnts7 = "▶ 동의서 Version : " + model.getValue("/root/rex/updtsubj/item/veraprv") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/vercrf") != "" && model.getValue("/root/rex/updtsubj/item/vercrf") != " ") {
- cnts9 = "▶ CRF Version : " + model.getValue("/root/rex/updtsubj/item/vercrf") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verib") != "" && model.getValue("/root/rex/updtsubj/item/verib") != " ") {
- cnts11 = "▶ IB Version : " + model.getValue("/root/rex/updtsubj/item/verib") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/subjnm") != "" && model.getValue("/root/rex/updtsubj/item/subjnm") != " ") {
- cnts13 = "▶ 과제명 : " + model.getValue("/root/rex/updtsubj/item/subjnm") + "\n";
- }
-
- data = cnts1 + cnts3 + cnts5 + cnts7 + cnts9 + cnts11 + cnts13 ;
-
- model.makeValue("/root/rex/updtsubj/item/data", data);
-
-
- var data = model.getValue("/root/rex/updtsubj/item/data");
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( data.indexOf("\n",p ) >=0 ){
- while ( (j = data.indexOf("\n",p ))>=0){
-
- var sdata = data.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = data.substring( p, data.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo["+k+"]/data", data);
- }
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
- data="";
-
- if ( model.getValue("/root/rex/updtsubj/item/ddupdtresn") != "" ) {
- cnts2 = "연구기간 변경사유 : " + model.getValue("/root/rex/updtsubj/item/ddupdtresn") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/costupdtresn") != "" ) {
- cnts4 = "직접비 변경사유 : " + model.getValue("/root/rex/updtsubj/item/costupdtresn") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verupdtresn1") != "" ) {
- cnts6 = "계획서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn1") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verupdtresn2") != "" ) {
- cnts8 = "동의서 Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn2") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verupdtresn3") != "" ) {
- cnts10 = "CRF Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn3") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/verupdtresn4") != "" ) {
- cnts12 = "IB Version 변경사유 : " + model.getValue("/root/rex/updtsubj/item/verupdtresn4") + "\n";
- }
- if ( model.getValue("/root/rex/updtsubj/item/nmupdtresn") != "" ) {
- cnts14 = "과제명 변경사유 : " + model.getValue("/root/rex/updtsubj/item/nmupdtresn") + "\n";
- }
-
-
- data = cnts2 + cnts4 + cnts6 + cnts8 + cnts10 + cnts12 + cnts14;
-
- model.makeValue("/root/rex/updtsubj/item/data1", data);
-
-
- var data = model.getValue("/root/rex/updtsubj/item/data1");
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( data.indexOf("\n",p ) >=0 ){
- while ( (j = data.indexOf("\n",p ))>=0){
-
- var sdata = data.substring( p, j );
-
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = data.substring( p, data.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item[1]/datainfo1["+k+"]/data", data);
- }
-
- //관리약사
- if ( grd_drug.rows > 0 ) {
-
- for ( var kk = 0; kk < grd_drug.rows -1; kk++ ) {
-
- if ( grd_drug.valueMatrix(kk+1, grd_drug.colRef("updtflag")) != "-" ) {
-
- i = i + 1;
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
-
- if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'I' ) {
- cnts1 = "▶ 상태 : 추가" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'U' ) {
- cnts1 = "▶ 상태 : 수정" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") == 'D' ) {
- cnts1 = "▶ 상태 : 삭제" + "\n" ;
- }
-
- // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
- cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/usernm") + "\n";
- cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/rrgatno") + "\n";
- cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/mpphonno") + "\n";
- cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/email") + "\n";
- cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/deptnm") + "\n" ;
- cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/jobposnm") + "\n" ;
- cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/workplceaddr") + "\n" ;
- cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n";
- cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/acntno") + "\n" ;
- cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/depor") + "\n" ;
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
-
- var s = data;
- var j = 0;
- var p = 0;
- var k = 0;
- j = i;
-
- if ( s.indexOf("\n",p ) >=0 ){
-
- while ( (j = s.indexOf("\n",p ))>=0){
-
- var sdata = s.substring( p, j );
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = s.substring( p, s.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item/drug["+i+"]/druginfo["+k+"]/data", s);
- }
-
- }
- }
- }
- //공동연구자
- if ( grd_comn.rows > 0 ) {
-
- for ( var kk = 0; kk < grd_comn.rows -1; kk++ ) {
-
- if ( grd_comn.valueMatrix(kk+1, grd_comn.colRef("updtflag")) != "-" ) {
-
- i = i + 1;
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
-
- if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'I' ) {
- cnts1 = "▶ 상태 : 추가" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'U' ) {
- cnts1 = "▶ 상태 : 수정" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/comn["+ i +"]/updtflag") == 'D' ) {
- cnts1 = "▶ 상태 : 삭제" + "\n" ;
- }
-
- // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
- cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/usernm") + "\n";
- cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/rrgatno") + "\n";
- cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/mpphonno") + "\n";
- cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/email") + "\n";
- cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/deptnm") + "\n" ;
- cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/jobposnm") + "\n" ;
- cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/workplceaddr") + "\n" ;
- cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n";
- cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/acntno") + "\n" ;
- cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/comn["+ i +"]/depor") + "\n" ;
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
-
- var s = data;
- var j = 0;
- var p = 0;
- var k = 0;
- j = i;
-
- if ( s.indexOf("\n",p ) >=0 ){
-
- while ( (j = s.indexOf("\n",p ))>=0){
-
- var sdata = s.substring( p, j );
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = s.substring( p, s.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item/comn["+i+"]/comninfo["+k+"]/data", s);
- }
-
- }
- }
- }
- //코디네이터
- if ( grd_codi.rows > 0 ) {
-
- for ( var kk = 0; kk < grd_codi.rows -1; kk++ ) {
-
- if ( grd_codi.valueMatrix(kk+1, grd_codi.colRef("updtflag")) != "-" ) {
-
- i = i + 1;
-
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
-
- if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'I' ) {
- cnts1 = "▶ 상태 : 추가" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'U' ) {
- cnts1 = "▶ 상태 : 수정" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/codi["+ i +"]/updtflag") == 'D' ) {
- cnts1 = "▶ 상태 : 삭제" + "\n" ;
- }
-
- // cnts1 = "▶ 상태 : " + model.getValue("/root/rex/updtsubj/drug["+ i +"]/updtflag") + "\n" ;
- cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/usernm") + "\n";
- cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/rrgatno") + "\n";
- cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/mpphonno") + "\n";
- cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/email") + "\n";
- cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/deptnm") + "\n" ;
- cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/jobposnm") + "\n" ;
- cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/workplceaddr") + "\n" ;
- cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n";
- cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/acntno") + "\n" ;
- cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/codi["+ i +"]/depor") + "\n" ;
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
-
- var s = data;
- var j = 0;
- var p = 0;
- var k = 0;
- j = i;
- if ( s.indexOf("\n",p ) >=0 ){
-
- while ( (j = s.indexOf("\n",p ))>=0){
-
- var sdata = s.substring( p, j );
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = s.substring( p, s.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item/codi["+i+"]/codiinfo["+k+"]/data", s);
- }
-
- }
- }
- }
- //의뢰담당자
- if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") != "-" ) {
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
- data="";
-
- if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'I' ) {
- cnts1 = "▶ 상태 : 추가" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'U' ) {
- cnts1 = "▶ 상태 : 수정" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/perchgr[1]/updtflag") == 'D' ) {
- cnts1 = "▶ 상태 : 삭제" + "\n" ;
- }
-
- cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/usernm") + "\n";
- cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/rrgatno") + "\n";
- cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/mpphonno") + "\n";
- cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/email") + "\n";
- cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/deptnm") + "\n" ;
- cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/jobposnm") + "\n" ;
- cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/workplceaddr") + "\n" ;
- cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n";
- cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/acntno") + "\n" ;
- cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/perchgr[1]/depor") + "\n" ;
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
-
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
-
- var s = data;
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( s.indexOf("\n",p ) >=0 ){
-
- while ( (j = s.indexOf("\n",p ))>=0){
-
- var sdata = s.substring( p, j );
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = s.substring( p, s.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item/perchgr[1]/perchgrinfo["+k+"]/data", s);
- }
-
- }
- //책임연구자
- if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") != "-" ) {
- cnts1="";
- cnts2="";
- cnts3="";
- cnts4="";
- cnts5="";
- cnts6="";
- cnts7="";
- cnts8="";
- cnts9="";
- cnts10="";
- cnts11="";
- cnts12="";
- cnts13="";
- cnts14="";
- cnts15="";
- data="";
-
- if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'I' ) {
- cnts1 = "▶ 상태 : 추가" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'U' ) {
- cnts1 = "▶ 상태 : 수정" + "\n" ;
- } else if ( model.getValue("/root/rex/updtsubj/reser[1]/updtflag") == 'D' ) {
- cnts1 = "▶ 상태 : 삭제" + "\n" ;
- }
-
- cnts2 = "▶ 성명 : " + model.getValue("/root/rex/updtsubj/reser[1]/usernm") + "\n";
- cnts3 = "▶ 주민번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/rrgatno") + "\n";
- cnts4 = "▶ 연락처 : " + model.getValue("/root/rex/updtsubj/reser[1]/mpphonno") + "\n";
- cnts5 = "▶ 이메일 : " + model.getValue("/root/rex/updtsubj/reser[1]/email") + "\n";
- cnts6 = "▶ 소속 : " + model.getValue("/root/rex/updtsubj/reser[1]/deptnm") + "\n" ;
- cnts7 = "▶ 직위 : " + model.getValue("/root/rex/updtsubj/reser[1]/jobposnm") + "\n" ;
- cnts8 = "▶ 주소 : " + model.getValue("/root/rex/updtsubj/reser[1]/workplceaddr") + "\n" ;
- cnts9 = "▶ 은행 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n";
- cnts10 = "▶ 계좌번호 : " + model.getValue("/root/rex/updtsubj/reser[1]/acntno") + "\n" ;
- cnts11 = "▶ 예금주 : " + model.getValue("/root/rex/updtsubj/reser[1]/depor") + "\n" ;
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8 + cnts9 + cnts10 + cnts11;
-
- data = cnts1 + cnts2 + cnts3 + cnts4 + cnts5 + cnts6 + cnts7 + cnts8
-
- var s = data;
- var j = 0;
- var p = 0;
- var k = 0;
-
- if ( s.indexOf("\n",p ) >=0 ){
-
- while ( (j = s.indexOf("\n",p ))>=0){
-
- var sdata = s.substring( p, j );
- p = j + 1;
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
-
- }
- if ( p<s.length){ // 제일 마지막 엔터 뒤 문장 처리
- var sdata = s.substring( p, s.length );
- k = k + 1;
- model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", sdata.replace("\n","") );
- }
- } else { //엔터없을때 처리
- k = k + 1;
- model.makeNode("/root/rex/updtsubj");
- model.makeValue("/root/rex/updtsubj/item/reser[1]/reserinfo["+k+"]/data", s);
- }
-
- }
-
- exeReportPreview("PSIRB00700", "XMLSTR" , "/root/rex");
- }
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:455px; top:37px; width:585px; height:25px; ">
- <button id="button4" class="btn5_letter2" _auth="X" style="left:535px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TXIIA00116");
-
- window.close();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/searchitem/rtnresn" class="input_default" disabled="true" navindex="20" style="left:340px; top:2px; width:185px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:265px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려사유</caption>
- <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; "/>
- <caption id="caption18" class="cell_1" style="left:90px; top:0px; width:70px; height:23px; text-align:center; vertical-align:middle; ">반려일자</caption>
- <bool id="bool1" ref="/root/send/searchitem/rtnbtn" style="left:55px; top:3px; width:30px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/searchitem/rtnbtn") == 'true') {
- input2.disabled = false;
- input1.disabled = false;
-
- input1.value = getCurrentDate();
- } else {
- input2.disabled = true;
- input1.disabled = true;
-
- input2.value = "";
- }
- ]]>
- </script>
- </bool>
- <caption id="caption17" class="cell_1" style="left:0px; top:0px; width:55px; height:23px; text-align:center; vertical-align:middle; ">반려</caption>
- </group>
- <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:342px; top:10px; width:200px; height:19px; "/>
- <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:545px; top:10px; width:64px; height:19px; ">
- <caption>내려받기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var s = model.getValue("/root/main/reptdetl/item/attfile");
- var ss = s.split("/");
- var filepath = "";
- var filenm = "";
- for ( var i = 0; i < ss.length; i ++){
- if ( i < ss.length -2 ) {
- filepath = filepath+ss[i] +"/";
- } else if ( i < ss.length -1 ) {
- filepath = filepath+ss[i] ;
- } else {
- filenm = ss[i];
- }
-
- }
-
-
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRIRS00105")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <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; "/>
- <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:545px; top:10px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
- messageBox("임시저장 후 첨부파일을 올리세요", "I");
- return;
- }
-
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
-
- if ( filelist[0] != "") {
- if (submit("TXIRS00199")) {
- messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
- model.removeNodeset("/root/send/attach");
- parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- model.refresh();
- }
- }
-
- submit("TRIRB00104"); //결과보고서 내용 조회
- submit("TRIMR00101"); //변경내용요약 조회
-
-
- model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
- model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
- model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
- model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
- model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
- model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
- model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
- model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
- model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
- model.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="file"/>
- </datagrid>
- </group>
- <button id="btn_reptacpt" class="btn5_letter5" _auth="X" style="left:798px; top:10px; width:75px; height:19px; ">
- <caption>보고서접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- }
-
- /* if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("ipt_verupdtresn1");
- return;
- }*/
- if ( model.getValue("/root/main/updtsubj/item/stdystartdd") != '' && model.getValue("/root/main/updtsubj/item/stdyenddd") != '' && model.getValue("/root/main/updtsubj/item/ddupdtresn") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("ipt_ddupdtresn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/direccost") != '' && model.getValue("/root/main/updtsubj/item/direccost") != 0 && model.getValue("/root/main/updtsubj/item/costupdtresn") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("ipt_costupdtresn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/verplan") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn1") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("ipt_verupdtresn1");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/veraprv") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn2") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("verupdtresn2");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/vercrf") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn3") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("verupdtresn3");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/verib") != '' && model.getValue("/root/main/updtsubj/item/verupdtresn4") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("verupdtresn4");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/item/subjnm") != '' && model.getValue("/root/main/updtsubj/item/nmupdtresn") == '') {
- messageBox("변경사유는", "I003");
- model.setFocus("ipt_nmupdtresn");
- return;
- }
- //20090518 이창록 수정
- for ( i=1; i<grd_comn.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/updtflag") != 'D' ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "") {
- messageBox("공동연구자님의 성명은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/deptnm") == "" ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 소속은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/jobposnm") == "" ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 직위는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- /*if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/workplceaddr") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 주소는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/mpphonno") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 연락처는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/email") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 이메일은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/bankcd") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 은행은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/acntno") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 계좌번호는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/depor") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 예금주는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }*/
- }
- }
-
- var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
- if ( reptseqno != '') {
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- //변경계획서
- model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
- model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
- model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
- model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
- model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00102");
- } else {
- submit("TXIRB00101");
- }
-
- model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
-
- //변경내용요약
- model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
-
- model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- model.setValue("/root/send/savedata/reptkind", "5");
- model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
-
- //관리약사등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_drug.rows; i++ ) {
- model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
- var rCSV1 = getNodeListCSV(update1);
-
- if ( rCSV1 != null ) {
- for ( i=1; i<grd_drug.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
- messageBox("관리약사 성명을", "C002");
-
- submit("TXIRB00103");
-
- return;
- }
- }
- model.makeNode("/root/send/savedata/drug");
- model.setValue("/root/send/savedata/drug", rCSV1);
- }
- //공동연구자등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_comn.rows; i++ ) {
- model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
- var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
- var rCSV2 = getNodeListCSV(update2);
- if ( rCSV2 != null) {
- for ( i=1; i<grd_comn.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
- messageBox("공동연구자 성명을", "C002");
-
- submit("TXIRB00103");
-
- return;
- }
- }
- model.makeNode("/root/send/savedata/comn");
- model.setValue("/root/send/savedata/comn", rCSV2);
- }
- //코디네이터등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_codi.rows; i++ ) {
- model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
- var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
- var rCSV3 = getNodeListCSV(update3);
- if ( rCSV3 != null ) {
- for ( i=1; i<grd_codi.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
- messageBox("코디네이터 성명을", "C002");
-
- submit("TXIRB00103");
-
- return;
- }
- }
- model.makeNode("/root/send/savedata/codi");
- model.setValue("/root/send/savedata/codi", rCSV3);
- }
-
- //의뢰담당자등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_perchgr.rows; i++ ) {
- model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var updtflag = '';
- for ( var i = 0; i < grd_perchgr.rows; i++ ) {
- updtflag += model.getValue("/root/main/updtsubj/perchgr["+ i +"]/updtflag");
- }
-
- if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
- messageBox("의뢰담당자는 반드시 한명이 존재하여야 합니다.", "E999");
- return;
- }
-
- var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
- var rCSV4 = getNodeListCSV(update4);
- if ( rCSV4 != null ) {
- for ( i=1; i<grd_perchgr.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
- messageBox("의뢰담당자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/perchgr");
- model.setValue("/root/send/savedata/perchgr", rCSV4);
- }
-
- //책임연구자 그리드 필수입력항목 체크
- for ( i=1; i<grd_reser.rows; i++ ) {
- model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var updtflag = '';
- for ( var i = 0; i < grd_reser.rows; i++ ) {
- updtflag += model.getValue("/root/main/updtsubj/reser["+ i +"]/updtflag");
- }
-
- if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
- messageBox("책임연구자는 반드시 한명이 존재하여야 합니다.", "E999");
- return;
- }
-
- var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
- var rCSV5 = getNodeListCSV(update5);
- if ( rCSV5 != null ) {
- for ( i=1; i<grd_reser.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
- messageBox("책임연구자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/reser");
- model.setValue("/root/send/savedata/reser", rCSV5);
- }
-
- //실무자 그리드 필수입력항목 체크
- var update6 = instance1.selectNodes("/root/main/updtsubj/serv");
- var rCSV6 = getNodeListCSV(update6);
- if ( rCSV6 != null ) {
- for ( i=1; i<grd_serv.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/serv["+ i +"]/usernm") == "" ) {
- messageBox("실무자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/serv["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/serv");
- model.setValue("/root/send/savedata/serv", rCSV6);
- }
-
- submit("TXIMR00101");
- model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
- model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
- model.refresh();
- /*
- 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' ) {
- setParameter("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- open("SMISA00102");
- }
- */
- // parent.model.setValue("/root/temp/ivieweryn", "N"); //변경계획서 iviewer 호출 여부 = N
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- window.close();
-
- ]]>
- </script>
- </button>
- <button id="btn_tmpsave" class="btn5_letter4" _auth="X" style="left:684px; top:10px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- }
-
- var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
- if ( reptseqno != "") {
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
-
- // 변경계획서
- model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
-
- model.setValue("/root/send/savedata/reptkind", "5"); //보고서종류=변경계획서(5)
- model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
- model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
-
- for ( i=1; i<grd_comn.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/updtflag") != "D" ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "") {
- messageBox("공동연구자님의 성명은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/deptnm") == "" ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 소속은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/jobposnm") == "" ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 직위는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- /*if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/workplceaddr") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 주소는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/mpphonno") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 연락처는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/email") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 이메일은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/bankcd") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 은행은 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/acntno") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 계좌번호는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/depor") == '' ) {
- messageBox("공동연구자 " + model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") + "님의 예금주는 필수사항입니다.", "i999");
- model.setFocus("grd_comn");
- return;
- }*/
- }
- }
-
- if (model.getValue("/root/send/searchitem/consorflag") == "Y") {
- var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == "" ) {
- messageBox("병원을 ", "C002");
- }
- submit("TXIRB00102");
- } else {
- submit("TXIRB00101");
- }
-
- model.setValue("/root/send/searchitem/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- model.setValue("/root/send/searchitem/instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
-
- //변경내용요약
- model.copyNode("/root/send/savedata", "/root/main/updtsubj/item");
-
- model.setValue("/root/send/savedata/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/send/savedata/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/send/savedata/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- model.setValue("/root/send/savedata/reptkind", "5");
- model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
-
- //관리약사등록 그리드 필수입력항목 체크
- //model.removeNodeset("/root/send/tempnode/drug");
-
- for ( i=1; i<grd_drug.rows; i++ ) {
- model.setValue("/root/main/updtsubj/drug["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var update1 = instance1.selectNodes("/root/main/updtsubj/drug"); //instance1.selectNodes("/root/send/tempnode/drug");
- var rCSV1 = getNodeListCSV(update1);
-
- if ( rCSV1 != null ) {
- for ( i=1; i<grd_drug.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/drug["+ i +"]/usernm") == "" ) {
- messageBox("관리약사 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- }
- model.makeNode("/root/send/savedata/drug");
- model.setValue("/root/send/savedata/drug", rCSV1);
- }
- //공동연구자등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_comn.rows; i++ ) {
- model.setValue("/root/main/updtsubj/comn["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var update2 = instance1.selectNodes("/root/main/updtsubj/comn");
- var rCSV2 = getNodeListCSV(update2);
- if ( rCSV2 != null) {
- for ( i=1; i<grd_comn.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/comn["+ i +"]/usernm") == "" ) {
- messageBox("공동연구자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- }
- model.makeNode("/root/send/savedata/comn");
- model.setValue("/root/send/savedata/comn", rCSV2);
- }
- //코디네이터등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_codi.rows; i++ ) {
- model.setValue("/root/main/updtsubj/codi["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
- var update3 = instance1.selectNodes("/root/main/updtsubj/codi");
- var rCSV3 = getNodeListCSV(update3);
- if ( rCSV3 != null ) {
- for ( i=1; i<grd_codi.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/codi["+ i +"]/usernm") == "" ) {
- messageBox("코디네이터 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- }
- model.makeNode("/root/send/savedata/codi");
- model.setValue("/root/send/savedata/codi", rCSV3);
- }
-
- //의뢰담당자등록 그리드 필수입력항목 체크
- for ( i=1; i<grd_perchgr.rows; i++ ) {
- model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var updtflag = '';
- for ( var i = 0; i < grd_perchgr.rows; i++ ) {
- updtflag += model.getValue("/root/main/updtsubj/perchgr["+ i +"]/updtflag");
- }
-
- if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
- messageBox("의뢰담당자는 반드시 한명이 존재하여야 합니다.", "E999");
- return;
- }
-
- var update4 = instance1.selectNodes("/root/main/updtsubj/perchgr");
- var rCSV4 = getNodeListCSV(update4);
- if ( rCSV4 != null ) {
- for ( i=1; i<grd_perchgr.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/perchgr["+ i +"]/usernm") == "" ) {
- messageBox("의뢰담당자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/perchgr["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/perchgr");
- model.setValue("/root/send/savedata/perchgr", rCSV4);
- }
-
- //책임연구자 그리드 필수입력항목 체크
- for ( i=1; i<grd_reser.rows; i++ ) {
- model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/send/searchitem/reptseqno"));
- }
-
- var updtflag = '';
- for ( var i = 0; i < grd_reser.rows; i++ ) {
- updtflag += model.getValue("/root/main/updtsubj/reser["+ i +"]/updtflag");
- }
-
- if ( updtflag == 'D' || updtflag == '-I' || updtflag == 'UI' ) {
- messageBox("책임연구자는 반드시 한명이 존재하여야 합니다.", "E999");
- return;
- }
-
- var update5 = instance1.selectNodes("/root/main/updtsubj/reser");
- var rCSV5 = getNodeListCSV(update5);
- if ( rCSV5 != null ) {
- for ( i=1; i<grd_reser.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/reser["+ i +"]/usernm") == "" ) {
- messageBox("책임연구자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/reser["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/reser");
- model.setValue("/root/send/savedata/reser", rCSV5);
- }
- //실무자 그리드 필수입력항목 체크
- var update6 = instance1.selectNodes("/root/main/updtsubj/serv");
- var rCSV6 = getNodeListCSV(update6);
- if ( rCSV6 != null ) {
- for ( i=1; i<grd_serv.rows; i++ ) {
- if ( model.getValue("/root/main/updtsubj/serv["+ i +"]/usernm") == "" ) {
- messageBox("실무자 성명을", "C002");
- submit("TXIRB00103");
- return;
- }
- model.setValue("/root/main/updtsubj/serv["+ i +"]/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
- model.makeNode("/root/send/savedata/serv");
- model.setValue("/root/send/savedata/serv", rCSV6);
- }
-
- submit("TXIMR00101");
-
- model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
- model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
- model.refresh();
- /*
- 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' ) {
- setParameterd("subjid", model.getValue("/root/main/reptdetl/item/subjid"));
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- open("SMISA00102");
- }
- */
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
-
- submit("TRIRB00104"); //변경계획서 내용 조회
- submit("TRIMR00101"); //변경내용요약 조회
-
- model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
- model.setValue("/root/main/reptdetl/item/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
- model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
- model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
- model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
- model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
- model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
- model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" _auth="X" style="left:752px; top:10px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- }
-
- var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
- if ( reptseqno != '') {
- model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
- }
-
- if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
- /* var instcd = model.getValue("/root/send/savedata/instcd");
- if ( instcd == '' ) {
- messageBox("병원을 ", "C002");
- }*/
- submit("TXIRB00104");
- } else {
- submit("TXIRB00103");
- }
-
- model.refresh();
-
- parent.btn_report5.selected = true;
- parent.btn_report5.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:615px; top:10px; width:64px; height:19px; ">
- <caption>첨부삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //접수 후 수정불가
- if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
- messageBox("이미 접수되어 저장 또는 수정", "E001");
- return;
- } else {
- if (submit("TXIRS00198")) {
- messageBox("첨부파일이 삭제되었습니다.","I999");
-
- model.refresh();
- }
- }
-
- if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
- submit("TRIRB00104"); //결과보고서 내용 조회
- submit("TRIMR00101"); //변경내용요약 조회
- }
-
- ]]>
- </script>
- </button>
- <group id="group2" style="left:5px; top:295px; width:1055px; height:625px; border-color:#ff0000; border-style:solid; ">
- <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; "/>
- <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; ">
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- // ***** kjw추가 (2010.01.13) *****
- if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0) {
- messageBox("이미 책정된 [문서보관비]가 있으므로 [연구비 담당자]에게 문의하시기 바랍니다.\n전화번호 : 02-2258-7857", "I999");
- return;
- }
- // ***** 2010.01.13 *****
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (model.getValue("/root/main/updtsubj/item/hiddocuamt") > 0) {
- input5.value= "";
- inputEnterKey("input5", "xforms-value-changed");
- return false;
- }
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:525px; top:102px; width:100px; height:23px; text-align:center; vertical-align:middle; ">약제관리비</caption>
- <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; ">
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- // ***** kjw추가 (2010.01.13) *****
- if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0) {
- messageBox("이미 책정된 [약제관리비]가 있으므로 [연구비 담당자]에게 문의하시기 바랍니다.\n전화번호 : 02-2258-7857", "I999");
- return;
- }
- // ***** 2010.01.13 *****
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (model.getValue("/root/main/updtsubj/item/hiddrugamt") > 0) {
- input4.value= "";
- inputEnterKey("input4", "xforms-value-changed");
- return false;
- }
- ]]>
- </script>
- </input>
- <caption id="caption28" class="cell_1" style="left:213px; top:102px; width:79px; height:23px; text-align:center; vertical-align:middle; ">본원목표례수</caption>
- <caption id="caption27" class="cell_1" style="left:5px; top:102px; width:106px; height:23px; text-align:center; vertical-align:middle; ">전체증례수</caption>
- <caption id="caption30" class="cell_1" style="left:733px; top:102px; width:79px; height:23px; text-align:center; vertical-align:middle; ">문서보관비</caption>
- <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; "/>
- <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; "/>
- <button id="button1" class="btn2_letter3" _auth="X" style="left:409px; top:498px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_perchgr.rows < 3 ) {
- grd_perchgr.addRow(true, true);
- grd_perchgr.colDisabled(grd_perchgr.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userkind", "5"); //5=담당자
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "I");
- } else {
- messageBox("행추가를 하실 수 없습니다.", "I999");
- return;
- }
- ]]>
- </script>
- </button>
- <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; "/>
- <button id="button2" class="btn2_letter3" _auth="X" style="left:464px; top:498px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_perchgr.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag")=="I"){
- grd_perchgr.deleterow(grd_perchgr.row);
- } else {
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "D");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption50" class="cell_1" style="left:525px; top:180px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <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; "/>
- <line id="line20" class="line_3" style="x1:525px; y1:358px; x2:1040px; y2:358px; "/>
- <caption id="caption51" class="cell_1" style="left:213px; top:128px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <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; "/>
- <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; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 2010.06.30 추가
- if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/verib") == "")
- messageBox("IB 항목을 입력하세요", "I999");
- ]]>
- </script>
- </input>
- <line id="line21" class="line_1" style="x1:5px; y1:386px; x2:520px; y2:386px; "/>
- <button id="btn_rowadd2" class="btn2_letter3" _auth="X" style="left:930px; top:229px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_comn.addRow(true, true);
- grd_comn.colDisabled(grd_comn.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption40" class="cell_1" style="left:213px; top:154px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <caption id="caption52" class="cell_1" style="left:213px; top:76px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <button id="btn_rowadd3" class="btn2_letter3" _auth="X" style="left:409px; top:364px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_codi.addRow(true, true);
- grd_codi.colDisabled(grd_codi.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/userkind", "3"); //3=코디네이터
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "I");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption41" class="cell_1" style="left:525px; top:128px; width:100px; height:23px; text-align:center; vertical-align:middle; ">CRF Version</caption>
- <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; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 2010.06.30 추가
- if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/verplan") == "")
- messageBox("계획서 항목을 입력하세요", "I999");
- ]]>
- </script>
- </input>
- <caption id="caption53" class="cell_1" style="left:325px; top:50px; width:100px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <button id="btn_rowadd4" class="btn2_letter3" _auth="X" style="left:409px; top:229px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_drug.addRow(false);
- grd_drug.colDisabled(grd_drug.colRef("bankcd"))=true;
- grd_drug.colDisabled(grd_drug.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/userkind", "4"); //4=관리약사
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "I");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption42" class="tit_2" style="left:530px; top:235px; width:108px; height:13px; ">공동연구자등록</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:505px; width:113px; height:13px; ">의뢰담당자 변경</caption>
- <caption id="caption43" class="tit_2" style="left:5px; top:371px; width:108px; height:13px; ">코디네이터등록</caption>
- <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; "/>
- <caption id="caption44" class="tit_2" style="left:5px; top:235px; width:100px; height:13px; ">관리약사등록</caption>
- <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; "/>
- <caption id="caption45" class="cell_1" style="left:525px; top:154px; width:100px; height:23px; text-align:center; vertical-align:middle; ">IB Version</caption>
- <line id="line15" class="line_1" style="x1:5px; y1:45px; x2:1040px; y2:45px; "/>
- <caption id="caption46" class="cell_1" style="left:5px; top:180px; width:106px; height:23px; text-align:center; vertical-align:middle; ">과제명</caption>
- <line id="line16" class="line_3" style="x1:5px; y1:493px; x2:520px; y2:493px; "/>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var direccost = Math.ceil(model.getValue("/root/main/updtsubj/item/direccost") * 0.1) *10;
-
- // alert(direccost);
- model.setValue("/root/main/updtsubj/item/direccost", direccost);
- //ceiling( /root/main/updtsubj/item/direccost * 0.1) * 10
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption35" class="tit_2" style="left:5px; top:30px; width:158px; height:13px; ">변경내용요약</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:520px; x2:520px; y2:520px; "/>
- <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; "/>
- <caption id="caption47" style="left:212px; top:55px; width:15px; height:20px; ">~</caption>
- <line id="line17" class="line_1" style="x1:5px; y1:250px; x2:520px; y2:250px; "/>
- <button id="btn_rowdel2" class="btn2_letter3" _auth="X" style="left:985px; top:229px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_comn.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag")=="I"){
- grd_comn.deleterow(grd_comn.row);
- } else {
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "D");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption36" class="cell_1" style="left:5px; top:50px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구기간</caption>
- <caption id="caption15" class="cell_1" style="left:428px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">센터간접비(5%)</caption>
- <line id="line2" class="line_3" style="x1:5px; y1:619px; x2:520px; y2:619px; "/>
- <caption id="caption48" class="cell_1" style="left:733px; top:128px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <line id="line18" class="line_1" style="x1:525px; y1:250px; x2:1040px; y2:250px; "/>
- <button id="btn_rowdel3" class="btn2_letter3" _auth="X" style="left:464px; top:364px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_codi.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag")=="I"){
- grd_codi.deleterow(grd_codi.row);
- } else {
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "D");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption37" class="cell_1" style="left:5px; top:76px; width:106px; height:23px; text-align:center; vertical-align:middle; ">직접비(100%)</caption>
- <caption id="caption16" class="cell_1" style="left:632px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">병원간접비(10%)</caption>
- <caption id="caption7" class="cell_1" style="left:835px; top:75px; width:106px; height:23px; text-align:center; vertical-align:middle; ">연구비총액(115%)</caption>
- <caption id="caption49" class="cell_1" style="left:733px; top:154px; width:79px; height:23px; text-align:center; vertical-align:middle; ">변경사유</caption>
- <line id="line19" class="line_3" style="x1:5px; y1:358px; x2:520px; y2:358px; "/>
- <button id="btn_rowdel4" class="btn2_letter3" _auth="X" style="left:464px; top:229px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_drug.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag")=="I"){
- grd_drug.deleterow(grd_drug.row);
- } else {
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "D");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption38" class="cell_1" style="left:5px; top:128px; width:106px; height:23px; text-align:center; vertical-align:middle; ">계획서Version</caption>
- <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; "/>
- <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; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 2010.06.30 추가
- if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/vercrf") == "")
- messageBox("CRF 항목을 입력하세요", "I999");
- ]]>
- </script>
- </input>
- <caption id="caption39" class="cell_1" style="left:5px; top:154px; width:106px; height:23px; text-align:center; vertical-align:middle; ">동의서Version</caption>
- <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; "/>
- <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; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 2010.06.30 추가
- if (model.getValue("/root/send/searchitem/consorflag") == "Y" && model.getValue("/root/main/updtsubj/item/veraprv") == "")
- messageBox("동의서 항목을 입력하세요", "I999");
- ]]>
- </script>
- </input>
- <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; "/>
- <input id="ipt_subjnm" ref="/root/main/updtsubj/item/subjnm" class="input_default" navindex="27" style="left:115px; top:181px; width:405px; height:19px; "/>
- <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; "/>
- <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; "/>
- <button id="button25" class="btn2_letter8" visibility="hidden" _auth="R" style="left:820px; top:229px; width:108px; height:19px; ">
- <caption>신규외부연구등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/usernm", getParameter("insusernm"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/deptnm", getParameter("insposnm"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/jobposnm", getParameter("insjobposnm"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/workplceaddr", getParameter("insworkplceaddr"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/mpphonno", getParameter("inscmpytelno"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/email", getParameter("insemail"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/bankcd", getParameter("insbankcd"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/acntno", getParameter("insacntno"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/depor", getParameter("insdepor"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/cmt", getParameter("inscmt"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/instcd", getParameter("insinstcd"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userid", getParameter("insuserid"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/rrgstno", getParameter("insrrgstno"));
- model.setValue("/root/main/updtsubj/comn[" + grd_comn.row + "]/userseqno", getParameter("insuserseqno"));
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/userkind", "2"); //2=공동연구자
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "I"); */
- clearParameter("instcd");
- clearParameter("target");
- clearParameter("userflag");
- setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("target","respo");
- setParameter("userflag","2");
- window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- ]]>
- </script>
- </button>
- <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; "/>
- <caption id="caption54" class="cell_1" visibility="hidden" style="left:519px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">연구비총액</caption>
- <caption id="caption55" class="cell_1" visibility="hidden" style="left:692px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">센타간접비</caption>
- <caption id="caption56" class="cell_1" visibility="hidden" style="left:866px; top:29px; width:80px; height:23px; text-align:center; vertical-align:middle; ">병원간접비</caption>
- <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; "/>
- <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; "/>
- <caption id="caption20" style="left:114px; top:9px; width:908px; height:20px; font-weight:bold; color:#cc3300; ">※ 연구기간, 연구비, 계획서/동의서 버전, 과제명, 인력 등이 변경되었을 경우 "반드시 해당항목에 변경될 내용을 '다시한번 더' 입력해주시기 바랍니다."</caption>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="deptnm" type="output"/>
- <col ref="jobposnm" type="output"/>
- <col ref="workplceaddr" type="input"/>
- <col ref="mpphonno" type="input"/>
- <col ref="email" type="input"/>
- <col class="gridcombo" ref="bankcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbank/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="input"/>
- <col ref="depor" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="userkind" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="userseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_comn.col == grd_comn.colRef("usernm") ) {
- setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
- setParameter("target","resp");
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("hospnm", "");
- setParameter("jobposnm", "");
- window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
-
-
- if ( getParameter("usernm") != '' ) {
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/usernm", getParameter("usernm"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/userid", getParameter("userid"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/deptnm", getParameter("deptnm"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/mpphonno", getParameter("cmpytelno"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/comn["+grd_comn.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
- }
- }
- //grd_comn.isReadOnly(grd_comn.colRef("usernm"), grd_comn.row)=true;
-
- grd_comn.refresh();
-
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("deptnm", "");
- setParameter("jobposnm", "");
- setParameter("workplceaddr", "");
- setParameter("cmpytelno", "");
- setParameter("email", "");
- setParameter("bankcd", "");
- setParameter("acntno", "");
- setParameter("depor", "");
- setParameter("rrgstno", "");
- //var rownum = grd_mealprcpcd.row - 1;
- // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
- // grd_drug.addStatus(grd_drug.row, "update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_comn.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/comn["+ grd_comn.row +"]/updtflag", "U");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" type="input" visibility="hidden" format="999999-9999999"/>
- <col ref="deptnm" type="output"/>
- <col ref="jobposnm" type="output"/>
- <col ref="workplceaddr" type="input"/>
- <col ref="mpphonno" type="input"/>
- <col ref="email" type="input"/>
- <col class="gridcombo" ref="bankcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbank/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="input"/>
- <col ref="depor" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="userkind" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="userseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_codi.col == grd_codi.colRef("usernm") ) {
- setParameter("userkind", "3"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
-
- if ( getParameter("usernm") != '' ) {
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/usernm", getParameter("usernm"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/userid", getParameter("userid"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/deptnm", getParameter("hospnm"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/mpphonno", getParameter("cmpytelno"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/codi["+grd_codi.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
- }
- }
-
- //grd_codi.isReadOnly(grd_codi.colRef("usernm"), grd_codi.row)=true;
- grd_codi.refresh();
-
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("deptnm", "");
- setParameter("jobposnm", "");
- setParameter("workplceaddr", "");
- setParameter("cmpytelno", "");
- setParameter("email", "");
- setParameter("bankcd", "");
- setParameter("acntno", "");
- setParameter("depor", "");
- setParameter("rrgstno", "");
-
- //var rownum = grd_mealprcpcd.row - 1;
- // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
- // grd_drug.addStatus(grd_drug.row, "update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_codi.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/codi["+ grd_codi.row +"]/updtflag", "U");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="userseqno" visibility="hidden"/>
- <col ref="mpphonno" type="output"/>
- <col ref="email" type="output"/>
- <col ref="deptnm" type="output"/>
- <col ref="jobposnm" type="output"/>
- <col ref="workplceaddr" type="output"/>
- <col class="gridcombo" disabled="true" ref="bankcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbank/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="output"/>
- <col ref="depor" type="output"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="userkind" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_drug.col == grd_drug.colRef("usernm") ) {
- setParameter("userkind", "4"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","code", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- //clearParameter("reqinstcd");
-
- if ( getParameter("usernm") != '' ) {
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/usernm", getParameter("usernm"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/userid", getParameter("userid"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/deptnm", getParameter("deptnm"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/mpphonno", getParameter("cmpytelno"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/drug["+grd_drug.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
- }
-
- }
-
- //grd_drug.isReadOnly(grd_drug.colRef("usernm"), grd_drug.row)=true;
- grd_drug.refresh();
-
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("deptnm", "");
- setParameter("jobposnm", "");
- setParameter("workplceaddr", "");
- setParameter("cmpytelno", "");
- setParameter("email", "");
- setParameter("bankcd", "");
- setParameter("acntno", "");
- setParameter("depor", "");
- setParameter("rrgstno", "");
-
- //var rownum = grd_mealprcpcd.row - 1;
- // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
- // grd_drug.addStatus(grd_drug.row, "update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_drug.col == grd_drug.colRef("usernm")){
- //grd_drug.editCell();
- grd_drug.colAttribute(grd_drug.colRef("usernm"),"editable")="false";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/drug["+ grd_drug.row +"]/updtflag", "U");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="userseqno" visibility="hidden"/>
- <col ref="deptnm" type="input"/>
- <col ref="jobposnm" type="input"/>
- <col ref="mpphonno" type="input"/>
- <col ref="email" type="input"/>
- <col ref="bankcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbank/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="input" visibility="hidden"/>
- <col ref="depor" type="input" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="userkind" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="workplceaddr" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_perchgr.col == grd_perchgr.colRef("usernm") ) {
-
- if ( model.getValue("/root/send/searchitem/croinstcd") != '' ) {
- var reqinstcd = model.getValue("/root/send/searchitem/croinstcd");
- } else {
- var reqinstcd = model.getValue("/root/send/searchitem/reqinstcd");
- }
-
- setParameter("reqinstcd",reqinstcd);
- window.load("../../../crc/comsubjweb/xrw/SMIMR00300_담당자조회팝업.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- /*
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/userid", getParameter("perchgrid"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/usernm", getParameter("nm"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno1", getParameter("rrgstno").substr(0,6));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/rrgstno2", getParameter("rrgstno").substr(6,7));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/deptnm", getParameter("posnm"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/mpphonno", getParameter("cntctelno"));
- */
- if ( getParameter("nm") != '' ) {
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/usernm", getParameter("nm"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/userid", getParameter("perchgrid"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/deptnm", getParameter("posnm"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/mpphonno", getParameter("cntctelno"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/perchgr["+ grd_perchgr.row +"]/updtflag", "U");
- }
- }
-
- setParameter("reqinstcd", "");
-
- grd_perchgr.refresh();
- //var rownum = grd_mealprcpcd.row - 1;
- // modal("SPANB00201", 0,100,150,"SPANB00201", "/root/main/mealprcpcd/data["+rownum+"]", "/root/temp/receivedata");
- // grd_drug.addStatus(grd_drug.row, "update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_perchgr.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/perchgr["+grd_perchgr.row+"]/updtflag", "U");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption22" visibility="hidden" style="left:119px; top:369px; width:320px; height:20px; font-size:8pt; font-weight:bold; color:#0000ff; ">※ 코디네이터는 모든 항목이 필수 입력 항목입니다.</caption>
- <caption id="caption23" style="left:119px; top:27px; width:410px; height:20px; font-weight:bold; color:#339933; ">* 단, 변경되지 않는 항목란에는 글씨를 입력하지 마십시오.</caption>
- <caption id="caption24" class="tit_2" style="left:530px; top:371px; width:113px; height:13px; ">책임연구자 변경</caption>
- <line id="line4" class="line_1" style="x1:525px; y1:386px; x2:1040px; y2:386px; "/>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="jobposnm"/>
- <col ref="workplceaddr"/>
- <col ref="mpphonno"/>
- <col ref="email"/>
- <col ref="bankcd"/>
- <col ref="acntno"/>
- <col ref="depor"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid"/>
- <col ref="userkind" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_reser.col == grd_reser.colRef("usernm") ) {
- setParameter("userkind", "1"); //userkind : 2-공동연구자(내부,외부), 3-코디네이터, 4-관리약사
- setParameter("target","resp");
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("hospnm", "");
- setParameter("jobposnm", "");
- window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
-
-
- if ( getParameter("usernm") != "" ) {
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/usernm", getParameter("usernm"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/userid", getParameter("userid"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/deptnm", getParameter("deptnm"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/mpphonno", getParameter("cmpytelno"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "U");
- }
- }
-
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("deptnm", "");
- setParameter("jobposnm", "");
- setParameter("workplceaddr", "");
- setParameter("cmpytelno", "");
- setParameter("email", "");
- setParameter("bankcd", "");
- setParameter("acntno", "");
- setParameter("depor", "");
- setParameter("rrgstno", "");
-
- grd_reser.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag", "U");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_3" style="x1:526px; y1:493px; x2:1040px; y2:493px; "/>
- <button id="button6" class="btn2_letter8" visibility="hidden" _auth="X" style="left:299px; top:229px; width:108px; height:19px; ">
- <caption>신규관리약사등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- clearParameter("instcd");
- clearParameter("target");
- clearParameter("userflag");
- setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("target","respo");
- setParameter("userflag","4");
- window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter9" visibility="hidden" _auth="X" style="left:288px; top:364px; width:119px; height:19px; ">
- <caption>신규코디네이터등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- clearParameter("instcd");
- clearParameter("target");
- clearParameter("userflag");
- setParameter("instcd",model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("target","respo");
- setParameter("userflag","3");
- window.load("../../comsubjweb/xrw/SMIMR00400_외부연구원등록.xrw","modal","basis", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" _auth="X" style="left:929px; top:365px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_reser.rows < 3 ) {
- grd_reser.addRow(true, true);
- grd_reser.colDisabled(grd_reser.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/userkind", "1"); //20091026,pwh: '1' 로 변경, 책임연구자 변경이므로
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "I");
- } else {
- messageBox("행추가를 하실 수 없습니다.", "I999");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" _auth="X" style="left:984px; top:365px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_reser.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag")=="I"){
- grd_reser.deleterow(grd_reser.row);
- } else {
- model.setValue("/root/main/updtsubj/reser["+ grd_reser.row +"]/updtflag", "D");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption25" class="cell_1" style="left:5px; top:206px; width:106px; height:22px; text-align:center; vertical-align:middle; ">영문과제명</caption>
- <input id="ipt_engsubjnm" ref="/root/main/updtsubj/item/engsubjnm" class="input_default" navindex="29" style="left:115px; top:206px; width:405px; height:19px; "/>
- <caption id="caption26" class="tit_2" style="left:530px; top:504px; width:113px; height:13px; ">실무자 변경</caption>
- <button id="button12" class="btn2_letter3" _auth="X" style="left:929px; top:498px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_serv.rows < 3 ) {
- grd_serv.addRow(true, true);
- grd_serv.colDisabled(grd_serv.colRef("updtflag"))=true;
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/instcd", model.getValue("/root/send/searchitem/instcd"));
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/subjid", model.getValue("/root/send/searchitem/subjid"));
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/reptkind", "5");
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/userkind", "9"); // 실무자 사용자구분값("9")
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "I");
- } else {
- messageBox("행추가를 하실 수 없습니다.", "I999");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter3" _auth="X" style="left:984px; top:498px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_serv.selectedRows == 0)
- {
- messageBox("삭제할 행을 선택하여 주세요", "I999");
- return;
- }
- else
- {
- if ( model.getValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag")=="I"){
- grd_serv.deleterow(grd_serv.row);
- } else {
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "D");
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line6" class="line_1" style="x1:525px; y1:519px; x2:1040px; y2:519px; "/>
- <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; ">
- <col disabled="true" ref="updtflag" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>추가</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="usernm" type="inputbutton"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="jobposnm"/>
- <col ref="workplceaddr"/>
- <col ref="mpphonno"/>
- <col ref="email"/>
- <col ref="bankcd"/>
- <col ref="acntno"/>
- <col ref="depor"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reptseqno" visibility="hidden"/>
- <col ref="reptkind" visibility="hidden"/>
- <col ref="userid"/>
- <col ref="userkind" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_serv.col == grd_serv.colRef("usernm") ) {
- setParameter("userkind", "0");
- setParameter("target","resp");
- setParameter("instcd", model.getValue("/root/main/reptdetl/item/instcd"));
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("hospnm", "");
- setParameter("jobposnm", "");
-
- // ***** 실무자에 보여질 사용자ID 조회 *****
- var getid1 = "";
- var getid2 = "";
- var getid3 = "";
- var getid4 = "";
- var getid5 = "";
- var getid = "";
-
- // 관리약사
- for (var i = 1; i < grd_drug.rows; i++)
- {
- if (getid1 == "")
- getid1 = model.getValue(grd_drug.nodeset + "[" + i +"]/userid");
- else
- getid1 += ";" + model.getValue(grd_drug.nodeset + "[" + i +"]/userid");
- }
- // 공동연구자
- for (var i = 1; i < grd_comn.rows; i++)
- {
- if (getid2 == "")
- getid2 = model.getValue(grd_comn.nodeset + "[" + i +"]/userid");
- else
- getid2 += ";" + model.getValue(grd_comn.nodeset + "[" + i +"]/userid");
- }
- // 코디네이터
- for (var i = 1; i < grd_codi.rows; i++)
- {
- if (getid3 == "")
- getid3 = model.getValue(grd_codi.nodeset + "[" + i +"]/userid");
- else
- getid3 += ";" + model.getValue(grd_codi.nodeset + "[" + i +"]/userid");
- }
- // 책임연구자
- for (var i = 1; i < grd_reser.rows; i++)
- {
- if (getid4 == "")
- getid4 = model.getValue(grd_reser.nodeset + "[" + i +"]/userid");
- else
- getid4 += ";" + model.getValue(grd_reser.nodeset + "[" + i +"]/userid");
- }
- // 의뢰담당자
- for (var i = 1; i < grd_perchgr.rows; i++)
- {
- if (getid5 == "")
- getid5 = model.getValue(grd_perchgr.nodeset + "[" + i +"]/userid");
- else
- getid5 += ";" + model.getValue(grd_perchgr.nodeset + "[" + i +"]/userid");
- }
-
- if (getid1 == "" && getid2 == "" && getid3 == "" && getid4 == "" && getid5 == "")
- getid = "@;"; // 검색안되게 임의 값 셋팅
- else
- getid = getid1 + ";" + getid2 + ";" + getid3 + ";" + getid4 + ";" + getid5;
- setParameter("realuserid", getid);
- // ***** ID 조회 끝 *****
-
- window.load("../../../crc/comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:200px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
-
-
- if ( getParameter("usernm") != "" ) {
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/usernm", getParameter("usernm"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/userid", getParameter("userid"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/deptnm", getParameter("deptnm"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/jobposnm", getParameter("jobposnm"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/workplceaddr", getParameter("workplceaddr"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/mpphonno", getParameter("cmpytelno"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/email", getParameter("email"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/bankcd", getParameter("bankcd"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/acntno", getParameter("acntno"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/depor", getParameter("depor"));
- model.setValue("/root/main/updtsubj/serv["+grd_serv.row+"]/rrgstno", getParameter("rrgstno"));
-
- if ( model.getValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag") == "-" ) {
- model.setValue("/root/main/updtsubj/serv["+ grd_serv.row +"]/updtflag", "U");
- }
- }
-
- setParameter("usernm", "");
- setParameter("userid", "");
- setParameter("deptnm", "");
- setParameter("jobposnm", "");
- setParameter("workplceaddr", "");
- setParameter("cmpytelno", "");
- setParameter("email", "");
- setParameter("bankcd", "");
- setParameter("acntno", "");
- setParameter("depor", "");
- setParameter("rrgstno", "");
-
- grd_serv.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag") == '-' ) {
- model.setValue("/root/main/updtsubj/reser["+grd_reser.row+"]/updtflag", "U");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_3" style="x1:526px; y1:619px; x2:1040px; y2:620px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|