SMRSC05403_기관별약품코드등록.xrw 291 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>기관별약품코드등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <good>
  12. <goodlist/>
  13. </good>
  14. <gooddet>
  15. <gooddetlist/>
  16. <goodconstlist/>
  17. <goodinstlist/>
  18. <goodprodcmpyinfo>
  19. <gooddrugprodcmpylist/>
  20. </goodprodcmpyinfo>
  21. </gooddet>
  22. <goodbaseqty>
  23. <goodbaseqtylist/>
  24. </goodbaseqty>
  25. <goodexcel>
  26. <gooddetgoodexcellist/>
  27. </goodexcel>
  28. <rscdpbns>
  29. <rscdpbnslist/>
  30. </rscdpbns>
  31. </list>
  32. <costhistinfolist>
  33. <appdd/>
  34. <rctpdisburseunitcost/>
  35. <medcarecalcscor/>
  36. <suplplcecd/>
  37. </costhistinfolist>
  38. <item/>
  39. <gooddet>
  40. <gooddetlist>
  41. </gooddetlist>
  42. </gooddet>
  43. <goodcopy>
  44. <goodlist/>
  45. </goodcopy>
  46. </main>
  47. <send>
  48. <save>
  49. <goodlist/>
  50. <gooddetlist/>
  51. <setautoins>
  52. <setyn>N</setyn>
  53. </setautoins>
  54. <rscdpbnslist/>
  55. <goodbaseqtylist/>
  56. </save>
  57. <goodlist>
  58. <goodflag/>
  59. <goodnm/>
  60. <lrgcd/>
  61. <instcd/>
  62. <edicd/>
  63. <goodcd/>
  64. <mdlcd/>
  65. <spec/>
  66. <!--
  67. <prodcmpy/>
  68. <prodcmpynm/>
  69. -->
  70. <smlcd/>
  71. <model/>
  72. <mdlnm/>
  73. <lrgnm/>
  74. <smlnm/>
  75. <instflag>Y</instflag>
  76. <oldcd/>
  77. <asisgoodcd/>
  78. <suppcustcd/>
  79. <suppcustnm/>
  80. <delyn/>
  81. <contractyn/>
  82. <exfromdd/>
  83. <extodd/>
  84. <excurrenttime/>
  85. <exinstcd/>
  86. <chkdd/>
  87. <exactsearch/>
  88. <comnm/>
  89. <nonusegoodview/>
  90. <goodnmsearch/>
  91. <mngtcls/>
  92. <reprflag/>
  93. <exmngtcls/>
  94. <spread>
  95. <prodcmpycd/>
  96. <prodcmpynm/>
  97. <welfprt/>
  98. <statsflag/>
  99. <purccls/>
  100. <conflag/>
  101. <gnrlspcl/>
  102. <ascitflag/>
  103. <welfprtnm/>
  104. </spread>
  105. </goodlist>
  106. <gooddetlist>
  107. <goodcd/>
  108. <fromdd/>
  109. <useyn/>
  110. <instcd/>
  111. </gooddetlist>
  112. <goodcopy>
  113. <goodflag/>
  114. <lrgcd/>
  115. <mdlcd/>
  116. </goodcopy>
  117. <goodbaseqty>
  118. <instcd/>
  119. <goodflag/>
  120. <goodcd/>
  121. </goodbaseqty>
  122. <rscdpbns>
  123. <goodcd/>
  124. <instcd/>
  125. <fromdd/>
  126. <goodflag/>
  127. </rscdpbns>
  128. </send>
  129. <init>
  130. <instflag>
  131. <label>기관</label>
  132. <value>Y</value>
  133. <label>전체</label>
  134. <value/>
  135. </instflag>
  136. <goodflag/>
  137. <deliveunit/>
  138. <reqprid/>
  139. <mngtflag/>
  140. <purcflag/>
  141. <instcd/>
  142. <proddrugsetflag/>
  143. <instnm/>
  144. <allsizeyn>
  145. <label>예</label>
  146. <value>Y</value>
  147. <label>아니오</label>
  148. <value>N</value>
  149. </allsizeyn>
  150. <tmpreqflag>
  151. <label>청구가능</label>
  152. <value>Y</value>
  153. <label>청구불가능</label>
  154. <value>N</value>
  155. </tmpreqflag>
  156. <radio2>
  157. <label>신청유</label>
  158. <value>Y</value>
  159. <label>신청무</label>
  160. <value>N</value>
  161. </radio2>
  162. <expnyn>
  163. <label>고가</label>
  164. <value>Y</value>
  165. <label>고가아님</label>
  166. <value>N</value>
  167. </expnyn>
  168. <keepmthd>
  169. <label>실온</label>
  170. <value>1</value>
  171. <label>냉소</label>
  172. <value>2</value>
  173. <label>냉장</label>
  174. <value>3</value>
  175. <label>냉동</label>
  176. <value>4</value>
  177. </keepmthd>
  178. <gnrlspcl>
  179. <label>전문</label>
  180. <value>1</value>
  181. <label>일반</label>
  182. <value>2</value>
  183. <label>공산품</label>
  184. <value>3</value>
  185. <label>의약외품</label>
  186. <value>4</value>
  187. <label>기타</label>
  188. <value>5</value>
  189. </gnrlspcl>
  190. <proddrugsetflag>
  191. <label>제제약</label>
  192. <value>1</value>
  193. </proddrugsetflag>
  194. <exactsearch>
  195. <label>일치</label>
  196. <value>Y</value>
  197. <label>포함</label>
  198. <value/>
  199. </exactsearch>
  200. <goodnmsearch>
  201. <label>영문명</label>
  202. <value>eng</value>
  203. <label>한글명</label>
  204. <value/>
  205. </goodnmsearch>
  206. <nonusegoodview>
  207. <label>포함</label>
  208. <value>Y</value>
  209. <label>제외</label>
  210. <value/>
  211. </nonusegoodview>
  212. <P0133list/>
  213. <P0142list/>
  214. <R0355list/>
  215. <R0356list/>
  216. <cmb_statsflag_s>
  217. <comcodelist/>
  218. </cmb_statsflag_s>
  219. <cmb_purccls_s>
  220. <comcodelist/>
  221. </cmb_purccls_s>
  222. <cmb_conflag_s>
  223. <comcodelist/>
  224. </cmb_conflag_s>
  225. </init>
  226. <hidden>
  227. <instcd/>
  228. </hidden>
  229. <temp/>
  230. <errinfo>
  231. <errgoodinfo/>
  232. </errinfo>
  233. <tmp>
  234. <hidden>
  235. <drugprodcmylist/>
  236. </hidden>
  237. </tmp>
  238. <goodcntinfo>
  239. <goodcnt/>
  240. </goodcntinfo>
  241. </root>
  242. </instance>
  243. <script type="javascript" ev:event="xforms-ready">
  244. <![CDATA[
  245. //화면 Control을 초기화한다
  246. //fCheckAuth();
  247. fGetCodeList();
  248. fInitialize();
  249. ]]>
  250. </script>
  251. <!--submission id="TRRSC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/-->
  252. <submission id="TRRSC05313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
  253. <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
  254. <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
  255. <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  256. <submission id="TRRSC05305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodbaseqty" resultref="/root/main/list/goodbaseqty"/>
  257. <submission id="TRRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
  258. <submission id="TXRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  259. <submission id="TRRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
  260. <submission id="TXRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  261. <submission id="TRRSC05315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/errinfo"/>
  262. <submission id="TRRSC05316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/tmp/hidden/drugprodcmylist"/>
  263. <submission id="TXRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  264. </model>
  265. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  266. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  267. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  268. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  269. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  270. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  271. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  272. <script type="javascript">
  273. <![CDATA[
  274. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  275. function fInitialize() {
  276. fNodeInit();
  277. model.resetInstanceNode("/root/send");
  278. model.setValue("/root/send/goodlist/instflag", "Y");
  279. model.setValue("/root/send/save/setautoins/setyn","N");
  280. misfGridIUD(grd_gooddetlist, "A");
  281. // 2010.08.31 경북대 창고구분 추가
  282. //인스턴스 시작은 숫자로 시작할수 없으므로 misfComboComCdListMulti를 이용하지 못함
  283. misfComboComCdList("030M0002",cmb_conflag);
  284. misfComboComCdList("030M0003",cmb_mngtcls);
  285. misfComboComCdList("030M0004",cmb_purccls);
  286. misfComboComCdList("030R0004",cmb_statsflag);
  287. misfComboComCdList("030M0003",cmb_exsrchmngtcls);
  288. misfComboComCdListMulti("R0092,R0043,R0069,R0106,R0093,R0107,A0597","cmb_reqmthd,cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase,cmb_gnrlspcl_s");
  289. copyNodesetType(cmb_statsflag_s.choices.itemset.attribute("nodeset"), cmb_statsflag.choices.itemset.attribute("nodeset"), "replace");
  290. copyNodesetType(cmb_conflag_s.choices.itemset.attribute("nodeset"), cmb_conflag.choices.itemset.attribute("nodeset"), "replace");
  291. copyNodesetType(cmb_purccls_s.choices.itemset.attribute("nodeset"), cmb_purccls.choices.itemset.attribute("nodeset"), "replace");
  292. addComboItem( "cmb_statsflag_s", "전체", "", "above" );
  293. addComboItem( "cmb_purccls_s", "전체", "", "above" );
  294. addComboItem( "cmb_conflag_s", "전체", "", "above" );
  295. addComboItem( "cmb_gnrlspcl_s", "전체", "", "above" );
  296. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"2","P" );
  297. addComboItem( "cmb_reqflag", "집계안함", "", "above" );
  298. addComboItem( "cmb_exsrchmngtcls", "전체", "", "above" );
  299. //[2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  300. rszfComboGridStockArthDeptcdList(grd_goodbaseqtylist, "reqdeptcd", getUserInfo("dutplceinstcd"),"PH" );
  301. //[2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  302. //기관코드 읽어오는 부분 넣기
  303. var instcd = getUserInfo("dutplceinstcd");
  304. var instnm = getUserInfo("dutplceinstnm");
  305. if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
  306. if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
  307. //물품구분일 경우 첫번째 index 자동 설정
  308. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  309. model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  310. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  311. misfMsterDetailSet(grd_goodlist,null, "TRRSC05313" ,"Y");
  312. misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
  313. misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
  314. misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
  315. misfMsterDetailSet(grd_goodbaseqtylist,null, "TRRSC05305" ,"Y");
  316. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  317. model.setValue(ipt_goodflag_search.attribute("ref"),"PH");
  318. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
  319. /* 처방단위는 unit 기준정보를 다른걸로 사용한다. */
  320. //rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),"D");
  321. /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
  322. rszfComboUnitList (cmb_purcunit,model.getValue(opt_instcd.attribute("ref")),"PH");
  323. misfComboCopyItemSet(cmb_purcunit, "", cmb_prcpunit, ""); //처방단위
  324. misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, ""); //규격단위
  325. misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, ""); //함량단위
  326. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //수불단위
  327. misfComboCopyItemSet(cmb_purcunit, "", cmb_hospdrguunit, ""); //병원단위
  328. misfComboCopyItemSet(cmb_purcunit, "", cmb_ediunit, ""); //edi단위
  329. // 물품구분별 권한
  330. fSetGoodFlagAuth();
  331. rbo_instflag.select(0);
  332. rbo_exactsearch1.select(1);
  333. btn_spread.visible = true;
  334. btn_fold.visible = false;
  335. grp_spread.visible = false;
  336. //grd_goodlist.explorerbar = "sortshow";
  337. ///model.setFocus("ipt_goodcd");
  338. model.refresh();
  339. }
  340. //그리드 정보 초기화
  341. function fNodeInit() {
  342. misfGridInit(grd_goodlist);
  343. misfGridInit(grd_gooddetlist);
  344. misfGridInit(grd_costhistinfo);
  345. misfGridInit(grd_instinfo);
  346. misfGridInit(grd_goodbaseqtylist);
  347. misfGridInit(grd_gooddetgoodexcellist);
  348. misfGridInit(grd_rscdpbnslist);
  349. misfGridInit(grd_gooddrugprodcmpylist);
  350. }
  351. //각종 공통코드 조회
  352. function fGetCodeList()
  353. {
  354. // 약국 제조회사 코드 조회
  355. model.makeValue("/root/send/reqdata/goodflag","PH");
  356. if(submit("TRRSC05316")){
  357. model.removeNodeset("/root/send/reqdata/goodflag");
  358. }
  359. //계산방법, 그룹여부, 실사장소, 변경사유
  360. zbcfGetCodeList( new Array("P0133","P0142", "R0355", "R0356"), new Array("/root/init/P0133list","/root/init/P0142list", "/root/init/R0355list","/root/init/R0356list"), true);
  361. addComboItem( "cmb_nonusetretresn", "-", "", "above" );
  362. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
  363. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
  364. fsetP0133listData();
  365. //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
  366. //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
  367. fsetP0142listData();
  368. }
  369. //보나에스 저장
  370. function fSaveRscdpbnsList()
  371. {
  372. if(getGridUpdateData(grd_rscdpbnslist) != "" )
  373. {
  374. // if(!checkKeyColumn("grd_rscdpbnslist"))return false;
  375. if( fBnsValidCheck()!= true ) return false;
  376. //misfSave("TXRSC05403");
  377. model.setValue("/root/send/save/rscdpbnslist", grd_rscdpbnslist.getUpdateData());
  378. submit("TXRSC05403");
  379. return true;
  380. }
  381. return false;
  382. }
  383. function fSaveGoodbaseQtyList()
  384. {
  385. if(getGridUpdateData(grd_goodbaseqtylist) != "" )
  386. {
  387. if( fBaseQtyValidCheck()!= true ) return false;
  388. model.setValue("/root/send/save/goodbaseqtylist", grd_goodbaseqtylist.getUpdateData());
  389. submit("TXRSD00101");
  390. return true;
  391. }
  392. return true;
  393. }
  394. //제조회사 변경시 저장
  395. function fSaveGoodDrugProdCmyList(){
  396. if(getGridUpdateData(grd_gooddrugprodcmpylist) != "" )
  397. {
  398. if( fSaveGoodDrugProdCmyListValidCheck()!= true ) return false;
  399. model.makeValue("/root/send/savedata/gooddrugprodcmpylist", grd_gooddrugprodcmpylist.getUpdateData());
  400. for(var iRow = grd_gooddrugprodcmpylist.fixedRows;iRow < grd_gooddrugprodcmpylist.rows;iRow++){
  401. var sUseyn = grd_gooddrugprodcmpylist.valueMatrix(iRow,grd_gooddrugprodcmpylist.colRef("useyn"));
  402. if(sUseyn=="Y"){
  403. var pFromdd = grd_gooddrugprodcmpylist.valueMatrix(iRow,grd_gooddrugprodcmpylist.colRef("fromdd"));
  404. var pProdcmpycd = grd_gooddrugprodcmpylist.valueMatrix(iRow,grd_gooddrugprodcmpylist.colRef("prodcmpycd"));
  405. var pStdunitcost = grd_gooddrugprodcmpylist.valueMatrix(iRow,grd_gooddrugprodcmpylist.colRef("stdunitcost"));
  406. var pGoodengnm = grd_gooddrugprodcmpylist.valueMatrix(iRow,grd_gooddrugprodcmpylist.colRef("goodengnm"));
  407. model.setValue("/root/main/gooddet/gooddetlist/fromdd" ,pFromdd);
  408. model.setValue("/root/main/gooddet/gooddetlist/prodcmpycd" ,pProdcmpycd);
  409. model.setValue("/root/main/gooddet/gooddetlist/goodunitcost" ,pStdunitcost);
  410. model.setValue("/root/main/gooddet/gooddetlist/goodengnm" ,pGoodengnm);
  411. model.setValue("/root/main/gooddet/gooddetlist/nonusetretresn" ,"04");
  412. }
  413. }
  414. ipt_fromdd.refresh();
  415. ipt_goodengnm.refresh();
  416. ipt_prodcmpycd.refresh();
  417. ipt_goodunitcost.refresh();
  418. cmb_nonusetretresn.refresh();
  419. if(submit("TXRSC05404")){
  420. model.removeNodeset("/root/send/savedata/gooddrugprodcmpylist");
  421. }
  422. return true;
  423. }
  424. }
  425. //세부항목 조회시 기관코드 설정.
  426. function fInstcdSet()
  427. {
  428. if(rbo_instflag.value == "Y")
  429. {
  430. model.setValue("/root/send/gooddetlist/instcd", opt_instcd.value);
  431. }else{
  432. //사용기관 선택이 안되어있을시..
  433. if(grd_instinfo.row < grd_instinfo.fixedRows)
  434. {
  435. grd_instinfo.row = grd_instinfo.fixedRows;
  436. }
  437. model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
  438. }
  439. }
  440. //약품 정보 조회
  441. function fRetrGoodList(nodecopy, detailYN) {
  442. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  443. fInstcdSet();
  444. fSetinstData();
  445. if ( detailYN == null ){
  446. misfMsterDetailRetrieve2();
  447. }
  448. //마스터 테이블에 데이터가 조회 되었을 경우에만 디테일 테이블 조회
  449. if ( grd_goodlist.rows > 1 )
  450. {
  451. var row = grd_goodlist.row;
  452. if ( row < 1 ){
  453. row = 1;
  454. }
  455. fSearchDetailData();
  456. if ( btn_sub.selected ){
  457. model.setValue("/root/send/goodbaseqty/instcd", model.getValue(opt_instcd.attribute("ref")));
  458. }else{
  459. if(btn_repr.selected){
  460. model.setValue("/root/send/goodbaseqty/instcd", model.getValue(opt_instcd.attribute("ref")));
  461. }else{
  462. model.setValue("/root/send/goodbaseqty/instcd", "031");
  463. }
  464. }
  465. model.setValue("/root/send/goodbaseqty/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  466. model.setValue("/root/send/goodbaseqty/goodcd", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodcd")) );
  467. submit("TRRSC05305");
  468. if(nodecopy == true) {
  469. fAfterRetrGoodList();
  470. }
  471. cap_goodcnt.text = getNodesetCount(grd_goodlist.nodeset);
  472. }else{
  473. fNodeInit();
  474. }
  475. }
  476. function fSetinstData()
  477. {
  478. //기관코드 읽어오는 부분 넣기
  479. var instcd = getUserInfo("dutplceinstcd");
  480. var instnm = getUserInfo("dutplceinstnm");
  481. //var instcd = getUserInfo("dutplceinstcd");
  482. //var instnm = getUserInfo("dutplceinstnm");
  483. if(instcd.length > 0 && btn_sub.selected)
  484. {
  485. model.setValue("/root/send/gooddetlist/instcd", instcd);
  486. model.setValue(opt_instcd.attribute("ref"), instcd);
  487. }
  488. else
  489. {
  490. if(btn_repr.selected){
  491. model.setValue("/root/send/gooddetlist/instcd", instcd);
  492. model.setValue(opt_instcd.attribute("ref"), instcd);
  493. }else{
  494. model.setValue("/root/send/gooddetlist/instcd", "031");
  495. model.setValue(opt_instcd.attribute("ref"), "031");
  496. }
  497. }
  498. if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
  499. }
  500. //조회를 하고 난후 초기화
  501. function fSetlinit()
  502. {
  503. ipt_goodcd_search.value="";
  504. ipt_oldcd_search.value="";
  505. ipt_edicd_search.value="";
  506. ipt_goodnm_search.value="";
  507. //ipt_bnscd_search.value="";
  508. ipt_asisgoodcd_search.value ="";
  509. //판매회사 초기화
  510. ipt_suppcustcd_search.value="";
  511. opt_suppcustnm_search.value="";
  512. cmb_srchmngtcls.value ="";
  513. //대분류 초기화
  514. ipt_lrgcd_search.value="";
  515. ipt_lrgnm_search.value="";
  516. //중분류 초기화
  517. ipt_mdlcd_search.value="";
  518. ipt_mdlnm_search.value="";
  519. //소분류 초기화
  520. ipt_smlcd_search.value="";
  521. ipt_smlnm_search.value="";
  522. }
  523. // 물품구분별 권한체크.
  524. function fSetGoodFlagAuth()
  525. {
  526. /*
  527. btn_save.disabled=true;
  528. rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
  529. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;
  530. */
  531. var node = instance1.selectNodes("/root/init/dept/deptcdlist");
  532. var chkflag="1";
  533. for(var k=1;k<=node.length;k++){
  534. var deptcd = model.getValue("/root/init/dept/deptcdlist["+k+"]/deptcd");
  535. var copmDeptcd = getUserInfo("dutplcecd");
  536. if(deptcd ==copmDeptcd){
  537. break;
  538. }else{
  539. chkflag="2";
  540. }
  541. }
  542. if(chkflag!="1"){
  543. btn_save.disabled=true;
  544. }else{
  545. btn_save.disabled=false;
  546. }
  547. }
  548. function fCheckSaveData()
  549. {
  550. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  551. {
  552. messageBox("물품코드는" ,"I003");
  553. model.setFocus("ipt_goodcd");
  554. return false;
  555. }
  556. if(model.getValue(ipt_asisgoodcd.attribute("ref")).length== 0 )
  557. {
  558. messageBox("연번은" ,"I003");
  559. model.setFocus("ipt_asisgoodcd");
  560. return false;
  561. }
  562. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  563. {
  564. messageBox("대분류코드는" ,"I003");
  565. model.setFocus("ipt_lrgcd");
  566. return false;
  567. }
  568. if(model.getValue(ipt_amtacnt.attribute("ref")).length== 0 )
  569. {
  570. messageBox("비용계정은" ,"I003");
  571. model.setFocus("ipt_amtacnt");
  572. return false;
  573. }
  574. if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
  575. {
  576. messageBox("주관리부서는" ,"I003");
  577. model.setFocus("ipt_mngtdeptcd");
  578. return false;
  579. }
  580. //hbh
  581. if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
  582. {
  583. messageBox("청구방법은" ,"I003");
  584. model.setFocus("cmb_reqmthd");
  585. return false;
  586. }
  587. if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
  588. {
  589. messageBox("구매단위은" ,"I003");
  590. model.setFocus("cmb_purcunit");
  591. return false;
  592. }
  593. if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
  594. {
  595. messageBox("환산수량은" ,"I003");
  596. model.setFocus("ipt_exchqty");
  597. return false;
  598. }
  599. /*
  600. if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
  601. {
  602. messageBox("불출단위는" ,"I003");
  603. model.setFocus("cmb_deliveunit");
  604. return false;
  605. }
  606. */
  607. if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
  608. {
  609. messageBox("재고관리기준은" ,"I003");
  610. model.setFocus("cmb_stocmngtflag");
  611. return false;
  612. }
  613. if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
  614. {
  615. messageBox("자산구분은" ,"I003");
  616. model.setFocus("cmb_asetflag");
  617. return false;
  618. }
  619. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(cmb_nonusetretresn.attribute("ref")) == 0)
  620. {
  621. messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
  622. model.setFocus("cmb_nonusetretresn");
  623. return false;
  624. }
  625. //제조회사변경
  626. if(fSaveGoodDrugProdCmyList() == false) return;
  627. if ( (btn_sub.selected == true) || btn_repr.selected == true){
  628. for(var i = grd_costhistinfo.fixedRows; i < grd_costhistinfo.rows; i++){
  629. if(grd_costhistinfo.valueMatrix(i, grd_costhistinfo.colRef("fromdd")) == ipt_fromdd.value){
  630. var tempmag = (messageBox("이력정보에 등록 되어있는 날짜입니다. 새로운 적용일자로 입력하시겠습니까? ", "S999"));
  631. if(tempmag=="6" || tempmag=="2")
  632. {
  633. model.setFocus("ipt_fromdd");
  634. return false;
  635. }
  636. }
  637. }
  638. }
  639. return true;
  640. }
  641. function fAfterRetrGoodList()
  642. {
  643. if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
  644. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  645. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  646. else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  647. grp_detail.refresh();
  648. grp_etcgood.refresh();
  649. grd_gooddetlist.row = 1;
  650. model.setFocus("ipt_goodcd");
  651. }
  652. function fCheckAuth() {
  653. btn_search.disabled = !checkAuth("R") ;
  654. btn_save.disabled = !checkAuth("X") ;
  655. //btn_prt.disabled = !checkAuth("P") ;
  656. }
  657. function fSetDataCopy(){
  658. if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
  659. misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
  660. grp_detail.refresh();
  661. }
  662. function fDefaultSetting()
  663. {
  664. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
  665. model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
  666. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  667. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
  668. model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(ipt_lrgnm_search.attribute("ref")));
  669. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
  670. model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(ipt_mdlnm_search.attribute("ref")));
  671. model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
  672. model.setValue(grd_gooddetlist.nodeset + "/smlnm" , model.getValue(ipt_smlnm_search.attribute("ref")));
  673. // hbh
  674. model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
  675. model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
  676. model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'1');
  677. model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
  678. model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,''); // 청구불가 셋팅. 'E'에서 변경
  679. model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1');
  680. model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1');
  681. model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N');
  682. model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N');
  683. model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231');
  684. model.setValue(grd_gooddetlist.nodeset + "/grupsnglflag", "S");
  685. model.setValue(grd_gooddetlist.nodeset + "/orginspplce", "01");
  686. model.setValue(grd_gooddetlist.nodeset + "/calcmthdcd", "-");
  687. }
  688. function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
  689. var node1 = instance1.selectNodes(ptarget_node + "/*");
  690. var node2 = instance1.selectNodes(psource_node + "/*");
  691. for (var i = 0; i < node1.length ; i++) {
  692. for (var j = 0; j < node2.length; j++) {
  693. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  694. var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
  695. var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
  696. var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
  697. var copysource = psource_node + "/" + node2.item(j).nodeName;
  698. for (var k = 0; k < nextnode1.length; k++) {
  699. for (var p = 0; p < nextnode2.length; p++) {
  700. if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
  701. if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
  702. model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
  703. }
  704. }
  705. }
  706. }
  707. }
  708. }
  709. return false;
  710. }
  711. function fCheckRetrieveData()
  712. {
  713. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  714. {
  715. messageBox("물품구분을 " ,"C002");
  716. model.setFocus("ipt_goodflag_search");
  717. return false;
  718. }
  719. /*
  720. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
  721. {
  722. messageBox("대분류코드를 " ,"C002");
  723. model.setFocus("ipt_lrgcd_search");
  724. return false;
  725. }
  726. if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
  727. {
  728. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  729. model.setFocus("ipt_goodcd_search");
  730. return false;
  731. }
  732. */
  733. return true;
  734. }
  735. function fInstGoodCdCopy()
  736. {
  737. if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
  738. btn_insert.dispatch("DOMActivate");
  739. model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
  740. model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
  741. model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
  742. model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
  743. model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
  744. model.SetValue(ipt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
  745. model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
  746. model.SetValue(ipt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
  747. model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
  748. model.SetValue(ipt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
  749. model.refresh();
  750. model.setFocus("ipt_winacnt");
  751. }
  752. function fGoodCdCopy()
  753. {
  754. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  755. {
  756. messageBox("물품구분을 " ,"C002");
  757. model.setFocus("ipt_goodflag_search");
  758. return false;
  759. }
  760. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  761. {
  762. messageBox("대분류코드를 " ,"C002");
  763. model.setFocus("ipt_lrgcd");
  764. return false;
  765. }
  766. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  767. {
  768. messageBox("중분류코드를 " ,"C002");
  769. model.setFocus("ipt_mdlcd");
  770. return false;
  771. }
  772. model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  773. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
  774. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
  775. submit("TRRSC05303");
  776. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  777. if(goodcd.length == 0)goodcd = model.getValue(ipt_goodflag_search.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
  778. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  779. grp_detail.refresh();
  780. }
  781. function fInsertGoodDataListCopy()
  782. {
  783. if(btn_instcd.selected == true)
  784. {
  785. if( grd_instinfo.row > (grd_instinfo.fixedRows - 1) )
  786. {
  787. grd_instinfo.dispatch("ondblclick");
  788. grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  789. model.setValue("/root/main/gooddet/gooddetlist/instcd", getUserInfo("dutplceinstcd"));
  790. grd_gooddetlist.addStatus(grd_gooddetlist.row, "insert");
  791. // model.refresh();
  792. //grp_detail.disabled = false;
  793. //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
  794. //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
  795. fSetGrp_detailDisabled( false );
  796. }else{
  797. messageBox("사용기관정보의 기관을 선택하신후 다시 작업해주세요.", "I999");
  798. return ;
  799. }
  800. }else{
  801. messageBox("사용기관정보를 선택하신 후 다시 작업해주세요.", "I999");
  802. return ;
  803. }
  804. }
  805. /*----------------------------------------------------------------
  806. * DRUGTYPE : 대분류 + 조영제 값을 체크하여 약국분류를 만듦
  807. reqflag = 'I' 이면 'I' else lrgcd
  808. ----------------------------------------------------------------*/
  809. function fSetDrugtype(pReqflag)
  810. {
  811. if (pReqflag == "I")
  812. opt_drugkind.value = pReqflag ;
  813. else
  814. opt_drugkind.value = ipt_lrgcd.value ;
  815. }
  816. function fupdatacheck()
  817. {
  818. var tempdd=grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd"));
  819. misfGridRowStatusChange(grd_gooddetlist, "/root/main/list/gooddet", "/root/main/gooddet");
  820. grd_gooddetlist.refresh();
  821. if(( getGridUpdateData(grd_gooddetlist)== "" ) && (getGridUpdateData(grd_rscdpbnslist)=="" )&& (getGridUpdateData(grd_goodbaseqtylist)=="" )&& (getGridUpdateData(grd_gooddrugprodcmpylist)=="" ))
  822. {
  823. messageBox("변경내역이 없습니다. ", "I999");
  824. return;
  825. }
  826. if(grd_gooddetlist.rowStatus(grd_gooddetlist.fixedRows) == 2 && btn_main.selected == true )
  827. {
  828. if(tempdd==grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd")))
  829. {
  830. var tempmag = (messageBox("적용일자가 변경되지않았습니다 새로운 적용일자로 입력하시겠습니까? ", "S999"));
  831. if(tempmag=="6" || tempmag=="2")
  832. {
  833. model.setFocus("ipt_fromdd");
  834. return 6;
  835. }
  836. }
  837. }
  838. model.refresh();
  839. }
  840. function fBnsValidCheck () {
  841. if( grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
  842. for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ ) {
  843. if( grd_rscdpbnslist.rowStatus(cnt) != 0 ) {
  844. if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscd")).length== 0 ) {
  845. messageBox("도매상코드를 " ,"C002");
  846. grd_rscdpbnslist.row = cnt;
  847. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("bnscd");
  848. return false;
  849. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("exchqty")).length== 0 ) {
  850. messageBox("낱개수량을 " ,"C002");
  851. grd_rscdpbnslist.row = cnt;
  852. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("exchqty");
  853. return false;
  854. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("deliveunit")).length== 0 ) {
  855. messageBox("낱개단위를 " ,"C002");
  856. grd_rscdpbnslist.row = cnt;
  857. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("deliveunit");
  858. return false;
  859. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("purcunit")).length== 0 ) {
  860. messageBox("포장단위를 " ,"C002");
  861. grd_rscdpbnslist.row = cnt;
  862. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("purcunit");
  863. return false;
  864. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodunitcost")).length== 0 ) {
  865. messageBox("구입단가를 " ,"C002");
  866. grd_rscdpbnslist.row = cnt;
  867. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodunitcost");
  868. return false;
  869. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodpurccost")).length== 0 ) {
  870. messageBox("구입가를 " ,"C002");
  871. grd_rscdpbnslist.row = cnt;
  872. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodpurccost");
  873. return false;
  874. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")).length== 0 ) {
  875. if ( model.getValue( ipt_goodcd.attribute("ref") ).length !=0 ) {
  876. grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
  877. } else {
  878. messageBox("약품품코드는" ,"I003");
  879. model.setFocus("ipt_goodcd");
  880. return false;
  881. }
  882. }
  883. }
  884. }
  885. }
  886. return true;
  887. }
  888. function fBaseQtyValidCheck () {
  889. if( grd_goodbaseqtylist.rows- grd_goodbaseqtylist.fixedRows > 0) {
  890. for( cnt = grd_goodbaseqtylist.fixedRows; cnt < grd_goodbaseqtylist.rows; cnt++ ) {
  891. if( grd_goodbaseqtylist.rowStatus(cnt) != 0 ) {
  892. if(grd_goodbaseqtylist.valueMatrix(cnt, grd_goodbaseqtylist.colRef("reqdeptcd")).length== 0 ) {
  893. messageBox("재고관리부서 " ,"C002");
  894. grd_goodbaseqtylist.row = cnt;
  895. grd_goodbaseqtylist.col = grd_rscdpbnslist.colRef("reqdeptcd");
  896. return false;
  897. } /*else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("basevol")).length== 0 ) {
  898. messageBox("안전재고량을 " ,"C002");
  899. grd_rscdpbnslist.row = cnt;
  900. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
  901. return false;
  902. } */
  903. else if(model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+cnt+"]/basevol") == '') {
  904. messageBox("안전재고량을 " ,"C002");
  905. grd_rscdpbnslist.row = cnt;
  906. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
  907. return false;
  908. }
  909. }
  910. }
  911. }
  912. return true;
  913. }
  914. //제조회사 변경시 ValidCheck
  915. function fSaveGoodDrugProdCmyListValidCheck(){
  916. if( grd_gooddrugprodcmpylist.rows- grd_gooddrugprodcmpylist.fixedRows > 0) {
  917. for( cnt = grd_gooddrugprodcmpylist.fixedRows; cnt < grd_gooddrugprodcmpylist.rows; cnt++ ) {
  918. if( grd_gooddrugprodcmpylist.rowStatus(cnt) != 0 ) {
  919. if(model.getValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+cnt+"]/fromdd") == ""){
  920. messageBox("변경일자는" ,"I003");
  921. grd_gooddrugprodcmpylist.row = cnt;
  922. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("fromdd");
  923. return false;
  924. }else if(grd_gooddrugprodcmpylist.valueMatrix(cnt, grd_gooddrugprodcmpylist.colRef("prodcmpycd")).length== 0 ) {
  925. messageBox("제조회사는" ,"I003");
  926. grd_gooddrugprodcmpylist.row = cnt;
  927. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("prodcmpycd");
  928. return false;
  929. } else if(model.getValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+cnt+"]/insuamt") == "") {
  930. messageBox("보험금액은 " ,"I003");
  931. grd_gooddrugprodcmpylist.row = cnt;
  932. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("insuamt");
  933. return false;
  934. } else if(model.getValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+cnt+"]/stdunitcost") == "") {
  935. messageBox("기준단가는 " ,"I003");
  936. grd_gooddrugprodcmpylist.row = cnt;
  937. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("stdunitcost");
  938. return false;
  939. }else if(model.getValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+cnt+"]/useyn") == "") {
  940. messageBox("사용여부는 " ,"I003");
  941. grd_gooddrugprodcmpylist.row = cnt;
  942. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("useyn");
  943. return false;
  944. }
  945. }
  946. }
  947. }
  948. return true;
  949. }
  950. /** 2008.08.04 YYJ
  951. 상태에 따른 활성화 / 비활성화 설정 ( 보나에스 정보로 Setting 여부 )
  952. 보나에스 데이터 존재시 사용자 임의로 데이터를 수정 하지 못하고,
  953. 보나에스 Tab에서 데이터 지정하여 반영하기로 함.
  954. * 신규 입력시 직접 입력 가능하도록 풀어준다.
  955. ipt_exchqty // 낱개수량
  956. cmb_deliveunit // 낱개단위
  957. cmb_purcunit // 포장단위
  958. ipt_goodunitcost // 구입단가
  959. ipt_goodpurccost // 구입가
  960. 2008.08.24 YYJ
  961. 상세 화면에서 데이터 수정하더라도.. 보나에스 코드에 반영되도록 수정처리 함
  962. */
  963. function fBnsSetData( vStatus ) {
  964. ipt_exchqty.disabled = vStatus;
  965. cmb_deliveunit.disabled = vStatus;
  966. cmb_purcunit.disabled = vStatus;
  967. ipt_goodunitcost.disabled = vStatus;
  968. ipt_goodpurccost.disabled = vStatus;
  969. model.refresh();
  970. }
  971. function fsetP0133listData()
  972. {
  973. var ins = document.models( 0 ).instances( 0 );
  974. var P0133_nodelist = ins.selectNodes( "/root/init/P0133list/P0133" );
  975. var length = P0133_nodelist.length;
  976. for ( i=length-1; i>0; i-- )
  977. {
  978. var P0133_node = P0133_nodelist.item(i).childnodes;
  979. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
  980. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
  981. if( P0133_node.item(0).value != "-" && P0133_node.item(0).value != "1" && P0133_node.item(0).value != "4")
  982. {
  983. var pNode = P0133_nodelist.item(i).parentNode;
  984. pNode.removeChild(P0133_nodelist.item(i));
  985. }
  986. }
  987. }
  988. function fsetP0142listData()
  989. {
  990. var ins = document.models( 0 ).instances( 0 );
  991. var P0142_nodelist = ins.selectNodes( "/root/init/P0142list/P0142" );
  992. var length = P0142_nodelist.length;
  993. for ( i=length-1; i>0; i-- )
  994. {
  995. var P0142_node = P0142_nodelist.item(i).childnodes;
  996. //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
  997. //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
  998. if( P0142_node.item(0).value != "G" && P0142_node.item(0).value != "S" )
  999. {
  1000. var pNode = P0142_nodelist.item(i).parentNode;
  1001. pNode.removeChild(P0142_nodelist.item(i));
  1002. }
  1003. }
  1004. }
  1005. function misfMsterDetailRetrieve2()
  1006. {
  1007. if(btn_repr.selected){
  1008. model.setValue("/root/send/goodlist/reprflag", "Y");
  1009. }
  1010. var node = instance1.selectNodes("/root/gridset/mastdetailset/*");
  1011. for (var i = 0; i <node.length ; i++)
  1012. {
  1013. var node_detail = node.item(i).childNodes;
  1014. //master에 값이 없는 submit 만 실행
  1015. if ( node_detail.item(1).value == "" )
  1016. {
  1017. var resetgridID = document.controls(node_detail.item(0).value);
  1018. model.removeNodeset(resetgridID.nodeset);
  1019. submit(node_detail.item(2).value);
  1020. }
  1021. }
  1022. model.setValue("/root/send/goodlist/reprflag", "");
  1023. }
  1024. //물품 세부정보 조회
  1025. function fSearchDetailData()
  1026. {
  1027. var row = grd_goodlist.row;
  1028. if ( row < 1 )
  1029. row = 1;
  1030. //grd_goodlist.refresh();
  1031. //model.refreshpart("/root/main/list/good/goodlist");
  1032. var goodcd = model.getValue("/root/main/list/good/goodlist["+row+"]/goodcd");
  1033. var fromdd = model.getValue("/root/main/list/good/goodlist["+row+"]/fromdd");
  1034. var useyn = model.getValue("/root/main/list/good/goodlist["+row+"]/useyn");
  1035. if ( btn_sub.selected ){
  1036. var instcd = model.getValue("/root/main/list/good/goodlist["+row+"]/instcd");
  1037. }else{
  1038. if(btn_repr.selected){
  1039. var instcd = model.getValue("/root/main/list/good/goodlist["+row+"]/instcd");
  1040. }else{
  1041. var instcd = "031";
  1042. }
  1043. }
  1044. model.setValue("/root/send/gooddetlist/goodcd", goodcd);
  1045. model.setValue("/root/send/gooddetlist/fromdd", fromdd);
  1046. model.setValue("/root/send/gooddetlist/useyn", useyn);
  1047. model.setValue("/root/send/gooddetlist/instcd", instcd);
  1048. var master_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/master");
  1049. var current_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/current");
  1050. var submit_id = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/submit");
  1051. if(submit (submit_id)){
  1052. }
  1053. }
  1054. function fSetGrp_detailDisabled( disableFlag )
  1055. {
  1056. //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
  1057. if ( disableFlag == false )
  1058. {
  1059. //grp_detail.disable을 풀어야만 하위 컨트롤들의 disabled제어가 먹음.
  1060. grp_detail.disabled = false;
  1061. //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,비고,재고관리기준그룹, 제제약, 바코드, 불용일자, 변경사유,제제약여부,비과세,관리분류,구입분류,계약구분,처방수량/단위,낱개수량/낱개(포장)단위,edicd
  1062. var arrCtrlID = new Array("ipt_fromdd","ipt_prodcmpycd","btn_prodcmpycd","ipt_suppcustcd","btn_suppcustcd","ipt_maincustlastsuplplce","btn_maincustlastsuplplce","ipt_oldcd","ipt_estmamt","ipt_goodunitcost","ipt_goodpurccost", "tar_cmt", "group_stocmngt", "chk_proddrugsetflag", "ipt_barcode", "ipt_nonusetretdd", "cmb_nonusetretresn", "chk_proddrugsetflag","ipt_insucost","chk_expnyn","chk_shadelight","ipt_reprgoodcd","ipt_asisgoodcd","cmb_purccls","cmb_mngtcls","cmb_conflag"
  1063. ,"ipt_prcpqty","cmb_prcpunit","ipt_exchqty","cmb_deliveunit","cmb_purcunit","cmb_statsflag","cmb_ediunit","ipt_ediexchqty","rdo_ascitflag","chk_balflag","bool6","ipt_edicd2");
  1064. for ( i=0; i< grp_detail.children.length; i++ )
  1065. {
  1066. for ( j=0; j<arrCtrlID.length; j++ )
  1067. {
  1068. if ( grp_detail.children(i).attribute("id") == arrCtrlID[j] )
  1069. {
  1070. if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
  1071. grp_detail.children(i).attribute("editable") = "true"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
  1072. break;
  1073. }
  1074. }
  1075. if ( j == arrCtrlID.length )
  1076. {
  1077. if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
  1078. grp_detail.children(i).attribute("editable") = "false"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
  1079. else
  1080. grp_detail.children(i).disabled = true;
  1081. }
  1082. }
  1083. }
  1084. else
  1085. {
  1086. for ( i=0; i< grp_detail.children.length; i++ )
  1087. {
  1088. if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
  1089. grp_detail.children(i).attribute("editable") = "false"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
  1090. else
  1091. grp_detail.children(i).disabled = true;
  1092. }
  1093. }
  1094. }
  1095. // (기관,통합)약국 코드 조회
  1096. function fDrugGoodSrch(){
  1097. if(fCheckRetrieveData() == false)return;
  1098. // [기관] 조회 조건과 마스터 조회 목록 탭(기관약품목록,통합약품목록)의 설정 동기화
  1099. var instflag = model.getValue("/root/send/goodlist/instflag");
  1100. if (instflag == "Y" ){
  1101. if(btn_repr.selected ){
  1102. btn_repr.dispatch("DOMActivate");
  1103. }else{
  1104. if(btn_sub.selected !="true"){
  1105. btn_sub.selected = true;
  1106. }
  1107. btn_sub.dispatch("DOMActivate");
  1108. }
  1109. }else
  1110. {
  1111. if(btn_main.selected !="true"){
  1112. btn_main.selected = true;
  1113. }
  1114. btn_main.dispatch("DOMActivate");
  1115. }
  1116. //model.setValue("/root/goodcntinfo/goodcnt",grd_goodlist.rows-1);
  1117. cap_goodcnt.text = getNodesetCount(grd_goodlist.nodeset);
  1118. //cap_goodcnt.refresh();
  1119. }
  1120. ]]>
  1121. </script>
  1122. </xhtml:head>
  1123. <xhtml:body guideline="1,1373;">
  1124. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1125. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">기관별 약품코드등록</caption>
  1126. </group>
  1127. <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
  1128. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
  1129. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
  1130. <caption id="caption2" class="search_name" style="left:15px; top:36px; width:90px; height:17px; ">EDI 코드 :</caption>
  1131. <caption id="caption3" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">약품코드 :</caption>
  1132. <caption id="caption10" class="search_name" style="left:456px; top:8px; width:83px; height:17px; ">약 품 명 :</caption>
  1133. <caption id="caption34" class="search_name" visibility="hidden" style="left:851px; top:50px; width:86px; height:17px; ">판매회사 :</caption>
  1134. <line id="line1" class="line_4" style="x1:1109px; y1:13px; x2:1109px; y2:70px; "/>
  1135. <button id="btn_search" class="btn1_letter2" navindex="26" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
  1136. <caption>조회</caption>
  1137. <script type="javascript" ev:event="DOMActivate">
  1138. <![CDATA[
  1139. fDrugGoodSrch();
  1140. // fSetlinit(); 조회 후 초기화 취소 요청으로 제외 시킴
  1141. ]]>
  1142. </script>
  1143. </button>
  1144. <!--input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" _chartype="upper" style="left:555px; top:22px; width:185px; height:19px; "-->
  1145. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="8" style="left:540px; top:8px; width:185px; height:19px; ">
  1146. <script type="javascript" ev:event="onkeydown">
  1147. <![CDATA[
  1148. if (event.keyCode == 13)
  1149. {
  1150. ipt_goodnm_search.value = ipt_goodnm_search.currentText;
  1151. ipt_goodnm_search.refresh();
  1152. fDrugGoodSrch();
  1153. }
  1154. ]]>
  1155. </script>
  1156. </input>
  1157. <input id="ipt_edicd_search" ref="/root/send/goodlist/edicd" class="input_search" navindex="11" style="left:104px; top:36px; width:91px; height:19px; ">
  1158. <script type="javascript" ev:event="onkeydown">
  1159. <![CDATA[
  1160. if (event.keyCode == 13)
  1161. {
  1162. ipt_edicd_search.value = ipt_edicd_search.currentText;
  1163. ipt_edicd_search.refresh();
  1164. fDrugGoodSrch();
  1165. }
  1166. ]]>
  1167. </script>
  1168. </input>
  1169. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="6" maxlength="12" _chartype="upper" style="left:301px; top:8px; width:91px; height:19px; ">
  1170. <script type="javascript" ev:event="onkeydown">
  1171. <![CDATA[
  1172. if (event.keyCode == 13)
  1173. {
  1174. ipt_goodcd_search.value = ipt_goodcd_search.currentText;
  1175. //ipt_goodcd_search.refresh();
  1176. fDrugGoodSrch();
  1177. }
  1178. ]]>
  1179. </script>
  1180. </input>
  1181. <caption id="caption81" class="search_name" style="left:15px; top:8px; width:85px; height:17px; ">기 관 :</caption>
  1182. <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" navindex="5" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:104px; top:8px; width:91px; height:17px; background-color:transparent; border-style:none; ">
  1183. <choices>
  1184. <itemset nodeset="/root/init/instflag">
  1185. <label ref="label"/>
  1186. <value ref="value"/>
  1187. </itemset>
  1188. </choices>
  1189. </select1>
  1190. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" navindex="12" maxlength="12" _chartype="upper" style="left:301px; top:36px; width:91px; height:19px; ">
  1191. <script type="javascript" ev:event="onkeydown">
  1192. <![CDATA[
  1193. if (event.keyCode == 13)
  1194. {
  1195. ipt_oldcd_search.value = ipt_oldcd_search.currentText;
  1196. ipt_oldcd_search.refresh();
  1197. fDrugGoodSrch();
  1198. }
  1199. ]]>
  1200. </script>
  1201. </input>
  1202. <caption id="caption82" class="search_name" style="left:215px; top:36px; width:86px; height:17px; ">구 코 드 :</caption>
  1203. <input id="ipt_suppcustcd_search" ref="/root/send/goodlist/suppcustcd" class="input_default" visibility="hidden" style="left:815px; top:47px; width:24px; height:19px; text-align:center; ">
  1204. <script type="javascript" ev:event="xforms-value-changed">
  1205. <![CDATA[
  1206. if ( model.getValue(ipt_suppcustcd_search.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm_search.attribute("ref"),"");
  1207. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd_search.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd_search,"SPRSD00220","instcd","opt_instcd");
  1208. model.refresh();
  1209. ]]>
  1210. </script>
  1211. <script type="javascript" ev:event="onkeydown">
  1212. <![CDATA[
  1213. if(event.keyCode == 9)
  1214. {
  1215. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  1216. else model.setFocus("cmb_conflag");
  1217. }
  1218. //event.preventDefault();
  1219. ]]>
  1220. </script>
  1221. </input>
  1222. <button id="btn_suppcustcd_search" class="icon_search" visibility="hidden" style="left:1125px; top:50px; width:16px; height:16px; ">
  1223. <caption/>
  1224. <script type="javascript" ev:event="DOMActivate">
  1225. <![CDATA[
  1226. rszfOpenPopUpListByWndName(ipt_suppcustcd_search,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  1227. model.refresh();
  1228. ]]>
  1229. </script>
  1230. </button>
  1231. <input id="opt_suppcustnm_search" ref="/root/send/goodlist/suppcustnm" class="input_default" visibility="hidden" style="left:935px; top:50px; width:185px; height:19px; ">
  1232. <script type="javascript" ev:event="xforms-value-changed">
  1233. <![CDATA[
  1234. if ( model.getValue(opt_suppcustnm_search.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd_search.attribute("ref"),"");
  1235. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(opt_suppcustnm_search.attribute("ref")), "","suppcustcd,suppcustnm" ,opt_suppcustnm_search,"SPRSD00220","instcd","opt_instcd");
  1236. model.refresh();
  1237. ]]>
  1238. </script>
  1239. <script type="javascript" ev:event="onkeydown">
  1240. <![CDATA[
  1241. if(event.keyCode == 9)
  1242. {
  1243. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  1244. else model.setFocus("cmb_conflag");
  1245. }
  1246. //event.preventDefault();
  1247. ]]>
  1248. </script>
  1249. </input>
  1250. <caption id="caption40" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">연 번 :</caption>
  1251. <input id="ipt_asisgoodcd_search" ref="/root/send/goodlist/asisgoodcd" class="input_search" navindex="15" _chartype="upper" style="left:104px; top:65px; width:91px; height:19px; ">
  1252. <script type="javascript" ev:event="onkeydown">
  1253. <![CDATA[
  1254. if (event.keyCode == 13)
  1255. {
  1256. ipt_asisgoodcd_search.value=ipt_asisgoodcd_search.currentText;
  1257. ipt_asisgoodcd_search.refresh();
  1258. fDrugGoodSrch();
  1259. }
  1260. ]]>
  1261. </script>
  1262. </input>
  1263. <caption id="caption22" class="search_name" style="left:456px; top:36px; width:83px; height:17px; ">성 분 명 :</caption>
  1264. <!--input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" _chartype="upper" style="left:555px; top:43px; width:185px; height:19px; "-->
  1265. <input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" navindex="13" style="left:540px; top:36px; width:185px; height:19px; ">
  1266. <script type="javascript" ev:event="onkeydown">
  1267. <![CDATA[
  1268. if (event.keyCode == 13)
  1269. {
  1270. ipt_comnm_search.value = ipt_comnm_search.currentText;
  1271. ipt_comnm_search.refresh();
  1272. fDrugGoodSrch();
  1273. }
  1274. ]]>
  1275. </script>
  1276. </input>
  1277. <caption id="caption43" class="search_name" style="left:215px; top:63px; width:86px; height:17px; ">불용코드 :</caption>
  1278. <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" navindex="16" appearance="full" cols="2" overflow="visible" style="left:300px; top:63px; width:91px; height:17px; border-style:none; ">
  1279. <choices>
  1280. <itemset nodeset="/root/init/nonusegoodview">
  1281. <label ref="label"/>
  1282. <value ref="value"/>
  1283. </itemset>
  1284. </choices>
  1285. </select1>
  1286. <select1 id="rbo_exactsearch1" ref="/root/send/goodlist/exactsearch" navindex="7" appearance="full" cols="1" overflow="visible" style="left:400px; top:5px; width:45px; height:35px; border-style:none; ">
  1287. <choices>
  1288. <itemset nodeset="/root/init/exactsearch">
  1289. <label ref="label"/>
  1290. <value ref="value"/>
  1291. </itemset>
  1292. </choices>
  1293. </select1>
  1294. <select1 id="rdo_goodnmsearch" ref="/root/send/goodlist/goodnmsearch" navindex="9" appearance="full" cols="1" overflow="visible" style="left:725px; top:5px; width:45px; height:35px; border-style:none; ">
  1295. <choices>
  1296. <itemset nodeset="/root/init/goodnmsearch">
  1297. <label ref="label"/>
  1298. <value ref="value"/>
  1299. </itemset>
  1300. </choices>
  1301. </select1>
  1302. <caption id="caption61" class="search_name" style="left:839px; top:36px; width:83px; height:17px; ">중 분 류 :</caption>
  1303. <select1 id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="10" appearance="minimal" style="left:930px; top:8px; width:148px; height:19px; ">
  1304. <choices>
  1305. <itemset>
  1306. <label/>
  1307. <value/>
  1308. </itemset>
  1309. </choices>
  1310. <script type="javascript" ev:event="xforms-value-changed">
  1311. <![CDATA[
  1312. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, "", "ipt_mdlcd_search", "", "M", "Y", "Y");
  1313. ipt_mdlcd_search.value="";
  1314. ipt_mdlcd_search.refresh();
  1315. ipt_mdlcd_search.dispatch("xforms-value-changed");
  1316. //model.refresh();
  1317. ]]>
  1318. </script>
  1319. </select1>
  1320. <select1 id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" navindex="18" appearance="minimal" style="left:930px; top:61px; width:148px; height:19px; ">
  1321. <choices>
  1322. <itemset>
  1323. <label/>
  1324. <value/>
  1325. </itemset>
  1326. </choices>
  1327. </select1>
  1328. <select1 id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="14" appearance="minimal" style="left:930px; top:36px; width:148px; height:19px; ">
  1329. <choices>
  1330. <itemset>
  1331. <label/>
  1332. <value/>
  1333. </itemset>
  1334. </choices>
  1335. <script type="javascript" ev:event="xforms-value-changed">
  1336. <![CDATA[
  1337. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, ipt_mdlcd_search.value, "ipt_smlcd_search", "", "S", "Y", "Y");
  1338. ipt_smlcd_search.value="";
  1339. //model.refresh();
  1340. ipt_smlcd_search.refresh();
  1341. ]]>
  1342. </script>
  1343. </select1>
  1344. <caption id="caption39" class="search_name" style="left:839px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
  1345. <caption id="caption8" class="search_name" style="left:839px; top:8px; width:83px; height:17px; ">대 분 류 :</caption>
  1346. <caption id="caption64" class="search_name" style="left:456px; top:63px; width:86px; height:17px; ">관리분류:</caption>
  1347. <select1 id="cmb_srchmngtcls" ref="/root/send/goodlist/mngtcls" navindex="17" appearance="minimal" style="left:540px; top:61px; width:185px; height:19px; text-align:center; ">
  1348. <choices>
  1349. <itemset nodeset="/root/init/cmb_mngtcls/comcodelist">
  1350. <label ref="cdnm"/>
  1351. <value ref="cdid"/>
  1352. </itemset>
  1353. </choices>
  1354. </select1>
  1355. <button id="btn_spread" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_plus.gif; ">
  1356. <script type="javascript" ev:event="DOMActivate">
  1357. <![CDATA[
  1358. grp_spread.visible = "true";
  1359. btn_spread.visible = "false";
  1360. btn_fold.visible = "true";
  1361. ]]>
  1362. </script>
  1363. <caption/>
  1364. </button>
  1365. <button id="btn_fold" visibility="hidden" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_minus.gif; ">
  1366. <script type="javascript" ev:event="DOMActivate">
  1367. <![CDATA[
  1368. model.resetInstanceNode("/root/send/goodlist/spread");
  1369. model.refresh();
  1370. grp_spread.visible = "false";
  1371. btn_spread.visible = "true";
  1372. btn_fold.visible = "false";
  1373. ]]>
  1374. </script>
  1375. <caption/>
  1376. </button>
  1377. </group>
  1378. <line id="line7" class="line_1" style="x1:0px; y1:121px; x2:540; y2:121px; "/>
  1379. <caption id="caption1" class="tit_2" style="left:550; top:106px; width:95px; height:13px; ">통합품목정보</caption>
  1380. <button id="btn_choidel" class="btn2_letter6" visibility="hidden" style="left:820px; top:100px; width:86px; height:19px; ">
  1381. <caption>선택행삭제x</caption>
  1382. <script type="javascript" ev:event="DOMActivate">
  1383. <![CDATA[
  1384. misfGridIUD(grd_gooddetlist, "D");
  1385. misfGridIUD(grd_goodlist, "D");
  1386. ]]>
  1387. </script>
  1388. </button>
  1389. <button id="btn_instcd" class="btn_sw6" group="tab" selected="true" style="left:240px; top:472px; width:88px; height:22px; ">
  1390. <caption>사용기관정보</caption>
  1391. <toggle case="case4" ev:event="DOMActivate"/>
  1392. </button>
  1393. <button id="btn_addinfo" class="btn_sw6" group="tab" style="left:152px; top:472px; width:88px; height:22px; ">
  1394. <caption>부가입력정보</caption>
  1395. <toggle case="case2" ev:event="DOMActivate"/>
  1396. </button>
  1397. <button id="btn_costhistinfo" class="btn_sw4" group="tab" selected="true" style="left:0px; top:472px; width:90px; height:22px; ">
  1398. <caption>이력정보</caption>
  1399. <toggle case="case1" ev:event="DOMActivate"/>
  1400. </button>
  1401. <line id="line2" class="line_1" style="x1:545; y1:121px; x2:1195; y2:121px; "/>
  1402. <button id="button2" class="btn_sw7" group="tab" style="left:328px; top:472px; width:100px; height:22px; ">
  1403. <caption>안전재고량관리</caption>
  1404. <toggle case="case5" ev:event="DOMActivate"/>
  1405. </button>
  1406. <button id="btn_excel" class="btn2_letter5" navindex="29" visibility="hidden" style="left:740px; top:100px; width:75px; height:19px; ">
  1407. <caption>Excel 화면</caption>
  1408. <script type="javascript" ev:event="DOMActivate">
  1409. <![CDATA[
  1410. if(fCheckRetrieveData() == false)return;
  1411. submit("TRRSC05402");
  1412. var fileName = window.fileDialog("save", ",", false, "약품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1413. if (fileName != "")
  1414. {
  1415. grd_gooddetgoodexcellist.saveExcel(fileName, "약품코드");
  1416. }
  1417. ]]>
  1418. </script>
  1419. </button>
  1420. <button id="bbt_bonaes" class="btn_sw4" visibility="hidden" group="tab" style="left:428px; top:472px; width:64px; height:22px; ">
  1421. <caption>포장단위</caption>
  1422. <toggle case="case6" ev:event="DOMActivate"/>
  1423. </button>
  1424. <button id="btn_openexcel" class="btn2_letter5" navindex="27" style="left:1116px; top:100px; width:75px; height:19px; ">
  1425. <caption>Excel 조건</caption>
  1426. <script type="javascript" ev:event="DOMActivate">
  1427. <![CDATA[
  1428. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  1429. model.setValue("/root/send/goodlist/exinstcd",getUserInfo("dutplceinstcd"));
  1430. model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
  1431. rdo_delyn.value = '';
  1432. rdo_contractyn.value = '';
  1433. group3.disabled = true;
  1434. fSetGrp_detailDisabled( true );
  1435. group2.visible = true;
  1436. group2.disabled = false;
  1437. /* 일자를 전체 check한다 */
  1438. chkdd.value= "Y";
  1439. chkdd.dispatch("xforms-value-changed");
  1440. model.refresh();
  1441. ]]>
  1442. </script>
  1443. </button>
  1444. <button id="btn_main" class="btn_sw6" group="maintab" style="left:90px; top:98px; width:88px; height:22px; ">
  1445. <caption>통합약품목록</caption>
  1446. <script type="javascript" ev:event="DOMActivate">
  1447. <![CDATA[
  1448. //Excel 저장 시 통합(031)로 저장 되도록
  1449. btn_excelsave.value = "통합엑셀저장";
  1450. model.setValue("/root/send/goodlist/instcd", "031");
  1451. btn_save.disabled = false;
  1452. //통합탭에서는 타기관내용복사 할 수 있게 버튼 보임
  1453. btn_useinstinfo.attribute("visibility") = "visible";
  1454. // 통합 flag로 조회되도록 flag설정
  1455. rbo_instflag.value = "";
  1456. fRetrGoodList(true);
  1457. fSetGrp_detailDisabled( true );
  1458. ]]>
  1459. </script>
  1460. </button>
  1461. <button id="btn_sub" class="btn_sw6" group="maintab" selected="true" style="left:1px; top:98px; width:90px; height:22px; ">
  1462. <caption>기관약품목록</caption>
  1463. <script type="javascript" ev:event="DOMActivate">
  1464. <![CDATA[
  1465. //Excel 저장 시 로그인한 기관코드로 저장 되도록
  1466. btn_excelsave.value = "Excel 저장";
  1467. model.setValue("/root/send/goodlist/instcd", getUserInfo("dutplceinstcd"));
  1468. btn_save.disabled = false;
  1469. //기관탭에서는 타기관내용복사 못하게 버튼 숨김
  1470. btn_useinstinfo.attribute("visibility") = "hidden";
  1471. //기관 flag로 조회되도록 flag설정
  1472. rbo_instflag.value = "Y";
  1473. fRetrGoodList(true);
  1474. //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
  1475. //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
  1476. fSetGrp_detailDisabled( false );
  1477. ]]>
  1478. </script>
  1479. </button>
  1480. <button id="button1" class="btn2_letter6" style="left:1020px; top:100px; width:86px; height:19px; ">
  1481. <caption>통합내용갱신</caption>
  1482. <script type="javascript" ev:event="DOMActivate">
  1483. <![CDATA[
  1484. open("SPRSC08300",0,100,150,"SPRSC08300","","");
  1485. ]]>
  1486. </script>
  1487. </button>
  1488. <button id="btn_prodcmychg" class="btn_sw6" group="tab" style="left:64px; top:472px; width:88px; height:22px; ">
  1489. <caption>제조회사추가</caption>
  1490. <toggle case="case3" ev:event="DOMActivate"/>
  1491. </button>
  1492. <switch id="sw_detail" style="left:0px; top:494px; width:540; height:240px; border-color:#c7a3cf; border-style:solid; ">
  1493. <case id="case1" selected="true">
  1494. <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" class="datagrid2" caption="적용일자*^변경사유^비고^보험단가^구입가^포장/포장단위^포장/포장단위^EDI코드^한글명^판매회사^todd^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 179, 325, 72, 71, 48, 54, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537px; height:201px; ">
  1495. <col ref="fromdd" format="yyyy-mm-dd"/>
  1496. <col disabled="true" ref="nonusetretresn" type="combo">
  1497. <choices>
  1498. <itemset nodeset="/root/init/R0356list/R0356">
  1499. <label ref="cdnm"/>
  1500. <value ref="cdid"/>
  1501. </itemset>
  1502. </choices>
  1503. </col>
  1504. <col ref="cmt"/>
  1505. <col ref="insucost" format="#,###" style="text-align:right; "/>
  1506. <col ref="goodcost" format="#,###" style="text-align:right; "/>
  1507. <col ref="purcqty" format="#,###" style="text-align:right; "/>
  1508. <col ref="purcunit" style="text-align:center; "/>
  1509. <col ref="edicd"/>
  1510. <col ref="goodnm"/>
  1511. <col ref="suppcustnm"/>
  1512. <col ref="todd" visibility="hidden"/>
  1513. <script type="javascript" ev:event="ondblclick">
  1514. <![CDATA[
  1515. if(grd_costhistinfo.row > 0)
  1516. {
  1517. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]");
  1518. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate()){
  1519. ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  1520. }else{
  1521. ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  1522. }
  1523. ipt_nonusetretdd.refresh();
  1524. grp_detail.refresh();
  1525. }
  1526. ]]>
  1527. </script>
  1528. </datagrid>
  1529. <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1530. </case>
  1531. <case id="case2">
  1532. <group id="grp_etcgood" style="left:0px; top:28px; width:537; height:60px; ">
  1533. <line id="line50" class="line_2" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1534. <line id="line53" class="line_3" style="x1:0px; y1:47px; x2:537px; y2:47px; "/>
  1535. <caption id="caption74" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
  1536. <caption id="caption76" class="cell_1" style="left:268px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
  1537. <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:110px; top:2px; width:156px; height:19px; ">
  1538. <choices>
  1539. <itemset nodeset="/root/init/plceordbase">
  1540. <label ref="cdnm"/>
  1541. <value ref="cdid"/>
  1542. </itemset>
  1543. </choices>
  1544. </select1>
  1545. <caption id="caption78" class="cell_1" style="left:0px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
  1546. <input id="ipt_mmavguseqty" ref="/root/main/gooddet/gooddetlist/ddavguseqty" class="input_default" style="left:110px; top:27px; width:156px; height:19px; text-align:right; "/>
  1547. <caption id="caption79" class="cell_1" style="left:268px; top:25px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
  1548. <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:378px; top:27px; width:158px; height:19px; text-align:right; "/>
  1549. <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:378px; top:2px; width:158px; height:19px; ">
  1550. <choices>
  1551. <itemset nodeset="/root/init/plceordqtycretflag">
  1552. <label ref="cdnm"/>
  1553. <value ref="cdid"/>
  1554. </itemset>
  1555. </choices>
  1556. </select1>
  1557. </group>
  1558. <line id="line4" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1559. </case>
  1560. <case id="case4">
  1561. <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" class="datagrid2" caption="기관코드^기관명" colsep="^" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537; height:201px; ">
  1562. <col ref="instcd"/>
  1563. <col ref="instnm"/>
  1564. <script type="javascript" ev:event="ondblclick">
  1565. <![CDATA[
  1566. var row = grd_instinfo.row ;
  1567. if(row > (grd_instinfo.fixedRows-1) )
  1568. {
  1569. if ( grd_goodlist.row < 1 )
  1570. model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  1571. else
  1572. model.setValue("/root/send/gooddetlist/goodcd", grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")));
  1573. model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(row, grd_instinfo.colRef("instcd")));
  1574. model.setValue("/root/send/gooddetlist/useyn", 'Y');
  1575. submit("TRRSC05302");
  1576. fAfterRetrGoodList();
  1577. //자신의 기관번호와 일치하는 데이터만 수정 가능
  1578. if ( grd_instinfo.valueMatrix(row, grd_instinfo.colRef("instcd")) == getUserInfo("dutplceinstcd") )
  1579. {
  1580. //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
  1581. //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
  1582. fSetGrp_detailDisabled( false );
  1583. }
  1584. else
  1585. fSetGrp_detailDisabled( true );
  1586. }
  1587. ]]>
  1588. </script>
  1589. </datagrid>
  1590. <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1591. </case>
  1592. <case id="case5">
  1593. <line id="line9" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1594. <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/list/goodbaseqty/goodbaseqtylist" class="datagrid2" caption="재고관리부서^안전재고량^비고^INSTCD" colsep="^" colwidth="116, 101, 292, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:535px; height:201px; ">
  1595. <col ref="reqdeptcd" type="combo">
  1596. <choices>
  1597. <itemset>
  1598. <label/>
  1599. <value/>
  1600. </itemset>
  1601. </choices>
  1602. </col>
  1603. <col ref="basevol" type="input" format="#,###" style="text-align:right; "/>
  1604. <col ref="cmt" type="input"/>
  1605. <col ref="instcd" visibility="hidden"/>
  1606. <col ref="goodcd" visibility="hidden"/>
  1607. <col ref="ddavguseqty" visibility="hidden"/>
  1608. </datagrid>
  1609. <button id="btn_grdadd2" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
  1610. <caption>행추가</caption>
  1611. <script type="javascript" ev:event="DOMActivate">
  1612. <![CDATA[
  1613. misfGridIUD(grd_goodbaseqtylist,"A");
  1614. //default setting
  1615. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
  1616. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
  1617. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/ddavguseqty" ,"0");
  1618. ]]>
  1619. </script>
  1620. </button>
  1621. <button id="btn_grddel2" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
  1622. <caption>행삭제</caption>
  1623. <script type="javascript" ev:event="DOMActivate">
  1624. <![CDATA[
  1625. misfGridIUD(grd_goodbaseqtylist,"D");
  1626. ]]>
  1627. </script>
  1628. </button>
  1629. </case>
  1630. <case id="case6">
  1631. <line id="line11" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1632. <datagrid id="grd_rscdpbnslist" nodeset="/root/main/list/rscdpbns/rscdpbnslist" class="datagrid2" caption="적용여부^도매상코드^처방환산^낱개수량^낱개단위^포장단위^구입단가^구입가^신코드" colsep="^" colwidth="56, 82, 21, 57, 62, 62, 91, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:535px; height:201px; ">
  1633. <col ref="bnscheck" style="text-align:center; "/>
  1634. <col ref="bnscd" _key="true" style="text-align:left; "/>
  1635. <col ref="prcpexchqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  1636. <col ref="exchqty" format="#,###" style="text-align:right; "/>
  1637. <col disabled="true" ref="deliveunit" type="combo" style="text-align:center; ">
  1638. <choices>
  1639. <itemset>
  1640. <label/>
  1641. <value/>
  1642. </itemset>
  1643. </choices>
  1644. </col>
  1645. <col disabled="true" ref="purcunit" type="combo" style="text-align:center; ">
  1646. <choices>
  1647. <itemset>
  1648. <label/>
  1649. <value/>
  1650. </itemset>
  1651. </choices>
  1652. </col>
  1653. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  1654. <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
  1655. <col ref="goodcd" visibility="hidden"/>
  1656. <script type="javascript" ev:event="ondblclick">
  1657. <![CDATA[
  1658. var cnt = 0;
  1659. if( grd_rscdpbnslist.row - grd_rscdpbnslist.fixedRows >= 0 &&
  1660. grd_rscdpbnslist.col == grd_rscdpbnslist.colRef("bnscheck") &&
  1661. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) != '√' &&
  1662. fBnsValidCheck() == true )
  1663. {
  1664. if(messageBox("도매상 코드로", "Q009") =='6')
  1665. {
  1666. opt_bnscd.value = grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscd"));
  1667. /* 2008.08.04 YYJ 처방 환산은 보나에스에 종속적이지 않다고 하여 변경 */
  1668. // ipt_prcpexchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("prcpexchqty"));
  1669. ipt_exchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("exchqty"));
  1670. cmb_deliveunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("deliveunit"));
  1671. cmb_purcunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("purcunit"));
  1672. ipt_goodunitcost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodunitcost"));
  1673. ipt_goodpurccost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodpurccost"));
  1674. for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ )
  1675. {
  1676. if( grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) == '√' )
  1677. {
  1678. grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) = "";
  1679. break;
  1680. }
  1681. }
  1682. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) = '√'
  1683. model.refresh();
  1684. }
  1685. }
  1686. ]]>
  1687. </script>
  1688. </datagrid>
  1689. </case>
  1690. <case id="case3">
  1691. <line id="line20" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1692. <button id="button3" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
  1693. <caption>행추가</caption>
  1694. <script type="javascript" ev:event="DOMActivate">
  1695. <![CDATA[
  1696. var addflag = "N";
  1697. var CntNode = instance1.selectNodes("/root/main/list/gooddet/goodprodcmpyinfo/gooddrugprodcmpylist");
  1698. if(CntNode.length < 1){
  1699. grd_gooddrugprodcmpylist.addRow(false);
  1700. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
  1701. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
  1702. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/goodengnm" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodengnm"));
  1703. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/oldcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/oldcd"));
  1704. }else{
  1705. for(var i =grd_gooddrugprodcmpylist.fixedRows;i < grd_gooddrugprodcmpylist.rows;i++ ){
  1706. var useyn = grd_gooddrugprodcmpylist.valueMatrix(i,grd_gooddrugprodcmpylist.colRef("useyn"));
  1707. var todd = grd_gooddrugprodcmpylist.valueMatrix(i,grd_gooddrugprodcmpylist.colRef("todd"));
  1708. if(useyn =="Y"){
  1709. var msg = messageBox("현재 계약중인 제조회사가 있습니다.\n그래도","Q008");
  1710. if(msg =="6"){
  1711. var fromdd = grd_gooddrugprodcmpylist.valueMatrix(i,grd_gooddrugprodcmpylist.colRef("fromdd"));
  1712. var diffdt = -1;
  1713. var sFromdd = fromdd.toDate("YYYYMMDD");
  1714. var AddFromdd = sFromdd.getAddDate(diffdt, "D");
  1715. var pFromdd = AddFromdd.getDateFormat();
  1716. addflag ="Y";
  1717. }else{
  1718. return;
  1719. }
  1720. }else{
  1721. addflag ="Y";
  1722. }
  1723. }
  1724. if(addflag=="Y"){
  1725. grd_gooddrugprodcmpylist.addRow(false);
  1726. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
  1727. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
  1728. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/goodengnm" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodengnm"));
  1729. model.makeValue(grd_gooddrugprodcmpylist.attribute("nodeset")+"["+grd_gooddrugprodcmpylist.row+"]/oldcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/oldcd"));
  1730. }
  1731. }
  1732. grd_gooddrugprodcmpylist.refresh();
  1733. ]]>
  1734. </script>
  1735. </button>
  1736. <button id="button4" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
  1737. <caption>행삭제</caption>
  1738. <script type="javascript" ev:event="DOMActivate">
  1739. <![CDATA[
  1740. if(grd_gooddrugprodcmpylist.rowStatus(grd_gooddrugprodcmpylist.row) =="0"){
  1741. grd_gooddrugprodcmpylist.rowStatus(grd_gooddrugprodcmpylist.row)="4";
  1742. }else{
  1743. grd_gooddrugprodcmpylist.deleteRow(grd_gooddrugprodcmpylist.row);
  1744. }
  1745. ]]>
  1746. </script>
  1747. </button>
  1748. <datagrid id="grd_gooddrugprodcmpylist" nodeset="/root/main/list/gooddet/goodprodcmpyinfo/gooddrugprodcmpylist" class="datagrid2" caption="변경일자^약품코드^약품명^구코드^제조회사^보험금액^기준단가^사용&#xA;여부^본원&#xA;보유^삭제&#xA;여부^수입&#xA;여부^instcd^todd" colsep="^" colwidth="87, 105, 165, 80, 108, 81, 75, 36, 36, 33, 33, 68, 100" ellipsis="true" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:535px; height:201px; ">
  1749. <col ref="fromdd" type="inputdate" style="text-align:center; "/>
  1750. <col ref="goodcd" type="input" style="text-align:left; "/>
  1751. <col ref="goodengnm" type="input" style="text-align:left; "/>
  1752. <col ref="oldcd" type="input" style="text-align:left; "/>
  1753. <col itemcount="10" ref="prodcmpycd" type="combo" style="text-align:center; ">
  1754. <choices>
  1755. <itemset nodeset="/root/tmp/hidden/drugprodcmylist">
  1756. <label ref="cdnm"/>
  1757. <value ref="cdid"/>
  1758. </itemset>
  1759. </choices>
  1760. </col>
  1761. <col ref="insuamt" type="input" format="#,###.#" style="text-align:right; "/>
  1762. <col ref="stdunitcost" type="input" format="#,###.#" style="text-align:right; "/>
  1763. <col ref="useyn" type="combo" style="text-align:center; ">
  1764. <choices>
  1765. <item>
  1766. <label>Y</label>
  1767. <value>Y</value>
  1768. </item>
  1769. <item>
  1770. <label>N</label>
  1771. <value>N</value>
  1772. </item>
  1773. </choices>
  1774. </col>
  1775. <col ref="roothosppossnyn" type="combo" style="text-align:center; ">
  1776. <choices>
  1777. <item>
  1778. <label>Y</label>
  1779. <value>Y</value>
  1780. </item>
  1781. <item>
  1782. <label>N</label>
  1783. <value>N</value>
  1784. </item>
  1785. </choices>
  1786. </col>
  1787. <col ref="delyn" type="combo" style="text-align:center; ">
  1788. <choices>
  1789. <item>
  1790. <label>Y</label>
  1791. <value>Y</value>
  1792. </item>
  1793. <item>
  1794. <label>N</label>
  1795. <value>N</value>
  1796. </item>
  1797. </choices>
  1798. </col>
  1799. <col ref="incmyn" type="combo" style="text-align:center; ">
  1800. <choices>
  1801. <item>
  1802. <label>Y</label>
  1803. <value>Y</value>
  1804. </item>
  1805. <item>
  1806. <label>N</label>
  1807. <value>N</value>
  1808. </item>
  1809. </choices>
  1810. </col>
  1811. <col ref="instcd" visibility="hidden"/>
  1812. <col ref="todd" visibility="hidden"/>
  1813. <script type="javascript" ev:event="onkeydown">
  1814. <![CDATA[
  1815. if(event.keyCode == 13){
  1816. if(grd_gooddrugprodcmpylist.col == grd_gooddrugprodcmpylist.colRef("insuamt")){
  1817. grd_gooddrugprodcmpylist.endEditCell();
  1818. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("stdunitcost");
  1819. grd_gooddrugprodcmpylist.editCell();
  1820. }else if(grd_gooddrugprodcmpylist.col == grd_gooddrugprodcmpylist.colRef("stdunitcost")){
  1821. grd_gooddrugprodcmpylist.endEditCell();
  1822. grd_gooddrugprodcmpylist.col = grd_gooddrugprodcmpylist.colRef("useyn");
  1823. grd_gooddrugprodcmpylist.editCell();
  1824. }
  1825. }
  1826. ]]>
  1827. </script>
  1828. </datagrid>
  1829. <button id="bbt_large" class="icon_pre_month" visibility="hidden" style="left:0px; top:5px; width:16px; height:16px; ">
  1830. <caption/>
  1831. <script type="javascript" ev:event="DOMActivate">
  1832. <![CDATA[
  1833. sw_detail.attribute("width")="540";
  1834. line20.attribute("x2")="537";
  1835. grd_goodprodcmpylist.attribute("width")="535";
  1836. ]]>
  1837. </script>
  1838. </button>
  1839. <button id="bbt_right" class="icon_next_month" visibility="hidden" style="left:20px; top:5px; width:16px; height:16px; ">
  1840. <caption/>
  1841. <script type="javascript" ev:event="DOMActivate">
  1842. <![CDATA[
  1843. sw_detail.attribute("width")="800";
  1844. line20.attribute("x2")="600";
  1845. grd_goodprodcmpylist.attribute("width")="700";
  1846. ]]>
  1847. </script>
  1848. </button>
  1849. </case>
  1850. </switch>
  1851. <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" class="datagrid2" caption="약품코드^물품구분^약품명^EDI코드^함량/단위^대분류명^중분류명^소분류명" colsep="^" colwidth="85, 0, 225, 80, 66, 61, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:126px; width:540px; height:342px; ">
  1852. <col ref="goodcd" _key="true"/>
  1853. <col ref="goodflag" visibility="hidden" _key="true"/>
  1854. <col ref="goodnm" type="output" _key="true"/>
  1855. <col ref="edicd" style="text-align:center; "/>
  1856. <col ref="goodspec"/>
  1857. <col ref="lrgnm" style="text-align:center; "/>
  1858. <col ref="mdlnm"/>
  1859. <col ref="smlnm"/>
  1860. <col ref="prodcmpynm" visibility="hidden"/>
  1861. <col ref="goodmodel" visibility="hidden"/>
  1862. <col ref="goodhngnm" visibility="hidden"/>
  1863. <col ref="goodengnm" visibility="hidden"/>
  1864. <col ref="asetflag" visibility="hidden"/>
  1865. <col ref="prodcmpycd" visibility="hidden"/>
  1866. <col ref="lrgcd" visibility="hidden"/>
  1867. <col ref="mdlcd" visibility="hidden"/>
  1868. <col ref="smlcd" visibility="hidden"/>
  1869. <script type="javascript" ev:event="onaftersort">
  1870. <![CDATA[
  1871. grd_goodlist.gridToInstance();
  1872. ]]>
  1873. </script>
  1874. <script type="javascript" ev:event="ondblclick">
  1875. <![CDATA[
  1876. var detailYN = "Y";
  1877. if (!grd_goodlist.isCell(event.target))
  1878. return;
  1879. fRetrGoodList(true, detailYN);
  1880. ]]>
  1881. </script>
  1882. </datagrid>
  1883. <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="goodcd^todd^prefromdd^instcd^useyn^fromdd^goodflag^edicd^goodnm^goodhngnm^goodengnm^goodspec^goodmodel^pregoodspec^pregoodmodel^asetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^proddrugsetflag^winacnt^winacntnm^amtacnt^amtacntnm^mainmngtdeptcd^mainmngtdeptnm^mainusedeptcd^stocmngtflag^purcunit^deliveunit^exchqty^minexch^reuseyn^divusenvalqty^calcscorinfoacptstat^calcscorinfoacptdd^edicd^reqdeptcd^reqdeptnm^reqpsn^reqpsnnm^reqflag^reqflagnm^reqmthd^reqprid^prodplce^prodcmpycd^prodcmpynm^maincustlastsuplplce^maincustlastsuplplcenm^suppcustcd^suppcustnm^conflag^fromconterm^toconterm^estmamt^forgncurncyunitcost^curncyunit^goodunitcost^purcflag^allsizeyn^setplceordflag^plceordbase^plceordqtycretflag^plceordnonusedd^addtaxrate^lastpurcdd^nonusetretresn^mngtflag^expnyn^cmt^cntsqty^ddavguseqty^mmavgusescheqty^mmavguseqty^prprtystocpossndayno^tmpreqflag^oldcd^bnscd^cntsunit^specvol^com^goodtype^narcflag^keepmthd^cntrdrugyn^expnyn^limdrugyn^gnrlspcl^specldrug^keeptemp^deliveunit^prcpunit^prcpexchqty^insucost^specunit^pemtkeepmthd^comnm^instcd^welfprt^welfprtnm^purcqty^prcpqty^csrusecmt^goodpurccost^drugkind^grupsnglflag^hospdrguvol^hospdrguunit^orginspplce^calcmthdcd^dupexpgoodcd^dupexpgoodcdold^dupexpgoodcdnm^shadelight^upperlimit^reprgoodcd^asisgoodcd^purccls^mngtcls^conflag^statsflag^ediunit^ediexchqty^ascitflag" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:210px; width:515px; height:85px; ">
  1884. <col ref="goodcd" _key="true"/>
  1885. <col ref="todd" _key="true"/>
  1886. <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
  1887. <col ref="instcd" _key="true"/>
  1888. <col ref="useyn"/>
  1889. <col ref="fromdd"/>
  1890. <col ref="goodflag"/>
  1891. <col ref="edicd"/>
  1892. <col ref="goodnm"/>
  1893. <col ref="goodhngnm"/>
  1894. <col ref="goodengnm"/>
  1895. <col ref="goodspec"/>
  1896. <col ref="goodmodel"/>
  1897. <col ref="pregoodspec"/>
  1898. <col ref="pregoodmodel"/>
  1899. <col ref="asetflag" _key="true"/>
  1900. <col ref="lrgcd" _key="true"/>
  1901. <col ref="lrgnm"/>
  1902. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  1903. <col ref="mdlnm"/>
  1904. <col ref="smlcd"/>
  1905. <col ref="smlnm"/>
  1906. <col ref="proddrugsetflag"/>
  1907. <col ref="winacnt" _key="true"/>
  1908. <col ref="winacntnm"/>
  1909. <col ref="amtacnt"/>
  1910. <col ref="amtacntnm"/>
  1911. <col ref="mainmngtdeptcd" _key="true"/>
  1912. <col ref="mainmngtdeptnm"/>
  1913. <col ref="mainusedeptcd"/>
  1914. <col ref="stocmngtflag"/>
  1915. <col ref="purcunit"/>
  1916. <col ref="deliveunit"/>
  1917. <col ref="exchqty"/>
  1918. <col ref="minexch"/>
  1919. <col ref="reuseyn"/>
  1920. <col ref="divusenvalqty"/>
  1921. <col ref="calcscorinfoacptstat"/>
  1922. <col ref="calcscorinfoacptdd"/>
  1923. <col ref="edicd"/>
  1924. <col ref="reqdeptcd"/>
  1925. <col ref="reqdeptnm"/>
  1926. <col ref="reqpsn"/>
  1927. <col ref="reqpsnnm"/>
  1928. <col ref="reqflag"/>
  1929. <col ref="reqflagnm"/>
  1930. <col ref="reqmthd" _key="true"/>
  1931. <col ref="reqprid"/>
  1932. <col ref="prodplce"/>
  1933. <col ref="prodcmpycd"/>
  1934. <col ref="prodcmpynm"/>
  1935. <col ref="maincustlastsuplplce" _key="true"/>
  1936. <col ref="maincustlastsuplplcenm"/>
  1937. <col ref="suppcustcd"/>
  1938. <col ref="suppcustnm"/>
  1939. <col ref="conflag"/>
  1940. <col ref="fromconterm"/>
  1941. <col ref="toconterm"/>
  1942. <col ref="estmamt"/>
  1943. <col ref="forgncurncyunitcost"/>
  1944. <col ref="curncyunit"/>
  1945. <col ref="goodunitcost"/>
  1946. <col ref="purcflag"/>
  1947. <col ref="allsizeyn"/>
  1948. <col ref="setplceordflag"/>
  1949. <col ref="plceordbase"/>
  1950. <col ref="plceordqtycretflag"/>
  1951. <col ref="plceordnonusedd"/>
  1952. <col ref="addtaxrate"/>
  1953. <col ref="lastpurcdd"/>
  1954. <col ref="nonusetretresn"/>
  1955. <col ref="mngtflag"/>
  1956. <col ref="expnyn"/>
  1957. <col ref="cmt"/>
  1958. <col ref="cntsqty"/>
  1959. <col ref="ddavguseqty"/>
  1960. <col ref="mmavgusescheqty"/>
  1961. <col ref="mmavguseqty"/>
  1962. <col ref="prprtystocpossndayno"/>
  1963. <col ref="tmpreqflag"/>
  1964. <col ref="oldcd"/>
  1965. <col ref="bnscd"/>
  1966. <col ref="cntsunit"/>
  1967. <col ref="specvol"/>
  1968. <col ref="com"/>
  1969. <col ref="goodtype"/>
  1970. <col ref="narcflag"/>
  1971. <col ref="keepmthd"/>
  1972. <col ref="cntrdrugyn"/>
  1973. <col ref="expnyn"/>
  1974. <col ref="limdrugyn"/>
  1975. <col ref="gnrlspcl"/>
  1976. <col ref="specldrug"/>
  1977. <col ref="keeptemp"/>
  1978. <col ref="deliveunit"/>
  1979. <col ref="prcpunit"/>
  1980. <col ref="prcpexchqty"/>
  1981. <col ref="insucost"/>
  1982. <col ref="specunit"/>
  1983. <col ref="pemtkeepmthd"/>
  1984. <col ref="comnm"/>
  1985. <col ref="instcd"/>
  1986. <col ref="welfprt"/>
  1987. <col ref="welfprtnm"/>
  1988. <col ref="purcqty"/>
  1989. <col ref="prcpqty"/>
  1990. <col ref="csrusecmt"/>
  1991. <col ref="goodpurccost"/>
  1992. <col ref="drugkind"/>
  1993. <col ref="grupsnglflag"/>
  1994. <col ref="hospdrguvol"/>
  1995. <col ref="hospdrguunit"/>
  1996. <col ref="orginspplce"/>
  1997. <col ref="calcmthdcd"/>
  1998. <col ref="dupexpgoodcd"/>
  1999. <col ref="dupexpgoodcdold"/>
  2000. <col ref="dupexpgoodcdnm"/>
  2001. <col ref="shadelight"/>
  2002. <col ref="upperlimit"/>
  2003. <col ref="reprgoodcd"/>
  2004. <col ref="asisgoodcd"/>
  2005. <col ref="purccls"/>
  2006. <col ref="mngtcls"/>
  2007. <col ref="conflag"/>
  2008. <col ref="statsflag"/>
  2009. <col ref="ediunit"/>
  2010. <col ref="ediexchqty"/>
  2011. <col ref="ascitflag"/>
  2012. </datagrid>
  2013. <datagrid id="grd_gooddetgoodexcellist" nodeset="/root/main/list/goodexcel/gooddetgoodexcellist" visibility="hidden" autoresize="true" caption="기관명^적용일자^구코드^약품코드^보나에스 코드^한글상품명^일반/전문^복지부 분류코드^복지부 분류명^제조회사코드^제조회사명^EDI 코드^판매회사코드^판매회사명^주거래처코드^주거래처명^성분^성분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^자산구분^입고계정코드^입고계정^비용계정코드^비용계정^함량^함량단위^규격^규격단위^처방수량^처방단위^처방환산^낱개단위^환산^포장단위^보험단가^처방단가^구입단가^구입가^보관법 실 제^보관법 설명서^제제약여부^불용일자^불용사유^비고^관리부서코드^관리부서명^집계구분^집계구분명^재고관리기준^재고관리기준명^청구방법^청구방법명^임의청구여부^청구주기^청구주기명^중복제외대표코드^중복제외대표명칭^차광구분^상한가^약품대표코드^연번^구입분류^관리분류^통계구분^EDI단위^최소단위환산^단/복수여부" colsep="^" colwidth="118, 95, 61, 72, 86, 118, 78, 102, 135, 92, 94, 61, 124, 114, 90, 97, 101, 68, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 100, 122, 100, 100, 100, 100, 104, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:315px; width:515px; height:95px; ">
  2014. <col ref="instnm"/>
  2015. <col ref="fromdd" style="left:400px; top:23px; width:107px; height:48px; "/>
  2016. <col ref="oldcd"/>
  2017. <col ref="goodcd" _key="true"/>
  2018. <col ref="bnscd"/>
  2019. <col ref="goodnm"/>
  2020. <col ref="gnrlspcl"/>
  2021. <col ref="welfprt"/>
  2022. <col ref="welfprtnm"/>
  2023. <col ref="prodcmpycd"/>
  2024. <col ref="prodcmpynm"/>
  2025. <col ref="edicd"/>
  2026. <col ref="suppcustcd"/>
  2027. <col ref="suppcustnm"/>
  2028. <col ref="maincustlastsuplplce" _key="true"/>
  2029. <col ref="maincustlastsuplplcenm"/>
  2030. <col ref="com"/>
  2031. <col ref="comnm"/>
  2032. <col ref="lrgcd" _key="true"/>
  2033. <col ref="lrgnm"/>
  2034. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  2035. <col ref="mdlnm"/>
  2036. <col ref="smlcd"/>
  2037. <col ref="smlnm"/>
  2038. <col ref="asetflag" _key="true"/>
  2039. <col ref="winacnt" _key="true"/>
  2040. <col ref="winacntnm"/>
  2041. <col ref="amtacnt"/>
  2042. <col ref="amtacntnm"/>
  2043. <col ref="cntsqty"/>
  2044. <col ref="cntsunit"/>
  2045. <col ref="specvol"/>
  2046. <col ref="specunit"/>
  2047. <col ref="prcpqty"/>
  2048. <col ref="prcpunit"/>
  2049. <col ref="prcpexchqty"/>
  2050. <col ref="exchqty"/>
  2051. <col ref="deliveunit"/>
  2052. <col ref="purcunit"/>
  2053. <col ref="insucost"/>
  2054. <col ref="estmamt"/>
  2055. <col ref="goodunitcost"/>
  2056. <col ref="goodcost"/>
  2057. <col ref="keepmthd"/>
  2058. <col ref="pemtkeepmthd"/>
  2059. <col ref="proddrugsetflag"/>
  2060. <col ref="todd" _key="true"/>
  2061. <col ref="nonusetretresn"/>
  2062. <col ref="cmt"/>
  2063. <col ref="mainmngtdeptcd" _key="true"/>
  2064. <col ref="mainmngtdeptnm"/>
  2065. <col ref="reqflag"/>
  2066. <col ref="reqflagnm"/>
  2067. <col ref="stocmngtflag"/>
  2068. <col ref="stocmngtflagnm"/>
  2069. <col ref="reqmthd"/>
  2070. <col ref="reqmthdnm"/>
  2071. <col ref="tmpreqflag"/>
  2072. <col ref="reqprid"/>
  2073. <col ref="reqpridnm"/>
  2074. <col ref="dupexpgoodcd"/>
  2075. <col ref="dupexpgoodcdnm"/>
  2076. <col ref="shadelight"/>
  2077. <col ref="upperlimit"/>
  2078. <col ref="reprgoodcd"/>
  2079. <col ref="asisgoodcd"/>
  2080. <col ref="purccls"/>
  2081. <col ref="mngtcls"/>
  2082. <col ref="statsflag"/>
  2083. <col ref="ediunit"/>
  2084. <col ref="ediexchqty"/>
  2085. <col ref="ascitflag"/>
  2086. </datagrid>
  2087. <button id="btn_repr" class="btn_sw6" group="maintab" style="left:179px; top:98px; width:88px; height:22px; ">
  2088. <caption>대표약품목록</caption>
  2089. <script type="javascript" ev:event="DOMActivate">
  2090. <![CDATA[
  2091. //Excel 저장 시 로그인한 기관코드로 저장 되도록
  2092. btn_excelsave.value = "Excel 저장";
  2093. btn_save.disabled = true;
  2094. model.setValue("/root/send/goodlist/instcd", getUserInfo("dutplceinstcd"));
  2095. //기관탭에서는 타기관내용복사 못하게 버튼 숨김
  2096. btn_useinstinfo.attribute("visibility") = "hidden";
  2097. //기관 flag로 조회되도록 flag설정
  2098. rbo_instflag.value = "Y";
  2099. fRetrGoodList(true);
  2100. //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
  2101. //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
  2102. fSetGrp_detailDisabled( false );
  2103. ]]>
  2104. </script>
  2105. </button>
  2106. <caption id="caption71" style="left:420px; top:100px; width:86px; height:20px; ">약품 총 품목수:</caption>
  2107. <caption id="cap_goodcnt" class="9" format="#,###" style="left:507px; top:100px; width:40px; height:20px; ">0</caption>
  2108. </group>
  2109. <group id="grp_detail" style="left:545px; top:165px; width:649px; height:615px; ">
  2110. <line id="line19" class="line_2" style="x1:0px; y1:286px; x2:649px; y2:286px; "/>
  2111. <line id="line29" class="line_2" style="x1:0px; y1:118px; x2:649px; y2:118px; "/>
  2112. <line id="line18" class="line_2" style="x1:0px; y1:310px; x2:649px; y2:310px; "/>
  2113. <line id="line27" class="line_2" style="x1:0px; y1:166px; x2:649px; y2:166px; "/>
  2114. <line id="line16" class="line_2" style="x1:0px; y1:334px; x2:649px; y2:334px; "/>
  2115. <line id="line15" class="line_2" style="x1:0px; y1:358px; x2:649px; y2:358px; "/>
  2116. <line id="line14" class="line_2" style="x1:0px; y1:382px; x2:649px; y2:382px; "/>
  2117. <line id="line13" class="line_2" style="x1:0px; y1:406px; x2:649px; y2:406px; "/>
  2118. <line id="line23" class="line_2" style="x1:0px; y1:214px; x2:649px; y2:214px; "/>
  2119. <line id="line12" class="line_2" style="x1:0px; y1:475px; x2:649px; y2:475px; "/>
  2120. <line id="line33" class="line_2" style="x1:0px; y1:22px; x2:649px; y2:22px; "/>
  2121. <line id="line22" class="line_2" style="x1:0px; y1:238px; x2:649px; y2:238px; "/>
  2122. <line id="line32" class="line_2" style="x1:0px; y1:45px; x2:649px; y2:46px; "/>
  2123. <line id="line21" class="line_2" style="x1:0px; y1:240px; x2:649px; y2:240px; "/>
  2124. <line id="line10" class="line_2" style="x1:0px; y1:585px; x2:649px; y2:585px; "/>
  2125. <line id="line31" class="line_2" style="x1:0px; y1:70px; x2:649px; y2:70px; "/>
  2126. <line id="line30" class="line_2" style="x1:0px; y1:94px; x2:649px; y2:94px; "/>
  2127. <line id="line6" class="line_3" style="x1:0px; y1:611px; x2:649px; y2:611px; "/>
  2128. <line id="line8" class="line_3" style="x1:0px; y1:516px; x2:649px; y2:516px; "/>
  2129. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:410px; top:515px; width:11px; height:19px; ">
  2130. <script type="javascript" ev:event="onkeydown">
  2131. <![CDATA[
  2132. if(event.keyCode == 9)
  2133. {
  2134. if(event.shiftKey)model.setFocus("ipt_goodnm");
  2135. else model.setFocus("ipt_goodengnm");
  2136. }
  2137. //event.preventDefault();
  2138. ]]>
  2139. </script>
  2140. </input>
  2141. <button id="btn_prodcmpycd" class="icon_search" style="left:169px; top:174px; width:16px; height:16px; ">
  2142. <caption/>
  2143. <script type="javascript" ev:event="DOMActivate">
  2144. <![CDATA[
  2145. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  2146. model.refresh();
  2147. ]]>
  2148. </script>
  2149. </button>
  2150. <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:93px; height:23px; vertical-align:middle; ">약 품 코 드</caption>
  2151. <caption id="caption52" class="cell_1" style="left:0px; top:48px; width:93px; height:23px; vertical-align:middle; ">한 글 상 품 명</caption>
  2152. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" editable="false" maxlength="12" _chartype="upper" style="left:95px; top:26px; width:111px; height:19px; ">
  2153. <script type="javascript" ev:event="onkeydown">
  2154. <![CDATA[
  2155. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  2156. // event.preventDefault();
  2157. ]]>
  2158. </script>
  2159. </input>
  2160. <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:188px; top:147px; width:129px; height:19px; "/>
  2161. <caption id="caption42" class="cell_1" style="left:0px; top:168px; width:93px; height:23px; vertical-align:middle; ">제 조 회 사</caption>
  2162. <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:513px; top:147px; width:134px; height:19px; "/>
  2163. <button id="btn_winacnt" class="icon_search" disabled="true" style="left:169px; top:150px; width:16px; height:16px; ">
  2164. <caption/>
  2165. <script type="javascript" ev:event="DOMActivate">
  2166. <![CDATA[
  2167. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  2168. model.refresh();
  2169. ]]>
  2170. </script>
  2171. </button>
  2172. <caption id="caption35" class="cell_1" style="left:0px; top:144px; width:93px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
  2173. <button id="btn_amtacnt" class="icon_search" disabled="true" style="left:490px; top:150px; width:16px; height:16px; ">
  2174. <caption/>
  2175. <script type="javascript" ev:event="DOMActivate">
  2176. <![CDATA[
  2177. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  2178. model.refresh();
  2179. ]]>
  2180. </script>
  2181. </button>
  2182. <caption id="caption7" class="cell_1" style="left:320px; top:144px; width:93px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
  2183. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" editable="false" style="left:95px; top:147px; width:70px; height:19px; ">
  2184. <script type="javascript" ev:event="xforms-value-changed">
  2185. <![CDATA[
  2186. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
  2187. model.refresh();
  2188. model.setFocus("ipt_amtacnt");
  2189. ]]>
  2190. </script>
  2191. <script type="javascript" ev:event="onkeydown">
  2192. <![CDATA[
  2193. if(event.keyCode == 9)
  2194. {
  2195. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  2196. else model.setFocus("ipt_amtacnt");
  2197. }
  2198. //event.preventDefault();
  2199. ]]>
  2200. </script>
  2201. </input>
  2202. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:95px; top:171px; width:70px; height:19px; ">
  2203. <script type="javascript" ev:event="xforms-value-changed">
  2204. <![CDATA[
  2205. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
  2206. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  2207. model.refresh();
  2208. // model.setFocus("ipt_goodmodel");
  2209. ]]>
  2210. </script>
  2211. <script type="javascript" ev:event="onkeydown">
  2212. <![CDATA[
  2213. if(event.keyCode == 9)
  2214. {
  2215. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  2216. // else model.setFocus("ipt_goodmodel");
  2217. }
  2218. //event.preventDefault();
  2219. ]]>
  2220. </script>
  2221. </input>
  2222. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" editable="false" imemode="alpha" maxlength="450" style="left:95px; top:74px; width:552px; height:19px; ">
  2223. <script type="javascript" ev:event="onkeydown">
  2224. <![CDATA[
  2225. if(event.keyCode == 9)
  2226. {
  2227. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  2228. // else model.setFocus("cmb_prodplce");
  2229. }
  2230. //event.preventDefault();
  2231. ]]>
  2232. </script>
  2233. </input>
  2234. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_s_essential" editable="false" style="left:415px; top:147px; width:70px; height:19px; ">
  2235. <script type="javascript" ev:event="xforms-value-changed">
  2236. <![CDATA[
  2237. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  2238. model.refresh();
  2239. model.setFocus("ipt_fromdd");
  2240. ]]>
  2241. </script>
  2242. <script type="javascript" ev:event="onkeydown">
  2243. <![CDATA[
  2244. if(event.keyCode == 9)
  2245. {
  2246. if(event.shiftKey)model.setFocus("ipt_winacnt");
  2247. else model.setFocus("ipt_fromdd");
  2248. }
  2249. //event.preventDefault();
  2250. ]]>
  2251. </script>
  2252. </input>
  2253. <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:188px; top:171px; width:129px; height:19px; "/>
  2254. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_s_essential" editable="false" maxlength="30" style="left:95px; top:49px; width:552px; height:19px; ">
  2255. <script type="javascript" ev:event="onkeydown">
  2256. <![CDATA[
  2257. if(event.keyCode == 9)
  2258. {
  2259. if(event.shiftKey)model.setFocus("ipt_goodcd");
  2260. else model.setFocus("ipt_goodhngnm");
  2261. }
  2262. //event.preventDefault();
  2263. ]]>
  2264. </script>
  2265. <script type="javascript" ev:event="xforms-value-changed">
  2266. <![CDATA[
  2267. /* 한글명에 값셋팅한다.*/
  2268. model.setValue(ipt_goodhngnm.attribute("ref"),ipt_goodnm.value);
  2269. ]]>
  2270. </script>
  2271. </input>
  2272. <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:93px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
  2273. <button id="btn_photinfo" class="btn2_letter2" style="left:208px; top:25px; width:42px; height:19px; ">
  2274. <caption>사진</caption>
  2275. <script type="javascript" ev:event="DOMActivate">
  2276. <![CDATA[
  2277. //SPRSC00210
  2278. rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  2279. //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  2280. ]]>
  2281. </script>
  2282. </button>
  2283. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_s_essential" inputtype="date" style="left:95px; top:2px; width:111px; height:19px; background-color:#ffffff; ">
  2284. <script type="javascript" ev:event="onkeydown">
  2285. <![CDATA[
  2286. if(event.keyCode == 9)
  2287. {
  2288. if(event.shiftKey)model.setFocus("ipt_fromdd");
  2289. else model.setFocus("ipt_smlcd");
  2290. }
  2291. //event.preventDefault();
  2292. ]]>
  2293. </script>
  2294. <script type="javascript" ev:event="xforms-value-changed">
  2295. <![CDATA[
  2296. var ComFromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
  2297. var ComPreFromdd = model.getValue("/root/main/gooddet/gooddetlist/prefromdd");
  2298. if(ComFromdd < ComPreFromdd){
  2299. messageBox("현 적용일자보다 이전일자로 변경할수", "I004");
  2300. model.setValue(ipt_fromdd.attribute("ref"), ComPreFromdd);
  2301. ipt_fromdd.refresh();
  2302. return;
  2303. }
  2304. ]]>
  2305. </script>
  2306. </input>
  2307. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:454px; width:105px; height:19px; ">
  2308. <script type="javascript" ev:event="xforms-value-changed">
  2309. <![CDATA[
  2310. var Todd = model.getValue("/root/main/gooddet/gooddetlist/todd");
  2311. var ComTodd = model.getValue("/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]/todd");
  2312. var Fromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
  2313. var ComFromdd = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
  2314. if(ComFromdd!=Fromdd){
  2315. messageBox("이미 불용된 코드","I009");
  2316. model.setValue("/root/main/gooddet/gooddetlist/todd",ComTodd);
  2317. ipt_nonusetretdd.refresh();
  2318. return;
  2319. }
  2320. ]]>
  2321. </script>
  2322. </input>
  2323. <select1 id="cmb_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="combo_default" appearance="minimal" style="left:445px; top:454px; width:202px; height:19px; ">
  2324. <choices>
  2325. <itemset nodeset="/root/init/R0356list/R0356">
  2326. <label ref="cdnm"/>
  2327. <value ref="cdid"/>
  2328. </itemset>
  2329. </choices>
  2330. </select1>
  2331. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:476px; width:538px; height:39px; ">
  2332. <script type="javascript" ev:event="onkeydown">
  2333. <![CDATA[
  2334. if(event.keyCode == 9)
  2335. {
  2336. // if(event.shiftKey)model.setFocus("ipt_reqpsn");
  2337. // else model.setFocus("ipt_lastpurcdd");
  2338. }
  2339. //event.preventDefault();
  2340. ]]>
  2341. </script>
  2342. </textarea>
  2343. <caption id="caption5" class="cell_1" style="left:0px; top:453px; width:108px; height:23px; vertical-align:middle; ">불 용 일 자</caption>
  2344. <caption id="caption17" class="cell_1" style="left:0px; top:477px; width:108px; height:38px; vertical-align:middle; ">비 고</caption>
  2345. <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:188px; top:195px; width:129px; height:19px; "/>
  2346. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_s_essential" disabled="true" style="left:95px; top:195px; width:70px; height:19px; ">
  2347. <script type="javascript" ev:event="xforms-value-changed">
  2348. <![CDATA[
  2349. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
  2350. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
  2351. model.refresh();
  2352. model.setFocus("ipt_suppcustcd");
  2353. ]]>
  2354. </script>
  2355. <script type="javascript" ev:event="onkeydown">
  2356. <![CDATA[
  2357. if(event.keyCode == 9)
  2358. {
  2359. //if(event.shiftKey)model.setFocus("cmb_purcflag");
  2360. //else model.setFocus("ipt_suppcustcd");
  2361. }
  2362. //event.preventDefault();
  2363. ]]>
  2364. </script>
  2365. </input>
  2366. <caption id="caption67" class="cell_1" style="left:238px; top:360px; width:85px; height:23px; vertical-align:middle; ">처 방 단 가</caption>
  2367. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:527px; top:362px; width:120px; height:19px; text-align:right; ">
  2368. <script type="javascript" ev:event="onkeydown">
  2369. <![CDATA[
  2370. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2371. //event.preventDefault();
  2372. ]]>
  2373. </script>
  2374. <script type="javascript" ev:event="xforms-value-changed">
  2375. <![CDATA[
  2376. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2377. ]]>
  2378. </script>
  2379. </input>
  2380. <button id="btn_maincustlastsuplplce" class="icon_search" disabled="true" style="left:169px; top:198px; width:16px; height:16px; ">
  2381. <caption/>
  2382. <script type="javascript" ev:event="DOMActivate">
  2383. <![CDATA[
  2384. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  2385. opt_instcd2.value=getUserInfo("dutplceinstcd");
  2386. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd2");
  2387. model.refresh();
  2388. ]]>
  2389. </script>
  2390. </button>
  2391. <caption id="caption27" class="cell_1" style="left:0px; top:192px; width:93px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
  2392. <caption id="caption13" class="cell_1" style="left:0px; top:265px; width:108px; height:23px; vertical-align:middle; ">함량/함량단위</caption>
  2393. <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" disabled="true" appearance="minimal" itemcount="20" style="left:195px; top:266px; width:127px; height:19px; text-align:center; ">
  2394. <choices>
  2395. <itemset>
  2396. <label/>
  2397. <value/>
  2398. </itemset>
  2399. </choices>
  2400. <script type="javascript" ev:event="onkeydown">
  2401. <![CDATA[
  2402. if(event.keyCode == 9)
  2403. {
  2404. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2405. else model.setFocus("ipt_exchqty");
  2406. }
  2407. //event.preventDefault();
  2408. ]]>
  2409. </script>
  2410. </select1>
  2411. <caption id="caption20" class="cell_1" style="left:0px; top:288px; width:108px; height:23px; vertical-align:middle; ">병원용량/단위</caption>
  2412. <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" editable="false" format="#,###.##" style="left:434px; top:266px; width:80px; height:19px; text-align:right; ">
  2413. <script type="javascript" ev:event="onkeydown">
  2414. <![CDATA[
  2415. if(event.keyCode == 9)
  2416. {
  2417. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2418. else model.setFocus("ipt_plceordnonusedd");
  2419. }
  2420. //event.preventDefault();
  2421. ]]>
  2422. </script>
  2423. </input>
  2424. <caption id="caption26" class="cell_1" style="left:0px; top:96px; width:93px; height:23px; vertical-align:middle; ">성 분</caption>
  2425. <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" editable="false" maxlength="10" style="left:95px; top:98px; width:111px; height:19px; ">
  2426. <script type="javascript" ev:event="onkeydown">
  2427. <![CDATA[
  2428. if(event.keyCode == 9)
  2429. {
  2430. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2431. else model.setFocus("ipt_plceordnonusedd");
  2432. }
  2433. //event.preventDefault();
  2434. ]]>
  2435. </script>
  2436. </input>
  2437. <caption id="caption25" class="cell_1" style="left:0px; top:385px; width:56px; height:43px; vertical-align:middle; ">보 관 법</caption>
  2438. <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:320px; top:514px; width:20px; height:18px; ">
  2439. <choices>
  2440. <item>
  2441. <label>일반</label>
  2442. <value>N</value>
  2443. </item>
  2444. <item>
  2445. <label>특별</label>
  2446. <value>Y</value>
  2447. </item>
  2448. </choices>
  2449. <script type="javascript" ev:event="onkeydown">
  2450. <![CDATA[
  2451. if(event.keyCode == 9)
  2452. {
  2453. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2454. else model.setFocus("ipt_exchqty");
  2455. }
  2456. //event.preventDefault();
  2457. ]]>
  2458. </script>
  2459. </select1>
  2460. <caption id="caption48" class="cell_1" style="left:0px; top:360px; width:108px; height:23px; vertical-align:middle; ">수 가</caption>
  2461. <caption id="caption49" class="cell_1" style="left:455px; top:360px; width:68px; height:23px; vertical-align:middle; ">구입 단가</caption>
  2462. <caption id="caption11" class="cell_1" style="left:324px; top:264px; width:108px; height:23px; vertical-align:middle; ">규격/규격단위</caption>
  2463. <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" editable="false" format="#,###.##" style="left:110px; top:266px; width:80px; height:19px; text-align:right; ">
  2464. <script type="javascript" ev:event="onkeydown">
  2465. <![CDATA[
  2466. if(event.keyCode == 9)
  2467. {
  2468. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2469. else model.setFocus("ipt_plceordnonusedd");
  2470. }
  2471. //event.preventDefault();
  2472. ]]>
  2473. </script>
  2474. </input>
  2475. <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" disabled="true" appearance="full" cellspacing="50" cols="5" overflow="visible" style="left:110px; top:386px; width:325px; height:20px; border-style:none; ">
  2476. <choices>
  2477. <itemset nodeset="/root/init/keepmthd">
  2478. <label ref="label"/>
  2479. <value ref="value"/>
  2480. </itemset>
  2481. </choices>
  2482. </select1>
  2483. <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" disabled="true" appearance="minimal" itemcount="20" style="left:518px; top:267px; width:129px; height:19px; text-align:center; ">
  2484. <choices>
  2485. <itemset nodeset="/root/init/specunit">
  2486. <label ref="cdnm"/>
  2487. <value ref="cdid"/>
  2488. </itemset>
  2489. </choices>
  2490. <script type="javascript" ev:event="onkeydown">
  2491. <![CDATA[
  2492. if(event.keyCode == 9)
  2493. {
  2494. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2495. else model.setFocus("ipt_exchqty");
  2496. }
  2497. //event.preventDefault();
  2498. ]]>
  2499. </script>
  2500. </select1>
  2501. <caption id="caption18" class="tit_2" style="left:5px; top:519px; width:95px; height:13px; ">재고관리기준</caption>
  2502. <line id="line26" class="line_1" style="x1:0px; y1:533px; x2:649px; y2:533px; "/>
  2503. <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:232px; top:315px; width:6px; height:19px; ">
  2504. <script type="javascript" ev:event="onkeydown">
  2505. <![CDATA[
  2506. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  2507. //event.preventDefault();
  2508. ]]>
  2509. </script>
  2510. </input>
  2511. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" style="left:350px; top:514px; width:15px; height:18px; ">
  2512. <script type="javascript" ev:event="onkeydown">
  2513. <![CDATA[
  2514. if(event.keyCode == 9)
  2515. {
  2516. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2517. else model.setFocus("ipt_plceordnonusedd");
  2518. }
  2519. //event.preventDefault();
  2520. ]]>
  2521. </script>
  2522. </input>
  2523. <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" disabled="true" appearance="minimal" itemcount="20" style="left:518px; top:290px; width:129px; height:19px; text-align:center; ">
  2524. <choices>
  2525. <itemset>
  2526. <label/>
  2527. <value/>
  2528. </itemset>
  2529. </choices>
  2530. <script type="javascript" ev:event="onkeydown">
  2531. <![CDATA[
  2532. if(event.keyCode == 9)
  2533. {
  2534. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2535. else model.setFocus("ipt_exchqty");
  2536. }
  2537. //event.preventDefault();
  2538. ]]>
  2539. </script>
  2540. <script type="javascript" ev:event="xforms-value-changed">
  2541. <![CDATA[
  2542. var prcpunit = model.getValue("/root/main/gooddet/gooddetlist/prcpunit");
  2543. model.setValue("/root/main/gooddet/gooddetlist/deliveunit", prcpunit);
  2544. cmb_deliveunit.refresh();
  2545. ]]>
  2546. </script>
  2547. </select1>
  2548. <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_default" editable="false" format="#,###.##" style="left:111px; top:314px; width:115px; height:19px; text-align:right; ">
  2549. <script type="javascript" ev:event="onkeydown">
  2550. <![CDATA[
  2551. if(event.keyCode == 9)
  2552. {
  2553. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2554. else model.setFocus("ipt_plceordnonusedd");
  2555. }
  2556. //event.preventDefault();
  2557. ]]>
  2558. </script>
  2559. </input>
  2560. <input id="ipt_insucost" ref="/root/main/gooddet/gooddetlist/insucost" class="input_default" maxlength="14.2" format="#,###.#" style="left:110px; top:362px; width:125px; height:19px; text-align:right; ">
  2561. <script type="javascript" ev:event="onkeydown">
  2562. <![CDATA[
  2563. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2564. //event.preventDefault();
  2565. ]]>
  2566. </script>
  2567. <script type="javascript" ev:event="xforms-value-changed">
  2568. <![CDATA[
  2569. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2570. ]]>
  2571. </script>
  2572. </input>
  2573. <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.#" style="left:325px; top:362px; width:110px; height:19px; text-align:right; ">
  2574. <script type="javascript" ev:event="onkeydown">
  2575. <![CDATA[
  2576. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2577. //event.preventDefault();
  2578. ]]>
  2579. </script>
  2580. <script type="javascript" ev:event="xforms-value-changed">
  2581. <![CDATA[
  2582. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2583. ]]>
  2584. </script>
  2585. </input>
  2586. <caption id="caption23" class="cell_1" style="left:320px; top:192px; width:98px; height:23px; vertical-align:middle; ">복지부 분류코드</caption>
  2587. <input id="ipt_welfprt" ref="/root/main/gooddet/gooddetlist/welfprt" class="input_default" editable="false" style="left:420px; top:195px; width:70px; height:19px; text-align:center; ">
  2588. <script type="javascript" ev:event="onkeydown">
  2589. <![CDATA[
  2590. if(event.keyCode == 9)
  2591. {
  2592. if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
  2593. else model.setFocus("cmb_mngtflag");
  2594. }
  2595. //event.preventDefault();
  2596. ]]>
  2597. </script>
  2598. <script type="javascript" ev:event="xforms-value-changed">
  2599. <![CDATA[
  2600. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt,"SPRSD00290");
  2601. model.refresh();
  2602. ]]>
  2603. </script>
  2604. </input>
  2605. <caption id="caption28" class="cell_1" style="left:0px; top:429px; width:109px; height:23px; vertical-align:middle; ">제제약/비과세여부</caption>
  2606. <caption id="cap_barcode" class="cell_1" visibility="hidden" style="left:280px; top:477px; width:108px; height:23px; vertical-align:middle; ">바 코 드</caption>
  2607. <input id="ipt_barcode" visibility="hidden" style="left:390px; top:480px; width:213px; height:19px; "/>
  2608. <button id="btn_welfprt" class="icon_search" disabled="true" style="left:492px; top:198px; width:16px; height:16px; ">
  2609. <caption/>
  2610. <script type="javascript" ev:event="DOMActivate">
  2611. <![CDATA[
  2612. rszfOpenPopUpListByWndName(ipt_welfprt,"","welfprt,welfprtnm","SPRSD00290");
  2613. model.refresh();
  2614. ]]>
  2615. </script>
  2616. </button>
  2617. <input id="ipt_welfprtnm" ref="/root/main/gooddet/gooddetlist/welfprtnm" class="input_default" editable="false" style="left:513px; top:195px; width:134px; height:19px; ">
  2618. <script type="javascript" ev:event="xforms-value-changed">
  2619. <![CDATA[
  2620. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprtnm", "welfprtnm," + model.getValue(ipt_welfprtnm.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprtnm,"SPRSD00290");
  2621. model.refresh();
  2622. ]]>
  2623. </script>
  2624. </input>
  2625. <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:370px; top:514px; width:20px; height:18px; "/>
  2626. <input id="ipt_comnm" ref="/root/main/gooddet/gooddetlist/comnm" class="input_default" editable="false" style="left:210px; top:98px; width:436px; height:19px; ">
  2627. <script type="javascript" ev:event="onkeydown">
  2628. <![CDATA[
  2629. if(event.keyCode == 9)
  2630. {
  2631. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2632. else model.setFocus("ipt_plceordnonusedd");
  2633. }
  2634. //event.preventDefault();
  2635. ]]>
  2636. </script>
  2637. <script type="javascript" ev:event="DOMFocusIn">
  2638. <![CDATA[
  2639. ipt_comnm.visible = false;
  2640. tar_comnm.visible = true;
  2641. model.setFocus("tar_comnm");
  2642. ]]>
  2643. </script>
  2644. </input>
  2645. <select id="chk_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" overflow="visible" appearance="full" cols="1" style="left:110px; top:430px; width:55px; height:21px; border-style:none; ">
  2646. <choices>
  2647. <itemset nodeset="/root/init/proddrugsetflag">
  2648. <label ref="label"/>
  2649. <value ref="value"/>
  2650. </itemset>
  2651. </choices>
  2652. <script type="javascript" ev:event="xforms-value-changed">
  2653. <![CDATA[
  2654. if(chk_proddrugsetflag.value.length == 0) model.setValue(chk_proddrugsetflag.attribute("ref"),"0");
  2655. else model.setValue(chk_proddrugsetflag.attribute("ref"),"1");
  2656. ]]>
  2657. </script>
  2658. </select>
  2659. <input id="ipt_pemtkeepmthd" ref="/root/main/gooddet/gooddetlist/pemtkeepmthd" class="input_default" editable="false" style="left:108px; top:409px; width:325px; height:19px; text-align:left; ">
  2660. <script type="javascript" ev:event="onkeydown">
  2661. <![CDATA[
  2662. if(event.keyCode == 9)
  2663. {
  2664. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2665. else model.setFocus("ipt_plceordnonusedd");
  2666. }
  2667. //event.preventDefault();
  2668. ]]>
  2669. </script>
  2670. </input>
  2671. <caption id="caption4" class="cell_1" style="left:57px; top:385px; width:51px; height:21px; vertical-align:middle; ">실 제</caption>
  2672. <caption id="caption19" class="cell_1" style="left:57px; top:407px; width:51px; height:21px; vertical-align:middle; ">설명서</caption>
  2673. <caption id="caption36" class="cell_1" style="left:1px; top:312px; width:108px; height:23px; text-align:left; vertical-align:middle; ">처 방 환 산</caption>
  2674. <caption id="caption38" class="cell_1" style="left:455px; top:385px; width:68px; height:23px; vertical-align:middle; ">구 입 가</caption>
  2675. <input id="ipt_goodpurccost" ref="/root/main/gooddet/gooddetlist/goodpurccost" class="input_s_essential" disabled="true" maxlength="14.2" format="#,###.##" style="left:527px; top:386px; width:120px; height:19px; text-align:right; ">
  2676. <script type="javascript" ev:event="onkeydown">
  2677. <![CDATA[
  2678. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2679. //event.preventDefault();
  2680. ]]>
  2681. </script>
  2682. <script type="javascript" ev:event="xforms-value-changed">
  2683. <![CDATA[
  2684. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2685. ]]>
  2686. </script>
  2687. </input>
  2688. <input id="ipt_prcpqty" ref="/root/main/gooddet/gooddetlist/prcpqty" class="input_default" editable="false" format="#,###" style="left:434px; top:290px; width:80px; height:19px; text-align:right; ">
  2689. <script type="javascript" ev:event="onkeydown">
  2690. <![CDATA[
  2691. if(event.keyCode == 9)
  2692. {
  2693. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2694. else model.setFocus("ipt_plceordnonusedd");
  2695. }
  2696. //event.preventDefault();
  2697. ]]>
  2698. </script>
  2699. </input>
  2700. <input id="ipt_purcqty" ref="/root/main/gooddet/gooddetlist/purcqty" class="input_default" visibility="hidden" maxlength="9" format="#,###" style="left:227px; top:315px; width:5px; height:19px; text-align:right; ">
  2701. <script type="javascript" ev:event="onkeydown">
  2702. <![CDATA[
  2703. if(event.keyCode == 9)
  2704. {
  2705. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2706. else model.setFocus("cmb_deliveunit");
  2707. }
  2708. //event.preventDefault();
  2709. ]]>
  2710. </script>
  2711. </input>
  2712. <output id="opt_drugkind" ref="/root/main/gooddet/gooddetlist/drugkind" visibility="hidden" style="left:445px; top:514px; width:40px; height:18px; "/>
  2713. <caption id="caption9" class="cell_1" style="left:0px; top:72px; width:93px; height:23px; vertical-align:middle; ">영 문 상 품 명</caption>
  2714. <caption id="caption44" class="cell_1" style="left:324px; top:288px; width:108px; height:23px; vertical-align:middle; ">처방수량/단위</caption>
  2715. <input id="ipt_hospdrguvol" ref="/root/main/gooddet/gooddetlist/hospdrguvol" class="input_default" editable="false" style="left:110px; top:290px; width:80px; height:19px; text-align:right; ">
  2716. <script type="javascript" ev:event="onkeydown">
  2717. <![CDATA[
  2718. if(event.keyCode == 9)
  2719. {
  2720. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2721. else model.setFocus("ipt_plceordnonusedd");
  2722. }
  2723. //event.preventDefault();
  2724. ]]>
  2725. </script>
  2726. </input>
  2727. <select1 id="cmb_hospdrguunit" ref="/root/main/gooddet/gooddetlist/hospdrguunit" class="combo_essential" disabled="true" appearance="minimal" itemcount="20" style="left:195px; top:290px; width:127px; height:19px; text-align:center; ">
  2728. <choices>
  2729. <itemset>
  2730. <label/>
  2731. <value/>
  2732. </itemset>
  2733. </choices>
  2734. <script type="javascript" ev:event="onkeydown">
  2735. <![CDATA[
  2736. if(event.keyCode == 9)
  2737. {
  2738. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2739. else model.setFocus("ipt_exchqty");
  2740. }
  2741. //event.preventDefault();
  2742. ]]>
  2743. </script>
  2744. </select1>
  2745. <select1 id="cmb_calcmthdcd" ref="/root/main/gooddet/gooddetlist/calcmthdcd" class="combo_essential" disabled="true" appearance="minimal" style="left:335px; top:314px; width:110px; height:19px; text-align:center; ">
  2746. <choices>
  2747. <itemset nodeset="/root/init/P0133list/P0133">
  2748. <label ref="cdnm"/>
  2749. <value ref="cdid"/>
  2750. </itemset>
  2751. </choices>
  2752. <script type="javascript" ev:event="onkeydown">
  2753. <![CDATA[
  2754. if(event.keyCode == 9)
  2755. {
  2756. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2757. else model.setFocus("ipt_exchqty");
  2758. }
  2759. //event.preventDefault();
  2760. ]]>
  2761. </script>
  2762. </select1>
  2763. <select1 id="cmb_grupsnglflag" ref="/root/main/gooddet/gooddetlist/grupsnglflag" class="combo_essential" disabled="true" appearance="minimal" style="left:527px; top:314px; width:120px; height:19px; text-align:center; ">
  2764. <choices>
  2765. <itemset nodeset="/root/init/P0142list/P0142">
  2766. <label ref="cdnm"/>
  2767. <value ref="cdid"/>
  2768. </itemset>
  2769. </choices>
  2770. <script type="javascript" ev:event="onkeydown">
  2771. <![CDATA[
  2772. if(event.keyCode == 9)
  2773. {
  2774. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2775. else model.setFocus("ipt_exchqty");
  2776. }
  2777. //event.preventDefault();
  2778. ]]>
  2779. </script>
  2780. </select1>
  2781. <caption id="caption45" class="cell_1" style="left:248px; top:312px; width:86px; height:23px; text-align:left; vertical-align:middle; ">수가계산방법</caption>
  2782. <caption id="caption46" class="cell_1" style="left:455px; top:312px; width:68px; height:23px; text-align:left; vertical-align:middle; ">그룹 여부</caption>
  2783. <caption id="caption51" class="cell_1" style="left:354px; top:453px; width:85px; height:23px; vertical-align:middle; ">변 경 사 유</caption>
  2784. <textarea id="tar_comnm" ref="/root/main/gooddet/gooddetlist/comnm" visibility="hidden" editable="false" style="left:211px; top:98px; width:436px; height:30px; ">
  2785. <script type="javascript" ev:event="DOMFocusOut">
  2786. <![CDATA[
  2787. tar_comnm.visible = false;
  2788. ipt_comnm.visible = true;
  2789. ]]>
  2790. </script>
  2791. </textarea>
  2792. <group id="group_stocmngt" overflow="hidden" style="left:0px; top:538px; width:645px; height:73px; ">
  2793. <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" appearance="minimal" style="left:435px; top:50px; width:69px; height:19px; ">
  2794. <choices>
  2795. <itemset nodeset="/root/init/reqprid">
  2796. <label ref="cdnm"/>
  2797. <value ref="cdid"/>
  2798. </itemset>
  2799. </choices>
  2800. </select1>
  2801. <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_s_essential" appearance="minimal" style="left:435px; top:1px; width:210px; height:19px; ">
  2802. <choices>
  2803. <itemset nodeset="/root/init/stocmngtflag">
  2804. <label ref="cdnm"/>
  2805. <value ref="cdid"/>
  2806. </itemset>
  2807. </choices>
  2808. <script type="javascript" ev:event="onkeydown">
  2809. <![CDATA[
  2810. if(event.keyCode == 9)
  2811. {
  2812. // if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
  2813. // else model.setFocus("cmb_reqmthd");
  2814. }
  2815. //event.preventDefault();
  2816. ]]>
  2817. </script>
  2818. </select1>
  2819. <button id="btn_mngtdeptcd" class="icon_search" style="left:174px; top:2px; width:16px; height:16px; ">
  2820. <caption/>
  2821. <script type="javascript" ev:event="DOMActivate">
  2822. <![CDATA[
  2823. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  2824. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
  2825. model.refresh();
  2826. ]]>
  2827. </script>
  2828. </button>
  2829. <caption id="caption41" class="cell_1" style="left:0px; top:48px; width:108px; height:23px; vertical-align:middle; ">임의청구구분</caption>
  2830. <caption id="caption32" class="cell_1" style="left:325px; top:24px; width:108px; height:23px; vertical-align:middle; ">청 구 방 법</caption>
  2831. <caption id="caption33" class="cell_1" style="left:324px; top:48px; width:108px; height:23px; vertical-align:middle; ">청 구 주 기</caption>
  2832. <select1 id="cmb_reqmthd" ref="/root/main/gooddet/gooddetlist/reqmthd" class="combo_s_essential" appearance="minimal" style="left:435px; top:25px; width:210px; height:19px; ">
  2833. <choices>
  2834. <itemset>
  2835. <label/>
  2836. <value/>
  2837. </itemset>
  2838. </choices>
  2839. </select1>
  2840. <select1 id="cmb_orginspplce" ref="/root/main/gooddet/gooddetlist/orginspplce" class="combo_default" appearance="minimal" style="left:576px; top:50px; width:68px; height:19px; ">
  2841. <choices>
  2842. <itemset nodeset="/root/init/R0355list/R0355">
  2843. <label ref="cdnm"/>
  2844. <value ref="cdid"/>
  2845. </itemset>
  2846. </choices>
  2847. </select1>
  2848. <caption id="caption12" class="cell_1" style="left:325px; top:0px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
  2849. <caption id="caption47" class="cell_1" style="left:506px; top:48px; width:68px; height:23px; vertical-align:middle; ">실사장소</caption>
  2850. <caption id="caption14" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">집 계 구 분</caption>
  2851. <caption id="caption16" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
  2852. <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_s_essential" style="left:110px; top:0px; width:60px; height:19px; ">
  2853. <script type="javascript" ev:event="xforms-value-changed">
  2854. <![CDATA[
  2855. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  2856. model.refresh();
  2857. model.setFocus("ipt_reqflag");
  2858. ]]>
  2859. </script>
  2860. <script type="javascript" ev:event="onkeydown">
  2861. <![CDATA[
  2862. if(event.keyCode == 9)
  2863. {
  2864. if(event.shiftKey)model.setFocus("ipt_fromdd");
  2865. else model.setFocus("ipt_reqflag");
  2866. }
  2867. //event.preventDefault();
  2868. ]]>
  2869. </script>
  2870. </input>
  2871. <select1 id="rdo_reqflag" ref="/root/main/gooddet/gooddetlist/tmpreqflag" appearance="full" cols="2" overflow="visible" style="left:110px; top:50px; width:212px; height:20px; border-style:none; ">
  2872. <choices>
  2873. <itemset nodeset="/root/init/tmpreqflag">
  2874. <label ref="label"/>
  2875. <value ref="value"/>
  2876. </itemset>
  2877. </choices>
  2878. </select1>
  2879. <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:193px; top:0px; width:129px; height:19px; "/>
  2880. <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_s_essential" appearance="minimal" style="left:110px; top:25px; width:212px; height:19px; ">
  2881. <choices>
  2882. <itemset>
  2883. <label/>
  2884. <value/>
  2885. </itemset>
  2886. </choices>
  2887. <script type="javascript" ev:event="xforms-value-changed">
  2888. <![CDATA[
  2889. fSetDrugtype(cmb_reqflag.value);
  2890. ]]>
  2891. </script>
  2892. </select1>
  2893. </group>
  2894. <select id="chk_expnyn" ref="/root/main/gooddet/gooddetlist/expnyn" overflow="visible" appearance="full" cols="1" style="left:184px; top:430px; width:60px; height:21px; border-style:none; ">
  2895. <choices>
  2896. <item>
  2897. <label>비과세</label>
  2898. <value>F</value>
  2899. </item>
  2900. </choices>
  2901. </select>
  2902. <caption id="caption54" style="left:169px; top:428px; width:10px; height:20px; ">/</caption>
  2903. <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_essential" maxlength="12" _chartype="upper" style="left:326px; top:2px; width:111px; height:19px; ">
  2904. <script type="javascript" ev:event="onkeydown">
  2905. <![CDATA[
  2906. if(event.keyCode == 9)
  2907. {
  2908. if(event.shiftKey)model.setFocus("ipt_goodcd");
  2909. else model.setFocus("ipt_goodhngnm");
  2910. }
  2911. //event.preventDefault();
  2912. ]]>
  2913. </script>
  2914. </input>
  2915. <caption id="caption30" class="cell_1" visibility="hidden" style="left:439px; top:38px; width:70px; height:23px; vertical-align:middle; ">도매상코드</caption>
  2916. <caption id="caption15" class="cell_1" style="left:252px; top:24px; width:103px; height:23px; vertical-align:middle; ">약 품 대 표 코 드</caption>
  2917. <caption id="caption57" class="cell_1" style="left:252px; top:0px; width:72px; height:23px; vertical-align:middle; ">구 코 드</caption>
  2918. <output id="opt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd2" class="output_fix" visibility="hidden" _chartype="upper" disabled="true" maxlength="12" style="left:510px; top:40px; width:91px; height:19px; ">
  2919. <script type="javascript" ev:event="onkeydown">
  2920. <![CDATA[
  2921. if(event.keyCode == 9)
  2922. {
  2923. if(event.shiftKey)model.setFocus("ipt_goodcd");
  2924. else model.setFocus("ipt_goodhngnm");
  2925. }
  2926. //event.preventDefault();
  2927. ]]>
  2928. </script>
  2929. </output>
  2930. <select id="chk_shadelight" ref="/root/main/gooddet/gooddetlist/shadelight" overflow="visible" appearance="full" rows="1" style="left:255px; top:430px; width:50px; height:20px; border-style:none; ">
  2931. <choices>
  2932. <item>
  2933. <label>차광</label>
  2934. <value>Y</value>
  2935. </item>
  2936. </choices>
  2937. </select>
  2938. <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:361px; top:338px; width:84px; height:19px; text-align:center; ">
  2939. <choices>
  2940. <itemset>
  2941. <label/>
  2942. <value/>
  2943. </itemset>
  2944. </choices>
  2945. <script type="javascript" ev:event="onkeydown">
  2946. <![CDATA[
  2947. if(event.keyCode == 9)
  2948. {
  2949. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2950. else model.setFocus("ipt_exchqty");
  2951. }
  2952. //event.preventDefault();
  2953. ]]>
  2954. </script>
  2955. </select1>
  2956. <caption id="caption21" class="cell_1" style="left:0px; top:336px; width:166px; height:23px; vertical-align:middle; ">낱개수량/낱개단위/포장단위</caption>
  2957. <caption id="caption24" class="cell_1" style="left:455px; top:336px; width:68px; height:23px; vertical-align:middle; ">상 한 가</caption>
  2958. <caption id="caption58" style="left:345px; top:338px; width:10px; height:20px; ">/</caption>
  2959. <input id="input1" ref="/root/main/gooddet/gooddetlist/upperlimit" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:527px; top:338px; width:120px; height:19px; text-align:right; ">
  2960. <script type="javascript" ev:event="onkeydown">
  2961. <![CDATA[
  2962. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2963. //event.preventDefault();
  2964. ]]>
  2965. </script>
  2966. <script type="javascript" ev:event="xforms-value-changed">
  2967. <![CDATA[
  2968. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2969. ]]>
  2970. </script>
  2971. </input>
  2972. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_s_essential" appearance="minimal" itemcount="20" style="left:256px; top:338px; width:84px; height:19px; text-align:center; ">
  2973. <choices>
  2974. <itemset>
  2975. <label/>
  2976. <value/>
  2977. </itemset>
  2978. </choices>
  2979. <script type="javascript" ev:event="onkeydown">
  2980. <![CDATA[
  2981. if(event.keyCode == 9)
  2982. {
  2983. if(event.shiftKey)model.setFocus("cmb_deliveunit");
  2984. else model.setFocus("ipt_minexch");
  2985. }
  2986. //event.preventDefault();
  2987. ]]>
  2988. </script>
  2989. <script type="javascript" ev:event="xforms-value-changed">
  2990. <![CDATA[
  2991. var deliveunit = model.getValue("/root/main/gooddet/gooddetlist/deliveunit");
  2992. model.setValue("/root/main/gooddet/gooddetlist/prcpunit", deliveunit);
  2993. cmb_prcpunit.refresh();
  2994. ]]>
  2995. </script>
  2996. </select1>
  2997. <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_s_essential" maxlength="9" format="#,###" style="left:168px; top:338px; width:79px; height:19px; text-align:right; ">
  2998. <script type="javascript" ev:event="onkeydown">
  2999. <![CDATA[
  3000. if(event.keyCode == 9)
  3001. {
  3002. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3003. else model.setFocus("cmb_deliveunit");
  3004. }
  3005. //event.preventDefault();
  3006. ]]>
  3007. </script>
  3008. <script type="javascript" ev:event="xforms-value-changed">
  3009. <![CDATA[
  3010. model.setValue(ipt_purcqty.attribute("ref"),model.getValue(ipt_exchqty.attribute("ref")));
  3011. model.refresh();
  3012. ]]>
  3013. </script>
  3014. </input>
  3015. <input id="ipt_reprgoodcd" ref="/root/main/gooddet/gooddetlist/reprgoodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:357px; top:26px; width:111px; height:19px; "/>
  3016. <caption id="caption59" class="cell_1" style="left:470px; top:24px; width:72px; height:23px; vertical-align:middle; ">연 번</caption>
  3017. <input id="ipt_asisgoodcd" ref="/root/main/gooddet/gooddetlist/asisgoodcd" class="input_s_essential" maxlength="8" _chartype="upper" style="left:546px; top:26px; width:101px; height:19px; "/>
  3018. <button id="btn_smlcd" class="icon_search" disabled="true" style="left:630px; top:125px; width:16px; height:16px; ">
  3019. <caption/>
  3020. <script type="javascript" ev:event="DOMActivate">
  3021. <![CDATA[
  3022. rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  3023. model.refresh();
  3024. ]]>
  3025. </script>
  3026. </button>
  3027. <button id="btn_lrgcd" class="icon_search" disabled="true" style="left:209px; top:125px; width:16px; height:16px; ">
  3028. <caption/>
  3029. <script type="javascript" ev:event="DOMActivate">
  3030. <![CDATA[
  3031. rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
  3032. fSetDrugtype(cmb_reqflag.value);
  3033. model.refresh();
  3034. model.setFocus("ipt_mdlcd");
  3035. ]]>
  3036. </script>
  3037. </button>
  3038. <button id="btn_mdlcd" class="icon_search" disabled="true" style="left:418px; top:125px; width:16px; height:16px; ">
  3039. <caption/>
  3040. <script type="javascript" ev:event="DOMActivate">
  3041. <![CDATA[
  3042. rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  3043. model.refresh();
  3044. ]]>
  3045. </script>
  3046. </button>
  3047. <caption id="caption66" class="cell_1" style="left:437px; top:120px; width:75px; height:23px; vertical-align:middle; ">소 분 류</caption>
  3048. <input id="ipt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="input_fix" editable="false" appearance="input" style="left:517px; top:123px; width:106px; height:19px; ">
  3049. <script type="javascript" ev:event="xforms-value-changed">
  3050. <![CDATA[
  3051. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
  3052. "smlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ",," + model.getValue(ipt_smlnm.attribute("ref")),"","smlcd,smlnm" ,
  3053. ipt_smlnm,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  3054. model.refresh();
  3055. ]]>
  3056. </script>
  3057. </input>
  3058. <input id="ipt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="input_s_essential" editable="false" appearance="input" style="left:95px; top:123px; width:111px; height:19px; ">
  3059. <script type="javascript" ev:event="xforms-value-changed">
  3060. <![CDATA[
  3061. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  3062. "lrgnm," + model.getValue(ipt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm"
  3063. ,ipt_lrgnm,"SPRSD00130","goodflag","ipt_goodflag");
  3064. fSetDrugtype(cmb_reqflag.value);
  3065. model.refresh();
  3066. ]]>
  3067. </script>
  3068. </input>
  3069. <caption id="caption68" class="cell_1" style="left:1px; top:120px; width:93px; height:23px; vertical-align:middle; ">대 분 류</caption>
  3070. <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" visibility="hidden" editable="false" style="left:517px; top:123px; width:60px; height:19px; ">
  3071. <script type="javascript" ev:event="xforms-value-changed">
  3072. <![CDATA[
  3073. if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm.attribute("ref"),"");
  3074. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + "," +
  3075. model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  3076. model.refresh();
  3077. model.setFocus("ipt_fromdd");
  3078. ]]>
  3079. </script>
  3080. <script type="javascript" ev:event="onkeydown">
  3081. <![CDATA[
  3082. if(event.keyCode == 9)
  3083. {
  3084. if(event.shiftKey)model.setFocus("ipt_mdlcd");
  3085. else model.setFocus("ipt_fromdd");
  3086. }
  3087. //event.preventDefault();
  3088. ]]>
  3089. </script>
  3090. </input>
  3091. <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" visibility="hidden" editable="false" style="left:95px; top:123px; width:60px; height:19px; ">
  3092. <script type="javascript" ev:event="xforms-value-changed">
  3093. <![CDATA[
  3094. if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
  3095. else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref"))+",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","ipt_goodflag");
  3096. model.refresh();
  3097. ]]>
  3098. </script>
  3099. <script type="javascript" ev:event="onkeydown">
  3100. <![CDATA[
  3101. if(event.keyCode == 9)
  3102. {
  3103. if(event.shiftKey)model.setFocus("cmb_asetflag");
  3104. else model.setFocus("ipt_mdlcd");
  3105. }
  3106. //event.preventDefault();
  3107. ]]>
  3108. </script>
  3109. </input>
  3110. <input id="ipt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="input_fix" editable="false" appearance="input" style="left:309px; top:123px; width:106px; height:19px; ">
  3111. <script type="javascript" ev:event="xforms-value-changed">
  3112. <![CDATA[
  3113. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  3114. "mdlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref")),"","mdlcd,mdlnm" ,
  3115. ipt_mdlnm,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  3116. model.refresh();
  3117. ]]>
  3118. </script>
  3119. </input>
  3120. <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" visibility="hidden" editable="false" style="left:309px; top:123px; width:61px; height:19px; ">
  3121. <script type="javascript" ev:event="xforms-value-changed">
  3122. <![CDATA[
  3123. if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm.attribute("ref"),"");
  3124. else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
  3125. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  3126. model.refresh();
  3127. model.setFocus("ipt_smlcd");
  3128. ]]>
  3129. </script>
  3130. <script type="javascript" ev:event="onkeydown">
  3131. <![CDATA[
  3132. if(event.keyCode == 9)
  3133. {
  3134. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  3135. else model.setFocus("ipt_smlcd");
  3136. }
  3137. //event.preventDefault();
  3138. ]]>
  3139. </script>
  3140. </input>
  3141. <caption id="caption29" class="cell_1" style="left:229px; top:120px; width:75px; height:23px; vertical-align:middle; ">중 분 류</caption>
  3142. <caption id="caption60" class="cell_1" style="left:218px; top:216px; width:93px; height:23px; vertical-align:middle; ">구 입 분 류</caption>
  3143. <caption id="caption62" class="cell_1" style="left:435px; top:216px; width:93px; height:23px; vertical-align:middle; ">관 리 분 류</caption>
  3144. <caption id="caption63" class="cell_1" style="left:0px; top:241px; width:93px; height:23px; vertical-align:middle; ">계 약 구 분</caption>
  3145. <select1 id="cmb_mngtcls" ref="/root/main/gooddet/gooddetlist/mngtcls" class="input_essential" appearance="minimal" style="left:529px; top:218px; width:117px; height:19px; text-align:center; ">
  3146. <choices>
  3147. <itemset nodeset="/root/init/cmb_mngtcls">
  3148. <label ref="cdnm"/>
  3149. <value ref="cdid"/>
  3150. </itemset>
  3151. </choices>
  3152. </select1>
  3153. <select1 id="cmb_conflag" ref="/root/main/gooddet/gooddetlist/conflag" class="input_essential" appearance="minimal" style="left:94px; top:243px; width:225px; height:19px; text-align:center; ">
  3154. <choices>
  3155. <itemset nodeset="/root/init/cmb_conflag">
  3156. <label ref="cdnm"/>
  3157. <value ref="cdid"/>
  3158. </itemset>
  3159. </choices>
  3160. </select1>
  3161. <select1 id="cmb_purccls" ref="/root/main/gooddet/gooddetlist/purccls" class="input_essential" appearance="minimal" style="left:312px; top:218px; width:117px; height:19px; text-align:center; ">
  3162. <choices>
  3163. <itemset nodeset="/root/init/cmb_purccls">
  3164. <label ref="cdnm"/>
  3165. <value ref="cdid"/>
  3166. </itemset>
  3167. </choices>
  3168. </select1>
  3169. <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" editable="true" imemode="alpha" maxlength="450" _chartype="upper" style="left:516px; top:2px; width:131px; height:19px; ">
  3170. <script type="javascript" ev:event="onkeydown">
  3171. <![CDATA[
  3172. if(event.keyCode == 9)
  3173. {
  3174. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  3175. // else model.setFocus("cmb_prodplce");
  3176. }
  3177. //event.preventDefault();
  3178. ]]>
  3179. </script>
  3180. </input>
  3181. <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" disabled="true" appearance="minimal" style="left:557px; top:242px; width:90px; height:19px; ">
  3182. <choices>
  3183. <itemset>
  3184. <label/>
  3185. <value/>
  3186. </itemset>
  3187. </choices>
  3188. <script type="javascript" ev:event="xforms-value-changed">
  3189. <![CDATA[
  3190. model.setFocus("cmb_asetflag");
  3191. ]]>
  3192. </script>
  3193. <script type="javascript" ev:event="onkeydown">
  3194. <![CDATA[
  3195. if(event.keyCode == 9)
  3196. {
  3197. // if(event.shiftKey)model.setFocus("ipt_goodspec");
  3198. // else model.setFocus("ipt_lrgcd");
  3199. }
  3200. //event.preventDefault();
  3201. ]]>
  3202. </script>
  3203. </select1>
  3204. <caption id="caption31" class="cell_1" style="left:320px; top:240px; width:73px; height:23px; vertical-align:middle; ">일 반/전 문</caption>
  3205. <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" disabled="true" appearance="minimal" style="left:395px; top:242px; width:85px; height:19px; ">
  3206. <choices>
  3207. <itemset nodeset="/root/init/gnrlspcl">
  3208. <label ref="label"/>
  3209. <value ref="value"/>
  3210. </itemset>
  3211. </choices>
  3212. <script type="javascript" ev:event="onkeydown">
  3213. <![CDATA[
  3214. if(event.keyCode == 9)
  3215. {
  3216. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3217. else model.setFocus("ipt_exchqty");
  3218. }
  3219. //event.preventDefault();
  3220. ]]>
  3221. </script>
  3222. </select1>
  3223. <caption id="caption55" class="cell_1" visibility="visible" style="left:440px; top:0px; width:73px; height:23px; vertical-align:middle; ">E D I 코 드</caption>
  3224. <caption id="caption56" class="cell_1" style="left:482px; top:240px; width:73px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
  3225. <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:513px; top:171px; width:134px; height:19px; "/>
  3226. <button id="btn_suppcustcd" class="icon_search" disabled="true" style="left:490px; top:174px; width:16px; height:16px; ">
  3227. <caption/>
  3228. <script type="javascript" ev:event="DOMActivate">
  3229. <![CDATA[
  3230. opt_instcd2.value=getUserInfo("dutplceinstcd");
  3231. //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
  3232. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd2");
  3233. model.refresh();
  3234. ]]>
  3235. </script>
  3236. </button>
  3237. <caption id="caption37" class="cell_1" style="left:320px; top:168px; width:93px; height:23px; vertical-align:middle; ">판 매 회 사</caption>
  3238. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" disabled="true" style="left:415px; top:171px; width:70px; height:19px; ">
  3239. <script type="javascript" ev:event="xforms-value-changed">
  3240. <![CDATA[
  3241. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm.attribute("ref"),"");
  3242. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  3243. model.refresh();
  3244. ]]>
  3245. </script>
  3246. <script type="javascript" ev:event="onkeydown">
  3247. <![CDATA[
  3248. if(event.keyCode == 9)
  3249. {
  3250. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  3251. else model.setFocus("cmb_conflag");
  3252. }
  3253. //event.preventDefault();
  3254. ]]>
  3255. </script>
  3256. </input>
  3257. <caption id="caption65" class="cell_1" style="left:0px; top:216px; width:93px; height:23px; vertical-align:middle; ">통 계 구 분</caption>
  3258. <select1 id="cmb_statsflag" ref="/root/main/gooddet/gooddetlist/statsflag" class="input_essential" appearance="minimal" style="left:95px; top:218px; width:117px; height:19px; text-align:center; ">
  3259. <choices>
  3260. <itemset nodeset="/root/init/cmb_statsflag">
  3261. <label ref="cdnm"/>
  3262. <value ref="cdid"/>
  3263. </itemset>
  3264. </choices>
  3265. </select1>
  3266. <caption id="caption69" class="cell_1" style="left:315px; top:430px; width:68px; height:23px; vertical-align:middle; ">EDI 단위</caption>
  3267. <caption id="caption70" class="cell_1" style="left:477px; top:430px; width:79px; height:23px; vertical-align:middle; ">최소단위환산</caption>
  3268. <input id="ipt_ediexchqty" ref="/root/main/gooddet/gooddetlist/ediexchqty" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:558px; top:432px; width:89px; height:19px; text-align:right; ">
  3269. <script type="javascript" ev:event="onkeydown">
  3270. <![CDATA[
  3271. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  3272. //event.preventDefault();
  3273. ]]>
  3274. </script>
  3275. <script type="javascript" ev:event="xforms-value-changed">
  3276. <![CDATA[
  3277. model.getValue(ipt_prodcmpycd.attribute("ref"))
  3278. ]]>
  3279. </script>
  3280. </input>
  3281. <select1 id="cmb_ediunit" ref="/root/main/gooddet/gooddetlist/ediunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:386px; top:432px; width:89px; height:19px; text-align:center; ">
  3282. <choices>
  3283. <itemset>
  3284. <label/>
  3285. <value/>
  3286. </itemset>
  3287. </choices>
  3288. <script type="javascript" ev:event="onkeydown">
  3289. <![CDATA[
  3290. if(event.keyCode == 9)
  3291. {
  3292. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3293. else model.setFocus("ipt_exchqty");
  3294. }
  3295. //event.preventDefault();
  3296. ]]>
  3297. </script>
  3298. </select1>
  3299. <caption id="caption73" class="cell_1" style="left:456px; top:408px; width:78px; height:23px; vertical-align:middle; ">단/복수여부</caption>
  3300. <select1 id="rdo_ascitflag" ref="/root/main/gooddet/gooddetlist/ascitflag" appearance="full" cols="2" overflow="visible" style="left:540px; top:410px; width:100px; height:20px; border-style:none; ">
  3301. <choices>
  3302. <item>
  3303. <label>단수</label>
  3304. <value>01</value>
  3305. </item>
  3306. <item>
  3307. <label>복수</label>
  3308. <value>02</value>
  3309. </item>
  3310. </choices>
  3311. </select1>
  3312. <caption id="caption87" class="cell_1" style="left:225px; top:452px; width:60px; height:23px; vertical-align:middle; ">발주여부</caption>
  3313. <bool id="bool6" checkvalue="Y,N" ref="/root/main/gooddet/gooddetlist/bnscd" style="left:289px; top:454px; width:34px; height:21px; "/>
  3314. </group>
  3315. <group id="group4" visibility="visible" style="left:0px; top:12; width:1195px; height:27px; ">
  3316. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  3317. <button id="btn_save" class="btn4_letter2" navindex="3" style="left:1067px; top:3px; width:56px; height:22px; ">
  3318. <caption>저장</caption>
  3319. <script type="javascript" ev:event="DOMActivate">
  3320. <![CDATA[
  3321. if(fCheckSaveData() == false)return;
  3322. //보나에스 저장.
  3323. //fSaveRscdpbnsList();
  3324. //안전재고량 저장
  3325. if(fSaveGoodbaseQtyList() == false) return;
  3326. //약품 내용 수정시 적용일자를 수정하지 않았을경우 매세지 창 띄워서 y/n확인
  3327. if(fupdatacheck() == 6)
  3328. {
  3329. return;
  3330. }
  3331. model.refresh();
  3332. misfSave("TXRSC05402")
  3333. if (model.getValue(gvErrorMsgPath + "/type") != "error" )
  3334. {
  3335. //기관약품으로 재조회
  3336. if(btn_repr.selected ){
  3337. btn_repr.dispatch("DOMActivate");
  3338. }else{
  3339. btn_sub.selected = true;
  3340. btn_sub.dispatch("DOMActivate");
  3341. }
  3342. }
  3343. ]]>
  3344. </script>
  3345. </button>
  3346. <button id="btn_clear" class="btn4_letter3" navindex="4" style="left:1125px; top:3px; width:68px; height:22px; ">
  3347. <caption>초기화</caption>
  3348. <script type="javascript" ev:event="DOMActivate">
  3349. <![CDATA[
  3350. fInitialize();
  3351. ]]>
  3352. </script>
  3353. </button>
  3354. <button id="btn_scrnmove" class="btn3_letter4" navindex="2" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
  3355. <caption>화면이동</caption>
  3356. </button>
  3357. <button id="btn_prt" class="btn6_letter2" navindex="1" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  3358. <caption>출력</caption>
  3359. </button>
  3360. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:785px; top:4px; width:100px; height:19px; "/>
  3361. <output id="opt_instcd" ref="/root/send/goodlist/instcd" visibility="hidden" style="left:180px; top:4px; width:100px; height:19px; "/>
  3362. <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:625px; top:5px; width:45px; height:19px; "/>
  3363. <output id="opt_instcd2" ref="/root/hidden/instcd" visibility="hidden" style="left:290px; top:5px; width:100px; height:19px; "/>
  3364. </group>
  3365. <group id="group2" visibility="hidden" style="left:645px; top:165px; width:545px; height:125px; ">
  3366. <!-- <group id="group2" visibility="hidden" style="left:100px; top:165px; width:545px; height:100px; ">-->
  3367. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:545px; height:125px; border-color:#ff9900; border-width:2px; "/>
  3368. <caption id="cap_delyn" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">삭제여부 :</caption>
  3369. <caption id="cap_contractyn" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">계약여부 :</caption>
  3370. <caption id="cap_exfromdd" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">적용일자 :</caption>
  3371. <select1 id="rdo_delyn" ref="/root/send/goodlist/delyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:105px; top:15px; width:275px; height:20px; border-style:none; ">
  3372. <choices>
  3373. <item>
  3374. <label>삭제품목제외</label>
  3375. <value>N</value>
  3376. </item>
  3377. <item>
  3378. <label>삭제품목만</label>
  3379. <value>Y</value>
  3380. </item>
  3381. <item>
  3382. <label>전체품목</label>
  3383. <value/>
  3384. </item>
  3385. </choices>
  3386. <script type="javascript" ev:event="xforms-value-changed">
  3387. <![CDATA[
  3388. if(rdo_delyn.value == 'Y')
  3389. {
  3390. cap_exfromdd.value = '삭제일자 :';
  3391. }else{
  3392. cap_exfromdd.value = '적용일자 :';
  3393. }
  3394. ]]>
  3395. </script>
  3396. </select1>
  3397. <select1 id="rdo_contractyn" ref="/root/send/goodlist/contractyn" appearance="full" cellspacing="58" cols="2" overflow="visible" style="left:105px; top:40px; width:225px; height:20px; border-style:none; ">
  3398. <choices>
  3399. <item>
  3400. <label>전체</label>
  3401. <value/>
  3402. </item>
  3403. <item>
  3404. <label>계약품목</label>
  3405. <value>Y</value>
  3406. </item>
  3407. </choices>
  3408. </select1>
  3409. <input id="ipt_exfromdd" ref="/root/send/goodlist/exfromdd" class="input_s_essential" inputtype="date" style="left:175px; top:65px; width:110px; height:19px; "/>
  3410. <input id="ipt_extodd" ref="/root/send/goodlist/extodd" class="input_s_essential" inputtype="date" style="left:307px; top:65px; width:110px; height:19px; "/>
  3411. <caption id="caption" style="left:290px; top:65px; width:15px; height:20px; ">~</caption>
  3412. <caption id="caption72" class="search_name" style="left:15px; top:90px; width:86px; height:17px; ">관리분류 :</caption>
  3413. <select1 id="cmb_exsrchmngtcls" ref="/root/send/goodlist/exmngtcls" appearance="minimal" style="left:105px; top:90px; width:185px; height:19px; text-align:center; ">
  3414. <choices>
  3415. <itemset>
  3416. <label/>
  3417. <value/>
  3418. </itemset>
  3419. </choices>
  3420. </select1>
  3421. <button id="btn_excelsave" class="btn5_letter6" navindex="28" style="left:450px; top:15px; width:86px; height:19px; ">
  3422. <caption>Excel 저장</caption>
  3423. <script type="javascript" ev:event="DOMActivate">
  3424. <![CDATA[
  3425. if(fCheckRetrieveData() == false)return;
  3426. var filenm = "약품코드List";
  3427. var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  3428. if (localfile != "") {
  3429. var param = "&instcd=" + model.getValue("/root/send/goodlist/instcd");
  3430. param += "&delyn=" + model.getValue("/root/send/goodlist/delyn");
  3431. param += "&contractyn=" + model.getValue("/root/send/goodlist/contractyn");
  3432. param += "&exfromdd=" + model.getValue("/root/send/goodlist/exfromdd");
  3433. param += "&extodd=" + model.getValue("/root/send/goodlist/extodd");
  3434. param += "&excurrenttime=" + model.getValue("/root/send/goodlist/excurrenttime");
  3435. param += "&exmngtcls=" + model.getValue("/root/send/goodlist/exmngtcls");
  3436. model.download(getActionURL("TRRSC05404") + param, localfile, true);
  3437. var rtn = messageBox("파일을", "Q004");
  3438. if( rtn == 6 ) {
  3439. window.exec(localfile);
  3440. }
  3441. }
  3442. ]]>
  3443. </script>
  3444. </button>
  3445. <input id="ipt_excurrenttime" ref="/root/send/goodlist/excurrenttime" visibility="hidden" style="left:340px; top:40px; width:100px; height:19px; "/>
  3446. <button id="btn_close" class="btn4_letter2" navindex="30" style="left:480px; top:85px; width:56px; height:22px; ">
  3447. <caption>닫기</caption>
  3448. <script type="javascript" ev:event="DOMActivate">
  3449. <![CDATA[
  3450. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  3451. model.setValue(ipt_exfromdd.attribute("ref"), reqdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
  3452. model.setValue(ipt_extodd.attribute("ref"), getCurrentDate());
  3453. model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
  3454. cap_exfromdd.value = "적용일자 :";
  3455. rdo_delyn.value = '';
  3456. rdo_contractyn.value = '';
  3457. group3.disabled = false;
  3458. //grp_detail.disabled = false;
  3459. group2.visible = false;
  3460. group2.disabled = true;
  3461. model.refresh();
  3462. ]]>
  3463. </script>
  3464. </button>
  3465. <select id="chkdd" ref="/root/send/goodlist/chkdd" overflow="visible" appearance="full" rows="1" style="left:105px; top:65px; width:65px; height:20px; border-style:none; ">
  3466. <choices>
  3467. <item>
  3468. <label>전체</label>
  3469. <value>Y</value>
  3470. </item>
  3471. </choices>
  3472. <script type="javascript" ev:event="xforms-value-changed">
  3473. <![CDATA[
  3474. if ( chkdd.value == "Y" )
  3475. {
  3476. model.setValue(ipt_exfromdd.attribute("ref"), '19000101' );
  3477. model.setValue(ipt_extodd.attribute("ref"), '99991231');
  3478. ipt_exfromdd.disabled = true;
  3479. ipt_extodd.disabled = true;
  3480. }
  3481. else
  3482. {
  3483. ipt_exfromdd.disabled = false;
  3484. ipt_extodd.disabled = false;
  3485. }
  3486. ]]>
  3487. </script>
  3488. </select>
  3489. </group>
  3490. <button id="btn_useinstinfo" class="btn2_letter7" visibility="hidden" style="left:915px; top:138px; width:97px; height:19px; ">
  3491. <caption>타기관내용복사</caption>
  3492. <script type="javascript" ev:event="DOMActivate">
  3493. <![CDATA[
  3494. model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  3495. if(submit("TRRSC05315")){
  3496. var ChkGoodcd = model.getValue("/root/errinfo/errgoodinfo/goodcd");
  3497. if(ChkGoodcd!=""){
  3498. messageBox(ChkGoodcd+" 은 현재기관에 등록되어 있습니다. \n\n타기관내용복사는 신규코드만","I006");
  3499. return;
  3500. }else{
  3501. fInsertGoodDataListCopy();
  3502. }
  3503. }
  3504. ]]>
  3505. </script>
  3506. </button>
  3507. <group id="grp_spread" visibility="hidden" style="left:0px; top:138px; width:1080px; height:75px; ">
  3508. <shape id="roundrect11" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1078px; height:73px; "/>
  3509. <output id="opt_welfprtnm_s" ref="/root/send/goodlist/spread/welfprtnm" class="output_fix" editable="false" style="left:617px; top:7px; width:129px; height:19px; "/>
  3510. <input id="ipt_welfprt_s" ref="/root/send/goodlist/spread/welfprt" class="input_default" navindex="20" style="left:535px; top:6px; width:61px; height:19px; text-align:center; ">
  3511. <script type="javascript" ev:event="xforms-value-changed">
  3512. <![CDATA[
  3513. if (ipt_welfprt_s.value == "") {
  3514. opt_welfprtnm_s.value = "";
  3515. } else {
  3516. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt_s.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt_s,"SPRSD00290");
  3517. model.refresh();
  3518. }
  3519. ]]>
  3520. </script>
  3521. </input>
  3522. <button id="button5" class="icon_search" navindex="31" style="left:178px; top:6px; width:16px; height:16px; ">
  3523. <caption/>
  3524. <script type="javascript" ev:event="DOMActivate">
  3525. <![CDATA[
  3526. rszfOpenPopUpListByWndName(ipt_prodcmpycd_s,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  3527. model.refresh();
  3528. ]]>
  3529. </script>
  3530. </button>
  3531. <caption id="caption75" class="search_name" style="left:815px; top:5px; width:110px; height:23px; vertical-align:middle; ">통 계 구 분 :</caption>
  3532. <caption id="caption77" class="search_name" style="left:20px; top:6px; width:100px; height:17px; vertical-align:middle; ">제조회사 :</caption>
  3533. <select1 id="cmb_statsflag_s" ref="/root/send/goodlist/spread/statsflag" navindex="21" appearance="minimal" style="left:925px; top:5px; width:148px; height:19px; ">
  3534. <choices>
  3535. <itemset nodeset="/root/init/cmb_statsflag_s/comcodelist">
  3536. <label ref="cdnm"/>
  3537. <value ref="cdid"/>
  3538. </itemset>
  3539. </choices>
  3540. <!--
  3541. <choices>
  3542. <itemset nodeset="/root/init/cmb_statsflag_s/comcodelist">
  3543. <label ref="cdid"/>
  3544. <value ref="cdnm"/>
  3545. </itemset>
  3546. </choices>
  3547. -->
  3548. </select1>
  3549. <caption id="caption80" class="search_name" style="left:20px; top:40px; width:105px; height:17px; vertical-align:middle; ">구입분류 :</caption>
  3550. <select1 id="cmb_purccls_s" ref="/root/send/goodlist/spread/purccls" navindex="22" appearance="minimal" style="left:114px; top:40px; width:115px; height:19px; ">
  3551. <choices>
  3552. <itemset nodeset="/root/init/cmb_purccls_s/comcodelist">
  3553. <label ref="cdnm"/>
  3554. <value ref="cdid"/>
  3555. </itemset>
  3556. </choices>
  3557. <!--
  3558. <choices>
  3559. <itemset nodeset="/root/init/cmb_purccls_s/comcodelist">
  3560. <label ref="cdid"/>
  3561. <value ref="cdnm"/>
  3562. </itemset>
  3563. </choices>
  3564. -->
  3565. <script type="javascript" ev:event="onkeydown">
  3566. <![CDATA[
  3567. if(event.keyCode == 9)
  3568. {
  3569. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3570. else model.setFocus("ipt_exchqty");
  3571. }
  3572. //event.preventDefault();
  3573. ]]>
  3574. </script>
  3575. </select1>
  3576. <caption id="caption83" class="search_name" style="left:400px; top:6px; width:130px; height:17px; vertical-align:middle; ">복지부 분류코드 :</caption>
  3577. <select1 id="cmb_conflag_s" ref="/root/send/goodlist/spread/conflag" navindex="23" appearance="minimal" style="left:375px; top:40px; width:115px; height:19px; ">
  3578. <choices>
  3579. <itemset nodeset="/root/init/cmb_conflag_s/comcodelist">
  3580. <label ref="cdnm"/>
  3581. <value ref="cdid"/>
  3582. </itemset>
  3583. </choices>
  3584. <!--
  3585. <choices>
  3586. <itemset nodeset="/root/init/cmb_purcflag_s/comcodelist">
  3587. <label ref="cdid"/>
  3588. <value ref="cdnm"/>
  3589. </itemset>
  3590. </choices>
  3591. <script type="javascript" ev:event="onkeydown">
  3592. <![CDATA[
  3593. if(event.keyCode == 9)
  3594. {
  3595. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3596. else model.setFocus("ipt_exchqty");
  3597. }
  3598. //event.preventDefault();
  3599. ]]>
  3600. </script>
  3601. -->
  3602. </select1>
  3603. <caption id="caption84" class="search_name" style="left:279px; top:40px; width:105px; height:17px; vertical-align:middle; ">계약구분 :</caption>
  3604. <select1 id="cmb_gnrlspcl_s" ref="/root/send/goodlist/spread/gnrlspcl" navindex="24" appearance="minimal" style="left:640px; top:40px; width:115px; height:19px; ">
  3605. <choices>
  3606. <itemset>
  3607. <label/>
  3608. <value/>
  3609. </itemset>
  3610. </choices>
  3611. <!--
  3612. <choices>
  3613. <itemset nodeset="/root/init/cmb_gnrlspcl_s/comcodelist">
  3614. <label ref="cdid"/>
  3615. <value ref="cdnm"/>
  3616. </itemset>
  3617. </choices>
  3618. <script type="javascript" ev:event="onkeydown">
  3619. <![CDATA[
  3620. if(event.keyCode == 9)
  3621. {
  3622. if(event.shiftKey)model.setFocus("cmb_purcunit");
  3623. else model.setFocus("ipt_exchqty");
  3624. }
  3625. //event.preventDefault();
  3626. ]]>
  3627. </script>
  3628. -->
  3629. </select1>
  3630. <caption id="caption85" class="search_name" style="left:541px; top:40px; width:105px; height:17px; vertical-align:middle; ">일반/전문 :</caption>
  3631. <select1 id="cmb_ascitflag_s" ref="/root/send/goodlist/spread/ascitflag" navindex="25" appearance="minimal" style="left:958px; top:40px; width:115px; height:19px; ">
  3632. <choices>
  3633. <item>
  3634. <label>전체</label>
  3635. <value/>
  3636. </item>
  3637. <item>
  3638. <label>단수</label>
  3639. <value>01</value>
  3640. </item>
  3641. <item>
  3642. <label>복수</label>
  3643. <value>02</value>
  3644. </item>
  3645. </choices>
  3646. </select1>
  3647. <caption id="caption86" class="search_name" style="left:841px; top:40px; width:115px; height:17px; vertical-align:middle; ">단/복수 여부 :</caption>
  3648. <button id="button6" class="icon_search" navindex="32" style="left:598px; top:6px; width:16px; height:16px; ">
  3649. <caption/>
  3650. <script type="javascript" ev:event="DOMActivate">
  3651. <![CDATA[
  3652. rszfOpenPopUpListByWndName(ipt_welfprt_s,"","welfprt,welfprtnm","SPRSD00290");
  3653. model.refresh();
  3654. ]]>
  3655. </script>
  3656. </button>
  3657. <input id="ipt_prodcmpycd_s" ref="/root/send/goodlist/spread/prodcmpycd" class="input_default" navindex="19" style="left:114px; top:6px; width:60px; height:19px; ">
  3658. <script type="javascript" ev:event="xforms-value-changed">
  3659. <![CDATA[
  3660. if ( ipt_prodcmpycd_s.value == "" ) {
  3661. opt_prodcmpynm_s.value = "";
  3662. } else {
  3663. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd_s.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd_s,"SPRSD00160","","");
  3664. }
  3665. model.refresh();
  3666. ]]>
  3667. </script>
  3668. <script type="javascript" ev:event="onkeydown">
  3669. <![CDATA[
  3670. if(event.keyCode == 9)
  3671. {
  3672. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  3673. // else model.setFocus("ipt_goodmodel");
  3674. }
  3675. ]]>
  3676. </script>
  3677. </input>
  3678. <output id="opt_prodcmpynm_s" ref="/root/send/goodlist/spread/prodcmpynm" class="output_fix" appearance="output" style="left:197px; top:6px; width:129px; height:19px; "/>
  3679. <script type="javascript" ev:event="ondblclick">
  3680. <![CDATA[
  3681. //grp_spread.visible = false;
  3682. btn_fold.dispatch("onclick");
  3683. ]]>
  3684. </script>
  3685. </group>
  3686. </xhtml:body>
  3687. </xhtml:html>