1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716 |
- <?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>
- <![CDATA[zzz]]>
- <xhtml:title>CSR 물품 Master</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <!--(20101014) 경북대) -->
- <misgoodchk/>
- <!--(20101014) 경북대) -->
- <!--(20101013) 경북대) -->
- <srchinfo>
- <srchflag/>
- </srchinfo>
- <!--(20101013) 경북대) -->
- <RscmgubnLists>
- <TreeList>
- <depth/>
- <pcode/>
- <codecd/>
- <codenm>
- </codenm>
- <basecd/>
- <mainmngtdeptcd/>
- <mainmngtdeptnm/>
- <winacnt/>
- <winacntnm/>
- <amtacnt/>
- <amtacntnm/>
- <dispnm>
- </dispnm>
- </TreeList>
- </RscmgubnLists>
- <cond>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <refflag>1</refflag>
- <goodnm/>
- <reqflag/>
- <proddrugsetflag/>
- <smlnm/>
- <useyn>Y</useyn>
- <goodpos/>
- <goodpos1/>
- <goodpos2/>
- <cdflag>1</cdflag>
- </cond>
- <deptcodelist/>
- <goodlist>
- <rgstyn/>
- <prcpyn/>
- <goodcd/>
- <allsizeyn/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <purclnkgoodcd/>
- <tmpreqflag/>
- <goodunitcost/>
- <reqflag>1</reqflag>
- <proddrugsetflag>2</proddrugsetflag>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <csrgoodnm/>
- <csrgoodspec/>
- <csrgoodmodel/>
- <prodcmpynm/>
- <purcflag/>
- <reqmthd/>
- <reqprid/>
- <prcpflag>N</prcpflag>
- <prcpunit/>
- <prcpexchqty/>
- <suppcustcd/>
- <custnm/>
- <cntctel/>
- <faxno/>
- <deliveunit/>
- <exchqty/>
- <goodinfo/>
- <fstrgstdt/>
- <fstrgstrid/>
- <fstrgstrnm/>
- <insuinfo/>
- <useyn>Y</useyn>
- <calcscorinfoacptstat/>
- <fromdd/>
- <todd/>
- <goodpos/>
- <goodpos1/>
- <goodpos2/>
- <prsdnm/>
- <dump/>
- <deliveflag/>
- <lastupdtdt/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <allsizespecid/>
- <dinfflag>Y</dinfflag>
- <dinfdivs/>
- <csrrequnit/>
- <csrreqqty/>
- <csrreqflag>Y</csrreqflag>
- <mstflag>T</mstflag>
- <baseqty/>
- <simlgood/>
- <cleanflag/>
- <netflag/>
- <dinfcleanflag/>
- <workgubn/>
- <dlvgubn/>
- <reqdetlflag/>
- <csrworkflag/>
- <dressingyn/>
- <remark/>
- </goodlist>
- <rscdgooddata>
- <chkyn/>
- <rgstyn/>
- <prcpyn/>
- <goodcd/>
- <allsizeyn/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <purclnkgoodcd/>
- <tmpreqflag/>
- <goodunitcost/>
- <reqflag/>
- <proddrugsetflag/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <csrgoodnm/>
- <csrgoodspec/>
- <csrgoodmodel/>
- <prodcmpynm/>
- <purcflag/>
- <reqmthd/>
- <reqprid/>
- <prcpflag/>
- <prcpunit/>
- <prcpexchqty/>
- <suppcustcd/>
- <custnm/>
- <cntctel/>
- <faxno/>
- <prcpflag/>
- <deliveunit/>
- <exchqty/>
- <goodinfo/>
- <fstrgstdt/>
- <fstrgstrid/>
- <fstrgstrnm/>
- <insuinfo/>
- <lastupdtrid/>
- <lastupdtdt/>
- <useyn/>
- <calcscorinfoacptstat/>
- <allsizespecid/>
- </rscdgooddata>
- <popup/>
- </main>
- <send>
- <reqlrgcd>
- <instcd/>
- <goodflag/>
- <useyn/>
- </reqlrgcd>
- <goodflag/>
- <instcd/>
- </send>
- <init>
- <initflag>D</initflag>
- <deptflag/>
- <deptref>
- <instcd/>
- </deptref>
- <mlist>
- <R0092>
- <cdid/>
- <cdnm/>
- </R0092>
- <R0032>
- <cdid/>
- <cdnm/>
- </R0032>
- <R0039>
- <cdid/>
- <cdnm/>
- </R0039>
- <R0111>
- <cdid/>
- <cdnm/>
- </R0111>
- </mlist>
- <codeinfo/>
- </init>
- <hidden/>
- <temp>
- <cond>
- <checkallitem/>
- </cond>
- </temp>
- <!-- (20101013) 경북대 -->
- <tmp>
- <hidden>
- <goodflaginfo/>
- </hidden>
- </tmp>
- <!-- (20101013) 경북대 -->
- <!-- (20101014) 경북대 -->
- <tmp1>
- <hidden1>
- <csrgoodflaginfo/>
- </hidden1>
- </tmp1>
- <!-- (20101014) 경북대 -->
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/lrglist"/>
- <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/mdllist"/>
- <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/smllist"/>
- <submission id="TRMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
- <submission id="TRMNG00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/RscmgubnLists"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post">//</submission>
- <submission id="TRMNG00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TXMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/temp"/>
- <!--(20101013) 경북대 추가 -->
- <submission id="TRMNP04497" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/hidden"/>
- <!--(20101013) 경북대 추가 -->
- <!--(20101014) 경북대 추가 -->
- <submission id="TRMNG00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp1/hidden1"/>
- <!--(20101014) 경북대 추가 -->
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
- </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="../../../com/basiccodeweb/js/ZBC001.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" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var workflag = "S"; // P :일괄등록, S: 하나씩 등록
- var preIdx = -1;
- var preStat = "0";
- var srchflag = '1';
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.removeNodeset(grd_rscdgooddata.attribute("ref"));
- model.makeValue("/root/send/reqdata/goodflag" ,"D"); // 메시지종류
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
-
- //---------------(20101013) 경북대 s1
- cap_srchflag.visible = true;
- cmb_srchflag.visible= true;
- model.makeValue("/root/send/req/flag", "CSR");
- submit("TRMNP04497");//마스터구분이 구매인 경우 물품구분을 사용한다.
- cmb_srchflag.select(0);
- //---------------(20101013) 경북대 e1
-
- //---------------(20101014) 경북대 s1
- //중앙공급실 물품구분 코드 GET
- submit("TRMNG00205");
- //---------------(20101014) 경북대 s1
-
-
- model.makeValue("/root/send/reqdata/cdgrupid", "'T95', 'U20'");
- model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
- submit("TRMNW00001");
-
- addComboItem("cmb_csrworkflag", " ", "", "above");
-
- //submit("TRMNG00202"); // Tree Data 정보를 가져온다.
- zbcfGetCodeList( new Array ( "R0092" //청구방법
- ,"R0032" //구매단위
- ,"R0111" //구매구분
- ,"R0093" //청구기간
- , "R0025"
- ,"M0635"
- ,"M0637"
- ,"M0638"
- )
- , new Array ( "/root/init/mlist" //청구방법
- ,"/root/init/mlist" //구매단위
- ,"/root/init/mlist" //구매구분
- ,"/root/init/mlist" //청구기간
- ,"/root/send/goodflag"
- ,"/root/init/mlist" //청구기간
- ,"/root/init/mlist" //업무분류
- ,"/root/init/mlist" //불출구분
- )
- );
- //불출단위 이름순 정렬 by 박영우 2010-02-09
- zbcfGetCodeList( new Array ("R0039"), new Array ("/root/init/mlist"), true, new Array ("cdnm"), new Array("asc")); //불출단위
-
- model.setValue(opt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- opt_instcd.refresh();
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
- model.makeValue("/root/send/reqdata/dutycd", "D");
- model.makeValue("/root/send/reqdata/cdflag", "E");
-
- model.refresh();
-
- }
-
- function fSearch() {
- fRetrGoodList();
- fInitCntrl();
- preStat = "0";
- }
-
- // 분류구분 대분류 조회
- function fSearchLrgcd() {
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
-
- var initflag = model.getValue(rdo_initflag.attribute("ref"));
- if(initflag == "OR") {
- model.makeValue("/root/send/reqlrgcd/lrgcd", "OR");
- } else {
- model.makeValue("/root/send/reqlrgcd/lrgcd", "");
- }
- submit("TRMNG00101");
- }
-
- //분류구분에 중분류 조회
- function fMdlCDSearch(srchflag){
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- if(srchflag =="srch"){
- var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
- model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
- }else{
- model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
- }
- model.makeValue("/root/send/reqlrgcd/useyn", "Y");
- submit("TRMNG00102");
- model.removeNodeset("/root/main/goodlist/mdlcd");
- model.removeNodeset("/root/main/goodlist/smlcd");
- model.makeNode("/root/main/goodlist/mdlcd");
- model.makeNode("/root/main/goodlist/smlcd");
-
- var nodelist = instance1.selectNodes("/root/init/mdllist");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- }
- cmb_mdlcd.refresh();
- cmb_smlcd.refresh();
-
- }
-
- //분류구분에 소분류 조회
- function fSmlCDSearch(srchflag){
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- if(srchflag =="srch"){
- var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
- var mdlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd"));
- model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
- model.makeValue("/root/send/reqlrgcd/mdlcd", mdlcd);
- }else{
- model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
- model.makeValue("/root/send/reqlrgcd/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
- }
- model.makeValue("/root/send/reqlrgcd/useyn", "Y");
- submit("TRMNG00103");
- grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
- model.removeNodeset("/root/main/goodlist/smllist");
- model.makeNode("/root/main/goodlist/smllist");
- var nodelist = instance1.selectNodes("/root/init/smllist");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/smllist");
- }
- cmb_smlcd.refresh();
-
- }
- function fGetCodeList() {
- model.makeValue("/root/send/reqlrgcd/instcd" , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqlrgcd/goodflag", model.getValue(cmb_goodflag_search.attribute("ref")));
- model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
-
- submit("TRMNG00101");
-
- }
-
- // 화면 전체 조회
-
- function fRetrGoodList(saveflag) {
-
- model.removeNodeset("/root/send/reqdata");
- //alert("initflag: " + rdo_initflag.value + " goodflag: " + cmb_goodflag_search.value + " rdo_refflag: " + rdo_refflag.value + " ipt_goodnm : " + ipt_goodnm.value);
- if(saveflag!="S"){
- if(rdo_initflag.value== "D") {
-
- if(cmb_goodflag_search.value == "" && ipt_goodnm.value == "") {
-
- messageBox("구매물품 조회시 물품분류, 물품코드, 물품명은 적어도 하나는 선택하셔야합니다.", "E");
- return;
- }
- }
- }
- model.makeValue("/root/send/reqdata/initflag" , model.getValue(rdo_initflag.attribute("ref")) );
- model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/goodflag" , cmb_goodflag_search.value);
- model.makeValue("/root/send/reqdata/lrgcd" , model.getValue(opt_lrgcd2.attribute("ref")));
- model.makeValue("/root/send/reqdata/mdlcd" , model.getValue(opt_mdlcd2.attribute("ref")));
- model.makeValue("/root/send/reqdata/smlcd" , model.getValue(opt_smlcd2.attribute("ref")));
-
- //구매, CSR구분.
- var initflag = model.getValue(rdo_initflag.attribute("ref"));
- var refflag = model.getValue(rdo_refflag.attribute("ref"));
-
- //검색구분
- var cdflag = model.getValue(rdo_cdflag.attribute("ref"));
-
- //구매일때
- if(initflag == "D" && refflag == "1") {
- if(cdflag == "1") {
- model.makeValue("/root/send/reqdata/goodcd" , model.getValue(ipt_goodnm.attribute("ref")));
- } else if(cdflag == "2") {
- model.makeValue("/root/send/reqdata/goodnm" , model.getValue(ipt_goodnm.attribute("ref")));
- }
- } else if(initflag == "T" && refflag == "2") {
- if(cdflag == "1") {
- model.makeValue("/root/send/reqdata/csrgoodcd" , model.getValue(ipt_goodnm.attribute("ref")));
- } else if(cdflag == "2") {
- model.makeValue("/root/send/reqdata/csrgoodnm" , model.getValue(ipt_goodnm.attribute("ref")));
- }
- }
-
-
- model.makeValue("/root/send/reqdata/reqflag" , model.getValue(rdo_reqflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/proddrugsetflag" , model.getValue(rdo_proddrugsetflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/useyn" , model.getValue(rdo_useyn2.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodpos" , model.getValue(ipt_searchgoodpos.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodpos1" , model.getValue(ipt_searchgoodpos1.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodpos2" , model.getValue(ipt_searchgoodpos2.attribute("ref")));
- model.makeValue("/root/send/reqdata/srchflag2", srchflag);
-
- //------(20101012) 경북대
- if(saveflag!="S"){
- if(rdo_initflag.value== "D") {
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/srchinfo/srchflag"));
- }
- }
- //------(20101012) 경북대
- submit("TRMNG00201");
- model.refresh();
- }
-
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- //btn_prt.disabled = !checkAuth("P") ;
- }
-
- function fDefaultSetting() {
- model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(cmb_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(cmb_lrgcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , cmb_lrgcd_search.label );
- model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(cmb_mdlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , cmb_mdlcd_search.label );
- model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(cmb_smlcd_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/smlnm" , cmb_smlcd_search.label );
- model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
- model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(ipt_prodcmpynm_search.attribute("ref")));
- }
-
-
-
- function fGoodCdCopy() {
-
- if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 ) {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("cmb_lrgcd");
- return false;
- }
-
- model.makeValue("/root/send/goodcopy/goodflag", "T");
- model.makeValue("/root/send/goodcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
-
- var mdlcd ;
- var smlcd;
-
- if( model.getValue(cmb_mdlcd.attribute("ref")) == "") {
- mdlcd = "00";
- } else {
- mdlcd = model.getValue(cmb_mdlcd.attribute("ref"));
- }
-
- if( model.getValue(cmb_smlcd.attribute("ref")) == "") {
- smlcd = "00";
- } else {
- smlcd = model.getValue(cmb_smlcd.attribute("ref"));
- }
- model.makeValue("/root/send/goodcopy/mdlcd", mdlcd);
- model.makeValue("/root/send/goodcopy/smlcd", smlcd);
-
- if(model.getValue("/root/init/initflag") =="OR"){
- model.makeValue("/root/send/goodcopy/cretcdflag","OR");
- }
- submit("TRMNG00203");
-
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- if(goodcd.length == 0)goodcd = model.getValue(cmb_goodflag_search.attribute("ref")) + model.getValue(opt_lrgcd.attribute("ref")) + model.getValue(opt_mdlcd.attribute("ref")) + "0001";
-
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- //grp_detail.refresh();
- ipt_goodcd.refresh();
- }
-
-
- var TreePath = "/root/main/RscmgubnLists/TreeList";
-
- //트리 선택시 선택한 Depth에 대한 물품구분 대중소 분류코드를 가져온 다음 물품정보를 조회한다.
- function fTreeClick(pIdx) {
-
- var OpCode = "";
- var OpDepth = "";
- var vDepth = "";
- var vGoodflag = "";
- var vGoodflagnm = "";
- var vLrgcd = "";
- var vLrgnm = "";
- var vMdlcd = "";
- var vMdlnm = "";
- var vSmlcd = "";
- var vSmlnm = "";
- var vMainmngtdeptcd = "";
- var vMainmngtdeptnm = "";
- var vWinacnt = "";
- var vWinacntnm = "";
- var vAmtacnt = "";
- var vAmtacntnm = "";
-
-
- var Idx = pIdx + 1;
-
- var sDepth = model.getValue(TreePath +"["+Idx+"]/depth");
-
- if (sDepth == "1") {
- vGoodflag = model.getValue(TreePath +"["+Idx+"]/codecd");
- vGoodflagnm = model.getValue(TreePath +"["+Idx+"]/codenm");
- }
-
- if (sDepth == "2") {
- vLrgcd = model.getValue(TreePath +"["+Idx+"]/codecd");
- vLrgnm = model.getValue(TreePath +"["+Idx+"]/codenm");
-
- OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
-
- vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
-
- }
-
- if (sDepth == "3") {
- vMdlcd = model.getValue(TreePath +"["+Idx+"]/codecd") ;
- vMdlnm = model.getValue(TreePath +"["+Idx+"]/codenm") ;
-
- OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
- vLrgcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vLrgnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
-
- OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
- vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
- }
- if (sDepth == "4") {
- vSmlcd = model.getValue(TreePath +"["+Idx+"]/codecd");
- vSmlnm = model.getValue(TreePath +"["+Idx+"]/codenm");
-
- OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
- vMdlcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vMdlnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
-
- OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
- vLrgcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vLrgnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
-
- OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
- vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
- vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
- }
- model.setValue(cmb_goodflag_search.attribute("ref") , vGoodflag);
- model.setValue(opt_lrgcd2.attribute("ref") , vLrgcd);
- model.setValue(opt_lrgnm.attribute("ref") , vLrgnm);
-
- model.setValue(opt_mdlcd2.attribute("ref") , vMdlcd);
- model.setValue(opt_mdlnm.attribute("ref") , vMdlnm);
-
- model.setValue(opt_smlcd2.attribute("ref") , vSmlcd);
- model.setValue(opt_smlnm.attribute("ref") , vSmlnm);
-
-
- cmb_goodflag_search.refresh();
- opt_lrgcd2.refresh();
- //cmb_lrgcd.refresh();
- opt_lrgnm.refresh();
- // cmb_mdlcd.refresh();
- opt_mdlcd2.refresh();
- opt_mdlnm.refresh();
- //cmb_smlcd.refresh();
- opt_smlcd2.refresh();
- opt_smlnm.refresh();
-
- if(rdo_initflag.value == "D") {
- if(sDepth == "3" || sDepth == "4") {
- fSearch();
- }
- } else {
- if(sDepth == "2" || sDepth == "3" || sDepth == "4") {
- fSearch();
- }
- }
- }
-
- function fEnDisCtrl(flag) {
-
- btn_purclnkgood.disabled = flag;
- rdo_reqflag2.disabled = flag;
- rdo_proddrugsetflag2.disabled = flag;
- ipt_csrgoodnm.disabled = flag;
- ipt_csrgoodspec.disabled = flag;
- ipt_csrgoodmodel.disabled = flag;
-
- rdo_useyn.disabled = flag;
- ipt_goodpos.disabled = flag;
- ipt_goodpos1.disabled = flag;
- ipt_goodpos2.disabled = flag;
- btn_suppcust.disabled = flag;
- btn_prodcmpy.disabled = flag;
-
- cmb_lrgcd.disabled = flag;
- cmb_mdlcd.disabled = flag;
- cmb_smlcd.disabled = flag;
- tar_goodinfo.disabled = flag;
- rdo_csrreqflag.disabled = flag;
- cmb_csrrequnit.disabled = flag;
- ipt_csrreqqty.disabled = flag;
- rdo_dinfflag.disabled = flag;
- ipt_todd.disabled = flag;
- }
-
- function fSetPreGridData() {
- var initflag = rdo_initflag.value;
- if(initflag == "D") {
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- } else {
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- }
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("lrgcd")) = model.getValue(cmb_lrgcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("lrgnm")) = cmb_lrgcd.label;
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mdlcd")) = model.getValue(cmb_mdlcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mdlnm")) = cmb_mdlcd.label;
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("smlcd")) = model.getValue(cmb_smlcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("smlnm")) = cmb_smlcd.label;
- // grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref") );
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("calcscorinfoacptstat")) = model.getValue(ipt_calcscorinfoacptstat.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodunitcost")) = model.getValue(ipt_goodunitcost.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodnm")) = model.getValue(ipt_goodnm2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodspec")) = model.getValue(ipt_goodspec.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodmodel")) = model.getValue(ipt_goodmodel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodnm")) = model.getValue(ipt_csrgoodnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodspec")) = model.getValue(ipt_csrgoodspec.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodmodel")) = model.getValue(ipt_csrgoodmodel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prodcmpycd")) = model.getValue(ipt_prodcmpycd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prodcmpynm")) = model.getValue(ipt_prodcmpynm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("purcflag")) = model.getValue(cmb_purcflag.attribute("ref"));
-
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqprid")) = model.getValue(cmb_reqprid.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpflag")) = model.getValue(rdo_prcpflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpunit")) = model.getValue(cmb_prcpunit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpexchqty")) = model.getValue(ipt_prcpexchqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("suppcustcd")) = model.getValue(ipt_suppcustcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("custnm")) = model.getValue(ipt_custnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("cntctel")) = model.getValue(ipt_cntctel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("deliveunit")) = model.getValue(cmb_deliveunit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("insuinfo")) = model.getValue(ipt_insuinfo.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstdt")) = model.getValue(ipt_fstrgstdt.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstrid")) = model.getValue(ipt_fstrgstrid.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstrnm")) = model.getValue(ipt_fstrgstrnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fromdd")) = model.getValue(ipt_fromdd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("todd")) = model.getValue(ipt_todd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodflag")) = model.getValue(cmb_goodflag_search.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("useyn")) = model.getValue(rdo_useyn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos")) = model.getValue(ipt_goodpos.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(ipt_goodpos1.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(ipt_goodpos2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqflag")) = model.getValue(rdo_reqflag2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(rdo_proddrugsetflag2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("deliveflag")) = model.getValue(rdo_deliveflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("exchqty")) = model.getValue(ipt_exchqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(rdo_dinfflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(cmb_csrrequnit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(ipt_csrreqqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrreqflag")) = model.getValue(rdo_csrreqflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mstflag")) = model.getValue(rdo_mstflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(cmb_dinfdivs.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("baseqty")) = model.getValue(ipt_baseqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("simlgood")) = model.getValue(tar_simlgood.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("netflag")) = model.getValue(rdo_netflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("cleanflag")) = model.getValue(cmb_cleanflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfcleanflag")) = model.getValue(cmb_dinfcleanflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dlvgubn")) = model.getValue(cmb_dlvgubn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("workgubn")) = model.getValue(cmb_workgubn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqdetlflag")) = model.getValue(cmb_reqdetlflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dressingyn")) = model.getValue(rdo_dressingyn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("remark")) = model.getValue(tar_remark.attribute("ref"));
- }
-
- // 물품기본정보 등록시 해당 그리드에 데이터 셋팅
- function fSetGridData() {
- var initflag = model.getValue(rdo_initflag.attribute("ref"));
- var iRow = grd_rscdgooddata.row;
- if((grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("rgstyn")) == "Y") && (grd_rscdgooddata.rowStatus(iRow) =="2")) {
- grd_rscdgooddata.rowStatus(iRow) = "2";
- } else if((grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("rgstyn")) == "N") && (grd_rscdgooddata.rowStatus(iRow) =="2")){
- grd_rscdgooddata.rowStatus(iRow) = "1";
- }
-
- if(initflag == "D") { // D: 구매
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
- }else {
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
- // grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- // 2009.11.08 최소현 ITC 요청 구매 물품을 따라가지 않는 경우는 구매물품링크는 공백으로
- }
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("lrgcd")) = cmb_lrgcd.value;
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("lrgnm")) = cmb_lrgcd.label;
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mdlcd")) = cmb_mdlcd.value;
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mdlnm")) = cmb_mdlcd.label;
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("smlcd")) = cmb_smlcd.value
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("smlnm")) = cmb_smlcd.label;
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("calcscorinfoacptstat")) = model.getValue(ipt_calcscorinfoacptstat.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodunitcost")) = model.getValue(ipt_goodunitcost.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodnm")) = model.getValue(ipt_goodnm2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodspec")) = model.getValue(ipt_goodspec.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodmodel")) = model.getValue(ipt_goodmodel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodnm")) = model.getValue(ipt_csrgoodnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodspec")) = model.getValue(ipt_csrgoodspec.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodmodel")) = model.getValue(ipt_csrgoodmodel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prodcmpycd")) = model.getValue(ipt_prodcmpycd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prodcmpynm")) = model.getValue(ipt_prodcmpynm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purcflag")) = model.getValue(cmb_purcflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqprid")) = model.getValue(cmb_reqprid.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpflag")) = model.getValue(rdo_prcpflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpunit")) = model.getValue(cmb_prcpunit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpexchqty")) = model.getValue(ipt_prcpexchqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("suppcustcd")) = model.getValue(ipt_suppcustcd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("custnm")) = model.getValue(ipt_custnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("cntctel")) = model.getValue(ipt_cntctel.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("deliveunit")) = model.getValue(cmb_deliveunit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("insuinfo")) = model.getValue(ipt_insuinfo.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstdt")) = model.getValue(ipt_fstrgstdt.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstrid")) = model.getValue(ipt_fstrgstrid.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstrnm")) = model.getValue(ipt_fstrgstrnm.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fromdd")) = model.getValue(ipt_fromdd.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("todd")) = model.getValue(ipt_todd.attribute("ref"));
-
- //------------(20101014) 경북대
- //원본
- //grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodflag")) = "T";
- //설정값으로 저장해야 함
- var vgoodflag = model.getValue("/root/tmp1/hidden1/csrgoodflaginfo/goodflagcd");
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodflag")) = vgoodflag;
- //------------(20101014) 경북대
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("useyn")) = model.getValue(rdo_useyn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos")) = model.getValue(ipt_goodpos.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(ipt_goodpos1.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(ipt_goodpos2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqflag")) = model.getValue(rdo_reqflag2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(rdo_proddrugsetflag2.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("deliveflag")) = model.getValue(rdo_deliveflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("exchqty")) = model.getValue(ipt_exchqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrreqflag")) = model.getValue(rdo_csrreqflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(cmb_csrrequnit.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(ipt_csrreqqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(rdo_dinfflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mstflag")) = model.getValue(rdo_mstflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(cmb_dinfdivs.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("baseqty")) = model.getValue(ipt_baseqty.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("simlgood")) = model.getValue(ipt_simlgood.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("cleanflag")) = model.getValue(cmb_cleanflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("netflag")) = model.getValue(rdo_netflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfcleanflag")) = model.getValue(cmb_dinfcleanflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dlvgubn")) = model.getValue(cmb_dlvgubn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("workgubn")) = model.getValue(cmb_workgubn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqdetlflag")) = model.getValue(cmb_reqdetlflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrworkflag")) = model.getValue(cmb_csrworkflag.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dressingyn")) = model.getValue(rdo_dressingyn.attribute("ref"));
- grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("remark")) = model.getValue(tar_remark.attribute("ref"));
-
- model.refresh();
- }
- //저장(saveflag="D"일때 삭제)
- function fSaveData(saveflag) {
- if(saveflag =="D"){
- var Msg = messageBox("선택하신 물품코드를","Q001");
- if(Msg =="6"){
- for(var i=1;i < grd_rscdgooddata.rows;i++){
- var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
- var rgstyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("rgstyn"));
- var initflag =model.getValue("/root/init/initflag");
- if((chkyn=="Y") && (rgstyn!="N")){
- grd_rscdgooddata.rowStatus(i)="4";
- }
- if((initflag =="T")||(initflag=="OR")){
- model.setValue("/root/main/rscdgooddata["+i+"]/csrgoodcd",grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("goodcd")));
- }
- }
- model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
- if(submit("TXMNG00201")) {
- fTreeClick(trv_setcode.focusIndex);
- messageBox("삭제가","I002");
- fInitCntrl();
- preStat = "0";
- if(bool1.value == "Y"){
- bool1.value ="N";
- }
- btn_del.disabled = true;
- }
- }else if(Msg =="7"){
- for(var i=1;i < grd_rscdgooddata.rows;i++){
- var chkyn = grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("chkyn"));
- var rgstyn = grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("rgstyn"));
- if((chkyn=="Y") && (rgstyn!="N")){
- grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("chkyn")) ="N";
- grd_rscdgooddata.rowStatus(i)="0";
- }
- }
- btn_del.disabled = true;
- if(bool1.value == "Y"){
- bool1.value ="N";
- }
- return;
- }
- }else{
- model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
- if(submit("TXMNG00201")) {
- messageBox("저장이","I002");
- fRetrGoodList("S");
- fInitCntrl();
- preStat = "0";
- if(bool1.value == "Y"){
- bool1.value ="N";
- }
- }
- }
- }
-
- function fInitGoodInfoCtrl() {
-
- model.resetInstanceNode(ipt_purclnkgoodcd.attribute("ref"));
- model.resetInstanceNode(ipt_goodpos.attribute("ref"));
- model.resetInstanceNode(ipt_goodpos1.attribute("ref"));
- model.resetInstanceNode(ipt_goodpos2.attribute("ref"));
- model.resetInstanceNode(ipt_fstrgstdt.attribute("ref"));
- model.resetInstanceNode(ipt_fstrgstrid.attribute("ref"));
- model.resetInstanceNode(ipt_fstrgstrnm.attribute("ref"));
- model.resetInstanceNode(ipt_fromdd.attribute("ref"));
-
- model.resetInstanceNode(cmb_lrgcd.attribute("ref"));
- model.resetInstanceNode(cmb_mdlcd.attribute("ref"));
- model.resetInstanceNode(cmb_smlcd.attribute("ref"));
-
- model.resetInstanceNode(ipt_prodcmpycd.attribute("ref"));
- model.resetInstanceNode(ipt_prodcmpynm.attribute("ref"));
- model.resetInstanceNode(ipt_suppcustcd.attribute("ref"));
- model.resetInstanceNode(ipt_custnm.attribute("ref"));
- model.resetInstanceNode(ipt_cntctel.attribute("ref"));
- model.resetInstanceNode(ipt_faxno.attribute("ref"));
-
- model.resetInstanceNode(ipt_goodcd.attribute("ref") );
-
- model.resetInstanceNode(rdo_reqflag2.attribute("ref") );
- model.resetInstanceNode(rdo_proddrugsetflag2.attribute("ref"));
- model.resetInstanceNode(ipt_goodnm2.attribute("ref") );
- model.resetInstanceNode(ipt_goodspec.attribute("ref") );
- model.resetInstanceNode(ipt_goodmodel.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodnm.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodspec.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodmodel.attribute("ref") );
- model.resetInstanceNode(cmb_purcflag.attribute("ref") );
- model.resetInstanceNode(cmb_reqprid.attribute("ref") );
- model.resetInstanceNode(rdo_prcpflag.attribute("ref") );
- model.resetInstanceNode(cmb_prcpunit.attribute("ref") );
- model.resetInstanceNode(ipt_prcpexchqty.attribute("ref") );
- model.resetInstanceNode(cmb_deliveunit.attribute("ref") );
- model.resetInstanceNode(rdo_deliveflag.attribute("ref") );
- model.resetInstanceNode(ipt_exchqty.attribute("ref") );
-
- model.resetInstanceNode(rdo_mstflag.attribute("ref"));
- model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
- model.resetInstanceNode(rdo_dinfflag.attribute("ref"));
- model.resetInstanceNode(cmb_csrrequnit.attribute("ref"));
- model.resetInstanceNode(ipt_simlgood.attribute("ref"));
- model.resetInstanceNode(ipt_baseqty.attribute("ref"));
- model.resetInstanceNode(tar_remark.attribute("ref"));
-
- ipt_simlgood.refresh();
- ipt_baseqty.refresh();
-
- cmb_csrrequnit.refresh();
- rdo_dinfflag.refresh();
- cmb_dinfdivs.refresh();
- rdo_mstflag.refresh();
- ipt_goodcd.refresh();
- rdo_reqflag2.refresh();
- rdo_proddrugsetflag2.refresh();
- ipt_goodnm2.refresh();
- ipt_goodspec.refresh();
- ipt_goodmodel.refresh();
- ipt_csrgoodnm.refresh();
- ipt_csrgoodspec.refresh();
- ipt_csrgoodmodel.refresh();
- cmb_purcflag.refresh();
- cmb_reqprid.refresh();
- rdo_prcpflag.refresh();
- cmb_prcpunit.refresh();
- ipt_prcpexchqty.refresh();
- cmb_deliveunit.refresh();
- ipt_exchqty.refresh();
- rdo_deliveflag.refresh();
-
- cmb_lrgcd.refresh();
- cmb_mdlcd.refresh();
- cmb_smlcd.refresh();
-
- ipt_prodcmpycd.refresh();
- ipt_prodcmpynm.refresh();
- ipt_suppcustcd.refresh();
- ipt_custnm.refresh();
- ipt_cntctel.refresh();
- ipt_faxno.refresh();
-
- ipt_purclnkgoodcd.refresh();
- ipt_goodpos.refresh();
- ipt_goodpos1.refresh();
- ipt_goodpos2.refresh();
- ipt_fstrgstdt.refresh();
- ipt_fstrgstrid.refresh();
- ipt_fstrgstrnm.refresh();
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- model.setValue(rdo_dinfflag.attribute("ref"), "1");
- rdo_dinfflag.refresh();
-
- var deptcd = getUserInfo("dutplcecd");
-
- if(deptcd == "3080000000") {
-
- } else if(deptcd = "3070000000") {
-
- }
-
- }
-
- function fInitGoodAllCtrl() {
- model.resetInstanceNode(ipt_purclnkgoodcd.attribute("ref") );
- model.resetInstanceNode(ipt_goodcd.attribute("ref") );
- model.resetInstanceNode(rdo_reqflag2.attribute("ref") );
- model.resetInstanceNode(rdo_proddrugsetflag2.attribute("ref"));
- model.resetInstanceNode(ipt_goodnm2.attribute("ref") );
- model.resetInstanceNode(ipt_goodspec.attribute("ref") );
- model.resetInstanceNode(ipt_goodmodel.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodnm.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodspec.attribute("ref") );
- model.resetInstanceNode(ipt_csrgoodmodel.attribute("ref") );
- model.resetInstanceNode(cmb_purcflag.attribute("ref") );
- model.resetInstanceNode(cmb_reqprid.attribute("ref") );
- model.resetInstanceNode(rdo_prcpflag.attribute("ref") );
- model.resetInstanceNode(cmb_prcpunit.attribute("ref") );
- model.resetInstanceNode(ipt_prcpexchqty.attribute("ref") );
- model.resetInstanceNode(cmb_deliveunit.attribute("ref") );
- model.resetInstanceNode(rdo_deliveflag.attribute("ref") );
- model.resetInstanceNode(ipt_exchqty.attribute("ref") );
- model.resetInstanceNode(ipt_prodcmpycd.attribute("ref") );
- model.resetInstanceNode(ipt_prodcmpynm.attribute("ref") );
- model.resetInstanceNode(ipt_suppcustcd.attribute("ref") );
- model.resetInstanceNode(ipt_custnm.attribute("ref") );
- model.resetInstanceNode(ipt_cntctel.attribute("ref") );
- model.resetInstanceNode(ipt_faxno.attribute("ref") );
- model.resetInstanceNode(ipt_fstrgstdt.attribute("ref") );
- model.resetInstanceNode(ipt_fstrgstrid.attribute("ref") );
- model.resetInstanceNode(ipt_fstrgstrnm.attribute("ref") );
- model.resetInstanceNode(ipt_todd.attribute("ref") );
- model.resetInstanceNode(ipt_fromdd.attribute("ref") );
- model.resetInstanceNode(rdo_useyn.attribute("ref") );
- model.resetInstanceNode(ipt_goodpos.attribute("ref") );
- model.resetInstanceNode(ipt_goodpos1.attribute("ref") );
- model.resetInstanceNode(ipt_goodpos2.attribute("ref") );
- model.resetInstanceNode(cmb_reqprid.attribute("ref") );
-
- model.resetInstanceNode(ipt_baseqty.attribute("ref") );
- model.resetInstanceNode(ipt_simlgood.attribute("ref") );
- model.resetInstanceNode(cmb_csrworkflag.attribute("ref") );
- model.resetInstanceNode(tar_remark.attribute("ref") );
- ipt_baseqty.refresh();
- ipt_simlgood.refresh();
-
- ipt_purclnkgoodcd.refresh();
- ipt_goodcd.refresh();
- rdo_reqflag2.refresh();
- rdo_proddrugsetflag2.refresh();
- ipt_goodnm2.refresh();
- ipt_goodspec.refresh();
- ipt_goodmodel.refresh();
- ipt_csrgoodnm.refresh();
- ipt_csrgoodspec.refresh();
- ipt_csrgoodmodel.refresh();
- cmb_purcflag.refresh();
- cmb_reqprid.refresh();
- rdo_prcpflag.refresh();
- cmb_prcpunit.refresh();
- ipt_prcpexchqty.refresh();
- cmb_deliveunit.refresh();
- ipt_exchqty.refresh();
- rdo_deliveflag.refresh();
- }
-
- function fInitCntrl() {
- model.resetInstanceNode("/root/main/goodlist/rgstyn");
- model.resetInstanceNode("/root/main/goodlist/prcpyn");
- model.resetInstanceNode("/root/main/goodlist/goodcd");
- model.resetInstanceNode("/root/main/goodlist/allsizeyn");
- model.resetInstanceNode("/root/main/goodlist/goodnm");
- model.resetInstanceNode("/root/main/goodlist/goodspec");
- model.resetInstanceNode("/root/main/goodlist/goodmodel");
- model.resetInstanceNode("/root/main/goodlist/prodcmpycd");
- model.resetInstanceNode("/root/main/goodlist/purclnkgoodcd");
- model.resetInstanceNode("/root/main/goodlist/goodunitcost");
- model.resetInstanceNode("/root/main/goodlist/reqflag");
- model.resetInstanceNode("/root/main/goodlist/proddrugsetflag");
- model.resetInstanceNode("/root/main/goodlist/lrgcd");
- model.resetInstanceNode("/root/main/goodlist/lrgnm");
- model.resetInstanceNode("/root/main/goodlist/mdlcd");
- model.resetInstanceNode("/root/main/goodlist/mdlnm");
- model.resetInstanceNode("/root/main/goodlist/smlcd");
- model.resetInstanceNode("/root/main/goodlist/smlnm");
- model.resetInstanceNode("/root/main/goodlist/csrgoodnm");
- model.resetInstanceNode("/root/main/goodlist/csrgoodspec");
- model.resetInstanceNode("/root/main/goodlist/csrgoodmodel");
- model.resetInstanceNode("/root/main/goodlist/prodcmpynm");
- model.resetInstanceNode("/root/main/goodlist/purcflag");
- model.resetInstanceNode("/root/main/goodlist/reqprid");
- model.resetInstanceNode("/root/main/goodlist/prcpflag");
- model.resetInstanceNode("/root/main/goodlist/prcpunit");
- model.resetInstanceNode("/root/main/goodlist/prcpexchqty");
- model.resetInstanceNode("/root/main/goodlist/suppcustcd");
- model.resetInstanceNode("/root/main/goodlist/custnm");
- model.resetInstanceNode("/root/main/goodlist/cntctel");
- model.resetInstanceNode("/root/main/goodlist/faxno");
- model.resetInstanceNode("/root/main/goodlist/deliveunit");
- model.resetInstanceNode("/root/main/goodlist/exchqty");
- model.resetInstanceNode("/root/main/goodlist/goodinfo");
- model.resetInstanceNode("/root/main/goodlist/fstrgstdt");
- model.resetInstanceNode("/root/main/goodlist/fstrgstrid");
- model.resetInstanceNode("/root/main/goodlist/fstrgstrnm");
- model.resetInstanceNode("/root/main/goodlist/insuinfo");
- model.resetInstanceNode("/root/main/goodlist/useyn");
- model.resetInstanceNode("/root/main/goodlist/calcscorinfoacptstat");
- model.resetInstanceNode("/root/main/goodlist/fromdd");
- model.resetInstanceNode("/root/main/goodlist/todd");
- model.resetInstanceNode("/root/main/goodlist/goodpos");
- model.resetInstanceNode("/root/main/goodlist/goodpos1");
- model.resetInstanceNode("/root/main/goodlist/goodpos2");
- model.resetInstanceNode("/root/main/goodlist/prsdnm");
- model.resetInstanceNode("/root/main/goodlist/dump");
- model.resetInstanceNode("/root/main/goodlist/deliveflag");
- model.resetInstanceNode("/root/main/goodlist/lastupdtdt");
- model.resetInstanceNode("/root/main/goodlist/lastupdtrid");
- model.resetInstanceNode("/root/main/goodlist/lastupdtrnm");
- model.resetInstanceNode("/root/main/goodlist/allsizespecid");
- model.resetInstanceNode("/root/main/goodlist/dinfflag");
- model.resetInstanceNode("/root/main/goodlist/dinfdivs");
- model.resetInstanceNode("/root/main/goodlist/csrrequnit");
- model.resetInstanceNode("/root/main/goodlist/csrreqqty");
- model.resetInstanceNode("/root/main/goodlist/csrreqflag");
- model.resetInstanceNode("/root/main/goodlist/mstflag");
-
- model.resetInstanceNode(ipt_baseqty.attribute("ref"));
- model.resetInstanceNode(ipt_simlgood.attribute("ref"));
-
- model.resetInstanceNode(rdo_netflag.attribute("ref"));
- model.resetInstanceNode(cmb_cleanflag.attribute("ref"));
- model.resetInstanceNode(cmb_dinfcleanflag.attribute("ref"));
- model.resetInstanceNode(cmb_workgubn.attribute("ref"));
- model.resetInstanceNode(cmb_dlvgubn.attribute("ref"));
- model.resetInstanceNode(cmb_csrworkflag.attribute("ref"));
-
- model.resetInstanceNode(tar_remark.attribute("ref"));
-
- if(rdo_initflag.value == "OR") {
- model.setValue(rdo_mstflag.attribute("ref"), "OR");
- } else {
- model.setValue(rdo_mstflag.attribute("ref"), "T");
- }
- model.setValue(rdo_proddrugsetflag2.attribute("ref"), "2");
- model.setValue(rdo_reqflag2.attribute("ref"), "1");
- model.setValue(rdo_dinfflag.attribute("ref"), "1");
- model.setValue(rdo_useyn.attribute("ref"), "Y");
- model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
-
- model.refresh();
- }
-
- //선택일괄등록시 물품기본정보 셋팅 후 바로 저장
- function fGoodInfoSave(){
- for(var i = 1; i < grd_rscdgooddata.rows; i++) {
- var iStatus = grd_rscdgooddata.rowStatus(i);
- var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
- if(iStatus =="2" && chkyn == "Y") {
- model.setValue("/root/main/rscdgooddata["+i+"]/mstflag" ,getParameter("mstflag"));
- model.setValue("/root/main/rscdgooddata["+i+"]/reqflag" ,getParameter("reqflag"));
- model.setValue("/root/main/rscdgooddata["+i+"]/proddrugsetflag" ,getParameter("proddrugsetflag"));
- model.setValue("/root/main/rscdgooddata["+i+"]/useyn" ,getParameter("useyn"));
- model.setValue("/root/main/rscdgooddata["+i+"]/goodpos" ,getParameter("goodpos"));
- model.setValue("/root/main/rscdgooddata["+i+"]/goodpos1" ,getParameter("goodpos1"));
- model.setValue("/root/main/rscdgooddata["+i+"]/goodpos2" ,getParameter("goodpos2"));
- model.setValue("/root/main/rscdgooddata["+i+"]/dinfflag" ,getParameter("dinfflag"));
- model.setValue("/root/main/rscdgooddata["+i+"]/dinfdivs" ,getParameter("dinfdivs"));
- model.setValue("/root/main/rscdgooddata["+i+"]/lrgcd" ,getParameter("lrgcd"));
- model.setValue("/root/main/rscdgooddata["+i+"]/mdlcd" ,getParameter("mdlcd"));
- model.setValue("/root/main/rscdgooddata["+i+"]/smlcd" ,getParameter("smlcd"));
- model.setValue("/root/main/rscdgooddata["+i+"]/csrreqflag" ,getParameter("csrreqflag"));
- model.setValue("/root/main/rscdgooddata["+i+"]/csrrequnit" ,getParameter("csrrequnit"));
- model.setValue("/root/main/rscdgooddata["+i+"]/csrreqqty" ,getParameter("csrreqqty"));
- model.setValue("/root/main/rscdgooddata["+i+"]/workflag" ,"P");
- model.setValue("/root/main/rscdgooddata["+i+"]/initflag" ,model.getValue("/root/init/initflag"));
- }
- }
- grd_rscdgooddata.refresh();
- fSaveData();
- }
-
- //마스터 구분 선택시 조회
- function fMstChgSearch(){
-
- model.resetInstanceNode(cmb_goodflag_search.attribute("ref"));
- cmb_goodflag_search.refresh();
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
-
- model.makeValue("/root/send/reqdata/goodflag", "T");
- caption9.attribute("text")="CSR물품분류";
- btn_new.disabled = false;
- rdo_mstflag.disabled = false;
- rdo_mstflag.value = rdo_initflag.value;
- btn_allrgst.disabled =true;
- // btn_save.disabled = true;
- } else {
- model.makeValue("/root/send/reqdata/goodflag", "D");
- // btn_save.disabled = true;
- caption9.attribute("text")="구매물품분류";
- btn_new.disabled = true;
- rdo_mstflag.disabled = false;
- btn_allrgst.disabled =false;
- }
-
- fInitCntrl();
-
- model.makeValue("/root/send/reqdata/initflag", model.getValue(rdo_initflag.attribute("ref")));
-
- //--------------(20101014) 경북대
- if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
- //구매인경우는 물품구분에서 선택된 자료를 이용
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/srchinfo/srchflag"));
- } else {
- //csr인경우는 화면초기에 호출된 물품구분을 사용한다.
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/tmp1/hidden1/csrgoodflaginfo/goodflagcd"));
- }
- //--------------(20101014) 경북대
- submit("TRMNG00202");
-
- model.removeNodeset(grd_rscdgooddata.attribute("ref"));
- grd_rscdgooddata.rebuild();
- }
-
- // 마스터 구분 선택시 상태값 변경
- function fRdoMstSelect(){
- if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
- rdo_reqflag.disabled = true;
- rdo_proddrugsetflag.disabled = true;
- ipt_searchgoodpos.disabled = true;
- ipt_searchgoodpos1.disabled = true;
- ipt_searchgoodpos2.disabled = true;
- model.setValue("/root/main/cond/refflag","1");
- rdo_refflag.refresh();
-
- //---(20101013) 경북대 S1
- //구매인경우
- cap_srchflag.visible = true;
- cmb_srchflag.visible= true;
-
-
- chk_misyn.visible = true;
- model.setValue("/root/main/misgoodchk","Y");
- //---(20101013) 경북대 e1
-
- } else if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
- rdo_reqflag.disabled = false;
- rdo_proddrugsetflag.disabled = false;
- ipt_goodpos1.disabled = false;
- ipt_goodpos2.disabled = false;
- ipt_goodpos.disabled = false;
- model.setValue("/root/main/cond/refflag","2");
- rdo_refflag.refresh();
- //---(20101013) 경북대 S1
- //구매인경우
- cap_srchflag.visible = false;
- cmb_srchflag.visible= false;
-
- chk_misyn.visible = false;
- model.setValue("/root/main/misgoodchk","N");
- chk_misyn.refresh();
- //---(20101013) 경북대 e1
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:70px; width:130px; height:13px; ">구매물품분류</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:85px; x2:300px; y2:85px; "/>
- <caption id="cap_title" class="tit_2" style="left:310px; top:70px; width:95px; height:13px; ">물품정보</caption>
- <line id="line2" class="line_1" style="x1:305px; y1:85px; x2:1195px; y2:85px; "/>
- <group id="grp_title" style="left:0px; top:0px; width:300px; height:63px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:300px; height:62px; "/>
- <caption id="caption91" class="search_name" style="left:10px; top:9px; width:116px; height:17px; ">MASTER구분 :</caption>
- <select1 id="rdo_orginitflag" ref="/root/init/orginitflag" visibility="hidden" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:130px; top:35px; width:165px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>구매</label>
- <value>D</value>
- </item>
- <item>
- <label>CSR</label>
- <value>T</value>
- </item>
- <item>
- <label>OR</label>
- <value>OR</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
- rdo_reqflag.disabled = true;
- rdo_proddrugsetflag.disabled = true;
- ipt_searchgoodpos.disabled = true;
- ipt_searchgoodpos1.disabled = true;
- ipt_searchgoodpos2.disabled = true;
- model.setValue("/root/main/cond/refflag","1");
- rdo_refflag.refresh();
-
- } else if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
- rdo_reqflag.disabled = false;
- rdo_proddrugsetflag.disabled = false;
- ipt_goodpos1.disabled = false;
- ipt_goodpos2.disabled = false;
- ipt_goodpos.disabled = false;
- model.setValue("/root/main/cond/refflag","2");
- rdo_refflag.refresh();
- }
- fMstChgSearch();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_initflag" ref="/root/init/initflag" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:130px; top:6px; width:115px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>구매</label>
- <value>D</value>
- </item>
- <item>
- <label>CSR</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRdoMstSelect();
- fMstChgSearch();
- ]]>
- </script>
- </select1>
- <!-- (20101013) 경북대 -->
- <select1 id="cmb_srchflag" ref="/root/main/srchinfo/srchflag" class="combo_essential" appearance="minimal" style="left:130px; top:30px; width:160px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/tmp/hidden/goodflaginfo">
- <label ref="goodflagnm"/>
- <value ref="goodflagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fMstChgSearch();
- ]]>
- </script>
- </select1>
- <caption id="cap_srchflag" class="search_name" style="left:10px; top:30px; width:93px; height:17px; ">물품구분 :</caption>
- <!-- (20101013) 경북대 -->
- </group>
- <group id="group2" style="left:305px; top:0px; width:890px; height:63px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:890px; height:62px; "/>
- <caption id="caption10" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">코드종류 :</caption>
- <select1 id="rdo_refflag" ref="/root/main/cond/refflag" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:90px; top:8px; width:115px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>구매</label>
- <value>1</value>
- </item>
- <item>
- <label>CSR</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_refflag.attribute("ref")) == "1") {
- rdo_reqflag.disabled = true;
- rdo_proddrugsetflag.disabled = true;
- ipt_searchgoodpos.disabled = true;
- ipt_searchgoodpos1.disabled = true;
- ipt_searchgoodpos2.disabled = true;
- model.setValue("/root/init/initflag","D");
- rdo_initflag.refresh();
-
- } else if(model.getValue(rdo_refflag.attribute("ref")) == "2") {
- rdo_reqflag.disabled = false;
- rdo_proddrugsetflag.disabled = false;
- ipt_goodpos1.disabled = false;
- ipt_goodpos2.disabled = false;
- ipt_goodpos.disabled = false;
- model.setValue("/root/init/initflag","T");
- rdo_initflag.refresh();
- }
- //---------(20101014) 경북대
- fRdoMstSelect();
- //---------(20101014) 경북대
- fMstChgSearch();
- ]]>
- </script>
- </select1>
- <input id="ipt_goodnm" ref="/root/main/cond/goodnm" style="left:430px; top:9px; width:115px; height:19px; "/>
- <line id="line36" class="line_4" style="x1:765px; y1:10px; x2:765px; y2:51px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:770px; top:20px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- srchflag = "2";
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:5px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="rdo_reqflag" ref="/root/main/cond/reqflag" disabled="true" appearance="full" cols="5" overflow="visible" style="left:90px; top:35px; width:255px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:345px; top:35px; width:116px; height:17px; ">Set 구분 :</caption>
- <select1 id="rdo_proddrugsetflag" ref="/root/main/cond/proddrugsetflag" disabled="true" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:430px; top:35px; width:165px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Set</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:590px; top:35px; width:90px; height:17px; ">사용유무 :</caption>
- <select1 id="rdo_useyn2" ref="/root/main/cond/useyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:678px; top:36px; width:80px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption39" class="search_name" style="left:560px; top:10px; width:90px; height:17px; ">물품위치 :</caption>
- <caption id="caption40" class="search_name" style="left:220px; top:10px; width:86px; height:17px; ">검색구분 :</caption>
- <select1 id="rdo_cdflag" ref="/root/main/cond/cdflag" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:310px; top:11px; width:115px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>물품명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button2" class="btn1_letter2" navindex="7" style="left:830px; top:20px; width:56px; height:22px; text-align:left; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refNm = rdo_refflag.label;
-
- var fileName = window.fileDialog("save", ",", false,"물품정보", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_rscdgooddata.saveExcel(fileName, "물품정보List",false,false, "");
- }
- ]]>
- </script>
- </button>
- </group>
- <treeview id="trv_setcode" ref="/root/main/RscmgubnLists/TreeList" expanddepth="0" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:90px; width:300px; height:650px; ">
- <itemset nodeset="/root/main/RscmgubnLists/TreeList">
- <label ref="dispnm"/>
- <value ref="codecd"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- srchflag = "1";
- fTreeClick(trv_setcode.focusIndex, srchflag);
- ]]>
- </script>
- </treeview>
- <!-- (20101014) 경북대
- <datagrid id="grd_rscdgooddata" nodeset="/root/main/rscdgooddata" caption="^등록^물품코드^물품명^규격^모델^제조원^멸균구분^멸균상세^처방^구매연결코드^SUB^tmpreqflag^goodunitcost^reqflag^proddrugsetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^csrgoodnm^csrgoodspec^csrgoodmodel^prodcmpycd^purcflag^reqmthd^reqprid^prcpflag^prcpunit^prcpexchqty^suppcustcd^custnm^cntctel^faxno^prcpflag^deliveunit^exchqty^goodinfo^fstrgstdt^fstrgstrid^fstrgstrnm^insuinfo^lastupdtrid^lastupdtdt^lastupdtrnm^useyn^calcscorinfoacptstat^fromdd^todd^goodflag^deliveflag^goodpos^goodpos1^goodpos2^allsizespecid^csrgoodcd^csrrequnit^csrreqqty^csrreqflag^dinfflag^goodinfo^master구분^baseqty^simlgood^workflag^initflag" colsep="^" colwidth="23, 30, 80, 213, 100, 100, 91, 61, 84, 30, 80, 40, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" ref="/root/main/rscdgooddata" style="left:305px; top:105px; width:890px; height:315px; ">
- -->
- <datagrid id="grd_rscdgooddata" nodeset="/root/main/rscdgooddata" caption="^등록^물품코드^물품명^상세규격^모델^제조원^멸균구분^멸균상세^처방^구매연결코드^SUB^tmpreqflag^goodunitcost^reqflag^proddrugsetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^csrgoodnm^csrgoodspec^csrgoodmodel^prodcmpycd^purcflag^reqmthd^reqprid^prcpflag^prcpunit^prcpexchqty^suppcustcd^custnm^cntctel^faxno^prcpflag^deliveunit^exchqty^goodinfo^fstrgstdt^fstrgstrid^fstrgstrnm^insuinfo^lastupdtrid^lastupdtdt^lastupdtrnm^useyn^calcscorinfoacptstat^fromdd^todd^goodflag^deliveflag^goodpos^goodpos1^goodpos2^allsizespecid^csrgoodcd^csrrequnit^csrreqqty^csrreqflag^dinfflag^goodinfo^master구분^baseqty^simlgood^workflag^initflag^netflag^cleanflag^dinfcleanflag^일지분류^불출구분^caption1^caption2^caption3^caption4" colsep="^" colwidth="23, 30, 80, 159, 93, 100, 69, 61, 84, 30, 80, 40, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" ref="/root/main/rscdgooddata" style="left:305px; top:90px; width:890px; height:256px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="rgstyn"/>
- <col ref="goodcd" _key="true"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="prcpflag" style="text-align:center; "/>
- <col ref="purclnkgoodcd"/>
- <col ref="allsizespecid"/>
- <col ref="tmpreqflag" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="proddrugsetflag" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="lrgnm" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="mdlnm" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="smlnm" visibility="hidden"/>
- <col ref="csrgoodnm" visibility="hidden"/>
- <col ref="csrgoodspec" visibility="hidden"/>
- <col ref="csrgoodmodel" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="purcflag" visibility="hidden"/>
- <col ref="reqmthd" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="prcpflag" visibility="hidden"/>
- <col ref="prcpunit" visibility="hidden"/>
- <col ref="prcpexchqty" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="cntctel" visibility="hidden"/>
- <col ref="faxno" visibility="hidden"/>
- <col ref="prcpflag" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="exchqty" visibility="hidden"/>
- <col ref="goodinfo" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstrnm" visibility="hidden"/>
- <col ref="insuinfo" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="lastupdtrnm" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="calcscorinfoacptstat" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden" _key="true"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="deliveflag" visibility="hidden"/>
- <col ref="goodpos" visibility="hidden"/>
- <col ref="goodpos1" visibility="hidden"/>
- <col ref="goodpos2" visibility="hidden"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="csrgoodcd" visibility="hidden"/>
- <col ref="csrrequnit" visibility="hidden"/>
- <col ref="csrreqqty" visibility="hidden"/>
- <col ref="csrreqflag" visibility="hidden"/>
- <col ref="dinfflag" visibility="hidden"/>
- <col ref="goodinfo" visibility="hidden"/>
- <col ref="mstflag" visibility="hidden"/>
- <col ref="baseqty" visibility="hidden"/>
- <col ref="simlgood" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="initflag" visibility="hidden" style="left:6468px; top:23px; width:100px; height:23px; "/>
- <col ref="netflag" visibility="hidden"/>
- <col ref="cleanflag" visibility="hidden"/>
- <col ref="dinfcleanflag"/>
- <col disabled="true" ref="workgubn" type="combo">
- <choices>
- <itemset nodeset="/root/init/mlist/M0637">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dlvgubn" type="combo">
- <choices>
- <itemset nodeset="/root/init/mlist/M0638">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdetlflag" visibility="hidden"/>
- <col ref="csrworkflag" visibility="hidden"/>
- <col ref="dressingyn" visibility="hidden"/>
- <col ref="remark" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //onclick 이벤트시 데이터를 선택하였을때만 이벤트를 타게 하기위한 if문.
- if(grd_rscdgooddata.isCell(event.target) && grd_rscdgooddata.mouseRow >= grd_rscdgooddata.fixedrows && grd_rscdgooddata.col != grd_rscdgooddata.colRef("chkyn")) {
-
- grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
-
- //선택한 로우에 저장되어있는 대,중,소분류 코드.
- var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
- var mdlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd"));
- var smlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlcd"));
-
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- model.makeValue("/root/send/reqlrgcd/lrgcd" , lrgcd);
- model.makeValue("/root/send/reqlrgcd/mdlcd" , mdlcd);
- model.makeValue("/root/send/reqlrgcd/smlcd" , smlcd);
- model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
- var rgstyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("rgstyn"));
- var initflag = model.getValue(rdo_initflag.attribute("ref"));
-
- if(initflag == "D") {
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
- submit("TRMNG00101");
- fMdlCDSearch("srch");
- fSmlCDSearch("srch");
- } else {
- if(rgstyn == "Y") {
- if(lrgcd != "") {
- submit("TRMNG00101");
- }
- if(mdlcd != "") {
- submit("TRMNG00102");
- }
- if(smlcd != "") {
- submit("TRMNG00103");
- }
- }
- }
- var initflag = model.getValue(rdo_initflag.attribute("ref"));
-
- //바뀌기전 열의 상태가 Insert, Update상태.
- if(preStat != "0") {
- if(workflag == "S") {
- fSetPreGridData();
- }
- }
-
-
- if(grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "0") {
- fEnDisCtrl(true);
- } else {
- if(grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "2" && rgstyn=="N") {
- fEnDisCtrl(true);
- } else {
- fEnDisCtrl(false);
- }
- }
-
- workflag = "S";
- fInitGoodInfoCtrl();
-
- if(initflag == "D") {
- model.setValue(ipt_purclnkgoodcd.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodcd")));
- model.setValue(ipt_goodcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodcd")));
- } else {
- model.setValue(ipt_purclnkgoodcd.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("purclnkgoodcd")));
- model.setValue(ipt_goodcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodcd")));
- }
-
- if(rgstyn == "Y" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "2" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "1" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "3") {
- model.setValue(cmb_lrgcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd")));
- model.setValue(opt_lrgnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgnm")));
- model.setValue(cmb_mdlcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd")));
- model.setValue(opt_mdlnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlnm")));
- model.setValue(cmb_smlcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlcd")));
- model.setValue(opt_smlnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlnm")));
-
- model.setValue(ipt_fstrgstdt.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstdt")));
- model.setValue(ipt_fstrgstrid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstrid")));
- model.setValue(ipt_fstrgstrnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstrnm")));
-
- model.setValue(ipt_fromdd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fromdd")));
- model.setValue(ipt_todd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("todd")));
- } else {
- model.setValue(cmb_lrgcd.attribute("ref") , "");
- model.setValue(opt_lrgnm.attribute("ref") , "");
- model.setValue(cmb_mdlcd.attribute("ref") , "");
- model.setValue(opt_mdlnm.attribute("ref") , "");
- model.setValue(cmb_smlcd.attribute("ref") , "");
- model.setValue(opt_smlnm.attribute("ref") , "");
-
-
- model.setValue(ipt_fstrgstdt.attribute("ref") , getCurrentDate());
- model.setValue(ipt_fstrgstrid.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_fstrgstrnm.attribute("ref") , getUserInfo("usernm"));
-
- model.setValue(ipt_fromdd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_todd.attribute("ref") , '99991231');
- }
-
- model.setValue(ipt_calcscorinfoacptstat.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("calcscorinfoacptstat")));
- model.setValue(ipt_goodunitcost.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodunitcost")));
- model.setValue(ipt_goodnm2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodnm")));
- model.setValue(ipt_goodspec.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodspec")));
- model.setValue(ipt_goodmodel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodmodel")));
- model.setValue(ipt_csrgoodnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodnm")));
- model.setValue(ipt_csrgoodspec.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodspec")));
- model.setValue(ipt_csrgoodmodel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodmodel")));
- model.setValue(ipt_prodcmpycd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prodcmpycd")));
- model.setValue(ipt_prodcmpynm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prodcmpynm")));
- model.setValue(cmb_purcflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("purcflag")));
- model.setValue(cmb_reqprid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqprid")));
- model.setValue(rdo_prcpflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpflag")));
- model.setValue(cmb_prcpunit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpunit")));
- model.setValue(ipt_prcpexchqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpexchqty")));
- model.setValue(ipt_suppcustcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("suppcustcd")));
- model.setValue(ipt_custnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("custnm")));
- model.setValue(ipt_cntctel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("cntctel")));
- model.setValue(cmb_deliveunit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("deliveunit")));
- model.setValue(ipt_insuinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("insuinfo")));
- model.setValue(tar_goodinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodinfo")));
-
- model.setValue(cmb_goodflag_search.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodflag")));
- model.setValue(rdo_useyn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("useyn")));
- model.setValue(ipt_goodpos.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos")));
- model.setValue(ipt_goodpos1.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos1")));
- model.setValue(ipt_goodpos2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos2")));
- model.setValue(rdo_proddrugsetflag2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("proddrugsetflag")));
- model.setValue(rdo_deliveflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("deliveflag")));
- model.setValue(ipt_exchqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("exchqty")));
- model.setValue(rdo_reqflag2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqflag")));
- model.setValue(ipt_allsizespecid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("allsizespecid")));
- model.setValue(ipt_lastupdtrid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtrid")));
- model.setValue(ipt_lastupdtrnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtrnm")));
- model.setValue(ipt_lastupdtdt.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtdt")));
- model.setValue(cmb_csrrequnit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrrequnit")));
- model.setValue(rdo_csrreqflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrreqflag")));
- model.setValue(ipt_csrreqqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrreqqty")));
- model.setValue(rdo_dinfflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfflag")));
- if(grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfflag")) =="2"){
- cmb_dinfdivs.disabled = true;
- }else{
- cmb_dinfdivs.disabled = false;
- }
- model.setValue(tar_goodinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodinfo")));
- model.setValue(cmb_dinfdivs.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfdivs")));
- model.setValue(rdo_mstflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mstflag")));
- model.setValue(ipt_baseqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("baseqty")));
- model.setValue(ipt_simlgood.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("simlgood")));
- model.setValue(tar_simlgood.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("simlgood")));
-
- model.setValue(cmb_cleanflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("cleanflag")));
- model.setValue(rdo_netflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("netflag")));
- model.setValue(cmb_dinfcleanflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfcleanflag")));
- model.setValue(cmb_workgubn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("workgubn")));
- model.setValue(cmb_dlvgubn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dlvgubn")));
- model.setValue(cmb_reqdetlflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqdetlflag")));
- model.setValue(cmb_csrworkflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrworkflag")));
- model.setValue(rdo_dressingyn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dressingyn")));
-
- model.setValue(tar_remark.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("remark")));
-
- //----------------(20101014) 경북대
- //구매코드여부를 사용여부 체크시
- if (model.getValue("/root/main/misgoodchk") == "Y") {
- ipt_goodcd.value = ipt_purclnkgoodcd.value;
- ipt_goodcd.refresh();
- }
- //----------------(20101014) 경북대
-
- ipt_baseqty.refresh();
- ipt_simlgood.refresh();
- tar_simlgood.refresh();
-
- rdo_mstflag.refresh();
- cmb_dinfdivs.refresh();
- cmb_csrrequnit.refresh();
- rdo_csrreqflag.refresh();
- ipt_csrreqqty.refresh();
- rdo_dinfflag.refresh();
- tar_goodinfo.refresh();
-
-
- ipt_lastupdtrid.refresh();
- ipt_lastupdtrnm.refresh();
- ipt_lastupdtdt.refresh();
-
- ipt_purclnkgoodcd.refresh();
- cmb_lrgcd.refresh();
- opt_lrgnm.refresh();
- cmb_mdlcd.refresh();
- opt_mdlnm.refresh();
- cmb_smlcd.refresh();
- opt_smlnm.refresh();
- ipt_goodcd.refresh();
- ipt_calcscorinfoacptstat.refresh();
- ipt_goodunitcost.refresh();
- ipt_goodunitcost.refresh();
- ipt_goodnm2.refresh();
- ipt_goodspec.refresh();
- ipt_goodmodel.refresh();
- ipt_csrgoodnm.refresh();
- ipt_csrgoodspec.refresh();
- ipt_csrgoodmodel.refresh();
- cmb_purcflag.refresh();
- cmb_reqprid.refresh();
- rdo_prcpflag.refresh();
- cmb_prcpunit.refresh();
- ipt_prcpexchqty.refresh();
- ipt_suppcustcd.refresh();
- ipt_custnm.refresh();
- ipt_cntctel.refresh();
- cmb_deliveunit.refresh()
- ipt_insuinfo.refresh();
- tar_goodinfo.refresh();
- ipt_fstrgstrid.refresh();
- ipt_fstrgstdt.refresh();
- ipt_fstrgstrnm.refresh();
- ipt_fromdd.refresh();
- ipt_todd.refresh();
- cmb_goodflag_search.refresh();
- rdo_useyn.refresh();
- ipt_goodpos.refresh();
- ipt_goodpos1.refresh();
- ipt_goodpos2.refresh();
- ipt_prodcmpycd.refresh();
- ipt_prodcmpynm.refresh();
- rdo_proddrugsetflag2.refresh();
- ipt_exchqty.refresh();
- rdo_deliveflag.refresh();
- rdo_reqflag2.refresh();
- ipt_allsizespecid.refresh();
-
- cmb_csrworkflag.refresh();
-
- tar_remark.refresh();
-
- btn_updt.dispatch("DOMActivate");
- }
- preIdx = grd_rscdgooddata.row;
- preStat = grd_rscdgooddata.rowStatus(grd_rscdgooddata.row);
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rscdgooddata.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chkyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row,grd_rscdgooddata.colRef("chkyn"));
- var rgstyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row,grd_rscdgooddata.colRef("rgstyn"));
- if( (chkyn=="Y")&&(rgstyn=="Y")){
- btn_del.disabled = false;
- }else{
- btn_del.disabled = true;
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:310px; top:354px; width:131px; height:13px; ">물품 기본정보 등록</caption>
- <line id="line1" class="line_1" style="x1:304px; y1:369px; x2:1193px; y2:369px; "/>
- <input id="ipt_purclnkgoodcd" ref="/root/main/goodlist/purclnkgoodcd" class="input_essential" disabled="true" maxlength="12" style="left:530px; top:375px; width:68px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/main/goodlist/goodcd" class="input_essential" disabled="true" maxlength="12" style="left:1049px; top:375px; width:94px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
- ]]>
- </script>
- </input>
- <button id="btn_cdmake" class="btn2_letter2" style="left:1149px; top:375px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var goodcd =model.getValue(ipt_goodcd.attribute("ref"));
-
- if(goodcd == "") {
- fGoodCdCopy();
- } else {
- var rtn = messageBox("새로운 코드를 생성하시겠습니까", "Q");
-
- if(rtn == "6") {
- grd_rscdgooddata.addRow();
-
- fGoodCdCopy();
- }
- }
- fSetGridData();
- ]]>
- </script>
- </button>
- <input id="ipt_calcscorinfoacptstat" ref="/root/main/goodlist/calcscorinfoacptstat" disabled="true" maxlength="12" style="left:875px; top:496px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_goodunitcost" ref="/root/main/goodlist/goodunitcost" disabled="true" maxlength="12" format="#,###" style="left:695px; top:496px; width:110px; height:19px; text-align:right; "/>
- <line id="line4" class="line_2" style="x1:305px; y1:541px; x2:1192px; y2:541px; "/>
- <!-- (20100804 경북대) -->
- <!--원본
- <select1 id="rdo_reqflag2" ref="/root/main/goodlist/reqflag" disabled="true" appearance="full" cols="5" overflow="visible" style="left:373px; top:509px; width:216px; height:13px; border-style:none; ">
- -->
- <select1 id="rdo_reqflag2" ref="/root/main/goodlist/reqflag" disabled="true" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:373px; top:451px; width:251px; height:13px; border-style:none; ">
- <!-- (20100804 경북대) -->
- <choices>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_goodnm2" ref="/root/main/goodlist/goodnm" disabled="true" style="left:373px; top:520px; width:252px; height:19px; "/>
- <input id="ipt_goodspec" ref="/root/main/goodlist/goodspec" disabled="true" style="left:373px; top:544px; width:252px; height:19px; "/>
- <input id="ipt_csrgoodmodel" ref="/root/main/goodlist/csrgoodmodel" disabled="true" style="left:695px; top:568px; width:285px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/main/goodlist/prodcmpycd" disabled="true" style="left:373px; top:592px; width:97px; height:19px; "/>
- <select1 id="rdo_prcpflag" ref="/root/main/goodlist/prcpflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:876px; top:595px; width:75px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_prcpunit" ref="/root/main/goodlist/prcpunit" disabled="true" appearance="minimal" style="left:1049px; top:592px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_prcpexchqty" ref="/root/main/goodlist/prcpexchqty" disabled="true" maxlength="12" format="###.##" style="left:1146px; top:592px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <line id="line6" class="line_2" style="x1:305px; y1:613px; x2:1192px; y2:613px; "/>
- <caption id="caption24" class="cell_1" style="left:808px; top:591px; width:65px; height:23px; vertical-align:middle; ">처방구분</caption>
- <caption id="caption25" class="cell_1" style="left:982px; top:591px; width:65px; height:23px; vertical-align:middle; ">처방단위</caption>
- <line id="line8" class="line_2" style="x1:305px; y1:661px; x2:1192px; y2:661px; "/>
- <caption id="caption21" class="cell_1" style="left:304px; top:591px; width:67px; height:23px; vertical-align:middle; ">제조원</caption>
- <caption id="caption28" class="cell_1" style="left:808px; top:639px; width:65px; height:23px; vertical-align:middle; ">등록일자</caption>
- <input id="ipt_fstrgstdt" ref="/root/main/goodlist/fstrgstdt" disabled="true" inputtype="date" style="left:875px; top:640px; width:104px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/goodlist/fromdd" disabled="true" inputtype="date" style="left:875px; top:687px; width:104px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/goodlist/todd" disabled="true" navindex="100" inputtype="date" style="left:1050px; top:688px; width:112px; height:19px; "/>
- <input id="ipt_fstrgstrid" ref="/root/main/goodlist/fstrgstrid" disabled="true" maxlength="12" style="left:982px; top:641px; width:98px; height:19px; "/>
- <input id="ipt_fstrgstrnm" ref="/root/main/goodlist/fstrgstrnm" disabled="true" maxlength="12" style="left:1083px; top:641px; width:109px; height:19px; "/>
- <input id="ipt_insuinfo" ref="/root/main/goodlist/insuinfo" disabled="true" style="left:372px; top:640px; width:433px; height:19px; "/>
- <select1 id="cmb_goodflag_search" ref="/root/send/goodflag" visibility="hidden" appearance="minimal" style="left:505px; top:349px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_purclnkgood" class="icon_search" disabled="true" visibility="hidden" style="left:460px; top:343px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- rszfOpenPopUpListByWndName(ipt_purclnkgoodcd,"","purclnkgoodcd","SPRSD00210","instcd,goodflag","opt_instcd,cmb_goodflag_search");
- model.refresh();
-
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_suppcust" class="icon_search" disabled="true" style="left:450px; top:618px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //-----(20100804 경북대)
- //기능없어야 하므로 막음
- //rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,custnm,dump,cntctel","PPRAC00600","","");
- //model.refresh();
- //-----(20100804 경북대)
-
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustcd" ref="/root/main/goodlist/suppcustcd" disabled="true" maxlength="12" style="left:372px; top:616px; width:73px; height:19px; "/>
- <input id="ipt_custnm" ref="/root/main/goodlist/custnm" disabled="true" maxlength="12" style="left:470px; top:616px; width:103px; height:19px; "/>
- <input id="ipt_cntctel" ref="/root/main/goodlist/cntctel" disabled="true" maxlength="12" style="left:575px; top:616px; width:100px; height:19px; "/>
- <input id="ipt_faxno" ref="/root/main/goodlist/faxno" disabled="true" maxlength="12" style="left:677px; top:616px; width:128px; height:19px; "/>
- <select1 id="rdo_deliveflag" ref="/root/main/goodlist/deliveflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:876px; top:619px; width:75px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_exchqty" ref="/root/main/goodlist/exchqty" disabled="true" maxlength="12" format="###.##" style="left:1146px; top:616px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <select1 id="cmb_deliveunit" ref="/root/main/goodlist/deliveunit" disabled="true" appearance="minimal" style="left:1049px; top:616px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_save" class="btn5_letter2" style="left:1150px; top:348px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(workflag !="P"){
- if(model.getValue(rdo_mstflag.attribute("ref")) == "") {
- messageBox("마스터구분은 필수입력항목", "I009");
- model.setFocus("rdo_mstflag");
- return;
- }
-
- if(model.getValue(ipt_goodcd.attribute("ref")) == "") {
- messageBox("CSR코드는 필수입력항목", "I009");
- model.setFocus("btn_cdmake");
- return;
- }
-
- if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "") {
- messageBox("Set구분은 필수입력항목", "I009");
- model.setFocus("rdo_proddrugsetflag2");
- return;
- }
-
- if(model.getValue(rdo_dinfflag.attribute("ref")) == "") {
- messageBox("멸균구분은 필수입력항목", "I009");
- model.setFocus("rdo_dinfflag");
- return;
- } else if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
- if(model.getValue(cmb_dinfdivs.attribute("ref")) == "") {
- messageBox("멸균방법은 필수입력항목", "I009");
- model.setFocus("cmb_dinfidvs");
- return;
- }
- }
-
- if(model.getValue("/root/main/goodlist/reqflag") == "") {
- messageBox("물품구분은 필수입력항목", "I009");
- model.setFocus("rdo_reqflag2");
- return;
- }
- }
-
- fEnDisCtrl(true);
- model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
- if(workflag == "S") {
- fSetGridData();
- }
-
- fSaveData();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_2" style="x1:304px; y1:517px; x2:371px; y2:517px; "/>
- <output id="opt_smlnm" ref="/root/main/goodlist/smlnm" class="output_fix" visibility="hidden" style="left:885px; top:348px; width:95px; height:19px; "/>
- <output id="opt_lrgnm" ref="/root/main/goodlist/lrgnm" class="output_fix" visibility="hidden" style="left:669px; top:348px; width:95px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodlist/mdlnm" class="output_fix" visibility="hidden" style="left:775px; top:348px; width:95px; height:19px; "/>
- <!-- (20101014) 경북대
- 원본
- <button id="btn_updt" class="btn2_letter2" disabled="true" visibility="hidden" style="left:990px; top:430px; width:42px; height:19px; ">
- -->
- <button id="btn_updt" class="btn2_letter2" disabled="true" visibility="hidden" style="left:535px; top:343px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 수정상태.(preStat : 열을 바꿀시 작업중이던 로우의 상태를 저장. (열변경시 사용);
- if(grd_rscdgooddata.row > 0) {
- //grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
- preStat = "2";
- fEnDisCtrl(false);
- fSearchLrgcd();
- } else {
- messageBox("수정할 행을 선택하지 않았습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn2_letter2" disabled="true" style="left:1105px; top:348px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/init/initflag")!="T"){
- messageBox("CSR코드를 추가하실려면 마스터 구분을 CSR로","C002");
- return;
- }
- fEnDisCtrl(false);
-
- fInitCntrl();
- grd_rscdgooddata.addRow();
-
- fSearchLrgcd();
- ]]>
- </script>
- </button>
- <input id="ipt_csrgoodnm" ref="/root/main/goodlist/csrgoodnm" disabled="true" style="left:695px; top:520px; width:285px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:304px; top:519px; width:67px; height:23px; vertical-align:middle; ">물품명</caption>
- <caption id="caption19" class="cell_1" style="left:628px; top:519px; width:65px; height:23px; vertical-align:middle; ">물품명</caption>
- <input id="ipt_goodmodel" ref="/root/main/goodlist/goodmodel" disabled="true" style="left:373px; top:568px; width:252px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:304px; top:567px; width:67px; height:23px; vertical-align:middle; ">모델</caption>
- <line id="line12" class="line_2" style="x1:305px; y1:565px; x2:1192px; y2:565px; "/>
- <caption id="caption34" class="cell_1" style="left:304px; top:543px; width:67px; height:23px; vertical-align:middle; ">상세규격</caption>
- <input id="ipt_csrgoodspec" ref="/root/main/goodlist/csrgoodspec" disabled="true" style="left:695px; top:544px; width:285px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:628px; top:543px; width:65px; height:23px; vertical-align:middle; ">상세규격</caption>
- <caption id="caption37" class="cell_1" style="left:628px; top:567px; width:65px; height:23px; vertical-align:middle; ">모델</caption>
- <caption id="caption26" class="cell_1" style="left:304px; top:639px; width:67px; height:23px; vertical-align:middle; ">보험정보</caption>
- <select1 id="cmb_purcflag" ref="/root/main/goodlist/purcflag" disabled="true" appearance="minimal" style="left:695px; top:447px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0111">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_prodcmpy" class="icon_search" disabled="true" style="left:474px; top:594px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //----(20100804 경북대)
- // 기능없어 막음
- //rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- //model.refresh();
- //----(20100804 경북대)
- ]]>
- </script>
- </button>
- <input id="ipt_prodcmpynm" ref="/root/main/goodlist/prodcmpynm" disabled="true" style="left:495px; top:592px; width:310px; height:19px; "/>
- <!-- (20100804 경북대) 선택일괄등록 오류발생 막음 visibility="hidden" 추가-->
- <!--
- <button id="btn_allrgst" class="btn2_letter6" style="left:1109px; top:80px; width:86px; height:19px; ">
- -->
- <button id="btn_allrgst" visibility="hidden" style="left:1109px; top:65px; width:86px; height:19px; ">
- <!-- (20100804 경북대) 추가-->
- <caption>선택일괄등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- workflag = "P";
- var popupPath = "/root/main/popup";
- clearParameter("mstflag");
- clearParameter("reqflag");
- clearParameter("proddrugsetflag");
- clearParameter("useyn");
- clearParameter("goodpos");
- clearParameter("goodpos1");
- clearParameter("goodpos2");
- clearParameter("dinfflag");
- clearParameter("dinfdivs");
- clearParameter("lrgcd");
- clearParameter("mdlcd");
- clearParameter("smlcd");
- clearParameter("csrreqflag");
- clearParameter("csrrequnit");
- clearParameter("csrreqqty");
- modal("SPMNG00800", "", "", "", "", "", "","width:960px;height:750px;align:left;");
-
- /*
- var chkyn = "";
-
- for(var i = 1; i < grd_rscdgooddata.rows; i++) {
- var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
-
- if(chkyn == "Y") {
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("mstflag")) = model.getValue(popupPath + "/mstflag");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("reqflag")) = model.getValue(popupPath + "/reqflag");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(popupPath + "/proddrugsetflag");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("useyn")) = model.getValue(popupPath + "/useyn");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos")) = model.getValue(popupPath + "/goodpos");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(popupPath + "/goodpos1");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(popupPath + "/goodpos2");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(popupPath + "/dinfflag");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(popupPath + "/dinfdivs");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("lrgcd")) = model.getValue(popupPath + "/lrgcd");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("mdlcd")) = model.getValue(popupPath + "/mdlcd");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("smlcd")) = model.getValue(popupPath + "/smlcd");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrflag")) = model.getValue(popupPath + "/csrflag");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(popupPath + "/csrrequnit");
- grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(popupPath + "/csrreqqty");
- }
- }
- */
-
- ]]>
- </script>
- </button>
- <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:782px; top:65px; width:100px; height:19px; "/>
- <output id="opt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:680px; top:65px; width:100px; height:19px; "/>
- <output id="opt_lrgcd2" ref="/root/main/cond/lrgcd" visibility="hidden" style="left:605px; top:343px; width:100px; height:19px; "/>
- <output id="opt_mdlcd2" ref="/root/main/cond/mdlcd" visibility="hidden" style="left:705px; top:343px; width:100px; height:19px; "/>
- <output id="opt_smlcd2" ref="/root/main/cond/smlcd" visibility="hidden" style="left:810px; top:343px; width:100px; height:19px; "/>
- <input id="ipt_searchgoodpos" ref="/root/main/cond/goodpos" disabled="true" imemode="alpha" maxlength="1" style="left:956px; top:9px; width:25px; height:19px; text-align:center; "/>
- <input id="ipt_searchgoodpos1" ref="/root/main/cond/goodpos1" disabled="true" maxlength="2" style="left:984px; top:9px; width:25px; height:19px; "/>
- <input id="ipt_searchgoodpos2" ref="/root/main/cond/goodpos2" disabled="true" maxlength="2" style="left:1012px; top:9px; width:25px; height:19px; "/>
- <input id="ipt_lastupdtrid" ref="/root/main/goodlist/lastupdtrid" disabled="true" maxlength="12" style="left:982px; top:665px; width:98px; height:19px; "/>
- <input id="ipt_lastupdtrnm" ref="/root/main/goodlist/lastupdtrnm" disabled="true" maxlength="12" style="left:1083px; top:665px; width:109px; height:19px; "/>
- <input id="ipt_lastupdtdt" ref="/root/main/goodlist/lastupdtdt" disabled="true" inputtype="date" style="left:875px; top:664px; width:104px; height:19px; "/>
- <caption id="caption41" class="cell_1" style="left:808px; top:663px; width:65px; height:23px; vertical-align:middle; ">수정일자</caption>
- <caption id="caption14" style="left:780px; top:377px; width:11px; height:20px; ">/</caption>
- <caption id="caption16" style="left:881px; top:377px; width:15px; height:20px; ">/</caption>
- <select1 id="cmb_lrgcd" ref="/root/main/goodlist/lrgcd" disabled="true" appearance="minimal" style="left:695px; top:375px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/lrglist">
- <label ref="lrgnm"/>
- <value ref="lrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fMdlCDSearch();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/main/goodlist/mdlcd" disabled="true" appearance="minimal" style="left:793px; top:375px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mdllist">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSmlCDSearch();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_smlcd" ref="/root/main/goodlist/smlcd" disabled="true" appearance="minimal" style="left:893px; top:375px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smllist">
- <label ref="smlnm"/>
- <value ref="smlcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_2" style="x1:305px; y1:396px; x2:1154px; y2:396px; "/>
- <caption id="caption50" class="cell_1" style="left:463px; top:374px; width:65px; height:23px; vertical-align:middle; ">구매코드</caption>
- <caption id="caption12" class="cell_1" style="left:627px; top:373px; width:65px; height:23px; vertical-align:middle; ">분류구분</caption>
- <caption id="caption4" class="cell_1" style="left:982px; top:374px; width:65px; height:23px; vertical-align:middle; ">CSR 코드</caption>
- <caption id="caption5" class="cell_1" style="left:808px; top:495px; width:65px; height:23px; vertical-align:middle; ">수가여부</caption>
- <input id="ipt_allsizespecid" ref="/root/main/goodlist/allsizespecid" disabled="true" style="left:600px; top:375px; width:25px; height:19px; "/>
- <line id="line10" class="line_2" style="x1:305px; y1:637px; x2:1192px; y2:637px; "/>
- <select1 id="rdo_dinfflag" ref="/root/main/goodlist/dinfflag" disabled="true" appearance="full" cols="2" overflow="visible" style="left:695px; top:402px; width:110px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
- cmb_dinfdivs.disabled = false;
- } else {
- model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
- cmb_dinfdivs.refresh();
-
- cmb_dinfdivs.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_goodpos" ref="/root/main/goodlist/goodpos" disabled="true" imemode="alpha" style="left:1049px; top:399px; width:45px; height:19px; text-align:center; "/>
- <line id="line14" class="line_2" style="x1:305px; y1:493px; x2:1192px; y2:493px; "/>
- <input id="ipt_goodpos1" ref="/root/main/goodlist/goodpos1" disabled="true" style="left:1097px; top:399px; width:46px; height:19px; "/>
- <input id="ipt_goodpos2" ref="/root/main/goodlist/goodpos2" disabled="true" style="left:1146px; top:399px; width:45px; height:19px; "/>
- <select1 id="rdo_useyn" ref="/root/main/goodlist/useyn" disabled="true" appearance="full" cols="2" overflow="visible" style="left:875px; top:451px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var useyn = model.getValue("/root/main/goodlist/useyn");
- if(useyn =="Y"){
- model.setValue("/root/main/goodlist/todd","99991231");
- }else if(useyn =="N"){
- model.setValue("/root/main/goodlist/todd",getCurrentDate());
- }
- ipt_todd.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption31" class="cell_1" style="left:304px; top:615px; width:67px; height:23px; vertical-align:middle; ">거래처</caption>
- <caption id="caption32" class="cell_1" style="left:808px; top:615px; width:65px; height:23px; vertical-align:middle; ">불출구분</caption>
- <caption id="caption33" class="cell_1" style="left:982px; top:615px; width:65px; height:23px; vertical-align:middle; ">불출단위</caption>
- <caption id="caption43" class="cell_1" style="left:304px; top:495px; width:67px; height:23px; vertical-align:middle; ">CSR청구</caption>
- <select1 id="rdo_csrreqflag" ref="/root/main/goodlist/csrreqflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:374px; top:499px; width:86px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_csrrequnit" ref="/root/main/goodlist/csrrequnit" disabled="true" appearance="minimal" style="left:530px; top:496px; width:58px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0039">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_csrreqqty" ref="/root/main/goodlist/csrreqqty" disabled="true" maxlength="12" format="###.##" style="left:590px; top:496px; width:34px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- ]]>
- </script>
- </input>
- <textarea id="tar_goodinfo" ref="/root/main/goodlist/goodinfo" disabled="true" style="left:372px; top:663px; width:433px; height:45px; "/>
- <line id="line15" class="line_2" style="x1:878px; y1:685px; x2:933px; y2:685px; "/>
- <line id="line9" class="line_2" style="x1:305px; y1:709px; x2:1192px; y2:709px; "/>
- <select1 id="cmb_reqprid" ref="/root/main/goodlist/reqprid" disabled="true" visibility="hidden" appearance="minimal" style="left:454px; top:667px; width:2px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0093">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_dump" ref="/root/main/goodlist/dump" visibility="hidden" style="left:885px; top:65px; width:40px; height:19px; "/>
- <caption id="caption23" class="cell_1" visibility="hidden" style="left:305px; top:666px; width:5px; height:23px; vertical-align:middle; ">청구방법</caption>
- <!-- (20101013) 경북대)
- <button id="button1" class="btn2_letter6" style="left:214px; top:80px; width:86px; height:19px; ">
- -->
- <button id="button1" class="btn2_letter6" visibility="hidden" style="left:214px; top:65px; width:86px; height:19px; ">
- <caption>구매코드조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SMRSC05300", "", "", "", "", "", "","width:960px;height:750px;align:left;");
- messageBox("개발중","I009");
- ]]>
- </script>
- </button>
- <!-- (20101013) 경북대) -->
- <!-- (20100804 경북대) col=4에서 3으로 변경-->
- <!--
- <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" disabled="true" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:374px; top:485px; width:271px; height:13px; border-style:none; ">
- -->
- <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:374px; top:403px; width:251px; height:13px; border-style:none; ">
- <!-- (20100804 경북대) col=4에서 3으로 변경-->
- <choices>
- <item>
- <label>Set</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- <!--(20100804 경북대) 기능없음
- <item>
- <label>Single(Set)</label>
- <value>3</value>
- </item>
- -->
- <item>
- <label>없음</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "3") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "N");
- model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
- } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "2") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
- model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
- } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "1") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
- model.setValue(cmb_csrrequnit.attribute("ref"), "SET");
- }
-
- rdo_csrreqflag.refresh();
- ]]>
- </script>
- </select1>
- <line id="line16" class="line_2" style="x1:305px; y1:420px; x2:1192px; y2:420px; "/>
- <caption id="caption42" class="cell_1" style="left:627px; top:398px; width:65px; height:23px; vertical-align:middle; ">멸균구분</caption>
- <caption id="caption3" class="cell_1" style="left:304px; top:398px; width:67px; height:23px; vertical-align:middle; ">Set구분</caption>
- <caption id="caption38" class="cell_1" style="left:982px; top:398px; width:65px; height:23px; vertical-align:middle; ">물품위치</caption>
- <caption id="caption8" class="cell_1" style="left:628px; top:495px; width:65px; height:23px; vertical-align:middle; ">구매단가</caption>
- <caption id="caption45" class="cell_1" style="left:304px; top:374px; width:67px; height:23px; text-align:center; vertical-align:middle; ">마스터구분</caption>
- <select1 id="rdo_mstflag" ref="/root/main/goodlist/mstflag" appearance="full" cols="2" overflow="visible" style="left:375px; top:378px; width:50px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>CSR</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <line id="line13" class="line_2" style="x1:305px; y1:517px; x2:1192px; y2:517px; "/>
- <caption id="caption44" class="cell_1" style="left:463px; top:495px; width:65px; height:23px; vertical-align:middle; ">기준단위</caption>
- <caption id="caption20" class="cell_1" style="left:808px; top:446px; width:65px; height:23px; vertical-align:middle; ">사용여부</caption>
- <select1 id="cmb_dinfdivs" ref="/root/main/goodlist/dinfdivs" appearance="minimal" style="left:810px; top:399px; width:169px; height:19px; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- <item>
- <label>감마멸균</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption46" class="cell_1" style="left:982px; top:495px; width:65px; height:23px; vertical-align:middle; ">유사물품</caption>
- <caption id="caption1" class="cell_1" style="left:982px; top:446px; width:65px; height:23px; vertical-align:middle; ">기준수량</caption>
- <input id="ipt_baseqty" ref="/root/main/goodlist/baseqty" disabled="true" style="left:1049px; top:447px; width:142px; height:19px; "/>
- <input id="ipt_simlgood" ref="/root/main/goodlist/simlgood" disabled="true" style="left:1049px; top:496px; width:86px; height:19px; "/>
- <button id="btn_open" class="btn2_letter3" style="left:1140px; top:497px; width:53px; height:19px; ">
- <caption>펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_simlgood.visible = true;
- model.setFocus("tar_simlgood");
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/temp/cond/checkallitem" style="left:322px; top:96px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool1.value == "Y"){
- for(var i = 0 ; i < grd_rscdgooddata.rows ; i++){
- grd_rscdgooddata.valueMatrix(i , grd_rscdgooddata.colRef("chkyn")) = "Y";
- grd_rscdgooddata.rowStatus(i)="2";
- }
- btn_del.disabled = false;
- }else{
- for(var i = 0 ; i < grd_rscdgooddata.rows ; i++){
- grd_rscdgooddata.valueMatrix(i , grd_rscdgooddata.colRef("chkyn")) = "N";
- grd_rscdgooddata.rowStatus(i)="0";
- }
- btn_del.disabled = true;
- }
- ]]>
- </script>
- </bool>
- <!--(20101014) 경북대
- 원본
- <button id="btn_del" class="btn2_letter2" disabled="true" visibility="hidden" style="left:1060px; top:430px; width:42px; height:19px; ">
- -->
- <button id="btn_del" class="btn2_letter2" disabled="true" visibility="hidden" style="left:490px; top:343px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData("D");
- ]]>
- </script>
- </button>
- <select1 id="rdo_mstflag_old" ref="/root/main/goodlist/lodmstflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:315px; top:343px; width:85px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>CSR</label>
- <value>T</value>
- </item>
- <item>
- <label>OR</label>
- <value>OR</value>
- </item>
- </choices>
- </select1>
- <!--(20101014) 경북대
- 구매코드이용시 구매코드를 중앙공급실코드로 바로 사용여부
- -->
- <select id="chk_misyn" ref="/root/main/misgoodchk" overflow="visible" appearance="full" style="left:1000px; top:348px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>구매코드사용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <!--(20101014) 경북대 -->
- <line id="line17" class="line_2" style="x1:305px; y1:444px; x2:1192px; y2:444px; "/>
- <caption id="caption7" class="cell_1" style="left:304px; top:422px; width:67px; height:23px; vertical-align:middle; ">세척구분</caption>
- <select1 id="cmb_cleanflag" ref="/root/main/goodlist/cleanflag" appearance="minimal" style="left:374px; top:422px; width:251px; height:19px; ">
- <choices>
- <item>
- <label>게팅게</label>
- <value>1</value>
- </item>
- <item>
- <label>밀레</label>
- <value>2</value>
- </item>
- <item>
- <label>손세척</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_netflag" ref="/root/main/goodlist/netflag" appearance="full" cols="2" overflow="visible" style="left:695px; top:426px; width:110px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
- cmb_dinfdivs.disabled = false;
- } else {
- model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
- cmb_dinfdivs.refresh();
-
- cmb_dinfdivs.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption47" class="cell_1" style="left:627px; top:422px; width:65px; height:23px; vertical-align:middle; ">망구분</caption>
- <caption id="caption48" class="cell_1" style="left:939px; top:422px; width:108px; height:23px; vertical-align:middle; ">세척멸균관리구분</caption>
- <select1 id="cmb_dinfcleanflag" ref="/root/main/goodlist/dinfcleanflag" appearance="minimal" style="left:1049px; top:423px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/M0635">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line5" class="line_2" style="x1:305px; y1:589px; x2:1192px; y2:589px; "/>
- <caption id="caption49" class="cell_1" style="left:983px; top:543px; width:65px; height:23px; vertical-align:middle; ">불출구분</caption>
- <caption id="caption51" class="cell_1" style="left:983px; top:519px; width:65px; height:23px; vertical-align:middle; ">일지분류</caption>
- <select1 id="cmb_workgubn" ref="/root/main/goodlist/workgubn" appearance="minimal" style="left:1050px; top:520px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/M0637">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dlvgubn" ref="/root/main/goodlist/dlvgubn" appearance="minimal" style="left:1050px; top:544px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/M0638">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line18" class="line_2" style="x1:305px; y1:468px; x2:1192px; y2:468px; "/>
- <caption id="caption22" class="cell_1" style="left:627px; top:446px; width:65px; height:23px; vertical-align:middle; ">구매구분</caption>
- <caption id="caption17" class="cell_1" style="left:304px; top:446px; width:67px; height:23px; vertical-align:middle; ">물품구분</caption>
- <caption id="caption52" class="cell_1" style="left:304px; top:470px; width:67px; height:23px; vertical-align:middle; ">재고구분</caption>
- <select1 id="cmb_reqdetlflag" ref="/root/main/goodlist/reqdetlflag" appearance="minimal" style="left:374px; top:471px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='T95' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption53" class="cell_1" style="left:610px; top:470px; width:83px; height:23px; vertical-align:middle; ">세척기구분류</caption>
- <select1 id="cmb_csrworkflag" ref="/root/main/goodlist/csrworkflag" appearance="minimal" style="left:695px; top:472px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U20' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption54" class="cell_1" style="left:940px; top:470px; width:108px; height:23px; text-align:right; vertical-align:middle; ">드레싱Set여부</caption>
- <textarea id="tar_simlgood" ref="/root/main/goodlist/simlgood" visibility="hidden" style="left:630px; top:435px; width:385px; height:230px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- tar_simlgood.visible = false;
- ]]>
- </script>
- </textarea>
- <select1 id="rdo_dressingyn" ref="/root/main/goodlist/dressingyn" appearance="full" cols="2" overflow="visible" style="left:1050px; top:474px; width:110px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
- cmb_dinfdivs.disabled = false;
- } else {
- model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
- cmb_dinfdivs.refresh();
-
- cmb_dinfdivs.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption55" class="cell_1" style="left:304px; top:711px; width:67px; height:30px; vertical-align:middle; ">특이사항</caption>
- <line id="line19" class="line_3" style="x1:305px; y1:740px; x2:1192px; y2:740px; "/>
- <caption id="caption27" class="cell_1" style="left:304px; top:663px; width:67px; height:47px; vertical-align:middle; ">물품정보</caption>
- <caption id="caption30" class="cell_1" style="left:982px; top:686px; width:65px; height:23px; vertical-align:middle; ">종료일자</caption>
- <caption id="caption29" class="cell_1" style="left:808px; top:687px; width:65px; height:23px; vertical-align:middle; ">시작일자</caption>
- <textarea id="tar_remark" ref="/root/main/goodlist/remark" scroll="autohscroll" style="left:374px; top:711px; width:820px; height:30px; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:165px; height:14px; ">CSR 물품 Master</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|