123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>물품코드등록(약국)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <good>
- <goodlist/>
- </good>
- <gooddet>
- <gooddetlist/>
- <goodconstlist/>
- <goodinstlist/>
- </gooddet>
- <goodbaseqty>
- <goodbaseqtylist/>
- </goodbaseqty>
- <goodexcel>
- <gooddetgoodexcellist/>
- </goodexcel>
- <rscdpbns>
- <rscdpbnslist/>
- </rscdpbns>
- </list>
- <costhistinfolist>
- <appdd/>
- <rctpdisburseunitcost/>
- <medcarecalcscor/>
- <suplplcecd/>
- </costhistinfolist>
- <item/>
- <gooddet>
- <gooddetlist>
- </gooddetlist>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- </main>
- <send>
- <save>
- <goodlist/>
- <gooddetlist/>
- <setautoins>
- <setyn>N</setyn>
- </setautoins>
- <rscdpbnslist/>
- <goodbaseqtylist/>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <edicd/>
- <goodcd/>
- <mdlcd/>
- <spec/>
- <prodcmpy/>
- <smlcd/>
- <model/>
- <mdlnm/>
- <lrgnm/>
- <smlnm/>
- <prodcmpynm/>
- <instflag/>
- <oldcd/>
- <bnscd/>
- <suppcustcd/>
- <suppcustnm/>
- <delyn/>
- <contractyn/>
- <exfromdd/>
- <extodd/>
- <excurrenttime/>
- <exinstcd/>
- <chkdd/>
- <exactsearch/>
- <comnm/>
- <nonusegoodview/>
- </goodlist>
- <gooddetlist>
- <goodcd/>
- <fromdd/>
- <useyn/>
- <instcd/>
- </gooddetlist>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- <goodbaseqty>
- <instcd/>
- <goodflag/>
- <goodcd/>
- </goodbaseqty>
- <rscdpbns>
- <goodcd/>
- <instcd/>
- <fromdd/>
- <goodflag/>
- </rscdpbns>
- </send>
- <init>
- <instflag>
- <label>기관</label>
- <value>Y</value>
- <label>전체</label>
- <value/>
- </instflag>
- <goodflag/>
- <deliveunit/>
- <reqprid/>
- <mngtflag/>
- <purcflag/>
- <instcd/>
- <proddrugsetflag/>
- <instnm/>
- <allsizeyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </allsizeyn>
- <tmpreqflag>
- <label>청구가능</label>
- <value>Y</value>
- <label>청구불가능</label>
- <value>N</value>
- </tmpreqflag>
- <radio2>
- <label>신청유</label>
- <value>Y</value>
- <label>신청무</label>
- <value>N</value>
- </radio2>
- <expnyn>
- <label>고가</label>
- <value>Y</value>
- <label>고가아님</label>
- <value>N</value>
- </expnyn>
- <keepmthd>
- <label>실온</label>
- <value>1</value>
- <label>냉소</label>
- <value>2</value>
- <label>냉장</label>
- <value>3</value>
- <label>냉동</label>
- <value>4</value>
- </keepmthd>
- <gnrlspcl>
- <label>전문</label>
- <value>1</value>
- <label>일반</label>
- <value>2</value>
- <label>공산품</label>
- <value>3</value>
- <label>의약외품</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- </gnrlspcl>
- <proddrugsetflag>
- <label>제제약</label>
- <value>1</value>
- </proddrugsetflag>
- <exactsearch>
- <label>일치</label>
- <value>Y</value>
- <label>포함</label>
- <value/>
- </exactsearch>
- <nonusegoodview>
- <label>포함</label>
- <value>Y</value>
- <label>제외</label>
- <value/>
- </nonusegoodview>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
- <submission id="TXRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodbaseqty" resultref="/root/main/list/goodbaseqty"/>
- <submission id="TRRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- <submission id="TRRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rscdpbns" resultref="/root/main/list/rscdpbns"/>
- <submission id="TXRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 2008년 1월 9일 from : 송광호.
- 보험정보(보험여부 EDI) 을 삭제.
- 이유 : 구조상 사용되지 않는 부분이라 황병현과장님의 요청으로 컨트롤 삭제.
- */
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- /*
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_goodbaseqtylist);
- misfGridInit(grd_gooddetgoodexcellist);
- misfGridInit(grd_rscdpbnslist);
- */
- fNodeInit();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/save/setautoins/setyn","N");
-
- misfGridIUD(grd_gooddetlist, "A");
-
- misfComboComCdListMulti("R0092,R0043,R0069,R0106,R0093,R0107","cmb_reqmthd,cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase");
- //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
- rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"2","P" );
-
- //rszfComboAppendChild("cmb_reqflag","청구불가","");
- addComboItem( "cmb_reqflag", "집계안함", "", "above" );
-
-
- rszfComboGridStockArthDeptcdList(grd_goodbaseqtylist, "reqdeptcd", getUserInfo("dutplceinstcd"),"P" );
-
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
- //var instcd = getUserInfo("dutplceinstcd");
- //var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
- if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
-
-
- model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- misfMsterDetailSet(grd_goodlist,null, "TRRSC05301" ,"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"),"P");
- model.setValue(ipt_goodflag_search.attribute("ref"),"P");
-
- /* 처방단위는 unit 기준정보를 다른걸로 사용한다. */
- rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),"D");
-
- /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
- rszfComboUnitList (cmb_purcunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(ipt_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, ""); //규격단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, ""); //함량단위
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //수불단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdpbnslist, "deliveunit"); //수불단위
- misfComboCopyItemSet(cmb_purcunit, "", grd_rscdpbnslist, "purcunit"); //발주단위
-
-
- // 물품구분별 권한
- fSetGoodFlagAuth();
- rbo_instflag.select(0);
- // model.setValue(rbo_instflag.attribute("ref"), "Y");
- rbo_exactsearch1.select(1)
- // model.setValue(rbo_exactsearch1.attribute("ref"), "Y");
- grd_goodlist.explorerbar = "sortshow";
- model.setFocus("ipt_goodcd");
- model.refresh();
- }
-
- function fNodeInit() {
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_goodbaseqtylist);
- misfGridInit(grd_gooddetgoodexcellist);
- misfGridInit(grd_rscdpbnslist);
- }
-
- //보나에스 저장
- function fSaveRscdpbnsList()
- {
- if(getGridUpdateData(grd_rscdpbnslist) != "" )
- {
- // if(!checkKeyColumn("grd_rscdpbnslist"))return false;
- if( fBnsValidCheck()!= true ) return false;
- //misfSave("TXRSC05403");
- model.setValue("/root/send/save/rscdpbnslist", grd_rscdpbnslist.getUpdateData());
- submit("TXRSC05403");
- return true;
- }
- return false;
- }
-
- function fSaveGoodbaseQtyList()
- {
-
- if(getGridUpdateData(grd_goodbaseqtylist) != "" )
- {
-
- if( fBaseQtyValidCheck()!= true ) return false;
- model.setValue("/root/send/save/goodbaseqtylist", grd_goodbaseqtylist.getUpdateData());
- submit("TXRSD00101");
- return true;
- }
-
-
- return true;
- }
-
- //세부항목 조회시 기관코드 설정.
- function fInstcdSet()
- {
- if(rbo_instflag.value == 'Y')
- {
- model.setValue("/root/send/gooddetlist/instcd", opt_instcd.value);
- }else{
-
- //사용기관 선택이 안되어있을시..
- if(grd_instinfo.row < grd_instinfo.fixedRows)
- {
- grd_instinfo.row = grd_instinfo.fixedRows;
- }
- model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
- }
-
- }
-
-
- // 화면 전체 조회
- function fRetrGoodList(nodecopy) {
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
-
- fInstcdSet();
-
- misfMsterDetailRetrieve();
- model.setValue("/root/send/goodbaseqty/instcd", model.getValue(opt_instcd.attribute("ref")));
- model.setValue("/root/send/goodbaseqty/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodbaseqty/goodcd", model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
-
- submit("TRRSC05305");
-
-
- //보나에스 코드 조회.
- //보나에스 코드 조회하기 위해 조회값 goodcd 설정. 물품 코드는 통합 Master RSCMGOOD의 코드 ( grd_goodlist )의 값
- model.setValue("/root/send/rscdpbns/goodcd", grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")) );
-
- // if( grd_gooddetlist.rows- grd_gooddetlist.fixedRows > 0 )
- // grd_gooddetlist.row = grd_gooddetlist.fixedRows + 1;
- //보나에스 코드 조회하기 위해 조회값 goodcd 설정. 기관내에 물품 코드가 존재한다면 Detail의 값으로 조회
- /*
- model.setValue("/root/send/rscdpbns/fromdd", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("fromdd")) );
- model.setValue("/root/send/rscdpbns/instcd", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) );
- model.setValue("/root/send/rscdpbns/goodflag", grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("goodflag")) );
- */
- model.setValue("/root/send/rscdpbns/fromdd", model.getValue("/root/main/list/gooddet/gooddetlist/fromdd") );
- model.setValue("/root/send/rscdpbns/instcd", model.getValue("/root/main/list/gooddet/gooddetlist/instcd") );
- model.setValue("/root/send/rscdpbns/goodflag", model.getValue("/root/main/list/gooddet/gooddetlist/goodflag") );
-
- submit("TRRSC05403");
- model.recalculate(); //jhj 잠시 주석
- //fAfterRetrGoodList();
- if(nodecopy == true)fAfterRetrGoodList();
- // 보나에스 데이터 존재시
- if (grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
- /* 2008 08 24 YYJ
- * 상세 화면에서 보나에스 정보를 수정 할 수 있도록 변경처리
- */
- // fBnsSetData(true);
- // 보나에스 코드가 2개 이상일 경우 보나에스(포장단위)Tab 활성화
- if (grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 1) {
- bbt_bonaes.dispatch("DOMActivate");
- bbt_bonaes.selected="true";
- }
- }
-
- //else if( nodecopy == false)btn_insert.dispatch("DOMActivate");
-
- }
-
- //조회를 하고 난후 초기화
- function fSetlinit()
- {
- ipt_goodcd_search.value="";
- ipt_oldcd_search.value="";
- ipt_edicd_search.value="";
- ipt_goodnm_search.value="";
- ipt_bnscd_search.value="";
- //판매회사 초기화
- ipt_suppcustcd_search.value="";
- opt_suppcustnm_search.value="";
- //대분류 초기화
- ipt_lrgcd_search.value="";
- ipt_lrgnm_search.value="";
- //중분류 초기화
- ipt_mdlcd_search.value="";
- ipt_mdlnm_search.value="";
- //소분류 초기화
- ipt_smlcd_search.value="";
- ipt_smlnm_search.value="";
-
- }
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
- btn_save.disabled=true;
- rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
- /*
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품코드명은" ,"I003");
- model.setFocus("ipt_goodnm");
- return false;
- }
- */
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드는" ,"I003");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_amtacnt.attribute("ref")).length== 0 )
- {
- messageBox("비용계정은" ,"I003");
- model.setFocus("ipt_amtacnt");
- return false;
- }
-
- if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
- {
- messageBox("주관리부서는" ,"I003");
- model.setFocus("ipt_mngtdeptcd");
- return false;
- }
- //hbh
- if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
- {
- messageBox("청구방법은" ,"I003");
- model.setFocus("cmb_reqmthd");
- return false;
- }
-
-
- if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
- {
- messageBox("구매단위은" ,"I003");
- model.setFocus("cmb_purcunit");
- return false;
- }
-
- if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
- {
- messageBox("환산수량은" ,"I003");
- model.setFocus("ipt_exchqty");
- return false;
- }
- /*
- if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
- {
- messageBox("불출단위는" ,"I003");
- model.setFocus("cmb_deliveunit");
- return false;
- }
- */
- if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
- {
- messageBox("재고관리기준은" ,"I003");
- model.setFocus("cmb_stocmngtflag");
- return false;
- }
-
- if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
- {
- messageBox("자산구분은" ,"I003");
- model.setFocus("cmb_asetflag");
- return false;
- }
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(ipt_nonusetretresn.attribute("ref")) == 0)
- {
- messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
- model.setFocus("ipt_nonusetretresn");
- return false;
- }
-
- // if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_fromconterm");
- // return false;
- //
- // }
- //
- // if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_toconterm");
- // return false;
- // }
- //
- for(var i = grd_costhistinfo.fixedRows; i < grd_costhistinfo.rows; i++)
- {
- if(grd_costhistinfo.valueMatrix(i, grd_costhistinfo.colRef("fromdd")) == ipt_fromdd.value)
- {
- messageBox("이력정보에 등록 되어있는 날짜","I009");
- model.setFocus("ipt_fromdd");
- return false;
- }
-
- }
- return true;
- }
-
- function fAfterRetrGoodList()
- {
- if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
-
- grp_detail.refresh();
- grp_etcgood.refresh();
-
- grd_gooddetlist.row = 1;
-
- model.setFocus("ipt_goodcd");
- }
-
- function fCheckAuth() {
-
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- //btn_prt.disabled = !checkAuth("P") ;
- }
-
- function fSetDataCopy(){
- if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
- misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
- grp_detail.refresh();
- }
- function fDefaultSetting()
- {
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
- model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(ipt_lrgnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(ipt_mdlnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlnm" , model.getValue(ipt_smlnm_search.attribute("ref")));
- // hbh
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
- model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
- model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,''); // 청구불가 셋팅. 'E'에서 변경
- model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N');
- model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231');
- }
-
- 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;
- }
-
- 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();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1373;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">약품코드등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:43px; width:90px; height:17px; ">EDI 코드 :</caption>
- <caption id="caption3" class="search_name" style="left:245px; top:22px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption8" class="search_name" style="left:769px; top:22px; width:83px; height:17px; ">대 분 류 :</caption>
- <caption id="caption10" class="search_name" style="left:471px; top:22px; width:83px; height:17px; ">약 품 명 :</caption>
- <caption id="caption61" class="search_name" style="left:769px; top:43px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption34" class="search_name" style="left:471px; top:65px; width:86px; height:17px; ">판매회사 :</caption>
- <caption id="caption39" class="search_name" style="left:769px; top:65px; 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="7" 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;
- fRetrGoodList(true);
- // fSetlinit(); 조회 후 초기화 취소 요청으로 제외 시킴
-
- ]]>
- </script>
- </button>
- <input id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" class="input_search" style="left:855px; top:22px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag_search.attribute("ref")) +"," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," ,"","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","ipt_goodflag_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_lrgcd_search" class="icon_search" style="left:915px; top:22px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgnm_search" ref="/root/send/goodlist/lrgnm" class="input_search" style="left:935px; top:22px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_lrgnm_search.value != "" )
- {
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(ipt_goodflag_search.attribute("ref")) +",," + model.getValue(ipt_lrgnm_search.attribute("ref")),
- "","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","ipt_goodflag_search");
- }else{
- ipt_lrgcd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" _chartype="upper" style="left:555px; top:22px; 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" style="left:104px; top:43px; width:109px; height:19px; "/>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" _chartype="upper" style="left:331px; top:22px; width:109px; 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_mdlcd_search" ref="/root/send/goodlist/mdlcd" class="input_search" style="left:855px; top:43px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_mdlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mdlcd_search" class="icon_search" style="left:915px; top:43px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd_search,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm_search" ref="/root/send/goodlist/mdlnm" class="input_search" style="left:935px; top:43px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mdlnm_search.value != "")
- {
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + ",," + model.getValue(ipt_mdlnm_search.attribute("ref"))
- ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- }else{
- ipt_mdlcd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" class="input_search" style="left:855px; top:65px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_smlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) + "," +
- model.getValue(ipt_smlcd_search.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd_search,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_smlcd_search" class="icon_search" style="left:915px; top:65px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd_search,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_smlnm_search" ref="/root/send/goodlist/smlnm" class="input_search" style="left:935px; top:65px; width:142px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_smlnm_search.value != ""){
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
- "smlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) + ",," +
- model.getValue(ipt_smlnm_search.attribute("ref")),
- "","smlcd,smlnm" ,ipt_smlcd_search,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- }else{
- ipt_smlcd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption81" class="search_name" style="left:15px; top:22px; width:85px; height:17px; ">기 관 :</caption>
- <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:104px; top:22px; width:109px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" _chartype="upper" style="left:331px; top:43px; width:109px; 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:245px; top:43px; width:86px; height:17px; ">구 코 드 :</caption>
- <input id="ipt_suppcustcd_search" ref="/root/send/goodlist/suppcustcd" class="input_default" visibility="hidden" style="left:730px; top:65px; width:24px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_suppcustcd_search.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd_search.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd_search,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd_search" class="icon_search" style="left:725px; top:65px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd_search,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="opt_suppcustnm_search" ref="/root/send/goodlist/suppcustnm" class="input_default" style="left:555px; top:65px; width:165px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(opt_suppcustnm_search.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(opt_suppcustnm_search.attribute("ref")), "","suppcustcd,suppcustnm" ,opt_suppcustnm_search,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption40" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">도 매 상 :</caption>
- <input id="ipt_bnscd_search" ref="/root/send/goodlist/bnscd" class="input_search" style="left:104px; top:65px; width:109px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_bnscd_search.value=ipt_bnscd_search.currentText;
- ipt_bnscd_search.refresh();
- btn_search.dispatch("DOMActivate");
-
- }
-
- ]]>
- </script>
- </input>
- <select1 id="rbo_exactsearch1" ref="/root/send/goodlist/exactsearch" appearance="full" cols="2" overflow="visible" style="left:331px; top:4px; width:109px; height:17px; 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:471px; top:43px; width:83px; height:17px; ">성 분 명 :</caption>
- <input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" _chartype="upper" style="left:555px; top:43px; width:185px; height:19px; ">
- <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:245px; top:65px; width:86px; height:17px; ">불용코드 :</caption>
- <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" appearance="full" cols="2" overflow="visible" style="left:330px; top:65px; width:109px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/nonusegoodview">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:106px; width:69px; height:13px; ">약품목록</caption>
- <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코드^한글명^판매회사^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 325, 72, 71, 48, 54, 100, 100, 100, 124, 127, 99, 83, 0, 80, 100, 100, 100, 100, 100, 100, 100, 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 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"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_goodlist.row > 0)
- {
- model.setValue("/root/send/gooddetlist/goodcd", model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodcd" ));
- model.setValue("/root/send/gooddetlist/fromdd", model.getValue(grd_costhistinfo.nodeset + "["+ grd_costhistinfo.row + "]/fromdd" ));
- model.setValue("/root/send/gooddetlist/useyn", "N");
- submit("TRRSC05302");
- fAfterRetrGoodList();
- model.setValue("/root/send/gooddetlist/fromdd","" );
- grp_detail.disabled = true;
- model.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) )
- {
- 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="12" style="left:1128px; top:100px; width:64px; height:19px; ">
- <caption>신규입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfGridInit(grd_gooddetlist);
- 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;
- /* 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>
- <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" caption="약품코드^물품구분^약품명^EDI코드^함량/단위^대분류명^중분류명^소분류명" colsep="^" colwidth="85, 0, 144, 100, 100, 73, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:126px; width:540px; height:342px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="goodnm" type="output" _key="true"/>
- <col ref="edicd"/>
- <col ref="goodspec"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="asetflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fRetrGoodList(true);
- grp_detail.disabled = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- grd_goodlist.dispatch("onrowchanged");
- ]]>
- </script>
- </datagrid>
- <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:472px; width:90px; height:22px; ">
- <caption>사용기관정보</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- </button>
- <button id="btn_addinfo" class="btn_sw" group="tab" style="left:89px; top:472px; width:90px; height:22px; ">
- <caption>부가입력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:472px; width:90px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <line id="line2" class="line_1" style="x1:545; y1:121px; x2:1195; y2:121px; "/>
- <button id="button2" class="btn_sw" group="tab" style="left:271px; top:472px; width:90px; height:22px; ">
- <caption>안전재고량관리</caption>
- <toggle case="case5" ev:event="DOMActivate"/>
- </button>
- <button id="btn_excel" class="btn2_letter5" navindex="12" visibility="hidden" style="left: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" group="tab" style="left:360px; top:472px; width:90px; height:22px; ">
- <caption>포장단위</caption>
- <toggle case="case6" ev:event="DOMActivate"/>
- </button>
- <button id="btn_openexcel" class="btn2_letter5" navindex="12" style="left: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>
- </group>
- <group id="grp_detail" style="left:545px; top:165px; width:649px; height:607px; ">
- <line id="line19" class="line_2" style="x1:0px; y1:286px; x2:649px; y2:286px; "/>
- <line id="line29" class="line_2" style="x1:0px; y1:118px; x2:649px; y2:118px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:310px; x2:649px; y2:310px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:142px; x2:649px; y2:142px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:166px; x2:649px; y2:166px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:334px; x2:649px; y2:334px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:358px; x2:649px; y2:358px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:382px; x2:649px; y2:382px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:190px; x2:649px; y2:190px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:406px; x2:649px; y2:406px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:214px; x2:649px; y2:214px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:430px; x2:649px; y2:430px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:22px; x2:649px; y2:22px; "/>
- <line id="line22" class="line_2" style="x1:0px; y1:238px; x2:649px; y2:238px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:46px; x2:649px; y2:46px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:240px; x2:649px; y2:240px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:581px; x2:649px; y2:581px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:70px; x2:649px; y2:70px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:94px; x2:649px; y2:94px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:602px; x2:649px; y2:602px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:504px; x2:649px; y2:504px; "/>
- <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" appearance="minimal" style="left:434px; top:194px; 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:415px; top:505px; width:15px; 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:100px; 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:300px; top:196px; 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:300px; top:173px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
-
- fSetDrugtype(cmb_reqflag.value);
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <caption id="caption52" class="cell_1" style="left:0px; top:48; width:108px; height:23px; vertical-align:middle; ">한 글 상 품 명</caption>
- <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:110px; top:26px; width:167px; 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:194px; 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:218px; width:129px; height:19px; "/>
- <input id="ipt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="input_s_essential" appearance="input" style="left:110px; top:170px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(ipt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm"
- ,ipt_lrgnm,"SPRSD00130","goodflag","ipt_goodflag");
- fSetDrugtype(cmb_reqflag.value);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption42" class="cell_1" style="left:0px; top:96px; width:108px; height:23px; vertical-align:middle; ">제 조 회 사</caption>
- <caption id="caption66" class="cell_1" style="left:0px; top:192px; 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:517px; top:218px; width:129px; height:19px; "/>
- <button id="btn_winacnt" class="icon_search" style="left:174px; top:220px; 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:172px; 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:170px; width:190px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref")),"","mdlcd,mdlnm" ,
- ipt_mdlnm,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption56" class="cell_1" style="left:324px; top:192px; width:108px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:216px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:168px; 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:194px; 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:498px; top:220px; 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:170px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref"))+",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_asetflag");
- else model.setFocus("ipt_mdlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell_1" style="left:324px; top:216px; width:108px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
- <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" style="left:110px; top:218px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:324px; top:168px; width:108px; 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:170px; 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:98px; 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" visibility="hidden" imemode="alpha" maxlength="450" style="left:395px; top:505px; width:11px; 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:218px; 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:98px; width:129px; height:19px; "/>
- <caption id="caption55" class="cell_1" visibility="visible" style="left:324px; top:96px; width:108px; height:23px; vertical-align:middle; ">E D I 코 드</caption>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_s_essential" 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>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:174px; top:533px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
- misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" style="left:373px; top:290px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="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:288px; width:139px; height:23px; vertical-align:middle; ">낱개수량/낱개단위/포장단위</caption>
- <button id="btn_photinfo" class="btn2_letter2" style="left:279px; 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>
- <caption id="caption14" class="cell_1" style="left:0px; top:554px; width:108px; height:23px; vertical-align:middle; ">집 계 구 분</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:530px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
- <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_s_essential" style="left:110px; top:531px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromdd");
- else model.setFocus("ipt_reqflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_s_essential" appearance="minimal" style="left:228px; top:290px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_deliveunit");
- else model.setFocus("ipt_minexch");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_s_essential" maxlength="9" format="#,###" style="left:140px; top:290px; width:81px; 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>
- <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:193px; top:531px; width:129px; height:19px; "/>
- <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_s_essential" appearance="minimal" style="left:110px; top:555px; width:212px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDrugtype(cmb_reqflag.value);
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:2px; width:111px; 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>
- </input>
- <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_s_essential" appearance="minimal" style="left:435px; top:532px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stocmngtflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
- // else model.setFocus("cmb_reqmthd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:325px; top:530px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
- <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" appearance="minimal" style="left:435px; top:580px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqprid">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption33" class="cell_1" style="left:324px; top:578px; width:108px; height:23px; vertical-align:middle; ">청 구 주 기</caption>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:405px; width:105px; height:19px; "/>
- <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" style="left:218px; top:405px; width:429px; height:19px; ">
- <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>
- </input>
- <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:428px; width:538px; height:76px; ">
- <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:404px; width:108px; height:23px; vertical-align:middle; ">불용일자/사유</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:428px; width:108px; height:75px; vertical-align:middle; ">비 고</caption>
- <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:518px; top:122px; width:129px; height:19px; "/>
- <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:193px; top:122px; width:129px; height:19px; "/>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_s_essential" style="left:434px; top:122px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- //if(event.shiftKey)model.setFocus("cmb_purcflag");
- //else model.setFocus("ipt_suppcustcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" style="left:175px; top:124px; 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:238px; top:311px; width:85px; height:23px; vertical-align:middle; ">처 방 단 가</caption>
- <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:522px; top:314px; 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>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:499px; top:124px; 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:120px; width:108px; height:23px; vertical-align:middle; ">판 매 회 사</caption>
- <caption id="caption27" class="cell_1" style="left:324px; top:120px; width:108px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" style="left:110px; top:122px; 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" _chartype="upper" disabled="true" maxlength="12" style="left:434px; top:26px; width:213px; 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" style="left:324px; top:24px; width:108px; height:23px; vertical-align:middle; ">도 매 상 코 드</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:240px; width:108px; height:23px; vertical-align:middle; ">함량/함량단위</caption>
- <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" appearance="minimal" style="left:195px; top:242px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell_1" style="left:0px; top:264px; width:108px; height:23px; vertical-align:middle; ">처방수량/단위</caption>
- <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" format="#,###.##" style="left:434px; top:242px; width:61px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <caption id="caption26" class="cell_1" style="left:0px; top:144px; 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:146px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" imemode="alpha" maxlength="450" _chartype="upper" style="left:434px; top:98px; 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:336px; width:56px; height:43px; vertical-align:middle; ">보 관 법</caption>
- <caption id="caption31" class="cell_1" style="left:1px; top:72px; 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:72px; 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:505px; 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:311px; width:108px; height:23px; vertical-align:middle; ">보 험 단 가</caption>
- <caption id="caption49" class="cell_1" style="left:438px; top:311px; width:83px; height:23px; vertical-align:middle; ">구 입 단 가</caption>
- <caption id="caption11" class="cell_1" style="left:324px; top:240px; width:108px; height:23px; vertical-align:middle; ">규격/규격단위</caption>
- <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" format="#,###.##" style="left:110px; top:242px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" appearance="full" cellspacing="50" cols="5" overflow="visible" style="left:110px; top:337px; width:325px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/keepmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" appearance="minimal" style="left:500px; top:242px; width:147px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/specunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="tit_2" style="left:5px; top:510px; width:95px; height:13px; ">재고관리기준</caption>
- <line id="line26" class="line_1" style="x1:0px; y1:524px; x2:649px; y2:524px; "/>
- <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:610px; top:265px; width:15px; 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:505px; 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");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" appearance="minimal" style="left:195px; top:264px; width:127px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_default" format="#,###.##" style="left:434px; top:264px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_insucost" ref="/root/main/gooddet/gooddetlist/insucost" class="input_default" maxlength="14.2" format="#,###.#" style="left:110px; top:314px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.#" style="left:325px; top:314px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <caption id="caption23" class="cell_1" style="left:325px; top:72px; width:108px; height:23px; vertical-align:middle; ">복지부 분류코드</caption>
- <input id="ipt_welfprt" ref="/root/main/gooddet/gooddetlist/welfprt" class="input_default" style="left:436px; top:72px; 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:380px; width:108px; height:23px; vertical-align:middle; ">제 제 약 여 부</caption>
- <caption id="cap_barcode" class="cell_1" style="left:324px; top:381px; width:108px; height:23px; vertical-align:middle; ">바 코 드</caption>
- <input id="ipt_barcode" style="left:434px; top:383px; width:213px; height:19px; "/>
- <button id="btn_welfprt" class="icon_search" style="left:499px; top:72px; 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:72px; 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:505px; width:20px; height:19px; "/>
- <input id="ipt_comnm" ref="/root/main/gooddet/gooddetlist/comnm" class="input_default" style="left:200px; top:145px; width:446px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select id="chk_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" overflow="visible" appearance="full" cols="1" style="left:110px; top:381px; 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:360px; width:539px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:57px; top:336px; width:51px; height:21px; vertical-align:middle; ">실 제</caption>
- <caption id="caption19" class="cell_1" style="left:57px; top:358px; width:51px; height:21px; vertical-align:middle; ">설명서</caption>
- <caption id="caption36" class="cell_1" style="left:324px; top:262px; width:108px; height:23px; text-align:left; vertical-align:middle; ">처 방 환 산</caption>
- <caption id="caption38" class="cell_1" style="left:438px; top:336px; width:82px; 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:522px; top:337px; 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_prcpqty" ref="/root/main/gooddet/gooddetlist/prcpqty" class="input_default" format="#,###" style="left:110px; top:264px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_purcqty" ref="/root/main/gooddet/gooddetlist/purcqty" class="input_default" visibility="hidden" maxlength="9" format="#,###" style="left:570px; top:265px; width:40px; 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:435px; top:2px; width:213px; 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:325px; top:0px; width:108px; height:23px; vertical-align:middle; ">구 코 드</caption>
- <caption id="caption24" style="left:358px; top:290px; width:10px; height:20px; ">/</caption>
- <caption id="caption32" class="cell_1" style="left:325px; top:554px; width:108px; height:23px; vertical-align:middle; ">청 구 방 법</caption>
- <select1 id="cmb_reqmthd" ref="/root/main/gooddet/gooddetlist/reqmthd" class="combo_s_essential" appearance="minimal" style="left:435px; top:555px; width:212px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption41" class="cell_1" style="left:0px; top:578px; width:108px; height:23px; vertical-align:middle; ">임의청구구분</caption>
- <select1 id="rdo_reqflag" ref="/root/main/gooddet/gooddetlist/tmpreqflag" appearance="full" cols="2" overflow="visible" style="left:110px; top:580px; width:212px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/tmpreqflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_drugkind" ref="/root/main/gooddet/gooddetlist/drugkind" visibility="hidden" style="left:445px; top:505px; width:40px; height:19px; "/>
- </group>
- <group id="group4" visibility="visible" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left: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();
-
- misfSave("TXRSC05302");
-
- //var updtdata = getGridUpdateData(grd_goodbaseqtylist);
- //if (updtdata != "" )
- //submit("TXRSD00101");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
- /*
- {
- submit("TRRSC05301");
- grd_goodlist.clearStatus();
- }
- */
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left: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; "/>
- </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^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^cntsqty^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="95, 61, 38, 92, 94, 92, 92, 100, 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, 199, 184, 123, 214, 184, 123, 184, 184, 123, 184, 184, 199, 123, 123, 123, 123, 123, 184, 199, 123, 123, 138, 153, 100, 61, 61, 184, 61, 245, 153, 184, 245, 184, 245, 184, 184, 184, 184, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:270px; width:525px; 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"/>
- </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" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:315px; width:1170px; 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"/>
- </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="12" 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="12" style="left:480px; top:70px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
-
- model.setValue(ipt_exfromdd.attribute("ref"), reqdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_extodd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
-
- cap_exfromdd.value = "적용일자 :";
- rdo_delyn.value = '';
- rdo_contractyn.value = '';
-
- group3.disabled = false;
- grp_detail.disabled = false;
- group2.visible = false;
- group2.disabled = true;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chkdd" ref="/root/send/goodlist/chkdd" overflow="visible" appearance="full" rows="1" style="left:105px; top:65px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( chkdd.value == "Y" )
- {
- model.setValue(ipt_exfromdd.attribute("ref"), '19000101' );
- model.setValue(ipt_extodd.attribute("ref"), '99991231');
-
- ipt_exfromdd.disabled = true;
- ipt_extodd.disabled = true;
- }
- else
- {
- ipt_exfromdd.disabled = false;
- ipt_extodd.disabled = false;
- }
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|