1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>신규 의료 소모품 신청 및 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <instcd>012</instcd>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqtodd/>
- <fromreqdd/>
- <edicd/>
- <goodnm/>
- <purcflag>
- <item>
- <label>구매</label>
- <value>1</value>
- </item>
- <item>
- <label>수탁</label>
- <value>2</value>
- </item>
- <item>
- <label>가납</label>
- <value>3</value>
- </item>
- </purcflag>
- <reqmthd>
- <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>
- </reqmthd>
- <reqprid>
- <item>
- <label>일</label>
- <value>1</value>
- </item>
- <item>
- <label>주</label>
- <value>2</value>
- </item>
- <item>
- <label>월</label>
- <value>4</value>
- </item>
- </reqprid>
- </init>
- <cond>
- <instcd/>
- <reqdeptcd_search/>
- <reqdeptnm_search/>
- <reqfromdd/>
- <reqtodd/>
- <goodflag/>
- <edicd/>
- <goodnm/>
- <newmatrprcsstat/>
- <instcdnm/>
- <emplno/>
- <emplnonm/>
- <reqno/>
- </cond>
- <main>
- <newmeterialdetail>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <goodflag/>
- <goodengnm/>
- <goodhngnm/>
- <goodspec/>
- <goodmodel/>
- <prodplce/>
- <prodplcenm/>
- <prodcmpycd/>
- <prodcmpynm/>
- <suppcustcd/>
- <suppcustnm/>
- <chrgid/>
- <chrgmpphon/>
- <chrgtel/>
- <purcunit/>
- <reqqty/>
- <mmavguseqty/>
- <useschedd/>
- <edicd/>
- <reqresnusge/>
- <smlartymatruseprestcond/>
- <anohospusestat/>
- <newmatrusgeimprvpnt/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqdepttel/>
- <reqpsnid/>
- <reqpsnnm/>
- <insuyn/>
- <undecicurematr/>
- <undecicurematrreqdt/>
- <actamtincl/>
- <judgcmt/>
- <purcteamcmt/>
- <newmatrprcsstat/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <goodcd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <insucomd/>
- <insuresn/>
- <reqcmt/>
- <deliveunit/>
- <goodunitcost/>
- <reqchrgid/>
- <reqchrgnm/>
- <deptaprvyn/>
- <deptaprvdd/>
- <deptaprvpsnid/>
- <deptaprvpsnnm/>
- <prsdnm/>
- <cntctel/>
- <faxno/>
- <insucommityn/>
- <actcd/>
- <deptcmt/>
- <suppcustnmtxt/>
- <prodcmpynmtxt/>
- <exchqty/>
- <specyn/>
- <suppcustcdtxt/>
- <advsmatryn>N</advsmatryn>
- </newmeterialdetail>
- <ReqpsnLists>
- <reqpsnlist>
- <instcd>
- </instcd>
- <emplno/>
- <emplnm/>
- <reqdeptcd>
- </reqdeptcd>
- <reqdeptnm>
- </reqdeptnm>
- <reqaprvflag>
- </reqaprvflag>
- <reqflag>
- </reqflag>
- <fstrgstrid>
- </fstrgstrid>
- <fstrgstdt>
- </fstrgstdt>
- <lastupdtrid>
- </lastupdtrid>
- <lastupdtdt>
- </lastupdtdt>
- <reqprid/>
- <reqpridnm/>
- <reqaprvflagnm>
- </reqaprvflagnm>
- <reqflagnm>
- </reqflagnm>
- </reqpsnlist>
- </ReqpsnLists>
- </main>
- <temp>
- <newmeterialdetail/>
- <newmeterialdetailinfo>
- <newmetldetllist/>
- </newmeterialdetailinfo>
- <reptnewmeterialdetailinfo>
- <reptnewmetldetllist/>
- </reptnewmeterialdetailinfo>
- </temp>
- <hidden>
- <rcvdata>
- <goodlist/>
- </rcvdata>
- </hidden>
- <send>
- <reqdata/>
- <savedata/>
- <reqpsn>
- <instcd/>
- <emplno/>
- <reqflag/>
- </reqpsn>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" add="bottom" resultref="/root/temp/newmeterialdetailinfo"/>
- <submission id="TRRSD00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpsn" resultref="/root/main/ReqpsnLists"/>
- <submission id="TXRSD04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
- <submission id="TXRSD04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- var status = "i";
- var vPurcAuth = "1";
- var specyn = "Y";
- function fInitialize() {
- model.removeNodeset(grd_newmetldetllist.nodeset);
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
- rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"1","N");
-
- addComboItem("cmb_goodflag_search", "전체", "", "above");
- misfGridComboComCdList("R0367",grd_newmetldetllist,"newmatrprcsstat");
- misfGridComboComCdList("R0368",grd_newmetldetllist,"insucommityn");
-
- misfComboComCdListMulti("Z0007,R0035,R0367,R0369","cmb_instcd,cmb_prodplce,cmb_newmatrprcsstat,rdo_insuyn");
-
- addComboItem("cmb_newmatrprcsstat", "전체", "", "above");
- fSetInitCtrl(false);
-
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_reqfromdd_search.attribute("ref"), reqdate.getAddDate(-7, "D").getDateFormat("YYYYMMDD") );
-
- //model.setValue(ipt_reqfromdd_search.attribute("ref"), getCurrentDate());
- model.setValue(ipt_reqtodd_search.attribute("ref"), getCurrentDate());
-
- model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
- model.setValue("/root/send/reqpsn/reqflag", "E");
- model.setValue(ipt_reqdeptcd_search.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref"), getUserInfo("dutplcenm"));
- submit("TRRSD00407"); //권한조회
- //fPurcAuthInfo(getUserInfo("dutplcecd"));
- btn_search.dispatch("DOMActivate");
- }
-
- function fInitInstance() {
- var node = instance1.selectSingleNode("/root/main/newmeterialdetail");
- var nodelist = node.childNodes;
- while (childNode = nodelist.nextNode())
- {
- model.resetInstanceNode("/root/main/newmeterialdetail" + childNode);
- }
-
- model.refresh();
- }
-
- // 컨트롤 상태설정(flag : false(활성화), true(비활성화)
- // newmatrprcsstat : 진행상태에 따른 상태값변화를 위한변수
- // specflag : Y: 규격신규 N: 물품신규
- function fSetInitCtrl(flag, newmatrprcsstat, specflag) {
- if(flag == false) {
- if(newmatrprcsstat == null) {
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_reqpsnid.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
- model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
- model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate());
- }
- } else {
- }
- if( newmatrprcsstat == null) {
- ipt_reqdd.disabled = flag; //청구일자
- cmb_goodflag.disabled = flag; //물품구분
- } else {
- ipt_reqdd.disabled = true; //청구일자
- cmb_goodflag.disabled = true; //물품구분
- }
- rdo_insuyn.disabled = flag; //요양급여
- ipt_reqdepttel.disabled = flag; //원내전화
- ipt_reqdeptcd.disabled = flag; //청구부서코드
- ipt_reqpsnid.disabled = flag; //청구자ID
- btn_reqpsnid.disabled = flag; //청구자ID
- ipt_reqchrgid.disabled = flag; //부서장ID
- btn_reqchrgid.disabled = flag; //부서장ID
- if(flag == false) {
- // ipt_goodengnm.disabled = flag; //물품영문명
- // ipt_goodhngnm.disabled = flag; //물품한글명
- // ipt_goodunitcost.disabled = flag; //물품단위
- // ipt_goodspec.disabled = flag; //물품규격
- // ipt_goodmodel.disabled = flag; //물품모델
- // ipt_mmavguseqty.disabled = flag; //월예상사용량
-
- ipt_goodengnm.attribute("editable") = "true";
- ipt_goodengnm.attribute("background-color") = "#ffffff";
- ipt_goodhngnm.attribute("editable") = "true";
- ipt_goodhngnm.attribute("background-color") = "#ffffff";
- ipt_goodunitcost.attribute("editable") = "true";
- ipt_goodunitcost.attribute("background-color") = "#ffffff";
- ipt_goodspec.attribute("editable") = "true";
- ipt_goodspec.attribute("background-color") = "#ffffff";
- ipt_goodmodel.attribute("editable") = "true";
- ipt_goodmodel.attribute("background-color") = "#ffffff";
- ipt_mmavguseqty.attribute("editable") = "true";
- ipt_mmavguseqty.attribute("background-color") = "#ffffff";
-
- }else{
- ipt_goodengnm.attribute("editable") = "false";
- ipt_goodengnm.attribute("background-color") = "#eaeaea";
- ipt_goodhngnm.attribute("editable") = "false";
- ipt_goodhngnm.attribute("background-color") = "#eaeaea";
- ipt_goodunitcost.attribute("editable") = "false";
- ipt_goodunitcost.attribute("background-color") = "#eaeaea";
- ipt_goodspec.attribute("editable") = "false";
- ipt_goodspec.attribute("background-color") = "#eaeaea";
- ipt_goodmodel.attribute("editable") = "false";
- ipt_goodmodel.attribute("background-color") = "#eaeaea";
- ipt_mmavguseqty.attribute("editable") = "false";
- ipt_mmavguseqty.attribute("background-color") = "#eaeaea";
- }
-
- ipt_reqqty.disabled = flag; //포장단위수량
- cmb_purcunit.disabled = flag; //구매단위
- cmb_deliveunit.disabled = flag; //불출단위
- cmb_prodplce.disabled = flag; //제조국
- ipt_suppcustcd.disabled = flag; //거래처코드
- //ipt_suppcustnm.disabled = flag; //거래처명
- ipt_suppcustcdtxt.disabled = flag; //거래처코드텍스트
- ipt_suppcustnmtxt.disabled = flag; //거래처텍스트
- ipt_prodcmpycd.disabled = flag; //제조국코드
- //ipt_prodcmpynm.disabled = flag; //제조국명
- ipt_prodcmpynmtxt.disabled = flag; //제조국텍스트
- tar_reqresnusge.disabled = flag; //신청사유
- tar_smlartymatruseprestcond.disabled = flag; //제품설명
- tar_anohospusestat.disabled = flag; //본원유사재료 및 관련행위
- tar_newmatrusgeimprvpnt.disabled = flag; //현품의 차이점 및 타병원사용현황
- tar_reqcmt.disabled = flag; //비고
- ipt_chrgid.disabled = flag; //담당자ID
- ipt_chrgmpphon.disabled = flag; //담당자 휴대폰
- ipt_chrgtel.disabled = flag; //담당자전화번호
- ipt_undecicurematrreqdt.disabled = flag; //치료재료미결정신청일
- ipt_actcd.disabled = flag; //행위료코드
- ipt_edicd.disabled = flag; //EDI코드
- btn_goodref.disabled = true;
- if(specflag == "Y") {
- rdo_insuyn.disabled = true;
- ipt_goodcd.disabled = false; //물품코드
- btn_goodref.disabled = false;
- tar_smlartymatruseprestcond.disabled = true; //제품설명
- tar_anohospusestat.disabled = true; //본원유사재료 및 관련행위
- tar_newmatrusgeimprvpnt.disabled = true; //현품의 차이점 및 타병원 사용현황
- tar_reqcmt.disabled = true; //비고
- //------------------------------------------------------------------------
- // ipt_goodengnm.disabled = true; //물품영문명
- // ipt_goodhngnm.disabled = true; //물품한글명
- // ipt_goodunitcost.disabled = true; //물품단위
- // ipt_goodspec.disabled = true; //물품규격
- // ipt_goodmodel.disabled = true; //물품모델
- // ipt_mmavguseqty.disabled = true; //월예상사용량
-
- ipt_goodengnm.attribute("editable") = "false";
- ipt_goodengnm.attribute("background-color") = "#eaeaea";
- ipt_goodhngnm.attribute("editable") = "false";
- ipt_goodhngnm.attribute("background-color") = "#eaeaea";
- ipt_goodunitcost.attribute("editable") = "false";
- ipt_goodunitcost.attribute("background-color") = "#eaeaea";
- ipt_goodspec.attribute("editable") = "false";
- ipt_goodspec.attribute("background-color") = "#eaeaea";
- ipt_goodmodel.attribute("editable") = "false";
- ipt_goodmodel.attribute("background-color") = "#eaeaea";
- ipt_mmavguseqty.attribute("editable") = "false";
- ipt_mmavguseqty.attribute("background-color") = "#eaeaea";
- //------------------------------------------------------------------------
-
- ipt_reqqty.disabled = true; //포장단위수량
- cmb_purcunit.disabled = true; //구매단위
- cmb_deliveunit.disabled = true; //불출단위
- cmb_prodplce.disabled = true; //제조국
- // ipt_suppcustcdtxt.disabled = true; //거래처코드텍스트
- // ipt_suppcustcd.disabled = true; //거래처코드
- // ipt_suppcustnm.disabled = true; //거래처명
- // ipt_suppcustnmtxt.disabled = true; //거래처텍스트
- // ipt_prodcmpycd.disabled = true; //제조국코드
- // ipt_prodcmpynm.disabled = true; //제조국명
- // ipt_prodcmpynmtxt.disabled = true; //제조국텍스트
- // ipt_chrgid.disabled = true; //담당자ID
- // ipt_chrgmpphon.disabled = true; //담당자 휴대폰
- // ipt_chrgtel.disabled = true; //담당자전화번호
- ipt_undecicurematrreqdt.disabled = true; //치료재료미결정신청일
- ipt_actcd.disabled = true; //행위료코드
- ipt_edicd.disabled = true; //EDI코드
- caption18.text = "신 규 규 격";
- } else {
- ipt_goodcd.disabled = true; //물품코드
- tar_smlartymatruseprestcond.disabled = flag; //본원설명
- tar_anohospusestat.disabled = flag; //본원유사재료 및 관련행위
- tar_newmatrusgeimprvpnt.disabled = flag; //현품의 차이점 및 타병원 사용현황
- tar_reqcmt.disabled = flag; //비고
- caption18.text = "신 청 사 유";
- }
- }
-
- //청구자 승인자 권한 체크!!
- function fCheckGrant()
- {
- rszfGetPurcReqAuthInfo(opt_instcd.value, "E", ipt_reqdeptcd.value, getUserInfo("userid"));
- if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '1')
- {
- grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = true;
- btn_save.disabled = false;
- } else if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '2') {
- grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = false;
- btn_save.disabled = false;
- } else {
- grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = true;
- btn_save.disabled = true;
- }
- }
-
- function fDisableCheck( status ) {
- cmb_instcd.disabled = status;
- ipt_reqdd.disabled = status;
- // ipt_reqseqno.disabled = status;
- cmb_goodflag.disabled = status;
- }
- /* ---------------------------------------------------------------
- 요양급여 컬럼에 따라 보여지는 column 이 다르다.
- -----------------------------------------------------------------*/
- function fInsuynChange(pDataClearYn)
- {
- ipt_edicd.visible = true;
- ipt_insucomd.visible = false;
- ipt_insuresn.visible = false;
- ipt_actcd.visible = false;
- ipt_undecicurematrreqdt.visible = false;
-
- /* ----------------------------------------------------------
- data query -> silple query
- validation -> dataclear , ,
- -----------------------------------------------------------*/
- if (pDataClearYn=="Y")
- {
- model.setValue(ipt_edicd.attribute("ref") ,""); // edi code
- model.setValue(ipt_insucomd.attribute("ref") ,""); // 해당고시
- model.setValue(ipt_undecicurematrreqdt.attribute("ref") ,""); // 치료재료 미결정신청일자
- model.setValue(ipt_insuresn.attribute("ref") ,""); // 의료적 비급여사유
- }
- if (model.getValue(rdo_insuyn.attribute("ref"))=="1")
- {
- caption_insuyn.text = 'EDI CODE';
- ipt_edicd.visible = true;
- }
- else if (model.getValue(rdo_insuyn.attribute("ref"))=="2")
- {
- caption_insuyn.text = 'EDI CODE';
- ipt_edicd.visible = true;
- }
-
- else if (model.getValue(rdo_insuyn.attribute("ref"))=="3")
- {
- caption_insuyn.text = '재료미결정신청일';
- ipt_undecicurematrreqdt.visible = true;
- ipt_edicd.visible = false;
- }
- else if (model.getValue(rdo_insuyn.attribute("ref"))=="4")
- {
- caption_insuyn.text = '행위료코드';
- ipt_actcd.visible = true;
- ipt_edicd.visible = false;
- }
- model.refresh();
- }
- function fSearchData() {
- misfMsterDetailRetrieve();
- if ( grd_newmetldetllist.rows > 1 ) {
- model.resetInstanceNode("/root/main/newmeterialdetail");
- grd_newmetldetllist.row = 1;
- model.copyNode("/root/main/newmeterialdetail" ,grd_newmetldetllist.nodeset + "["+ grd_newmetldetllist.row + "]");
- fDisableCheck( true );
- } else {
- model.resetInstanceNode("/root/main/newmeterialdetail");
- fDisableCheck( false );
- }
- model.refresh();
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length==0)
- {
- messageBox("기관코드는" ,"I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_reqdd.attribute("ref")).length==0)
- {
- messageBox("청구일자는","I003");
- model.setFocus("ipt_reqdd");
- return false;
- }
- if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
- {
- messageBox("청구부서는","I003");
- model.setFocus("ipt_reqdeptcd");
- return false;
- }
-
- if(model.getValue(ipt_reqpsnid.attribute("ref")).length==0)
- {
- messageBox("신청자는","I003");
- model.setFocus("ipt_reqpsnid");
- return false;
- }
-
- if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
- {
- messageBox("물품구분은","I003");
- model.setFocus("cmb_goodflag");
- return false;
- }
-
- if(model.getValue(ipt_reqdepttel.attribute("ref")).length==0)
- {
- messageBox("원내전화는","I003");
- model.setFocus("ipt_reqdepttel");
- return false;
- }
-
- if(model.getValue(ipt_reqchrgid.attribute("ref")).length==0)
- {
- messageBox("부서장은","I003");
- model.setFocus("ipt_reqchrgid");
- return false;
- }
-
- /* if(model.getValue(ipt_goodengnm.attribute("ref")).length==0)
- {
- messageBox("품명(영문)은","I003");
- model.setFocus("ipt_goodengnm");
- return false;
- }*/
-
- if(model.getValue(ipt_goodhngnm.attribute("ref")).length==0)
- {
- messageBox("품명(한글)은","I003");
- model.setFocus("ipt_goodhngnm");
- return false;
- }
-
- /* if(model.getValue(ipt_goodunitcost.attribute("ref")).length==0)
- {
- messageBox("단가는","I003");
- model.setFocus("ipt_goodunitcost");
- return false;
- }*/
-
- /* if(model.getValue(ipt_goodspec.attribute("ref")).length==0)
- {
- messageBox("규격은","I003");
- model.setFocus("ipt_goodspec");
- return false;
- }*/
-
- /* if(model.getValue(ipt_goodmodel.attribute("ref")).length==0)
- {
- messageBox("모델은","I003");
- model.setFocus("ipt_goodmodel");
- return false;
- }*/
- if (model.getValue(cmb_specyn.attribute("ref")) == "Y"){
- if(model.getValue(ipt_reqqty.attribute("ref" )).length==0
- || model.getValue(cmb_deliveunit.attribute("ref")).length==0
- || model.getValue(cmb_purcunit.attribute("ref" )).length==0)
- {
- messageBox("포장 구성 단위는","I003");
- if (model.getValue(ipt_reqqty.attribute("ref")).length==0){
- model.setFocus("ipt_reqqty");
- return false;
- }
- if (model.getValue(cmb_deliveunit.attribute("ref")).length==0){
- model.setFocus("cmb_deliveunit");
- return false;
- }
- if (model.getValue(cmb_purcunit.attribute("ref")).length==0){
- model.setFocus("cmb_purcunit");
- return false;
- }
- }
- }
-
- if(model.getValue(rdo_advsmatryn.attribute("ref"))==""){
- messageBox("유해물질은","I003");
- model.setFocus("rdo_advsmatryn");
- return false;
- }
- /* if(model.getValue(ipt_suppcustcd.attribute("ref")).length==0)
- {
- if(model.getValue(ipt_suppcustcdtxt.attribute("ref")).length==0)
- {
- messageBox("거래처는","I003");
- model.setFocus("ipt_suppcustcd");
- return false;
- }
- }*/
- /* if(model.getValue(ipt_chrgid.attribute("ref")).length==0)
- {
- messageBox("담당자는","I003");
- model.setFocus("ipt_chrgid");
- return false;
- }*/
- if(model.getValue(ipt_chrgtel.attribute("ref")).length==0
- && model.getValue(ipt_chrgmpphon.attribute("ref")).length==0)
- {
- messageBox("거래처 연락번호는","I003");
- model.setFocus("ipt_chrgtel");
- return false;
- }
-
- if(model.getValue(tar_reqresnusge.attribute("ref")).length==0)
- {
- messageBox("신청사유는","I003");
- model.setFocus("tar_reqresnusge");
- return false;
- }
- /*
- if (specyn == "Y"){
- if(model.getValue(tar_smlartymatruseprestcond.attribute("ref")).length==0)
- {
- messageBox("제품설명은","I003");
- model.setFocus("tar_smlartymatruseprestcond");
- return false;
- }
- }*/
-
- var insuyn = model.getValue(rdo_insuyn.attribute("ref"));
-
- /*
- if(insuyn == "1" || insuyn == "2" ) {
- if(model.getValue(ipt_edicd.attribute("ref")) == "") {
- messageBox("EDICD를 입력하여주세요.", "E");
- model.setFocus("ipt_edicd");
- return;
- }
- } else if(insuyn == "3") {
- if(model.getValue(ipt_undecicurematrreqdt.attribute("ref")) == "") {
- messageBox("재료미결정신청일을 입력하여 주세요.", "E");
- model.setFocus("ipt_undecicurematrreqdt");
- return;
- }
- } else if(insuyn == "4") {
- if(model.getValue(ipt_actcd.attribute("ref")) == "") {
- messageBox("행위재료코드를 입력하여 주세요.", "E");
- model.setFocus("ipt_actcd");
- return;
- }
- }
- */
-
- if(model.getValue(cmb_specyn.attribute("ref")) == "Y") {
- if(model.getValue(ipt_goodcd.attribute("ref")) == "") {
- messageBox("규격신규물품은 물품코드를 등록하셔야합니다.", "E");
- model.setFocus("ipt_goodcd");
- return false;
- }
- }
-
- if(ipt_prodcmpycd.value.length < ipt_prodcmpycd.value.getUTF8Length()) {
- messageBox("입력하신 제조회사 코드는", "E016", "조회 된 제조회사를 입력 하시거나 조회에서 없을 경우 직접 입력하십시오.");
- model.setFocus("ipt_prodcmpycd");
- return false;
- }
-
- if(ipt_suppcustcd.value.length < ipt_suppcustcd.value.getUTF8Length()) {
- messageBox("입력하신 거래처 코드는", "E016", "조회 된 거래처를 입력 하시거나 조회에서 없을 경우 직접 입력하십시오.");
- model.setFocus("ipt_suppcustcd");
- return false;
- }
-
- if(!misfUTF8MaxLengthMulti("tar_reqresnusge,tar_smlartymatruseprestcond,tar_anohospusestat,tar_newmatrusgeimprvpnt,tar_reqcmt,tar_deptcmt")) return false;
-
- return true;
- }
-
- // 청구승인자 Check
- function fPurcAuthInfo(reqdeptcd, instcd) {
- if(reqdeptcd == null || reqdeptcd == "") reqdeptcd = getUserInfo("dutplcecd");
- if(instcd == null || instcd == "") instcd = getUserInfo("dutplceinstcd");
-
- if(instance1.selectNodes("/root/main/ReqpsnLists/reqpsnlist") != null){ //승인권한 검사
- var checkNode2 = "/root/main/ReqpsnLists/reqpsnlist[instcd='"+instcd+"' and reqdeptcd='"+reqdeptcd+"' and reqflag='E' and reqaprvflag='2']";
- if(instance1.selectNodes(checkNode2).length > 0) return "2"; //승인권한
- var checkNode1 = "/root/main/ReqpsnLists/reqpsnlist[instcd='"+instcd+"' and reqdeptcd='"+reqdeptcd+"' and reqflag='E' and reqaprvflag='1']";
- if(instance1.selectNodes(checkNode2).length > 0) return "1"; //청구권한
- }
- }
-
- function fDefaultSetting()
- {
- model.setValue(cmb_instcd.attribute("ref") , opt_instcd.value);
- model.setValue(cmb_goodflag.attribute("ref") , cmb_goodflag_search.value);
- model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate() );
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.getValue(ipt_reqdeptcd_search.attribute("ref")) );
- model.setValue(ipt_reqdeptnm.attribute("ref"), model.getValue(ipt_reqdeptnm_search.attribute("ref")) );
- model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
-
- var idx = grd_newmetldetllist.row - grd_newmetldetllist.fixedRows + 1;
-
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/instcd" , opt_instcd.value);
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/goodflag" , cmb_goodflag_search.value);
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdd" , getCurrentDate());
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdeptcd" , getUserInfo("dutplcecd"));
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdeptnm" , getUserInfo("dutplcenm"));
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqpsnid" , getUserInfo("userid"));
- model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqpsnnm" , getUserInfo("usernm"));
- model.refresh();
- }
-
- function fSetGoodinfo() {
-
- var path = "/root/main/newmeterialdetail";
- var rcvpath = "/root/hidden/rcvdata/goodlist";
-
- var goodspec = model.getValue(rcvpath + "/goodspec" );
- var goodmodel = model.getValue(rcvpath + "/goodmodel" );
- var reqqty = model.getValue(rcvpath + "/prcpexchqty");
- if (goodspec == "" || goodspec == null) {
- goodspec = "."
- }
-
- if (goodmodel == "" || goodmodel == null) {
- goodmodel = "."
- }
-
- if (reqqty == "" || reqqty == null) {
- reqqty = "1"
- }
-
- model.setValue(path + "/goodflag" , model.getValue(rcvpath + "/goodflag" ));
- model.setValue(path + "/goodengnm" , model.getValue(rcvpath + "/goodengnm" ));
- model.setValue(path + "/goodhngnm" , model.getValue(rcvpath + "/goodhngnm" ));
-
- model.setValue(path + "/goodspec" , goodspec );
- model.setValue(path + "/goodmodel" , goodmodel );
-
- model.setValue(path + "/prodplce" , model.getValue(rcvpath + "/prodplce" ));
- model.setValue(path + "/prodplcenm" , model.getValue(rcvpath + "/prodplcenm" ));
- model.setValue(path + "/prodcmpycd" , model.getValue(rcvpath + "/prodcmpycd" ));
- model.setValue(path + "/prodcmpynm" , model.getValue(rcvpath + "/prodcmpynm" ));
- model.setValue(path + "/suppcustcd" , model.getValue(rcvpath + "/suppcustcd" ));
- model.setValue(path + "/suppcustnm" , model.getValue(rcvpath + "/suppcustnm" ));
- model.setValue(path + "/suppcustnmtxt" , model.getValue(rcvpath + "/suppcustnmtxt" ));
- model.setValue(path + "/prodcmpynmtxt" , model.getValue(rcvpath + "/prodcmpynmtxt" ));
-
- model.setValue(path + "/reqqty" , reqqty);
-
- model.setValue(path + "/deliveunit" , model.getValue(rcvpath + "/deliveunit" ));
- model.setValue(path + "/purcunit" , model.getValue(rcvpath + "/purcunit" ));
- model.setValue(path + "/mmavguseqty" , model.getValue(rcvpath + "/mmavguseqty" ));
- model.setValue(path + "/edicd" , model.getValue(rcvpath + "/edicd" ));
- model.setValue(path + "/insuyn" , model.getValue(rcvpath + "/insuyn" ));
- model.setValue(path + "/goodcd" , model.getValue(rcvpath + "/goodcd" ));
- model.setValue(path + "/goodunitcost" , model.getValue(rcvpath + "/goodunitcost" ));
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:360px; height:14px; ">신규 의료소모품 신청 및 조회</caption>
- <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:22px; width:1195px; height:743px; ">
- <caption id="caption9" class="tit_2" style="left:1px; top:301px; width:180px; height:14px; ">신규 의료소모품 신청내역</caption>
- <datagrid id="grd_newmetldetllist" nodeset="/root/temp/newmeterialdetailinfo/newmetldetllist" class="datagrid2" caption="승인^규격
신규^기관명^유해
물질^제조국명^물품구분명^청구번호^청구번호^진행상태^위원회^물품코드^물품명^물품명^규격^규격^모델^모델^수가
여부^EDICD^구매
구분^청구방법^청구
주기^포장구성단위^보조거래처^보조거래처^보조거래처^담당자^담당자HP^제조원^부서
승인일자^부서
승인자명^청구부서^신청부서코드^청구자^코드
생성일^신청자ID^원내번호^청구
수량^청구
단가^영문명^수가산정일자^제조원^제조국^담당자id^담당자hp^담당자전화번호^구매단위^청구수량^월별사용량^사용예정일^edi코드^청구사유 및 용도^유사재료사용현황^타병원사용현황^관련행위^청구부서전화번호^청구자^청구자명^보험여부^미결정치료재료^미결정치료재료신청일^행위료포함^심사소견^구매팀소견^신규재료진행상태^대분류코드^중분류코드^소분류코드^물품구분^수불단위^단가^부서승인자ID^기관코드^보조거래처cd
텍스트^보조거래처명
텍스트^제조회사명
텍스트^caption2" colsep="^" colwidth="30, 42, 5, 6, 6, 5, 75, 30, 100, 59, 75, 140, 0, 100, 0, 100, 100, 40, 70, 40, 70, 40, 100, 100, 24, 22, 70, 70, 100, 75, 66, 90, 60, 68, 80, 61, 60, 48, 60, 100, 100, 60, 70, 20, 20, 20, 60, 60, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sort" extendlastcol="scroll" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:1px; top:102px; width:1189px; height:185px; ">
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
- <col checkvalue="Y,N" disabled="true" ref="specyn" type="checkbox" style="text-align:center; "/>
- <col ref="instnm" visibility="hidden"/>
- <col checkvalue="Y,N" ref="advsmatryn" type="checkbox" visibility="hidden"/>
- <col ref="prodplcenm" visibility="hidden"/>
- <col ref="goodflagnm" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqseqno" style="text-align:center; "/>
- <col disabled="true" ref="newmatrprcsstat" type="combo" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" disabled="true" ref="insucommityn" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodengnm2" style="text-align:left; "/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodspec2"/>
- <col ref="goodspec" visibility="hidden"/>
- <col ref="goodmodel2"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col disabled="true" ref="insuflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>
- <![CDATA[/>]]>
- </label>
- <value>-</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="edicd"/>
- <col disabled="true" ref="purcflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/purcflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqmthd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqmthd/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="reqprid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqprid/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="packqty"/>
- <col ref="suppcustnm"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="maincust" visibility="hidden"/>
- <col ref="chrgid" style="text-align:center; "/>
- <col ref="chrgmpphon" style="text-align:center; "/>
- <col ref="prodcmpynm"/>
- <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deptaprvpsnnm" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqpsnnm" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqdepttel" visibility="hidden"/>
- <col ref="reqqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="propaprvdd" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="prodplcenm" visibility="hidden"/>
- <col ref="chrgid" visibility="hidden"/>
- <col ref="chrgmpphon" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="purcunit" visibility="hidden"/>
- <col ref="reqqty" visibility="hidden"/>
- <col ref="mmavguseqty" visibility="hidden"/>
- <col ref="useschedd" visibility="hidden"/>
- <col ref="edicd" visibility="hidden"/>
- <col ref="reqresnusge" visibility="hidden"/>
- <col ref="smlartymatruseprestcond" visibility="hidden"/>
- <col ref="anohospusestat" visibility="hidden"/>
- <col ref="newmatrusgeimprvpnt" visibility="hidden"/>
- <col ref="reqdepttel" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="insuyn" visibility="hidden"/>
- <col ref="undecicurematr" visibility="hidden"/>
- <col ref="undecicurematrreqdt" visibility="hidden"/>
- <col ref="actamtincl" visibility="hidden"/>
- <col ref="judgcmt" visibility="hidden"/>
- <col ref="purcteamcmt" visibility="hidden"/>
- <col ref="newmatrprcsstat" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="suppcustcdtxt"/>
- <col ref="suppcustnmtxt"/>
- <col ref="prodcmpynmtxt"/>
- <col ref="insucomd" visibility="hidden"/>
- <col ref="insuresn" visibility="hidden"/>
- <col ref="reqcmt" visibility="hidden"/>
- <col ref="reqchrgid" visibility="hidden" style="left:3491px; top:32px; width:100px; height:23px; "/>
- <col ref="reqchrgnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var goodcd = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodcd"));
- var reqdd = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("reqdd"));
- var reqseqno = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("reqseqno"));
- var goodflag = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag"));
- var newmatrprcsstat = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("newmatrprcsstat"));
- var specyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("specyn"));
- var deptaprvyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("deptaprvyn"));
- //var advsmatryn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("advsmatryn"));
-
- if( grd_newmetldetllist.isCell(event.target) && grd_newmetldetllist.mouseRow >= grd_newmetldetllist.fixedrows ) {
- if( goodcd == model.getValue(ipt_goodcd.attribute("ref")) &&
- reqdd == model.getValue(ipt_reqdd.attribute("ref")) && reqseqno == model.getValue(opt_reqseqno.attribute("ref")) &&
- goodflag == model.getValue(cmb_goodflag.attribute("ref"))
- ) {
- return;
- }
- status = "u";
- rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
- model.copyNode("/root/main/newmeterialdetail" ,grd_newmetldetllist.nodeset +"[" + grd_newmetldetllist.row + "]");
- /*if (advsmatryn == "N"){
- model.setValue("/root/main/newmeterialdetail/advsmatryn" , "");
- model.refresh();
- }*/
-
- // grid에 없어서 copy노드후 적용안됨,
- model.makeNode("/root/main/newmeterialdetail/maincustlastsuplplcenm");
- // 입력row는 disable true
- if (grd_newmetldetllist.rowstatus(grd_newmetldetllist.row) == "1" )
- {
- fDisableCheck( false );
- fInsuynChange("Y");
- }
- else
- {
- fDisableCheck( true );
- fInsuynChange("N");
- }
-
-
- if(newmatrprcsstat > "01") {
-
- fSetInitCtrl(true);
- cap_suppcustcdtxt.visible= false;
- cap_suppcustnmtxt.visible = false;
-
- } else {
- if(specyn == "Y") {
-
- btn_allsizeref.disabled = false;
-
- if(deptaprvyn == "Y") {
- fSetInitCtrl(true);
-
- cap_suppcustcdtxt.visible= false;
- cap_suppcustnmtxt.visible = false;
- cap_prodcmpynmtxt.visible = false;
- cap_goodspectxt.visible = false;
-
- } else {
- fSetInitCtrl(false, null, specyn);
- if(model.getValue(ipt_suppcustcdtxt.attribute("ref")) == "") {
- cap_suppcustcdtxt.visible = true;
- } else {
- cap_suppcustcdtxt.visible = false;
- }
-
- if(model.getValue(ipt_suppcustnmtxt.attribute("ref")) == "") {
- cap_suppcustnmtxt.visible = true;
- } else {
- cap_suppcustnmtxt.visible = false;
- }
-
- if(model.getValue(ipt_prodcmpynmtxt.attribute("ref")) == "") {
- cap_prodcmpynmtxt.visible = true;
- } else {
- cap_prodcmpynmtxt.visible = false;
- }
- if(model.getValue(ipt_goodspec.attribute("ref")) == "") {
- cap_goodspectxt.visible = true;
- } else {
- cap_goodspectxt.visible = false;
- }
- }
- caption18.text = "신 규 규 격";
- } else {
- btn_allsizeref.disabled = true;
-
- if(deptaprvyn == "Y") {
- fSetInitCtrl(true);
-
- cap_suppcustcdtxt.visible= false;
- cap_suppcustnmtxt.visible = false;
- cap_prodcmpynmtxt.visible = false;
- cap_goodspectxt.visible = false;
-
- } else {
- fSetInitCtrl(false, newmatrprcsstat);
- if(model.getValue(ipt_suppcustcdtxt.attribute("ref")) == "") {
- cap_suppcustcdtxt.visible = true;
- } else {
- cap_suppcustcdtxt.visible = false;
- }
-
- if(model.getValue(ipt_suppcustnmtxt.attribute("ref")) == "") {
- cap_suppcustnmtxt.visible = true;
- } else {
- cap_suppcustnmtxt.visible = false;
- }
-
- if(model.getValue(ipt_prodcmpynmtxt.attribute("ref")) == "") {
- cap_prodcmpynmtxt.visible = true;
- } else {
- cap_prodcmpynmtxt.visible = false;
- }
-
- if(model.getValue(ipt_goodspec.attribute("ref")) == "") {
- cap_goodspectxt.visible = true;
- } else {
- cap_goodspectxt.visible = false;
- }
- }
- caption18.text = "신 청 사 유";
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- //현재 선택한 곳이 셀이고 데이터영역일경우에.
- if( grd_newmetldetllist.isCell(event.target) && grd_newmetldetllist.mouseRow >= grd_newmetldetllist.fixedrows ) {
- var goodcd = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodcd"));
-
- if(goodcd != "" && goodcd != "-") {
- model.property("goodcd") = goodcd;
- model.property("instcd") = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("instcd"));
- model.property("goodflag") = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag"));
-
- modal("SPRSD04201");
-
- model.property("goodcd") = "";
- model.property("instcd") = "";
- model.property("goodflag") = "";
- }
- }
- **/
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_newmetldetllist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:1191px; height:67px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1191px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_reqdeptnm_search" ref="/root/cond/reqdeptnm_search" class="output_fix" navindex="-1" editable="false" style="left:459px; top:35px; width:98px; height:19px; "/>
- <button id="button5" class="icon_search" style="left:440px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd_search,reqdeptnm_search";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
- //fPurcAuthInfo(model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- group2.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:776px; top:9px; width:83px; height:17px; ">물 품 명 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
- <caption id="caption8" class="search_name" style="left:270px; top:35px; width:87px; height:17px; ">청구부서 :</caption>
- <caption id="caption10" class="search_name" style="left:270px; top:9px; width:87px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqdeptcd_search" ref="/root/cond/reqdeptcd_search" class="input_search" style="left:357px; top:35px; width:78px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_reqdeptnm_search);
-
- //fPurcAuthInfo(model.getValue(ipt_reqdeptcd_search.attribute("ref")));
- //model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/cond/goodnm" class="input_search" style="left:862px; top:9px; width:205px; height:19px; "/>
- <input id="ipt_reqtodd_search" ref="/root/cond/reqtodd" class="input_search" inputtype="date" style="left:469px; top:9px; width:88px; height:19px; "/>
- <caption id="caption14" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_reqfromdd_search" ref="/root/cond/reqfromdd" class="input_search" inputtype="date" style="left:357px; top:9px; width:88px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:588px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag_search" ref="/root/cond/goodflag" class="input_search" appearance="minimal" editmode="search" style="left:675px; top:9px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:588px; top:35px; width:86px; height:17px; ">진행상태 :</caption>
- <line id="line14" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_instcd" ref="/root/cond/instcd" class="output_fix" visibility="hidden" style="left:92px; top:9px; width:29px; height:19px; "/>
- <input id="opt_instcdnm" ref="/root/cond/instcdnm" class="output_fix" navindex="-1" editable="false" style="left:92px; top:9px; width:165px; height:19px; "/>
- <input id="ipt_emplno_search" ref="/root/cond/emplno" class="input_search" maxlength="10" appearance="input" style="left:92px; top:35px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("01-1", "", "emplno,emplnm,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy1,dummy1" );
- var recv_list = "emplno,emplnonm";
- misfValidationCheck("01-1","", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_winpsn" class="icon_search" style="left:165px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnonm";
- misfOpenPopUpList("12", ipt_emplno_search,"",recv_list); // 사용자 조회
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm_search" ref="/root/cond/emplnonm" class="output_fix" navindex="-1" editable="false" style="left:185px; top:35px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnonm";
- misfValidationCheck("01-2","", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">신 청 자 :</caption>
- <select1 id="cmb_newmatrprcsstat" ref="/root/cond/newmatrprcsstat" class="input_search" appearance="minimal" style="left:675px; top:35px; width:85px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption44" class="search_name" style="left:775px; top:35px; width:86px; height:17px; ">청구번호 :</caption>
- <input id="ipt_reqno" ref="/root/cond/reqno" class="input_search" style="left:862px; top:35px; width:83px; height:19px; "/>
- <caption id="caption46" style="left:945px; top:37px; width:168px; height:16px; ">(물품구분+청구일자+청구번호)</caption>
- </group>
- <button id="btn_print" class="btn6_letter2" style="left:964px; top:294px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue(ipt_deptaprvyn.attribute("ref")) == "N"){
- messageBox("승인 처리된 건들만 처리", "I006");
- return;
- }
- //copyNodesetType("/root/temp/reptnewmeterialdetailinfo", grd_newmetldetllist.nodeset+ "[deptaprvyn='Y']");
- exeReportPreview("RPRSD04201","XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1135px; top:294px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fCheckSaveData() ) {
- if (model.getValue(ipt_deptaprvyn.attribute("ref")) == "N"){
- messageBox("승인 처리를 하셔야 구매팀 접수 진행이 ", "I006");
- }
- var rtn = messageBox("저장하시겠습니까?", "Q");
-
- if(rtn == "6") {
- /*if (model.getValue("/root/main/newmeterialdetail/advsmatryn") == ""){
- model.setValue("/root/main/newmeterialdetail/advsmatryn", "N");
- }*/
-
- model.copyNode("/root/send/savedata", "/root/main/newmeterialdetail");
- model.makeValue("/root/send/savedata/status", status);
-
- submit("TXRSD04002");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error") {
- // fSearchData();
- messageBox("완료 되었습니다.", "I");
- btn_search.dispatch("DOMActivate");
- } else {
- messageBox("변경된 데이터가","I004");
- return;
- }
- }
- }
- ]]>
- </script>
- </button>
- <group id="group6" style="left:585px; top:320px; width:606px; height:420px; ">
- <textarea id="tar_smlartymatruseprestcond" ref="/root/main/newmeterialdetail/smlartymatruseprestcond" navindex="33" scroll="auto" maxlength="300" style="left:102px; top:67px; width:502px; height:59px; "/>
- <textarea id="tar_reqresnusge" ref="/root/main/newmeterialdetail/reqresnusge" class="input_s_essential" navindex="32" scroll="auto" maxlength="300" style="left:102px; top:3px; width:502px; height:59px; "/>
- <textarea id="tar_anohospusestat" ref="/root/main/newmeterialdetail/anohospusestat" navindex="34" scroll="auto" maxlength="300" style="left:102px; top:130px; width:502px; height:59px; "/>
- <textarea id="tar_newmatrusgeimprvpnt" ref="/root/main/newmeterialdetail/newmatrusgeimprvpnt" navindex="35" scroll="auto" maxlength="300" style="left:102px; top:194px; width:502px; height:59px; "/>
- <textarea id="tar_reqcmt" ref="/root/main/newmeterialdetail/reqcmt" navindex="36" scroll="auto" maxlength="200" style="left:102px; top:258px; width:502px; height:59px; "/>
- <textarea id="tar_deptcmt" ref="/root/main/newmeterialdetail/deptcmt" disabled="false" navindex="37" scroll="auto" editable="false" maxlength="50" style="left:102px; top:322px; width:502px; height:85px; background-color:#ffff99; "/>
- <line id="line21" class="line_2" style="x1:2px; y1:64px; x2:604px; y2:64px; "/>
- <caption id="caption18" class="cell_1" style="left:2px; top:2px; width:98px; height:63px; text-align:center; vertical-align:middle; ">신 청 사 유</caption>
- <line id="line22" class="line_2" style="x1:0px; y1:127px; x2:602px; y2:127px; "/>
- <caption id="caption17" class="cell_1" style="left:2px; top:66px; width:98px; height:62px; text-align:center; vertical-align:middle; ">
- <![CDATA[제 품 설 명
- (상세하게 기술)]]>
- </caption>
- <line id="line23" class="line_2" style="x1:0px; y1:191px; x2:602px; y2:191px; "/>
- <caption id="caption13" class="cell_1" style="left:2px; top:129px; width:98px; height:63px; text-align:center; vertical-align:middle; ">
- <![CDATA[본원 유사 재료
- 및
- 관련 행위]]>
- </caption>
- <line id="line24" class="line_2" style="x1:0px; y1:255px; x2:602px; y2:255px; "/>
- <caption id="caption16" class="cell_1" style="left:2px; top:193px; width:98px; height:63px; text-align:center; vertical-align:middle; ">
- <![CDATA[현품의 차이점
- 및
- 타병원 사용현황]]>
- </caption>
- <line id="line25" class="line_2" style="x1:2px; y1:319px; x2:603px; y2:319px; "/>
- <caption id="caption32" class="cell_1" visibility="hidden" style="left:235px; top:205px; width:98px; height:23px; vertical-align:middle; ">구매팀 진행상태</caption>
- <select1 id="combo1" ref="/root/main/newmeterialdetail/newmatrprcsstat" disabled="true" visibility="hidden" appearance="minimal" style="left:336px; top:206px; width:124px; height:19px; ">
- <choices>
- <item>
- <label>신청</label>
- <value>01</value>
- </item>
- <item>
- <label>구매팀접수</label>
- <value>02</value>
- </item>
- <item>
- <label>구매팀반려</label>
- <value>03</value>
- </item>
- <item>
- <label>수가위원회상정</label>
- <value>04</value>
- </item>
- <item>
- <label>수가위원회통과</label>
- <value>05</value>
- </item>
- <item>
- <label>수가위원회부결</label>
- <value>06</value>
- </item>
- <item>
- <label>승인신청</label>
- <value>07</value>
- </item>
- <item>
- <label>구매진행</label>
- <value>08</value>
- </item>
- <item>
- <label>구매부결</label>
- <value>09</value>
- </item>
- <item>
- <label>물품코드생성</label>
- <value>10</value>
- </item>
- <item>
- <label>완료</label>
- <value>00</value>
- </item>
- </choices>
- </select1>
- <caption id="caption37" class="cell_1" visibility="hidden" style="left:235px; top:251px; width:98px; height:23px; vertical-align:middle; ">적정팀 진행상태</caption>
- <select1 id="cmb_insucommityn" ref="/root/main/newmeterialdetail/insucommityn" disabled="true" visibility="hidden" appearance="minimal" style="left:336px; top:252px; width:124px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>수가위원회상정</label>
- <value>Y</value>
- </item>
- <item>
- <label>수가위원회비상정</label>
- <value>N</value>
- </item>
- <item>
- <label>수가위원회부결</label>
- <value>R</value>
- </item>
- <item>
- <label>수가위원회통과</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <caption id="caption38" class="cell_1" visibility="hidden" style="left:463px; top:206px; width:58px; height:44px; text-align:center; vertical-align:middle; ">비 고</caption>
- <caption id="caption39" class="cell_1" visibility="hidden" style="left:463px; top:251px; width:58px; height:44px; text-align:center; vertical-align:middle; ">비 고</caption>
- <caption id="caption41" class="cell_1" style="left:2px; top:321px; width:98px; height:89px; text-align:center; vertical-align:middle; ">부서전달사항</caption>
- <line id="line29" class="line_3" style="x1:2px; y1:409px; x2:603px; y2:409px; "/>
- <caption id="caption15" class="cell_1" style="left:2px; top:257px; width:98px; height:63px; text-align:center; vertical-align:middle; ">비 고</caption>
- </group>
- <line id="line1" class="line_1" style="x1:1px; y1:97px; x2:1189px; y2:97px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:23px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- status = "i";
-
- model.removeNodeset("/root/temp/newmeterialdetailinfo/newmetldetllist");
-
- var aprvFlag = false;
-
- if(submit("TRRSD04201")) {
-
- for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
-
- var goodcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("goodcd"));
- specyn = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("specyn"));
-
- if(goodcd.length != 0) {
- if(specyn == "N") {
- grd_newmetldetllist.cellstyle("background-color", i, grd_newmetldetllist.colRef("goodcd"), i, grd_newmetldetllist.colRef("goodcd")) = "#ffff99";
- } else {
- grd_newmetldetllist.cellstyle("background-color", i, grd_newmetldetllist.colRef("goodcd"), i, grd_newmetldetllist.colRef("goodcd")) = "#c2efce";
- }
- }
-
- var instcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("instcd"));
- var reqdeptcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("reqdeptcd"));
- var stat = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("newmatrprcsstat"));
-
- if(fPurcAuthInfo(reqdeptcd, instcd) == "2" && stat == "01") { // 승인권한이 있고 진행상태가 신청이면 승인체크 오픈
- grd_newmetldetllist.isReadOnly(i,grd_newmetldetllist.colRef("deptaprvyn")) = false;
- aprvFlag = true;
- } else {
- grd_newmetldetllist.isReadOnly(i,grd_newmetldetllist.colRef("deptaprvyn")) = true;
- }
- }
- btn_acpt.disabled = !aprvFlag;
-
- fInitInstance();
- fSetInitCtrl(false);
-
- cap_suppcustcdtxt.visible= true;
- cap_suppcustnmtxt.visible = true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn4_letter2" style="left:1021px; top:294px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- status = "i";
-
- fInitInstance();
- specyn = "N";
-
- model.setValue(cmb_specyn.attribute("ref"), specyn);
- model.setValue(rdo_advsmatryn.attribute("ref"), "N");
-
- cmb_specyn.refresh();
- rdo_advsmatryn.refresh();
-
- fSetInitCtrl(false);
-
- cap_suppcustcdtxt.visible= true;
- cap_suppcustnmtxt.visible = true;
- btn_allsizeref.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_acpt" class="btn2_letter6" disabled="true" style="left:1103px; top:77px; width:86px; height:19px; ">
- <caption>승인 / 미승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("승인/미승인 작업을 하시겠습니까?", "Q");
-
- if(rtn == "6") {
-
- model.makeValue("/root/send/save/aprvlist", getGridUpdateData(grd_newmetldetllist));
- if(submit("TXRSD04003")) {
- messageBox("승인/미승인 작업이 완료되었습니다.", "E");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" visibility="visible" style="left:969px; top:77px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
- if(grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) == "N") {
- grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) = "Y";
- grd_newmetldetllist.rowStatus(i) = "2";
- }
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter4" visibility="visible" style="left:1036px; top:77px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
- if(grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) == "Y") {
- grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) = "N";
- grd_newmetldetllist.rowStatus(i) = "2";
- }
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:1px; y1:316px; x2:1189px; y2:316px; "/>
- <group id="group5" style="left:0px; top:320px; width:575px; height:420px; ">
- <input id="ipt_reqqty2" ref="/root/main/newmeterialdetail/reqqty" class="input_default" navindex="16" visibility="hidden" maxlength="9" format="#,###" style="left:185px; top:391px; width:141px; height:19px; text-align:right; ">-</input>
- <caption id="caption27" class="cell_1" visibility="hidden" style="left:95px; top:390px; width:88px; height:23px; vertical-align:middle; ">수량</caption>
- <caption id="caption24" class="cell_1" visibility="hidden" style="left:335px; top:389px; width:88px; height:23px; vertical-align:middle; ">사용예정일</caption>
- <input id="ipt_useschedd" ref="/root/main/newmeterialdetail/useschedd" class="input_default" visibility="hidden" inputtype="date" style="left:425px; top:390px; width:141px; height:19px; text-align:center; "/>
- <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:335px; width:569px; height:57px; background-color:#fffbf2; border-color:#3366ff; "/>
- <caption id="caption33" class="cell_1" visibility="hidden" style="left:235px; top:302px; width:73px; height:47px; vertical-align:middle; ">
- <![CDATA[의료적
- 비급여사유]]>
- </caption>
- <textarea id="ipt_insucomd" ref="/root/main/newmeterialdetail/insucomd" disabled="true" visibility="hidden" scroll="auto" maxlength="50" style="left:310px; top:272px; width:255px; height:43px; "/>
- <caption id="caption30" class="cell_1" visibility="hidden" style="left:235px; top:271px; width:73px; height:47px; vertical-align:middle; ">해당고시</caption>
- <textarea id="ipt_insuresn" ref="/root/main/newmeterialdetail/insuresn" disabled="true" visibility="hidden" scroll="auto" maxlength="50" style="left:310px; top:303px; width:255px; height:43px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:246px; width:569px; height:87px; background-color:#fffbf2; border-color:#3366ff; "/>
- <input id="ipt_goodhngnm" ref="/root/main/newmeterialdetail/goodhngnm" class="input_s_essential" navindex="13" maxlength="200" style="left:91px; top:99px; width:479px; height:19px; "/>
- <input id="ipt_suppcustcd" ref="/root/main/newmeterialdetail/suppcustcd" class="input" navindex="26" visibility="hidden" maxlength="10" style="left:365px; top:296px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ){
- model.setValue(ipt_suppcustnm.attribute("ref"),"");
- ipt_suppcustnm.value = "";
- }else{
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",,"+ model.getValue(ipt_suppcustcd.attribute("ref"))
- ,"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
-
- model.resetInstanceNode("/root/init/main/reqcustomlist");
- }
- ipt_suppcustcd.refresh();
- ipt_suppcustnm.refresh();
-
- model.setFocus("ipt_suppcustnm");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcflag");
- else model.setFocus("ipt_suppcustnm");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpycd" class="icon_search" style="left:163px; top:221px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_edicd" ref="/root/main/newmeterialdetail/edicd" class="input_default" maxlength="16" style="left:110px; top:275px; width:122px; height:19px; "/>
- <input id="ipt_reqchrgnm" ref="/root/main/newmeterialdetail/reqchrgnm" class="output_fix" navindex="-1" editable="false" style="left:492px; top:51px; width:78px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "reqchrgid,reqchrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_purcunit" ref="/root/main/newmeterialdetail/purcunit" class="combo" navindex="22" appearance="minimal" style="left:262px; top:195px; width:64px; height:19px; text-align:right; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/main/newmeterialdetail/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:91px; top:4px; width:154px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 단위 따로 분리.
- rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_reqpsnid" ref="/root/main/newmeterialdetail/reqpsnid" class="input_s_essential" disabled="true" navindex="6" maxlength="10" style="left:393px; top:27px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button4" class="icon_search" style="left:171px; top:28px; width:16px; height:16px; ">
- <caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
-
- model.refresh();
- ]]>
- </script>
- </caption>
- </button>
- <input id="ipt_reqdd" ref="/root/main/newmeterialdetail/reqdd" class="input_s_essential" navindex="2" inputtype="date" style="left:393px; top:4px; width:96px; height:19px; "/>
- <select1 id="rdo_insuyn" ref="/root/main/newmeterialdetail/insuyn" appearance="full" cellspacing="10" cols="5" rows="1" overflow="visible" style="left:110px; top:250px; width:455px; height:19px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/insuyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInsuynChange("Y")
- ]]>
- </script>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/main/newmeterialdetail/goodflag" class="combo_s_essential" navindex="8" appearance="minimal" editmode="search" style="left:91px; top:51px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 단위 따로 분리.
- rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
-
- /* *************************************
- 2008.10.28 YYJ
- 권한 제거 요청에 의해 주석처리
- ****************************************/
- // fCheckGrant();
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_reqpsnid" class="icon_search" disabled="true" style="left:470px; top:28px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqpsnid,reqpsnnm";
- misfOpenPopUpList("12", ipt_reqpsnid,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnnm" ref="/root/main/newmeterialdetail/reqpsnnm" class="output_fix" navindex="-1" editable="false" style="left:492px; top:27px; width:78px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodunitcost" ref="/root/main/newmeterialdetail/goodunitcost" navindex="14" maxlength="12" format="#,###" style="left:91px; top:123px; width:141px; height:19px; text-align:right; "/>
- <input id="ipt_goodspec" ref="/root/main/newmeterialdetail/goodspec" class="input_default" navindex="15" maxlength="100" style="left:327px; top:123px; width:243px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue(ipt_goodspec.attribute("ref")) == "") {
- cap_goodspectxt.visible = true;
- } else {
- cap_goodspectxt.visible = false;
- }
- //cap_goodspectxt.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_mmavguseqty" ref="/root/main/newmeterialdetail/mmavguseqty" class="input_default" navindex="16" maxlength="9" format="#,###" style="left:91px; top:147px; width:141px; height:19px; text-align:right; "/>
- <input id="ipt_goodmodel" ref="/root/main/newmeterialdetail/goodmodel" class="input_default" navindex="17" maxlength="100" style="left:327px; top:147px; width:243px; height:19px; "/>
- <button id="btn_maincustlastsuplplce" class="icon_search" visibility="hidden" style="left:390px; top:300px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm,prsdnm,cntctel","SPRSD00220","instcd","cmb_instcd" );
- ipt_suppcustcd.refresh();
- ipt_suppcustnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdepttel" ref="/root/main/newmeterialdetail/reqdepttel" class="input_s_essential" navindex="9" maxlength="4" format="9999" style="left:242px; top:51px; width:82px; height:19px; "/>
- <input id="ipt_chrgmpphon" ref="/root/main/newmeterialdetail/chrgmpphon" class="input_essential" navindex="31" maxlength="20" style="left:464px; top:365px; width:97px; height:19px; "/>
- <input id="ipt_chrgid" ref="/root/main/newmeterialdetail/chrgid" class="input_default" navindex="29" maxlength="20" style="left:85px; top:365px; width:111px; height:19px; "/>
- <input id="ipt_suppcustnm" ref="/root/main/newmeterialdetail/suppcustnm" class="input" disabled="true" navindex="27" visibility="hidden" style="left:410px; top:295px; width:17px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustnm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm,"+ model.getValue(ipt_suppcustnm.attribute("ref"))
- ,"","suppcustcd,suppcustnm,prsdnm,cntctel" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd",'Y');
- if(model.getValue("/root/init/main/reqcustomlist/prsdnm") != '')
- {
- model.setValue("/root/main/newmeterialdetail/chrgid", model.getValue("/root/init/main/reqcustomlist/prsdnm"));
- model.setValue("/root/main/newmeterialdetail/chrgtel", model.getValue("/root/init/main/reqcustomlist/cntctel"));
- model.resetInstanceNode("/root/init/main/reqcustomlist");
- }else{
- model.setValue("/root/main/newmeterialdetail/chrgid", model.getValue("/root/main/newmeterialdetail/prsdnm"));
- model.setValue("/root/main/newmeterialdetail/chrgtel", model.getValue("/root/main/newmeterialdetail/cntctel"));
- model.setValue("/root/main/newmeterialdetail/chrgmpphon", model.getValue("/root/main/newmeterialdetail/faxno"));
- }
- }else{
- ipt_suppcustcd.value = "";
- ipt_chrgid.value = '';
- ipt_chrgtel.value = '';
- ipt_chrgmpphon.value ='';
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpynm" ref="/root/main/newmeterialdetail/prodcmpynm" class="input_search" disabled="true" navindex="24" style="left:183px; top:219px; width:141px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpynm.value !=""){
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
- "prodcmpycd,," + model.getValue(ipt_prodcmpynm.attribute("ref"))
- ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
- }else{
- ipt_prodcmpycd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_reqchrgid" class="icon_search" visibility="visible" style="left:470px; top:50px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqchrgid,reqchrgnm";
- misfOpenPopUpList("12", ipt_reqchrgid,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_deliveunit" ref="/root/main/newmeterialdetail/deliveunit" class="combo" navindex="21" appearance="minimal" style="left:185px; top:195px; width:64px; height:19px; text-align:right; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption28" class="cell_1" style="left:1px; top:146px; width:88px; height:23px; vertical-align:middle; ">월 예상사용량</caption>
- <input id="opt_reqseqno" ref="/root/main/newmeterialdetail/reqseqno" class="output_fix" navindex="-1" editable="false" style="left:492px; top:4px; width:78px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/main/newmeterialdetail/prodcmpycd" class="input_default" navindex="23" maxlength="5" style="left:91px; top:219px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) + "," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
-
- model.refresh();
- model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptnm" ref="/root/main/newmeterialdetail/reqdeptnm" class="output_fix" navindex="-1" editable="false" style="left:192px; top:27px; width:132px; height:19px; "/>
- <caption id="caption29" class="cell_1" style="left:0px; top:170px; width:83px; height:19px; vertical-align:middle; ">사용/구매단위</caption>
- <input id="ipt_goodengnm" ref="/root/main/newmeterialdetail/goodengnm" class="input_default" navindex="12" maxlength="200" style="left:91px; top:75px; width:479px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(ipt_goodhngnm.attribute("ref")).length == 0) {
- model.setValue(ipt_goodhngnm.attribute("ref"), model.getValue(ipt_goodengnm.attribute("ref")));
- ipt_goodhngnm.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_chrgtel" ref="/root/main/newmeterialdetail/chrgtel" class="input_essential" navindex="30" maxlength="20" style="left:273px; top:365px; width:101px; height:19px; "/>
- <select1 id="cmb_prodplce" ref="/root/main/newmeterialdetail/prodplce" class="combo" navindex="19" appearance="minimal" style="left:92px; top:171px; width:141px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prodplce">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_goodengnm");
- else model.setFocus("ipt_prodcmpycd");
- }
- if(event.keyCode == 9)model.setFocus("ipt_prodcmpycd");
- event.preventDefault();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_prodcmpycd");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqchrgid" ref="/root/main/newmeterialdetail/reqchrgid" class="input_s_essential" navindex="10" maxlength="10" style="left:393px; top:51px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-1", "", "reqchrgid,reqchrgnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/main/newmeterialdetail/reqdeptcd" class="input_s_essential" navindex="4" maxlength="10" style="left:91px; top:27px; width:76px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_reqdeptnm);
- ]]>
- </script>
- </input>
- <caption id="caption25" style="left:5px; top:303px; width:220px; height:25px; ">* 요양급여에 따라 입력항목이 다릅니다.</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:3px; x2:570px; y2:3px; "/>
- <caption id="caption50" class="cell_1" style="left:327px; top:1px; width:63px; height:24px; vertical-align:middle; ">청구일자</caption>
- <caption id="caption55" class="cell_1" style="left:1px; top:1px; width:88px; height:24px; vertical-align:middle; ">기관코드</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:48px; x2:570px; y2:48px; "/>
- <caption id="caption60" class="cell_1" style="left:327px; top:26px; width:63px; height:23px; vertical-align:middle; ">신청자</caption>
- <caption id="caption47" class="cell_1" style="left:1px; top:26px; width:88px; height:23px; vertical-align:middle; ">청구부서</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:72px; x2:570px; y2:72px; "/>
- <caption id="caption65" class="cell_1" style="left:1px; top:50px; width:88px; height:23px; vertical-align:middle; ">물품구분</caption>
- <caption id="caption22" class="cell_1" style="left:187px; top:50px; width:53px; height:23px; vertical-align:middle; ">원 내 ☎</caption>
- <caption id="caption23" class="cell_1" style="left:327px; top:50px; width:63px; height:23px; vertical-align:middle; ">부서장</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:96px; x2:570px; y2:96px; "/>
- <caption id="caption42" class="cell_1" style="left:1px; top:74px; width:88px; height:23px; vertical-align:middle; ">품명(영문)</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:120px; x2:570px; y2:120px; "/>
- <caption id="caption45" class="cell_1" style="left:1px; top:98px; width:88px; height:23px; vertical-align:middle; ">품명(한글)</caption>
- <line id="line9" class="line_2" style="x1:0px; y1:144px; x2:570px; y2:144px; "/>
- <caption id="caption11" class="cell_1" style="left:1px; top:122px; width:88px; height:23px; vertical-align:middle; ">단 가</caption>
- <caption id="caption56" class="cell_1" style="left:235px; top:122px; width:90px; height:23px; vertical-align:middle; ">규격</caption>
- <line id="line11" class="line_2" style="x1:0px; y1:168px; x2:570px; y2:168px; "/>
- <caption id="caption68" class="cell_1" style="left:235px; top:146px; width:90px; height:23px; vertical-align:middle; ">모델</caption>
- <line id="line12" class="line_2" style="x1:0px; y1:192px; x2:570px; y2:192px; "/>
- <caption id="caption72" class="cell_1" style="left:0px; top:170px; width:90px; height:23px; vertical-align:middle; ">제조국</caption>
- <caption id="caption2" class="cell_1" style="left:235px; top:170px; width:90px; height:23px; vertical-align:middle; ">물품코드</caption>
- <caption id="caption7" class="cell_1" style="left:1px; top:218px; width:88px; height:23px; vertical-align:middle; ">제조회사</caption>
- <line id="line16" class="line_2" style="x1:4px; y1:272px; x2:564px; y2:272px; "/>
- <line id="line17" class="line_2" style="x1:4px; y1:296px; x2:229px; y2:296px; "/>
- <caption id="caption_insuyn" class="cell_1" style="left:4px; top:274px; width:103px; height:23px; vertical-align:middle; ">EDI CODE</caption>
- <line id="line19" class="line_2" style="x1:5px; y1:362px; x2:560px; y2:362px; "/>
- <caption id="caption31" class="cell_1" style="left:4px; top:340px; width:78px; height:23px; vertical-align:middle; ">거래처</caption>
- <input id="ipt_goodcd" ref="/root/main/newmeterialdetail/goodcd" disabled="true" navindex="18" imemode="disabled" style="left:327px; top:171px; width:153px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == "13") {
- btn_goodref.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:4px; top:250px; width:103px; height:23px; vertical-align:middle; ">요양급여</caption>
- <line id="line13" class="line_2" style="x1:0px; y1:216px; x2:570px; y2:216px; "/>
- <input id="ipt_undecicurematrreqdt" ref="/root/main/newmeterialdetail/undecicurematrreqdt" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:110px; top:275px; width:122px; height:19px; "/>
- <input id="ipt_actcd" ref="/root/main/newmeterialdetail/actcd" class="input_default" maxlength="16" _chartype="upper" style="left:110px; top:275px; width:122px; height:19px; "/>
- <input id="ipt_prodcmpynmtxt" ref="/root/main/newmeterialdetail/prodcmpynmtxt" class="input_default" navindex="28" style="left:327px; top:219px; width:240px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue(ipt_prodcmpynmtxt.attribute("ref")) == "") {
- cap_prodcmpynmtxt.visible = true;
- } else {
- cap_prodcmpynmtxt.visible = false;
- }
- ]]>
- </script>
- </input>
- <line id="line10" class="line_3" style="x1:0px; y1:240px; x2:570px; y2:240px; "/>
- <caption id="caption19" class="cell_1" style="left:1px; top:194px; width:88px; height:23px; vertical-align:middle; ">포장구성단위</caption>
- <input id="ipt_suppcustnmtxt" ref="/root/main/newmeterialdetail/suppcustnmtxt" navindex="25" style="left:85px; top:340px; width:117px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
-
- if(model.getValue(ipt_suppcustnmtxt.attribute("ref")) == "") {
- cap_suppcustnmtxt.visible = true;
- } else {
- cap_suppcustnmtxt.visible = false;
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_reqqty" ref="/root/main/newmeterialdetail/reqqty" navindex="20" format="(-)#,###" style="left:91px; top:195px; width:91px; height:19px; text-align:right; "/>
- <caption id="caption40" style="left:10px; top:395px; width:534px; height:20px; font-weight:bold; ">※ 그리드에 물품코드가 존재할경우 더블클릭하면 물품코드 상세내역 팝업이 나옵니다.</caption>
- <line id="line15" class="line_2" style="x1:5px; y1:386px; x2:560px; y2:386px; "/>
- <caption id="caption34" class="cell_1" style="left:4px; top:364px; width:78px; height:23px; vertical-align:middle; ">담당자</caption>
- <caption id="caption35" class="cell_1" style="left:377px; top:364px; width:85px; height:23px; vertical-align:middle; ">담당자 휴대폰</caption>
- <caption id="caption36" class="cell_1" style="left:198px; top:364px; width:73px; height:23px; vertical-align:middle; ">대표번호</caption>
- <input id="ipt_suppcustcdtxt" ref="/root/main/newmeterialdetail/suppcustcdtxt" class="input_default" navindex="28" maxlength="10" style="left:210px; top:340px; width:118px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue(ipt_suppcustcdtxt.attribute("ref")) == "") {
- cap_suppcustcdtxt.visible = true;
- } else {
- cap_suppcustcdtxt.visible = false;
- }
- ]]>
- </script>
- </input>
- <caption id="caption43" class="cell_1" style="left:327px; top:194px; width:63px; height:23px; vertical-align:middle; ">규격여부</caption>
- <select1 id="cmb_specyn" ref="/root/main/newmeterialdetail/specyn" disabled="true" appearance="minimal" style="left:392px; top:195px; width:43px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="btn_goodref" class="icon_search" style="left:487px; top:173px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var goodflag = model.getValue(cmb_goodflag.attribute("ref"));
- var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
- var instcd = model.getValue(cmb_instcd.attribute("ref"));
- var selectyn;
-
- if(goodflag == "") {
- messageBox("물품구분을 입력하세요.", "E");
- model.setFocus("cmb_goodflag");
- return
- }
-
- setParameter("SPRSD04203_instcd", instcd);
- setParameter("SPRSD04203_goodflag", goodflag);
- setParameter("SPRSD04203_goodcd", goodcd);
-
- modal("SPRSD04203");
-
- fSetGoodinfo();
-
-
- //selectyn = getParameter("SPRSD04203_select");
-
- if(selectyn == "Y") {
-
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_allsizeref" class="btn2_letter4" style="left:505px; top:170px; width:64px; height:19px; ">
- <caption>Allsize</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("instcd", model.getValue(cmb_instcd.attribute("ref")));
- setParameter("goodcd", model.getValue(ipt_goodcd.attribute("ref")));
- modal("SPRSD04204");
- ]]>
- </script>
- </button>
- <caption id="cap_prodcmpynmtxt" style="left:327px; top:219px; width:240px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
- <![CDATA[제조회사명 직접입력]]>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- cap_prodcmpynmtxt.visible = false;
- model.setFocus("ipt_prodcmpynmtxt");
- ]]>
- </script>
- </caption>
- <caption id="caption48" class="cell_1" style="left:436px; top:194px; width:63px; height:23px; vertical-align:middle; ">유해물질</caption>
- <select1 id="rdo_advsmatryn" ref="/root/main/newmeterialdetail/advsmatryn" class="radio_search" disabled="false" navindex="14" appearance="full" cols="4" itemheight="18" itemwidth="30" overflow="visible" style="left:502px; top:196px; width:60px; height:20px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_suppcustnmtxt" style="left:85px; top:340px; width:117px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
- <![CDATA[거래처명입력]]>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- cap_suppcustnmtxt.visible = false;
- model.setFocus("ipt_suppcustnmtxt");
- ]]>
- </script>
- </caption>
- <caption id="cap_suppcustcdtxt" style="left:210px; top:340px; width:118px; height:20px; color:#999999; text-align:center; background-color:transparent; ">
- <![CDATA[사업자등록번호]]>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- cap_suppcustcdtxt.visible = false;
- model.setFocus("ipt_suppcustcdtxt");
-
- ]]>
- </script>
- </caption>
- <input id="ipt_deptaprvyn" ref="/root/main/newmeterialdetail/deptaprvyn" class="input_s_essential" disabled="true" navindex="6" visibility="hidden" maxlength="10" style="left:285px; top:4px; width:37px; height:19px; "/>
- <caption id="caption49" class="cell_1" visibility="hidden" style="left:245px; top:1px; width:63px; height:23px; vertical-align:middle; ">승인여부</caption>
- <caption id="caption51" style="left:251px; top:198px; width:10px; height:15px; ">/</caption>
- <caption id="cap_goodspectxt" style="left:328px; top:123px; width:242px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
- <![CDATA[사용할 규격명 입력]]>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- cap_goodspectxt.visible = false;
- model.setFocus("ipt_goodspec");
- ]]>
- </script>
- </caption>
- </group>
- <caption id="caption26" class="tit_2" style="left:0px; top:82px; width:195px; height:14px; ">신규 의료소모품 상세내역</caption>
- <button id="btn_specnew" class="btn4_letter4" style="left:883px; top:294px; width:80px; height:22px; ">
- <caption>규격신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- status = "i";
- specyn = 'Y';
-
- fInitInstance();
- fSetInitCtrl(false, null, specyn);
- caption18.text = "신 규 규 격"+ "\n" +"입 력";
-
- model.setValue(cmb_specyn.attribute("ref"), specyn);
- cmb_specyn.refresh();
-
- cap_suppcustcdtxt.visible= true;
- cap_suppcustnmtxt.visible = true;
- btn_allsizeref.disabled = false;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" disabled="true" style="left:1078px; top:294px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- status = "d";
-
- if(model.getValue(opt_reqseqno.attribute("ref")) == "") {
- messageBox("삭제할 항목이 선택되지않았습니다", "E");
- return;
- }
- var newmatrprcsstat = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("newmatrprcsstat"));
-
- if(newmatrprcsstat == "01") {
- if(model.getValue(ipt_reqpsnid.attribute("ref")) != getUserInfo("userid")) {
- messageBox("신청자가 아니면 물품을 삭제할수 없습니다.", "E");
- return;
- }
- } else {
- messageBox("신청상태가 아닌경우에는 삭제할수없습니다.", "E");
- return;
- }
-
- var rtn = messageBox("삭제하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.copyNode("/root/send/savedata", "/root/main/newmeterialdetail");
- model.makeValue("/root/send/savedata/status", status);
- submit("TXRSD04002");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") {
- // fSearchData();
- messageBox("삭제하였습니다.", "I");
- btn_search.dispatch("DOMActivate");
- } else {
- messageBox("변경된 데이터가","I004");
- return;
- }
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:826px; top:294px; width:56px; height:22px; ">
- <caption>복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_newmetldetllist.row >= grd_newmetldetllist.fixedRows) {
-
- var specyn, advsmatryn;
- status = "i";
-
- model.makeNode("/root/temp/copydata");
- model.copyNode("/root/temp/copydata", grd_newmetldetllist.nodeset + "[" +grd_newmetldetllist.row + "]");
-
- specyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("specyn"));
- //advsmatryn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("advsmatryn"));
-
- model.setValue(cmb_specyn.attribute("ref"), specyn);
- cmb_specyn.refresh();
-
- if(specyn == "Y") {
- btn_specnew.dispatch("DOMActivate");
- } else {
- btn_new.dispatch("DOMActivate");
- }
-
- model.copyNode("/root/main/newmeterialdetail" ,"/root/temp/copydata");
- /*if (advsmatryn == "N"){
- model.setValue("/root/main/newmeterialdetail/advsmatryn" , "");
- model.refresh();
- }*/
-
- model.setValue(opt_reqseqno.attribute("ref"), "");
- model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate());
- model.setValue("/root/main/newmeterialdetail/newmatrprcsstat", "01");
- model.setValue("/root/main/newmeterialdetail/insucommityn" , "-" );
- model.setValue("/root/main/newmeterialdetail/deptaprvyn" , "N" );
- model.setValue("/root/main/newmeterialdetail/deptcmt" , "" );
- model.setValue("/root/main/newmeterialdetail/goodcd" , "" );
-
- rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag")));
- misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
-
- if(ipt_suppcustnmtxt.value == "") {
- cap_suppcustnmtxt.visible = false;
- } else {
- cap_suppcustnmtxt.visible = true;
- }
- if(ipt_suppcustcdtxt.value == "") {
- cap_suppcustcdtxt.visible = false;
- } else {
- cap_suppcustcdtxt.visible = true;
- }
-
- if(ipt_prodcmpynmtxt.value =="") {
- cap_prodcmpynmtxt.visible = false;
- } else {
- cap_prodcmpynmtxt.visible = true;
- }
-
- if(ipt_goodspec.value =="") {
- cap_goodspectxt.visible = false;
- } else {
- cap_goodspectxt.visible = true;
- }
-
- model.refresh();
- } else {
- messageBox("복사할 항목이 존재하지않습니다.", "E");
- return;
- }
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_clear" class="btn4_letter3" visibility="hidden" style="left:1124px; top:1px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_newmetldetllist);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|