123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419 |
- <?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/>
- <goodflag>
- <label>의료소모품</label>
- <value>Y</value>
- <label>일반소모품</label>
- <value>Z</value>
- <label>의료비품</label>
- <value>U</value>
- </goodflag>
- <radio1>
- <label>법정급여</label>
- <value>1</value>
- <label>법정비급여</label>
- <value>2</value>
- <label>의료적비급여</label>
- <value>3</value>
- <label>한시적비급여</label>
- <value>4</value>
- <label>징수불가</label>
- <value>5</value>
- </radio1>
- <radio2>
- <label>결정신청유</label>
- <value>1</value>
- <label>결정신청무</label>
- <value>2</value>
- </radio2>
- <reqtodd/>
- <fromreqdd/>
- <edicd/>
- <goodnm/>
- <rdo_newmatrprcsstat>
- <label>전체</label>
- <value/>
- <label>신청</label>
- <value>1</value>
- <label>반려</label>
- <value>2</value>
- <label>접수</label>
- <value>3</value>
- <label>심사완료</label>
- <value>4</value>
- <label>확정</label>
- <value>5</value>
- </rdo_newmatrprcsstat>
- </init>
- <send>
- <sendlist>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqfromdd/>
- <reqtodd/>
- <goodflag/>
- <edicd/>
- <goodnm/>
- <newmatrprcsstat/>
- <instcdnm/>
- </sendlist>
- <newmeterialdetail/>
- </send>
- <main>
- <list>
- <newmeterialdetail>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <goodflag/>
- <goodengnm/>
- <goodhngnm/>
- <goodspec/>
- <goodmodel/>
- <prodplce/>
- <prodplcenm/>
- <prodcmpycd/>
- <prodcmpynm/>
- <maincustlastsuplplce/>
- <maincust/>
- <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/>
- </newmeterialdetail>
- </list>
- <newmeterialdetail>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <goodflag/>
- <goodengnm/>
- <goodhngnm/>
- <goodspec/>
- <goodmodel/>
- <prodplce/>
- <prodplcenm/>
- <prodcmpycd/>
- <prodcmpynm/>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <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/>
- </newmeterialdetail>
- </main>
- <temp/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
-
- misfMsterDetailSet(grd_newmeterial,null,"TRRSD04101","Y");
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSD04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" add="bottom" resultref="/root/main/list/newmeterialdetail"/>
- <submission id="TXRSD04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_newmeterial);
- // misfGridInit(grd_newmeterialdetail);
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/newmeterialdetail");
-
- //misfComboComCdListMulti("Z0007,R0025,R0035,R0129","cmb_instcd,cmb_goodflag_search,cmb_prodplce,rdo_newmatrprcsstat");
- misfComboComCdListMulti("Z0007,R0035,R0129","cmb_instcd,cmb_prodplce,rdo_newmatrprcsstat");
-
- //misfComboCopyItemSet(opt_instcd, "", cmb_instcd, ""); //기관코드
- misfComboCopyItemSet(cmb_goodflag_search, "", cmb_goodflag, ""); //물품코드
- misfComboCopyItemSet(cmb_goodflag_search, "", cmb_goodflag2, "");
-
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
- var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
- if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- }else{
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
- }
-
- // model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- // model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
-
- model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
-
- model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate() );
- model.setValue(ipt_reqfromdd_search.attribute("ref"), getCurrentDate() );
- model.setValue(ipt_reqtodd_search.attribute("ref"), getCurrentDate() );
-
-
- model.setValue(ipt_useschedd.attribute("ref"), getCurrentDate() );
- model.setValue(ipt_undecicurematrreqdt.attribute("ref"), getCurrentDate() );
-
- rdo_insuyn.select(0);
- rdo_undecicurematr.select(0);
- /* *************************************
- 2008.06.06 YYJ
- 초기에 물품 구분이 설정되지 않으므로 단위를 가져 올 수 없다..
- 기관코드, 물품구분을 설정 할때 이벤트가 발생하므로 구지 처음부터 가져올 필요가 없을 듯.. 가져오지 못하니 의미가 없음..
- ****************************************/
- // 단위 따로 분리.
- // rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
- // 사용단위.
- // misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //물품코드
- fDisableCheck( false );
- /* *************************************
- 2008.10.28 YYJ
- 권한 제거 요청에 의해 주석처리
- ****************************************/
- // fCheckGrant();
- model.refresh();
- }
-
-
- //청구자 승인자 권한 체크!!
- function fCheckGrant()
- {
- rszfGetPurcReqAuthInfo(opt_instcd.value, cmb_goodflag.value, ipt_reqdeptcd.value, getUserInfo("userid"));
-
- if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '1')
- {
- grd_newmeterial.colDisabled(grd_newmeterial.colRef("deptaprvyn")) = true;
- btn_save.disabled = false;
- }else if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '2')
- {
- grd_newmeterial.colDisabled(grd_newmeterial.colRef("deptaprvyn")) = false;
- btn_save.disabled = false;
- }else{
- grd_newmeterial.colDisabled(grd_newmeterial.colRef("deptaprvyn")) = true;
- btn_save.disabled = true;
- }
- }
-
- function fDelCheck()
- {
- if(grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvyntemp")) == 'Y')
- {
- btn_del.disabled = true;
- group5.disabled = true;
- group6.disabled = true;
- }else{
- btn_del.disabled = false;
- group5.disabled = false;
- group6.disabled = false;
- }
- }
-
- function fDataCheck() {
- misfGridRowStatusChange(grd_newmeterial,"/root/main/list","/root/main");
- var updtdata = getGridUpdateData(grd_newmeterial);
- model.refresh();
- if (updtdata != "" ) return true;
- else return false;
- }
-
- 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=false;
- ipt_insucomd.visible=false;
- ipt_insuresn.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_insuresn.visible=true;
-
- }
- else if (model.getValue(rdo_insuyn.attribute("ref"))=="4")
- {
- caption_insuyn.text = '재료미결정신청일';
- ipt_undecicurematrreqdt.visible=true;
- }
- else if (model.getValue(rdo_insuyn.attribute("ref"))=="5")
- {
- caption_insuyn.text = '해당고시';
- ipt_insucomd.visible=true;
- }
- model.refresh();
- }
-
- function fSearchData() {
- misfMsterDetailRetrieve();
- if ( grd_newmeterial.rows > 1 ) {
- model.resetInstanceNode("/root/main/newmeterialdetail");
- grd_newmeterial.row = 1;
- model.copyNode("/root/main/newmeterialdetail" ,grd_newmeterial.nodeset + "["+ grd_newmeterial.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_reqseqno.attribute("ref")).length==0)
- {
- messageBox("청구순번은","I003");
- model.setFocus("ipt_reqseqno");
- return false;
- }
- */
- if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
- {
- messageBox("물품구분은","I003");
- model.setFocus("cmb_goodflag");
- 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(ipt_goodhngnm.attribute("ref")).length==0)
- {
- messageBox("품명(한글)은","I003");
- model.setFocus("ipt_goodhngnm");
- return false;
- }
- /*
- if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length==0)
- {
- messageBox("거래처는","I003");
- model.setFocus("ipt_maincustlastsuplplce");
- 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)
- {
- messageBox("전화번호는","I003");
- model.setFocus("ipt_chrgtel");
- return false;
- }
- if(model.getValue(ipt_chrgmpphon.attribute("ref")).length==0)
- {
- messageBox("휴대폰번호는","I003");
- model.setFocus("ipt_chrgmpphon");
- 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_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_prodplce.attribute("ref")).length==0)
- {
- messageBox("제조국은","I003");
- model.setFocus("cmb_prodplce");
- return false;
- }
- /*
- if(model.getValue(ipt_prodcmpycd.attribute("ref")).length==0)
- {
- messageBox("제조회사는","I003");
- model.setFocus("ipt_prodcmpycd");
- return false;
- }
- if(model.getValue(cmb_purcunit.attribute("ref")).length==0)
- {
- messageBox("구매단위는","I003");
- model.setFocus("cmb_purcunit");
- return false;
- }
- if(model.getValue(ipt_reqqty.attribute("ref")).length==0)
- {
- messageBox("수량은","I003");
- model.setFocus("ipt_reqqty");
- return false;
- }
- if(model.getValue(ipt_mmavguseqty.attribute("ref")).length==0)
- {
- messageBox("월평균사용량은","I003");
- model.setFocus("ipt_mmavguseqty");
- return false;
- }
- if(model.getValue(ipt_useschedd.attribute("ref")).length==0)
- {
- messageBox("사용예정일은","I003");
- model.setFocus("ipt_useschedd");
- return false;
- }*/
-
- /*
- if(model.getValue(rdo_insuyn.attribute("ref")).length==0)
- {
- messageBox("요양급여는","I003");
- model.setFocus("rdo_insuyn");
- return false;
- }
- if(model.getValue(rdo_undecicurematr.attribute("ref")).length==0)
- {
- messageBox("미결정치료재료는","I003");
- model.setFocus("rdo_undecicurematr");
- return false;
- }
- if(model.getValue(ipt_edicd.attribute("ref")).length==0)
- {
- messageBox("EDI코드는","I003");
- model.setFocus("ipt_edicd");
- return false;
- }
- if(model.getValue(ipt_undecicurematrreqdt.attribute("ref")).length==0)
- {
- messageBox("신청일자는","I003");
- model.setFocus("ipt_undecicurematrreqdt");
- return false;
- }
- if(model.getValue(tar_reqresnusge.attribute("ref")).length==0)
- {
- messageBox("청구사유는","I003");
- model.setFocus("tar_reqresnusge");
- return false;
- }
- if(model.getValue(tar_smlartymatruseprestcond.attribute("ref")).length==0)
- {
- messageBox("유사물품사용현황은","I003");
- model.setFocus("tar_smlartymatruseprestcond");
- return false;
- }
- if(model.getValue(tar_anohospusestat.attribute("ref")).length==0)
- {
- messageBox("타병원사용현황은","I003");
- model.setFocus("tar_anohospusestat");
- return false;
- }
- if(model.getValue(tar_newmatrusgeimprvpnt.attribute("ref")).length==0)
- {
- messageBox("관련행위는","I003");
- model.setFocus("tar_newmatrusgeimprvpnt");
- return false;
- }
- */
- return true;
- }
-
- 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"));
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/instcd" , opt_instcd.value);
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/goodflag" , cmb_goodflag_search.value);
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/reqdd" , getCurrentDate());
-
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/reqdeptcd" , getUserInfo("dutplcecd"));
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/reqdeptnm" , getUserInfo("dutplcenm"));
-
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/reqpsnid" , getUserInfo("userid"));
- model.setValue(grd_newmeterial.nodeset + "[" + (grd_newmeterial.row - grd_newmeterial.fixedRows + 1) + "]/reqpsnnm" , getUserInfo("usernm"));
-
- 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:140px; height:13px; ">신규 재료 신청 등록</caption>
- <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_newmeterial);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fCheckSaveData() ) {
- if ( grd_newmeterial.rows <= 1 ) {
- misfGridInit(grd_newmeterial);
- misfGridIUD(grd_newmeterial, "A");
- model.refresh();
- }
-
- if ( fDataCheck() ) {
- misfSave("TXRSD04001");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") fSearchData();
- } else {
- messageBox("변경된 데이터가","I004");
- return;
- }
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_6" style="x1:0px; y1:25px; x2:1195; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var goodflag;
-
- for(var i = grd_newmeterial.fixedRows; i < grd_newmeterial.rows; i++) {
- goodflag = grd_newmeterial.valueMatrix(i, grd_newmeterial.colRef("goodflag"));
-
- cmb_goodflag2.value = goodflag;
-
- model.makeValue(grd_newmeterial.nodeset + "[" + i + "]/goodflagnm", cmb_goodflag2.label);
- model.makeValue(grd_newmeterial.nodeset + "[" + i + "]/instnm", getUserInfo("dutplceinstnm"));
- }
- exeReportPreview("RPRSD04101","XMLSTR");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:743px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:186px; width:126px; height:13px; ">신규재료 물품목록</caption>
- <button id="btn_del" class="btn2_letter2" style="left:493px; top:180px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_newmeterial, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
- <datagrid id="grd_newmeterial" nodeset="/root/main/list/newmeterialdetail" caption="승인^승인temp^승인자^승인자^승인일자^진행상태^기관코드^청구부서^청구부서명^청구일자^청구순번^물품구분^물품명(영문)^물품명(한글)^물품규격^모델^제조국코드^제조국^제조회사코드^제조회사코드^거래처코드^거래처명^담당자id^담당자hp^담당자전화번호^구매단위^청구수량^월별사용량^사용예정일^edi코드^청구사유 및 용도^유사재료사용현황^타병원사용현황^관련행위^청구부서전화번호^청구자^청구자명^보험여부^미결정치료재료^미결정치료재료신청일^행위료포함^심사소견^구매팀소견^신규재료진행상태^대분류코드^중분류코드^소분류코드^물품코드^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="32, 42, 61, 62, 68, 80, 20, 20, 100, 100, 20, 20, 100, 100, 80, 80, 20, 20, 22, 17, 19, 80, 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, 80, 20, 20, 20, 20, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:206px; width:535px; height:524px; ">
- <col checkvalue="Y,N" disabled="true" ref="deptaprvyn" type="checkbox"/>
- <col ref="deptaprvyntemp" visibility="hidden"/>
- <col ref="deptaprvpsnid" style="text-align:center; "/>
- <col ref="deptaprvpsnnm" style="text-align:center; "/>
- <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="newmatrprcsstatnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="goodengnm"/>
- <col ref="goodhngnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodplce" visibility="hidden"/>
- <col ref="prodplcenm" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="maincustlastsuplplce" visibility="hidden"/>
- <col ref="maincust"/>
- <col ref="chrgid" visibility="hidden"/>
- <col ref="chrgmpphon" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="purcunit"/>
- <col ref="reqqty"/>
- <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="goodcd"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="insucomd" visibility="hidden"/>
- <col ref="insuresn" visibility="hidden"/>
- <col ref="reqcmt" visibility="hidden"/>
- <col ref="reqchrgid" visibility="hidden"/>
- <col ref="reqchrgnm" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- // if( grd_newmeterial.isCell( event.target ) && grd_newmeterial.row >= grd_newmeterial.fixedRows ) {
- if( grd_newmeterial.rows > grd_newmeterial.fixedRows ) {
-
- model.copyNode("/root/main/newmeterialdetail" ,grd_newmeterial.nodeset + "["+ grd_newmeterial.row + "]");
-
- // grid에 없어서 copy노드후 적용안됨,
- model.makeNode("/root/main/newmeterialdetail/maincustlastsuplplcenm");
-
- // 입력row는 disable true
- if (grd_newmeterial.rowstatus(grd_newmeterial.row) == "1" )
- {
- fDisableCheck( false );
- fInsuynChange("Y");
- }
- else
- {
- fDisableCheck( true );
- fInsuynChange("N");
- }
-
- //승인 여부에 따라 삭제 버튼 컨트롤 설정.
- fDelCheck();
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_newmeterial.col == grd_newmeterial.colRef("deptaprvyn"))
- {
- if(grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvyn")) == 'Y')
- {
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvdd")) = getCurrentDate() ;
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvpsnid")) = getUserInfo("userid");
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvpsnnm")) = getUserInfo("usernm");
-
- model.setValue("/root/main/newmeterialdetail/deptaprvyn", 'Y');
- model.setValue("/root/main/newmeterialdetail/deptaprvdd", getCurrentDate());
- model.setValue("/root/main/newmeterialdetail/deptaprvpsnid", getUserInfo("userid"));
- model.setValue("/root/main/newmeterialdetail/deptaprvpsnnm", getUserInfo("usernm"));
-
- model.refresh();
-
- }else{
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvdd")) = '';
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvpsnid")) = '' ;
- grd_newmeterial.valueMatrix(grd_newmeterial.row, grd_newmeterial.colRef("deptaprvpsnnm")) = '';
-
- model.setValue("/root/main/newmeterialdetail/deptaprvyn", 'N');
- model.setValue("/root/main/newmeterialdetail/deptaprvdd", '');
- model.setValue("/root/main/newmeterialdetail/deptaprvpsnid", '');
- model.setValue("/root/main/newmeterialdetail/deptaprvpsnnm", '');
-
- model.refresh();
- }
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_newmeterial.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:201px; x2:535px; y2:201px; "/>
- <input id="ipt_useschedd" ref="/root/main/newmeterialdetail/useschedd" class="input_essential" visibility="hidden" inputtype="date" style="left:415px; top:180px; width:25px; height:19px; "/>
- <select1 id="rdo_undecicurematr" ref="/root/main/newmeterialdetail/undecicurematr" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:380px; top:180px; width:40px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/radio2">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if ( rdo_undecicurematr.value ==1 ) {
- ipt_undecicurematrreqdt.disabled = false;
- model.setValue( ipt_undecicurematrreqdt.attribute("ref") , getCurrentDate());
- } else {
- ipt_undecicurematrreqdt.disabled = true;
- model.resetInstanceNode( ipt_undecicurematrreqdt.attribute("ref") );
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <group id="group2" style="left:0px; top:5px; width:535px; height:171px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:535px; height:166px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_reqdeptnm_search" ref="/root/send/sendlist/reqdeptnm" class="input_search" style="left:225px; top:34px; width:192; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="button5" class="icon_search" style="left:202px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:220px; top:86px; width:117px; height:17px; ">EDI 코드 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:113px; width:88px; height:17px; ">물 품 명 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">기관코드 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:35; width:117px; height:17px; ">청구부서 :</caption>
- <input id="ipt_edicd_search" ref="/root/send/sendlist/edicd" class="input_default" style="left:305px; top:85px; width:112px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:15px; top:61px; width:117px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqdeptcd_search" ref="/root/send/sendlist/reqdeptcd" class="input_default" style="left:100px; top:34px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
-
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/send/sendlist/goodnm" class="input_default" style="left:100px; top:112px; width:317px; height:19px; "/>
- <input id="ipt_reqtodd_search" ref="/root/send/sendlist/reqtodd" class="input_search" inputtype="date" style="left:268px; top:60px; width:149px; height:19px; "/>
- <caption id="caption14" class="search_no_b" style="left:254px; top:61px; width:12px; height:17px; ">~</caption>
- <input id="ipt_reqfromdd_search" ref="/root/send/sendlist/reqfromdd" class="input_search" inputtype="date" style="left:100px; top:60px; width:149; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:15px; top:87px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag_search" ref="/root/send/sendlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:100px; top:86px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" style="left:15px; top:138px; width:117px; height:17px; ">진행상태 :</caption>
- <select1 id="rdo_newmatrprcsstat" ref="/root/send/sendlist/newmatrprcsstat" appearance="full" cols="6" rows="1" overflow="visible" style="left:100px; top:138px; width:211px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line14" class="line_4" style="x1:455px; y1:11px; x2:455px; y2:158px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:470px; top:73px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드는 " ,"C002");
- model.setFocus("opt_instcd");
- return false;
- } else {
- if ( fDataCheck() ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- } else {
- fSearchData();
- }
- } else {
- fSearchData();
- }
- }
-
- /* *************************************
- 2008.10.28 YYJ
- 권한 제거 요청에 의해 주석처리
- ****************************************/
- // fCheckGrant();
- ]]>
- </script>
- </button>
- <output id="opt_instcd" ref="/root/send/sendlist/instcd" class="output_fix" visibility="hidden" style="left:460px; top:10px; width:29px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/sendlist/instcdnm" class="output_fix" style="left:102px; top:9px; width:316px; height:19px; text-align:center; "/>
- </group>
- <button id="btn_insert" class="btn2_letter2" style="left:450px; top:180px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_newmeterial);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 신규 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- model.resetInstanceNode("/root/main/newmeterialdetail");
- fDisableCheck( false );
- misfGridIUD(grd_newmeterial, "A");
-
- fDefaultSetting();
-
-
- /* *************************************
- 2008.10.28 YYJ
- 권한 제거 요청에 의해 주석처리
- ****************************************/
- // fCheckGrant();
- //승인 여부에 따라 삭제 버튼 컨트롤 설정.
- fDelCheck();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group5" style="left:538px; top:2px; width:656px; height:300px; ">
- <caption id="caption60" class="cell_1" style="left:331px; top:30px; width:93px; height:23px; vertical-align:middle; ">신청자</caption>
- <input id="ipt_goodhngnm" ref="/root/main/newmeterialdetail/goodhngnm" class="input_s_essential" maxlength="200" style="left:96px; top:104px; width:558px; height:19px; "/>
- <line id="line30" class="line_2" style="x1:1px; y1:52px; x2:656px; y2:52px; "/>
- <input id="ipt_insuresn" ref="/root/main/newmeterialdetail/insuresn" visibility="hidden" maxlength="50" style="left:96px; top:199px; width:557px; height:19px; "/>
- <caption id="caption_insuyn" class="cell_1" style="left:1px; top:197px; width:93px; height:22px; vertical-align:middle; ">EDI CODE</caption>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/newmeterialdetail/maincustlastsuplplce" imemode="disabled" maxlength="10" style="left:96px; top:270px; width:89px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 )
- {
- ipt_maincustlastsuplplcenm.value = "";
- ipt_chrgid.value = '';
- ipt_chrgtel.value = '';
- ipt_chrgmpphon.value ='';
- }else
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",entrregno,"+ model.getValue(ipt_maincustlastsuplplce.attribute("ref"))
- ,"","maincustlastsuplplce,maincustlastsuplplcenm,prsdnm,cntctel" ,ipt_maincustlastsuplplce,"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 rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",maincustlastsuplplce," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
-
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_purcflag");
- else model.setFocus("ipt_suppcustcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpycd" class="icon_search" style="left:500px; top:154px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption72" class="cell_1" style="left:1px; top:150px; width:93px; height:23px; vertical-align:middle; ">제조국</caption>
- <caption id="caption50" class="cell_1" style="left:331px; top:6px; width:93px; height:23px; vertical-align:middle; ">신청일자</caption>
- <line id="line20" class="line_2" style="x1:1px; y1:196px; x2:656px; y2:196px; "/>
- <line id="line31" class="line_2" style="x1:1px; y1:76px; x2:656px; y2:76px; "/>
- <input id="ipt_edicd" ref="/root/main/newmeterialdetail/edicd" class="input_default" visibility="hidden" maxlength="16" style="left:96px; top:199px; width:121px; height:19px; "/>
- <input id="ipt_reqchrgnm" ref="/root/main/newmeterialdetail/reqchrgnm" class="input_search" style="left:533px; top:56px; width:121px; 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" appearance="minimal" style="left:545px; top:222px; width:108px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/main/newmeterialdetail/instcd" class="combo_s_essential" appearance="minimal" style="left:96px; top:8px; width:228px; 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>
- <line id="line10" class="line_3" style="x1:1px; y1:292px; x2:656px; y2:292px; "/>
- <line id="line32" class="line_2" style="x1:1px; y1:100px; x2:656px; y2:100px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/newmeterialdetail/reqpsnid" class="input_s_essential" maxlength="10" style="left:426px; top:32px; width:77px; 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:175px; top:34px; width:16px; height:16px; ">
- <caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- //misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
-
- model.refresh();
- ]]>
- </script>
- </caption>
- </button>
- <line id="line33" class="line_2" style="x1:1px; y1:124px; x2:656px; y2:124px; "/>
- <line id="line11" class="line_2" style="x1:1px; y1:28px; x2:653px; y2:28px; "/>
- <caption id="caption31" class="cell_1" style="left:1px; top:268px; width:93px; height:23px; vertical-align:middle; ">거래처/담당자</caption>
- <input id="ipt_reqdd" ref="/root/main/newmeterialdetail/reqdd" class="input_s_essential" inputtype="date" style="left:426px; top:8px; width:156px; height:19px; "/>
- <caption id="caption42" class="cell_1" style="left:1px; top:78px; width:93px; height:23px; vertical-align:middle; ">품명(영문)</caption>
- <line id="line34" class="line_2" style="x1:1px; y1:148px; x2:656px; y2:148px; "/>
- <input id="ipt_insucomd" ref="/root/main/newmeterialdetail/insucomd" visibility="hidden" maxlength="50" style="left:96px; top:199px; width:557px; height:19px; "/>
- <caption id="caption32" class="cell_1" style="left:376px; top:268px; width:79px; height:23px; vertical-align:middle; ">전화/HP</caption>
- <caption id="caption65" class="cell_1" style="left:1px; top:54px; width:93px; height:23px; vertical-align:middle; ">물품구분</caption>
- <caption id="caption11" class="cell_1" style="left:1px; top:220px; width:93px; height:22px; vertical-align:middle; ">단 가</caption>
- <input id="ipt_undecicurematrreqdt" ref="/root/main/newmeterialdetail/undecicurematrreqdt" class="input_essential" visibility="hidden" inputtype="date" maxlength="8" style="left:96px; top:199px; width:121px; height:19px; "/>
- <select1 id="rdo_insuyn" ref="/root/main/newmeterialdetail/insuyn" appearance="full" cellspacing="30" cols="5" rows="1" overflow="visible" style="left:96px; top:176px; width:558px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/radio1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInsuynChange("Y")
- ]]>
- </script>
- </select1>
- <caption id="caption22" class="cell_1" style="left:183px; top:54px; width:58px; height:23px; vertical-align:middle; ">원 내 ☎</caption>
- <caption id="caption55" class="cell_1" style="left:1px; top:6px; width:93px; height:23px; vertical-align:middle; ">기관코드</caption>
- <line id="line25" class="line_2" style="x1:1px; y1:220px; x2:653px; y2:220px; "/>
- <line id="line36" class="line_2" style="x1:1px; y1:172px; x2:656px; y2:172px; "/>
- <caption id="caption23" class="cell_1" style="left:331px; top:54px; width:93px; height:23px; vertical-align:middle; ">부서장</caption>
- <select1 id="cmb_goodflag" ref="/root/main/newmeterialdetail/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:96px; top:56px; width:85px; 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="button8" class="icon_search" style="left:510px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- rszfOpenPopUpListByWndName(ipt_reqpsnid,"","reqpsn,reqpsnnm","SPZSU10100","","");
- var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
-
- if(userinfo != "" && userinfo != null) {
- userinfo = userinfo.split("|");
- model.setValue(ipt_reqpsnid.attribute("ref"),userinfo[0]);
- model.setValue(opt_reqpsnnm.attribute("ref"),userinfo[1]);
- }
- model.refresh();
- */
-
- 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="input_search" style="left:533px; top:32px; width:121px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "reqpsnid,reqpsnnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodspec" ref="/root/main/newmeterialdetail/goodspec" class="input_s_essential" maxlength="100" style="left:96px; top:128px; width:230px; height:19px; "/>
- <caption id="caption56" class="cell_1" style="left:1px; top:126px; width:93px; height:23px; vertical-align:middle; ">규격</caption>
- <caption id="caption45" class="cell_1" style="left:1px; top:102px; width:93px; height:23px; vertical-align:middle; ">품명(한글)</caption>
- <input id="ipt_mmavguseqty" ref="/root/main/newmeterialdetail/mmavguseqty" class="input_default" maxlength="9" format="#,###" style="left:483px; top:246px; width:170px; height:19px; text-align:right; "/>
- <caption id="caption68" class="cell_1" style="left:331px; top:126px; width:93px; height:23px; vertical-align:middle; ">모델</caption>
- <line id="line27" class="line_2" style="x1:1px; y1:244px; x2:654px; y2:244px; "/>
- <input id="ipt_goodunitcost" ref="/root/main/newmeterialdetail/goodunitcost" maxlength="12" format="#,###" style="left:96px; top:222px; width:230px; height:19px; text-align:right; "/>
- <caption id="caption5" class="cell_1" style="left:1px; top:174px; width:93px; height:22px; vertical-align:middle; ">요양급여</caption>
- <input id="ipt_goodmodel" ref="/root/main/newmeterialdetail/goodmodel" class="input_s_essential" maxlength="100" style="left:426px; top:128px; width:228px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:1px; y1:294px; x2:656px; y2:294px; "/>
- <caption id="caption47" class="cell_1" style="left:1px; top:30px; width:93px; height:23px; vertical-align:middle; ">청구부서</caption>
- <line id="line2" class="line_1" style="x1:1px; y1:2px; x2:656px; y2:2px; "/>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:190px; top:272px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm,prsdnm,cntctel","SPRSD00220","instcd","cmb_instcd" );
-
- 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.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdepttel" ref="/root/main/newmeterialdetail/reqdepttel" class="input_s_essential" maxlength="20" style="left:243px; top:56px; width:81px; height:19px; "/>
- <input id="ipt_chrgmpphon" ref="/root/main/newmeterialdetail/chrgmpphon" maxlength="20" style="left:558px; top:270px; width:95px; height:19px; "/>
- <input id="ipt_chrgid" ref="/root/main/newmeterialdetail/chrgid" class="input" maxlength="20" style="left:306px; top:270px; width:69px; height:19px; "/>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/main/newmeterialdetail/maincustlastsuplplcenm" style="left:210px; top:270px; width:92px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplcenm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm,"+ model.getValue(ipt_maincustlastsuplplcenm.attribute("ref"))
- ,"","maincustlastsuplplce,maincustlastsuplplcenm,prsdnm,cntctel" ,ipt_maincustlastsuplplce,"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_maincustlastsuplplce.value = "";
- ipt_chrgid.value = '';
- ipt_chrgtel.value = '';
- ipt_chrgmpphon.value ='';
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption27" class="cell_1" style="left:1px; top:244px; width:93px; height:23px; vertical-align:middle; ">수 량</caption>
- <input id="ipt_prodcmpynm" ref="/root/main/newmeterialdetail/prodcmpynm" class="input_search" style="left:520px; top:152px; width:134px; 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>
- <caption id="caption7" class="cell_1" style="left:330px; top:150px; width:93px; height:23px; vertical-align:middle; ">제조회사</caption>
- <button id="button10" class="icon_search" visibility="visible" style="left:510px; top:58px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- rszfOpenPopUpListByWndName(ipt_reqchrgid,"","reqchrgid,reqpchrgnm","SPZSU10100","","");
- var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
-
- if(userinfo != "" && userinfo != null) {
- userinfo = userinfo.split("|");
- model.setValue(ipt_reqchrgid.attribute("ref"),userinfo[0]);
- model.setValue(opt_reqchrgnm.attribute("ref"),userinfo[1]);
- }
- model.refresh();
- */
- 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" appearance="minimal" style="left:426px; top:222px; width:108px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption28" class="cell_1" style="left:331px; top:244px; width:149px; height:23px; vertical-align:middle; ">월평균예정사용량</caption>
- <output id="opt_reqseqno" ref="/root/main/newmeterialdetail/reqseqno" class="output_fix" disabled="true" style="left:585px; top:8px; width:68px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/main/newmeterialdetail/prodcmpycd" class="input_default" maxlength="5" style="left:426px; top:152px; width:69px; 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>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptnm" ref="/root/main/newmeterialdetail/reqdeptnm" class="input_search" style="left:193px; top:32px; width:131px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="cell_1" style="left:331px; top:219px; width:93px; height:23px; vertical-align:middle; ">사용/구매단위</caption>
- <input id="ipt_reqqty" ref="/root/main/newmeterialdetail/reqqty" class="input_default" maxlength="9" format="#,###" style="left:96px; top:246px; width:230px; height:19px; text-align:right; ">-</input>
- <input id="ipt_goodengnm" ref="/root/main/newmeterialdetail/goodengnm" class="input_s_essential" maxlength="200" style="left:96px; top:80px; width:558px; height:19px; "/>
- <input id="ipt_chrgtel" ref="/root/main/newmeterialdetail/chrgtel" maxlength="20" style="left:456px; top:270px; width:95px; height:19px; "/>
- <select1 id="cmb_prodplce" ref="/root/main/newmeterialdetail/prodplce" class="combo_s_essential" appearance="minimal" style="left:96px; top:152px; width:230px; 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" maxlength="10" style="left:426px; top:56px; width:77px; 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" maxlength="10" style="left:96px; top:32px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
-
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_goodflag2" ref="/root/main/newmeterialdetail/goodflag" appearance="minimal" editmode="search" style="left:96px; top:56px; width:85px; 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>
- </group>
- <group id="group6" style="left:537px; top:302px; width:658px; height:431px; ">
- <textarea id="tar_smlartymatruseprestcond" ref="/root/main/newmeterialdetail/smlartymatruseprestcond" maxlength="300" style="left:112px; top:86px; width:543px; height:80px; "/>
- <line id="line12" class="line_2" style="x1:2px; y1:329px; x2:657px; y2:329px; "/>
- <textarea id="tar_reqresnusge" ref="/root/main/newmeterialdetail/reqresnusge" maxlength="300" style="left:112px; top:3px; width:543px; height:80px; "/>
- <caption id="caption13" class="cell_1" style="left:2px; top:168px; width:108px; height:80px; text-align:center; vertical-align:middle; ">
- <![CDATA[본원 유사 재료
- 및
- 관련 행위]]>
- </caption>
- <textarea id="tar_anohospusestat" ref="/root/main/newmeterialdetail/anohospusestat" maxlength="300" style="left:112px; top:169px; width:543px; height:80px; "/>
- <caption id="caption15" class="cell_1" style="left:2px; top:336px; width:108px; height:80px; text-align:center; vertical-align:middle; ">비 고</caption>
- <textarea id="tar_newmatrusgeimprvpnt" ref="/root/main/newmeterialdetail/newmatrusgeimprvpnt" maxlength="300" style="left:112px; top:252px; width:543px; height:80px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:83px; x2:655px; y2:83px; "/>
- <caption id="caption16" class="cell_1" style="left:2px; top:251px; width:108px; height:80px; text-align:center; vertical-align:middle; ">
- <![CDATA[현품의 차이점
- 및
- 타병원 사용현황]]>
- </caption>
- <textarea id="tar_reqcmt" ref="/root/main/newmeterialdetail/reqcmt" maxlength="200" style="left:112px; top:337px; width:543px; height:80px; "/>
- <caption id="caption17" class="cell_1" style="left:2px; top:85px; width:108px; height:80px; text-align:center; vertical-align:middle; ">
- <![CDATA[제 품 설 명
- (상세하게 기술)]]>
- </caption>
- <caption id="caption18" class="cell_1" style="left:2px; top:2px; width:108px; height:80px; text-align:center; vertical-align:middle; ">신 청 사 유</caption>
- <line id="line5" class="line_3" style="x1:2px; y1:427px; x2:657px; y2:427px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:166px; x2:655px; y2:166px; "/>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|