1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
- <xhtml:head>
- <xhtml:title>물품코드 일괄등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodexcelmap>
- <goodexcelmaplist/>
- </goodexcelmap>
- <rscdexcel>
- <rscdexcellist/>
- </rscdexcel>
- <orimasterlist>
- <old_fromdd/>
- <old_goodcd/>
- <old_oldcd/>
- <old_bnscd/>
- <old_goodnm/>
- <old_gnrlspcl/>
- <old_welfprt/>
- <old_prodcmpycd/>
- <old_prodcmpynm/>
- <old_edicd/>
- <old_suppcustcd/>
- <old_suppcustnm/>
- <old_reqflag/>
- <old_com/>
- <old_comnm/>
- <old_lrgnm/>
- <old_mdlnm/>
- <old_smlnm/>
- <old_winacnt/>
- <old_winacntnm/>
- <old_amtacnt/>
- <old_amtacntnm/>
- <old_keepmthd/>
- <old_pemtkeepmthd/>
- <old_cntsqty/>
- <old_cntsunit/>
- <old_specvol/>
- <old_specunit/>
- <old_prcpqty/>
- <old_prcpunit/>
- <old_prcpexchqty/>
- <old_exchqty/>
- <old_deliveunit/>
- <old_purcunit/>
- <old_insucost/>
- <old_estmamt/>
- <old_goodunitcost/>
- <old_goodpurccost/>
- </orimasterlist>
- <newmasterlist>
- <fromdd/>
- <goodcd/>
- <oldcd/>
- <bnscd/>
- <goodnm/>
- <gnrlspcl/>
- <welfprt/>
- <prodcmpycd/>
- <prodcmpynm/>
- <edicd/>
- <suppcustcd/>
- <suppcustnm/>
- <reqflag/>
- <com/>
- <comnm/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <winacnt/>
- <winacntnm/>
- <amtacnt/>
- <amtacntnm/>
- <keepmthd/>
- <pemtkeepmthd/>
- <cntsqty/>
- <cntsunit/>
- <specvol/>
- <specunit/>
- <prcpqty/>
- <prcpunit/>
- <prcpexchqty/>
- <exchqty/>
- <deliveunit/>
- <purcunit/>
- <insucost/>
- <estmamt/>
- <goodunitcost/>
- <goodpurccost/>
- <inprodcmpynm/>
- <insuppcustcd/>
- <insuppcustnm/>
- <lrgnm/>
- <mdlnm/>
- <smlnm/>
- </newmasterlist>
- </list>
- </main>
- <target>
- <defaultvalue/>
- </target>
- <init>
- <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>
- <useyn>
- <label>사용</label>
- <value>Y</value>
- <label>불용</label>
- <value>N</value>
- </useyn>
- <popmenu>
- <grd_excelmaplist>
- <item>
- <name>품명일괄변경</name>
- <func>fSetGoodnm</func>
- </item>
- <item>
- <name>규격일괄변경</name>
- <func>fSetGoodSpec</func>
- </item>
- <item>
- <name>모델일괄변경</name>
- <func>fSetGoodModel</func>
- </item>
- <item>
- <name>제조회사일괄변경</name>
- <func>fSetGoodProdCmpy</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>포장단위일괄변경</name>
- <func>fSetPurcUnit</func>
- </item>
- <item>
- <name>환산수량일괄변경</name>
- <func>fSetExchQty</func>
- </item>
- <item>
- <name>수불단위일괄변경</name>
- <func>fSetDeliveUnit</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>단가일괄변경</name>
- <func>fSetGoodUnitCost</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>주거래처일괄변경</name>
- <func>fSetMainCustLastSuplplce</func>
- </item>
- <item>
- <name>판매회사일괄변경</name>
- <func>fSetSuppCustCd</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>분류코드일괄변경</name>
- <func>fSetLargeCd</func>
- </item>
- </grd_excelmaplist>
- </popmenu>
- <popinputcd/>
- <popinputnm/>
- <poptitle/>
- <popcond/>
- <popformat/>
- <purcunit/>
- <prcpunit/>
- <iopsnflag>
- <label>내자</label>
- <value>1</value>
- <label>외자</label>
- <value>2</value>
- </iopsnflag>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <workflag>
- <label>전체</label>
- <value/>
- <label>신규</label>
- <value>I</value>
- <label>변경</label>
- <value>U</value>
- </workflag>
- <saveyn>
- <label>전체</label>
- <value/>
- <label>저장</label>
- <value>Y</value>
- <label>미저장</label>
- <value>N</value>
- </saveyn>
- <delyn>
- <label>전체</label>
- <value/>
- <label>삭제</label>
- <value>Y</value>
- <label>미삭제</label>
- <value>N</value>
- </delyn>
- <ifflag>
- <label>Excel</label>
- <value>E</value>
- <label>보나에스</label>
- <value>I</value>
- </ifflag>
- <multiwork>
- <label> 세부내역 확인</label>
- <value>Y</value>
- </multiwork>
- </init>
- <send>
- <save>
- <rscdexcellist/>
- <goodexcelmaplist>
- <setautoins>
- <setyn>N</setyn>
- <insfromdd/>
- </setautoins>
- </goodexcelmaplist>
- </save>
- <searchlist>
- <instcd/>
- <goodflag/>
- <workflag/>
- <saveyn/>
- <delyn/>
- <ifflag/>
- <multiwork/>
- </searchlist>
- <orimasterlist>
- <instcd/>
- <goodflag/>
- <fromdd/>
- <goodcd/>
- </orimasterlist>
- </send>
- <temp>
- <uploadcnt/>
- </temp>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/list/goodexcelmap/goodexcelmaplist/workflag" readonly="../saveyn = 'Y'"/>
- <bind id="bind2" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind3" ref="/root/main/list/goodexcelmap/goodexcelmaplist/fromdd" readonly="../saveyn = 'Y'"/>
- <bind id="bind4" ref="/root/main/list/goodexcelmap/goodexcelmaplist/instcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind5" ref="/root/main/list/goodexcelmap/goodexcelmaplist/todd" readonly="../saveyn = 'Y'"/>
- <bind id="bind6" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind7" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodengnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind8" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodspec" readonly="../saveyn = 'Y'"/>
- <bind id="bind9" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodmodel" readonly="../saveyn = 'Y'"/>
- <bind id="bind10" ref="/root/main/list/goodexcelmap/goodexcelmaplist/lrgcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind11" ref="/root/main/list/goodexcelmap/goodexcelmaplist/lrgnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind12" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mdlcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind13" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mdlnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind14" ref="/root/main/list/goodexcelmap/goodexcelmaplist/smlcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind15" ref="/root/main/list/goodexcelmap/goodexcelmaplist/smlnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind16" ref="/root/main/list/goodexcelmap/goodexcelmaplist/oldcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind17" ref="/root/main/list/goodexcelmap/goodexcelmaplist/winacnt" readonly="../saveyn = 'Y'"/>
- <bind id="bind18" ref="/root/main/list/goodexcelmap/goodexcelmaplist/winacntnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind19" ref="/root/main/list/goodexcelmap/goodexcelmaplist/amtacnt" readonly="../saveyn = 'Y'"/>
- <bind id="bind20" ref="/root/main/list/goodexcelmap/goodexcelmaplist/amtacntnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind21" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainmngtdeptcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind22" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainmngtdeptnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind23" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainusedeptcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind24" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainusedeptnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind25" ref="/root/main/list/goodexcelmap/goodexcelmaplist/stocmngtflag" readonly="../saveyn = 'Y'"/>
- <bind id="bind26" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcunit" readonly="../saveyn = 'Y'"/>
- <bind id="bind27" ref="/root/main/list/goodexcelmap/goodexcelmaplist/deliveunit" readonly="../saveyn = 'Y'"/>
- <bind id="bind28" ref="/root/main/list/goodexcelmap/goodexcelmaplist/exchqty" readonly="../saveyn = 'Y'"/>
- <bind id="bind29" ref="/root/main/list/goodexcelmap/goodexcelmaplist/edicd" readonly="../saveyn = 'Y'"/>
- <bind id="bind30" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqflag" readonly="../saveyn = 'Y'"/>
- <bind id="bind31" ref="/root/main/list/goodexcelmap/goodexcelmaplist/tmpreqflag" readonly="../saveyn = 'Y'"/>
- <bind id="bind32" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqmthd" readonly="../saveyn = 'Y'"/>
- <bind id="bind33" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqprid" readonly="../saveyn = 'Y'"/>
- <bind id="bind34" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodplce" readonly="../saveyn = 'Y'"/>
- <bind id="bind35" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodcmpycd" readonly="../saveyn = 'Y'"/>
- <bind id="bind36" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodcmpynm" readonly="../saveyn = 'Y'"/>
- <bind id="bind37" ref="/root/main/list/goodexcelmap/goodexcelmaplist/maincustlastsuplplce" readonly="../saveyn = 'Y'"/>
- <bind id="bind38" ref="/root/main/list/goodexcelmap/goodexcelmaplist/maincustlastsuplplcenm" readonly="../saveyn = 'Y'"/>
- <bind id="bind39" ref="/root/main/list/goodexcelmap/goodexcelmaplist/suppcustcd" readonly="../saveyn = 'Y'"/>
- <bind id="bind40" ref="/root/main/list/goodexcelmap/goodexcelmaplist/suppcustnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind41" ref="/root/main/list/goodexcelmap/goodexcelmaplist/estmamt" readonly="../saveyn = 'Y'"/>
- <bind id="bind42" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodunitcost" readonly="../saveyn = 'Y'"/>
- <bind id="bind43" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcflag" readonly="../saveyn = 'Y'"/>
- <bind id="bind44" ref="/root/main/list/goodexcelmap/goodexcelmaplist/allsizeyn" readonly="../saveyn = 'Y'"/>
- <bind id="bind45" ref="/root/main/list/goodexcelmap/goodexcelmaplist/addtaxrate" readonly="../saveyn = 'Y'"/>
- <bind id="bind46" ref="/root/main/list/goodexcelmap/goodexcelmaplist/bnscd" readonly="../saveyn = 'Y'"/>
- <bind id="bind47" ref="/root/main/list/goodexcelmap/goodexcelmaplist/cntsunit" readonly="../saveyn = 'Y'"/>
- <bind id="bind48" ref="/root/main/list/goodexcelmap/goodexcelmaplist/cntsqty" readonly="../saveyn = 'Y'"/>
- <bind id="bind49" ref="/root/main/list/goodexcelmap/goodexcelmaplist/specvol" readonly="../saveyn = 'Y'"/>
- <bind id="bind50" ref="/root/main/list/goodexcelmap/goodexcelmaplist/keepmthd" readonly="../saveyn = 'Y'"/>
- <bind id="bind51" ref="/root/main/list/goodexcelmap/goodexcelmaplist/gnrlspcl" readonly="../saveyn = 'Y'"/>
- <bind id="bind52" ref="/root/main/list/goodexcelmap/goodexcelmaplist/welfprt" readonly="../saveyn = 'Y'"/>
- <bind id="bind53" ref="/root/main/list/goodexcelmap/goodexcelmaplist/com" readonly="../saveyn = 'Y'"/>
- <bind id="bind54" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpunit" readonly="../saveyn = 'Y'"/>
- <bind id="bind55" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpexchqty" readonly="../saveyn = 'Y'"/>
- <bind id="bind56" ref="/root/main/list/goodexcelmap/goodexcelmaplist/insucost" readonly="../saveyn = 'Y'"/>
- <bind id="bind57" ref="/root/main/list/goodexcelmap/goodexcelmaplist/specunit" readonly="../saveyn = 'Y'"/>
- <bind id="bind58" ref="/root/main/list/goodexcelmap/goodexcelmaplist/pemtkeepmthd" readonly="../saveyn = 'Y'"/>
- <bind id="bind59" ref="/root/main/list/goodexcelmap/goodexcelmaplist/comnm" readonly="../saveyn = 'Y'"/>
- <bind id="bind60" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcqty" readonly="../saveyn = 'Y'"/>
- <bind id="bind61" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpqty" readonly="../saveyn = 'Y'"/>
- <bind id="bind62" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodpurccost" readonly="../saveyn = 'Y'"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <!-- 입력된 Excel 데이터를 읽어오는 submmit-->
- <submission id="TRRSC03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/list/goodexcelmap"/>
- <!-- Excel 데이터를 저장하는 submmit-->
- <submission id="TXRSC03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rscdexcellist" add="bottom" resultref="/root/temp"/>
- <!-- 입력된 Excel 데이터를 수정하는 submmit-->
- <submission id="TXRSC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodexcelmaplist" add="bottom" resultref="/root/temp"/>
- <!-- Master에 적용 하는 submmit ( TXRSC05302 ) 과 동일 하나 적용 후 RSCDGDEXCEL TABLE을 업데이트 하기 위해 추가 작업 함-->
- <submission id="TXRSC03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodexcelmaplist" resultref="/root/hidden/temp"/>
- <!-- 보나에스 Interface 데이터를 읽어오는 submmit-->
- <submission id="TRRSC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/list/rscdexcel/rscdexcellist"/>
- <!-- 기존 기관 Master 데이터를 읽어오는 submmit-->
- <submission id="TRRSC03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orimasterlist" resultref="/root/main/list/orimasterlist"/>
- </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[
- var ViewRow = 1; // Grid dbclick 시 이전 선택한 위치를 기억하는 row number
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/list/orimasterlist");
- model.resetInstanceNode("/root/main/list/newmasterlist");
- misfGridInit(grd_excelmaplist);
- misfGridInit(grd_rscdexcellist);
-
- // Spec 일괄 변경에서 사용하는 기존 명칭과 현 명칭을 비교하기 위한 구분으로
- // premodel 등.. 기존 데이터를 갖고 있는 변수 설정이 반드시 필요하다.
- model.makeNode("/root/send/save/setautoins/setyn");
- model.setValue("/root/send/save/setautoins/setyn","N");
-
- //2008.06.06 misfGridComboComCdList("R0032",grd_excelmaplist,"purcunit");
- //2008.06.06 misfGridComboComCdList("R0039",grd_excelmaplist,"deliveunit");
-
- // rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
- // 초기 저장구분 : 2 (미저장)
- rdo_saveyn.selectedindex = 2;
- // 초기 Interface 구분 : 0 (Excel)
- rdo_ifflag.selectedindex = 0;
- // 초기 삭제 유무 : 3(미삭제)
- rdo_delyn.selectedindex = 2;
- // misfMsterDetailSet(grd_excelmaplist,null, "TRRSC00601" ,"Y");
- /**********************************
- * GOODFLAG 물품구분 R0025
- * ASETFLAG 자산구분 R0043
- * PRODDRUGSETFLAG 제제약 SET 구분 R0068
- * STOCMNGTFLAG 재고관리기준 R0069
- * REQMTHD 청구방법 R0092
- * REQPRID 청구주기 R0093
- * PRODPLCE 제조국 R0035
- * CONFLAG 계약구분 R0095
- * CURNCYUNIT 화폐단위 R0047
- * PURCFLAG 구매구분 R0111
- * SETPLCEORDFLAG SET 발주구분 R0110
- * PLCEORDBASE 발주기준 R0107
- * PLCEORDQTYCRETFLAG 발주량생성구분 R0106
- * MNGTFLAG 관리구분 R0094
- * IOPSNFLAG 내외자구분
- * KEEPMTHD 보관방법 1:실온 2:냉소 3:냉장 4:냉동
- * GNRLSPCL 일반-전문 1:전문 2:일반 3:공산품 4:의약외품 5:기타
- ***********************************/
- misfComboComCdListMulti("Z0007,R0025,R0043,R0068,R0069,R0092,R0093,R0035,R0095,R0047,R0111,R0110,R0107,R0106,R0094",
- "grd_excelmaplist.instcd,grd_excelmaplist.goodflag,grd_excelmaplist.asetflag,grd_excelmaplist.proddrugsetflag,grd_excelmaplist.stocmngtflag,grd_excelmaplist.reqmthd,grd_excelmaplist.reqprid,grd_excelmaplist.prodplce,grd_excelmaplist.conflag,grd_excelmaplist.curncyunit,grd_excelmaplist.purcflag,grd_excelmaplist.setplceordflag,grd_excelmaplist.plceordbase,grd_excelmaplist.plceordqtycretflag,grd_excelmaplist.mngtflag");
-
- //계산방법, 그룹여부, 실사장소, 변경사유
- zbcfGetCodeList( new Array("P0133","P0142", "R0356"), new Array("/root/init/P0133list","/root/init/P0142list", "/root/init/R0356list"), true);
-
- // rszfComboUnitList (cmb_purcunit_search, model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_goodflag.attribute("ref"))); // 포장단위
- // rszfComboUnitList (cmb_prcpunit_search, model.getValue(cmb_instcd.attribute("ref")),"D"); // 처방단위
- rszfComboUnitList (cmb_purcunit, model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_goodflag.attribute("ref"))); // 포장단위
- rszfComboUnitList (cmb_prcpunit, model.getValue(cmb_instcd.attribute("ref")),"D"); // 처방단위
- rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),"","2","P" ); // 집계구분(청구구분)
- addComboItem( "cmb_reqflag", "집계안함", "", "above" );
- /* Excel 입력 Grid Setting */
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "purcunit" ); //포장단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "specunit" ); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "cntsunit" ); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "deliveunit" ); //수불단위
- misfComboCopyItemSet(cmb_prcpunit, "", grd_rscdexcellist, "prcpunit" ); //처방단위
- misfComboCopyItemSet(cmb_prcpunit, "", grd_rscdexcellist, "hospdrguunit" ); //병원단위
- // [2009.09.22] hkjoo 주석처리, 엑셀 데이터 로드 시 코드명으로 덮어쓰기 때문에 의미 없음.
- //misfComboCopyItemSet(cmb_reqflag, "", grd_rscdexcellist, "reqflag" ); //집계구분(청구구분)
-
- /* Excel Map List Grid Setting */
- misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "purcunit" ); //포장단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "specunit" ); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "cntsunit" ); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "deliveunit" ); //수불단위
- misfComboCopyItemSet(cmb_prcpunit, "", grd_excelmaplist, "prcpunit" ); //처방단위
- misfComboCopyItemSet(cmb_reqflag, "", grd_excelmaplist, "reqflag" ); //집계구분(청구구분)
-
- // [2008.07.30] YYJ 추가
- // [2009.09.22] hkjoo 주석처리, 엑셀 데이터 로드 시 코드명으로 덮어쓰기 때문에 의미 없음.
- //misfComboCopyItemSet(grd_excelmaplist, "reqmthd", grd_rscdexcellist, "reqmthd" ); //청구방법
- //misfComboCopyItemSet(grd_excelmaplist, "reqprid" , grd_rscdexcellist, "reqprid" ); //청구주기
-
- /* new Data detail Setting */
- // misfComboCopyItemSet(cmb_purcunit_search, "", cmb_purcunit, "" ); //포장단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, "" ); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, "" ); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "" ); //수불단위
- // misfComboCopyItemSet(cmb_prcpunit_search, "", cmb_prcpunit, "" ); //처방단위
-
- /* old Data detail Setting */
- misfComboCopyItemSet(cmb_purcunit, "", cmb_purcunit_2, "" ); //포장단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit_2, "" ); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit_2, "" ); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit_2, "" ); //수불단위
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_prcpunit_2, "" ); //처방단위
- misfComboCopyItemSet(cmb_reqflag, "", cmb_reqflag_2, "" ); //집계구분(청구구분)
-
- misfMsterDetailSet(grd_excelmaplist,null, "TRRSC03801" ,"Y");
- // fSetGoodFlagAuth();
-
- grd_excelmaplist.explorerbar = "sortshow";
-
- grd_excelmaplist.selectionmode = "list";
- model.refresh();
- }
-
- function fDataLoad()
- {
- if( fCheckRetrieveData() == false ) return;
-
- /* 작업 구분이 Excel 일 경우 */
- if( model.getValue(rdo_ifflag.attribute("ref")) == "E" )
- {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_rscdexcellist.loadExcel(fileName, 1);
- // grd_rscdexcellist.row = grd_rscdexcellist.fixedRows;
- // grd_rscdexcellist.deleteItem(grd_rscdexcellist.row);
- fGridInsertChanged();
- misfGridIUD(grd_rscdexcellist, "D"); // Excel의 1번째 제목행을 삭제한다.
- }
- /* 작업 구분이 보나에스일 경우 */
- else
- {
- /* 보나에스 물품 정보 가져오기 */
- submit("TRRSC03802");
- fGridInsertChanged();
- }
- model.setValue(opt_uploadcnt.attribute("ref"), grd_rscdexcellist.rows-grd_rscdexcellist.fixedRows);
- cpt_uploadcnt.visible = true;
- opt_uploadcnt.visible = true;
- model.refresh();
- }
-
- function fGridInsertChanged()
- {
- for(var fRow = grd_rscdexcellist.fixedRows; fRow < grd_rscdexcellist.rows; fRow++)
- {
- grd_rscdexcellist.addStatus(fRow, "insert");
-
- if( model.getValue(rdo_ifflag.attribute("ref")) != "E" ) { //작업구분이 보나에스 일 경우
- grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("instcd")) = model.getValue(cmb_instcd.attribute("ref"));
- }
- grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("goodflag")) = model.getValue(cmb_goodflag.attribute("ref"));
- grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("ifflag")) = model.getValue(rdo_ifflag.attribute("ref")) ; // Interface 구분 : E (excel 입력)
- }
- }
- function fSetGoodSpec()
- {
- model.setValue(opt_poptitle.attribute("ref"), "물품 규격을 입력해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"goodspec", model.getValue(opt_popinputcd.attribute("ref")));
- }
-
- function fSetGoodModel()
- {
- model.setValue(opt_poptitle.attribute("ref"), "물품 모델을 입력해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"goodmodel", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetGoodnm()
- {
- model.setValue(opt_poptitle.attribute("ref"), "물품명 입력해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"goodnm", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetGoodUnitCost()
- {
- model.setValue(opt_poptitle.attribute("ref"), "제품 단가를 입력해 주세요");
- model.setValue(opt_popformat.attribute("ref"), "#,###");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,format","opt_poptitle,opt_popformat");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"goodunitcost", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetExchQty()
- {
- model.setValue(opt_poptitle.attribute("ref"), "환산수량을 입력해 주세요");
- model.setValue(opt_popformat.attribute("ref"), "#,###");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,format","opt_poptitle,opt_popformat");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"exchqty", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetMainCustLastSuplplce()
- {
- model.setValue(opt_popcond.attribute("ref"),"custom");
- model.setValue(opt_poptitle.attribute("ref"), "주거래처를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"maincustlastsuplplce,maincustlastsuplplcenm", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetSuppCustCd()
- {
- model.setValue(opt_popcond.attribute("ref"),"custom");
- model.setValue(opt_poptitle.attribute("ref"), "보조 거래처를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"suppcustcd,suppcustnm", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetGoodProdCmpy()
- {
- model.setValue(opt_popcond.attribute("ref"),"prodcmpy");
- model.setValue(opt_poptitle.attribute("ref"), "제조회사를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"prodcmpycd,prodcmpynm", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetPurcUnit()
- {
- model.setValue(opt_popcond.attribute("ref"),"purcunit");
- model.setValue(opt_poptitle.attribute("ref"), "포장단위를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,cond","opt_poptitle,opt_popcond");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"purcunit", model.getValue(opt_popinputcd.attribute("ref")));
- }
-
- function fSetDeliveUnit()
- {
- model.setValue(opt_popcond.attribute("ref"),"deliveunit");
- model.setValue(opt_poptitle.attribute("ref"), "수불단위를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,cond","opt_poptitle,opt_popcond");
- model.refresh();
-
- fSetAllApply(grd_excelmaplist,"deliveunit", model.getValue(opt_popinputcd.attribute("ref")));
- }
-
- function fSetLargeCd()
- {
- model.setValue(opt_popcond.attribute("ref"),"lrgnm");
- model.setValue(opt_poptitle.attribute("ref"), "분류코드를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd,goodflag","opt_poptitle,opt_popcond,cmb_instcd,cmb_goodflag");
- fSetAllApply(grd_excelmaplist,"lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm", model.getValue(opt_popinputcd.attribute("ref")));
- }
- function fSetAllApply(f_grid, f_id , f_value)
- {
- if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return;
-
- var f_selid = f_id.split(",");
- var f_selvalue = f_value.split(",");
-
- for(currow = 0 ; currow < f_grid.selectedRows; currow++)
- {
- var lrgGubun = 0; // 대 / 중 / 소 분류의 값의 변경 체크
- for (var k = 0; k < f_selid.length; k++)
- {
- if(f_grid.colRef(f_selid[k]) != -1)
- {
- if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k])
- {
- if(f_grid.valueMatrix( (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) , f_grid.colRef("saveyn")) == "N")
- {
- // alert ( currow + " 번째 행의 " + f_grid.colRef("saveyn") + "번째 항목의 값 " + f_grid.valueMatrix( , f_grid.colRef("saveyn")) );
- model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]);
- if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")
- {
- f_grid.rowStatus(f_grid.selectedRow(currow)) = "2"; // Update
- }
- if ( f_selid[k] == "lrgcd" || f_selid[k] == "lrgnm" || f_selid[k] == "mdlcd" || f_selid[k] == "mdlnm" || f_selid[k] == "smlcd" || f_selid[k] == "smlnm") { // 분류코드 변경시만 변경
- lrgGubun = lrgGubun + 1; // 대 / 중 / 소 분류의 값의 변경 체크
- }
- }
- }
- }
- }
- if (lrgGubun != 0) { // 대/중/소에서 한개라도 값이 변하면 유효성이 검증되어 오류체크 / 색상 수정
- model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + "getgubunchk", "0*0*0"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
- fMapListValid(f_grid, (f_grid.selectedRow(currow)- f_grid.fixedRows +1), (f_grid.selectedRow(currow)- f_grid.fixedRows +1), "EDIT" ); // 오류 수정에 따른 색상 수정
- }
- }
-
- grp_disp.attribute("visibility") ="hidden" ;
- }
-
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- /*
- if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd_search");
- return false;
- }
- if(model.getValue(ipt_goodcd.attribute("ref")).length < 3 && model.getValue(ipt_goodnm.attribute("ref")).length < 3)
- {
- messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
- model.setFocus("ipt_goodcd_search");
- return false;
- }
- */
- return true;
- }
-
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
- btn_save.disabled=true;
-
- rszfGetPurcGoodFlagAuthInfo(cmb_instcd.value , cmb_goodflag.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
- {
- btn_save.disabled=false;
- }
- }
- /******************************************
- * 대, 중, 소분류에 대한 valid check에 대한 err 시 색상 변화
- * pGrd = 대상이 되는 테이블
- * pFromRow = Grid 시작 위치
- * pToRow = Grid 종료 위치
- * pStatus = 수정후 그리드 색상 변경( 초기 조회시 변경하지 않아도 되는 Grid 색상 변경을 피하기 위해.. popup 으로 대/중/소 변경시만 사용
- * getgubunchk 항목에서 유효성 값 반환 = 0 : 이상 없음, 9 : 에러
- * ex) 0*0*0 : 대, 중, 소분류 유효한 값
- * 0*9*9 : 중, 소분류 오류
- * 상위 분류 에러 발생시 하위 분류에 대한 유효성은 보장 할 수 없기 때문에 err 처리
- ******************************************/
- function fMapListValid(pGrd, pFromRow, pToRow, pStatus)
- {
- var temValidItem = new Array("lrgcd","mdlcd","smlcd");
-
- var rowcnt = 0;
- if(pFromRow == "" || pFromRow == null) {
- rowcnt = pGrd.fixedRows;
- } else {
- rowcnt = pFromRow;
- }
-
- if(pToRow == "" || pToRow == null) {
- grdRow = pGrd.rows;
- } else {
- grdRow = pToRow;
- }
- for ( rowcnt ; rowcnt<=grdRow; rowcnt++ )
- {
- if ( pStatus == "EDIT" ) { // Popup에서 대/중/소 분류값 변경시 색상 변환
- // if ( pGrd.cellstyle("background-color", rowcnt, pGrd.colRef("lrgcd"), rowcnt, pGrd.colRef("smlcd")+1 ) != "white" )
- pGrd.cellstyle("background-color", rowcnt, pGrd.colRef("lrgcd"), rowcnt, pGrd.colRef("smlcd")+1 ) = "white";
- } else {
- var tmp_getgubunchk = pGrd.valueMatrix(rowcnt , pGrd.colRef("getgubunchk")).split("*");
- // if(pGrd.valueMatrix(rowcnt, pGrd.colRef("saveyn")) != "Y")
- // {
- for( colcnt = 0; colcnt < tmp_getgubunchk.length; colcnt++ )
- {
- if( tmp_getgubunchk[colcnt] == "9" )
- {
- pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt])+1 ) = "yellow";
- }
- // else
- // {
- // if ( tmp_getgubunchk[colcnt] != "9" && pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt]) ) != "white" )
- // pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt])+1 ) = "white";
- // }
- }
- // }
- }
- }
- // pGrd.editCell();
- }
-
- function fCheckSaveData( grd_id )
- {
- if( grd_id.rows - grd_id.fixedRows > 0 )
- {
- var currow = 0;
- for(currow = grd_id.fixedRows ; currow < grd_id.rows ; currow++)
- {
- if ( grd_id.colRef("getgubunchk") != -1 && grd_id.valueMatrix(currow , grd_id.colRef("getgubunchk")) != "0*0*0" )
- {
- messageBox( grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + " 번째 분류코드 가 유효하지", "I004");
- return false;
- /* 데이터가 너무 많아 임시 막는다.. 2008 07 30
- var temValidItem = new Array("대분류","중분류","소분류");
- var tmp_getgubunchk = grd_id.valueMatrix(currow , grd_id.colRef("getgubunchk")).split("*");
- for( cnt = 0; cnt < tmp_getgubunchk.length; cnt++ )
- {
- if ( tmp_getgubunchk[cnt] != "0" )
- {
- messageBox( grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + " 번째 " + temValidItem[cnt] + "가 유효하지", "I004");
- grd_id.row = currow;
- return false;
- // grd_id.col = grd_id.colRef( temValidItem[cnt+3] );
- }
- }
- */
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("lrgcd")).length == 0)
- {
- messageBox(currow + " 번째 대분류코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("lrgcd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("mdlcd")).length == 0)
- {
- messageBox(currow + " 번째 중분류코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("mdlcd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("smlcd")).length == 0)
- {
- messageBox(currow + " 번째 소분류코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("smlcd");
- grd_id.editCell();
- return false;
- }
-
- /* if(grd_id.valueMatrix(currow, grd_id.colRef("welfprt")).length == 0)
- {
- messageBox(currow + " 번째 복지부분류코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("welfprt");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("goodcd")).length == 0)
- {
- messageBox(currow + " 번째 신약품코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("goodcd");
- grd_id.editCell();
- return false;
- }
- else
- {
- for(srcrow = currow + 1 ; srcrow < grd_id.rows ; srcrow++)
- {
- if(grd_id.valueMatrix(currow , grd_id.colRef("goodcd")) == grd_id.valueMatrix(srcrow , grd_id.colRef("goodcd")) )
- {
- messageBox("동일 물품코드가 [" + grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + ", " + grd_id.valueMatrix(srcrow , grd_id.colRef("rownumber")) + "->" + grd_id.valueMatrix(currow , grd_id.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
- return false;
- }
- }
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("oldcd")).length == 0)
- {
- messageBox(currow + " 번째 구코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("oldcd");
- grd_id.editCell();
- return false;
- }
- if(grd_id.valueMatrix(currow, grd_id.colRef("bnscd")).length == 0)
- {
- messageBox(currow + " 번째 보나에스코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("bnscd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("edicd")).length == 0)
- {
- messageBox(currow + " 번째 EDI코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("edicd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("prodcmpycd")).length == 0)
- {
- messageBox(currow + " 번째 제조회사코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("prodcmpycd");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("suppcustcd")).length == 0)
- {
- messageBox(currow + " 번째 판매회사코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("suppcustcd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("goodnm")).length == 0)
- {
- messageBox(currow + " 번째 품명을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("goodnm ");
- grd_id.editCell();
- return false;
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("com")).length == 0)
- {
- messageBox(currow + " 번째 성분(코드)를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("com");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("comnm")).length == 0)
- {
- messageBox(currow + " 번째 성분(명)을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("comnm");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("cntsqty")).length == 0)
- {
- messageBox(currow + " 번째 함량을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("cntsqty");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("cntsunit")).length == 0)
- {
- messageBox(currow + " 번째 함량단위를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("cntsunit");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("specvol")).length == 0)
- {
- messageBox(currow + " 번째 규격을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("specvol");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("specunit")).length == 0)
- {
- messageBox(currow + " 번째 규격단위를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("specunit");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("prcpqty")).length == 0)
- {
- messageBox(currow + " 번째 처방수량을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("prcpqty");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("prcpunit")).length == 0)
- {
- messageBox(currow + " 번째 처방단위를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("prcpunit");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("prcpexchqty")).length == 0)
- {
- messageBox(currow + " 번째 처방환산을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("prcpexchqty ");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("exchqty")).length == 0)
- {
- messageBox(currow + " 번째 포장환산을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("exchqty");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("deliveunit")).length == 0)
- {
- messageBox(currow + " 번째 낱개단위를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("deliveunit");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("purcunit")).length == 0)
- {
- messageBox(currow + " 번째 포장단위를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("purcunit");
- grd_id.editCell();
- return false;
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("gnrlspcl")).length == 0)
- {
- messageBox(currow + " 번째 일반/전문코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("gnrlspcl");
- grd_id.editCell();
- return false;
- }
- if(grd_id.valueMatrix(currow, grd_id.colRef("winacnt")).length == 0)
- {
- messageBox(currow + " 번째 입고계정코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("winacnt");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("amtacnt")).length == 0)
- {
- messageBox(currow + " 번째 비용계정코드를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("amtacnt ");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("keepmthd")).length == 0)
- {
- messageBox(currow + " 번째 보관법을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("keepmthd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("pemtkeepmthd")).length == 0)
- {
- messageBox(currow + " 번째 보관법 설명을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("pemtkeepmthd");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("fromdd")).length == 0)
- {
- messageBox(currow + " 번째 적용일자를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("fromdd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("todd")).length == 0)
- {
- messageBox(currow + " 번째 종료일자를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("todd");
- grd_id.editCell();
- return false;
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("insucost")).length == 0)
- {
- messageBox(currow + " 번째 보험단가를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("insucost");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("estmamt")).length == 0)
- {
- messageBox(currow + " 번째 처방단가를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("estmamt");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("goodunitcost")).length == 0)
- {
- messageBox(currow + " 번째 구입단가를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("goodunitcost");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("goodpurccost")).length == 0)
- {
- messageBox(currow + " 번째 구입가를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("goodpurccost");
- grd_id.editCell();
- return false;
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("tmpreqflag")).length == 0)
- {
- messageBox(currow + " 번째 임의 청구구분을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("tmpreqflag");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("reqmthd")).length == 0)
- {
- messageBox(currow + " 번째 청구방법을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("reqmthd");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("reqprid")).length == 0)
- {
- messageBox(currow + " 번째 청구주기를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("reqprid");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("maincustlastsuplplce")).length == 0)
- {
- messageBox(currow + " 번째 주거래처를 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("maincustlastsuplplce");
- grd_id.editCell();
- return false;
- }
- /*
- if(grd_id.valueMatrix(currow, grd_id.colRef("reqflag")).length == 0)
- {
- messageBox(currow + " 번째 청구구분을 " ,"C001");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("reqflag");
- grd_id.editCell();
- return false;
- }
- */
- if(grd_id.valueMatrix(currow, grd_id.colRef("workvalid")) == "N")
- {
- messageBox(currow + " 번째 신규/변경 구분이","E016");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("workflag");
- grd_id.editCell();
- return false;
- }
-
- if(grd_id.valueMatrix(currow, grd_id.colRef("fromdd")) < grd_id.valueMatrix(currow, grd_id.colRef("prefromdd")))
- {
- messageBox(currow + " 번째 적용일자가","E016");
- grd_id.row = currow;
- grd_id.col = grd_id.colRef("fromdd");
- grd_id.editCell();
- return false;
- }
- }
- }
- else
- {
- messageBox("저장 데이터가","I004");
- return false;
- }
- }
-
- function fSetSaveData( grd_id )
- {
- if ( getGridUpdateData(grd_id) != "" )
- {
- messageBox("변경 데이터 저장 후 Master 적용이","I006");
- return false;
- }
-
- var currow = 0;
- for(currow = grd_id.fixedRows ; currow < grd_id.rows ; currow++)
- {
- if(grd_id.valueMatrix(currow, grd_id.colRef("saveyn")) == "N")
- {
- if(grd_id.valueMatrix(currow, grd_id.colRef("workflag")) == "I")
- grd_id.rowStatus(currow) = "1";
- else if (grd_id.valueMatrix(currow, grd_id.colRef("workflag")) == "U")
- grd_id.rowStatus(currow) = "2";
- }
- }
- }
-
- /*
- * Grid 데이터를 Input box에 셋팅 or 비교하여 Grid 값을 변경한다.
- * ptarget_node : 복사할 원본 데이터를 가지고 있는 Grid
- * psource_node : 복사가 되어지는 node
- * pcopy_node : "Y" 값 일경우 Grid와 node를 비교하여 Grid Update 시킨다.
- */
- function fGridDataSet(ptarget_node, psource_node, pcopy_node)
- {
- var node1 = instance1.selectNodes(ptarget_node.nodeset+"["+ ptarget_node.row + "]" + "/*");
- 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) {
- if( pcopy_node != "Y")
- model.setValue( psource_node+"/"+node2.item(j).nodeName, model.getValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName ) );
- else {
- if( model.getValue ( psource_node+"/"+node2.item(j).nodeName ) != model.getValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName ) ){
- model.setValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName, model.getValue(psource_node+"/"+node2.item(j).nodeName) );
- ptarget_node.rowstatus(ptarget_node.row) = 2;
- }
- }
- }
- }
- }
- model.refresh();
- }
-
- /*
- * old & new 결과값을 비교 한다.
- * pDefault : "Y" 일 경우 componets 초기화 ( 폰트 색상을 초기화 한다. )
- */
- function fOldNewCompare(pOriData_node, pNewData_node, pDefault) {
- var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children; // switch 안에 포함된 Case 묶음을 가지고 있는 객체
- var node1 = instance1.selectNodes(pOriData_node + "/*"); // Ori Master Data
- var node2 = instance1.selectNodes(pNewData_node + "/*"); // New Master Data
- var nodeName;
- var tempControl;
-
- if ( pDefault == "Y" ) {
- //. Grid Componets 초기화
- fComponetInit();
- return;
- }
-
- for (var i = 0; i < node1.length ; i++) {
- nodeName = node1.item(i).nodeName.split("_"); // -> old_good 이런 형태의 노드이기때문에 new 코드와 mapping 하기 위해서 "_" split 처리함
- // nodeName[1] 으로 비교 처리
- for (var j = 0; j < node2.length; j++) {
- if (nodeName[1] == node2.item(j).nodeName) {
- // if( (model.getValue( pOriData_node + "/" + node1.item(i).nodeName) != model.getValue( pNewData_node + "/" + node2.item(j).nodeName))){
- if (node1.item(i).value != node2.item(j).value ){
- fComponetSearch( pNewData_node + node2.item(j).nodeName,"Y");
- /*
- try {
- tempControl = window.document.controls("ipt_" + node2.item(j).nodeName); //node2.item(j).nodeName);
- tempControl.attribute("color") = "red";
- } catch( e ) {
- tempControl = window.document.controls("cmb_" + node2.item(j).nodeName); //node2.item(j).nodeName);
- tempControl.attribute("background-color") = "#ccffcc";
- }
- */
- } else {
- fComponetSearch( pNewData_node + node2.item(j).nodeName);
- /*
- try {
- tempControl = window.document.controls("ipt_" + node2.item(j).nodeName); //node2.item(j).nodeName);
- tempControl.initStyle("color");
- } catch( e ) {
- tempControl = window.document.controls("cmb_" + node2.item(j).nodeName); //node2.item(j).nodeName);
- tempControl.initStyle("background-color");
- }
- */
- }
- }
- }
- }
- }
- /* ========================================
- * 신구 데이터 비교를 후 색상 변화를 처리하는 함수
- */
- function fComponetSearch(pNode, pCls) {
- var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children;
- for (ii = 0; ii < child.length; ii++) {
- child2 = child.item(ii).children ;
- for (jj = 0; jj < child2.length; jj++) {
- if (child2.item(jj).attribute("ref") == pNode) {
- if (pCls == "Y") {
- if (child2.item(jj).elementName == "xforms:input" ) {
- child2.item(jj).attribute("color") = "red";
- }else {
- child2.item(jj).attribute("background-color") = "#ccffcc";
- }
- return;
- } else {
- if (child2.item(jj).elementName == "xforms:input" ) {
- child2.item(jj).initStyle("color");
- }else {
- child2.item(jj).initStyle("background-color");
- }
- }
- }
- }
- }
- }
-
- /*
- * 콤포넌트 초기화
- */
-
- function fComponetInit() {
- var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children;
- for (ii = 0; ii < child.length; ii++) {
- child2 = child.item(ii).children ;
- for (jj = 0; jj < child2.length; jj++) {
- if (child2.item(jj).elementName == "xforms:input" ) {
- child2.item(jj).initStyle("color");
- } else {
- child2.item(jj).initStyle("background-color");
- }
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,787;2,792;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">물품코드 일괄등록</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15; top:8px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="cap_goodflag" class="search_name" style="left:364px; top:8px; width:86px; height:17px; ">물품구분 :</caption>
- <caption id="caption30" class="search_name" style="left:15px; top:40px; width:90px; height:17px; ">저장구분 :</caption>
- <caption id="cap_workflag" class="search_name" style="left:705px; top:8px; width:135px; height:17px; ">신규/변경구분 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:26px; width:56px; height:27px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // size 원위치
- if(fCheckRetrieveData() == false)return;
- misfMsterDetailRetrieve();
- if(grd_excelmaplist.rows - grd_excelmaplist.fixedRows > 0)
- fMapListValid( grd_excelmaplist );
- // setRowStyle("grd_excelmaplist", "6^2", "I^U", "workflag");
- // setRowStyle("grd_excelmaplist", "1", "Y", "saveyn", "equal");
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag" ref="/root/send/searchlist/goodflag" class="combo_search" appearance="minimal" style="left:449px; top:8px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetGoodFlagAuth();
- ]]>
- </script>
- </select1>
- <line id="line_title" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:238px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_rscdexcellist);
- ]]>
- </script>
- </select1>
- <input id="ipt_lrgcd_search" ref="/root/init/lrgcd" class="input_search" visibility="hidden" style="left:985px; top:45px; width:70px; height:19px; "/>
- <input id="ipt_mdlcd_search" ref="/root/init/mdlcd" class="input_search" visibility="hidden" style="left:985px; top:25px; width:70px; height:19px; "/>
- <input id="ipt_smlcd_search" ref="/root/init/smlcd" class="input_search" visibility="hidden" style="left:985px; top:5px; width:70px; height:19px; "/>
- <select1 id="rdo_workflag" ref="/root/send/searchlist/workflag" class="radio_search" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:830px; top:8px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/workflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_saveyn" ref="/root/send/searchlist/saveyn" class="radio_search" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:100px; top:40px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/saveyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:705px; top:40px; width:90px; height:17px; ">삭제구분 :</caption>
- <select1 id="rdo_delyn" ref="/root/send/searchlist/delyn" class="radio_search" visibility="hidden" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:830px; top:40px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/delyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <switch id="swt_select" class="sw_box" style="left:0px; top:120px; width:1195px; height:620px; border-style:solid; ">
- <case id="cse_costlist" selected="true" style="left:0px; top:0px; width:1193px; height:620px; ">
- <caption id="caption8" class="tit_2" style="left:4px; top:7px; width:161px; height:13px; ">Data Mapping List</caption>
- <datagrid id="grd_excelmaplist" nodeset="/root/main/list/goodexcelmap/goodexcelmaplist" caption="순번^순번^신규/변경^신규확인^신약품코드^Master코드^적용일^이전적용일^기관코드^사용여부^종료일자^물품구분^품명^물품명(한글)^물품명(영문)^물품규격^모델^자산구분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^구코드^제제약SET구분^계정코드^입고계정^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^주사용부서명^구매연결코드^재고관리기준^포장단위^낱개단위^포장환산^최소환산수량^재사용분할구분^분할사용수치^수가정보등록상태^수가정보등록일자^보험여부^edi코드^신규등록일자^신청부서코드^신청자id^청구기준^임의청구구분^청구방법^청구주기^내외자구분^제조국^제조회사코드^제조회사^주거래처코드^주거래처^판매회사코드^판매회사^계약구분^계약기간from^계약기간to^처방단가^외화단가^화폐단위^구입단가^구매구분^allsize유무^set발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^보나에스코드^규제약품여부^마약/향정구분^고가여부^함량단위^함량용량^규격용량^약품종류^공동구매여부^자동이송^보관방법^보관방법명^특별약품^일반-전문^일반_전문명^복지부분류^제형^성분코드^제한약품여부^비고^안전재고적용일자^안전재고량^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^최초등록자id^최초등록일시^최종수정자id^최종수정일시^처방단위^처방환산수량^보험단가^규격단위^보관법설명^원산지^성분명^포장수량^처방수량^중앙공급실용도^구입가^구매계정코드^저장여부^IF구분^삭제여부^반영일자^분류코드체크^caption1^caption2^caption3^병원용량^병원단위^계산방법^그룹코드" colsep="^" colwidth="40, 40, 63, 60, 89, 73, 90, 90, 52, 56, 100, 70, 120, 39, 100, 70, 74, 99, 40, 80, 40, 80, 40, 80, 80, 100, 40, 100, 40, 100, 40, 100, 40, 100, 40, 100, 60, 60, 60, 90, 94, 80, 40, 40, 50, 70, 40, 39, 40, 100, 80, 80, 60, 40, 100, 30, 100, 30, 100, 30, 100, 30, 30, 30, 70, 70, 60, 80, 100, 60, 80, 80, 80, 40, 60, 40, 30, 50, 80, 40, 40, 40, 70, 70, 70, 40, 40, 40, 70, 30, 30, 62, 30, 80, 30, 80, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 60, 80, 70, 60, 130, 30, 110, 60, 60, 30, 60, 30, 60, 40, 40, 60, 50, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:588px; ">
- <col ref="no" visibility="hidden"/>
- <col ref="rownumber"/>
- <col ref="workflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/workflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="workvalid" visibility="hidden"/>
- <col ref="goodcd" type="input"/>
- <col ref="goodmastercd"/>
- <col ref="fromdd" type="inputdate"/>
- <col disabled="true" ref="prefromdd" type="inputdate"/>
- <col disabled="true" ref="instcd" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="useyn" type="checkbox" visibility="hidden"/>
- <col ref="todd" type="inputdate"/>
- <col disabled="true" ref="goodflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodnm" type="input"/>
- <col ref="goodhngnm" type="input" visibility="hidden"/>
- <col ref="goodengnm" type="input"/>
- <col ref="goodspec" type="input" visibility="hidden"/>
- <col ref="goodmodel" type="input" visibility="hidden"/>
- <col ref="asetflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="lrgnm" type="inputbutton"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="mdlnm"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="smlnm"/>
- <col ref="oldcd" type="input"/>
- <col ref="proddrugsetflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="winacnt" type="input" visibility="hidden"/>
- <col ref="winacntnm" type="inputbutton"/>
- <col ref="amtacnt" type="input" visibility="hidden"/>
- <col ref="amtacntnm" type="inputbutton"/>
- <col ref="mainmngtdeptcd" type="input" visibility="hidden"/>
- <col ref="mainmngtdeptnm" type="inputbutton"/>
- <col ref="mainusedeptcd" type="input" visibility="hidden"/>
- <col ref="mainusedeptnm" type="inputbutton"/>
- <col ref="purclnkgoodcd" type="input" visibility="hidden"/>
- <col ref="stocmngtflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="purcunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="deliveunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="exchqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="minexch" type="input" visibility="hidden"/>
- <col checkvalue="Y,N" ref="reuseyn" type="checkbox" visibility="hidden"/>
- <col ref="divusenvalqty" type="input" visibility="hidden"/>
- <col ref="calcscorinfoacptstat" type="input" visibility="hidden"/>
- <col ref="calcscorinfoacptdd" type="inputdate" visibility="hidden"/>
- <col checkvalue="Y,N" ref="insuyn" type="checkbox" visibility="hidden"/>
- <col ref="edicd" type="input"/>
- <col ref="newrgstdd" type="inputdate" visibility="hidden"/>
- <col ref="reqdeptcd" type="input" visibility="hidden"/>
- <col ref="reqpsn" type="input" visibility="hidden"/>
- <col ref="reqflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="tmpreqflag" type="checkbox"/>
- <col ref="reqmthd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="reqprid" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="iopsnflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/iopsnflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="prodplce" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="prodcmpynm" type="inputbutton"/>
- <col ref="maincustlastsuplplce" type="input" visibility="hidden"/>
- <col ref="maincustlastsuplplcenm" type="inputbutton"/>
- <col ref="suppcustcd" type="input" visibility="hidden"/>
- <col ref="suppcustnm" type="inputbutton"/>
- <col ref="conflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fromconterm" type="inputdate" visibility="hidden"/>
- <col ref="toconterm" type="inputdate" visibility="hidden"/>
- <col ref="estmamt" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="forgncurncyunitcost" type="input" visibility="hidden"/>
- <col ref="curncyunit" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodunitcost" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="purcflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="allsizeyn" type="input" visibility="hidden"/>
- <col ref="setplceordflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="plceordbase" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="plceordqtycretflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="plceordnonusedd" type="inputdate" visibility="hidden"/>
- <col ref="addtaxrate" type="input"/>
- <col ref="lastpurcdd" type="inputdate" visibility="hidden"/>
- <col ref="nonusetretresn" type="input" visibility="hidden"/>
- <col ref="mngtflag" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="bnscd" type="input"/>
- <col ref="cntrdrugyn" type="input" visibility="hidden"/>
- <col ref="narcflag" type="input" visibility="hidden"/>
- <col ref="expnyn" type="input" visibility="hidden"/>
- <col ref="cntsunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cntsqty" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="specvol" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="drugkind" type="input" visibility="hidden"/>
- <col ref="cooppurcyn" type="input" visibility="hidden"/>
- <col ref="autrampharm" type="input" visibility="hidden"/>
- <col ref="keepmthd" type="combo">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="keepmthdnm" type="input" visibility="hidden"/>
- <col ref="specldrug" type="input" visibility="hidden"/>
- <col ref="gnrlspcl" type="combo">
- <choices>
- <itemset nodeset="/root/init/gnrlspcl">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="gnrlspclnm" type="input" visibility="hidden"/>
- <col ref="welfprt" type="input"/>
- <col ref="goodtype" type="input" visibility="hidden"/>
- <col ref="com" type="input"/>
- <col ref="limdrugyn" type="input" visibility="hidden"/>
- <col ref="cmt" type="input" visibility="hidden"/>
- <col ref="safestocappdd" type="inputdate" visibility="hidden"/>
- <col ref="safestocqty" type="input" visibility="hidden"/>
- <col ref="ddavguseqty" type="input" visibility="hidden"/>
- <col ref="mmavgusescheqty" type="input" visibility="hidden"/>
- <col ref="mmavguseqty" type="input" visibility="hidden"/>
- <col ref="prprtystocpossndayno" type="input" visibility="hidden"/>
- <col ref="fstrgstrid" type="input" visibility="hidden"/>
- <col ref="fstrgstdt" type="inputdate" visibility="hidden"/>
- <col ref="lastupdtrid" type="input" visibility="hidden"/>
- <col ref="lastupdtdt" type="inputdate" visibility="hidden"/>
- <col ref="prcpunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpexchqty" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="insucost" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="specunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="pemtkeepmthd" type="input"/>
- <col ref="orgloc" type="input" visibility="hidden"/>
- <col ref="comnm" type="input"/>
- <col ref="purcqty" type="input"/>
- <col ref="prcpqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="csrusecmt" type="input" visibility="hidden"/>
- <col ref="goodpurccost" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="purcacntcd" type="input" visibility="hidden"/>
- <col ref="saveyn" visibility="hidden"/>
- <col ref="ifflag" visibility="hidden"/>
- <col ref="delyn" visibility="hidden"/>
- <col ref="appdd"/>
- <col ref="getgubunchk" visibility="hidden"/>
- <col ref="inprodcmpynm" visibility="hidden" style="left:7520px; top:23px; width:100px; height:23px; "/>
- <col ref="insuppcustcd" visibility="hidden"/>
- <col ref="insuppcustnm" visibility="hidden"/>
- <col ref="hospdrguvol" visibility="hidden"/>
- <col ref="hospdrguunit" type="combo" visibility="hidden">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="calcmthdcd" visibility="hidden"/>
- <col ref="grupsnglflag" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(swt_select.selectedIndex == 0 && (grd_excelmaplist.isCell(event.target) && grd_excelmaplist.mouseRow >= grd_excelmaplist.fixedrows))
- window.setPopupMenu(true, "/root/init/popmenu/grd_excelmaplist/item", "name", "func", false);
- else window.setPopupMenu(false);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- /*************************************************
- * Grid 선택에 따른 popup(help) 선택 Script
- *************************************************/
- if(grd_excelmaplist.colRef("lrgnm") == grd_excelmaplist.col) /* 대분류 */
- {
- model.setValue( ipt_lrgcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("lrgcd")) );
- model.setValue( ipt_mdlcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("mdlcd")) );
- model.setValue( ipt_smlcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("smlcd")) );
- ipt_lrgcd_search.refresh();
- ipt_mdlcd_search.refresh();
- ipt_smlcd_search.refresh();
-
- model.setValue(opt_popcond.attribute("ref"),"lrgnm");
- model.setValue(opt_poptitle.attribute("ref"), "분류코드를 선택해 주세요");
- rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd,goodflag,lrgcd,mdlcd,smlcd","opt_poptitle,opt_popcond,cmb_instcd,cmb_goodflag,ipt_lrgcd_search,ipt_mdlcd_search,ipt_smlcd_search");
- fSetAllApply(grd_excelmaplist,"lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm", model.getValue(opt_popinputcd.attribute("ref")));
- model.refresh();
- } else if (grd_excelmaplist.colRef("mdlnm") == grd_excelmaplist.col) /* 중분류 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","goodflag,lrgcd,lrgnm");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("smlnm") == grd_excelmaplist.col) /* 소분류 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","goodflag,lrgcd,lrgnm,mdlcd,mdlnm");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("winacntnm") == grd_excelmaplist.col) /* 입고계정 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","winacnt,winacntnm","PPRAC00100","instcd","instcd");
- model.refresh();
- } else if (grd_excelmaplist.colRef("amtacntnm") == grd_excelmaplist.col) /* 비용계정 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","amtacnt,amtacntnm","PPRAC00100","instcd","instcd");
- model.refresh();
- } else if (grd_excelmaplist.colRef("mainmngtdeptnm") == grd_excelmaplist.col) /* 주관리부서 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","mainmngtdeptcd,mainmngtdeptnm","SPRPZ00200","instcd","instcd");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("mainusedeptnm") == grd_excelmaplist.col) /* 주사용부서 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","mainusedeptcd,mainusedeptnm","SPRPZ00200","instcd","instcd");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("prodcmpynm") == grd_excelmaplist.col) /* 제조회사 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("maincustlastsuplplcenm") == grd_excelmaplist.col) /* 최종공급처 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","instcd");
- // model.refresh();
- } else if (grd_excelmaplist.colRef("suppcustnm") == grd_excelmaplist.col) /* 보조거래처 */
- {
- rszfOpenPopUpListByWndName(grd_excelmaplist,"","suppcustcd,suppcustnm","SPRSD00220","instcd","instcd");
- // model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_excelmaplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_excelmaplist.col == grd_excelmaplist.colRef("workflag") ) {
- if( grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) == "Y" ) {
- grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) = "N"
- messageBox("신규/변경 구분이","E016");
- } else {
- grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) = "Y"
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- btn_bonaview.attribute("visibility") ="hidden" ;
- grp_bonadata.attribute("visibility") ="hidden" ;
-
- // 작업 구분이 상세 보기 check box가 선택되어 있을 경우 세부내역 Grid view
- if( model.getValue(chk_multiflag.attribute("ref")) == "Y") {
- fGridDataSet(grd_excelmaplist, "/root/main/list/newmasterlist/");
-
- // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_lrgcd", "", "L"); /* 대분류 List 셋팅 */
- // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M"); /* 중분류 List 셋팅 */
- // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S"); /* 소분류 List 셋팅 */
- /*
- * prefromdd = 19000101 -> 입력된 물품의 정보가 Master 에 없거나.. 통합에 있다 하더라도 해당 기관에 없을 경우 19000101로 설정
- * goodmastercd -> 통합 Master에 동일 물품 코드 데이터
- */
- if(grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("prefromdd")) != "19000101" && grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodmastercd")) != "" ) {
- model.setValue("/root/send/orimasterlist/instcd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("instcd")));
- model.setValue("/root/send/orimasterlist/goodflag", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodflag")));
- model.setValue("/root/send/orimasterlist/fromdd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("prefromdd")));
- model.setValue("/root/send/orimasterlist/goodcd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodcd")));
- submit("TRRSC03803");
- /*
- * Old Data와 New Data 비교
- */
- fOldNewCompare("/root/main/list/orimasterlist/", "/root/main/list/newmasterlist/");
-
- } else { // 신규 물품에 대해서는 비교가 필요하지 않다. 선택한 Row의 값만 뿌려준다.
- model.resetInstanceNode("/root/main/list/orimasterlist");
- /*
- * combo Clear
- */
- fOldNewCompare("/root/main/list/orimasterlist/", "/root/main/list/newmasterlist/", "Y");
- model.refresh();
- }
- if (grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("ifflag")) == "I")
- btn_bonaview.attribute("visibility") ="visible" ;
- // 세부 내역을 활성화 한 Grid의 Row를 기억한다.
- // -> 세부내역을 선택 한 후 그리드의 다른 row를 선택해 버리면... 데이터 수정후 엉뚱한 행이 수정될 수 있다.
- ViewRow = grd_excelmaplist.row;
- grp_disp.visible="visible";
-
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
- <button id="button1" class="btn2_letter4" style="left:1071px; top:3px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_disp.attribute("visibility") ="hidden" ;
- if ( fCheckSaveData( grd_excelmaplist ) != false) {
- if ( getGridUpdateData(grd_excelmaplist) == "") {
- messageBox("변경 데이터가","I004");
- return;
- }
- misfSave("TXRSC03802");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn3_letter2" style="left:1013px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_disp.attribute("visibility") ="hidden" ;
- if ( fCheckSaveData( grd_excelmaplist ) == false) return;
- if ( fSetSaveData( grd_excelmaplist ) == false) return;
- //alert( getGridUpdateData(grd_excelmaplist));
- //model.setValue("/root/send/save/gooddetlist", getGridUpdateData(grd_excelmaplist));
- misfSave("TXRSC03803");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter3" style="left:1138px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_disp.attribute("visibility") ="hidden" ;
- if( grd_excelmaplist.rows - grd_excelmaplist.fixedRows > 0 ) {
- var tempmag = messageBox("선택한 항목을 ", "Q001");
- if ( tempmag == "6" ) {
- misfGridIUD(grd_excelmaplist, "D"); // rowStatus = 4
- for(currow = 0 ; currow < grd_excelmaplist.selectedRows; currow++) {
- // grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) = "4";
- if( grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) == "4" &&
- model.getValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/delyn") == "N" ) {
- model.setValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/" + "delyn", "Y"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
- }
- /*
- else if ( grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) != "4" &&
- model.getValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/delyn") == "Y" ) {
- model.setValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/" + "delyn", "N"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
- }
- */
- }
- misfSave("TXRSC03802");
- }
- } else {
- messageBox("데이터가","I004");
- }
- ]]>
- </script>
- </button>
- <group id="grp_disp" visibility="hidden" style="left:607px; top:70px; width:585px; height:515px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:584px; height:514px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption24" class="cell_1" style="left:95px; top:8px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">Excel Load Data</caption>
- <caption id="caption25" class="cell_1" style="left:335px; top:8px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">현재 물품 Master</caption>
- <button id="button3" class="btn2_letter3" style="left:20px; top:10px; width:53px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 세부 내역을 활성화 한 Grid의 Row로 포커스 이동
- // -> 세부내역을 선택 한 후 그리드의 다른 row를 선택해 버리면... 데이터 수정후 엉뚱한 행이 수정될 수 있는 상황 방지
- if ( grd_excelmaplist.row != ViewRow )
- grd_excelmaplist.row = ViewRow;
- fGridDataSet(grd_excelmaplist, "/root/main/list/newmasterlist/","Y");
- grp_disp.attribute("visibility") ="hidden" ;
- ]]>
- </script>
- </button>
- <switch id="swt_map" class="sw_box" style="left:2px; top:55px; width:581px; height:457px; border-color:#fffbf2; border-style:hidden; ">
- <case id="cse_basic" selected="true" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
- <!-- caption start -->
- <caption id="caption12" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">적용일자</caption>
- <caption id="caption3" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">신약품코드</caption>
- <caption id="caption5" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">구코드</caption>
- <caption id="caption7" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">보나에스코드</caption>
- <caption id="caption9" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">한글상품명</caption>
- <caption id="caption10" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">일반 / 전문</caption>
- <caption id="caption11" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">복지부 분류</caption>
- <caption id="caption13" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">제조회사</caption>
- <caption id="caption14" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">EDI코드</caption>
- <caption id="caption15" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">판매회사</caption>
- <!-- caption end -->
- <!-- new item start -->
- <input id="ipt_fromdd" ref="/root/main/list/newmasterlist/fromdd" class="input_default" inputtype="date" style="left:95px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/main/list/newmasterlist/goodcd" class="input_default" style="left:95px; top:34px; width:235px; height:19px; "/>
- <input id="ipt_oldcd" ref="/root/main/list/newmasterlist/oldcd" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
- <input id="ipt_bnscd" ref="/root/main/list/newmasterlist/bnscd" class="input_default" style="left:95px; top:86px; width:235px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/main/list/newmasterlist/goodnm" class="input_default" style="left:95px; top:112px; width:235px; height:19px; "/>
- <select1 id="cmb_gnrlspcl" ref="/root/main/list/newmasterlist/gnrlspcl" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/gnrlspcl">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_welfprt" ref="/root/main/list/newmasterlist/welfprt" class="input_default" style="left:95px; top:164px; width:235px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/main/list/newmasterlist/prodcmpycd" class="input_default" style="left:95px; top:190px; width:65px; height:19px; "/>
- <button id="btn_prodcmpycd" class="icon_search" style="left:163px; top:190px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_prodcmpynm" ref="/root/main/list/newmasterlist/prodcmpynm" class="input_default" style="left:180px; top:190px; width:150px; height:19px; "/>
- <input id="ipt_edicd" ref="/root/main/list/newmasterlist/edicd" class="input_default" style="left:95px; top:216px; width:235px; height:19px; "/>
- <input id="ipt_suppcustcd" ref="/root/main/list/newmasterlist/suppcustcd" class="input_default" style="left:95px; top:242px; width:65px; height:19px; "/>
- <button id="btn_suppcustcd" class="icon_search" style="left:163px; top:242px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","ipt_instcd","ipt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustnm" ref="/root/main/list/newmasterlist/suppcustnm" class="input_default" style="left:180px; top:242px; width:150px; height:19px; "/>
- <!-- new item end -->
- <!-- old item start -->
- <input id="opt_fromdd_2" ref="/root/main/list/orimasterlist/old_fromdd" class="input_default" disabled="true" inputtype="date" style="left:335px; top:8px; width:100px; height:19px; "/>
- <output id="opt_goodcd_2" ref="/root/main/list/orimasterlist/old_goodcd" class="output_fix" style="left:335px; top:34px; width:235px; height:19px; "/>
- <output id="opt_oldcd_2" ref="/root/main/list/orimasterlist/old_oldcd" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
- <output id="opt_bnscd_2" ref="/root/main/list/orimasterlist/old_bnscd" class="output_fix" style="left:335px; top:86px; width:235px; height:19px; "/>
- <output id="opt_goodnm_2" ref="/root/main/list/orimasterlist/old_goodnm" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
- <select1 id="cmb_gnrlspcl_2" ref="/root/main/list/orimasterlist/old_gnrlspcl" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:138px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/gnrlspcl">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_welfprt_2" ref="/root/main/list/orimasterlist/old_welfprt" class="output_fix" style="left:335px; top:164px; width:235px; height:19px; "/>
- <output id="opt_prodcmpycd_2" ref="/root/main/list/orimasterlist/old_prodcmpycd" class="output_fix" style="left:335px; top:190px; width:75px; height:19px; "/>
- <output id="opt_prodcmpynm_2" ref="/root/main/list/orimasterlist/old_prodcmpynm" class="output_fix" style="left:415px; top:190px; width:155px; height:19px; "/>
- <output id="opt_edicd_2" ref="/root/main/list/orimasterlist/old_edicd" class="output_fix" style="left:335px; top:216px; width:235px; height:19px; "/>
- <output id="opt_suppcustcd_2" ref="/root/main/list/orimasterlist/old_suppcustcd" class="output_fix" style="left:335px; top:242px; width:75px; height:19px; "/>
- <output id="opt_suppcustnm_2" ref="/root/main/list/orimasterlist/old_suppcustnm" class="output_fix" style="left:415px; top:242px; width:155px; height:19px; "/>
- <!-- end item start -->
- <group id="grp_bonadata" style="left:10px; top:305px; width:325px; height:125px; background-color:#ffcc99; border-style:none; ">
- <caption id="caption18" class="cell_1" style="left:40px; top:5px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">입력 Data</caption>
- <caption id="caption19" class="cell_1" style="left:10px; top:60px; width:82px; height:33px; vertical-align:middle; ">
- <![CDATA[판매회사
- 사업자번호]]>
- </caption>
- <caption id="caption20" class="cell_1" style="left:10px; top:35px; width:82px; height:23px; vertical-align:middle; ">제조회사</caption>
- <caption id="caption21" class="cell_1" style="left:10px; top:95px; width:82px; height:23px; vertical-align:middle; ">판매회사</caption>
- <output id="ipt_inprodcmpynm" ref="/root/main/list/newmasterlist/inprodcmpynm" class="output_fix" style="left:95px; top:38px; width:220px; height:19px; "/>
- <output id="ipt_insuppcustcd" ref="/root/main/list/newmasterlist/insuppcustcd" class="output_fix" style="left:95px; top:67px; width:65px; height:19px; "/>
- <output id="ipt_insuppcustnm" ref="/root/main/list/newmasterlist/insuppcustnm" class="output_fix" style="left:95px; top:98px; width:220px; height:19px; "/>
- </group>
- <button id="btn_bonaview" class="btn3_letter13" style="left:25px; top:275px; width:53px; height:19px; ">
- <caption>보나에스 제조회사/판매회사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grp_bonadata.attribute("visibility") =="visible")
- grp_bonadata.attribute("visibility") ="hidden" ;
- else
- grp_bonadata.attribute("visibility") ="visible" ;
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_other" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
- <!-- caption start -->
- <caption id="caption32" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">집계구분</caption>
- <caption id="caption31" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">성분코드</caption>
- <caption id="caption35" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">성분명</caption>
- <caption id="caption38" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">대분류</caption>
- <caption id="caption41" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">중분류</caption>
- <caption id="caption27" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">소분류</caption>
- <caption id="caption29" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">입고계정</caption>
- <caption id="caption33" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">비용계정</caption>
- <caption id="caption34" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">보관법(실제)</caption>
- <caption id="caption36" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">보관법 설명</caption>
- <!-- caption end -->
- <!-- new item start -->
- <select1 id="cmb_reqflag" ref="/root/main/list/newmasterlist/reqflag" class="combo_search" appearance="minimal" style="left:95px; top:8px; width:235px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_com" ref="/root/main/list/newmasterlist/com" class="input_default" style="left:95px; top:34px; width:235px; height:19px; "/>
- <input id="ipt_comnm" ref="/root/main/list/newmasterlist/comnm" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/list/newmasterlist/lrgcd" class="input_search" style="left:95px; top:86px; width:55px; 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(cmb_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref")) + "," ,"","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_ipt_lrgcd" class="icon_search" style="left:155px; top:86px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgnm" ref="/root/main/list/newmasterlist/lrgnm" class="input_search" style="left:180; top:86px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_lrgnm.value != "" )
- {
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(cmb_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),
- "","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- }else{
- ipt_lrgcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_mdlcd" ref="/root/main/list/newmasterlist/mdlcd" class="input_search" style="left:95px; top:112px; width:55px; 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(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mdlcd" class="icon_search" style="left:155px; top:112px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm" ref="/root/main/list/newmasterlist/mdlnm" class="input_search" style="left:180; top:112px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mdlnm.value != "")
- {
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref"))
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
- }else{
- ipt_mdlcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_smlcd" ref="/root/main/list/newmasterlist/smlcd" class="input_search" style="left:95px; top:138px; width:55px; 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"),"");
- else rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(cmb_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","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_smlcd" class="icon_search" style="left:155px; top:138px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_smlnm" ref="/root/main/list/newmasterlist/smlnm" class="input_search" style="left:180; top:138px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_smlnm.value != ""){
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
- "smlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ",," +
- model.getValue(ipt_smlnm.attribute("ref")),
- "","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- }else{
- ipt_smlcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <!--
- <select1 id="cmb_lrgcd" ref="/root/main/list/newmasterlist/lrgcd" class="combo_search" appearance="minimal" style="left:95px; top:86px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/inputlrgcmb">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M");
- cmb_mdlcd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/main/list/newmasterlist/mdlcd" class="combo_search" appearance="minimal" style="left:95px; top:112px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/inputmdlcmb">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_smlcd" ref="/root/main/list/newmasterlist/smlcd" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/inputsmlcmb">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- -->
- <input id="ipt_winacnt" ref="/root/main/list/newmasterlist/winacnt" class="input_default" style="left:95px; top:164px; width:65px; height:19px; "/>
- <button id="btn_winacnt" class="icon_search" style="left:163px; top:165px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_winacntnm" ref="/root/main/list/newmasterlist/winacntnm" class="input_default" style="left:180px; top:165px; width:150px; height:19px; "/>
- <input id="ipt_amtacnt" ref="/root/main/list/newmasterlist/amtacnt" class="input_default" style="left:95px; top:190px; width:65px; height:19px; "/>
- <button id="button2" class="icon_search" style="left:163px; top:190px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_amtacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_amtacntnm" ref="/root/main/list/newmasterlist/amtacntnm" class="input_default" style="left:180px; top:190px; width:150px; height:19px; "/>
- <select1 id="cmb_keepmthd" ref="/root/main/list/newmasterlist/keepmthd" class="combo_search" appearance="minimal" style="left:95px; top:216px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pemtkeepmthd" ref="/root/main/list/newmasterlist/pemtkeepmthd" class="input_default" style="left:95px; top:242px; width:235px; height:19px; "/>
- <!-- new item end -->
- <!-- old item start -->
- <select1 id="cmb_reqflag_2" ref="/root/main/list/orimasterlist/old_reqflag" class="combo_search" appearance="minimal" style="left:335px; top:8px; width:235px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_com_2" ref="/root/main/list/orimasterlist/old_com" class="output_fix" style="left:335px; top:34px; width:235px; height:19px; "/>
- <output id="opt_comnm_2" ref="/root/main/list/orimasterlist/old_comnm" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
- <output id="opt_lrgcd_2" ref="/root/main/list/orimasterlist/old_lrgnm" class="output_fix" style="left:335px; top:86px; width:235px; height:19px; "/>
- <output id="opt_mdlcd_2" ref="/root/main/list/orimasterlist/old_mdlnm" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
- <output id="opt_smlcd_2" ref="/root/main/list/orimasterlist/old_smlnm" class="output_fix" style="left:335px; top:138px; width:235px; height:19px; "/>
- <output id="opt_winacnt_2" ref="/root/main/list/orimasterlist/old_winacnt" class="output_fix" style="left:335px; top:164px; width:65px; height:19px; "/>
- <output id="opt_winacntnm_2" ref="/root/main/list/orimasterlist/old_winacntnm" class="output_fix" style="left:405px; top:164px; width:165px; height:19px; "/>
- <output id="opt_amtacnt_2" ref="/root/main/list/orimasterlist/old_amtacnt" class="output_fix" style="left:335px; top:190px; width:65px; height:19px; "/>
- <output id="opt_amtacntnm_2" ref="/root/main/list/orimasterlist/old_amtacntnm" class="output_fix" style="left:405px; top:190px; width:165px; height:19px; "/>
- <select1 id="cmb_keepmthd_2" ref="/root/main/list/orimasterlist/old_keepmthd" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:216px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_pemtkeepmthd_2" ref="/root/main/list/orimasterlist/old_pemtkeepmthd" class="output_fix" style="left:335px; top:242px; width:235px; height:19px; "/>
- <!-- end item start -->
- </case>
- <case id="cse_unit" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
- <!-- caption start -->
- <caption id="caption47" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">함량</caption>
- <caption id="caption46" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">함량단위</caption>
- <caption id="caption51" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">규격</caption>
- <caption id="caption55" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">규격단위</caption>
- <caption id="caption44" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">처방수량</caption>
- <caption id="caption56" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">처방단위</caption>
- <caption id="caption59" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">처방환산</caption>
- <caption id="caption48" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">낱개수량</caption>
- <caption id="caption49" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">낱개단위</caption>
- <caption id="caption52" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption53" class="cell_1" style="left:10px; top:268px; width:82px; height:23px; vertical-align:middle; ">보험단가</caption>
- <caption id="caption57" class="cell_1" style="left:10px; top:294px; width:82px; height:23px; vertical-align:middle; ">처방단가</caption>
- <caption id="caption43" class="cell_1" style="left:10px; top:320px; width:82px; height:23px; vertical-align:middle; ">구입단가</caption>
- <caption id="caption45" class="cell_1" style="left:10px; top:346px; width:82px; height:23px; vertical-align:middle; ">구입가</caption>
- <!-- caption end -->
- <!-- new item start -->
- <input id="ipt_cntsqty" ref="/root/main/list/newmasterlist/cntsqty" class="input_default" style="left:95px; top:8px; width:235px; height:19px; "/>
- <select1 id="cmb_cntsunit" ref="/root/main/list/newmasterlist/cntsunit" class="combo_search" appearance="minimal" style="left:95px; top:34px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_specvol" ref="/root/main/list/newmasterlist/specvol" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
- <select1 id="cmb_specunit" ref="/root/main/list/newmasterlist/specunit" class="combo_search" appearance="minimal" style="left:95px; top:86px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_prcpqty" ref="/root/main/list/newmasterlist/prcpqty" class="input_default" style="left:95px; top:112px; width:235px; height:19px; "/>
- <select1 id="cmb_prcpunit" ref="/root/main/list/newmasterlist/prcpunit" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_prcpexchqty" ref="/root/main/list/newmasterlist/prcpexchqty" class="input_default" style="left:95px; top:164px; width:235px; height:19px; "/>
- <input id="ipt_exchqty" ref="/root/main/list/newmasterlist/exchqty" class="input_default" style="left:95px; top:190px; width:235px; height:19px; "/>
- <select1 id="cmb_deliveunit" ref="/root/main/list/newmasterlist/deliveunit" class="combo_search" appearance="minimal" style="left:95px; top:216px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_purcunit" ref="/root/main/list/newmasterlist/purcunit" class="combo_search" appearance="minimal" style="left:95px; top:242px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_insucost" ref="/root/main/list/newmasterlist/insucost" class="input_default" style="left:95px; top:268px; width:235px; height:19px; "/>
- <input id="ipt_estmamt" ref="/root/main/list/newmasterlist/estmamt" class="input_default" style="left:95px; top:294px; width:235px; height:19px; "/>
- <input id="ipt_goodunitcost" ref="/root/main/list/newmasterlist/goodunitcost" class="input_default" style="left:95px; top:320px; width:235px; height:19px; "/>
- <input id="ipt_goodpurccost" ref="/root/main/list/newmasterlist/goodpurccost" class="input_default" style="left:95px; top:346px; width:235px; height:19px; "/>
- <!-- new item end -->
- <!-- old item start -->
- <output id="opt_cntsqty_2" ref="/root/main/list/orimasterlist/old_cntsqty" class="output_fix" style="left:335px; top:8px; width:235px; height:19px; "/>
- <select1 id="cmb_cntsunit_2" ref="/root/main/list/orimasterlist/old_cntsunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:34px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_specvol_2" ref="/root/main/list/orimasterlist/old_specvol" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
- <select1 id="cmb_specunit_2" ref="/root/main/list/orimasterlist/old_specunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:86px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_prcpqty_2" ref="/root/main/list/orimasterlist/old_prcpqty" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
- <select1 id="cmb_prcpunit_2" ref="/root/main/list/orimasterlist/old_prcpunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:138px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_prcpexchqty_2" ref="/root/main/list/orimasterlist/old_prcpexchqty" class="output_fix" style="left:335px; top:164px; width:235px; height:19px; "/>
- <output id="opt_exchqty_2" ref="/root/main/list/orimasterlist/old_exchqty" class="output_fix" style="left:335px; top:190px; width:235px; height:19px; "/>
- <select1 id="cmb_deliveunit_2" ref="/root/main/list/orimasterlist/old_deliveunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:216px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_purcunit_2" ref="/root/main/list/orimasterlist/old_purcunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:242px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prcpunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_insucost_2" ref="/root/main/list/orimasterlist/old_insucost" class="output_fix" style="left:335px; top:268px; width:235px; height:19px; "/>
- <output id="opt_estmamt_2" ref="/root/main/list/orimasterlist/old_estmamt" class="output_fix" style="left:335px; top:294px; width:235px; height:19px; "/>
- <output id="opt_goodunitcost_2" ref="/root/main/list/orimasterlist/old_goodunitcost" class="output_fix" style="left:335px; top:320px; width:235px; height:19px; "/>
- <output id="opt_goodpurccost_2" ref="/root/main/list/orimasterlist/old_goodpurccost" class="output_fix" style="left:335px; top:346px; width:235px; height:19px; "/>
- <!-- end item start -->
- </case>
- </switch>
- <button id="btn_basic" class="btn_sw" group="tab" selected="true" style="left:3px; top:35px; width:80px; height:22px; ">
- <caption>기본사항</caption>
- <toggle case="cse_basic" ev:event="DOMActivate"/>
- </button>
- <button id="btn_unit" class="btn_sw" group="tab" selected="false" style="left:83px; top:35px; width:80px; height:22px; ">
- <caption>단위/단가</caption>
- <toggle case="cse_unit" ev:event="DOMActivate"/>
- </button>
- <button id="btn_other" class="btn_sw" group="tab" selected="false" style="left:163px; top:35px; width:80px; height:22px; ">
- <caption>기타사항</caption>
- <toggle case="cse_other" ev:event="DOMActivate"/>
- </button>
- </group>
- <caption id="caption17" class="hand_search" style="left:220px; top:5px; width:90px; height:13px; ">작업구분 :</caption>
- <select id="chk_multiflag" ref="/root/send/searchlist/multiwork" overflow="visible" appearance="full" cols="1" style="left:310px; top:5px; width:210px; height:13px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/multiwork">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(chk_multiflag.attribute("ref")) != "Y")
- {
- grp_disp.attribute("visibility") ="hidden" ;
- for(var i=1; i<grd_excelmaplist.cols- grd_excelmaplist.fixedCols; i++)
- grd_excelmaplist.colDisabled(i) = false;
- }
- else
- {
- for(var i=1; i<grd_excelmaplist.cols- grd_excelmaplist.fixedCols; i++)
- grd_excelmaplist.colDisabled(i) = true;
- }
-
- ]]>
- </script>
- </select>
- </case>
- <case id="cse_goodlist" style="left:0px; top:0px; width:1193px; height:620px; ">
- <caption id="caption1" class="tit_2" style="left:4px; top:7px; width:161px; height:13px; ">Excel Data List</caption>
- <datagrid id="grd_rscdexcellist" nodeset="/root/main/list/rscdexcel/rscdexcellist" caption="대분류코드^대분류^중분류코드^중분류^소분류코드^소분류^복지부분류코드^복지부 분류명^약품코드^구코드^보나에스코드^한글상품명^영문명^EDI코드^제조회사^제조회사^판매회사^판매회사^주거래처코드^주거래처명^성분코드^성분명칭^함량^함량단위^규격^규격단위^병원용량^병원단위^처방수량^처방단위^처방환산^계산방법코드^계산방법^낱개수량^낱개단위^포장단위^그룹/싱글코드^그룹/싱글명^일반/전문코드^일반/전문^입고계정코드^입고계정^비용계정코드^비용계정^보관법코드^보관법(실제)^보관법 설명서^보험단가^처방단가^구입단가^구입가^집계구분^집계구분명^적용일자^종료일자^변경사유코드^변경사유^비고^임의청구여부^청구방법^청구방법명^청구주기^청구주기명^기관코드^신규/변경구분^물품구분^Interface구분" colsep="^" colwidth="50, 100, 50, 100, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 50, 100, 50, 100, 76, 100, 68, 100, 61, 70, 61, 70, 61, 70, 61, 70, 100, 100, 100, 50, 100, 50, 100, 100, 50, 100, 60, 100, 60, 100, 50, 100, 100, 70, 70, 70, 70, 50, 100, 100, 100, 75, 100, 100, 100, 50, 100, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:588px; ">
- <col ref="lrgcd"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd"/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="welfprt"/>
- <col ref="welfprtnm"/>
- <col ref="goodcd"/>
- <col ref="oldcd"/>
- <col ref="bnscd"/>
- <col ref="goodnm"/>
- <col ref="goodengnm"/>
- <col ref="edicd"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="maincustlastsuplplce"/>
- <col ref="maincustlastsuplplcenm" type="inputbutton"/>
- <col ref="com"/>
- <col ref="comnm"/>
- <col ref="cntsqty" format="#,###.##" style="text-align:right; "/>
- <col ref="cntsunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="specvol" format="#,###.##" style="text-align:right; "/>
- <col ref="specunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="hospdrguvol"/>
- <col ref="hospdrguunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpqty" format="#,###" style="text-align:right; "/>
- <col ref="prcpunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpexchqty" format="#,###.##" style="text-align:right; "/>
- <col ref="calcmthdcd"/>
- <col ref="calcmthdnm"/>
- <col ref="exchqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="purcunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="grupsnglflag"/>
- <col ref="grupsnglflagnm"/>
- <col ref="gnrlspcl"/>
- <col ref="gnrlspclnm"/>
- <col ref="winacnt"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="keepmthd"/>
- <col ref="keepmthdnm"/>
- <col ref="pemtkeepmthd"/>
- <col ref="insucost" format="#,###.##" style="text-align:right; "/>
- <col ref="estmamt" format="#,###.##" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
- <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="nonusetretresncd"/>
- <col ref="nonusetretresn"/>
- <col ref="cmt" type="input"/>
- <col checkvalue="Y,N" ref="tmpreqflag" type="checkbox"/>
- <col ref="reqmthd"/>
- <col ref="reqmthdnm"/>
- <col ref="reqprid"/>
- <col ref="reqpridnm"/>
- <col ref="instcd"/>
- <col ref="workflag"/>
- <!-- hidden 처리 되어 기본 입력 되어질 항목-->
- <col ref="goodflag" visibility="hidden"/>
- <col ref="ifflag" visibility="hidden"/>
- <!-- hidden 보나에스 Interface에서 생성 -->
- <col ref="seqno" visibility="hidden"/>
- <col ref="inprodcmpynm" visibility="hidden"/>
- <col ref="insuppcustcd" visibility="hidden"/>
- <col ref="insuppcustnm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_rscdexcellist.colRef("maincustlastsuplplcenm") == grd_rscdexcellist.col) /* 최종공급처 */
- {
- rszfOpenPopUpListByWndName(grd_rscdexcellist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","instcd");
- // model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_loadexcel" class="btn2_letter7" style="left:1035px; top:3px; width:97px; height:19px; ">
- <caption>데이터가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataLoad();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
- <button id="btn_excelsave" class="btn2_letter3" style="left:978px; top:3px; width:53px; height:19px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 보나에스 전송자료의 경우는 Validation Check를 하지 않는다.
- if ( model.getValue(rdo_ifflag.attribute("ref"))=="I" || fCheckSaveData( grd_rscdexcellist ) != false)
- {
- model.setValue("/root/send/save/rscdexcellist", getGridUpdateData(grd_rscdexcellist) );
- //alert(model.getValue("/root/send/save/rscdexcellist"));
- submit("TXRSC03801");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- misfGridInit(grd_rscdexcellist);
-
- // Loading 된 작업 건수 초기화 & hidden
- model.setValue(opt_uploadcnt.attribute("ref"), "0");
- cpt_uploadcnt.visible = false;
- opt_uploadcnt.visible = false;
-
- // 저장된 목록 가져오기( tab 이동 )
- btn_cost.dispatch("DOMActivate");
- btn_cost.selected="true";
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_excelclear" class="btn2_letter3" style="left:1136px; top:3px; width:53px; height:19px; ">
- <caption>Clear</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_rscdexcellist);
- ]]>
- </script>
- </button>
- <caption id="caption16" class="hand_search" style="left:220px; top:5px; width:90px; height:13px; ">작업구분 :</caption>
- <select1 id="rdo_ifflag" ref="/root/send/searchlist/ifflag" class="radio_search" appearance="full" cellspacing="10" cols="2" rows="1" overflow="visible" style="left:315px; top:3px; width:225px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/ifflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( (grd_rscdexcellist.rows - grd_rscdexcellist.fixedRows > 1) || getGridUpdateData(grd_rscdexcellist) != "" ){
- var work_choicel = messageBox("화면에 자료가 존재 합니다. ", "Q003");
- if (work_choicel == "6") misfGridInit(grd_rscdexcellist);
- else {
- if(rdo_ifflag.selectedIndex == 0 ) rdo_ifflag.selectedIndex = 1;
- else rdo_ifflag.selectedIndex = 0;
- }
- } else {
- misfGridInit(grd_rscdexcellist);
- }
- ]]>
- </script>
- </select1>
- <caption id="cpt_uploadcnt" class="hand_search" visibility="hidden" style="left:565px; top:5px; width:100px; height:13px; ">작업 건수 :</caption>
- <output id="opt_uploadcnt" ref="/root/temp/uploadcnt" visibility="hidden" style="left:663px; top:3px; width:47px; height:19px; "/>
- <button id="button4" class="btn5_letter5" navindex="12" style="left:900px; top:3px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_rscdexcellist.rows - grd_rscdexcellist.fixedRows > 0 ) {
- var fileName = "";
- if( model.getValue(rdo_ifflag.attribute("ref")) == "E" )
- fileName = "ExcelList_"+getCurrentDate();
- else
- fileName = "보나에스List_"+getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_rscdexcellist.saveExcel(fileName, "sheet1");
- } else {
- messageBox("저장 데이터가","I004");
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_cost" class="btn_sw" group="tab" selected="true" style="left:0px; top:99px; width:149px; height:22px; ">
- <caption>Excel Data Mapping</caption>
- <toggle case="cse_costlist" ev:event="DOMActivate"/>
- </button>
- <button id="btn_excel" class="btn_sw" group="tab" selected="false" style="left:149px; top:99px; width:160px; height:22px; ">
- <caption>Excel Upload</caption>
- <toggle case="cse_goodlist" ev:event="DOMActivate"/>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:92px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
- <output id="opt_popinputcd" ref="/root/init/popinputcd" visibility="hidden" style="left:840px; top:3px; width:100px; height:19px; "/>
- <output id="opt_poptitle" ref="/root/init/poptitle" visibility="hidden" style="left:737px; top:3px; width:100px; height:19px; "/>
- <output id="opt_popcond" ref="/root/init/popcond" visibility="hidden" style="left:634px; top:3px; width:100px; height:19px; "/>
- <output id="opt_popformat" ref="/root/init/popformat" visibility="hidden" style="left:531px; top:3px; width:100px; height:19px; "/>
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|