123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>통합약품코드등록</xhtml:title>
- <model id="model1">
- <![CDATA[el/gooddetgoodexcellist"/>]]>
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <good>
- <goodlist/>
- </good>
- <gooddet>
- <gooddetlist/>
- <goodconstlist/>
- <goodinstlist/>
- </gooddet>
- <goodbaseqty>
- <goodbaseqtylist/>
- </goodbaseqty>
- <goodexcel>
- <gooddetgoodexcellist/>
- </goodexcel>
- <rscdpbns>
- <rscdpbnslist/>
- </rscdpbns>
- </list>
- <costhistinfolist>
- <appdd/>
- <rctpdisburseunitcost/>
- <medcarecalcscor/>
- <suplplcecd/>
- </costhistinfolist>
- <item/>
- <gooddet>
- <gooddetlist>
- </gooddetlist>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- </main>
- <send>
- <save>
- <goodlist/>
- <gooddetlist/>
- <setautoins>
- <setyn>N</setyn>
- </setautoins>
- <rscdpbnslist/>
- <goodbaseqtylist/>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <edicd/>
- <goodcd/>
- <mdlcd/>
- <spec/>
- <!--
- <prodcmpy/>
- <prodcmpynm/>
- -->
- <smlcd/>
- <model/>
- <mdlnm/>
- <lrgnm/>
- <smlnm/>
- <instflag/>
- <oldcd/>
- <asisgoodcd/>
- <suppcustcd/>
- <suppcustnm/>
- <delyn/>
- <contractyn/>
- <exfromdd/>
- <extodd/>
- <excurrenttime/>
- <exinstcd/>
- <chkdd/>
- <exactsearch/>
- <comnm/>
- <nonusegoodview/>
- <goodnmsearch/>
- <mngtcls/>
- <spread>
- <prodcmpycd/>
- <prodcmpynm/>
- <welfprt/>
- <statsflag/>
- <purccls/>
- <conflag/>
- <gnrlspcl/>
- <ascitflag/>
- <welfprtnm/>
- </spread>
- </goodlist>
- <gooddetlist>
- <goodcd/>
- <fromdd/>
- <useyn/>
- <instcd/>
- </gooddetlist>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- <goodbaseqty>
- <instcd/>
- <goodflag/>
- <goodcd/>
- </goodbaseqty>
- <rscdpbns>
- <goodcd/>
- <instcd/>
- <fromdd/>
- <goodflag/>
- </rscdpbns>
- <goodsearch>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <goodflag/>
- <refcond/>
- </goodsearch>
- </send>
- <init>
- <instflag>
- <label>기관</label>
- <value>Y</value>
- <label>전체</label>
- <value/>
- </instflag>
- <goodflag/>
- <deliveunit/>
- <reqprid/>
- <mngtflag/>
- <purcflag/>
- <instcd/>
- <proddrugsetflag/>
- <instnm/>
- <allsizeyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </allsizeyn>
- <tmpreqflag>
- <label>청구가능</label>
- <value>Y</value>
- <label>청구불가능</label>
- <value>N</value>
- </tmpreqflag>
- <radio2>
- <label>신청유</label>
- <value>Y</value>
- <label>신청무</label>
- <value>N</value>
- </radio2>
- <expnyn>
- <label>고가</label>
- <value>Y</value>
- <label>고가아님</label>
- <value>N</value>
- </expnyn>
- <keepmthd>
- <label>실온</label>
- <value>1</value>
- <label>냉소</label>
- <value>2</value>
- <label>냉장</label>
- <value>3</value>
- <label>냉동</label>
- <value>4</value>
- </keepmthd>
- <gnrlspcl>
- <label>전문</label>
- <value>1</value>
- <label>일반</label>
- <value>2</value>
- <label>공산품</label>
- <value>3</value>
- <label>의약외품</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- </gnrlspcl>
- <proddrugsetflag>
- <label>제제약</label>
- <value>1</value>
- </proddrugsetflag>
- <exactsearch>
- <label>일치</label>
- <value>Y</value>
- <label>포함</label>
- <value/>
- </exactsearch>
- <goodnmsearch>
- <label>영문명</label>
- <value>eng</value>
- <label>한글명</label>
- <value/>
- </goodnmsearch>
- <nonusegoodview>
- <label>포함</label>
- <value>Y</value>
- <label>제외</label>
- <value/>
- </nonusegoodview>
- <P0133list/>
- <P0142list/>
- <R0356list/>
- <ascitflag>
- <label>전체</label>
- <value/>
- <label>01</label>
- <value>단수</value>
- <label>02</label>
- <value>복수</value>
- </ascitflag>
- </init>
- <hidden/>
- <temp>
- <new/>
- </temp>
- <errinfo>
- <errgoodinfo/>
- </errinfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- //fCheckAuth();
- fGetCodeList();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodbaseqty" resultref="/root/main/list/goodbaseqty"/>
- <submission id="TRRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- <submission id="TRRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rscdpbns" resultref="/root/main/list/rscdpbns"/>
- <submission id="TXRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- <submission id="TRRSC05313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
- <submission id="TXRSC05308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodsearch" resultref="/root/init/main"/>
- <submission id="TRRSC05315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/errinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- fNodeInit();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/save/setautoins/setyn","N");
- misfGridIUD(grd_gooddetlist, "A");
- //인스턴스 시작은 숫자로 시작할수 없으므로 misfComboComCdListMulti를 이용하지 못함
- misfComboComCdList("030M0003",cmb_srchmngtcls);
- misfComboComCdList("030M0004",cmb_purccls_s); //구입분류
- misfComboComCdList("030R0004",cmb_statsflag_s); //통계구분
- misfComboComCdList("030M0002",cmb_conflag_s); //계약구분
-
- misfComboComCdListMulti("R0043,R0106,R0107,A0597","cmb_asetflag,cmb_plceordqtycretflag,cmb_plceordbase,cmb_gnrlspcl_s");
- addComboItem( "cmb_statsflag_s", "전체", "", "above" );
- addComboItem( "cmb_purccls_s", "전체", "", "above" );
- addComboItem( "cmb_conflag_s", "전체", "", "above" );
- addComboItem( "cmb_gnrlspcl_s", "전체", "", "above" );
- //물품구분별 재고관리부서 셋팅
- //rszfComboGridStockArthDeptcdList(grd_goodbaseqtylist, "reqdeptcd", getUserInfo("dutplceinstcd"),"P" );
- fSetinstData();
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
- model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- misfMsterDetailSet(grd_goodlist,null, "TRRSC05313" ,"Y");
- misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
- misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
- misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
- misfMsterDetailSet(grd_goodbaseqtylist,null, "TRRSC05305" ,"Y");
- misfMsterDetailSet(grd_rscdpbnslist,null, "TRRSC05403" ,"Y");
- // misfMsterDetailSet(grd_gooddetgoodexcellist, null, "TRRSC05402" , "N");
- model.setValue(ipt_goodflag.attribute("ref"),"PH");
- model.setValue(ipt_goodflag_search.attribute("ref"),"PH");
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
- /* 처방단위는 unit 기준정보를 다른걸로 사용한다. */
- //rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),"PH");
- /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
- rszfComboUnitList (cmb_purcunit,model.getValue(opt_instcd.attribute("ref")),"PH");
- misfComboCopyItemSet(cmb_purcunit, "", cmb_prcpunit, ""); //처방단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, ""); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, ""); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //수불단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_hospdrguunit, ""); //병원단위
- rbo_exactsearch1.select(1) ;
- btn_spread.visible = true;
- btn_fold.visible = false;
- grp_spread.visible = false;
- //grd_goodlist.explorerbar = "sortshow";
- //model.setFocus("ipt_goodcd");
- model.refresh();
- }
- function fSetinstData()
- {
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
- model.setValue("/root/send/gooddetlist/instcd", "031");
- model.setValue(opt_instcd.attribute("ref"), "031");
- if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
- }
- function fNodeInit() {
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_goodbaseqtylist);
- misfGridInit(grd_gooddetgoodexcellist);
- misfGridInit(grd_rscdpbnslist);
- }
- function fGetCodeList()
- {
- zbcfGetCodeList( new Array("P0133","P0142","R0356"), new Array("/root/init/P0133list","/root/init/P0142list","/root/init/R0356list"), true);
- addComboItem( "cmb_nonusetretresn", "-", "", "above" );
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
- fsetP0133listData();
- //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
- //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
- fsetP0142listData();
- }
- //보나에스 저장
- function fSaveRscdpbnsList()
- {
- if(getGridUpdateData(grd_rscdpbnslist) != "" )
- {
- // if(!checkKeyColumn("grd_rscdpbnslist"))return false;
- if( fBnsValidCheck()!= true ) return false;
- //misfSave("TXRSC05403");
- model.setValue("/root/send/save/rscdpbnslist", grd_rscdpbnslist.getUpdateData());
- submit("TXRSC05403");
- return true;
- }
- return false;
- }
- function fSaveGoodbaseQtyList()
- {
- if(getGridUpdateData(grd_goodbaseqtylist) != "" )
- {
- if( fBaseQtyValidCheck()!= true ) return false;
- model.setValue("/root/send/save/goodbaseqtylist", grd_goodbaseqtylist.getUpdateData());
- submit("TXRSD00101");
- return true;
- }
- return true;
- }
- //세부항목 조회시 기관코드 설정.
- function fInstcdSet()
- {
- //사용기관 선택이 안되어있을시..
- if(grd_instinfo.row < grd_instinfo.fixedRows)
- {
- grd_instinfo.row = grd_instinfo.fixedRows;
- }
- //model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
- model.setValue("/root/send/gooddetlist/instcd", "031");
- }
- // 화면 전체 조회
- function fRetrGoodList(nodecopy, detailYN) {
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
- ipt_goodcd.attribute("editable") = "false";
- fInstcdSet();
- fSetinstData();
- if ( detailYN == null )
- misfMsterDetailRetrieve2();
- //마스터 테이블에 데이터가 조회 되었을 경우에만 디테일 테이블 조회
- if ( grd_goodlist.rows > 1 )
- {
- var row = grd_goodlist.row;
- if ( row < 1 )
- row = 1;
- fSearchDetailData();
- model.setValue("/root/send/goodbaseqty/instcd", "031");
- model.setValue("/root/send/goodbaseqty/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodbaseqty/goodcd", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodcd")) );
- submit("TRRSC05305");
- if(nodecopy == true)fAfterRetrGoodList();
- }else{
- fNodeInit();
- }
- }
- //조회를 하고 난후 초기화
- function fSetlinit()
- {
- ipt_goodcd_search.value="";
- ipt_oldcd_search.value="";
- ipt_edicd_search.value="";
- ipt_goodnm_search.value="";
- ipt_bnscd_search.value="";
- //판매회사 초기화
- ipt_suppcustcd_search.value="";
- opt_suppcustnm_search.value="";
- //대분류 초기화
- ipt_lrgcd_search.value="";
- ipt_lrgnm_search.value="";
- //중분류 초기화
- ipt_mdlcd_search.value="";
- ipt_mdlnm_search.value="";
- //소분류 초기화
- ipt_smlcd_search.value="";
- ipt_smlnm_search.value="";
- }
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
- btn_save.disabled=true;
- rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;
- }
- function fCheckSaveData()
- {
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드는" ,"I003");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_amtacnt.attribute("ref")).length== 0 )
- {
- messageBox("비용계정은" ,"I003");
- model.setFocus("ipt_amtacnt");
- return false;
- }
- if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
- {
- messageBox("구매단위은" ,"I003");
- model.setFocus("cmb_purcunit");
- return false;
- }
- if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
- {
- messageBox("환산수량은" ,"I003");
- model.setFocus("ipt_exchqty");
- return false;
- }
- if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
- {
- messageBox("자산구분은" ,"I003");
- model.setFocus("cmb_asetflag");
- return false;
- }
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(cmb_nonusetretresn.attribute("ref")) == 0)
- {
- messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
- model.setFocus("cmb_nonusetretresn");
- return false;
- }
- if(model.getValue("/root/tmp/insertinfo/insertflag")=="i"){
- model.makeValue("/root/send/reqdata/goodcd",model.getValue(ipt_goodcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/insflag","Y");
- if(submit("TRRSC05315")){
- model.removeNodeset("/root/send/reqdata");
- var ChkGoodcd = model.getValue("/root/errinfo/errgoodinfo/goodcd");
- if(ChkGoodcd!=""){
- messageBox(ChkGoodcd+"은 이미 등록하신 코드","I009");
- model.setFocus("ipt_goodcd");
- return false;
- }
- }
- }
- return true;
- }
- function fAfterRetrGoodList()
- {
- if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
- grp_detail.refresh();
- grp_etcgood.refresh();
- grd_gooddetlist.row = 1;
- model.setFocus("ipt_goodcd");
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- //btn_prt.disabled = !checkAuth("P") ;
- }
- function fSetDataCopy(){
- if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
- misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
- grp_detail.refresh();
- }
- function fDefaultSetting()
- {
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
- model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , ipt_lrgcd_search.label);
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , ipt_mdlcd_search.label);
- model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlnm" , ipt_smlcd_search.label );
- // hbh
- //model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
- //배성미 선생님 요청, 약품등록은 의료원(001)으로만 등록 되도록 수정.
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
- model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
- model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,''); // 청구불가 셋팅. 'E'에서 변경
- model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231');
- model.setValue(grd_gooddetlist.nodeset + "/grupsnglflag", "S");
- model.setValue(grd_gooddetlist.nodeset + "/orginspplce", "01");
- model.setValue(grd_gooddetlist.nodeset + "/calcmthdcd", "-");
- }
- function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
- var node1 = instance1.selectNodes(ptarget_node + "/*");
- var node2 = instance1.selectNodes(psource_node + "/*");
- for (var i = 0; i < node1.length ; i++) {
- for (var j = 0; j < node2.length; j++) {
- if (node1.item(i).nodeName == node2.item(j).nodeName) {
- var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
- var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
- var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
- var copysource = psource_node + "/" + node2.item(j).nodeName;
- for (var k = 0; k < nextnode1.length; k++) {
- for (var p = 0; p < nextnode2.length; p++) {
- if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
- if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
- model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
- }
- }
- }
- }
- }
- }
- return false;
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- /*
- if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd_search");
- return false;
- }
- if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
- {
- messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
- model.setFocus("ipt_goodcd_search");
- return false;
- }
- */
- return true;
- }
- function fInstGoodCdCopy()
- {
- if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
- btn_insert.dispatch("DOMActivate");
- model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
- model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
- model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
- model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
- model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
- model.SetValue(ipt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
- model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
- model.SetValue(ipt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
- model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
- model.SetValue(ipt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
- model.refresh();
- model.setFocus("ipt_winacnt");
- }
- function fGoodCdCopy()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("ipt_mdlcd");
- return false;
- }
- model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
- model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
- submit("TRRSC05303");
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- if(goodcd.length == 0)goodcd = model.getValue(ipt_goodflag_search.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- grp_detail.refresh();
- }
- function fInsertGoodDataListCopy()
- {
- if(btn_instcd.selected == true)
- {
- if( grd_instinfo.row > (grd_instinfo.fixedRows - 1) )
- {
- grd_instinfo.dispatch("ondblclick");
- grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/gooddet/gooddetlist/instcd", getUserInfo("dutplceinstcd"));
- grd_gooddetlist.addStatus(grd_gooddetlist.row, "insert");
- // model.refresh();
- grp_detail.disabled = false;
- }else{
- messageBox("사용기관정보의 기관을 선택하신후 다시 작업해주세요.", "I999");
- }
- }else{
- messageBox("사용기관정보를 선택하신 후 다시 작업해주세요.", "I999");
- }
- }
- /*----------------------------------------------------------------
- * DRUGTYPE : 대분류 + 조영제 값을 체크하여 약국분류를 만듦
- reqflag = 'I' 이면 'I' else lrgcd
- ----------------------------------------------------------------*/
- function fSetDrugtype(pReqflag)
- {
- if (pReqflag == "I")
- opt_drugkind.value = pReqflag ;
- else
- opt_drugkind.value = ipt_lrgcd.value ;
- }
- function fupdatacheck()
- {
- var tempdd=grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd"));
- misfGridRowStatusChange(grd_gooddetlist, "/root/main/list/gooddet", "/root/main/gooddet");
- grd_gooddetlist.refresh();
- if(( getGridUpdateData(grd_gooddetlist)== "" ) && (getGridUpdateData(grd_rscdpbnslist)=="" )&& (getGridUpdateData(grd_goodbaseqtylist)=="" ))
- {
- messageBox("변경내역이 없습니다. ", "I999");
- return 6;
- }
- if(grd_gooddetlist.rowStatus(grd_gooddetlist.fixedRows) == 2 )
- {
- if(tempdd==grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd")))
- {
- var tempmag = (messageBox("적용일자가 변경되지않았습니다 새로운 적용일자로 입력하시겠습니까? ", "S999"));
- if(tempmag=="6" || tempmag=="2")
- {
- model.setFocus("ipt_fromdd");
- return 6;
- }
- }
- }
- model.refresh();
- }
- function fBnsValidCheck () {
- if( grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
- for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ ) {
- if( grd_rscdpbnslist.rowStatus(cnt) != 0 ) {
- if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscd")).length== 0 ) {
- messageBox("도매상코드를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("bnscd");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("exchqty")).length== 0 ) {
- messageBox("낱개수량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("exchqty");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("deliveunit")).length== 0 ) {
- messageBox("낱개단위를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("deliveunit");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("purcunit")).length== 0 ) {
- messageBox("포장단위를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("purcunit");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodunitcost")).length== 0 ) {
- messageBox("구입단가를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodunitcost");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodpurccost")).length== 0 ) {
- messageBox("구입가를 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodpurccost");
- return false;
- } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")).length== 0 ) {
- if ( model.getValue( ipt_goodcd.attribute("ref") ).length !=0 ) {
- grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
- } else {
- messageBox("약품품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
- }
- }
- }
- }
- return true;
- }
- function fBaseQtyValidCheck () {
- if( grd_goodbaseqtylist.rows- grd_goodbaseqtylist.fixedRows > 0) {
- for( cnt = grd_goodbaseqtylist.fixedRows; cnt < grd_goodbaseqtylist.rows; cnt++ ) {
- if( grd_goodbaseqtylist.rowStatus(cnt) != 0 ) {
- if(grd_goodbaseqtylist.valueMatrix(cnt, grd_goodbaseqtylist.colRef("reqdeptcd")).length== 0 ) {
- messageBox("재고관리부서 " ,"C002");
- grd_goodbaseqtylist.row = cnt;
- grd_goodbaseqtylist.col = grd_rscdpbnslist.colRef("reqdeptcd");
- return false;
- } /*else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("basevol")).length== 0 ) {
- messageBox("안전재고량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
- return false;
- } */
- else if(model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+cnt+"]/basevol") == '') {
- messageBox("안전재고량을 " ,"C002");
- grd_rscdpbnslist.row = cnt;
- grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
- return false;
- }
- }
- }
- }
- return true;
- }
- /** 2008.08.04 YYJ
- 상태에 따른 활성화 / 비활성화 설정 ( 보나에스 정보로 Setting 여부 )
- 보나에스 데이터 존재시 사용자 임의로 데이터를 수정 하지 못하고,
- 보나에스 Tab에서 데이터 지정하여 반영하기로 함.
- * 신규 입력시 직접 입력 가능하도록 풀어준다.
- ipt_exchqty // 낱개수량
- cmb_deliveunit // 낱개단위
- cmb_purcunit // 포장단위
- ipt_goodunitcost // 구입단가
- ipt_goodpurccost // 구입가
- 2008.08.24 YYJ
- 상세 화면에서 데이터 수정하더라도.. 보나에스 코드에 반영되도록 수정처리 함
- */
- function fBnsSetData( vStatus ) {
- ipt_exchqty.disabled = vStatus;
- cmb_deliveunit.disabled = vStatus;
- cmb_purcunit.disabled = vStatus;
- ipt_goodunitcost.disabled = vStatus;
- ipt_goodpurccost.disabled = vStatus;
- model.refresh();
- }
- function fsetP0133listData()
- {
- var ins = document.models( 0 ).instances( 0 );
- var P0133_nodelist = ins.selectNodes( "/root/init/P0133list/P0133" );
- var length = P0133_nodelist.length;
- for ( i=length-1; i>0; i-- )
- {
- var P0133_node = P0133_nodelist.item(i).childnodes;
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
- //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
- if( P0133_node.item(0).value != "-" && P0133_node.item(0).value != "1" && P0133_node.item(0).value != "4")
- {
- var pNode = P0133_nodelist.item(i).parentNode;
- pNode.removeChild(P0133_nodelist.item(i));
- }
- }
- }
- function fsetP0142listData()
- {
- var ins = document.models( 0 ).instances( 0 );
- var P0142_nodelist = ins.selectNodes( "/root/init/P0142list/P0142" );
- var length = P0142_nodelist.length;
- for ( i=length-1; i>0; i-- )
- {
- var P0142_node = P0142_nodelist.item(i).childnodes;
- //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
- //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
- if( P0142_node.item(0).value != "G" && P0142_node.item(0).value != "S" )
- {
- var pNode = P0142_nodelist.item(i).parentNode;
- pNode.removeChild(P0142_nodelist.item(i));
- }
- }
- }
- function misfMsterDetailRetrieve2()
- {
- var node = instance1.selectNodes("/root/gridset/mastdetailset/*");
- for (var i = 0; i <node.length ; i++)
- {
- var node_detail = node.item(i).childNodes;
- //master에 값이 없는 submit 만 실행
- if ( node_detail.item(1).value == "" )
- {
- var resetgridID = document.controls(node_detail.item(0).value);
- model.removeNodeset(resetgridID.nodeset);
- submit(node_detail.item(2).value);
- }
- }
- }
- function fSearchDetailData()
- {
- var row = grd_goodlist.row;
- if ( row < 1 )
- row = 1;
- grd_goodlist.rebuild();
- var goodcd = model.getValue("/root/main/list/good/goodlist["+row+"]/goodcd");
- var fromdd = model.getValue("/root/main/list/good/goodlist["+row+"]/fromdd");
- var useyn = model.getValue("/root/main/list/good/goodlist["+row+"]/useyn");
- var instcd = "031";
- model.setValue("/root/send/gooddetlist/goodcd", goodcd);
- model.setValue("/root/send/gooddetlist/fromdd", fromdd);
- model.setValue("/root/send/gooddetlist/useyn", useyn);
- model.setValue("/root/send/gooddetlist/instcd", instcd);
- var master_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/master");
- var current_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/current");
- var submit_id = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/submit");
-
- submit (submit_id);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:131px; height:14px; ">통합 약품코드등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:36px; width:90px; height:17px; ">EDI 코드 :</caption>
- <caption id="caption3" class="search_name" style="left:20px; top:8px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption8" class="search_name" style="left:839px; top:8px; width:83px; height:17px; ">대 분 류 :</caption>
- <caption id="caption10" class="search_name" style="left:455px; top:8px; width:83px; height:17px; ">약 품 명 :</caption>
- <caption id="caption61" class="search_name" style="left:839px; top:36px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption34" class="search_name" visibility="hidden" style="left:756px; top:60px; width:86px; height:17px; ">판매회사 :</caption>
- <caption id="caption39" class="search_name" style="left:839px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
- <line id="line1" class="line_4" style="x1:1109px; y1:13px; x2:1109px; y2:70px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="23" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- model.makeValue("/root/send/goodlist/instflag","M");
- fRetrGoodList(true);
- // fSetlinit(); 조회 후 초기화 취소 요청으로 제외 시킴
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="3" style="left:539px; top:8px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm_search.value = ipt_goodnm_search.currentText;
- ipt_goodnm_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_edicd_search" ref="/root/send/goodlist/edicd" class="input_search" navindex="6" style="left:109px; top:36px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_edicd_search.value = ipt_edicd_search.currentText;
- ipt_edicd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="1" imemode="disabled" maxlength="12" _chartype="upper" style="left:109px; top:8px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd_search.value = ipt_goodcd_search.currentText;
- ipt_goodcd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" navindex="7" maxlength="12" _chartype="upper" style="left:334px; top:36px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_oldcd_search.value = ipt_oldcd_search.currentText;
- ipt_oldcd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption82" class="search_name" style="left:250px; top:36px; width:91px; height:17px; ">구 코 드 :</caption>
- <input id="ipt_suppcustcd_search" ref="/root/send/goodlist/suppcustcd" class="input_default" visibility="hidden" style="left:1040px; top:60px; width:25px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_suppcustcd_search.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd_search.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd_search,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd_search" class="icon_search" visibility="hidden" style="left:1030px; top:60px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd_search,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="opt_suppcustnm_search" ref="/root/send/goodlist/suppcustnm" class="input_default" navindex="13" visibility="hidden" style="left:840px; top:60px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(opt_suppcustnm_search.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(opt_suppcustnm_search.attribute("ref")), "","suppcustcd,suppcustnm" ,opt_suppcustnm_search,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption40" class="search_name" style="left:21px; top:61px; width:86px; height:17px; ">연 번 :</caption>
- <input id="ipt_asisgoodcd_search" ref="/root/send/goodlist/asisgoodcd" class="input_search" navindex="10" _chartype="upper" style="left:109px; top:61px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_asisgoodcd_search.value=ipt_asisgoodcd_search.currentText;
- ipt_asisgoodcd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="rbo_exactsearch1" ref="/root/send/goodlist/exactsearch" navindex="2" appearance="full" cols="1" overflow="visible" style="left:200px; top:1px; width:45px; height:35px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/exactsearch">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption22" class="search_name" style="left:455px; top:36px; width:83px; height:17px; ">성 분 명 :</caption>
- <input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" navindex="8" style="left:539px; top:36px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_comnm_search.value = ipt_comnm_search.currentText;
- ipt_comnm_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption43" class="search_name" style="left:250px; top:61px; width:86px; height:17px; ">불용코드 :</caption>
- <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" navindex="11" appearance="full" cols="2" overflow="visible" style="left:334px; top:61px; width:91px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/nonusegoodview">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_goodnmsearch" ref="/root/send/goodlist/goodnmsearch" navindex="4" appearance="full" cols="1" overflow="visible" style="left:730px; top:1px; width:75px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/goodnmsearch">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="5" appearance="minimal" style="left:930px; top:8px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, "", "ipt_mdlcd_search", "", "M", "Y", "Y");
- ipt_mdlcd_search.value="";
- ipt_mdlcd_search.refresh();
- ipt_mdlcd_search.dispatch("xforms-value-changed");
- //model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:930px; top:61px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="9" appearance="minimal" style="left:930px; top:36px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, ipt_mdlcd_search.value, "ipt_smlcd_search", "", "S", "Y", "Y");
- ipt_smlcd_search.value="";
- //model.refresh();
- ipt_smlcd_search.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption64" class="search_name" style="left:456px; top:63px; width:86px; height:17px; ">관리분류:</caption>
- <select1 id="cmb_srchmngtcls" ref="/root/send/goodlist/mngtcls" navindex="12" appearance="minimal" style="left:540px; top:61px; width:185px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_spread" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_plus.gif; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_spread.visible = "true";
- btn_spread.visible = "false";
- btn_fold.visible = "true";
- ]]>
- </script>
- <caption/>
- </button>
- <button id="btn_fold" visibility="hidden" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_minus.gif; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/goodlist/spread");
- model.refresh();
- grp_spread.visible = "false";
- btn_spread.visible = "true";
- btn_fold.visible = "false";
- ]]>
- </script>
- <caption/>
- </button>
- </group>
- <line id="line7" class="line_1" style="x1:0px; y1:121px; x2:540; y2:121px; "/>
- <caption id="caption1" class="tit_2" style="left:550; top:106px; width:95px; height:13px; ">통합품목정보</caption>
- <switch id="sw_detail" style="left:0px; top:494px; width:540; height:240px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^변경사유^비고^보험단가^구입가^포장/포장단위^포장/포장단위^EDI코드^한글명^판매회사^todd^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 179, 325, 72, 71, 48, 54, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537px; height:201px; ">
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="nonusetretresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/R0356list/R0356">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt"/>
- <col ref="insucost" format="#,###" style="text-align:right; "/>
- <col ref="goodcost" format="#,###" style="text-align:right; "/>
- <col ref="purcqty" format="#,###" style="text-align:right; "/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="edicd"/>
- <col ref="goodnm"/>
- <col ref="suppcustnm"/>
- <col ref="todd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_costhistinfo.row > 0)
- {
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]");
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate()){
- ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- }else{
- ipt_nonusetretdd.attribute("background-color") = "#ffffff";
- }
- ipt_nonusetretdd.refresh();
- grp_detail.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case2">
- <group id="grp_etcgood" style="left:0px; top:28px; width:537; height:60px; ">
- <line id="line50" class="line_2" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <line id="line53" class="line_3" style="x1:0px; y1:47px; x2:537px; y2:47px; "/>
- <caption id="caption74" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
- <caption id="caption76" class="cell_1" style="left:268px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
- <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:110px; top:2px; width:156px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordbase">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption78" class="cell_1" style="left:0px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
- <input id="ipt_mmavguseqty" ref="/root/main/gooddet/gooddetlist/ddavguseqty" class="input_default" style="left:110px; top:27px; width:156px; height:19px; text-align:right; "/>
- <caption id="caption79" class="cell_1" style="left:268px; top:25px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
- <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:378px; top:27px; width:158px; height:19px; text-align:right; "/>
- <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:378px; top:2px; width:158px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordqtycretflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line4" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case4">
- <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" caption="기관코드^기관명" colsep="^" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537; height:201px; ">
- <col ref="instcd"/>
- <col ref="instnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_instinfo.row > (grd_instinfo.fixedRows-1) )
- {
- if ( grd_goodlist.row < 1 )
- model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
- else
- model.setValue("/root/send/gooddetlist/goodcd", grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")));
- model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
- model.setValue("/root/send/gooddetlist/useyn", 'Y');
- submit("TRRSC05302");
- fAfterRetrGoodList();
- //grp_detail.disabled = true;
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- </case>
- <case id="case5">
- <line id="line9" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/list/goodbaseqty/goodbaseqtylist" caption="재고관리부서^안전재고량^비고^INSTCD" colsep="^" colwidth="116, 101, 292, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:535px; height:201px; ">
- <col ref="reqdeptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="basevol" type="input" format="#,###" style="text-align:right; "/>
- <col ref="cmt" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- </datagrid>
- <button id="btn_grdadd2" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"A");
- //default setting
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/ddavguseqty" ,"0");
- ]]>
- </script>
- </button>
- <button id="btn_grddel2" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"D");
- ]]>
- </script>
- </button>
- </case>
- <case id="case6">
- <line id="line11" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
- <button id="button3" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscdpbnslist,"A");
- //default setting
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("instcd")) = model.getValue(opt_instcd.attribute("ref"));
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("prcpexchqty"))= "1";
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscdpbnslist,"D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_rscdpbnslist" nodeset="/root/main/list/rscdpbns/rscdpbnslist" caption="적용여부^도매상코드^처방환산^낱개수량^낱개단위^포장단위^구입단가^구입가^신코드" colsep="^" colwidth="56, 82, 21, 57, 62, 62, 91, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:535px; height:201px; ">
- <col ref="bnscheck" style="text-align:center; "/>
- <col ref="bnscd" type="input" _key="true" style="text-align:left; "/>
- <col ref="prcpexchqty" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="exchqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="purcunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodunitcost" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="goodpurccost" type="input" format="#,###.##" style="text-align:right; "/>
- <col ref="goodcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cnt = 0;
- if( grd_rscdpbnslist.row - grd_rscdpbnslist.fixedRows >= 0 &&
- grd_rscdpbnslist.col == grd_rscdpbnslist.colRef("bnscheck") &&
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) != '√' &&
- fBnsValidCheck() == true )
- {
- if(messageBox("도매상 코드로", "Q009") =='6')
- {
- opt_bnscd.value = grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscd"));
- /* 2008.08.04 YYJ 처방 환산은 보나에스에 종속적이지 않다고 하여 변경 */
- // ipt_prcpexchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("prcpexchqty"));
- ipt_exchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("exchqty"));
- cmb_deliveunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("deliveunit"));
- cmb_purcunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("purcunit"));
- ipt_goodunitcost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodunitcost"));
- ipt_goodpurccost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodpurccost"));
- for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ )
- {
- if( grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) == '√' )
- {
- grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) = "";
- break;
- }
- }
- grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) = '√'
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_insert" class="btn2_letter4" navindex="32" style="left:1128px; top:100px; width:64px; height:19px; ">
- <caption>신규입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfGridInit(grd_gooddetlist);
- ipt_goodcd.attribute("editable") = "true";
- fNodeInit();
- misfGridIUD(grd_gooddetlist, "A");
- fDefaultSetting();
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
- if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
- //model.refresh();
- model.setFocus("ipt_goodcd");
- grp_detail.disabled = false;
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
- model.makeValue("/root/tmp/insertinfo/insertflag","i");
- /* 2008 08 24 YYJ
- * 상세 화면에서 보나에스 정보를 수정 할 수 있도록 변경처리
- */
- // fBnsSetData(false);
- ]]>
- </script>
- </button>
- <button id="btn_choidel" class="btn2_letter6" visibility="hidden" style="left:820px; top:100px; width:86px; height:19px; ">
- <caption>선택행삭제x</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_gooddetlist, "D");
- misfGridIUD(grd_goodlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:472px; width:90px; height:22px; ">
- <caption>사용기관정보</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- </button>
- <button id="btn_addinfo" class="btn_sw" group="tab" style="left:89px; top:472px; width:90px; height:22px; ">
- <caption>부가입력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:472px; width:90px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <line id="line2" class="line_1" style="x1:545; y1:121px; x2:1195; y2:121px; "/>
- <button id="button2" class="btn_sw7" group="tab" style="left:271px; top:472px; width:90px; height:22px; ">
- <caption>안전재고량관리</caption>
- <toggle case="case5" ev:event="DOMActivate"/>
- </button>
- <button id="btn_excel" class="btn2_letter5" navindex="30" visibility="hidden" style="left:974px; top:100px; width:75px; height:19px; ">
- <caption>Excel 화면</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- submit("TRRSC05402");
- var fileName = window.fileDialog("save", ",", false, "약품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_gooddetgoodexcellist.saveExcel(fileName, "약품코드");
- }
- ]]>
- </script>
- </button>
- <button id="bbt_bonaes" class="btn_sw" visibility="hidden" group="tab" style="left:370px; top:472px; width:90px; height:22px; ">
- <caption>포장단위</caption>
- <toggle case="case6" ev:event="DOMActivate"/>
- </button>
- <button id="btn_openexcel" class="btn2_letter5" navindex="28" style="left:1051px; top:100px; width:75px; height:19px; ">
- <caption>Excel 조건</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue("/root/send/goodlist/exinstcd",getUserInfo("dutplceinstcd"));
- model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
- rdo_delyn.value = '';
- rdo_contractyn.value = '';
- group3.disabled = true;
- grp_detail.disabled = true;
- group2.visible = true;
- group2.disabled = false;
- /* 일자를 전체 check한다 */
- chkdd.value= "Y";
- chkdd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_main" class="btn_sw" group="maintab" selected="true" style="left:1px; top:98px; width:90px; height:22px; ">
- <caption>통합약품목록</caption>
- </button>
- <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" class="datagrid2" caption="약품코드^물품구분^약품명^EDI코드^함량/단위^대분류명^중분류명^소분류명" colsep="^" colwidth="85, 0, 211, 84, 72, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:126px; width:540px; height:342px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="goodnm" type="output" _key="true" style="text-align:left; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="goodspec"/>
- <col ref="lrgnm" style="text-align:center; "/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="asetflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var detailYN = "Y";
- fRetrGoodList(true, detailYN);
- // grp_detail.disabled = false;
- grd_goodlist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var detailYN = "Y";
- //fRetrGoodList(true, detailYN);
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_detail" style="left:545px; top:165px; width:650px; height:607px; ">
- <line id="line19" class="line_2" style="x1:0px; y1:336px; x2:649px; y2:336px; "/>
- <line id="line29" class="line_2" style="x1:0px; y1:143px; x2:649px; y2:143px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:362px; x2:649px; y2:362px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:167px; x2:649px; y2:167px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:191px; x2:649px; y2:191px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:386px; x2:649px; y2:386px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:410px; x2:649px; y2:410px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:433px; x2:649px; y2:433px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:215px; x2:649px; y2:215px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:458px; x2:649px; y2:458px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:239px; x2:649px; y2:239px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:510px; x2:649px; y2:510px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:22px; x2:649px; y2:22px; "/>
- <line id="line22" class="line_2" style="x1:0px; y1:263px; x2:649px; y2:263px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:71px; x2:649px; y2:71px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:265px; x2:649px; y2:265px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:95px; x2:649px; y2:95px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:119px; x2:649px; y2:119px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:604px; x2:649px; y2:604px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:584px; x2:649px; y2:584px; "/>
- <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" appearance="minimal" style="left:434px; top:219px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_asetflag");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodspec");
- // else model.setFocus("ipt_lrgcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:410px; top:585px; width:11px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodnm");
- else model.setFocus("ipt_goodengnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpycd" class="icon_search" style="left:174px; top:125px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">약 품 코 드</caption>
- <button id="btn_smlcd" class="icon_search" style="left:299px; top:221px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_lrgcd" class="icon_search" style="left:299px; top:198px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
- // fSetDrugtype(cmb_reqflag.value);
- fSetDrugtype();
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <caption id="caption52" class="cell_1" style="left:0px; top:48px; width:108px; height:23px; vertical-align:middle; ">한 글 상 품 명</caption>
- <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" editable="false" maxlength="12" _chartype="upper" style="left:110px; top:26px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- // event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="input_fix" appearance="input" style="left:110px; top:219px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
- "smlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ",," + model.getValue(ipt_smlnm.attribute("ref")),"","smlcd,smlnm" ,
- ipt_smlnm,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:193px; top:243px; width:129px; height:19px; "/>
- <input id="ipt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="input_s_essential" appearance="input" style="left:110px; top:195px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(ipt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm"
- ,ipt_lrgnm,"SPRSD00130","goodflag","ipt_goodflag");
- fSetDrugtype();
- //fSetDrugtype(cmb_reqflag.value);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption42" class="cell_1" style="left:0px; top:121px; width:108px; height:23px; vertical-align:middle; ">제 조 회 사</caption>
- <caption id="caption66" class="cell_1" style="left:0px; top:217px; width:108px; height:23px; vertical-align:middle; ">소 분 류</caption>
- <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:528px; top:243px; width:121px; height:19px; "/>
- <button id="btn_winacnt" class="icon_search" style="left:174px; top:245px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_mdlcd" class="icon_search" style="left:630px; top:197px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="input_fix" appearance="input" style="left:434px; top:195px; width:190px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref")),"","mdlcd,mdlnm" ,
- ipt_mdlnm,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption56" class="cell_1" style="left:334px; top:217px; width:98px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:241px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:193px; width:108px; height:23px; vertical-align:middle; ">대 분 류</caption>
- <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" visibility="hidden" style="left:110px; top:219px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm.attribute("ref"),"");
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + "," +
- model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_mdlcd");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_amtacnt" class="icon_search" style="left:503px; top:245px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" visibility="hidden" style="left:110px; top:195px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref"))+",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_asetflag");
- else model.setFocus("ipt_mdlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell_1" style="left:334px; top:241px; width:98px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
- <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" style="left:110px; top:243px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:334px; top:193px; width:98px; height:23px; vertical-align:middle; ">중 분 류</caption>
- <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" visibility="hidden" style="left:434px; top:195px; width:61px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:110px; top:123px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- // model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("cmb_prodplce");
- // else model.setFocus("ipt_goodmodel");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" imemode="alpha" maxlength="450" style="left:110px; top:75px; width:537px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
- // else model.setFocus("cmb_prodplce");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_s_essential" style="left:434px; top:243px; width:61px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_winacnt");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:193px; top:123px; width:129px; height:19px; "/>
- <caption id="caption55" class="cell_1" visibility="visible" style="left:334px; top:121px; width:98px; height:23px; vertical-align:middle; ">E D I 코 드</caption>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_s_essential" maxlength="30" style="left:110px; top:49px; width:537px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 한글명에 값셋팅한다.*/
- model.setValue(ipt_goodhngnm.attribute("ref"),ipt_goodnm.value);
- ]]>
- </script>
- </input>
- <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:361px; top:340px; width:84px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:338px; width:166px; height:23px; vertical-align:middle; ">낱개수량/낱개단위/포장단위</caption>
- <button id="btn_photinfo" class="btn2_letter2" style="left:207px; top:26px; width:42px; height:19px; ">
- <caption>사진</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //SPRSC00210
- rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- ]]>
- </script>
- </button>
- <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_s_essential" appearance="minimal" itemcount="20" style="left:256px; top:340px; width:84px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_deliveunit");
- else model.setFocus("ipt_minexch");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deliveunit = model.getValue("/root/main/gooddet/gooddetlist/deliveunit");
- model.setValue("/root/main/gooddet/gooddetlist/prcpunit", deliveunit);
- cmb_prcpunit.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_s_essential" maxlength="9" format="#,###" style="left:168px; top:340px; width:79px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("cmb_deliveunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(ipt_purcqty.attribute("ref"),model.getValue(ipt_exchqty.attribute("ref")));
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:0px; width:96px; height:19px; background-color:#ffffff; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromdd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ComFromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
- var ComPreFromdd = model.getValue("/root/main/gooddet/gooddetlist/prefromdd");
- if(ComFromdd < ComPreFromdd){
- messageBox("현 적용일자보다 이전일자로 변경할수", "I004");
- model.setValue(ipt_fromdd.attribute("ref"), ComPreFromdd);
- ipt_fromdd.refresh();
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:458px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var Todd = model.getValue("/root/main/gooddet/gooddetlist/todd");
- var ComTodd = model.getValue("/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]/todd");
- var Fromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
- var ComFromdd = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
- if(ComFromdd!=Fromdd){
- messageBox("이미 불용된 코드","I009");
- model.setValue("/root/main/gooddet/gooddetlist/todd",ComTodd);
- ipt_nonusetretdd.refresh();
- return;
- }
- ]]>
- </script>
- </input>
- <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:480px; width:538px; height:104px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_reqpsn");
- // else model.setFocus("ipt_lastpurcdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </textarea>
- <caption id="caption5" class="cell_1" style="left:0px; top:456px; width:108px; height:23px; vertical-align:middle; ">불 용 일 자</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:480px; width:108px; height:103px; vertical-align:middle; ">비 고</caption>
- <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:518px; top:147px; width:129px; height:19px; "/>
- <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:193px; top:147px; width:129px; height:19px; "/>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" disabled="true" style="left:434px; top:147px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- //if(event.shiftKey)model.setFocus("cmb_purcflag");
- //else model.setFocus("ipt_suppcustcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" disabled="true" style="left:175px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption67" class="cell_1" style="left:248px; top:363px; width:85px; height:23px; vertical-align:middle; ">처 방 단 가</caption>
- <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" disabled="true" maxlength="14.2" format="#,###.##" style="left:528px; top:366px; width:121px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <button id="btn_maincustlastsuplplce" class="icon_search" disabled="true" style="left:499px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption37" class="cell_1" style="left:0px; top:145px; width:108px; height:23px; vertical-align:middle; ">판 매 회 사</caption>
- <caption id="caption27" class="cell_1" style="left:334px; top:145px; width:98px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" disabled="true" style="left:110px; top:147px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="output_fix" visibility="hidden" _chartype="upper" disabled="true" maxlength="12" style="left:540px; top:75px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </output>
- <caption id="caption30" class="cell_1" visibility="hidden" style="left:467px; top:73px; width:70px; height:23px; vertical-align:middle; ">도매상코드</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:265px; width:108px; height:23px; vertical-align:middle; ">함량/함량단위</caption>
- <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:193px; top:267px; width:129px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell_1" style="left:334px; top:289px; width:98px; height:23px; vertical-align:middle; ">처방수량/단위</caption>
- <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" format="#,###.##" style="left:434px; top:270px; width:87px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption26" class="cell_1" style="left:0px; top:169px; width:108px; height:23px; vertical-align:middle; ">성 분</caption>
- <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" maxlength="10" style="left:110px; top:171px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" imemode="alpha" maxlength="450" _chartype="upper" style="left:434px; top:123px; width:214px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
- // else model.setFocus("cmb_prodplce");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption25" class="cell_1" style="left:0px; top:388px; width:56px; height:43px; vertical-align:middle; ">보 관 법</caption>
- <caption id="caption31" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">일 반/전 문</caption>
- <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" appearance="minimal" style="left:110px; top:97px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/gnrlspcl">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:320px; top:585px; width:20px; height:19px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>특별</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption48" class="cell_1" style="left:0px; top:363px; width:108px; height:23px; vertical-align:middle; ">수 가</caption>
- <caption id="caption49" class="cell_1" style="left:455px; top:363px; width:68px; height:23px; vertical-align:middle; ">구입단가</caption>
- <caption id="caption11" class="cell_1" style="left:334px; top:265px; width:98px; height:23px; vertical-align:middle; ">규격/규격단위</caption>
- <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" format="#,###.##" style="left:110px; top:267px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" appearance="full" cellspacing="20" cols="5" overflow="visible" style="left:110px; top:389px; width:235px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:528px; top:270px; width:121px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/specunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:45px; top:490px; width:14px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" style="left:350px; top:585px; width:15px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:528px; top:294px; width:121px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var prcpunit = model.getValue("/root/main/gooddet/gooddetlist/prcpunit");
- model.setValue("/root/main/gooddet/gooddetlist/deliveunit", prcpunit);
- cmb_deliveunit.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_default" format="#,###.##" style="left:110px; top:315px; width:130px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_insucost" ref="/root/main/gooddet/gooddetlist/insucost" class="input_default" maxlength="14.2" format="#,###.#" style="left:110px; top:366px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.#" style="left:335px; top:366px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <caption id="caption23" class="cell_1" style="left:334px; top:97px; width:98px; height:23px; vertical-align:middle; ">복지부 분류코드</caption>
- <input id="ipt_welfprt" ref="/root/main/gooddet/gooddetlist/welfprt" class="input_default" style="left:436px; top:97px; width:61px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
- else model.setFocus("cmb_mngtflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt,"SPRSD00290");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption28" class="cell_1" style="left:0px; top:432px; width:108px; height:23px; vertical-align:middle; ">제 제 약 여 부</caption>
- <caption id="cap_barcode" class="cell_1" style="left:325px; top:432px; width:98px; height:23px; vertical-align:middle; ">바 코 드</caption>
- <input id="ipt_barcode" style="left:427px; top:435px; width:222px; height:19px; "/>
- <button id="btn_welfprt" class="icon_search" style="left:499px; top:97px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_welfprt,"","welfprt,welfprtnm","SPRSD00290");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_welfprtnm" ref="/root/main/gooddet/gooddetlist/welfprtnm" class="input_default" style="left:518px; top:97px; width:129px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprtnm", "welfprtnm," + model.getValue(ipt_welfprtnm.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprtnm,"SPRSD00290");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:370px; top:585px; width:20px; height:19px; "/>
- <input id="ipt_comnm" ref="/root/main/gooddet/gooddetlist/comnm" class="input_default" style="left:200px; top:170px; width:446px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- ipt_comnm.visible = false;
- tar_comnm.visible = true;
- model.setFocus("tar_comnm");
- ]]>
- </script>
- </input>
- <select id="chk_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" overflow="visible" appearance="full" cols="1" style="left:110px; top:433px; width:210px; height:21px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/proddrugsetflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_proddrugsetflag.value.length == 0) model.setValue(chk_proddrugsetflag.attribute("ref"),"0");
- else model.setValue(chk_proddrugsetflag.attribute("ref"),"1");
- ]]>
- </script>
- </select>
- <input id="ipt_pemtkeepmthd" ref="/root/main/gooddet/gooddetlist/pemtkeepmthd" class="input_default" style="left:110px; top:412px; width:539px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:57px; top:388px; width:51px; height:21px; vertical-align:middle; ">실 제</caption>
- <caption id="caption19" class="cell_1" style="left:57px; top:410px; width:51px; height:21px; vertical-align:middle; ">설명서</caption>
- <caption id="caption36" class="cell_1" style="left:0px; top:313px; width:108px; height:23px; text-align:left; vertical-align:middle; ">처 방 환 산</caption>
- <caption id="caption38" class="cell_1" style="left:455px; top:388px; width:67px; height:23px; vertical-align:middle; ">구 입 가</caption>
- <input id="ipt_goodpurccost" ref="/root/main/gooddet/gooddetlist/goodpurccost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:528px; top:389px; width:121px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <input id="ipt_prcpqty" ref="/root/main/gooddet/gooddetlist/prcpqty" class="input_default" format="#,###" style="left:434px; top:294px; width:87px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_purcqty" ref="/root/main/gooddet/gooddetlist/purcqty" class="input_default" visibility="hidden" maxlength="9" format="#,###" style="left:10px; top:490px; width:24px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("cmb_deliveunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_essential" maxlength="12" _chartype="upper" style="left:326px; top:2px; width:91px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodcd");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell_1" style="left:252px; top:0px; width:70px; height:23px; vertical-align:middle; ">구 코 드</caption>
- <caption id="caption24" style="left:345px; top:340px; width:10px; height:20px; ">/</caption>
- <output id="opt_drugkind" ref="/root/main/gooddet/gooddetlist/drugkind" visibility="hidden" style="left:445px; top:585px; width:40px; height:19px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:46px; x2:649px; y2:46px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">영 문 상 품 명</caption>
- <line id="line20" class="line_2" style="x1:0px; y1:313px; x2:649px; y2:313px; "/>
- <select1 id="cmb_hospdrguunit" ref="/root/main/gooddet/gooddetlist/hospdrguunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:193px; top:291px; width:129px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_prcpunit/unitlist">
- <label ref="unitnm"/>
- <value ref="unit"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption14" class="cell_1" style="left:0px; top:289px; width:108px; height:23px; vertical-align:middle; ">병원용량/단위</caption>
- <input id="ipt_hospdrguvol" ref="/root/main/gooddet/gooddetlist/hospdrguvol" class="input_default" format="#,###.##" style="left:110px; top:291px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("rdo_reqflag");
- // else model.setFocus("ipt_plceordnonusedd");
- model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption16" class="cell_1" style="left:248px; top:313px; width:88px; height:23px; text-align:left; vertical-align:middle; ">수가계산방법</caption>
- <select1 id="cmb_calcmthdcd" ref="/root/main/gooddet/gooddetlist/calcmthdcd" class="combo_essential" appearance="minimal" style="left:335px; top:315px; width:110px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0133list/P0133">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_grupsnglflag" ref="/root/main/gooddet/gooddetlist/grupsnglflag" class="combo_essential" appearance="minimal" style="left:528px; top:315px; width:121px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0142list/P0142">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell_1" style="left:455px; top:313px; width:68px; height:23px; text-align:left; vertical-align:middle; ">그룹여부</caption>
- <caption id="caption9" class="cell_1" style="left:238px; top:456px; width:85px; height:23px; vertical-align:middle; ">변 경 사 유</caption>
- <textarea id="tar_comnm" ref="/root/main/gooddet/gooddetlist/comnm" visibility="hidden" style="left:200px; top:170px; width:446px; height:50px; ">
- <![CDATA[T]]>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- tar_comnm.visible = false;
- ipt_comnm.visible = true;
- ]]>
- </script>
- </textarea>
- <select1 id="cmb_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="combo_default" appearance="minimal" style="left:326px; top:458px; width:323px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0356list/R0356">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/main/gooddet/gooddetlist/shadelight" overflow="visible" appearance="full" rows="1" style="left:390px; top:390px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>차광</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <input id="input1" ref="/root/main/gooddet/gooddetlist/upperlimit" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:528px; top:340px; width:121px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <caption id="caption33" class="cell_1" style="left:455px; top:338px; width:68px; height:23px; vertical-align:middle; ">상한가</caption>
- <input id="ipt_asisgoodcd" ref="/root/main/gooddet/gooddetlist/asisgoodcd" class="input_s_essential" maxlength="8" _chartype="upper" style="left:546px; top:26px; width:101px; height:19px; "/>
- <caption id="caption59" class="cell_1" style="left:470px; top:24px; width:72px; height:23px; vertical-align:middle; ">연 번</caption>
- <input id="ipt_reprgoodcd" ref="/root/main/gooddet/gooddetlist/reprgoodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:357px; top:26px; width:111px; height:19px; "/>
- <caption id="caption32" class="cell_1" style="left:252px; top:24px; width:103px; height:23px; vertical-align:middle; ">약 품 대 표 코 드</caption>
- </group>
- <group id="group4" visibility="visible" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="24" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- //보나에스 저장.
- //fSaveRscdpbnsList();
- //안전재고량 저장
- if(fSaveGoodbaseQtyList() == false) return;
- //무슨 이유로 돌아가는지 모름!! 그래서 주석처리.
- //fSetDataCopy();
- //약품 내용 수정시 적용일자를 수정하지 않았을경우 매세지 창 띄워서 y/n확인
- if(fupdatacheck() == 6)
- {
- return;
- }
- model.refresh();
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
- misfSave("TXRSC05402");
- if(model.getValue("/root/tmp/insertinfo/insertflag")=="i"){
- model.removeNodeset("/root/tmp/insertinfo");
- }
- model.setValue("/root/send/goodlist/goodcd",model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
- fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" navindex="25" style="left:1125px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" navindex="27" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_prt" class="btn6_letter2" navindex="26" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:865px; top:4px; width:100px; height:19px; "/>
- <output id="opt_instcd" ref="/root/send/goodlist/instcd" visibility="hidden" style="left:765px; top:4px; width:100px; height:19px; "/>
- <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:705px; top:5px; width:45px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="goodcd^todd^prefromdd^instcd^useyn^fromdd^goodflag^edicd^goodnm^goodhngnm^goodengnm^goodspec^goodmodel^pregoodspec^pregoodmodel^asetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^proddrugsetflag^winacnt^winacntnm^amtacnt^amtacntnm^mainmngtdeptcd^mainmngtdeptnm^mainusedeptcd^stocmngtflag^purcunit^deliveunit^exchqty^minexch^reuseyn^divusenvalqty^calcscorinfoacptstat^calcscorinfoacptdd^edicd^reqdeptcd^reqdeptnm^reqpsn^reqpsnnm^reqflag^reqflagnm^reqmthd^reqprid^prodplce^prodcmpycd^prodcmpynm^maincustlastsuplplce^maincustlastsuplplcenm^suppcustcd^suppcustnm^conflag^fromconterm^toconterm^estmamt^forgncurncyunitcost^curncyunit^goodunitcost^purcflag^allsizeyn^setplceordflag^plceordbase^plceordqtycretflag^plceordnonusedd^addtaxrate^lastpurcdd^nonusetretresn^mngtflag^expnyn^cmt^cntsqty^ddavguseqty^mmavgusescheqty^mmavguseqty^prprtystocpossndayno^tmpreqflag^oldcd^bnscd^cntsunit^specvol^com^goodtype^narcflag^keepmthd^cntrdrugyn^expnyn^limdrugyn^gnrlspcl^specldrug^keeptemp^deliveunit^prcpunit^prcpexchqty^insucost^specunit^pemtkeepmthd^comnm^instcd^welfprt^welfprtnm^purcqty^prcpqty^csrusecmt^goodpurccost^drugkind^grupsnglflag^hospdrguvol^hospdrguunit^orginspplce^calcmthdcd^dupexpgoodcd^dupexpgoodcdold^dupexpgoodcdnm^shadelight^upperlimit^reprgoodcd^asisgoodcd^purccls^mngtcls^caption1" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:10px; top:235px; width:515px; height:85px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="todd" _key="true"/>
- <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
- <col ref="instcd" _key="true"/>
- <col ref="useyn"/>
- <col ref="fromdd"/>
- <col ref="goodflag"/>
- <col ref="edicd"/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="pregoodspec"/>
- <col ref="pregoodmodel"/>
- <col ref="asetflag" _key="true"/>
- <col ref="lrgcd" _key="true"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="proddrugsetflag"/>
- <col ref="winacnt" _key="true"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="mainmngtdeptcd" _key="true"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="mainusedeptcd"/>
- <col ref="stocmngtflag"/>
- <col ref="purcunit"/>
- <col ref="deliveunit"/>
- <col ref="exchqty"/>
- <col ref="minexch"/>
- <col ref="reuseyn"/>
- <col ref="divusenvalqty"/>
- <col ref="calcscorinfoacptstat"/>
- <col ref="calcscorinfoacptdd"/>
- <col ref="edicd"/>
- <col ref="reqdeptcd"/>
- <col ref="reqdeptnm"/>
- <col ref="reqpsn"/>
- <col ref="reqpsnnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="reqmthd" _key="true"/>
- <col ref="reqprid"/>
- <col ref="prodplce"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="maincustlastsuplplce" _key="true"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="conflag"/>
- <col ref="fromconterm"/>
- <col ref="toconterm"/>
- <col ref="estmamt"/>
- <col ref="forgncurncyunitcost"/>
- <col ref="curncyunit"/>
- <col ref="goodunitcost"/>
- <col ref="purcflag"/>
- <col ref="allsizeyn"/>
- <col ref="setplceordflag"/>
- <col ref="plceordbase"/>
- <col ref="plceordqtycretflag"/>
- <col ref="plceordnonusedd"/>
- <col ref="addtaxrate"/>
- <col ref="lastpurcdd"/>
- <col ref="nonusetretresn"/>
- <col ref="mngtflag"/>
- <col ref="expnyn"/>
- <col ref="cmt"/>
- <col ref="cntsqty"/>
- <col ref="ddavguseqty"/>
- <col ref="mmavgusescheqty"/>
- <col ref="mmavguseqty"/>
- <col ref="prprtystocpossndayno"/>
- <col ref="tmpreqflag"/>
- <col ref="oldcd"/>
- <col ref="bnscd"/>
- <col ref="cntsunit"/>
- <col ref="specvol"/>
- <col ref="com"/>
- <col ref="goodtype"/>
- <col ref="narcflag"/>
- <col ref="keepmthd"/>
- <col ref="cntrdrugyn"/>
- <col ref="expnyn"/>
- <col ref="limdrugyn"/>
- <col ref="gnrlspcl"/>
- <col ref="specldrug"/>
- <col ref="keeptemp"/>
- <col ref="deliveunit"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty"/>
- <col ref="insucost"/>
- <col ref="specunit"/>
- <col ref="pemtkeepmthd"/>
- <col ref="comnm"/>
- <col ref="instcd"/>
- <col ref="welfprt"/>
- <col ref="welfprtnm"/>
- <col ref="purcqty"/>
- <col ref="prcpqty"/>
- <col ref="csrusecmt"/>
- <col ref="goodpurccost"/>
- <col ref="drugkind"/>
- <col ref="grupsnglflag"/>
- <col ref="hospdrguvol"/>
- <col ref="hospdrguunit"/>
- <col ref="orginspplce"/>
- <col ref="calcmthdcd"/>
- <col ref="dupexpgoodcd"/>
- <col ref="dupexpgoodcdold"/>
- <col ref="dupexpgoodcdnm"/>
- <col ref="shadelight"/>
- <col ref="upperlimit"/>
- <col ref="reprgoodcd"/>
- <col ref="asisgoodcd"/>
- <col ref="purccls"/>
- <col ref="mngtcls"/>
- <col ref="statsflag"/>
- <col ref="ediunit"/>
- <col ref="ediexchqty"/>
- <col ref="ascitflag"/>
- </datagrid>
- <!--button id="btn_useinstinfo" class="btn2_letter7" style="left:770px; top:167px; width:97px; height:19px; ">
- <caption>타기관내용복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fInstGoodCdCopy();
- fInsertGoodDataListCopy();
- ]]>
- </script>
- </button-->
- <datagrid id="grd_gooddetgoodexcellist" nodeset="/root/main/list/goodexcel/gooddetgoodexcellist" visibility="hidden" autoresize="true" caption="기관명^적용일자^구코드^약품코드^보나에스 코드^한글상품명^일반/전문^복지부 분류코드^복지부 분류명^제조회사코드^제조회사명^EDI 코드^판매회사코드^판매회사명^주거래처코드^주거래처명^성분^성분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^자산구분^입고계정코드^입고계정^비용계정코드^비용계정^함량^함량단위^규격^규격단위^처방수량^처방단위^처방환산^낱개단위^환산^포장단위^보험단가^처방단가^구입단가^구입가^보관법 실 제^보관법 설명서^제제약여부^불용일자^불용사유^비고^관리부서코드^관리부서명^집계구분^집계구분명^재고관리기준^재고관리기준명^청구방법^청구방법명^임의청구여부^청구주기^청구주기명^중복제외대표코드^중복제외대표명칭^차광구분^상한가" colsep="^" colwidth="118, 95, 61, 72, 86, 118, 78, 102, 135, 92, 94, 61, 124, 114, 90, 97, 101, 68, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 100, 122, 100, 100, 100, 100, 104, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:10px; top:350px; width:515px; height:95px; ">
- <col ref="instnm"/>
- <col ref="fromdd" style="left:400px; top:23px; width:107px; height:48px; "/>
- <col ref="oldcd"/>
- <col ref="goodcd" _key="true"/>
- <col ref="bnscd"/>
- <col ref="goodnm"/>
- <col ref="gnrlspcl"/>
- <col ref="welfprt"/>
- <col ref="welfprtnm"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="edicd"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="maincustlastsuplplce" _key="true"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="com"/>
- <col ref="comnm"/>
- <col ref="lrgcd" _key="true"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="asetflag" _key="true"/>
- <col ref="winacnt" _key="true"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="cntsqty"/>
- <col ref="cntsunit"/>
- <col ref="specvol"/>
- <col ref="specunit"/>
- <col ref="prcpqty"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty"/>
- <col ref="exchqty"/>
- <col ref="deliveunit"/>
- <col ref="purcunit"/>
- <col ref="insucost"/>
- <col ref="estmamt"/>
- <col ref="goodunitcost"/>
- <col ref="goodcost"/>
- <col ref="keepmthd"/>
- <col ref="pemtkeepmthd"/>
- <col ref="proddrugsetflag"/>
- <col ref="todd" _key="true"/>
- <col ref="nonusetretresn"/>
- <col ref="cmt"/>
- <col ref="mainmngtdeptcd" _key="true"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="stocmngtflag"/>
- <col ref="stocmngtflagnm"/>
- <col ref="reqmthd"/>
- <col ref="reqmthdnm"/>
- <col ref="tmpreqflag"/>
- <col ref="reqprid"/>
- <col ref="reqpridnm"/>
- <col ref="dupexpgoodcd"/>
- <col ref="dupexpgoodcdnm"/>
- <col ref="shadelight"/>
- <col ref="upperlimit"/>
- </datagrid>
- <group id="group2" visibility="hidden" style="left:645px; top:165px; width:545px; height:100px; ">
- <!-- <group id="group2" visibility="hidden" style="left:100px; top:165px; width:545px; height:100px; ">-->
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:545px; height:100px; border-color:#ff9900; border-width:2px; "/>
- <caption id="cap_delyn" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">삭제여부 :</caption>
- <caption id="cap_contractyn" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">계약여부 :</caption>
- <caption id="cap_exfromdd" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">적용일자 :</caption>
- <select1 id="rdo_delyn" ref="/root/send/goodlist/delyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:105px; top:15px; width:275px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>삭제품목제외</label>
- <value>N</value>
- </item>
- <item>
- <label>삭제품목만</label>
- <value>Y</value>
- </item>
- <item>
- <label>전체품목</label>
- <value/>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_delyn.value == 'Y')
- {
- cap_exfromdd.value = '삭제일자 :';
- }else{
- cap_exfromdd.value = '적용일자 :';
- }
- ]]>
- </script>
- </select1>
- <select1 id="rdo_contractyn" ref="/root/send/goodlist/contractyn" appearance="full" cellspacing="58" cols="2" overflow="visible" style="left:105px; top:40px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>계약품목</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_exfromdd" ref="/root/send/goodlist/exfromdd" class="input_s_essential" inputtype="date" style="left:175px; top:65px; width:110px; height:19px; "/>
- <input id="ipt_extodd" ref="/root/send/goodlist/extodd" class="input_s_essential" inputtype="date" style="left:307px; top:65px; width:110px; height:19px; "/>
- <caption id="caption" style="left:290px; top:65px; width:15px; height:20px; ">~</caption>
- <button id="btn_excelsave" class="btn5_letter5" navindex="29" style="left:460px; top:15px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- var filenm = "약품코드List";
- var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (localfile != "") {
- var param = "&instcd=" + model.getValue("/root/send/goodlist/instcd");
- param += "&delyn=" + model.getValue("/root/send/goodlist/delyn");
- param += "&contractyn=" + model.getValue("/root/send/goodlist/contractyn");
- param += "&exfromdd=" + model.getValue("/root/send/goodlist/exfromdd");
- param += "&extodd=" + model.getValue("/root/send/goodlist/extodd");
- param += "&excurrenttime=" + model.getValue("/root/send/goodlist/excurrenttime");
- model.download(getActionURL("TRRSC05404") + param, localfile, true);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_excurrenttime" ref="/root/send/goodlist/excurrenttime" visibility="hidden" style="left:340px; top:40px; width:100px; height:19px; "/>
- <button id="btn_close" class="btn4_letter2" navindex="31" style="left:480px; top:70px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_exfromdd.attribute("ref"), reqdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_extodd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
- cap_exfromdd.value = "적용일자 :";
- rdo_delyn.value = '';
- rdo_contractyn.value = '';
- group3.disabled = false;
- grp_detail.disabled = false;
- group2.visible = false;
- group2.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chkdd" ref="/root/send/goodlist/chkdd" overflow="visible" appearance="full" rows="1" style="left:105px; top:65px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( chkdd.value == "Y" )
- {
- model.setValue(ipt_exfromdd.attribute("ref"), '19000101' );
- model.setValue(ipt_extodd.attribute("ref"), '99991231');
- ipt_exfromdd.disabled = true;
- ipt_extodd.disabled = true;
- }
- else
- {
- ipt_exfromdd.disabled = false;
- ipt_extodd.disabled = false;
- }
- ]]>
- </script>
- </select>
- </group>
- <group id="grp_spread" visibility="hidden" style="left:0px; top:138px; width:1080px; height:75px; ">
- <shape id="roundrect11" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1078px; height:73px; "/>
- <output id="opt_welfprtnm_s" ref="/root/send/goodlist/spread/welfprtnm" class="output_fix" editable="false" style="left:617px; top:7px; width:129px; height:19px; "/>
- <input id="ipt_welfprt_s" ref="/root/send/goodlist/spread/welfprt" class="input_default" navindex="16" style="left:535px; top:6px; width:61px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_welfprt_s.value == "") {
- opt_welfprtnm_s.value = "";
- } else {
- rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt_s.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt_s,"SPRSD00290");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="button1" class="icon_search" navindex="15" style="left:178px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd_s,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption41" class="search_name" style="left:815px; top:5px; width:110px; height:23px; vertical-align:middle; ">통 계 구 분 :</caption>
- <caption id="caption44" class="search_name" style="left:20px; top:6px; width:100px; height:17px; vertical-align:middle; ">제조회사 :</caption>
- <select1 id="cmb_statsflag_s" ref="/root/send/goodlist/spread/statsflag" navindex="18" appearance="minimal" style="left:925px; top:5px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <!--
- <choices>
- <itemset nodeset="/root/init/cmb_statsflag_s/comcodelist">
- <label ref="cdid"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- -->
- </select1>
- <caption id="caption45" class="search_name" style="left:20px; top:40px; width:105px; height:17px; vertical-align:middle; ">구입분류 :</caption>
- <select1 id="cmb_purccls_s" ref="/root/send/goodlist/spread/purccls" navindex="19" appearance="minimal" style="left:114px; top:40px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <!--
- <choices>
- <itemset nodeset="/root/init/cmb_purccls_s/comcodelist">
- <label ref="cdid"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- -->
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption46" class="search_name" style="left:400px; top:6px; width:130px; height:17px; vertical-align:middle; ">복지부 분류코드 :</caption>
- <select1 id="cmb_conflag_s" ref="/root/send/goodlist/spread/conflag" navindex="20" appearance="minimal" style="left:375px; top:40px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <!--
- <choices>
- <itemset nodeset="/root/init/cmb_purcflag_s/comcodelist">
- <label ref="cdid"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- -->
- </select1>
- <caption id="caption47" class="search_name" style="left:279px; top:40px; width:100px; height:17px; vertical-align:middle; ">계약구분 :</caption>
- <select1 id="cmb_gnrlspcl_s" ref="/root/send/goodlist/spread/gnrlspcl" navindex="21" appearance="minimal" style="left:640px; top:40px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <!--
- <choices>
- <itemset nodeset="/root/init/cmb_gnrlspcl_s/comcodelist">
- <label ref="cdid"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- -->
- </select1>
- <caption id="caption51" class="search_name" style="left:546px; top:40px; width:100px; height:17px; vertical-align:middle; ">일반/전문 :</caption>
- <select1 id="cmb_ascitflag_s" ref="/root/send/goodlist/spread/ascitflag" navindex="22" appearance="minimal" style="left:958px; top:40px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>단수</label>
- <value>01</value>
- </item>
- <item>
- <label>복수</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption54" class="search_name" style="left:846px; top:40px; width:120px; height:17px; vertical-align:middle; ">단/복수 여부 :</caption>
- <button id="button5" class="icon_search" navindex="17" style="left:598px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_welfprt_s,"","welfprt,welfprtnm","SPRSD00290");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_prodcmpycd_s" ref="/root/send/goodlist/spread/prodcmpycd" class="input_default" navindex="14" style="left:114px; top:6px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( ipt_prodcmpycd_s.value == "" ) {
- opt_prodcmpynm_s.value = "";
- } else {
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd_s.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd_s,"SPRSD00160","","");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("cmb_prodplce");
- // else model.setFocus("ipt_goodmodel");
- }
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm_s" ref="/root/send/goodlist/spread/prodcmpynm" class="output_fix" appearance="output" style="left:197px; top:6px; width:129px; height:19px; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- btn_fold.dispatch("onclick");
- ]]>
- </script>
- </group>
- </xhtml:body>
- </xhtml:html>
|