SMRSC05402_기관별약품코드등록.xrw 250 KB

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