1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>기관별약품코드등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <good>
- <goodlist/>
- </good>
- <gooddet>
- <gooddetlist/>
- <goodconstlist/>
- <goodinstlist/>
- </gooddet>
- <goodbaseqty>
- <goodbaseqtylist/>
- </goodbaseqty>
- <goodexcel>
- <gooddetgoodexcellist/>
- </goodexcel>
- <rscdpbns>
- <rscdpbnslist/>
- </rscdpbns>
- </list>
- <costhistinfolist>
- <appdd/>
- <rctpdisburseunitcost/>
- <medcarecalcscor/>
- <suplplcecd/>
- </costhistinfolist>
- <item/>
- <gooddet>
- <gooddetlist>
- </gooddetlist>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- </main>
- <send>
- <save>
- <goodlist/>
- <gooddetlist/>
- <setautoins>
- <setyn>N</setyn>
- </setautoins>
- <rscdpbnslist/>
- <goodbaseqtylist/>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <edicd/>
- <goodcd/>
- <mdlcd/>
- <spec/>
- <prodcmpy/>
- <smlcd/>
- <model/>
- <mdlnm/>
- <lrgnm/>
- <smlnm/>
- <prodcmpynm/>
- <instflag>Y</instflag>
- <oldcd/>
- <bnscd/>
- <suppcustcd/>
- <suppcustnm/>
- <delyn/>
- <contractyn/>
- <exfromdd/>
- <extodd/>
- <excurrenttime/>
- <exinstcd/>
- <chkdd/>
- <exactsearch/>
- <comnm/>
- <nonusegoodview/>
- <goodnmsearch/>
- </goodlist>
- <gooddetlist>
- <goodcd/>
- <fromdd/>
- <useyn/>
- <instcd/>
- </gooddetlist>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- <goodbaseqty>
- <instcd/>
- <goodflag/>
- <goodcd/>
- </goodbaseqty>
- <rscdpbns>
- <goodcd/>
- <instcd/>
- <fromdd/>
- <goodflag/>
- </rscdpbns>
- </send>
- <init>
- <instflag>
- <label>기관</label>
- <value>Y</value>
- <label>전체</label>
- <value/>
- </instflag>
- <goodflag/>
- <deliveunit/>
- <reqprid/>
- <mngtflag/>
- <purcflag/>
- <instcd/>
- <proddrugsetflag/>
- <instnm/>
- <allsizeyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </allsizeyn>
- <tmpreqflag>
- <label>청구가능</label>
- <value>Y</value>
- <label>청구불가능</label>
- <value>N</value>
- </tmpreqflag>
- <radio2>
- <label>신청유</label>
- <value>Y</value>
- <label>신청무</label>
- <value>N</value>
- </radio2>
- <expnyn>
- <label>고가</label>
- <value>Y</value>
- <label>고가아님</label>
- <value>N</value>
- </expnyn>
- <keepmthd>
- <label>실온</label>
- <value>1</value>
- <label>냉소</label>
- <value>2</value>
- <label>냉장</label>
- <value>3</value>
- <label>냉동</label>
- <value>4</value>
- </keepmthd>
- <gnrlspcl>
- <label>전문</label>
- <value>1</value>
- <label>일반</label>
- <value>2</value>
- <label>공산품</label>
- <value>3</value>
- <label>의약외품</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- </gnrlspcl>
- <proddrugsetflag>
- <label>제제약</label>
- <value>1</value>
- </proddrugsetflag>
- <exactsearch>
- <label>일치</label>
- <value>Y</value>
- <label>포함</label>
- <value/>
- </exactsearch>
- <goodnmsearch>
- <label>영문명</label>
- <value>eng</value>
- <label>한글명</label>
- <value/>
- </goodnmsearch>
- <nonusegoodview>
- <label>포함</label>
- <value>Y</value>
- <label>제외</label>
- <value/>
- </nonusegoodview>
- <P0133list/>
- <P0142list/>
- <R0355list/>
- <R0356list/>
- </init>
- <hidden>
- <instcd/>
- </hidden>
- <temp/>
- <errinfo>
- <errgoodinfo/>
- </errinfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
-
- fCheckAuth();
- fGetCodeList();
- fInitialize();
- ]]>
- </script>
- <!--submission id="TRRSC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/-->
- <submission id="TRRSC05313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
- <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodbaseqty" resultref="/root/main/list/goodbaseqty"/>
- <submission id="TRRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- <submission id="TRRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rscdpbns" resultref="/root/main/list/rscdpbns"/>
- <submission id="TXRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- <submission id="TXRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSC05315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/errinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- fNodeInit();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/goodlist/instflag", "Y");
- model.setValue("/root/send/save/setautoins/setyn","N");
-
- misfGridIUD(grd_gooddetlist, "A");
-
- misfComboComCdListMulti("R0092,R0043,R0069,R0106,R0093,R0107","cmb_reqmthd,cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase");
-
- //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
- //[2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"2","PH" );
-
- //rszfComboAppendChild("cmb_reqflag","청구불가","");
- addComboItem( "cmb_reqflag", "집계안함", "", "above" );
-
- //[2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfComboGridStockArthDeptcdList(grd_goodbaseqtylist, "reqdeptcd", getUserInfo("dutplceinstcd"),"PH" );
-
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
- if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
-
-
- model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- misfMsterDetailSet(grd_goodlist,null, "TRRSC05313" ,"Y");
- misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
- misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
- misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
- misfMsterDetailSet(grd_goodbaseqtylist,null, "TRRSC05305" ,"Y");
- misfMsterDetailSet(grd_rscdpbnslist,null, "TRRSC05403" ,"Y");
- //[2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(ipt_goodflag.attribute("ref"),"PH");
- model.setValue(ipt_goodflag_search.attribute("ref"),"PH");
-
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
-
- /* 처방단위는 unit 기준정보를 다른걸로 사용한다. */
- rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),"D");
-
- /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
- rszfComboUnitList (cmb_purcunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(ipt_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, ""); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, ""); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //수불단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdpbnslist, "deliveunit"); //수불단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdpbnslist, "purcunit"); //발주단위
-
-
- // 물품구분별 권한
- fSetGoodFlagAuth();
- rbo_instflag.select(0);
- rbo_exactsearch1.select(1)
- grd_goodlist.explorerbar = "sortshow";
- model.setFocus("ipt_goodcd");
- model.refresh();
- }
-
- function fNodeInit() {
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_goodbaseqtylist);
- misfGridInit(grd_gooddetgoodexcellist);
- misfGridInit(grd_rscdpbnslist);
- }
-
- function fGetCodeList()
- {
- //계산방법, 그룹여부, 실사장소, 변경사유
- zbcfGetCodeList( new Array("P0133","P0142", "R0355", "R0356"), new Array("/root/init/P0133list","/root/init/P0142list", "/root/init/R0355list","/root/init/R0356list"), true);
-
- addComboItem( "cmb_nonusetretresn", "-", "", "above" );
-
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
- fsetP0133listData();
-
- //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
- //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
- fsetP0142listData();
- }
-
- //보나에스 저장
- function fSaveRscdpbnsList()
- {
- if(getGridUpdateData(grd_rscdpbnslist) != "" )
- {
- // if(!checkKeyColumn("grd_rscdpbnslist"))return false;
- if( fBnsValidCheck()!= true ) return false;
- //misfSave("TXRSC05403");
- model.setValue("/root/send/save/rscdpbnslist", grd_rscdpbnslist.getUpdateData());
- submit("TXRSC05403");
- return true;
- }
- return false;
- }
-
- function fSaveGoodbaseQtyList()
- {
-
- if(getGridUpdateData(grd_goodbaseqtylist) != "" )
- {
-
- if( fBaseQtyValidCheck()!= true ) return false;
- model.setValue("/root/send/save/goodbaseqtylist", grd_goodbaseqtylist.getUpdateData());
- submit("TXRSD00101");
- return true;
- }
-
-
- return true;
- }
-
- //세부항목 조회시 기관코드 설정.
- function fInstcdSet()
- {
- if(rbo_instflag.value == 'Y')
- {
- model.setValue("/root/send/gooddetlist/instcd", opt_instcd.value);
- }else{
-
- //사용기관 선택이 안되어있을시..
- if(grd_instinfo.row < grd_instinfo.fixedRows)
- {
- grd_instinfo.row = grd_instinfo.fixedRows;
- }
- model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
- }
-
- }
-
-
- function fRetrGoodList(nodecopy, detailYN) {
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
-
- fInstcdSet();
- fSetinstData();
-
- if ( detailYN == null )
- misfMsterDetailRetrieve2();
-
- //마스터 테이블에 데이터가 조회 되었을 경우에만 디테일 테이블 조회
- if ( grd_goodlist.rows > 1 )
- {
- var row = grd_goodlist.row;
- if ( row < 1 ){
- row = 1;
- }
-
- fSearchDetailData();
-
- if ( btn_sub.selected ){
- model.setValue("/root/send/goodbaseqty/instcd", model.getValue(opt_instcd.attribute("ref")));
- }else{
- model.setValue("/root/send/goodbaseqty/instcd", "001");
- }
- model.setValue("/root/send/goodbaseqty/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
-
- model.setValue("/root/send/goodbaseqty/goodcd", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodcd")) );
-
- submit("TRRSC05305");
-
- //보나에스 코드 조회.
- //보나에스 코드 조회하기 위해 조회값 goodcd 설정. 물품 코드는 통합 Master RSCMGOOD의 코드 ( grd_goodlist )의 값
-
- model.setValue("/root/send/rscdpbns/goodcd", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodcd")) );
-
- // if( grd_gooddetlist.rows- grd_gooddetlist.fixedRows > 0 )
- // grd_gooddetlist.row = grd_gooddetlist.fixedRows + 1;
- //보나에스 코드 조회하기 위해 조회값 goodcd 설정. 기관내에 물품 코드가 존재한다면 Detail의 값으로 조회
- /*
- model.setValue("/root/send/rscdpbns/fromdd", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("fromdd")) );
- model.setValue("/root/send/rscdpbns/instcd", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) );
- model.setValue("/root/send/rscdpbns/goodflag", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("goodflag")) );
- */
- model.setValue("/root/send/rscdpbns/fromdd", model.getValue("/root/main/list/gooddet/gooddetlist/fromdd") );
- if ( btn_sub.selected )
- model.setValue("/root/send/rscdpbns/instcd", model.getValue("/root/main/list/gooddet/gooddetlist/instcd") );
- else
- model.setValue("/root/send/rscdpbns/instcd", "001");
-
- model.setValue("/root/send/rscdpbns/goodflag", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodflag")) );
-
- submit("TRRSC05403");
-
- model.recalculate(); //jhj 잠시 주석
-
- if(nodecopy == true)fAfterRetrGoodList();
-
- // 보나에스 데이터 존재시
- if (grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
- /* 2008 08 24 YYJ
- * 상세 화면에서 보나에스 정보를 수정 할 수 있도록 변경처리
- */
- // fBnsSetData(true);
- // 보나에스 코드가 2개 이상일 경우 보나에스(포장단위)Tab 활성화
- if (grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 1) {
- bbt_bonaes.dispatch("DOMActivate");
- bbt_bonaes.selected="true";
- }
- }
- //else if( nodecopy == false)btn_insert.dispatch("DOMActivate");
- }
- else
- fNodeInit();
-
- }
-
- function fSetinstData()
- {
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
- //var instcd = getUserInfo("dutplceinstcd");
- //var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0 && btn_sub.selected)
- {
- model.setValue("/root/send/gooddetlist/instcd", instcd);
- model.setValue(opt_instcd.attribute("ref"), instcd);
- }
- else
- {
- model.setValue("/root/send/gooddetlist/instcd", "001");
- model.setValue(opt_instcd.attribute("ref"), "001");
- }
-
- if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
- }
-
- //조회를 하고 난후 초기화
- function fSetlinit()
- {
- ipt_goodcd_search.value="";
- ipt_oldcd_search.value="";
- ipt_edicd_search.value="";
- ipt_goodnm_search.value="";
- ipt_bnscd_search.value="";
- //판매회사 초기화
- ipt_suppcustcd_search.value="";
- opt_suppcustnm_search.value="";
- //대분류 초기화
- ipt_lrgcd_search.value="";
- ipt_lrgnm_search.value="";
- //중분류 초기화
- ipt_mdlcd_search.value="";
- ipt_mdlnm_search.value="";
- //소분류 초기화
- ipt_smlcd_search.value="";
- ipt_smlnm_search.value="";
-
- }
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
-
- btn_save.disabled=true;
- rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
- /*
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품코드명은" ,"I003");
- model.setFocus("ipt_goodnm");
- return false;
- }
- */
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드는" ,"I003");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_amtacnt.attribute("ref")).length== 0 )
- {
- messageBox("비용계정은" ,"I003");
- model.setFocus("ipt_amtacnt");
- return false;
- }
-
- if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
- {
- messageBox("주관리부서는" ,"I003");
- model.setFocus("ipt_mngtdeptcd");
- return false;
- }
- //hbh
- if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
- {
- messageBox("청구방법은" ,"I003");
- model.setFocus("cmb_reqmthd");
- return false;
- }
-
-
- if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
- {
- messageBox("구매단위은" ,"I003");
- model.setFocus("cmb_purcunit");
- return false;
- }
-
- if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
- {
- messageBox("환산수량은" ,"I003");
- model.setFocus("ipt_exchqty");
- return false;
- }
- /*
- if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
- {
- messageBox("불출단위는" ,"I003");
- model.setFocus("cmb_deliveunit");
- return false;
- }
- */
- if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
- {
- messageBox("재고관리기준은" ,"I003");
- model.setFocus("cmb_stocmngtflag");
- return false;
- }
-
- if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
- {
- messageBox("자산구분은" ,"I003");
- model.setFocus("cmb_asetflag");
- return false;
- }
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(cmb_nonusetretresn.attribute("ref")) == 0)
- {
- messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
- model.setFocus("cmb_nonusetretresn");
- return false;
- }
-
- // if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_fromconterm");
- // return false;
- //
- // }
- //
- // if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_toconterm");
- // return false;
- // }
- //
- if ( btn_sub.selected == true )
- {
- for(var i = grd_costhistinfo.fixedRows; i < grd_costhistinfo.rows; i++)
- {
- if(grd_costhistinfo.valueMatrix(i, grd_costhistinfo.colRef("fromdd")) == ipt_fromdd.value)
- {
- var tempmag = (messageBox("이력정보에 등록 되어있는 날짜입니다. 새로운 적용일자로 입력하시겠습니까? ", "S999"));
- if(tempmag=="6" || tempmag=="2")
- {
- model.setFocus("ipt_fromdd");
- return false;
- }
- }
-
- }
- }
- return true;
- }
-
- function fAfterRetrGoodList()
- {
- if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
-
- grp_detail.refresh();
- grp_etcgood.refresh();
-
- grd_gooddetlist.row = 1;
-
- model.setFocus("ipt_goodcd");
- }
-
- function fCheckAuth() {
-
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- //btn_prt.disabled = !checkAuth("P") ;
- }
-
- function fSetDataCopy(){
- if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
- misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
- grp_detail.refresh();
- }
- function fDefaultSetting()
- {
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
- model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(ipt_lrgnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(ipt_mdlnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlnm" , model.getValue(ipt_smlnm_search.attribute("ref")));
- // hbh
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
- model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
- model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,''); // 청구불가 셋팅. 'E'에서 변경
- model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231');
-
- model.setValue(grd_gooddetlist.nodeset + "/grupsnglflag", "S");
- model.setValue(grd_gooddetlist.nodeset + "/orginspplce", "01");
- model.setValue(grd_gooddetlist.nodeset + "/calcmthdcd", "-");
- }
-
- function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
- var node1 = instance1.selectNodes(ptarget_node + "/*");
- var node2 = instance1.selectNodes(psource_node + "/*");
- for (var i = 0; i < node1.length ; i++) {
- for (var j = 0; j < node2.length; j++) {
- if (node1.item(i).nodeName == node2.item(j).nodeName) {
- var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
- var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
-
- var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
- var copysource = psource_node + "/" + node2.item(j).nodeName;
-
- for (var k = 0; k < nextnode1.length; k++) {
- for (var p = 0; p < nextnode2.length; p++) {
- if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
- if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
- model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
- }
- }
- }
- }
- }
- }
- return false;
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- /*
- if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd_search");
- return false;
- }
- if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
- {
- messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
- model.setFocus("ipt_goodcd_search");
- return false;
- }
- */
- return true;
- }
- function fInstGoodCdCopy()
- {
- if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
-
- btn_insert.dispatch("DOMActivate");
-
- model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
- model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
- model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
- model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
- model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
- model.SetValue(ipt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
- model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
- model.SetValue(ipt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
- model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
- model.SetValue(ipt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
-
- model.refresh();
-
- model.setFocus("ipt_winacnt");
- }
- function fGoodCdCopy()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("ipt_mdlcd");
- return false;
- }
-
- model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
- model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
- submit("TRRSC05303");
-
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- 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";
-
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- grp_detail.refresh();
- }
-
- function fInsertGoodDataListCopy()
- {
- if(btn_instcd.selected == true)
- {
- if( grd_instinfo.row > (grd_instinfo.fixedRows - 1) )
- {
- grd_instinfo.dispatch("ondblclick");
- grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/gooddet/gooddetlist/instcd", getUserInfo("dutplceinstcd"));
- grd_gooddetlist.addStatus(grd_gooddetlist.row, "insert");
- // model.refresh();
- //grp_detail.disabled = false;
-
- //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
- //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
- fSetGrp_detailDisabled( false );
- }else{
- messageBox("사용기관정보의 기관을 선택하신후 다시 작업해주세요.", "I999");
-
- return ;
- }
-
- }else{
- messageBox("사용기관정보를 선택하신 후 다시 작업해주세요.", "I999");
- return ;
- }
- }
-
- /*----------------------------------------------------------------
- * DRUGTYPE : 대분류 + 조영제 값을 체크하여 약국분류를 만듦
- reqflag = 'I' 이면 'I' else lrgcd
- ----------------------------------------------------------------*/
- function fSetDrugtype(pReqflag)
- {
- if (pReqflag == "I")
- opt_drugkind.value = pReqflag ;
- else
- opt_drugkind.value = ipt_lrgcd.value ;
-
- }
-
- function fupdatacheck()
- {
- var tempdd=grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd"));
-
- misfGridRowStatusChange(grd_gooddetlist, "/root/main/list/gooddet", "/root/main/gooddet");
- grd_gooddetlist.refresh();
- if(( getGridUpdateData(grd_gooddetlist)== "" ) && (getGridUpdateData(grd_rscdpbnslist)=="" )&& (getGridUpdateData(grd_goodbaseqtylist)=="" ))
- {
- messageBox("변경내역이 없습니다. ", "I999");
- return;
- }
-
- if(grd_gooddetlist.rowStatus(grd_gooddetlist.fixedRows) == 2 && btn_main.selected == true )
- {
- if(tempdd==grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd")))
- {
- var tempmag = (messageBox("적용일자가 변경되지않았습니다 새로운 적용일자로 입력하시겠습니까? ", "S999"));
- if(tempmag=="6" || tempmag=="2")
- {
- model.setFocus("ipt_fromdd");
- return 6;
- }
- }
- }
- model.refresh();
- }
-
- function fBnsValidCheck () {
- if( grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
- for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ ) {
- if( grd_rscdpbnslist.rowStatus(cnt) != 0 ) {
- if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscd")).length== 0 ) {
- messageBox("도매상코드를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("bnscd");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("exchqty")).length== 0 ) {
- messageBox("낱개수량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("exchqty");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("deliveunit")).length== 0 ) {
- messageBox("낱개단위를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("deliveunit");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("purcunit")).length== 0 ) {
- messageBox("포장단위를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("purcunit");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodunitcost")).length== 0 ) {
- messageBox("구입단가를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodunitcost");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodpurccost")).length== 0 ) {
- messageBox("구입가를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodpurccost");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")).length== 0 ) {
- if ( model.getValue( ipt_goodcd.attribute("ref") ).length !=0 ) {
- grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
- } else {
- messageBox("약품품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
- }
- }
- }
- }
- return true;
- }
-
- function fBaseQtyValidCheck () {
-
- if( grd_goodbaseqtylist.rows- grd_goodbaseqtylist.fixedRows > 0) {
- for( cnt = grd_goodbaseqtylist.fixedRows; cnt < grd_goodbaseqtylist.rows; cnt++ ) {
- if( grd_goodbaseqtylist.rowStatus(cnt) != 0 ) {
-
- if(grd_goodbaseqtylist.valueMatrix(cnt, grd_goodbaseqtylist.colRef("reqdeptcd")).length== 0 ) {
- messageBox("재고관리부서 " ,"C002");
- grd_goodbaseqtylist.row = cnt;
- grd_goodbaseqtylist.col = grd_rscdpbnslist.colRef("reqdeptcd");
- return false;
- } /*else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("basevol")).length== 0 ) {
- messageBox("안전재고량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
- return false;
- } */
- else if(model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+cnt+"]/basevol") == '') {
- messageBox("안전재고량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
- return false;
- }
- }
- }
- }
- return true;
- }
-
-
- /** 2008.08.04 YYJ
- 상태에 따른 활성화 / 비활성화 설정 ( 보나에스 정보로 Setting 여부 )
- 보나에스 데이터 존재시 사용자 임의로 데이터를 수정 하지 못하고,
- 보나에스 Tab에서 데이터 지정하여 반영하기로 함.
- * 신규 입력시 직접 입력 가능하도록 풀어준다.
- ipt_exchqty // 낱개수량
- cmb_deliveunit // 낱개단위
- cmb_purcunit // 포장단위
- ipt_goodunitcost // 구입단가
- ipt_goodpurccost // 구입가
-
- 2008.08.24 YYJ
- 상세 화면에서 데이터 수정하더라도.. 보나에스 코드에 반영되도록 수정처리 함
-
- */
- function fBnsSetData( vStatus ) {
- ipt_exchqty.disabled = vStatus;
- cmb_deliveunit.disabled = vStatus;
- cmb_purcunit.disabled = vStatus;
- ipt_goodunitcost.disabled = vStatus;
- ipt_goodpurccost.disabled = vStatus;
- model.refresh();
- }
-
- function fsetP0133listData()
- {
- var ins = document.models( 0 ).instances( 0 );
- var P0133_nodelist = ins.selectNodes( "/root/init/P0133list/P0133" );
-
- var length = P0133_nodelist.length;
-
- for ( i=length-1; i>0; i-- )
- {
- var P0133_node = P0133_nodelist.item(i).childnodes;
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
- if( P0133_node.item(0).value != "-" && P0133_node.item(0).value != "1" && P0133_node.item(0).value != "4")
- {
- var pNode = P0133_nodelist.item(i).parentNode;
- pNode.removeChild(P0133_nodelist.item(i));
- }
- }
- }
-
- function fsetP0142listData()
- {
- var ins = document.models( 0 ).instances( 0 );
- var P0142_nodelist = ins.selectNodes( "/root/init/P0142list/P0142" );
-
- var length = P0142_nodelist.length;
-
- for ( i=length-1; i>0; i-- )
- {
- var P0142_node = P0142_nodelist.item(i).childnodes;
- //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
- //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
- if( P0142_node.item(0).value != "G" && P0142_node.item(0).value != "S" )
- {
- var pNode = P0142_nodelist.item(i).parentNode;
- pNode.removeChild(P0142_nodelist.item(i));
- }
- }
- }
-
- function misfMsterDetailRetrieve2()
- {
- var node = instance1.selectNodes("/root/gridset/mastdetailset/*");
-
- for (var i = 0; i <node.length ; i++)
- {
- var node_detail = node.item(i).childNodes;
-
- //master에 값이 없는 submit 만 실행
- if ( node_detail.item(1).value == "" )
- {
- var resetgridID = document.controls(node_detail.item(0).value);
- model.removeNodeset(resetgridID.nodeset);
-
- submit(node_detail.item(2).value);
- }
- }
- }
-
-
- //물품 세부정보 조회
- function fSearchDetailData()
- {
- var row = grd_goodlist.row;
- if ( row < 1 )
- row = 1;
-
- //grd_goodlist.refresh();
- //model.refreshpart("/root/main/list/good/goodlist");
-
- var goodcd = model.getValue("/root/main/list/good/goodlist["+row+"]/goodcd");
- var fromdd = model.getValue("/root/main/list/good/goodlist["+row+"]/fromdd");
- var useyn = model.getValue("/root/main/list/good/goodlist["+row+"]/useyn");
-
-
- if ( btn_sub.selected ){
- var instcd = model.getValue("/root/main/list/good/goodlist["+row+"]/instcd");
- }else{
- var instcd = "001";
- }
-
- model.setValue("/root/send/gooddetlist/goodcd", goodcd);
- model.setValue("/root/send/gooddetlist/fromdd", fromdd);
- model.setValue("/root/send/gooddetlist/useyn", useyn);
- model.setValue("/root/send/gooddetlist/instcd", instcd);
-
- var master_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/master");
- var current_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/current");
- var submit_id = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/submit");
-
-
- submit (submit_id);
- }
-
-
- function fSetGrp_detailDisabled( disableFlag )
- {
- //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
- if ( disableFlag == false )
- {
- //grp_detail.disable을 풀어야만 하위 컨트롤들의 disabled제어가 먹음.
- grp_detail.disabled = false;
-
- //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,비고,재고관리기준그룹, 제제약, 바코드, 불용일자, 변경사유,제제약여부,비과세
- var arrCtrlID = new Array("ipt_fromdd","ipt_prodcmpycd","btn_prodcmpycd","ipt_suppcustcd","btn_suppcustcd","ipt_maincustlastsuplplce","btn_maincustlastsuplplce","ipt_oldcd","ipt_estmamt","ipt_goodunitcost","ipt_goodpurccost", "tar_cmt", "group_stocmngt", "chk_proddrugsetflag", "ipt_barcode", "ipt_nonusetretdd", "cmb_nonusetretresn", "chk_proddrugsetflag","ipt_insucost","chk_expnyn","chk_shadelight");
-
- for ( i=0; i< grp_detail.children.length; i++ )
- {
- for ( j=0; j<arrCtrlID.length; j++ )
- {
- if ( grp_detail.children(i).attribute("id") == arrCtrlID[j] )
- {
- if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
- grp_detail.children(i).attribute("editable") = "true"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
-
- break;
- }
- }
- if ( j == arrCtrlID.length )
- {
- if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
- grp_detail.children(i).attribute("editable") = "false"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
- else
- grp_detail.children(i).disabled = true;
- }
- }
- }
- else
- {
- for ( i=0; i< grp_detail.children.length; i++ )
- {
- if ( grp_detail.children(i).attribute("inputtype") != "date" && (grp_detail.children(i).elementName == "xforms:input" || grp_detail.children(i).elementName == "xforms:textarea") )
- grp_detail.children(i).attribute("editable") = "false"; //input, textarea의 경우 editing은 안되지만 복사는 되게.
- else
- grp_detail.children(i).disabled = true;
- }
- }
- }
-
- // (기관,통합)약국 코드 조회
- function fDrugGoodSrch(){
- if(fCheckRetrieveData() == false)return;
-
- // [기관] 조회 조건과 마스터 조회 목록 탭(기관약품목록,통합약품목록)의 설정 동기화
- var instflag = model.getValue("/root/send/goodlist/instflag");
-
- if (instflag == "Y" )
- {
- if(btn_sub.selected !="true"){
- btn_sub.selected = true;
- }
- btn_sub.dispatch("DOMActivate");
- }
- else
- {
- if(btn_main.selected !="true"){
- btn_main.selected = true;
- }
- btn_main.dispatch("DOMActivate");
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1373;1,645;2,190;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">기관별 약품코드등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:36px; width:90px; height:17px; ">EDI 코드 :</caption>
- <caption id="caption3" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption10" class="search_name" style="left:456px; top:8px; width:83px; height:17px; ">약 품 명 :</caption>
- <caption id="caption34" class="search_name" style="left:456px; top:63px; width:86px; height:17px; ">판매회사 :</caption>
- <line id="line1" class="line_4" style="x1:1109px; y1:13px; x2:1109px; y2:70px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDrugGoodSrch();
- // fSetlinit(); 조회 후 초기화 취소 요청으로 제외 시킴
-
- ]]>
- </script>
- </button>
- <!--input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" _chartype="upper" style="left:555px; top:22px; width:185px; height:19px; "-->
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" style="left:540px; top:8px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm_search.value = ipt_goodnm_search.currentText;
- ipt_goodnm_search.refresh();
- fDrugGoodSrch();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_edicd_search" ref="/root/send/goodlist/edicd" class="input_search" style="left:104px; top:36px; width:91px; height:19px; "/>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" _chartype="upper" style="left:301px; top:8px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd_search.value = ipt_goodcd_search.currentText;
- //ipt_goodcd_search.refresh();
- fDrugGoodSrch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption81" class="search_name" style="left:15px; top:8px; width:85px; height:17px; ">기 관 :</caption>
- <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:104px; top:8px; width:91px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" _chartype="upper" style="left:301px; top:36px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_oldcd_search.value = ipt_oldcd_search.currentText;
- ipt_oldcd_search.refresh();
- fDrugGoodSrch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption82" class="search_name" style="left:215px; top:36px; width:86px; height:17px; ">구 코 드 :</caption>
- <input id="ipt_suppcustcd_search" ref="/root/send/goodlist/suppcustcd" class="input_default" visibility="hidden" style="left:420px; top:60px; width:24px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_suppcustcd_search.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm_search.attribute("ref"),"");
- 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");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd_search" class="icon_search" style="left:730px; top:63px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd_search,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="opt_suppcustnm_search" ref="/root/send/goodlist/suppcustnm" class="input_default" style="left:540px; top:63px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(opt_suppcustnm_search.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd_search.attribute("ref"),"");
- 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");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption40" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">도 매 상 :</caption>
- <input id="ipt_bnscd_search" ref="/root/send/goodlist/bnscd" class="input_search" _chartype="upper" style="left:104px; top:65px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_bnscd_search.value=ipt_bnscd_search.currentText;
- ipt_bnscd_search.refresh();
- fDrugGoodSrch();
-
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption22" class="search_name" style="left:456px; top:36px; width:83px; height:17px; ">성 분 명 :</caption>
- <!--input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" _chartype="upper" style="left:555px; top:43px; width:185px; height:19px; "-->
- <input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" style="left:540px; top:36px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_comnm_search.value = ipt_comnm_search.currentText;
- ipt_comnm_search.refresh();
- fDrugGoodSrch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption43" class="search_name" style="left:215px; top:63px; width:86px; height:17px; ">불용코드 :</caption>
- <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" appearance="full" cols="2" overflow="visible" style="left:300px; top:63px; width:91px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/nonusegoodview">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rbo_exactsearch1" ref="/root/send/goodlist/exactsearch" appearance="full" cols="1" overflow="visible" style="left:400px; top:5px; width:45px; height:35px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/exactsearch">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_goodnmsearch" ref="/root/send/goodlist/goodnmsearch" appearance="full" cols="1" overflow="visible" style="left:725px; top:5px; width:45px; height:35px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/goodnmsearch">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption61" class="search_name" style="left:839px; top:36px; width:83px; height:17px; ">중 분 류 :</caption>
- <select1 id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:930px; top:8px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, "", "ipt_mdlcd_search", "", "M", "Y", "Y");
- ipt_mdlcd_search.value="";
- ipt_mdlcd_search.refresh();
- ipt_mdlcd_search.dispatch("xforms-value-changed");
-
- //model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:930px; top:61px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:930px; top:36px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, ipt_mdlcd_search.value, "ipt_smlcd_search", "", "S", "Y", "Y");
- ipt_smlcd_search.value="";
- //model.refresh();
- ipt_smlcd_search.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption39" class="search_name" style="left:839px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
- <caption id="caption8" class="search_name" style="left:839px; top:8px; width:83px; height:17px; ">대 분 류 :</caption>
- </group>
- <line id="line7" class="line_1" style="x1:0px; y1:121px; x2:540; y2:121px; "/>
- <caption id="caption1" class="tit_2" style="left:550; top:106px; width:95px; height:13px; ">통합품목정보</caption>
- <switch id="sw_detail" style="left:0px; top:494px; width:540; height:240px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <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; ">
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="nonusetretresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/R0356list/R0356">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt"/>
- <col ref="insucost" format="#,###" style="text-align:right; "/>
- <col ref="goodcost" format="#,###" style="text-align:right; "/>
- <col ref="purcqty" format="#,###" style="text-align:right; "/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="edicd"/>
- <col ref="goodnm"/>
- <col ref="suppcustnm"/>
- <col ref="todd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_costhistinfo.row > 0)
- {
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]");
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate()){
- ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- }else{
- ipt_nonusetretdd.attribute("background-color") = "#ffffff";
- }
- ipt_nonusetretdd.refresh();
- grp_detail.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case2">
- <group id="grp_etcgood" style="left:0px; top:28px; width:537; height:60px; ">
- <line id="line50" class="line_2" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <line id="line53" class="line_3" style="x1:0px; y1:47px; x2:537px; y2:47px; "/>
- <caption id="caption74" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
- <caption id="caption76" class="cell_1" style="left:268px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
- <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:110px; top:2px; width:156px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordbase">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption78" class="cell_1" style="left:0px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
- <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; "/>
- <caption id="caption79" class="cell_1" style="left:268px; top:25px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
- <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; "/>
- <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:378px; top:2px; width:158px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordqtycretflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line4" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case4">
- <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; ">
- <col ref="instcd"/>
- <col ref="instnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_instinfo.row ;
- if(row > (grd_instinfo.fixedRows-1) )
- {
- if ( grd_goodlist.row < 1 )
- model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
- else
- model.setValue("/root/send/gooddetlist/goodcd", grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")));
-
- model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(row, grd_instinfo.colRef("instcd")));
- model.setValue("/root/send/gooddetlist/useyn", 'Y');
-
- submit("TRRSC05302");
- fAfterRetrGoodList();
-
- //자신의 기관번호와 일치하는 데이터만 수정 가능
- if ( grd_instinfo.valueMatrix(row, grd_instinfo.colRef("instcd")) == getUserInfo("dutplceinstcd") )
- {
- //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
- //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
- fSetGrp_detailDisabled( false );
- }
- else
- fSetGrp_detailDisabled( true );
- }
-
-
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case5">
- <line id="line9" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <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; ">
- <col ref="reqdeptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="basevol" type="input" format="#,###" style="text-align:right; "/>
- <col ref="cmt" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- </datagrid>
- <button id="btn_grdadd2" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"A");
-
- //default setting
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/ddavguseqty" ,"0");
- ]]>
- </script>
- </button>
- <button id="btn_grddel2" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"D");
- ]]>
- </script>
- </button>
- </case>
- <case id="case6">
- <line id="line11" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <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; ">
- <col ref="bnscheck" style="text-align:center; "/>
- <col ref="bnscd" _key="true" style="text-align:left; "/>
- <col ref="prcpexchqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="exchqty" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="deliveunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="purcunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
- <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
- <col ref="goodcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cnt = 0;
- if( grd_rscdpbnslist.row - grd_rscdpbnslist.fixedRows >= 0 &&
- grd_rscdpbnslist.col == grd_rscdpbnslist.colRef("bnscheck") &&
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) != '√' &&
- fBnsValidCheck() == true )
- {
- if(messageBox("도매상 코드로", "Q009") =='6')
- {
- opt_bnscd.value = grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscd"));
- /* 2008.08.04 YYJ 처방 환산은 보나에스에 종속적이지 않다고 하여 변경 */
- // ipt_prcpexchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("prcpexchqty"));
- ipt_exchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("exchqty"));
- cmb_deliveunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("deliveunit"));
- cmb_purcunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("purcunit"));
- ipt_goodunitcost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodunitcost"));
- ipt_goodpurccost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodpurccost"));
-
- for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ )
- {
- if( grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) == '√' )
- {
- grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) = "";
- break;
- }
- }
-
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) = '√'
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_choidel" class="btn2_letter6" visibility="hidden" style="left:820px; top:100px; width:86px; height:19px; ">
- <caption>선택행삭제x</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_gooddetlist, "D");
- misfGridIUD(grd_goodlist, "D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" caption="약품코드^물품구분^약품명^EDI코드^함량/단위^대분류명^중분류명^소분류명" colsep="^" colwidth="85, 0, 144, 100, 100, 73, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:126px; width:540px; height:342px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="goodnm" type="output" _key="true"/>
- <col ref="edicd"/>
- <col ref="goodspec"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="asetflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var detailYN = "Y";
- fRetrGoodList(true, detailYN);
-
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:472px; width:90px; height:22px; ">
- <caption>사용기관정보</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- </button>
- <button id="btn_addinfo" class="btn_sw" group="tab" style="left:89px; top:472px; width:90px; height:22px; ">
- <caption>부가입력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:472px; width:90px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <line id="line2" class="line_1" style="x1:545; y1:121px; x2:1195; y2:121px; "/>
- <button id="button2" class="btn_sw7" group="tab" style="left:271px; top:472px; width:90px; height:22px; ">
- <caption>안전재고량관리</caption>
- <toggle case="case5" ev:event="DOMActivate"/>
- </button>
- <button id="btn_excel" class="btn2_letter5" navindex="12" visibility="hidden" style="left:740px; top:100px; width:75px; height:19px; ">
- <caption>Excel 화면</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- submit("TRRSC05402");
- var fileName = window.fileDialog("save", ",", false, "약품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_gooddetgoodexcellist.saveExcel(fileName, "약품코드");
- }
- ]]>
- </script>
- </button>
- <button id="bbt_bonaes" class="btn_sw" group="tab" style="left:370px; top:472px; width:90px; height:22px; ">
- <caption>포장단위</caption>
- <toggle case="case6" ev:event="DOMActivate"/>
- </button>
- <button id="btn_openexcel" class="btn2_letter5" navindex="12" style="left:1116px; top:100px; width:75px; height:19px; ">
- <caption>Excel 조건</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
-
- model.setValue("/root/send/goodlist/exinstcd",getUserInfo("dutplceinstcd"));
- model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
-
- rdo_delyn.value = '';
- rdo_contractyn.value = '';
-
- group3.disabled = true;
- fSetGrp_detailDisabled( true );
- group2.visible = true;
- group2.disabled = false;
- /* 일자를 전체 check한다 */
- chkdd.value= "Y";
- chkdd.dispatch("xforms-value-changed");
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_main" class="btn_sw" group="maintab" style="left:90px; top:98px; width:90px; height:22px; ">
- <caption>통합약품목록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //Excel 저장 시 통합(001)로 저장 되도록
- btn_excelsave.value = "통합엑셀저장";
- model.setValue("/root/send/goodlist/instcd", "001");
-
- //통합탭에서는 타기관내용복사 할 수 있게 버튼 보임
- btn_useinstinfo.attribute("visibility") = "visible";
- // 통합 flag로 조회되도록 flag설정
- rbo_instflag.value = "";
-
- fRetrGoodList(true);
- fSetGrp_detailDisabled( true );
- ]]>
- </script>
- </button>
- <button id="btn_sub" class="btn_sw" group="maintab" selected="true" style="left:1px; top:98px; width:90px; height:22px; ">
- <caption>기관약품목록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Excel 저장 시 로그인한 기관코드로 저장 되도록
- btn_excelsave.value = "Excel 저장";
- model.setValue("/root/send/goodlist/instcd", getUserInfo("dutplceinstcd"));
-
- //기관탭에서는 타기관내용복사 못하게 버튼 숨김
- btn_useinstinfo.attribute("visibility") = "hidden";
- //기관 flag로 조회되도록 flag설정
- rbo_instflag.value = "Y";
-
- fRetrGoodList(true);
-
- //기관이 수정 가능한 컨트롤만 editing 가능, 다른 컨트롤들은 모두 disable 시킴
- //가능컨트롤 : 적용일자,제조회사코드,제조회사버튼,판매회사코드,판매회사버튼,주거래처코드,주거래처버튼,구코드,처방단가,구입단가,구입가,재고관리기준그룹
- fSetGrp_detailDisabled( false );
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter6" style="left:1020px; top:100px; width:86px; height:19px; ">
- <caption>통합내용갱신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPRSC08300",0,100,150,"SPRSC08300","","");
- ]]>
- </script>
- </button>
- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="goodcd^todd^prefromdd^instcd^useyn^fromdd^goodflag^edicd^goodnm^goodhngnm^goodengnm^goodspec^goodmodel^pregoodspec^pregoodmodel^asetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^proddrugsetflag^winacnt^winacntnm^amtacnt^amtacntnm^mainmngtdeptcd^mainmngtdeptnm^mainusedeptcd^stocmngtflag^purcunit^deliveunit^exchqty^minexch^reuseyn^divusenvalqty^calcscorinfoacptstat^calcscorinfoacptdd^edicd^reqdeptcd^reqdeptnm^reqpsn^reqpsnnm^reqflag^reqflagnm^reqmthd^reqprid^prodplce^prodcmpycd^prodcmpynm^maincustlastsuplplce^maincustlastsuplplcenm^suppcustcd^suppcustnm^conflag^fromconterm^toconterm^estmamt^forgncurncyunitcost^curncyunit^goodunitcost^purcflag^allsizeyn^setplceordflag^plceordbase^plceordqtycretflag^plceordnonusedd^addtaxrate^lastpurcdd^nonusetretresn^mngtflag^expnyn^cmt^cntsqty^ddavguseqty^mmavgusescheqty^mmavguseqty^prprtystocpossndayno^tmpreqflag^oldcd^bnscd^cntsunit^specvol^com^goodtype^narcflag^keepmthd^cntrdrugyn^expnyn^limdrugyn^gnrlspcl^specldrug^keeptemp^deliveunit^prcpunit^prcpexchqty^insucost^specunit^pemtkeepmthd^comnm^instcd^welfprt^welfprtnm^purcqty^prcpqty^csrusecmt^goodpurccost^drugkind^grupsnglflag^hospdrguvol^hospdrguunit^orginspplce^calcmthdcd^dupexpgoodcd^dupexpgoodcdold^dupexpgoodcdnm^shadelight^upperlimit" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 110, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:10px; top:235px; width:515px; height:85px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="todd" _key="true"/>
- <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
- <col ref="instcd" _key="true"/>
- <col ref="useyn"/>
- <col ref="fromdd"/>
- <col ref="goodflag"/>
- <col ref="edicd"/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="pregoodspec"/>
- <col ref="pregoodmodel"/>
- <col ref="asetflag" _key="true"/>
- <col ref="lrgcd" _key="true"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="proddrugsetflag"/>
- <col ref="winacnt" _key="true"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="mainmngtdeptcd" _key="true"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="mainusedeptcd"/>
- <col ref="stocmngtflag"/>
- <col ref="purcunit"/>
- <col ref="deliveunit"/>
- <col ref="exchqty"/>
- <col ref="minexch"/>
- <col ref="reuseyn"/>
- <col ref="divusenvalqty"/>
- <col ref="calcscorinfoacptstat"/>
- <col ref="calcscorinfoacptdd"/>
- <col ref="edicd"/>
- <col ref="reqdeptcd"/>
- <col ref="reqdeptnm"/>
- <col ref="reqpsn"/>
- <col ref="reqpsnnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="reqmthd" _key="true"/>
- <col ref="reqprid"/>
- <col ref="prodplce"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="maincustlastsuplplce" _key="true"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="conflag"/>
- <col ref="fromconterm"/>
- <col ref="toconterm"/>
- <col ref="estmamt"/>
- <col ref="forgncurncyunitcost"/>
- <col ref="curncyunit"/>
- <col ref="goodunitcost"/>
- <col ref="purcflag"/>
- <col ref="allsizeyn"/>
- <col ref="setplceordflag"/>
- <col ref="plceordbase"/>
- <col ref="plceordqtycretflag"/>
- <col ref="plceordnonusedd"/>
- <col ref="addtaxrate"/>
- <col ref="lastpurcdd"/>
- <col ref="nonusetretresn"/>
- <col ref="mngtflag"/>
- <col ref="expnyn"/>
- <col ref="cmt"/>
- <col ref="cntsqty"/>
- <col ref="ddavguseqty"/>
- <col ref="mmavgusescheqty"/>
- <col ref="mmavguseqty"/>
- <col ref="prprtystocpossndayno"/>
- <col ref="tmpreqflag"/>
- <col ref="oldcd"/>
- <col ref="bnscd"/>
- <col ref="cntsunit"/>
- <col ref="specvol"/>
- <col ref="com"/>
- <col ref="goodtype"/>
- <col ref="narcflag"/>
- <col ref="keepmthd"/>
- <col ref="cntrdrugyn"/>
- <col ref="expnyn"/>
- <col ref="limdrugyn"/>
- <col ref="gnrlspcl"/>
- <col ref="specldrug"/>
- <col ref="keeptemp"/>
- <col ref="deliveunit"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty"/>
- <col ref="insucost"/>
- <col ref="specunit"/>
- <col ref="pemtkeepmthd"/>
- <col ref="comnm"/>
- <col ref="instcd"/>
- <col ref="welfprt"/>
- <col ref="welfprtnm"/>
- <col ref="purcqty"/>
- <col ref="prcpqty"/>
- <col ref="csrusecmt"/>
- <col ref="goodpurccost"/>
- <col ref="drugkind"/>
- <col ref="grupsnglflag"/>
- <col ref="hospdrguvol"/>
- <col ref="hospdrguunit"/>
- <col ref="orginspplce"/>
- <col ref="calcmthdcd"/>
- <col ref="dupexpgoodcd"/>
- <col ref="dupexpgoodcdold"/>
- <col ref="dupexpgoodcdnm"/>
- <col ref="shadelight"/>
- <col ref="upperlimit"/>
- </datagrid>
- <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; ">
- <col ref="instnm"/>
- <col ref="fromdd" style="left:400px; top:23px; width:107px; height:48px; "/>
- <col ref="oldcd"/>
- <col ref="goodcd" _key="true"/>
- <col ref="bnscd"/>
- <col ref="goodnm"/>
- <col ref="gnrlspcl"/>
- <col ref="welfprt"/>
- <col ref="welfprtnm"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="edicd"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="maincustlastsuplplce" _key="true"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="com"/>
- <col ref="comnm"/>
- <col ref="lrgcd" _key="true"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="asetflag" _key="true"/>
- <col ref="winacnt" _key="true"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="cntsqty"/>
- <col ref="cntsunit"/>
- <col ref="specvol"/>
- <col ref="specunit"/>
- <col ref="prcpqty"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty"/>
- <col ref="exchqty"/>
- <col ref="deliveunit"/>
- <col ref="purcunit"/>
- <col ref="insucost"/>
- <col ref="estmamt"/>
- <col ref="goodunitcost"/>
- <col ref="goodcost"/>
- <col ref="keepmthd"/>
- <col ref="pemtkeepmthd"/>
- <col ref="proddrugsetflag"/>
- <col ref="todd" _key="true"/>
- <col ref="nonusetretresn"/>
- <col ref="cmt"/>
- <col ref="mainmngtdeptcd" _key="true"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="stocmngtflag"/>
- <col ref="stocmngtflagnm"/>
- <col ref="reqmthd"/>
- <col ref="reqmthdnm"/>
- <col ref="tmpreqflag"/>
- <col ref="reqprid"/>
- <col ref="reqpridnm"/>
- <col ref="dupexpgoodcd"/>
- <col ref="dupexpgoodcdnm"/>
- <col ref="shadelight"/>
- <col ref="upperlimit"/>
- </datagrid>
- </group>
- <group id="grp_detail" style="left:545px; top:165px; width:649px; height:615px; ">
- <line id="line19" class="line_2" style="x1:0px; y1:286px; x2:649px; y2:286px; "/>
- <line id="line29" class="line_2" style="x1:0px; y1:118px; x2:649px; y2:118px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:310px; x2:649px; y2:310px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:142px; x2:649px; y2:142px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:166px; x2:649px; y2:166px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:334px; x2:649px; y2:334px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:358px; x2:649px; y2:358px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:382px; x2:649px; y2:382px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:190px; x2:649px; y2:190px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:406px; x2:649px; y2:406px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:214px; x2:649px; y2:214px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:475px; x2:649px; y2:475px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:22px; x2:649px; y2:22px; "/>
- <line id="line22" class="line_2" style="x1:0px; y1:238px; x2:649px; y2:238px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:46px; x2:649px; y2:46px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:240px; x2:649px; y2:240px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:585px; x2:649px; y2:585px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:70px; x2:649px; y2:70px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:94px; x2:649px; y2:94px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:611px; x2:649px; y2:611px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:516px; x2:649px; y2:516px; "/>
- <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" disabled="true" appearance="minimal" style="left:434px; top:218px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_asetflag");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodspec");
- // else model.setFocus("ipt_lrgcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:410px; top:515px; width:11px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodnm");
- else model.setFocus("ipt_goodengnm");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpycd" class="icon_search" style="left:174px; top:124px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">약 품 코 드</caption>
- <button id="btn_smlcd" class="icon_search" disabled="true" style="left:300px; top:220px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_lrgcd" class="icon_search" disabled="true" style="left:300px; top:197px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
-
- fSetDrugtype(cmb_reqflag.value);
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <caption id="caption52" class="cell_1" style="left:0px; top:48; width:108px; height:23px; vertical-align:middle; ">한 글 상 품 명</caption>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- // event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="input_fix" editable="false" appearance="input" style="left:110px; top:218px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
- "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" ,
- ipt_smlnm,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:193px; top:242px; width:129px; height:19px; "/>
- <input id="ipt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="input_s_essential" editable="false" appearance="input" style="left:110px; top:194px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(ipt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm"
- ,ipt_lrgnm,"SPRSD00130","goodflag","ipt_goodflag");
- fSetDrugtype(cmb_reqflag.value);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption42" class="cell_1" style="left:0px; top:120px; width:108px; height:23px; vertical-align:middle; ">제 조 회 사</caption>
- <caption id="caption66" class="cell_1" style="left:0px; top:216px; width:108px; height:23px; vertical-align:middle; ">소 분 류</caption>
- <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:518px; top:242px; width:129px; height:19px; "/>
- <button id="btn_winacnt" class="icon_search" disabled="true" style="left:174px; top:244px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_mdlcd" class="icon_search" disabled="true" style="left:630px; top:196px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="input_fix" editable="false" appearance="input" style="left:434px; top:194px; width:190px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref")),"","mdlcd,mdlnm" ,
- ipt_mdlnm,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption56" class="cell_1" style="left:324px; top:216px; width:108px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:240px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:192px; width:108px; height:23px; vertical-align:middle; ">대 분 류</caption>
- <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" visibility="hidden" editable="false" style="left:110px; top:218px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm.attribute("ref"),"");
- 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")) + "," +
- 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");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_mdlcd");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_amtacnt" class="icon_search" disabled="true" style="left:498px; top:244px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" visibility="hidden" editable="false" style="left:110px; top:194px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
- 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");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_asetflag");
- else model.setFocus("ipt_mdlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell_1" style="left:324px; top:240px; width:108px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
- <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" editable="false" style="left:110px; top:242px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:324px; top:192px; width:108px; height:23px; vertical-align:middle; ">중 분 류</caption>
- <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" visibility="hidden" editable="false" style="left:434px; top:194px; width:61px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm.attribute("ref"),"");
- 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")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:110px; top:122px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- // model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("cmb_prodplce");
- // else model.setFocus("ipt_goodmodel");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" editable="false" imemode="alpha" maxlength="450" style="left:110px; top:74px; width:537px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
- // else model.setFocus("cmb_prodplce");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_s_essential" editable="false" style="left:434px; top:242px; width:61px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_winacnt");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:193px; top:122px; width:129px; height:19px; "/>
- <caption id="caption55" class="cell_1" visibility="visible" style="left:324px; top:120px; width:108px; height:23px; vertical-align:middle; ">E D I 코 드</caption>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_s_essential" editable="false" maxlength="30" style="left:110px; top:49px; width:537px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- /* 한글명에 값셋팅한다.*/
- model.setValue(ipt_goodhngnm.attribute("ref"),ipt_goodnm.value);
- ]]>
- </script>
- </input>
- <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
- <button id="btn_photinfo" class="btn2_letter2" style="left:205px; top:25px; width:42px; height:19px; ">
- <caption>사진</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //SPRSC00210
- rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:2px; width:91px; height:19px; background-color:#ffffff; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromdd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ComFromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
- var ComPreFromdd = model.getValue("/root/main/gooddet/gooddetlist/prefromdd");
- if(ComFromdd < ComPreFromdd){
- messageBox("현 적용일자보다 이전일자로 변경할수", "I004");
- model.setValue(ipt_fromdd.attribute("ref"), ComPreFromdd);
- ipt_fromdd.refresh();
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:454px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var Todd = model.getValue("/root/main/gooddet/gooddetlist/todd");
- var ComTodd = model.getValue("/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]/todd");
- var Fromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
- var ComFromdd = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
-
- if(ComFromdd!=Fromdd){
- messageBox("이미 불용된 코드","I009");
- model.setValue("/root/main/gooddet/gooddetlist/todd",ComTodd);
- ipt_nonusetretdd.refresh();
- return;
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="combo_default" appearance="minimal" style="left:325px; top:454px; width:322px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0356list/R0356">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:476px; width:538px; height:39px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_reqpsn");
- // else model.setFocus("ipt_lastpurcdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </textarea>
- <caption id="caption5" class="cell_1" style="left:0px; top:453px; width:108px; height:23px; vertical-align:middle; ">불 용 일 자</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:477px; width:108px; height:38px; vertical-align:middle; ">비 고</caption>
- <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:518px; top:147px; width:129px; height:19px; "/>
- <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:193px; top:146px; width:129px; height:19px; "/>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_s_essential" style="left:434px; top:146px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
- 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");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- //if(event.shiftKey)model.setFocus("cmb_purcflag");
- //else model.setFocus("ipt_suppcustcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" style="left:175px; top:148px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opt_instcd2.value=getUserInfo("dutplceinstcd");
- //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd2");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption67" class="cell_1" style="left:238px; top:360px; width:85px; height:23px; vertical-align:middle; ">처 방 단 가</caption>
- <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:527px; top:362px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:499px; top:148px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- opt_instcd2.value=getUserInfo("dutplceinstcd");
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd2");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption37" class="cell_1" style="left:0px; top:144px; width:108px; height:23px; vertical-align:middle; ">판 매 회 사</caption>
- <caption id="caption27" class="cell_1" style="left:324px; top:144px; width:108px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" style="left:110px; top:146px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm.attribute("ref"),"");
- 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");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption13" class="cell_1" style="left:0px; top:265px; width:108px; height:23px; vertical-align:middle; ">함량/함량단위</caption>
- <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" disabled="true" appearance="minimal" style="left:195px; top:266px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell_1" style="left:0px; top:288px; width:108px; height:23px; vertical-align:middle; ">병원용량/단위</caption>
- <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" editable="false" format="#,###.##" style="left:434px; top:266px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <caption id="caption26" class="cell_1" style="left:0px; top:168px; width:108px; height:23px; vertical-align:middle; ">성 분</caption>
- <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" editable="false" maxlength="10" style="left:110px; top:170px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" editable="false" imemode="alpha" maxlength="450" _chartype="upper" style="left:434px; top:121px; width:214px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
- // else model.setFocus("cmb_prodplce");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption25" class="cell_1" style="left:0px; top:385px; width:56px; height:43px; vertical-align:middle; ">보 관 법</caption>
- <caption id="caption31" class="cell_1" style="left:0px; top:96px; width:108px; height:23px; vertical-align:middle; ">일 반/전 문</caption>
- <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" disabled="true" appearance="minimal" style="left:110px; top:96px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/gnrlspcl">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:320px; top:514px; width:20px; height:18px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>특별</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption48" class="cell_1" style="left:0px; top:360px; width:108px; height:23px; vertical-align:middle; ">보 험 단 가</caption>
- <caption id="caption49" class="cell_1" style="left:455px; top:360px; width:68px; height:23px; vertical-align:middle; ">구입 단가</caption>
- <caption id="caption11" class="cell_1" style="left:324px; top:264px; width:108px; height:23px; vertical-align:middle; ">규격/규격단위</caption>
- <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" editable="false" format="#,###.##" style="left:110px; top:266px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" disabled="true" appearance="full" cellspacing="50" cols="5" overflow="visible" style="left:110px; top:386px; width:325px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" disabled="true" appearance="minimal" style="left:518px; top:267px; width:129px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/specunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="tit_2" style="left:5px; top:519px; width:95px; height:13px; ">재고관리기준</caption>
- <line id="line26" class="line_1" style="x1:0px; y1:533px; x2:649px; y2:533px; "/>
- <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:232px; top:315px; width:6px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" style="left:350px; top:514px; width:15px; height:18px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" disabled="true" appearance="minimal" style="left:518px; top:290px; width:129px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var prcpunit = model.getValue("/root/main/gooddet/gooddetlist/prcpunit");
- model.setValue("/root/main/gooddet/gooddetlist/deliveunit", prcpunit);
- cmb_deliveunit.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_default" editable="false" format="#,###.##" style="left:111px; top:314px; width:115px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_insucost" ref="/root/main/gooddet/gooddetlist/insucost" class="input_default" maxlength="14.2" format="#,###.#" style="left:110px; top:362px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.#" style="left:325px; top:362px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <caption id="caption23" class="cell_1" style="left:325px; top:96px; width:108px; height:23px; vertical-align:middle; ">복지부 분류코드</caption>
- <input id="ipt_welfprt" ref="/root/main/gooddet/gooddetlist/welfprt" class="input_default" editable="false" style="left:436px; top:96px; width:61px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
- else model.setFocus("cmb_mngtflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt,"SPRSD00290");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption28" class="cell_1" style="left:0px; top:429px; width:109px; height:23px; vertical-align:middle; ">제제약/비과세여부</caption>
- <caption id="cap_barcode" class="cell_1" style="left:324px; top:429px; width:108px; height:23px; vertical-align:middle; ">바 코 드</caption>
- <input id="ipt_barcode" style="left:434px; top:432px; width:213px; height:19px; "/>
- <button id="btn_welfprt" class="icon_search" disabled="true" style="left:499px; top:96px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_welfprt,"","welfprt,welfprtnm","SPRSD00290");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_welfprtnm" ref="/root/main/gooddet/gooddetlist/welfprtnm" class="input_default" editable="false" style="left:518px; top:97px; width:129px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprtnm", "welfprtnm," + model.getValue(ipt_welfprtnm.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprtnm,"SPRSD00290");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:370px; top:514px; width:20px; height:18px; "/>
- <input id="ipt_comnm" ref="/root/main/gooddet/gooddetlist/comnm" class="input_default" editable="false" style="left:200px; top:169px; width:446px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- ipt_comnm.visible = false;
- tar_comnm.visible = true;
- model.setFocus("tar_comnm");
- ]]>
- </script>
- </input>
- <select id="chk_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" overflow="visible" appearance="full" cols="1" style="left:110px; top:430px; width:55px; height:21px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/proddrugsetflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_proddrugsetflag.value.length == 0) model.setValue(chk_proddrugsetflag.attribute("ref"),"0");
- else model.setValue(chk_proddrugsetflag.attribute("ref"),"1");
- ]]>
- </script>
- </select>
- <input id="ipt_pemtkeepmthd" ref="/root/main/gooddet/gooddetlist/pemtkeepmthd" class="input_default" editable="false" style="left:108px; top:409px; width:539px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:57px; top:385px; width:51px; height:21px; vertical-align:middle; ">실 제</caption>
- <caption id="caption19" class="cell_1" style="left:57px; top:407px; width:51px; height:21px; vertical-align:middle; ">설명서</caption>
- <caption id="caption36" class="cell_1" style="left:1px; top:312px; width:108px; height:23px; text-align:left; vertical-align:middle; ">처 방 환 산</caption>
- <caption id="caption38" class="cell_1" style="left:455px; top:385px; width:68px; height:23px; vertical-align:middle; ">구 입 가</caption>
- <input id="ipt_goodpurccost" ref="/root/main/gooddet/gooddetlist/goodpurccost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:527px; top:386px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <input id="ipt_prcpqty" ref="/root/main/gooddet/gooddetlist/prcpqty" class="input_default" editable="false" format="#,###" style="left:434px; top:290px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_purcqty" ref="/root/main/gooddet/gooddetlist/purcqty" class="input_default" visibility="hidden" maxlength="9" format="#,###" style="left:227px; top:315px; width:5px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("cmb_deliveunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_drugkind" ref="/root/main/gooddet/gooddetlist/drugkind" visibility="hidden" style="left:445px; top:514px; width:40px; height:18px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:72px; width:108px; height:23px; vertical-align:middle; ">영 문 상 품 명</caption>
- <caption id="caption44" class="cell_1" style="left:324px; top:288px; width:108px; height:23px; vertical-align:middle; ">처방수량/단위</caption>
- <input id="ipt_hospdrguvol" ref="/root/main/gooddet/gooddetlist/hospdrguvol" class="input_default" editable="false" style="left:110px; top:290px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_hospdrguunit" ref="/root/main/gooddet/gooddetlist/hospdrguunit" class="combo_essential" disabled="true" appearance="minimal" style="left:195px; top:290px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_prcpunit/unitlist">
- <label ref="unitnm"/>
- <value ref="unit"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_calcmthdcd" ref="/root/main/gooddet/gooddetlist/calcmthdcd" class="combo_essential" disabled="true" appearance="minimal" style="left:335px; top:314px; width:110px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0133list/P0133">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_grupsnglflag" ref="/root/main/gooddet/gooddetlist/grupsnglflag" class="combo_essential" disabled="true" appearance="minimal" style="left:527px; top:314px; width:120px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0142list/P0142">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption45" class="cell_1" style="left:248px; top:312px; width:86px; height:23px; text-align:left; vertical-align:middle; ">수가계산방법</caption>
- <caption id="caption46" class="cell_1" style="left:455px; top:312px; width:68px; height:23px; text-align:left; vertical-align:middle; ">그룹 여부</caption>
- <caption id="caption51" class="cell_1" style="left:238px; top:454px; width:85px; height:23px; vertical-align:middle; ">변 경 사 유</caption>
- <textarea id="tar_comnm" ref="/root/main/gooddet/gooddetlist/comnm" visibility="hidden" editable="false" style="left:200px; top:169px; width:446px; height:30px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- tar_comnm.visible = false;
- ipt_comnm.visible = true;
- ]]>
- </script>
- </textarea>
- <group id="group_stocmngt" overflow="hidden" style="left:0px; top:538px; width:645px; height:73px; ">
- <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" appearance="minimal" style="left:435px; top:50px; width:69px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqprid">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_s_essential" appearance="minimal" style="left:435px; top:1px; width:210px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stocmngtflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
- // else model.setFocus("cmb_reqmthd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:174px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption41" class="cell_1" style="left:0px; top:48px; width:108px; height:23px; vertical-align:middle; ">임의청구구분</caption>
- <caption id="caption32" class="cell_1" style="left:325px; top:24px; width:108px; height:23px; vertical-align:middle; ">청 구 방 법</caption>
- <caption id="caption33" class="cell_1" style="left:324px; top:48px; width:108px; height:23px; vertical-align:middle; ">청 구 주 기</caption>
- <select1 id="cmb_reqmthd" ref="/root/main/gooddet/gooddetlist/reqmthd" class="combo_s_essential" appearance="minimal" style="left:435px; top:25px; width:210px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orginspplce" ref="/root/main/gooddet/gooddetlist/orginspplce" class="combo_default" appearance="minimal" style="left:576px; top:50px; width:68px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0355list/R0355">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:325px; top:0px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
- <caption id="caption47" class="cell_1" style="left:506px; top:48px; width:68px; height:23px; vertical-align:middle; ">실사장소</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">집 계 구 분</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
- <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_s_essential" style="left:110px; top:0px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromdd");
- else model.setFocus("ipt_reqflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="rdo_reqflag" ref="/root/main/gooddet/gooddetlist/tmpreqflag" appearance="full" cols="2" overflow="visible" style="left:110px; top:50px; width:212px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/tmpreqflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:193px; top:0px; width:129px; height:19px; "/>
- <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_s_essential" appearance="minimal" style="left:110px; top:25px; width:212px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDrugtype(cmb_reqflag.value);
- ]]>
- </script>
- </select1>
- </group>
- <select id="chk_expnyn" ref="/root/main/gooddet/gooddetlist/expnyn" overflow="visible" appearance="full" cols="1" style="left:185px; top:430px; width:80px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>비과세</label>
- <value>F</value>
- </item>
- </choices>
- </select>
- <caption id="caption54" style="left:169px; top:428px; width:10px; height:20px; ">/</caption>
- <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_essential" maxlength="12" _chartype="upper" style="left:556px; top:2px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption30" class="cell_1" style="left:312px; top:0px; width:70px; height:23px; vertical-align:middle; ">도매상코드</caption>
- <caption id="caption15" class="cell_1" style="left:279px; top:24px; width:103px; height:23px; vertical-align:middle; ">중복제외대표코드</caption>
- <output id="ipt_dupexpgoodcd" ref="/root/main/gooddet/gooddetlist/dupexpgoodcd" class="output_fix" _chartype="upper" style="left:385px; top:26px; width:91px; height:19px; "/>
- <caption id="caption57" class="cell_1" style="left:482px; top:0px; width:72px; height:23px; vertical-align:middle; ">구 코 드</caption>
- <output id="opt_dupexpgoodnm" ref="/root/main/gooddet/gooddetlist/dupexpgoodcdnm" class="output_fix" style="left:481px; top:26px; width:166px; height:19px; "/>
- <output id="opt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="output_fix" _chartype="upper" disabled="true" maxlength="12" style="left:385px; top:2px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </output>
- <select id="chk_shadelight" ref="/root/main/gooddet/gooddetlist/shadelight" overflow="visible" appearance="full" rows="1" style="left:270px; top:430px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>차광</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" style="left:361px; top:338px; width:84px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption21" class="cell_1" style="left:0px; top:336px; width:166px; height:23px; vertical-align:middle; ">낱개수량/낱개단위/포장단위</caption>
- <caption id="caption24" class="cell_1" style="left:455px; top:336px; width:68px; height:23px; vertical-align:middle; ">상 한 가</caption>
- <caption id="caption58" style="left:345px; top:338px; width:10px; height:20px; ">/</caption>
- <input id="input1" ref="/root/main/gooddet/gooddetlist/upperlimit" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:527px; top:338px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_s_essential" appearance="minimal" style="left:256px; top:338px; width:84px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_deliveunit");
- else model.setFocus("ipt_minexch");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deliveunit = model.getValue("/root/main/gooddet/gooddetlist/deliveunit");
- model.setValue("/root/main/gooddet/gooddetlist/prcpunit", deliveunit);
- cmb_prcpunit.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_s_essential" maxlength="9" format="#,###" style="left:168px; top:338px; width:79px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("cmb_deliveunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(ipt_purcqty.attribute("ref"),model.getValue(ipt_exchqty.attribute("ref")));
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <group id="group4" visibility="visible" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
-
- //보나에스 저장.
- fSaveRscdpbnsList();
-
- //안전재고량 저장
- if(fSaveGoodbaseQtyList() == false) return;
- //무슨 이유로 돌아가는지 모름!! 그래서 주석처리.
- //fSetDataCopy();
-
-
- //약품 내용 수정시 적용일자를 수정하지 않았을경우 매세지 창 띄워서 y/n확인
- if(fupdatacheck() == 6)
- {
- return;
- }
-
- model.refresh();
-
- misfSave("TXRSC05402");
-
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )
- {
- //기관약품으로 재조회
- btn_sub.selected = true;
- btn_sub.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:785px; top:4px; width:100px; height:19px; "/>
- <output id="opt_instcd" ref="/root/send/goodlist/instcd" visibility="hidden" style="left:180px; top:4px; width:100px; height:19px; "/>
- <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:625px; top:5px; width:45px; height:19px; "/>
- <output id="opt_instcd2" ref="/root/hidden/instcd" visibility="hidden" style="left:290px; top:5px; width:100px; height:19px; "/>
- </group>
- <group id="group2" visibility="hidden" style="left:645px; top:190px; width:545px; height:100px; ">
- <!-- <group id="group2" visibility="hidden" style="left:100px; top:165px; width:545px; height:100px; ">-->
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:545px; height:100px; border-color:#ff9900; border-width:2px; "/>
- <caption id="cap_delyn" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">삭제여부 :</caption>
- <caption id="cap_contractyn" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">계약여부 :</caption>
- <caption id="cap_exfromdd" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">적용일자 :</caption>
- <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; ">
- <choices>
- <item>
- <label>삭제품목제외</label>
- <value>N</value>
- </item>
- <item>
- <label>삭제품목만</label>
- <value>Y</value>
- </item>
- <item>
- <label>전체품목</label>
- <value/>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_delyn.value == 'Y')
- {
- cap_exfromdd.value = '삭제일자 :';
- }else{
- cap_exfromdd.value = '적용일자 :';
- }
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>계약품목</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_exfromdd" ref="/root/send/goodlist/exfromdd" class="input_s_essential" inputtype="date" style="left:175px; top:65px; width:110px; height:19px; "/>
- <input id="ipt_extodd" ref="/root/send/goodlist/extodd" class="input_s_essential" inputtype="date" style="left:307px; top:65px; width:110px; height:19px; "/>
- <caption id="caption" style="left:290px; top:65px; width:15px; height:20px; ">~</caption>
- <button id="btn_excelsave" class="btn5_letter6" navindex="12" style="left:450px; top:15px; width:86px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- var filenm = "약품코드List";
- var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (localfile != "") {
- var param = "&instcd=" + model.getValue("/root/send/goodlist/instcd");
- param += "&delyn=" + model.getValue("/root/send/goodlist/delyn");
- param += "&contractyn=" + model.getValue("/root/send/goodlist/contractyn");
- param += "&exfromdd=" + model.getValue("/root/send/goodlist/exfromdd");
- param += "&extodd=" + model.getValue("/root/send/goodlist/extodd");
- param += "&excurrenttime=" + model.getValue("/root/send/goodlist/excurrenttime");
-
- model.download(getActionURL("TRRSC05404") + param, localfile, true);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_excurrenttime" ref="/root/send/goodlist/excurrenttime" visibility="hidden" style="left:340px; top:40px; width:100px; height:19px; "/>
- <button id="btn_close" class="btn4_letter2" navindex="12" style="left:480px; top:70px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
-
- model.setValue(ipt_exfromdd.attribute("ref"), reqdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_extodd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
-
- cap_exfromdd.value = "적용일자 :";
- rdo_delyn.value = '';
- rdo_contractyn.value = '';
-
- group3.disabled = false;
- //grp_detail.disabled = false;
- group2.visible = false;
- group2.disabled = true;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( chkdd.value == "Y" )
- {
- model.setValue(ipt_exfromdd.attribute("ref"), '19000101' );
- model.setValue(ipt_extodd.attribute("ref"), '99991231');
-
- ipt_exfromdd.disabled = true;
- ipt_extodd.disabled = true;
- }
- else
- {
- ipt_exfromdd.disabled = false;
- ipt_extodd.disabled = false;
- }
- ]]>
- </script>
- </select>
- </group>
- <button id="btn_useinstinfo" class="btn2_letter7" visibility="hidden" style="left:749px; top:166px; width:97px; height:19px; ">
- <caption>타기관내용복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
- if(submit("TRRSC05315")){
-
- var ChkGoodcd = model.getValue("/root/errinfo/errgoodinfo/goodcd");
-
- if(ChkGoodcd!=""){
- messageBox(ChkGoodcd+" 은 현재기관에 등록되어 있습니다. \n\n타기관내용복사는 신규코드만","I006");
- return;
-
- }else{
- fInsertGoodDataListCopy();
- }
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|