1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422 |
- <?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/>
- <excelgooddetlist/>
- <oldcdinfo/>
- <rscdgchglist/>
- </gooddet>
- </list>
- <costhistinfolist>
- <appdd/>
- <rctpdisburseunitcost/>
- <medcarecalcscor/>
- <suplplcecd/>
- </costhistinfolist>
- <item/>
- <gooddet>
- <gooddetlist/>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- </main>
- <send>
- <save>
- <goodlist/>
- <gooddetlist/>
- <setautoins>
- <setyn>N</setyn>
- </setautoins>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <edicd/>
- <goodcd/>
- <mdlcd/>
- <spec/>
- <prodcmpy/>
- <smlcd/>
- <model/>
- <prodcmpynm/>
- <instflag/>
- <oldcd/>
- <nonusegoodview/>
- </goodlist>
- <gooddetlist>
- <goodcd/>
- <fromdd/>
- <useyn/>
- </gooddetlist>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- </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>
- <insuyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </insuyn>
- <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();
- fOpenForm();
- ]]>
- </script>
- <submission id="TRRSC05301" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/good"/>
- <submission id="TXRSC05302" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
- <submission id="TXRSC05303" ref="/root/main/list/gooddet/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
- <submission id="TRRSC05302" ref="/root/send/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSC05303" ref="/root/send/goodcopy" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/goodcopy"/>
- <submission id="TRRSC05306" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet/excelgooddetlist"/>
- <submission id="TRRSC03702" ref="/root/send/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet/rscdgchglist"/>
- </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,무신정구분) 을 삭제.
- 이유 : 구조상 사용되지 않는 부분이라 황병현과장님의 요청으로 컨트롤 삭제.
- */
-
- ////........
- // 화면이 다른 폼에 의해 불려졌을때 실행!!
- function fOpenForm()
- {
- if(checkOpener())
- {
- if(opener.window.javascript.getScreenID() == "SMPIC00100")
- {
- //입력및 저장관련 컨트롤 설정.
- fOpenFormControlSetting(true);
-
- model.makeNode("/root/temp/good");
- model.copyNode("/root/temp/good", opener.root.main.item1.mchrginfo);
- model.setValue("/root/send/goodlist/goodcd", model.getValue("/root/temp/good/calcscorcd"));
-
-
-
- //팝업으로 띄워졌을경우 물품구분 콤보에 "전체" Item을 추가
- //품목세부사항의 단위 콤보를 설정하기 위해 넘어온 goodcd의 물품구분을 가져와서 설정함.
- if(model.getValue("/root/send/goodlist/goodcd") != "")
- {
- addComboItem("cmb_goodflag_search", "", "", "above");
- var goodcdflag = model.getValue("/root/send/goodlist/goodcd");
-
- var flag = goodcdflag.substr(0,1);
- cmb_goodflag_search.value = flag;
-
- rszfComboUnitList (cmb_prcpunit, model.getValue(opt_instcd.attribute("ref")), model.getValue(cmb_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
-
- //cmb_goodflag_search.select(0);
- btn_search.dispatch("DOMActivate");
- }
- }else if(opener.window.javascript.getScreenID() == "SMRSI02600"){ // 평화드림 월정산에서 로드했을시....
- if(model.getValue("/root/temp/goodcd") != "")
- {
- cmb_goodflag_search.value = model.getValue("/root/temp/goodflag");
- ipt_goodcd_search.value = model.getValue("/root/temp/goodcd");
-
- btn_search.dispatch("DOMActivate");
- }
- }
- }
- }
-
- function fOpenFormControlSetting(fBool)
- {
- btn_save.disabled = fBool;
- btn_sgsave.disabled = fBool;
- button2.disabled = fBool;
- btn_choidel.disabled = fBool;
- btn_insert.disabled = fBool;
- btn_photinfo.disabled = fBool;
- btn_goodcdcopy.disabled = fBool;
- btn_useinstinfo.disabled = fBool;
- btn_allsizergst.disabled = fBool;
- btn_goodsetrgst.disabled = fBool;
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/save/setautoins/setyn","N");
-
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
-
- misfComboCopyItemSet(cmb_goodflag, "", cmb_goodflag_search, ""); //물품구분
- //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
- rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"1","P" );
- //[2007.12.08 HBH : cmb_mngtflag (R0094)삭제.
-
- misfComboComCdListMulti("R0092,R0069,R0068,R0047,R0035,R0106,R0093,R0095,R0110,R0111,R0107","cmb_reqmthd,cmb_stocmngtflag,cmb_proddrugsetflag,cmb_curncyunit,cmb_prodplce,cmb_plceordqtycretflag,cmb_reqprid,cmb_conflag,cmb_setplceordflag,cmb_purcflag,cmb_plceordbase");
- //기관코드 읽어오는 부분 넣기
- 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_goodflag_search.length> 0) cmb_goodflag_search.selectedindex= 0;
-
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_oldcdinfo);
- misfGridInit(grd_rscdgchglist);
- misfGridIUD(grd_gooddetlist, "A");
- rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
- // 대분류 코드 콤보 설정.
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
-
- model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(cmb_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_oldcdinfo,grd_goodlist, "TRRSC05302" ,"N");
- misfMsterDetailSet(grd_rscdgchglist,grd_goodlist, "TRRSC03702" ,"N");
-
- // 물품구분별 권한
- fSetGoodFlagAuth();
- //rbo_instflag.select(1);
- model.setValue(rbo_instflag.attribute("ref"),"Y");
-
- grd_goodlist.explorerbar = "sortshow";
- model.setFocus("ipt_goodcd");
- model.refresh();
- }
- // 화면 전체 조회
- function fRetrGoodList(nodecopy) {
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
- misfMsterDetailRetrieve();
- //fAfterRetrGoodList();
- if(nodecopy == true)fAfterRetrGoodList();
- else if( nodecopy == false && grd_gooddetlist.rows - grd_gooddetlist.fixedRows== 0 )btn_insert.dispatch("DOMActivate");
- // 중분류/소분류 combo setting
-
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- if (grd_gooddetlist.valueMatrix(grd_gooddetlist.row,grd_gooddetlist.colRef("mdlcd")).length > 0 )
- {
- rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
- }
- if (grd_gooddetlist.valueMatrix(grd_gooddetlist.row,grd_gooddetlist.colRef("smlcd")).length > 0 )
- {
- rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
- rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "", "Y");
- }
- }
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
-
- btn_save.disabled=true;
- btn_sgsave.disabled=true;
- rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , cmb_goodflag_search.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
- {
- btn_save.disabled=false;
- btn_sgsave.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(cmb_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드는" ,"I003");
- model.setFocus("cmb_lrgcd");
- return false;
- }
- if(model.getValue(ipt_winacnt.attribute("ref")).length== 0 )
- {
- messageBox("비용계정은" ,"I003");
- model.setFocus("ipt_winacnt");
- return false;
- }
-
- if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
- {
- messageBox("주관리부서는" ,"I003");
- model.setFocus("ipt_mngtdeptcd");
- return false;
- }
-
- 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_reqmthd.attribute("ref")).length== 0 )
- {
- messageBox("청구방법은" ,"I003");
- model.setFocus("cmb_reqmthd");
- return false;
- }
-
- if(model.getValue(cmb_purcflag.attribute("ref")).length== 0 )
- {
- messageBox("구매구분은" ,"I003");
- model.setFocus("cmb_purcflag");
- return false;
- }
- if(model.getValue(rdo_insuyn.attribute("ref")).length== 0 )
- {
- messageBox("수가여부는" ,"I003");
- model.setFocus("rdo_insuyn");
- return false;
- }
- if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length== 0 )
- {
- messageBox("주거래처는" ,"I003");
- model.setFocus("ipt_maincustlastsuplplce");
- return false;
- }
- if(model.getValue(ipt_suppcustcd.attribute("ref")).length== 0 )
- {
- messageBox("보조거래처는" ,"I003");
- model.setFocus("ipt_suppcustcd");
- return false;
- }
- if(model.getValue(ipt_minexch.attribute("ref")).length== 0 )
- {
- messageBox("최소청구량은" ,"I003");
- model.setFocus("ipt_minexch");
- return false;
- }
- if(model.getValue(cmb_reqprid.attribute("ref")).length== 0 )
- {
- messageBox("청구주기는" ,"I003");
- model.setFocus("cmb_reqprid");
- return false;
- }
- if(model.getValue(rdo_reqflag.attribute("ref")).length== 0 )
- {
- messageBox("임의청구구분은" ,"I003");
- model.setFocus("rdo_reqflag");
- return false;
- }
- if(model.getValue(rdo_allsizeyny.attribute("ref")).length== 0 )
- {
- messageBox("ALLSIZE 유무는" ,"I003");
- model.setFocus("rdo_allsizeyny");
- return false;
- }
- if(model.getValue(cmb_reqflag.attribute("ref")).length== 0 )
- {
- messageBox("청구구분은" ,"I003");
- model.setFocus("cmb_reqflag");
- return false;
- }
- /*
- if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
- {
- messageBox("자산구분은" ,"I003");
- model.setFocus("cmb_asetflag");
- return false;
- }
- */
- if(model.getValue(chk_reuseyn.attribute("ref")) == "Y" && model.getValue(ipt_divusenvalqty.attribute("ref")) == 0)
- {
- messageBox("분할사용여부를 선택하신 경우에는 분할사용수치가 " ,"I003");
- model.setFocus("ipt_divusenvalqty");
- 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(cmb_conflag.attribute("ref")).length > 0 )
- {
- /*
- if(model.getValue(ipt_fromconterm.attribute("ref")).length == 0 )
- {
- messageBox("계약구분을 선택하신 경우에는 계약시작일자가 " ,"I003");
- model.setFocus("ipt_fromconterm");
- return false;
- }
- if(model.getValue(ipt_toconterm.attribute("ref")).length == 0 )
- {
- messageBox("계약구분을 선택하신 경우에는 계약종료일자가 " ,"I003");
- model.setFocus("ipt_toconterm");
- return false;
- }
- model.setFocus("ipt_nonusetretresn");
- */
- }
- else
- {
- if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 || model.getValue(ipt_toconterm.attribute("ref")).length > 0)
- {
- messageBox("계약기간을 입력하신 경우에는 계약구분이 " ,"I003");
- model.setFocus("cmb_conflag");
- return false;
- }
-
- }
-
- if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- {
- messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- model.setFocus("ipt_fromconterm");
- return false;
-
- }
-
- if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- {
- messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- model.setFocus("ipt_toconterm");
- return false;
- }
-
- if(model.getValue(cmb_purcflag.attribute("ref")).length > 0 && model.getValue(ipt_lastpurcdd.attribute("ref")) == 0)
- {
- /*
- messageBox("구매구분이 설정되었을 경우에는 최종 구매일자가 " ,"I003");
- model.setFocus("cmb_purcflag");
- 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 + "["+ grd_gooddetlist.row + "]/goodflag" , model.getValue(cmb_goodflag_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/goodcd" , "");
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/lrgcd" , model.getValue(cmb_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/mdlcd" , model.getValue(cmb_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/smlcd" , model.getValue(cmb_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/prodcmpynm" , model.getValue(ipt_prodcmpynm_search.attribute("ref")));
-
- model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/asetflag", "1");
- // model.setValue("/root/main/gooddet/gooddetlist/asetflag" , '1'); // 자산구부 : '1' 재고자산
- }
-
- 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(cmb_goodflag_search.attribute("ref")).length== 0 )
- {
- if(cmb_goodflag_search.label != "- 전 체 -")
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- }
- /*
- if(model.getValue(cmb_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("cmb_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.rows - 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_goodspec.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodspec"));
- model.SetValue(ipt_goodmodel.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodmodel"));
- model.SetValue(cmb_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
-
- cmb_lrgcd.dispatch("xforms-value-changed"); // 선택한 대분류에 대한 중분류 값을 얻기 위한 action
-
- model.SetValue(cmb_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
- model.SetValue(cmb_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
-
- model.refresh();
-
- model.setFocus("ipt_winacnt");
- }
- function fGoodCdCopy()
- {
- if(model.getValue(cmb_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("cmb_lrgcd");
- return false;
- }
- if(model.getValue(cmb_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("cmb_mdlcd");
- return false;
- }
-
- model.setValue("/root/send/goodcopy/goodflag", model.getValue(cmb_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
- model.setValue("/root/send/goodcopy/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
- submit("TRRSC05303");
-
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- if(goodcd.length == 0)goodcd = model.getValue(cmb_goodflag_search.attribute("ref")) + model.getValue(cmb_lrgcd.attribute("ref")) + model.getValue(cmb_mdlcd.attribute("ref")) + "0001";
-
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- grp_detail.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1205px; height:737px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:105px; width:69px; height:13px; ">물품목록</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:120px; x2:535px; y2:120px; "/>
- <caption id="caption1" class="tit_2" style="left:545px; top:105px; width:95px; height:13px; ">통합품목정보</caption>
- <switch id="switch2" style="left:0px; top:585px; width:535px; height:150px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" style="left:0px; top:0px; width:533px; height:173px; ">
- <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colwidth="80, 124, 127, 99, 83, 0, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:118px; ">
- <col ref="fromdd"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustnm"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="forgncurncyunitcost" format="#,###" style="text-align:right; "/>
- <col ref="curncyunit"/>
- <col/>
- <col format="#,###" style="text-align:right; "/>
- <col ref="prodplce" format="#,###" style="text-align:right; "/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="winacntnm"/>
- <col ref="amtacntnm"/>
- <col ref="lastupdtrnm"/>
- <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","" );
- }
- ]]>
- </script>
- </datagrid>
- <line id="line28" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
- <caption id="caption38" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">이력정보</caption>
- </case>
- <case id="case2">
- <line id="line49" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
- <group id="grp_etcgood" style="left:0px; top:29px; width:533px; height:106px; ">
- <line id="line50" class="line_2" style="x1:0px; y1:22px; x2:533px; y2:22px; "/>
- <line id="line53" class="line_3" style="x1:0px; y1:49px; x2:533px; y2:49px; "/>
- <caption id="caption74" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
- <caption id="caption76" class="cell_1" style="left:264px; top:0px; 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:1px; width:152px; 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:0px; 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:26px; width:152px; height:19px; text-align:right; "/>
- <caption id="caption79" class="cell_1" style="left:264px; top:24px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
- <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:374px; top:26px; width:155px; height:19px; text-align:right; "/>
- <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:374px; top:1px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordqtycretflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption26" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">부가입력정보</caption>
- </case>
- <case id="case4">
- <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" caption="기관코드^기관명" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:116px; ">
- <col ref="instcd"/>
- <col ref="instnm"/>
- </datagrid>
- <caption id="caption87" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">사용기관정보</caption>
- <line id="line35" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
- </case>
- <case id="case5">
- <datagrid id="grd_rscdgchglist" nodeset="/root/main/list/gooddet/rscdgchglist" caption="적용일자^고시^OLD 단가^NEW 단가^OLD Edi Code^NEW Edi Code^OLD 공급처 Code^NEW 공급처 Code^기관코드^물품코드" colwidth="93, 157, 100, 100, 100, 100, 110, 110, 100, 100" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:29px; width:533px; height:116px; ">
- <col ref="fromdd" format="yyyy-mm-dd" _key="true"/>
- <col ref="chgcmt"/>
- <col ref="oldgoodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="newgoodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="oldedicd"/>
- <col ref="newedicd"/>
- <col ref="oldsuppcustcd"/>
- <col ref="newsuppcustcd"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodcd" visibility="hidden" _key="true"/>
- </datagrid>
- <line id="line13" class="line_1" style="x1:0px; y1:24px; x2:533px; y2:24px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">고시내역</caption>
- </case>
- <case id="case3">
- <datagrid id="grd_oldcdinfo" nodeset="/root/main/list/gooddet/oldcdinfo" caption="구코드^물품명" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:116px; ">
- <col ref="oldcd"/>
- <col ref="goodnm"/>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">구코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
- </case>
- </switch>
- <button id="btn_insert" navindex="12" class="btn2_letter2" style="left:1152px; top:99px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_gooddetlist);
- 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");
- ]]>
- </script>
- </button>
- <button id="btn_choidel" class="btn2_letter5" visibility="hidden" style="left:815px; top:99px; width:75px; height:19px; ">
- <caption>선택행삭제</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코드^대분류^대분류명^중분류^중분류명^소분류^소분류명" colwidth="85, 0,176, 0, 0, 60, 60, 0,0,80,0,0,80,0,80,0,80" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:125px; width:535px; height:430px; ">
- <col ref="goodcd" type="output" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="goodnm" type="output" _key="true"/>
- <col ref="goodhngnm" type="output" _key="true"/>
- <col ref="goodengnm" type="output"/>
- <col ref="goodspec" type="output"/>
- <col ref="goodmodel" type="output"/>
- <col ref="asetflag" type="output"/>
- <col ref="prodcmpycd" type="output"/>
- <col ref="prodcmpynm"/>
- <col ref="edicd"/>
- <col ref="lrgcd" type="output"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" type="output"/>
- <col ref="mdlnm"/>
- <col ref="smlcd" type="output"/>
- <col ref="smlnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fRetrGoodList(true);
- ]]>
- </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" style="left:180px; top:563px; width:90px; height:22px; ">
- <caption>사용기관정보</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- </button>
- <button id="btn_addinfo" class="btn_sw" group="tab" style="left:90px; top:563px; width:90px; height:22px; ">
- <caption>부가입력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="button2" class="btn2_letter8" style="left:1045px; top:99px; width:108px; height:19px; ">
- <caption>신규재료신청등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode(gvParamPath +"/SMRSD04500_/SMRSD04500_value");
-
- rszfOpenPopUpListByWndName(ipt_winacnt,"","","SMRSD04500","newmatrprcsstat,openergoodmgt","5,Y");
- model.removenode("/root/copynode");
- model.makeNode("/root/copynode");
- var CSV = model.getValue(gvParamPath + "/SMRSD04500_/SMRSD04500_value");
- setCSVToNode("/root/copynode", CSV, "newmstgood");
-
- var copynode = "/root/copynode/newmstgood";
- var newgoodcd = model.getValue(copynode + "/goodcd");
- if(newgoodcd.length > 0)
- {
- var currow = grd_goodlist.findRow(newgoodcd,grd_goodlist.fixedRows, grd_goodlist.colRef("goodcd"), false,true);
- //신규코드로 등록된 코드가 존재한다면(존재할 경우는 없지만서도..)
- if(currow > -1)
- {
- grd_goodlist.row = currow;
- return;
- }
- else
- {
- /*
- if(model.getValue(grd_gooddetlist.nodeset + "/goodflag") != model.getValue(cmb_goodflag.attribute("ref"))
- {
- messageBox("신규재료 물품과 물품구분이 맞지 않습니다[" +model.getValue(grd_gooddetlist.nodeset + "/goodcd") + "]" ,"I");
- return;
- }
- */
- misfGridInit(grd_gooddetlist);
- misfGridIUD(grd_gooddetlist, "A");
-
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(copynode + "/goodflag"));
- model.setValue(grd_gooddetlist.nodeset + "/goodcd" ,model.getValue(copynode + "/goodcd"));
- model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(copynode + "/lrgcd"));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(copynode + "/lrgnm"));
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" ,model.getValue(copynode + "/mdlcd"));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(copynode + "/mdlnm"));
- model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(copynode + "/prodcmpycd"));
- model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(copynode + "/prodcmpynm"));
- model.setValue(grd_gooddetlist.nodeset + "/goodhngnm" , model.getValue(copynode + "/goodhngnm"));
- model.setValue(grd_gooddetlist.nodeset + "/goodengnm" , model.getValue(copynode + "/goodengnm"));
- model.setValue(grd_gooddetlist.nodeset + "/asetflag" , model.getValue(copynode + "/asetflag"));
- model.setValue(grd_gooddetlist.nodeset + "/goodspec" , model.getValue(copynode + "/goodspec"));
- model.setValue(grd_gooddetlist.nodeset + "/goodmodel" , model.getValue(copynode + "/goodmodel"));
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
- grp_detail.refresh();
- return;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:563px; width:90px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <line id="line2" class="line_1" style="x1:540px; y1:120px; x2:1195px; y2:120px; "/>
- <group id="grp_title" style="left:0px; top:9px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
- <caption id="caption88" class="search_name" style="left:10px; top:35px; width:82px; height:17px; ">EDI코드 :</caption>
- <caption id="caption89" class="search_name" style="left:204px; top:35px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption90" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
- <caption id="caption91" class="search_name" style="left:565px; top:9px; width:83px; height:17px; ">대 분 류 :</caption>
- <caption id="caption92" class="search_name" style="left:204px; top:9px; width:83px; height:17px; ">물 품 명 :</caption>
- <caption id="caption93" class="search_name" style="left:835px; top:35px; width:85px; height:17px; ">규 격 :</caption>
- <caption id="caption94" class="search_name" style="left:565px; top:35px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption95" class="search_name" style="left:10px; top:61px; width:83px; height:17px; ">제 조 원 :</caption>
- <caption id="caption96" class="search_name" style="left:565px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
- <caption id="caption97" class="search_name" style="left:835px; top:61px; width:85px; height:17px; ">모 델 :</caption>
- <line id="line36" class="line_4" style="x1:1109px; y1:11px; x2:1109px; y2:77px; "/>
- <button id="btn_search" navindex="7" class="btn1_letter2" 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(false);
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag_search" ref="/root/send/goodlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:95px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
- misfGridInit(grd_oldcdinfo);
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
-
- //권한체크.
- fSetGoodFlagAuth();
-
- rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
-
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
-
- cmb_mdlcd_search.value='';
- cmb_smlcd_search.value='';
-
- model.refresh();
- //misfGridInit(grd_gooddetlist);
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" style="left:289px; top:8px; width:261px; 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" _chartype="upper" style="left:95px; top:34px; width:95px; height:19px; "/>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" _chartype="upper" style="left:289px; top:34px; width:81px; 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_goodspec_search" ref="/root/send/goodlist/spec" class="input_search" style="left:921px; top:34px; width:180px; height:19px; "/>
- <input id="ipt_prodcmpy_search" ref="/root/send/goodlist/prodcmpy" class="input_search" style="left:95px; top:60px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpy_search.value != "")
- {
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
- "prodcmpycd," + model.getValue(ipt_prodcmpy_search.attribute("ref")) + "," ,
- "","prodcmpy,prodcmpynm" ,ipt_prodcmpy_search,"SPRSD00160","","");
- }else{
- ipt_prodcmpynm_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button6" class="icon_search" style="left:196px; top:62px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpy_search,"","prodcmpy,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_prodcmpynm_search" ref="/root/send/goodlist/prodcmpynm" class="input_search" style="left:219px; top:60px; width:151px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpynm_search.value != "")
- {
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
- "prodcmpynm,," + model.getValue(ipt_prodcmpynm_search.attribute("ref")) ,
- "","prodcmpy,prodcmpynm" ,ipt_prodcmpy_search,"SPRSD00160","","");
- }else{
- ipt_prodcmpy_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodmodel_search" ref="/root/send/goodlist/model" class="input_search" style="left:921px; top:60px; width:180px; height:19px; "/>
- <caption id="caption98" class="search_name" style="left:835px; top:9px; width:90px; height:17px; ">기 관 :</caption>
- <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" overflow="visible" appearance="full" cols="2" cellspacing="5" style="left:921px; top:9px; width:109px; height:15px; 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:460px; top:34px; width:90px; 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="caption99" class="search_name" style="left:375px; top:35px; width:83px; height:17px; ">구 코 드 :</caption>
- <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:655px; top:11px; width:171px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "", "Y");
- cmb_mdlcd_search.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:655px; top:59px; width:171px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:655px; top:35px; width:171px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "", "Y");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="search_name" style="left:375px; top:60px; width:86px; height:17px; ">불용코드 :</caption>
- <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" overflow="visible" appearance="full" cols="2" style="left:460px; top:60px; width:89px; height:17px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/nonusegoodview">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_excel" navindex="12" class="btn5_letter5" style="left:970px; top:99px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- submit("TRRSC05306");
- var fileName = window.fileDialog("save", ",", false, "물품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_excelgooddetlist.saveExcel(fileName, "물품코드");
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn_sw" group="tab" style="left:270px; top:563px; width:100px; height:22px; ">
- <caption>고시내역</caption>
- <toggle case="case5" ev:event="DOMActivate"/>
- </button>
- <button id="button3" class="btn_sw" group="tab" style="left:370px; top:563px; width:100px; height:22px; ">
- <caption>구코드</caption>
- <toggle case="case3" ev:event="DOMActivate"/>
- </button>
- </group>
- <group id="grp_detail" style="left:540px; top:163px; width:660px; height:607px; ">
- <line id="line6" class="line_2" style="x1:0px; y1:532px; x2:653px; y2:532px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:355px; x2:653px; y2:355px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:580px; x2:653px; y2:580px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:604px; x2:653px; y2:604px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:460px; x2:653px; y2:460px; "/>
- <line id="line16" class="line_3" style="x1:0px; y1:604px; x2:653px; y2:604px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:508px; x2:653px; y2:508px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:556px; x2:653px; y2:556px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:484px; x2:653px; y2:484px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:436px; x2:653px; y2:436px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:415px; x2:653px; y2:415px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:331px; x2:653px; y2:331px; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:305px; x2:653px; y2:305px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:71px; x2:653px; y2:71px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:143px; x2:653px; y2:143px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:95px; x2:653px; y2:95px; "/>
- <line id="line10" class="line_3" style="x1:0px; y1:167px; x2:653px; y2:167px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:119px; x2:653px; y2:119px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:47px; x2:653px; y2:47px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:23px; x2:653px; y2:23px; "/>
- <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_s_essential" imemode="hangul" maxlength="200" style="left:110px; top:27px; width:216; 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>
- <caption id="caption72" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">제조국</caption>
- <button id="btn_prodcmpycd" class="icon_search" style="left:503px; top:77px; 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:0; top:1px; width:108px; height:23px; vertical-align:middle; ">물품코드</caption>
- <caption id="caption30" class="cell_1" style="left:329px; top:49px; width:108px; height:23px; vertical-align:middle; ">모델명</caption>
- <caption id="caption52" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(한글)</caption>
- <button id="btn_goodcdcopy" class="btn2_letter4" style="left:263px; top:3px; width:64px; height:19px; ">
- <caption>코드생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGoodCdCopy();
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:110px; top:3px; width:108px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:194px; top:147px; width:132px; height:19px; "/>
- <caption id="caption42" class="cell_1" style="left:329px; top:73px; width:108px; height:23px; vertical-align:middle; ">제조회사</caption>
- <caption id="caption65" class="cell_1" style="left:329px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(영문)</caption>
- <caption id="caption66" class="cell_1" style="left:0px; top:121px; 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:524px; top:147px; width:132px; height:19px; "/>
- <button id="btn_winacnt" class="icon_search" style="left:175px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" style="left:110px; top:51px; width:216; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodmodel");
- //else model.setFocus("cmb_asetflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption45" class="cell_1" style="left:0px; top:49px; width:108px; height:23px; vertical-align:middle; ">규격</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:145px; width:108px; height:23px; vertical-align:middle; ">입고계정</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
- <input id="ipt_goodmodel" ref="/root/main/gooddet/gooddetlist/goodmodel" class="input_default" maxlength="150" style="left:440px; top:51px; width:214px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_prodcmpycd");
- else model.setFocus("ipt_goodspec");
- }
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_goodspec");
- ]]>
- </script>
- </input>
- <caption id="caption47" class="cell_1" style="left:329px; top:1px; width:108px; height:23px; vertical-align:middle; ">물품명</caption>
- <button id="btn_amtacnt" class="icon_search" style="left:505px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:330px; top:145px; 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:147px; width:59px; 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("cmb_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:330px; top:97px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:440px; top:75px; 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();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" imemode="alpha" maxlength="200" style="left:440px; top:27px; 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>
- <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" style="left:440px; top:147px; width:60px; 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>
- <select1 id="cmb_prodplce" ref="/root/main/gooddet/gooddetlist/prodplce" class="combo" appearance="minimal" style="left:110px; top:75px; width:216; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prodplce">
- <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_goodengnm");
- else model.setFocus("ipt_prodcmpycd");
- }
- if(event.keyCode == 9)model.setFocus("ipt_prodcmpycd");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_prodcmpycd");
- ]]>
- </script>
- </select1>
- <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:522px; top:75px; width:132px; height:19px; "/>
- <select1 id="cmb_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" class="combo_essential" visibility="hidden" appearance="minimal" editmode="search" style="left:440px; top:2px; width:211px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" maxlength="200" style="left:439px; top:2px; width:215px; 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="caption22" class="tit_2" style="left:5px; top:291px; width:95px; height:13px; ">품목세부사항</caption>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:175px; top:337px; 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:530px; top:365px; width:124px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/purcunit">
- <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>
- <button id="btn_useinstinfo" class="btn2_letter7" style="left:229px; top:311px; width:97px; height:19px; ">
- <caption>타기관내용복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInstGoodCdCopy();
- ]]>
- </script>
- </button>
- <input id="ipt_minexch" ref="/root/main/gooddet/gooddetlist/minexch" class="input_essential" maxlength="9" format="#,###" style="left:110px; top:418px; width:124px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_deliveunit");
- else model.setFocus("chk_reuseyn");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption53" class="cell_1" style="left:0px; top:309px; width:108px; height:23px; vertical-align:middle; ">적용일자</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:362px; width:108px; height:23px; vertical-align:middle; ">처방단위</caption>
- <button id="btn_photinfo" class="btn2_letter2" style="left:220px; top:3px; 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:329px; top:333px; width:108px; height:23px; vertical-align:middle; ">청구구분</caption>
- <input id="ipt_divusenvalqty" ref="/root/main/gooddet/gooddetlist/divusenvalqty" class="input_default" maxlength="9" format="#,###.##" style="left:551px; top:415px; width:103px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("chk_reuseyn");
- else model.setFocus("cmb_stocmngtflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select id="chk_reuseyn" ref="/root/main/gooddet/gooddetlist/reuseyn" overflow="visible" appearance="full" style="left:313px; top:418px; width:101px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>분할사용여부</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_minexch");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select>
- <caption id="caption16" class="cell_1" style="left:0px; top:333px; width:108px; height:23px; vertical-align:middle; ">관리부서</caption>
- <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" style="left:110px; top:336px; 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_essential" appearance="minimal" style="left:351px; top:365px; width:110px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/deliveunit">
- <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_deliveunit");
- else model.setFocus("ipt_minexch");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_essential" maxlength="9" format="#,###" style="left:351px; top:388px; width:110px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("cmb_deliveunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:194px; top:336px; width:132px; height:19px; "/>
- <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_essential" appearance="minimal" style="left:440px; top:336px; width:214px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_search" inputtype="date" style="left:110px; top:311px; 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("cmb_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_essential" appearance="minimal" style="left:110px; top:440px; width:216px; 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>
- <select1 id="cmb_setplceordflag" ref="/root/main/gooddet/gooddetlist/setplceordflag" class="combo_default" appearance="minimal" style="left:110px; top:488px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/setplceordflag">
- <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_setplceordflag");
- else model.setFocus("ipt_nonusetretdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell_1" style="left:337px; top:510px; width:99px; height:23px; vertical-align:middle; ">ALL SIZE 유무</caption>
- <caption id="caption54" class="cell_1" style="left:337px; top:486px; width:99px; height:23px; vertical-align:middle; ">GROUP 구분</caption>
- <button id="btn_goodsetrgst" class="btn2_letter2" style="left:610px; top:488px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length == 0)
- {
- messageBox("SET등록을 하시려면 SET구분을 반드시" ,"C002");
- model.setFocus("cmb_proddrugsetflag");
- return;
- }
- /*
- if(model.getValue(cmb_setplceordflag.attribute("ref")).length == 0)
- {
- messageBox("SET등록을 하시려면 SET발주구분을 반드시" ,"C002");
- model.setFocus("cmb_setplceordflag");
- return;
- }
- */
- rszfOpenPopUpListByWndName(cmb_proddrugsetflag,"","","SPRSC00210","instcd,goodcd,goodnm,goodflag,proddrugsetflag","opt_instcd,ipt_goodcd,ipt_goodnm,cmb_goodflag,cmb_proddrugsetflag");
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:0px; top:486px; width:108px; height:23px; vertical-align:middle; ">SET 발주구분</caption>
- <select1 id="cmb_reqmthd" ref="/root/main/gooddet/gooddetlist/reqmthd" class="combo_essential" appearance="minimal" style="left:110px; top:464px; width:216px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqmthd">
- <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_stocmngtflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:0px; top:438px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
- <select1 id="cmb_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" class="combo_default" appearance="minimal" style="left:438px; top:488px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/proddrugsetflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_allsizeyny");
- else model.setFocus("cmb_setplceordflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_expnyny" ref="/root/main/gooddet/gooddetlist/expnyn" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:440px; top:440px; width:31px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/expnyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption59" class="cell_1" visibility="hidden" style="left:337px; top:438px; width:99px; height:23px; vertical-align:middle; ">고가여부</caption>
- <select1 id="rdo_allsizeyny" ref="/root/main/gooddet/gooddetlist/allsizeyn" overflow="visible" appearance="full" cols="2" cellspacing="30" style="left:438px; top:514px; width:40px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/allsizeyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_plceordnonusedd");
- else model.setFocus("cmb_proddrugsetflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_reqflag" ref="/root/main/gooddet/gooddetlist/tmpreqflag" overflow="visible" appearance="full" cols="2" style="left:438px; top:465px; width:70px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/tmpreqflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_addtaxrate");
- else model.setFocus("ipt_addtaxrate");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell_1" style="left:337px; top:462px; width:99px; height:23px; vertical-align:middle; ">임의청구구분</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:462px; width:108px; height:23px; vertical-align:middle; ">청구방법구분</caption>
- <button id="btn_allsizergst" class="btn2_letter2" style="left:610px; top:514px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue(ipt_goodcd.attribute("ref")).length == 0)
- {
- messageBox("물품코드를" ,"C001");
- return;
- }
- if(model.getValue(rdo_allsizeyny.attribute("ref")) != "Y")
- {
- messageBox("ALL SIZE 여부를 [예]로" ,"C001");
- return;
- }
- if(model.getValue(cmb_purcunit.attribute("ref")).length == 0)
- {
- messageBox("규격단위를" ,"C001");
- return;
- }
-
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","instcd,instnm,goodcd,goodnm,goodunit","SPRSC00211","instcd,instnm,goodcd,goodnm,goodunit","opt_instcd,opt_instnm,ipt_goodcd,ipt_goodnm,cmb_purcunit");
- var allsizeinfo = model.getValue(gvParamPath +"/SPRSC00211_/SPRSC00211_value");
-
- if(allsizeinfo != "" && allsizeinfo != null) {
- allsizeinfo = allsizeinfo.split("|");
- if(allsizeinfo[0] > 0)model.setValue(rdo_allsizeyny.attribute("ref"),"Y");
- else model.setValue(rdo_allsizeyny.attribute("ref"),"N");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_essential" appearance="minimal" style="left:438px; top:440px; width:214px; 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:337px; top:438px; width:99px; height:23px; vertical-align:middle; ">청구주기</caption>
- <input id="ipt_mmavgusescheqty" ref="/root/main/gooddet/gooddetlist/mmavgusescheqty" class="input_default" maxlength="14.2" format="#,###.00" style="left:111px; top:512px; width:214px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_mngtflag");
- else model.setFocus("ipt_reqdeptcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:560px; width:114px; height:19px; "/>
- <caption id="caption51" class="cell_1" style="left:337px; top:534px; width:99px; height:23px; vertical-align:middle; ">신청자</caption>
- <output id="opt_reqpsnnm" ref="/root/main/gooddet/gooddetlist/reqpsnnm" class="output_fix" appearance="output" style="left:522px; top:536px; width:130px; height:19px; "/>
- <button id="btn_reqpsn" class="icon_search" style="left:503px; top:538px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- rszfOpenPopUpListByWndName(ipt_reqpsn,"","reqpsn,reqpsnnm","SPZSU10100","","");
- var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
-
- if(userinfo != "" && userinfo != null) {
- userinfo = userinfo.split("|");
- model.setValue(ipt_reqpsn.attribute("ref"),userinfo[0]);
- model.setValue(opt_reqpsnnm.attribute("ref"),userinfo[1]);
- }
- model.refresh();
- */
- var recv_list = "reqpsn,reqpsnnm";
- misfOpenPopUpList("12", ipt_reqpsn,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsn" ref="/root/main/gooddet/gooddetlist/reqpsn" class="input_default" style="left:438px; top:536px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_reqdeptcd");
- else model.setFocus("tar_cmt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" style="left:226px; top:560px; width:428px; 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:584px; width:543px; height:19px; ">
- <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="caption13" class="cell_1" style="left:0px; top:534px; width:108px; height:23px; vertical-align:middle; ">신청부서</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:558px; width:108px; height:23px; vertical-align:middle; ">코드불용일/사유</caption>
- <button id="btn_reqdeptcd" class="icon_search" style="left:175px; top:538px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption49" class="cell_1" style="left:0px; top:510px; width:108px; height:23px; vertical-align:middle; ">월평균예정사용량</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:582px; width:108px; height:23px; vertical-align:middle; ">비고</caption>
- <output id="opt_reqdeptnm" ref="/root/main/gooddet/gooddetlist/reqdeptnm" class="output_fix" appearance="output" style="left:196px; top:536px; width:130px; height:19px; "/>
- <input id="ipt_reqdeptcd" ref="/root/main/gooddet/gooddetlist/reqdeptcd" class="input_default" style="left:110px; top:536px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- model.setFocus("ipt_mmavgusescheqty");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_mngtflag");
- else model.setFocus("ipt_reqpsn");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption83" class="cell_1" style="left:329px; top:309px; width:108px; height:23px; vertical-align:middle; ">구코드</caption>
- <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_search" editable="false" maxlength="12" style="left:440px; top:312px; width:214px; height:19px; "/>
- <caption id="caption85" class="cell_1" style="left:0px; top:414px; width:108px; height:23px; vertical-align:middle; ">최소청구량</caption>
- <caption id="caption25" class="cell_1" style="left:240px; top:386px; width:109px; height:23px; vertical-align:middle; ">수불/구매환산수량</caption>
- <caption id="caption24" class="cell_1" style="left:240px; top:362px; width:109px; height:23px; vertical-align:middle; ">수불단위</caption>
- <caption id="caption28" class="cell_1" style="left:469px; top:413px; width:80px; height:23px; vertical-align:middle; ">분할사용수치</caption>
- <caption id="caption3" class="cell_1" style="left:465px; top:362px; width:64px; height:23px; vertical-align:middle; ">구매단위</caption>
- <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" appearance="minimal" style="left:110px; top:365px; width:124px; 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="caption4" class="cell_1" style="left:0px; top:386px; width:109px; height:23px; vertical-align:middle; ">처방/수불환산수량</caption>
- <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_essential" format="#,###" style="left:111px; top:388px; width:124px; 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>
- <line id="line15" class="line_1" style="x1:0px; y1:357px; x2:653px; y2:357px; "/>
- <line id="line37" class="line_1" style="x1:0px; y1:409px; x2:653px; y2:409px; "/>
- <select1 id="cmb_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="combo_s_essential" appearance="minimal" style="left:110px; top:98px; width:216px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
- cmb_mdlcd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="combo_s_essential" appearance="minimal" style="left:440px; top:98px; width:216px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "", "Y");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" appearance="minimal" style="left:110px; top:123px; width:216px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="cell_1" style="left:330px; top:121px; width:108px; height:23px; vertical-align:middle; ">EDI코드/수가여부</caption>
- <input id="ipt_edicd" ref="/root/main/gooddet/gooddetlist/edicd" _chartype="upper" style="left:440px; top:123px; width:120px; height:19px; "/>
- <select1 id="rdo_insuyn" ref="/root/main/gooddet/gooddetlist/insuyn" overflow="visible" appearance="full" cols="2" style="left:566px; top:124px; width:85px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/insuyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_addtaxrate");
- else model.setFocus("ipt_addtaxrate");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:219px; top:266px; width:107px; height:19px; "/>
- <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:545px; top:267px; width:111px; height:19px; "/>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_essential" style="left:111px; top:265px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + 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>
- <caption id="caption40" class="cell_1" style="left:330px; top:240px; width:108px; height:23px; vertical-align:middle; ">구매구분</caption>
- <button id="btn_suppcustcd" class="icon_search" style="left:526px; top:269px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption31" class="tit_2" style="left:6px; top:171px; width:69px; height:13px; ">구매정보</caption>
- <caption id="caption43" class="cell_1" style="left:1px; top:240px; width:108px; height:23px; vertical-align:middle; ">최종구매일자</caption>
- <input id="ipt_lastpurcdd" ref="/root/main/gooddet/gooddetlist/lastpurcdd" class="input_default" inputtype="date" style="left:111px; top:241px; width:216px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("tar_cmt");
- else model.setFocus("cmb_purcflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <line id="line26" class="line_1" style="x1:1px; y1:185px; x2:654px; y2:185px; "/>
- <line id="line27" class="line_3" style="x1:1px; y1:287px; x2:654px; y2:287px; "/>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:200px; top:267px; 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:330px; top:264px; width:108px; height:23px; vertical-align:middle; ">보조거래처</caption>
- <select1 id="cmb_purcflag" ref="/root/main/gooddet/gooddetlist/purcflag" class="combo_essential" appearance="minimal" style="left:441px; top:241px; width:214px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcflag">
- <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_purcflag");
- else model.setFocus("ipt_maincustlastsuplplce");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption27" class="cell_1" style="left:1px; top:264px; width:108px; height:23px; vertical-align:middle; ">주거래처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_essential" style="left:441px; top:267px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + 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>
- <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.00" style="left:246px; top:192px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_toconterm");
- else model.setFocus("ipt_forgncurncyunitcost");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption62" class="cell_1" style="left:493px; top:191px; width:80px; height:23px; vertical-align:middle; ">화폐단위</caption>
- <caption id="caption41" class="cell_1" style="left:194px; top:216px; width:88px; height:23px; vertical-align:middle; ">계약구분/기간</caption>
- <caption id="caption63" class="search_no_b" style="left:543px; top:218px; width:12px; height:17px; ">~</caption>
- <input id="ipt_forgncurncyunitcost" ref="/root/main/gooddet/gooddetlist/forgncurncyunitcost" class="input_default" maxlength="14.2" format="#,###.00" style="left:410px; top:193px; width:80px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_estmamt");
- else model.setFocus("cmb_curncyunit");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <line id="line17" class="line_2" style="x1:1px; y1:214px; x2:654px; y2:214px; "/>
- <caption id="caption57" class="cell_1" style="left:193px; top:191px; width:50px; height:23px; vertical-align:middle; ">견적가</caption>
- <select1 id="cmb_conflag" ref="/root/main/gooddet/gooddetlist/conflag" class="combo_default" appearance="minimal" style="left:285px; top:217px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/conflag">
- <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_suppcustcd");
- else model.setFocus("ipt_fromconterm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption58" class="cell_1" style="left:328px; top:191px; width:80px; height:23px; vertical-align:middle; ">외화단가</caption>
- <line id="line29" class="line_2" style="x1:1px; y1:238px; x2:654px; y2:238px; "/>
- <select1 id="cmb_curncyunit" ref="/root/main/gooddet/gooddetlist/curncyunit" class="combo_default" appearance="minimal" style="left:575px; top:193px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/curncyunit">
- <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_forgncurncyunitcost");
- else model.setFocus("ipt_goodunitcost");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_fromconterm" ref="/root/main/gooddet/gooddetlist/fromconterm" class="input_search" inputtype="date" style="left:441px; top:217px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- 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");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_conflag");
- else model.setFocus("ipt_toconterm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_toconterm" ref="/root/main/gooddet/gooddetlist/toconterm" class="input_search" inputtype="date" style="left:557px; top:217px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- 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");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromconterm");
- else model.setFocus("ipt_estmamt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_addtaxrate" ref="/root/main/gooddet/gooddetlist/addtaxrate" class="input_default" style="left:111px; top:217px; width:79px; 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>
- <caption id="caption67" class="cell_1" style="left:1px; top:190px; width:108px; height:23px; vertical-align:middle; ">제품단가</caption>
- <caption id="caption46" class="cell_1" style="left:1px; top:215px; width:108px; height:23px; vertical-align:middle; ">부가세율</caption>
- <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" maxlength="14.2" format="#,###.00" style="left:111px; top:192px; width:79px; 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>
- </input>
- <select id="checkbox1" ref="/root/main/gooddet/gooddetlist/mngtflag" overflow="visible" appearance="full" style="left:258px; top:489px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>SET여부</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_minexch");
- else model.setFocus("ipt_goodhngnm");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">물품코드등록</caption>
- </group>
- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="물품코드^todd^prefromdd^기관코드^사용여부^fromdd^물품구분^goodnm^영문명^물품명^물품규격^모델^규격^모델^자산구분(R0043)^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colwidth="123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 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, 61, 61, 184, 61, 245, 153, 184, 245, 184, 245, 184, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:25px; top:190px; width:385px; height:90px; ">
- <!-- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" caption="물품코드^todd^prefromdd^기관코드^사용여부^fromdd^물품구분^goodnm^영문명^물품명^물품규격^모델^규격^모델^자산구분(R0043)^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 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, 61, 61, 184, 61, 245, 153, 184, 245, 184, 245, 184, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:35px; top:290px; width:385px; height:90px; "> -->
- <col ref="goodcd" _key="true"/>
- <col ref="todd" _key="true"/>
- <col ref="prefromdd"/>
- <col ref="instcd" _key="true"/>
- <col ref="useyn"/>
- <col ref="fromdd"/>
- <col ref="goodflag"/>
- <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"/>
- <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="ddavguseqty"/>
- <col ref="mmavgusescheqty"/>
- <col ref="mmavguseqty"/>
- <col ref="prprtystocpossndayno"/>
- <col ref="tmpreqflag"/>
- <col ref="oldcd"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty"/>
- <col ref="insucost"/>
- <col ref="specunit"/>
- <col ref="pemtkeepmthd"/>
- <col ref="comnm"/>
- <col ref="insuyn"/>
- </datagrid>
- <group id="group4" visibility="visible" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line20" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
-
- fSetDataCopy();
- model.refresh();
- misfSave("TXRSC05302");
- 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:1127px; 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:825px; top:4px; width:100px; height:19px; "/>
- <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:723px; top:4px; width:100px; height:19px; "/>
- <button id="btn_sgsave" class="btn4_letter4" style="left:989px; top:3px; width:80px; height:22px; ">
- <caption>수가전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("수가전송을", "Q004") != 7) {
- if(grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1)
- {
- messageBox("전송할 Data가 없습니다. 조회 후 다시 실행하세요.", "I999");
- return;
- }
-
- if(fCheckSaveData() == false)return;
-
- fSetDataCopy();
- model.refresh();
-
- if( grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 2)
- {
- messageBox("변경된 Data 가 있어 수가전송작업을 중단하겠습니다.\n 변경된 Data는 모두 복구됩니다.", "I999");
- fRetrGoodList(false);
- return;
- }
-
- submit("TXRSC05303");
- messageBox("수가전송이 완료되었습니다.", "I999");
-
- //if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/gooddet/gooddetlist/asetflag" visibility="hidden" style="left:595px; top:5px; width:100px; height:19px; "/>
- </group>
- <datagrid id="grd_excelgooddetlist" nodeset="/root/main/list/gooddet/excelgooddetlist" visibility="hidden" caption="기관명^물품코드^물품명^물품명(한글)^물품명(영문)^규격^모델명^제조국^제조회사코드^제조회사명^대분류^중분류^소분류^EDI코드^수가여부^입고계정코드^입고계정명^비용계정^비용계정명^적용일자^구코드^관리부서코드^관리부서명^청구구분^청구구분명^처방단위^처방/수불환산수량^구매단위^수불/구매환산수량^수불단위^최소청구량^분할사용여부^분할사용수치^재고관리기준^청구주기^청구주기명^청구방법구분^청구방법구분명^임의청구구분^SET발주구분^SET구분^월평균예정사용량^ALL SIZE 유무^신청부서코드^신청부서명^신청자코드^신청자명^코드불용일^코드불용사유^비고^최종구매일자^구매구분^구매구분명^주거래처코드^주거래처명^보조거래처코드^보조거래처명^계약구분^계약기간 from^계약기간 to^부가세율^견적가^외화단가^화폐단위^제품단가" colwidth="100, 123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 123, 214, 139, 199, 184, 123, 123, 100, 123, 184, 75, 184, 108, 245, 89, 107, 184, 184, 100, 123, 105, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 110, 92, 123, 123, 100, 123, 123, 199, 184, 123, 149, 136, 123, 184, 184, 123, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:25px; top:240px; width:470px; height:95px; ">
- <col ref="instnm"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodplce"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="lrgcd"/>
- <col ref="mdlcd"/>
- <col ref="smlcd"/>
- <col ref="edicd"/>
- <col ref="insuyn"/>
- <col ref="winacnt"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="oldcd"/>
- <col ref="mainmngtdeptcd"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="prcpunit"/>
- <col ref="prcpexchqty" format="#,###"/>
- <col ref="purcunit"/>
- <col ref="exchqty" format="#,###"/>
- <col ref="deliveunit"/>
- <col ref="minexch" format="#,###"/>
- <col ref="reuseyn"/>
- <col ref="divusenvalqty" format="#,###"/>
- <col ref="stocmngtflag"/>
- <col ref="reqprid"/>
- <col ref="reqpridnm"/>
- <col ref="reqmthd"/>
- <col ref="reqmthdnm"/>
- <col ref="tmpreqflag"/>
- <col ref="setplceordflag"/>
- <col ref="proddrugsetflag"/>
- <col ref="mmavgusescheqty" format="#,###"/>
- <col ref="allsizeyn"/>
- <col ref="reqdeptcd"/>
- <col ref="reqdeptnm"/>
- <col ref="reqpsn"/>
- <col ref="reqpsnnm"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="nonusetretresn"/>
- <col ref="cmt"/>
- <col ref="lastpurcdd" format="yyyy-mm-dd"/>
- <col ref="purcflag"/>
- <col ref="purcflagnm"/>
- <col ref="maincustlastsuplplce"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="conflag"/>
- <col ref="fromconterm" format="yyyy-mm-dd"/>
- <col ref="toconterm" format="yyyy-mm-dd"/>
- <col ref="addtaxrate" format="#,###"/>
- <col ref="estmamt" format="#,###"/>
- <col ref="forgncurncyunitcost" format="#,###"/>
- <col ref="curncyunit"/>
- <col ref="goodunitcost" format="#,###"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|