12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>물품코드등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <good>
- <goodlist/>
- </good>
- <gooddet>
- <gooddetlist/>
- <goodconstlist/>
- <goodinstlist/>
- </gooddet>
- </list>
- <costhistinfolist>
- <appdd/>
- <rctpdisburseunitcost/>
- <medcarecalcscor/>
- <suplplcecd/>
- </costhistinfolist>
- <item/>
- <gooddet>
- <gooddetlist/>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- <newgoodcd>
- <goodcdno/>
- </newgoodcd>
- <checkgood>
- <checkgoodcd/>
- </checkgood>
- </main>
- <send>
- <save>
- <goodlist/>
- <gooddetlist/>
- <setautoins>
- <setyn>N</setyn>
- </setautoins>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <edicd/>
- <goodcd/>
- <mdlcd/>
- <spec/>
- <prodcmpy/>
- <smlcd/>
- <model/>
- <mdlnm/>
- <lrgnm/>
- <smlnm/>
- <prodcmpynm/>
- <instflag/>
- <oldcd/>
- </goodlist>
- <gooddetlist>
- <goodcd/>
- <fromdd/>
- <useyn/>
- </gooddetlist>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- <snewgoodcd>
- <lrgcd/>
- <mdlcd/>
- </snewgoodcd>
- <scheckgood>
- <scheckgoodcd/>
- </scheckgood>
- <sendmasterexcel/>
- <attach>
- <file/>
- <instcd/>
- </attach>
- </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>
- <copydata>
- <mastexcel>
- <goodnm/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <winacnt/>
- <amtacnt/>
- <goodunitcost/>
- <addtaxrate/>
- <purcunit/>
- <deliveunit/>
- <exchqty/>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <suppcustcd/>
- <suppcustnm/>
- <mainmngtdeptcd/>
- <mainmngtdeptname/>
- <bnscd/>
- <orgloc/>
- <cmt/>
- </mastexcel>
- </copydata>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- btn_excelload.visible = false;
- btn_savemaster.visible = false;
-
- ]]>
- </script>
- <submission id="TRRSC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
- <submission id="TXRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
- <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TRRSC05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/snewgoodcd" resultref="/root/main/newgoodcd"/>
- <submission id="TRRSC05602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scheckgood" resultref="/root/main/checkgood"/>
- <submission id="TXRSC05307" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/hidden/temp1"/>
- </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[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function insertTomaster()
- {
-
- grd_mastexcel.deleteRow(1);
- grd_mastexcel.refresh();
-
- //grd_mastexcel.rowStatus
- for(var currow = grd_mastexcel.fixedRows ; currow < grd_mastexcel.rows ; currow++)
- {
- grd_mastexcel.addStatus(currow,"insert");
- }
-
- }
-
-
- function fInitialize() {
-
-
- misfGridInit(grd_goodlist);
- misfGridInit(grd_gooddetlist);
- misfGridInit(grd_costhistinfo);
- misfGridInit(grd_instinfo);
-
- misfGridInit(grd_mastexcel);
- misfGridInit(grd_attach);
-
-
- misfGridIUD(grd_gooddetlist, "A");
-
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/save/setautoins/setyn","N");
- // rszfUserGoodFlagList(ipt_goodflag,getUserInfo("userid"));
- /*
- misfComboComCdListMulti(
- "R0092,
- R0032,
- R0039,
- R0043,
- R0069,
- R0068,
- R0047,
- R0106,
- R0093,
- R0095,
- R0111,
- R0107,
- R0032",
- "cmb_reqmthd,
- cmb_purcunit,
- cmb_deliveunit,
- cmb_asetflag,
- cmb_stocmngtflag,
- cmb_proddrugsetflag,
- cmb_curncyunit,
- cmb_plceordqtycretflag,
- cmb_reqprid,
- cmb_conflag,
- cmb_purcflag,
- cmb_plceordbase,
- cmb_cntsunit");
- */
- misfComboComCdList("030R0003",cmb_purccls);
- misfComboComCdListMulti("R0043,R0069,R0106,R0093,R0107,R0032,R0032","cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase,cmb_cntsunit,cmb_specunit");
-
-
-
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
- if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
-
-
- model.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");
-
- //hidden default value
- /*<!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF) -->*/
- model.setValue(ipt_goodflag.attribute("ref"), 'SF');
- model.setValue(ipt_goodflag_search.attribute("ref"), 'SF');
- /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
- rszfComboUnitList ( cmb_purcunit, model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_goodflag_search.attribute("ref") ) );
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //규격단위
-
- // 물품구분별 권한
- fSetGoodFlagAuth();
- //rbo_instflag.select(1);
- model.setValue(rbo_instflag.attribute("ref"),"Y");
-
- grd_goodlist.explorerbar = "sortshow";
- model.setFocus("ipt_goodcd");
-
-
- model.refresh();
- }
-
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
-
- //btn_save.disabled=true; //이현민 수정test
-
- rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;//이현민
- }
-
- // 화면 전체 조회
- 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");
-
-
-
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드는" ,"I003");
- model.setFocus("ipt_goodcd");
- return false;
- }
-
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품코드명은" ,"I003");
- model.setFocus("ipt_goodnm");
- return false;
- }
-
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드는" ,"I003");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_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;
- }
- //hbh
- // if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
- // {
- // messageBox("청구방법은" ,"I003");
- // model.setFocus("cmb_reqmthd");
- // return false;
- // }
-
- if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
- {
- messageBox("구매단위은" ,"I003");
- model.setFocus("cmb_purcunit");
- return false;
- }
-
- if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
- {
- messageBox("환산수량은" ,"I003");
- model.setFocus("ipt_exchqty");
- return false;
- }
-
- if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
- {
- messageBox("불출단위는" ,"I003");
- model.setFocus("cmb_deliveunit");
- return false;
- }
-
- if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
- {
- messageBox("재고관리기준은" ,"I003");
- model.setFocus("cmb_stocmngtflag");
- return false;
- }
-
- if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
- {
- messageBox("자산구분은" ,"I003");
- model.setFocus("cmb_asetflag");
- return false;
- }
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(ipt_nonusetretresn.attribute("ref")) == 0)
- {
- messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
- model.setFocus("ipt_nonusetretresn");
- return false;
- }
-
- // if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_fromconterm");
- // return false;
- //
- // }
- //
- // if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
- // {
- // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- // model.setFocus("ipt_toconterm");
- // return false;
- // }
- //
- return true;
- }
-
- function fCheckSaveMasterData()
- {
-
- for(var currow = grd_mastexcel.fixedRows ; currow < grd_mastexcel.rows ; currow++)
- {
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodnm")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 물품코드를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("lrgcd")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 대분류코드를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mdlcd")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 중분류코드를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodunitcost")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 단가를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("purcunit")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 포장단위를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("deliveunit")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 불출단위를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("exchqty")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 환산수량을 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("maincustlastsuplplce")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 주거래처코드를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
- if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mainmngtdeptcd")).length == 0)
- {
- messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 관리부서코드를 " ,"C001");
- grd_mastexcel.row = currow ;
- grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
- return false;
- }
-
- }
- return true;
- }
-
-
- function fAfterRetrGoodList()
- {
- if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
- model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
-
- if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
- else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
-
- grp_detail.refresh();
- grp_etcgood.refresh();
-
- grd_gooddetlist.row = 1;
- model.setFocus("ipt_goodcd");
- }
-
- function fCheckAuth() {
-
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ; //이현민
- //btn_prt.disabled = !checkAuth("P") ;
- }
-
- function fSetDataCopy(){
- if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
- misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
- grp_detail.refresh();
- }
- function fDefaultSetting()
- {
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
- model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
- model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(ipt_lrgnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(ipt_mdlnm_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlnm" , model.getValue(ipt_smlnm_search.attribute("ref")));
- //model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
- //model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(opt_prodcmpynm_search.attribute("ref")));
- // hbh 추가
- model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
- model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
- model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'3'); // 1: 처방집계 2: 정량보충 3:일반청구
- model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
- model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,'J'); // 청구 방법
- model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1'); // 청구주기
- model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1'); // 자산구분
- model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N'); // 일반전문(약품)
- model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N'); // 특별약품 (약품)
- model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231'); // 종료일
-
-
-
- //jhj 추가
- ipt_goodcd.disabled = false;
- ipt_goodnm.disabled = false;
- ipt_lrgcd.disabled = false;
- ipt_winacnt.disabled = false;
- cmb_asetflag.disabled = false;
- cmb_purcunit.disabled = false;
- cmb_deliveunit.disabled = false;
- ipt_exchqty.disabled = false;
- ipt_mngtdeptcd.disabled = false;
- cmb_stocmngtflag.disabled = false;
- cmb_purccls.disabled = false;
- }
-
- function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
- var node1 = instance1.selectNodes(ptarget_node + "/*");
- var node2 = instance1.selectNodes(psource_node + "/*");
- for (var i = 0; i < node1.length ; i++) {
- for (var j = 0; j < node2.length; j++) {
- if (node1.item(i).nodeName == node2.item(j).nodeName) {
- var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
- var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
-
- var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
- var copysource = psource_node + "/" + node2.item(j).nodeName;
-
- for (var k = 0; k < nextnode1.length; k++) {
- for (var p = 0; p < nextnode2.length; p++) {
- if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
- if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
- model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
- }
- }
- }
- }
- }
- }
- return false;
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- /*
- if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd_search");
- return false;
- }
- if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
- {
- messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
- model.setFocus("ipt_goodcd_search");
- return false;
- }
- */
- return true;
- }
- function fInstGoodCdCopy()
- {
- if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
-
- btn_insert.dispatch("DOMActivate");
-
- model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
- model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
- model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
- model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
- model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
- model.SetValue(opt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
- model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
- model.SetValue(opt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
- model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
- model.SetValue(opt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
-
- model.refresh();
-
- model.setFocus("ipt_winacnt");
- }
- function fGoodCdCopy()
- {
- if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("ipt_goodflag_search");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("ipt_mdlcd");
- return false;
- }
-
- model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
- model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
- model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
- submit("TRRSC05303");
-
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- if(goodcd.length == 0)goodcd = model.getValue(ipt_goodflag_search.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
-
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- grp_detail.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1373;">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">식자재 코드 등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:61px; "/>
- <caption id="caption3" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:9; width:83px; height:17px; ">대 분 류 :</caption>
- <caption id="caption61" class="search_name" style="left:353px; top:9px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption39" class="search_name" style="left:710px; top:9px; width:86px; height:17px; ">소 분 류 :</caption>
- <line id="line1" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:52px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- fRetrGoodList(false);
- ]]>
- </script>
- </button>
- <input id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" class="input_search" style="left:100; top:8; width:60; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag_search.attribute("ref")) +"," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," ,"","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","ipt_goodflag_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_lrgcd_search" class="icon_search" style="left:164px; top:10; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgnm_search" ref="/root/send/goodlist/lrgnm" class="input_search" style="left:183px; top:8px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_lrgnm_search.value != ""){
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
- "lrgnm," + model.getValue(ipt_goodflag_search.attribute("ref")) +",," + model.getValue(ipt_lrgnm_search.attribute("ref")),
- "","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","ipt_goodflag_search");
- }else{
- ipt_lrgcd_search.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" _chartype="upper" style="left:186px; top:34px; width:497px; height:19px; "/>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" style="left:100px; top:34px; width:84px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd_search.value = ipt_goodcd_search.currentText;
- ipt_goodcd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" class="input_search" style="left:439px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_mdlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mdlcd_search" class="icon_search" style="left:503px; top:10; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd_search,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm_search" ref="/root/send/goodlist/mdlnm" class="input_search" style="left:523px; top:8px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mdlnm_search.value != ""){
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + ",," + model.getValue(ipt_mdlnm_search.attribute("ref"))
- ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
- }else{
- ipt_mdlcd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" class="input_search" style="left:792px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_smlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm_search.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) + "," +
- model.getValue(ipt_smlcd_search.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd_search,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_smlcd_search" class="icon_search" style="left:856px; top:10; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd_search,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_smlnm_search" ref="/root/send/goodlist/smlnm" class="input_search" style="left:875px; top:8px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_smlnm_search.value != ""){
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
- "smlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) + ",," +
- model.getValue(ipt_smlnm_search.attribute("ref"))
- ,"","smlcd,smlnm" ,ipt_smlcd_search,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search,ipt_mdlcd_search,ipt_mdlnm_search");
- }else{
- ipt_smlcd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption81" class="search_name" style="left:710px; top:35px; width:85px; height:17px; ">기 관 :</caption>
- <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:794px; top:35px; width:95px; 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_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:1075px; top:30px; width:25px; height:19px; "/>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:82px; height:13px; ">식자재목록</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:735; y2:95px; "/>
- <caption id="caption1" class="tit_2" style="left:745; top:81px; width:95px; height:13px; ">통합품목정보</caption>
- <switch id="switch2" style="left:0px; top:450px; width:735px; height:284px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1">
- <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 124, 127, 99, 83, 0, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:29px; width:733px; height:243px; ">
- <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="line21" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
- </case>
- <case id="case2">
- <line id="line49" class="line_1" style="x1:0; y1:24; x2:533px; y2:24; "/>
- <group id="grp_etcgood" style="left:0px; top:29px; width:530px; height:60px; ">
- <line id="line50" class="line_2" style="x1:0px; y1:22px; x2:528px; y2:22px; "/>
- <line id="line53" class="line_3" style="x1:0px; y1:46px; x2:528px; y2:46px; "/>
- <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:111px; top:2px; width:150px; 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:111px; top:26px; width:150px; 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:375px; top:26px; width:153px; height:19px; text-align:right; "/>
- <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:375px; top:2px; width:153px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/plceordqtycretflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </case>
- <case id="case4">
- <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" caption="기관코드^기관명" colsep="^" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:29px; width:733px; height:243px; ">
- <col ref="instcd"/>
- <col ref="instnm"/>
- </datagrid>
- <line id="line22" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
- </case>
- <case id="case3" selected="true">
- <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
- <datagrid id="grd_mastexcel" nodeset="/root/init/copydata/mastexcel" caption="물품명^대분류^대분류명^중분류^중분류명^입고계정^비용계정^단가^세율^포장단위^불출단위^환산수량^주거래처코드^주거래처명^보조거래처코드^보조거래처명^관리부서코드^관리부서명^업체코드^원산지^비고^caption6" colsep="^" colwidth="100, 86, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:730px; height:205px; font-size:10pt; ">
- <col ref="goodnm"/>
- <col ref="lrgcd"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd"/>
- <col ref="mdlnm"/>
- <col ref="winacnt"/>
- <col ref="amtacnt"/>
- <col ref="mainmngtdeptcd"/>
- <col ref="mainmngtdeptname"/>
- <col ref="purcunit"/>
- <col ref="deliveunit"/>
- <col ref="exchqty"/>
- <col ref="maincustlastsuplplce"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="goodunitcost"/>
- <col ref="bnscd"/>
- <col ref="orgloc"/>
- <col ref="cmt"/>
- <col ref="addtaxrate"/>
- </datagrid>
- <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size^caption1" colsep="^" colwidth="403, 93, 100" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:55px; top:70px; width:660px; height:140px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- <col ref="instcd"/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_insert" class="btn2_letter2" navindex="12" style="left:1152px; top:74px; 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(cmb_purccls.length> 0) cmb_purccls.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" style="left:1075px; top:74px; 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="물품코드^물품구분^물품명^대분류^대분류명^중분류^중분류명^소분류^소분류명" colsep="^" colwidth="75, 0, 135, 42, 87, 47, 85, 59, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:100px; width:735px; height:322px; ">
- <col ref="goodcd" type="output" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="goodnm" type="output" _key="true"/>
- <col ref="lrgcd"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd"/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="asetflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <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="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:428px; width:90px; height:22px; ">
- <caption>사용기관정보</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_excelload.visible = false;
- btn_savemaster.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_addinfo" class="btn_sw" group="tab" style="left:90px; top:428px; width:90px; height:22px; ">
- <caption>부가입력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_excelload.visible = false;
- btn_savemaster.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:428px; width:90px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_excelload.visible = false;
- btn_savemaster.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_masterinsert" class="btn_sw8" visibility="hidden" group="tab" style="left:270px; top:429px; width:112px; height:22px; ">
- <caption>신규코드일관등록</caption>
- <toggle case="case3" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_excelload.visible = true;
- btn_savemaster.visible = true;
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:740; y1:95px; x2:1195; y2:95px; "/>
- <datagrid id="grd_excel" nodeset="/root/main/list/good/goodlist" visibility="hidden" caption="기관^물품코드^물품구분^물품명^기관별물품명^업체코드^부가세^물품규격^모델^자산구분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^edi코드^제조회사코드^제조회사코드^비고^성분명^사용여부^공급처^공급처명^보조거래처^보조거래처명^포장구성단위^물품단가^구매구분^구매구분^청구방법^청구방법명^청구구분^청구구분명^청구주기^청구주기명^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="50, 50, 50, 50, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:20px; top:155px; width:440px; height:97px; ">
- <col ref="instcd"/>
- <col ref="goodcd"/>
- <col ref="goodflag"/>
- <col ref="goodnm"/>
- <col ref="goodcd_instcd"/>
- <col ref="bnscd"/>
- <col ref="addtaxrate"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="asetflag"/>
- <col ref="lrgcd"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd"/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="edicd"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="comnm" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="maincustlastsuplplce" visibility="hidden"/>
- <col ref="maincustlastsuplplcenm" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="suppcustnm" visibility="hidden"/>
- <col ref="setunit" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="purcflag" visibility="hidden"/>
- <col ref="purcflagnm" visibility="hidden"/>
- <col ref="reqmthd" visibility="hidden"/>
- <col ref="reqmthdnm" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqflagnm" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="reqpridnm" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- </datagrid>
- <button id="btn_excel2" class="btn5_letter3" style="left:662px; top:75px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vdate = new Date();
- var HH = vdate.getHours();
- var MI = vdate.getMinutes();
- var SS = vdate.getSeconds();
-
- var vTime = HH +"" + MI +"" + SS;
-
-
- var vFileNM = "식자재목록내역_"+getCurrentDate()+ vTime;
-
- var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_excel.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_excelload" class="btn5_letter3" visibility="hidden" style="left:670px; top:430px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- misfGridInit(grd_mastexcel);
- grd_mastexcel.loadExcel(fileName, 1);
- grd_mastexcel.refresh();
- //물품코드를 찾아서 매핑
- insertTomaster();
- ]]>
- </script>
- </button>
- <button id="btn_savemaster" class="btn2_letter2" navindex="12" visibility="hidden" style="left:620px; top:430px; 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");
- */
- if(fCheckSaveMasterData() == false) return;
- model.copyNode("/root/send/sendmasterexcel","/root/init/copydata/mastexcel");
-
- model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
- alert(model.getValue("/root/send/sendmasterexcel/instcd"))
-
- //return;
-
-
- //submit("TXRSC05307");
-
- //alert("ok");
-
- var maxsize = upload1.attribute("filesize");
- //alert("maxsize" + maxsize);
- var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //alert("filename"+filename);
- var filelist = filename.split("|");
- //alert("filelist"+filelist);
- var s = new String(filelist[filelist.length-1]);
- //alert("s"+s);
- var ss = s.split("\\");
- //alert("ss"+ ss);
-
- if(filename !=""){
- //작업 전 row를 추가 >파일명 유/무에 따른 분기>
- for(var i = 0 ; i < filelist.length ; i++ ){
- grd_attach.addRow(false);
-
- if(filelist[i] == ""){
- //alert(grd_attach.rows - 1);
- grd_attach.removeRow(false);
- grd_attach.refresh();
- }else{
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- //파일크기('tfHelper.checkFileSize' 참조)
- var fileCnt = upload1.getFileCount();
- var lastIndex = fileCnt - 1;
- var fileSize = upload1.getFileSize(lastIndex);
- grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- }
-
- model.setValue("root/send/attach/instcd",model.getValue("/root/send/unitref/instcd") );
- //model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
- model.refresh();
- //alert(model.getValue("/root/send/sendmasterexcel/instcd"))
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRSC05307");
- closeLoadingBar();
- misfGridInit(grd_attach);
-
- //btn_search.dispatch("DOMActivate");
- }
-
-
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:555px; top:425px; width:30px; height:25px; "/>
- </group>
- <group id="group4" visibility="visible" style="left:0; top:12; width:1195; height:27; ">
- <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //이현민
- model.setValue("/root/send/scheckgood/scheckgoodcd",model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
- //alert(model.getValue("/root/send/scheckgood/scheckgoodcd"));
- submit("TRRSC05602");
- //alert(model.getValue("/root/main/checkgood/checkgoodcd"));
- //alert(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length);
-
- if (grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1 || grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 3 ) {
-
- if(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length != 0 ) {
- messageBox("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요" ,"");
- return;
- //alert("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "~로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요")
- }
- }
-
- //이현민
-
- 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:58px; 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:886px; top:4px; width:100px; height:19px; "/>
- <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:791px; top:4px; width:100px; height:19px; "/>
- </group>
- <group id="grp_detail" style="left:740px; top:135px; width:455px; height:595px; ">
- <line id="line19" class="line_2" style="x1:0px; y1:463px; x2:455px; y2:463px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:382px; x2:455px; y2:382px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:439px; x2:455px; y2:439px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:415px; x2:455px; y2:415px; "/>
- <line id="line20" class="line_3" style="x1:0px; y1:510px; x2:455px; y2:510px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:94px; x2:455px; y2:94px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:70px; x2:455px; y2:70px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:46px; x2:455px; y2:46px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:455px; y2:22px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:284px; x2:455px; y2:284px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:166px; x2:455px; y2:166px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:214px; x2:455px; y2:214px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:190px; x2:455px; y2:190px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:142px; x2:455px; y2:142px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:118px; x2:455px; y2:118px; "/>
- <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" disabled="true" appearance="minimal" style="left:110px; top:288px; width:200px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("cmb_asetflag");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_goodspec");
- // else model.setFocus("ipt_lrgcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:300px; top:553px; width:15px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodnm");
- else model.setFocus("ipt_goodengnm");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">물 품 코 드</caption>
- <button id="btn_smlcd" class="icon_search" style="left:180px; top:144px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm,ipt_mdlcd,opt_mdlnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_lrgcd" class="icon_search" style="left:180px; top:96px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_essential" disabled="true" maxlength="12" _chartype="upper" style="left:110px; top:26px; width:168px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="output_fix" appearance="output" style="left:199px; top:142px; width:255px; height:19px; "/>
- <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:199px; top:166px; width:255px; height:19px; "/>
- <output id="opt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="output_fix" appearance="output" style="left:199px; top:94px; width:255px; height:19px; "/>
- <caption id="caption66" class="cell_1" style="left:0px; top:140px; 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:199px; top:190px; width:255px; height:19px; "/>
- <button id="btn_mdlcd" class="icon_search" style="left:180px; top:120px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm");
- model.refresh();
- //코딩 추가
- //alert(grd_gooddetlist.rowStatus(grd_gooddetlist.row));
-
-
- model.setValue( "/root/send/snewgoodcd/lrgcd",model.getValue("/root/main/gooddet/gooddetlist/lrgcd"));
- model.setValue( "/root/send/snewgoodcd/mdlcd",model.getValue("/root/main/gooddet/gooddetlist/mdlcd"));
- model.refresh();
-
- //alert(model.getValue("/root/send/snewgoodcd/lrgcd"));
- //alert(model.getValue("/root/send/snewgoodcd/mdlcd"));
-
- //alert(model.getValue("/root/send/snewgoodcd/mdlcd"));
-
-
- //
- if (grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1 || grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 3 ) {
-
- //Trim(ipt_lrgcd.currentText).length
- //alert(ipt_lrgcd.currentText.getTrim());
- //alert(ipt_mdlcd.currentText.getTrim());
-
-
- // model.refresh();
- if ( ipt_lrgcd.currentText.length > 0 || ipt_mdlcd.currentText.length >0 ) {
- if ( ipt_lrgcd.currentText.getTrim().length > 0 || ipt_mdlcd.currentText.getTrim().length >0 ) {
-
- submit("TRRSC05601");
-
- model.setValue(ipt_goodcd.attribute("ref"),model.getValue("/root/main/newgoodcd/goodcdno"));
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </button>
- <output id="opt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="output_fix" appearance="output" style="left:199px; top:118px; width:255px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:0px; top:164px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
- <caption id="caption68" class="cell_1" style="left:0px; top:94px; width:108px; height:21px; vertical-align:middle; ">대 분 류</caption>
- <caption id="caption47" class="cell_1" style="left:0px; top:48px; width:108px; height:21px; vertical-align:middle; ">물 품 명</caption>
- <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" style="left:110px; top:142px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(opt_smlnm.attribute("ref"),"");
- rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + "," +
- model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm,ipt_mdlcd,opt_mdlnm");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_mdlcd");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_amtacnt" class="icon_search" style="left:180px; top:192px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" disabled="false" style="left:110px; top:94px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(opt_lrgnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref"))+",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_asetflag");
- else model.setFocus("ipt_mdlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell_1" style="left:0px; top:188px; width:108px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
- <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" disabled="false" style="left:110px; top:166px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:0px; top:116px; width:108px; height:23px; vertical-align:middle; ">중 분 류</caption>
- <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" style="left:110px; top:118px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(opt_mdlnm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm");
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" visibility="hidden" style="left:345px; top:553px; width:10px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpynm,," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- // model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("cmb_prodplce");
- // else model.setFocus("ipt_goodmodel");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:315px; top:553px; width:15px; 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:110px; top:190px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_winacnt");
- else model.setFocus("ipt_fromdd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" visibility="hidden" appearance="output" style="left:355px; top:553px; width:12px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" disabled="false" maxlength="25" style="left:110px; top:49px; width:344px; 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>
- <button id="btn_mngtdeptcd" class="icon_search" style="left:176px; top:416px; 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" disabled="true" appearance="minimal" style="left:110px; top:313px; width:110px; height:19px; ">
- <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>
- <button id="btn_useinstinfo" class="btn2_letter7" style="left:224px; top:2px; width:97px; height:19px; ">
- <caption>타기관코드복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInstGoodCdCopy();
- ]]>
- </script>
- </button>
- <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장/불출/환산</caption>
- <button id="btn_photinfo" class="btn2_letter2" style="left:280px; top:26px; width:42px; height:19px; ">
- <caption>사진</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //SPRSC00210
- rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:0px; top:414px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
- <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" disabled="true" style="left:111px; top:416px; 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" disabled="true" appearance="minimal" style="left:222px; top:313px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_deliveunit");
- else model.setFocus("ipt_minexch");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_essential" disabled="true" maxlength="9" format="#,###" style="left:343px; top:313px; width:111px; 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:199px; top:416px; width:255px; height:19px; "/>
- <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:230px; top:553px; width:15px; 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:2px; width:112px; height:19px; background-color:#ffffff; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_fromdd");
- else model.setFocus("ipt_smlcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_essential" disabled="true" appearance="minimal" style="left:111px; top:440px; width:343px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stocmngtflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- // if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
- // else model.setFocus("cmb_reqmthd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:0px; top:438px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
- <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" visibility="hidden" appearance="minimal" style="left:240px; top:553px; width:20px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqprid">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:111px; top:488px; width:87px; height:19px; "/>
- <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" style="left:205px; top:488px; width:249px; 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:535px; width:343px; 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="caption5" class="cell_1" style="left:0px; top:486px; width:109px; height:23px; vertical-align:middle; ">코드불용일자/사유</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:534px; width:108px; height:23px; vertical-align:middle; ">비 고</caption>
- <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:199px; top:214px; width:255px; height:19px; "/>
- <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:199px; top:238px; width:255px; height:19px; "/>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" style="left:110px; top:214px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,custnm", model.getValue(opt_instcd.attribute("ref")) +"," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- //if(event.shiftKey)model.setFocus("cmb_purcflag");
- //else model.setFocus("ipt_suppcustcd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" style="left:180px; top:240px; 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="caption67" class="cell_1" style="left:0px; top:335px; 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:110px; top:337px; width:156px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
- //event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.getValue(ipt_prodcmpycd.attribute("ref"))
- ]]>
- </script>
- </input>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:180px; top:216px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption37" class="cell_1" style="left:0px; top:236px; width:108px; height:23px; vertical-align:middle; ">보 조 거 래 처</caption>
- <caption id="caption27" class="cell_1" style="left:0px; top:212px; width:108px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" style="left:110px; top:238px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,custnm", 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_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_essential" visibility="hidden" maxlength="12" style="left:285px; top:553px; width:15px; 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>
- <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:150px; top:553px; width:8px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" visibility="hidden" format="#,###" style="left:210px; top:553px; width:15px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" visibility="hidden" maxlength="3" style="left:365px; top:553px; width:10px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:330px; top:553px; width:15px; 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>
- <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" visibility="hidden" appearance="minimal" style="left:210px; top:553px; width:8px; height:19px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>G</value>
- </item>
- <item>
- <label>전문</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:200px; top:553px; width:8px; height:19px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>특별</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" visibility="hidden" format="#,###" style="left:115px; top:553px; width:15px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("rdo_reqflag");
- else model.setFocus("ipt_plceordnonusedd");
- }
- //event.preventDefault();
-
- ]]>
- </script>
- </input>
- <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" visibility="hidden" appearance="full" cellspacing="60" cols="5" overflow="visible" style="left:260px; top:553px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>냉동</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:170px; top:553px; width:8px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/specunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcunit");
- else model.setFocus("ipt_exchqty");
- }
- //event.preventDefault();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="tit_2" style="left:5px; top:395px; width:95px; height:13px; ">재고관리기준</caption>
- <line id="line26" class="line_1" style="x1:0px; y1:410px; x2:455px; y2:410px; "/>
- <output id="output1" ref="/root/main/gooddet/gooddetlist/comnm" class="output_fix" visibility="hidden" appearance="output" style="left:375px; top:553px; width:15px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:405px; top:553px; width:15px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" format="#,###" style="left:120px; top:553px; width:20px; 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>
- <button id="btn_winacnt" class="icon_search" style="left:180px; top:168px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/gooddet/gooddetlist/plceordnonusedd" class="input_default" inputtype="date" style="left:111px; top:464px; width:87px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:462px; width:109px; height:23px; vertical-align:middle; ">발주불용일자</caption>
- <select1 id="rbo_addtaxrate" ref="/root/main/gooddet/gooddetlist/addtaxrate" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:315px; top:337px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>면세</label>
- <value>0</value>
- </item>
- <item>
- <label>과세</label>
- <value>10</value>
- </item>
- </choices>
- </select1>
- <line id="line24" class="line_2" style="x1:0px; y1:311px; x2:455px; y2:311px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:359px; width:108px; height:23px; vertical-align:middle; ">원 산 지</caption>
- <input id="ipt_orgloc" ref="/root/main/gooddet/gooddetlist/orgloc" class="input_default" maxlength="30" style="left:110px; top:361px; width:344px; height:19px; text-align:left; "/>
- <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:420px; top:553px; width:15px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:286px; width:108px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
- <line id="line25" class="line_2" style="x1:0px; y1:334px; x2:455px; y2:334px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:487px; x2:455px; y2:487px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:510px; width:109px; height:23px; vertical-align:middle; ">업 체 코 드</caption>
- <input id="input2" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_default" style="left:110px; top:512px; width:156px; height:19px; text-align:left; "/>
- <select1 id="cmb_purccls" ref="/root/main/gooddet/gooddetlist/purccls" class="input_essential" disabled="true" appearance="minimal" style="left:110px; top:263px; width:200px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="cell_1" style="left:0px; top:261px; width:108px; height:23px; vertical-align:middle; ">구 매 요 구 구 분</caption>
- <line id="line28" class="line_2" style="x1:0px; y1:259px; x2:455px; y2:259px; "/>
- <select1 id="rdo_costconyn" ref="/root/main/gooddet/gooddetlist/costconyn" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:320px; top:265px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>단가</label>
- <value>Y</value>
- </item>
- <item>
- <label>비단가</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" class="cell_1" style="left:0px; top:71px; width:108px; height:21px; vertical-align:middle; ">규 격</caption>
- <line id="line29" class="line_2" style="x1:0px; y1:92px; x2:455px; y2:92px; "/>
- <input id="input3" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_essential" disabled="false" maxlength="25" style="left:110px; top:71px; width:344px; 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>
- </group>
- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="goodcd^todd^prefromdd^instcd^useyn^fromdd^goodflag^edicd^goodnm^goodhngnm^goodengnm^goodspec^goodmodel^pregoodspec^pregoodmodel^asetflag^lrgcd^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^cntsqty^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^purccls^costconyn^caption1^caption2" colsep="^" colwidth="95, 61, 38, 92, 94, 92, 92, 100, 92, 94, 61, 124, 114, 90, 97, 101, 68, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 199, 184, 123, 214, 184, 123, 184, 184, 123, 184, 184, 199, 123, 123, 123, 123, 123, 184, 199, 123, 123, 138, 153, 100, 61, 61, 184, 61, 245, 153, 184, 245, 184, 100, 100, 245, 184, 184, 184, 184, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:325px; width:705px; height:85px; ">
- <col ref="goodcd" _key="true"/>
- <col ref="todd" _key="true"/>
- <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
- <col ref="instcd" _key="true"/>
- <col ref="useyn"/>
- <col ref="fromdd"/>
- <col ref="goodflag"/>
- <col ref="edicd"/>
- <col ref="goodnm" style="left:1078px; top:23px; width:92px; height:23px; "/>
- <col ref="goodhngnm"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="pregoodspec"/>
- <col ref="pregoodmodel"/>
- <col ref="asetflag" _key="true"/>
- <col ref="lrgcd" _key="true"/>
- <col ref="lrgnm"/>
- <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
- <col ref="mdlnm"/>
- <col ref="smlcd"/>
- <col ref="smlnm"/>
- <col ref="proddrugsetflag"/>
- <col ref="winacnt" _key="true"/>
- <col ref="winacntnm"/>
- <col ref="amtacnt"/>
- <col ref="amtacntnm"/>
- <col ref="mainmngtdeptcd" _key="true"/>
- <col ref="mainmngtdeptnm"/>
- <col ref="mainusedeptcd"/>
- <col ref="stocmngtflag"/>
- <col ref="purcunit"/>
- <col ref="deliveunit"/>
- <col ref="exchqty"/>
- <col ref="minexch"/>
- <col ref="reuseyn"/>
- <col ref="divusenvalqty"/>
- <col ref="calcscorinfoacptstat"/>
- <col ref="calcscorinfoacptdd"/>
- <col ref="edicd"/>
- <col ref="reqdeptcd"/>
- <col ref="reqdeptnm"/>
- <col ref="reqpsn"/>
- <col ref="reqpsnnm"/>
- <col ref="reqflag"/>
- <col ref="reqflagnm"/>
- <col ref="reqmthd" _key="true"/>
- <col ref="reqprid"/>
- <col ref="prodplce"/>
- <col ref="prodcmpycd"/>
- <col ref="prodcmpynm"/>
- <col ref="maincustlastsuplplce" _key="true"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustcd"/>
- <col ref="suppcustnm"/>
- <col ref="conflag"/>
- <col ref="fromconterm"/>
- <col ref="toconterm"/>
- <col ref="estmamt"/>
- <col ref="forgncurncyunitcost"/>
- <col ref="curncyunit"/>
- <col ref="goodunitcost"/>
- <col ref="purcflag"/>
- <col ref="allsizeyn"/>
- <col ref="setplceordflag"/>
- <col ref="plceordbase"/>
- <col ref="plceordqtycretflag"/>
- <col ref="plceordnonusedd"/>
- <col ref="addtaxrate"/>
- <col ref="lastpurcdd"/>
- <col ref="nonusetretresn"/>
- <col ref="mngtflag"/>
- <col ref="expnyn"/>
- <col ref="cmt"/>
- <col ref="cntsqty"/>
- <col ref="ddavguseqty"/>
- <col ref="mmavgusescheqty"/>
- <col ref="mmavguseqty"/>
- <col ref="prprtystocpossndayno"/>
- <col ref="tmpreqflag"/>
- <col ref="oldcd"/>
- <col ref="bnscd"/>
- <col ref="cntsunit"/>
- <col ref="specvol"/>
- <col ref="purccls"/>
- <col ref="costconyn"/>
- <col ref="com"/>
- <col ref="goodtype"/>
- <col ref="narcflag"/>
- <col ref="keepmthd"/>
- <col ref="cntrdrugyn"/>
- <col ref="plceordnonusedd"/>
- <col ref="expnyn"/>
- <col ref="limdrugyn"/>
- <col ref="gnrlspcl"/>
- <col ref="orgloc"/>
- <col ref="specldrug"/>
- <col ref="keeptemp"/>
- <col ref="deliveunit" style="left:13448px; top:23px; width:100px; height:23px; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|