SMRSC05401_통합약품코드등록.xrw 136 KB

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