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

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