123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>발주관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <plceord>
- <plceordlist/>
- <plceorddetllist/>
- </plceord>
- <list>
- <goodreq>
- <goodreqmainlist>
- <instcd/>
- <reqdd/>
- <reqno/>
- <reqdeptcd/>
- </goodreqmainlist>
- </goodreq>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <plcefromdd/>
- <plcetodd/>
- <listselect>1</listselect>
- <prcpfromdd/>
- <prcptodd/>
- <emplno/>
- <emplnm/>
- <orderno/>
- <plceordgoodcd/>
- <plceordgoodnm/>
- <prcpgoodcd/>
- <prcpgoodnm/>
- <prcpcd/>
- <plceordmainusedeptcd/>
- <prcpmainusedeptcd/>
- <roomdeptcd/>
- <prcpdeptcd/>
- <prcpdeptnm/>
- <receivedeptcd/>
- <receivedeptnm/>
- <allsizespecid/>
- </search>
- <save>
- <plceordlist/>
- <plceorddetllist/>
- </save>
- <warepop>
- <wareflag/>
- <delivedd/>
- <deliveno/>
- <delivedeptcd/>
- <delivedeptnm/>
- </warepop>
- </send>
- <init/>
- <temp/>
- <tempdata>
- <search>
- <goodcd/>
- <allsize/>
- <goodnm/>
- <instcd/>
- </search>
- <goodresult/>
- </tempdata>
- <plceorddetl>
- <search>
- <instcd/>
- <orderdd/>
- <orderno/>
- <orderseq/>
- </search>
- <result>
- <plceorddetllist/>
- </result>
- </plceorddetl>
- <combotemp>
- <operationcombo>
- <value/>
- <label/>
- </operationcombo>
- <unit/>
- </combotemp>
- <checkbox/>
- <popreq>
- <instcd/>
- <wareflag/>
- <wareflagnm/>
- <delivedd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <saveyn/>
- <openflag/>
- <count/>
- </popreq>
- <popsubdata/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD07601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/plceord"/>
- <submission id="TXRSD07601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSD07605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tempdata/search" add="top" resultref="/root/tempdata/goodresult"/>
- <submission id="TXRSD07602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/plceord" resultref="/root/temp"/>
- <submission id="TRRSD07602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/plceorddetl/search" resultref="/root/plceorddetl/result"/>
- <submission id="TRRSD07606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/combotemp"/>
- <submission id="TXRSD07603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRSD07604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRSD07605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRSD07607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </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" src="../../../mis/purcbaseweb/js/SMRFE00200.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/reqconsweb/js/SMRSD20000.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_plceordlist);
- misfGridInit(grd_plceorddetllist);
-
- misfMsterDetailSet(grd_plceordlist,null, "TRRSD07601" ,"Y","free"); // 화면에서 Grid의 마스터 Detail관계 설정
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- misfComboComCdListMulti("R0450,R0450,R0470,R0460,030M0001", "cmb_plceordmainusedeptcd,cmb_prcpmainusedeptcd,grd_plceordlist.orderstat,grd_plceordlist.reqflag,cmb_wareflag");
-
- cmb_plceordmainusedeptcd.select(0);
- cmb_prcpmainusedeptcd.select(0);
-
- model.setValue("/root/send/search/plcefromdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/search/plcetodd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/search/prcpfromdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/search/prcptodd", getCurrentDate().substr(0,8));
-
- model.setValue("/root/send/search/receivedeptcd", "4020334000"); //수령부서 물류파트기본 설정
- model.setValue("/root/send/search/receivedeptnm", "물류파트");
-
- // model.setValue("/root/send/search/prcpfromdd", "20110101");
- // model.setValue("/root/send/search/prcptodd", "20110101");
-
- //창고출고등록관련
- //misfComboComCdList("",cmb_wareflag); //창고
- model.setValue("/root/send/warepop/delivedd" , getCurrentDate()); //출고일자 설정
-
- submit("TRRSD07606");
-
- rszfComboUnitList(cmb_unit, cmb_instcd.value, "A");
- //misfComboCopyItemSet(cmb_unit, "", grd_plceordlist, "orderunit");
- addComboItem( "cmb_plceordmainusedeptcd", "전체", "", "above");
- model.setValue(cmb_plceordmainusedeptcd.attribute("ref"), "");
-
- misfComboCopyItemSet(cmb_roomdeptcd, "", grd_plceordlist, "roomdeptcd");
- cmb_roomdeptcd.disabled = true;
-
- model.refresh();
- }
- function fGetGoodInfo(pnode, nodename)
- {
- var flag = "Y", rowno = "", wflag = "Y", wrowno = "";
- var codynode = instance1.selectNodes(pnode + "/*");
- var checkFlag = true;
- for (var i = 1; i <= codynode.length ; i++) {
- for(var j=grd_plceordlist.fixedRows; j < grd_plceordlist.rows;j++){
- var srcgoodcd = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodcd");
- var goodcd = grd_plceordlist.valueMatrix(j,grd_plceordlist.colRef("goodcd"));
- var srcallsizespecid = model.getValue(pnode +"/" + nodename + "[" + i + "]/allsizespecid");
- var allsizespecid = grd_plceordlist.valueMatrix(j,grd_plceordlist.colRef("allsizespecid"));
- if (srcgoodcd == goodcd && srcallsizespecid == allsizespecid){
- flag = "N";
- rowno = rowno + ","+j; // 이미 존재하는 코드 check
- //messageBox("물품조회 "+i+"번째에 동일 물품이 존재합니다.", "I");
- }
- }
- if (flag == "Y"){
- var pGoodcd = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodcd" );
- var pAllsizespecid = model.getValue(pnode +"/" + nodename + "[" + i + "]/allsizespecid" );
- var pGoodnm = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodnm" );
- var pGoodspec = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodspec" );
- var pGoodunitcost = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodunitcost" );
- var pProdcmpynm = model.getValue(pnode +"/" + nodename + "[" + i + "]/prodcmpynm" );
- var pPprodcmpycd = model.getValue(pnode +"/" + nodename + "[" + i + "]/pprodcmpycd" );
- var pWinacnt = model.getValue(pnode +"/" + nodename + "[" + i + "]/winacnt" );
- var pWinacntnm = model.getValue(pnode +"/" + nodename + "[" + i + "]/winacntnm" );
- var pPurcunit = model.getValue(pnode +"/" + nodename + "[" + i + "]/purcunit" );
- var pdeliveunit = model.getValue(pnode +"/" + nodename + "[" + i + "]/deliveunit" );
- var pGoodflag = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodflag" );
- var pInstcd = model.getValue(pnode +"/" + nodename + "[" + i + "]/instcd" );
- var pGoodmodel = model.getValue(pnode +"/" + nodename + "[" + i + "]/goodmodel" );
- var pExchqty = model.getValue(pnode +"/" + nodename + "[" + i + "]/exchqty" );
- var pMaincustlastsuplplce = model.getValue(pnode +"/" + nodename + "[" + i + "]/maincustlastsuplplce" );
- var pMaincustlastsuplplcenm = model.getValue(pnode +"/" + nodename + "[" + i + "]/maincustlastsuplplcenm");
- var pwareflag = model.getValue(pnode +"/" + nodename + "[" + i + "]/pwareflag");
- grd_plceordlist.addRow(false);
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("goodcd" )) = pGoodcd;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("allsizespecid" )) = pAllsizespecid;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("goodhngnm" )) = pGoodnm;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("goodspec" )) = pGoodspec;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("acntcd" )) = pWinacnt;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("acntnm" )) = pWinacntnm;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("custcode" )) = pMaincustlastsuplplce;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("custnm" )) = pMaincustlastsuplplcenm;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("orderdd" )) = getCurrentDate().substr(0,8);
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("instcd" )) = pInstcd;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("orderstat" )) = "01";
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("wareflag" )) = pwareflag;
- grd_plceordlist.valueMatrix(grd_plceordlist.row,grd_plceordlist.colRef("orderunit" )) = pdeliveunit;
-
-
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("instcd")) = cmb_instcd.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("reqflag")) = "02";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce2")) = ipt_receivedeptnm.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce4")) = ipt_receivedeptcd.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderdd")) = getCurrentDate().substr(0,8);
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("reqflag")) = "true";
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("orderstat")) = "true";
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "true";
-
- var orderno = ipt_orderno.value;
- if(orderno != ""){
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderno")) = orderno;
- }
- }
- flag = "Y";
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"), grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "true";
- }
- for(var j=grd_plceordlist.rows;j >= 0 ;j--){
- if (grd_plceordlist.valueMatrix(j, grd_plceordlist.colRef("goodcd")) == ""){
- grd_plceordlist.deleteRow(j);
- }
- }
-
- // if (rowno != ""){
- // messageBox("발주내역 "+rowno.substr(1, rowno.length-1)+"번째에 동일 물품이 존재합니다.", "I");
- // checkFlag = false;
- // }
- }
- function fGetGridCellValue(){
- var sRowIdxes = "";
- var iSelectedCnt = grd_plceordlist.selectedCells.length;
- for(var i=0; i<iSelectedCnt; i++){
- var iRowIdx = grd_plceordlist.selectedCells.item(i).row;
- var iRowIdx1 = grd_plceordlist.selectedCells.item(0).row;
- if(!misfGetRowIdxExists(sRowIdxes, iRowIdx)) continue;
- var orderno = model.getValue("/root/main/plceord/plceordlist[" + iRowIdx + "]/orderno");
- var orderno1 = model.getValue("/root/main/plceord/plceordlist[" + iRowIdx1 + "]/orderno");
- }
- if(orderno != orderno1){
- messageBox("거래업체가 두군데 이상", "E008", "");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">발주관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:112px; width:174px; height:13px; ">발주내역</caption>
- <line id="line16" class="line_1" style="x1:0px; y1:129px; x2:1194px; y2:128px; "/>
- <datagrid id="grd_plceordlist" nodeset="/root/main/plceord/plceordlist" caption="__선택^발주일자^발주번호^순번^청구순번^물품코드^물품명^규격^Allsize^발주수량^발주단위^발주상태^청구증^SMS^시행부서^시행부서^수술실방^계정과목^거래처^수령^청구구분^처방량^발주자사번^발주자성명^비고^시행부서^수술실방번호^파일" colsep="^" colwidth="50, 75, 55, 55, 55, 85, 140, 75, 40, 55, 0, 60, 45, 45, 90, 80, 80, 100, 100, 80, 60, 50, 80, 80, 150, 80, 80, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" navindex="15" style="left:0px; top:132px; width:885px; height:608px; ">
- <col checkvalue="1,0" ref="selectstat" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="orderdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orderno" style="text-align:center; "/>
- <col ref="orderseq" style="text-align:center; "/>
- <col ref="seq"/>
- <col disabled="true" ref="goodcd" type="inputbutton"/>
- <col ref="goodhngnm"/>
- <col ref="goodspec"/>
- <col ref="allsizespecid"/>
- <col ref="orderqty" type="input"/>
- <col ref="orderunit" type="output" visibility="hidden"/>
- <col disabled="true" ref="orderstat" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="reqmakeyn" type="output" style="text-align:center; "/>
- <col ref="smstrsmyn" type="output" style="text-align:center; "/>
- <col disabled="true" ref="prcpdeptcd" type="inputbutton"/>
- <col ref="prcpdeptnm" type="output"/>
- <col disabled="true" ref="roomdeptcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acntnm"/>
- <col ref="custnm"/>
- <col ref="workspce2" type="output"/>
- <col disabled="true" ref="reqflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpqty"/>
- <col ref="orderpsnid"/>
- <col ref="name"/>
- <col disabled="true" ref="cmt" type="input"/>
- <col ref="workspce1" visibility="hidden"/>
- <col ref="workspce4" visibility="hidden"/>
- <col ref="roomdeptnm" visibility="hidden"/>
- <col ref="custcode" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="acntchrgtelno" visibility="hidden"/>
- <col ref="rsdhinstcd" visibility="hidden"/>
- <col ref="rsdhreqflag" visibility="hidden"/>
- <col ref="rsdhreqdd" visibility="hidden"/>
- <col ref="rsdhreqno" visibility="hidden"/>
- <col ref="rsdhreqseqno" visibility="hidden"/>
- <col ref="rsdhreqdeptcd" visibility="hidden"/>
- <col ref="wareflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_plceordlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(rbo_select.value == 1){
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") != "selectstat"){
- var rowSt = grd_plceordlist.rowStatus(grd_plceordlist.row);
- if(rowSt == "1" || rowSt == "3"){
- }else{
- //발주내역조회일경우
- model.setValue("/root/plceorddetl/search/instcd",model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/instcd"));
- model.setValue("/root/plceorddetl/search/orderdd",model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/orderdd"));
- model.setValue("/root/plceorddetl/search/orderno",model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/orderno"));
- model.setValue("/root/plceorddetl/search/orderseq",model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/orderseq"));
- submit("TRRSD07602");
-
- //model.copyNode("/root/main/plceord","/root/plceorddetl/result");
- grd_plceorddetllist.nodeset = "/root/plceorddetl/result/plceorddetllist";
- grd_plceorddetllist.refresh();
- grd_plceordlist.dispatch("onmouseup");
-
- for(i = 1 ; i < grd_plceorddetllist.rows ; i++){
- grd_plceorddetllist.cellAttribute("disabled", i ,grd_plceorddetllist.colRef("selectprcp")) = "true";
- }
- }
- }
- }else if(rbo_select.value == 2){
- //처방내역조회일경우
- var goodcd = grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("goodcd"));
- var prcpdeptcd = grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("prcpdeptcd"));
- var roomdeptcd = grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"));
- if(roomdeptcd == ""){
- roomdeptcd = "-";
- }
- var selectoption = "";
- if(goodcd != "") {
- selectoption = "[goodcd = '"+goodcd+"' and prcpdeptcd = '"+prcpdeptcd+"' and roomdeptcd = '"+roomdeptcd+"']";
- }
- //grd_plceorddetllist.attribute("nodeset") = "/root/main/plceord/plceorddetllist" + selectoption;
- grd_plceorddetllist.nodeset = "/root/main/plceord/plceorddetllist" + selectoption;
- //grd_plceorddetllist.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(rbo_select.value == 1){
- //발주내역조회일경우
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "goodcd"){
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- setParameter("paramwinacnt" , "");
- setParameter("paramgoodflag" , "");
- setParameter("paramwareflag" , "");
- setParameter("parammaincustlastsuplplce" , "");
- setParameter("parampurcdmnddd", "");
- modal("SPRSD01100");
-
- var cur_row = grd_plceordlist.row;
- var status = grd_plceordlist.valueMatrix(cur_row, grd_plceordlist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "plceordlist");
-
- fGetGoodInfo("/root/copynode", "plceordlist");
-
-
- //rszfOpenPopUpListByWndName(grd_plceordlist,"","goodcd,allsizespecid,goodhngnm","SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
- //model.resetInstanceNode("/root/tempdata/tempdata");
- // if(model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/goodcd") != ""){
- // model.setValue("/root/tempdata/search/goodcd",model.getValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/goodcd"));
- // model.setValue("/root/tempdata/search/instcd",cmb_instcd.value);
- //
- // submit("TRRSD07605");
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/goodcd", model.getValue("/root/tempdata/tempdata/goodresult[1]/goodcd"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/goodhngnm", model.getValue("/root/tempdata/tempdata/goodresult[1]/goodnm"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/allsizespecid", model.getValue("/root/tempdata/tempdata/goodresult[1]/allsizespecid"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/acntcd", model.getValue("/root/tempdata/tempdata/goodresult[1]/winacnt"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/acntnm", model.getValue("/root/tempdata/tempdata/goodresult[1]/acntnm"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/custcode", model.getValue("/root/tempdata/tempdata/goodresult[1]/maincustlastsuplplce"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/custnm", model.getValue("/root/tempdata/tempdata/goodresult[1]/custnm"));
- // model.setValue("/root/main/plceord/plceordlist["+grd_plceordlist.row+"]/goodspec", model.getValue("/root/tempdata/tempdata/goodresult[1]/goodspec"));
- // }
- grd_plceordlist.refresh();
- }
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "prcpdeptcd"){
- var recv_list = "prcpdeptcd,prcpdeptnm";
- misfOpenPopUpList("02", grd_plceordlist, "", recv_list, cmb_instcd.value, "instcd") ;
-
- if(grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("prcpdeptcd")) == "3070000000"){
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"), grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "false";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "3070200000";
- }else{
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"), grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "true";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "";
- }
-
- grd_plceordlist.refresh();
- }
- }else{
- //처방내역조회일경우
-
- }
-
-
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(rbo_select.value == 1){
- //발주내역조회일경우
- if(event.keyCode == "13"){
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "prcpdeptcd"){
- misfValidationCheck("02", "", "prcpdeptcd,prcpdeptnm", cmb_instcd.value, "instcd" );
- if(grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("prcpdeptcd")).length == 0)
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("prcpdeptcd")) = "";
- if(grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("prcpdeptcd")) == "3070000000"){
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"), grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "false";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "3070200000";
- }else{
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd"), grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "true";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "";
- }
- grd_plceordlist.refresh();
- }else if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "orderqty"){ //Enter키 입력시 한줄밑으로
- if( grd_plceordlist.row+1 == grd_plceordlist.rows ){
- }else{
- grd_plceordlist.row = grd_plceordlist.row + 1;
- grd_plceordlist.editCell();
- grd_plceordlist.dispatch("onrowchanged");
- }
- }
- }
- }else{
- //처방내역조회일경우
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "selectstat"){
- if(rbo_select.value == 2){
- for( var k = 1 ; k < grd_plceorddetllist.rows ; k++ ){
- grd_plceorddetllist.valueMatrix(k, grd_plceorddetllist.colRef("selectprcp")) = 1;
- }
- grd_plceorddetllist.dispatch("xforms-value-changed");
- grd_plceordlist.rowStatus(grd_plceordlist.row) = 1;
- }else{
- var selectstat = grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("selectstat"));
- if(selectstat == "1"){
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderstat")) = "02";
- grd_plceordlist.refresh();
- }else{
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderstat")) = "01";
- grd_plceordlist.refresh();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_plceordlist.colAttribute(grd_plceordlist.col,"ref") == "reqmakeyn"){
- model.setValue("/root/main/list/goodreq/goodreqmainlist/instcd",grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("instcd")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqdd",grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderdd")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqno",grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("reqmakeyn")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqdeptcd",grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce4")));
-
- fPrintReqList();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delapntrgst" class="btn2_letter3" style="left:765px; top:107px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rbo_select.value == "1"){
- var req = messageBox("삭제 하시겠습니까?", "Q003");
- if(req == 6){
- fGetGridCellValue();
- misfGridIUD(grd_plceordlist, "D");
- // for(i = 1 ; i < grd_plceorddetllist.rows ; i++){
- // grd_plceorddetllist.valueMatrix(i, grd_plceorddetllist.colRef("selectprcp")) = "0";
- // grd_plceorddetllist.rowStatus(i) = 2;
- // }
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
- // model.setValue("/root/send/save/plceorddetllist", grd_plceorddetllist.getUpdateData());
- submit("TXRSD07607");
- btn_search.dispatch("DOMActivate");
- }else{
- return;
- }
- }else if(rbo_select.value == "3"){
- misfGridIUD(grd_plceordlist, "D");
- }
- ]]>
- </script>
- </button>
- <button id="btn_addapntrgst" class="btn2_letter3" navindex="14" style="left:711px; top:107px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_receivedeptnm.value == ""){
- messageBox("수령부서 조회되지 않았습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_receivedeptcd");
- return;
- }
-
- messageBox("행추가가 완료되면 물품코드부터 선택하십시오.", "E999", "");
- misfGridIUD(grd_plceordlist,"A");
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("instcd")) = cmb_instcd.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("reqflag")) = "02";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderstat")) = "01";
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce2")) = ipt_receivedeptnm.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce4")) = ipt_receivedeptcd.value;
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderdd")) = getCurrentDate().substr(0,8);
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("reqflag")) = "true";
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("orderstat")) = "true";
- grd_plceordlist.cellAttribute("disabled", grd_plceordlist.row, grd_plceordlist.colRef("roomdeptcd")) = "true";
- ]]>
- </script>
- </button>
- <datagrid id="grd_plceorddetllist" nodeset="/root/main/plceord/plceorddetllist" caption="선택^처방일자^등록번호^환자명^처방량^처방코드^처방자ID^처방자성명^수술실방" colsep="^" colwidth="31, 55, 60, 55, 55, 70, 80, 80, 80, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" navindex="16" style="left:887px; top:132px; width:305px; height:608px; ">
- <col checkvalue="1,0" ref="selectprcp" type="checkbox"/>
- <col ref="prcpdd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="goodqty"/>
- <col ref="prcpcd"/>
- <col ref="rgstrid"/>
- <col ref="rgstrnm"/>
- <col ref="roomdeptnm"/>
- <col ref="roomdeptcd" visibility="hidden"/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrno" visibility="hidden"/>
- <col ref="genrseq" visibility="hidden"/>
- <col ref="workspce1" visibility="hidden"/>
- <col ref="orderdd" visibility="hidden"/>
- <col ref="orderno" visibility="hidden"/>
- <col ref="orderseq" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_plceorddetllist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orderqty = 0;
- var workspce1 = grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("workspce1"));
- for(i = 1 ; i < grd_plceorddetllist.rows ; i++){
- var selectprcp = grd_plceorddetllist.valueMatrix(i, grd_plceorddetllist.colRef("selectprcp"));
- if(selectprcp == "1"){
- orderqty++;
- }
- }
- grd_plceordlist.valueMatrix(grd_plceordlist.row, grd_plceordlist.colRef("orderqty")) = orderqty;
- grd_plceorddetllist.valueMatrix(grd_plceorddetllist.row, grd_plceorddetllist.colRef("workspce1")) = workspce1;
-
- if(grd_plceorddetllist.col == grd_plceorddetllist.colRef("selectprcp")){
- grd_plceordlist.rowStatus(grd_plceordlist.row) = 1;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption14" class="tit_2" style="left:885px; top:112px; width:174px; height:15px; ">발주세부내역</caption>
- <output id="ipt_receivedeptnm" ref="/root/send/search/receivedeptnm" class="output_fix" appearance="output" style="left:551px; top:107px; width:158px; height:19px; "/>
- <input id="ipt_receivedeptcd" ref="/root/send/search/receivedeptcd" class="input_s_essential" disabled="false" navindex="6" style="left:439px; top:107px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_receivedeptcd.value.length == 0)
- ipt_receivedeptnm.value = "";
- else
- misfValidationCheck("02", "", "receivedeptcd,receivedeptnm", cmb_instcd.value, "instcd" );
-
- ipt_receivedeptcd.refresh();
- ipt_receivedeptnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_receivedeptcd" class="icon_search" disabled="false" navindex="13" style="left:532px; top:108px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "receivedeptcd,receivedeptnm";
- misfOpenPopUpList("02", ipt_receivedeptcd,"", recv_list, cmb_instcd.value, "instcd");
-
- ipt_receivedeptcd.refresh();
- ipt_receivedeptnm.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="tit_2" style="left:361px; top:110px; width:85px; height:13px; ">수령부서 :</caption>
- <select id="chk_allselect" ref="/root/checkbox" visibility="hidden" overflow="visible" appearance="full" style="left:25px; top:137px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_allselect.value == "1"){
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- grd_plceordlist.rowStatus(i) = 2;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderstat")) = "02";
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("selectstat")) = "1";
- }
- }else{
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- grd_plceordlist.rowStatus(i) = 2;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderstat")) = "01";
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("selectstat")) = "0";
- }
- }
- grd_plceordlist.refresh();
- ]]>
- </script>
- </select>
- <button id="button3" class="btn2_letter4" style="left:819px; top:107px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rbo_select.value == "1"){
- var req = messageBox("전체 삭제 하시겠습니까?", "Q003");
- if(req == 6){
- // misfGridIUD(grd_plceordlist, "D");
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- // grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("selectprcp")) = "0";
- grd_plceordlist.rowStatus(i) = 4;
- }
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
- // model.setValue("/root/send/save/plceorddetllist", grd_plceorddetllist.getUpdateData());
- submit("TXRSD07607");
- btn_search.dispatch("DOMActivate");
- }else{
- return;
- }
- }else if(rbo_select.value == "3"){
- misfGridIUD(grd_plceordlist, "D");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1000px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i < grd_plceordlist.rows ; i++)
- {
- var orderqty = grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderqty"));
- if(orderqty == "" || orderqty == 0){ //발주수량이 빈칸이 거나 0일경우
- messageBox(i+"행 발주수량 확인바랍니다.", "E999", "");
- return;
- }
- }
-
- var selectoption = "[selectprcp = '1']";
- grd_plceorddetllist.nodeset = "/root/main/plceord/plceorddetllist" + selectoption;
- grd_plceorddetllist.refresh();
-
- // for(i = 1 ; i < grd_plceorddetllist.rows ; i++){
- // grd_plceorddetllist.rowStatus(i) = 2;
- // }
-
- grd_plceordlist.sort(1, grd_plceordlist.colRef("custcode"), grd_plceordlist.rows-1, grd_plceordlist.colRef("custcode")) = "asc";
- grd_plceordlist.gridToInstance();
- if(rbo_select.value == 3){
- for( var j = 1 ; j < grd_plceordlist.rows ; j++ ){
- var orderqty = grd_plceordlist.valueMatrix(j, grd_plceordlist.colRef("orderqty"));
- if(parseInt(orderqty) > 0){
- grd_plceordlist.rowStatus(j) = 1;
- }
- }
- }
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
- if(rbo_select.value == 2){
- for( var k = 1 ; k < grd_plceorddetllist.rows ; k++ ){
- var selectprcp = grd_plceorddetllist.valueMatrix(k, grd_plceorddetllist.colRef("selectprcp"));
- if(selectprcp == 1){
- grd_plceorddetllist.rowStatus(k) = 2;
- }
- }
- model.setValue("/root/send/save/plceorddetllist", grd_plceorddetllist.getUpdateData());
- }else{
- model.setValue("/root/send/save/plceorddetllist", "");
- }
-
- if(submit("TXRSD07601")){
- if(rbo_select.value == 1){
- //발주내역조회일경우
- btn_search.dispatch("DOMActivate");
- }else{
- //처방내역조회일경우
- model.setValue("/root/send/search/plcefromdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/search/plcetodd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/search/orderno", "");
- model.setValue("/root/send/search/plceordgoodcd", "");
- model.setValue("/root/send/search/plceordmainusedeptcd",model.getValue("/root/send/search/prcpmainusedeptcd"));
- switch1.refresh();
- rbo_select.value = "1";
- caption2.visible = true;
- caption13.visible = false;;
-
- btn_addapntrgst.visible = true;
- btn_delapntrgst.visible = true;
-
- caption16.visible = false;
-
- model.toggle("plceord");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_upload" class="btn4_letter3" style="left:1057px; top:3px; width:68px; height:22px; ">
- <caption>업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var orderstatchk = 0;
- var rowstatchk = 0;
- for(var i = 1 ; i < grd_plceordlist.rows ; i++)
- {
- var orderstat = grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderstat"));
- var rowStat = grd_plceordlist.rowStatus(i);
- if(parseInt(orderstat) > 02){ //발주상태 완료이상일 경우
- orderstatchk++;
- messageBox(i+"행 발주상태가 완료이상이라 업로드가 불가능합니다.", "E999", "");
- return;
- }
- if(rowStat != 0){ //입력,수정,삭제중인 ROW가 있을경우
- rowstatchk++;
- messageBox("입력,수정,삭제중인 경우 업로드가 불가능합니다. ["+i+"행]", "E999", "");
- return;
- }
- }
-
- for(var i = 1 ; i < grd_plceordlist.rows ; i++)
- {
- grd_plceordlist.rowStatus(i) = 2;
- //grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderstat")) = "02";
- model.setValue("/root/main/plceord/plceordlist["+i+"]/orderstat", "02");
- }
-
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
-
- if(submit("TXRSD07603")){
- btn_plceordsearch.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="12" visibility="hidden" style="left:165px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_plceordlist);
- misfGridInit(grd_plceorddetllist);
- misfMsterDetailRetrieve();
- if(rbo_select.value == 1){
- //발주내역조회일경우
- }else{
- //처방내역조회일경우
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- //grd_plceordlist.rowStatus(i) = 1;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderdd")) = getCurrentDate().substr(0,8);
- grd_plceordlist.cellAttribute("disabled", i ,grd_plceordlist.colRef("cmt")) = "false";
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:1126px; top:3px; width:56px; height:22px; ">
- <caption>SMS</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var req = messageBox("새로 입력중이거나 수정중인 자료는 적용이 되지 않을수도 있습니다.\n", "Q003");
- if(req != 6){
- return;
- }
-
- for(var i = 1 ; i < grd_plceordlist.rows ; i++){
- grd_plceordlist.rowStatus(i) = 2;
- }
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
- if(submit("TXRSD07604")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_fInitialize" class="btn4_letter3" style="left:930px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="btn_madd" style="left:0px; top:47px; width:1195px; height:98px; vertical-align:top; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:4px; width:100px; height:13px; ">발주내역조회</caption>
- <caption id="caption13" class="tit_2" visibility="hidden" style="left:5px; top:4px; width:100px; height:13px; ">처방내역조회</caption>
- <switch id="switch1" style="left:0px; top:25px; width:1195px; height:70px; ">
- <case id="plceord" selected="true">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1193px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" navindex="-1" appearance="minimal" style="left:90px; top:10px; width:170px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_fixasetlist);
- misfGridInit(grd_rfchprvnlist);
- // rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
- //rszfLMSComboList(pGood_flag, pLrgcd, pMdlcd, pControl_name, pGrid_id, pLMSflag, pAllflag, pResultFlag){
- // rszfLMSComboList("EQ", "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
- cmb_mdlcd_search.value='';
- model.refresh();
-
- //이현민
- /*if(cmb_instcd.value =="012") {
- rbo_inventoryflag.value = "Y";
- }else{
- rbo_inventoryflag.value = "A";
- }*/
- ]]>
- </script>
- </select1>
- <caption id="cap_mngtdeptcd" class="search_name" style="left:5px; top:38px; width:86px; height:17px; ">사용부서 :</caption>
- <caption id="cap_instcd_search" class="search_name" style="left:265px; top:10px; width:90px; height:17px; ">발주일자 :</caption>
- <caption id="caption4" style="left:437px; top:12px; width:15px; height:20px; ">~</caption>
- <caption id="caption5" class="search_name" style="left:265px; top:38px; width:90px; height:17px; ">물품코드 :</caption>
- <input id="ipt_plcetodd" ref="/root/send/search/plcetodd" navindex="0" inputtype="date" format="yyyy-mm-dd" style="left:450px; top:10px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- ipt_plcetodd.value = ipt_plcetodd.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <input id="ipt_plceordgoodcd" ref="/root/send/search/plceordgoodcd" style="left:350px; top:38px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_plceordgoodcd.value.length == 0)
- ipt_plceordgoodnm.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_plceordgoodcd.attribute("ref")) ,"","plceordgoodcd,plceordgoodnm",
- ipt_plceordgoodcd,"SPRSD00210","instcd","cmb_instcd");
- ipt_plceordgoodcd.refresh();
- ipt_plceordgoodnm.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_orderno" ref="/root/send/search/orderno" style="left:635px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_plcefromdd" ref="/root/send/search/plcefromdd" navindex="-2" inputtype="date" format="yyyy-mm-dd" style="left:350px; top:10px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- ipt_plcefromdd.value = ipt_plcefromdd.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_plceordsearch" class="btn1_letter2" navindex="11" style="left:1010px; top:24px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_plcefromdd.value.length != 8){
- messageBox("발주일자가 비었거나 잘못되었습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_plcefromdd");
- return;
- }
- // if(ipt_plcetodd.value.length != 8){
- // messageBox("발주일자가 비었거나 잘못되었습니다. 확인해주십시오.", "E999", "");
- // model.setFocus("ipt_plcetodd");
- // return;
- // }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:995px; y1:10px; x2:995px; y2:60px; border-color:#ffd799; "/>
- <select1 id="cmb_plceordmainusedeptcd" ref="/root/send/search/plceordmainusedeptcd" appearance="minimal" style="left:90px; top:38px; width:170px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_goodcd" ref="/root/tempdata/search/goodcd" visibility="hidden" style="left:730px; top:25px; width:100px; height:19px; "/>
- <select1 id="cmb_reqflag" visibility="hidden" appearance="minimal" style="left:775px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_goodnm" ref="/root/tempdata/search/goodnm" visibility="hidden" style="left:765px; top:40px; width:100px; height:19px; "/>
- <input id="input1" ref="/root/tempdata/search/allsize" visibility="hidden" style="left:715px; top:10px; width:100px; height:19px; "/>
- <select1 id="cmb_unit" ref="/root/combotemp/unit" visibility="hidden" appearance="minimal" style="left:745px; top:40px; width:100px; height:20px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_plceordgoodnm" ref="/root/send/search/plceordgoodnm" style="left:533px; top:38px; width:192px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_plceordgoodnm.value.length == 0)
- ipt_plceordgoodcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodnm",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_plceordgoodnm.attribute("ref")) ,"","plceordgoodcd,plceordgoodnm",
- ipt_plceordgoodnm,"SPRSD00210","instcd","cmb_instcd");
- ipt_plceordgoodcd.refresh();
- ipt_plceordgoodnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_plceordgoodcd" class="icon_search" style="left:513px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_plceordgoodcd,"","plceordgoodcd,allsizespecid,plceordgoodnm","SPRSD00210","instcd","cmb_instcd,");
- ipt_plceordgoodcd.refresh();
- ipt_plceordgoodnm.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:550px; top:10px; width:90px; height:17px; ">발주번호 :</caption>
- <button id="btn_req" class="btn4_letter5" style="left:1085px; top:25px; width:92px; height:22px; ">
- <caption>청구증생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rbo_select.value == "1"){
- // if(ipt_orderno.value == ""){
- // messageBox("발주번호로 조회 후에 청구증생성을 눌러주십시오.", "E999", "");
- // return;
- // }
- var row = grd_plceordlist.rows;
- for(i = 1 ; i < row ; i++){
- var reqmakeyn = grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("reqmakeyn"));
- if(reqmakeyn != "N"){
- messageBox("이미 청구증이 생선된 자료가 있습니다.", "E999", "");
- return;
- }
- var orderno2 = model.getValue("/root/main/plceord/plceordlist[" + i + "]/orderno");
- var orderno3 = grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("orderno"));
- }
- if(orderno2 == orderno3){
- for(i = 1 ; i < row ; i++){
- grd_plceordlist.rowStatus(i) = 2;
- }
- }else{
- messageBox("거래업체가 두군데 이상", "E008", "");
- }
- model.setValue("/root/send/save/plceordlist", grd_plceordlist.getUpdateData());
- if(submit("TXRSD07605")){
- btn_plceordsearch.dispatch("DOMActivate");
- var reqmakeyn = grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("reqmakeyn"));
- if(reqmakeyn != "N"){
- if(messageBox("청구 불출서를 출력 하시겠습니까?" ,"Q") == "6") {
- model.setValue("/root/main/list/goodreq/goodreqmainlist/instcd",grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("instcd")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqdd",grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("orderdd")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqno",grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("reqmakeyn")));
- model.setValue("/root/main/list/goodreq/goodreqmainlist/reqdeptcd",grd_plceordlist.valueMatrix(1, grd_plceordlist.colRef("workspce4")));
-
- fPrintReqList();
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="prcp">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1193px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_prcpcd" ref="/root/send/search/prcpcd" navindex="4" visibility="hidden" style="left:670px; top:40px; width:68px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:885px; top:10px; width:117px; height:17px; ">수술실방번호 :</caption>
- <caption id="caption1" class="search_name" style="left:5px; top:40px; width:87px; height:17px; ">물품코드 :</caption>
- <caption id="caption11" class="search_name" visibility="hidden" style="left:660px; top:40px; width:42px; height:17px; ">처방코드 :</caption>
- <select1 id="cmb_roomdeptcd" ref="/root/send/search/roomdeptcd" navindex="7" appearance="minimal" style="left:997px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/combotemp/operationcombo">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:725px; top:40px; width:27px; height:17px; ">사원번호 :</caption>
- <caption id="caption3" class="search_name" style="left:240px; top:10px; width:85px; height:17px; ">처방일자 :</caption>
- <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" disabled="true" navindex="9" visibility="hidden" style="left:794px; top:38px; width:16px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" navindex="8" visibility="hidden" style="left:745px; top:38px; width:25px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- if(model.getValue("/root/send/search/emplnm") != "")
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- if(model.getValue("/root/send/search/emplnm") != "")
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" visibility="hidden" style="left:774px; top:38px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.refresh();
- if(model.getValue("/root/send/search/emplnm") != "")
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_prcptodd" ref="/root/send/search/prcptodd" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:425px; top:10px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- ipt_prcptodd.value = ipt_prcptodd.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_prcpfromdd" ref="/root/send/search/prcpfromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:325px; top:10px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- ipt_prcpfromdd.value = ipt_prcpfromdd.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" style="left:412px; top:10px; width:15px; height:20px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">사용부서 :</caption>
- <input id="ipt_prcpgoodcd" ref="/root/send/search/prcpgoodcd" navindex="1" style="left:90px; top:38px; width:140px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prcpgoodcd.value.length == 0)
- ipt_prcpgoodnm.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_prcpgoodcd.attribute("ref")) ,"","prcpgoodcd,prcpgoodnm",
- ipt_prcpgoodcd,"SPRSD00210","instcd","cmb_instcd");
- ipt_prcpgoodcd.refresh();
- ipt_prcpgoodnm.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_prcpgoodnm" ref="/root/send/search/prcpgoodnm" navindex="1" style="left:251px; top:38px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prcpgoodnm.value.length == 0)
- ipt_prcpgoodcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_prcpgoodnm.attribute("ref")) ,"","prcpgoodcd,prcpgoodnm",
- ipt_prcpgoodcd,"SPRSD00210","instcd","cmb_instcd");
- ipt_prcpgoodcd.refresh();
- ipt_prcpgoodnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_prcpgoodcd" class="icon_search" style="left:233px; top:39px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prcpgoodcd,"","prcpgoodcd,allsizespecid,prcpgoodnm","SPRSD00210","instcd","cmb_instcd,");
- ipt_prcpgoodcd.refresh();
- ipt_prcpgoodnm.refresh();
- ]]>
- </script>
- </button>
- <line id="line12" class="line_4" style="x1:1121px; y1:10px; x2:1121px; y2:60px; border-color:#ffd799; "/>
- <button id="btn_prcpsearch" class="btn1_letter2" navindex="10" style="left:1130px; top:24px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_prcpfromdd.value.length != 8){
- messageBox("상세내역조회 발주일자가 비었거나 잘못되었습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_prcpfromdd");
- return;
- }
- if(ipt_prcptodd.value.length != 8){
- messageBox("상세내역조회 발주일자가 비었거나 잘못되었습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_prcptodd");
- return;
- }
- if(ipt_receivedeptnm.value == ""){
- messageBox("수령부서 조회되지 않았습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_receivedeptcd");
- return;
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_prcpmainusedeptcd" ref="/root/send/search/prcpmainusedeptcd" navindex="5" appearance="minimal" style="left:90px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <output id="ipt_prcpdeptnm" ref="/root/send/search/prcpdeptnm" class="output_fix" appearance="output" style="left:722px; top:10px; width:148px; height:19px; "/>
- <button id="btn_prcpdeptcd" class="icon_search" disabled="false" navindex="13" style="left:703px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "prcpdeptcd,prcpdeptnm";
- misfOpenPopUpList("02", ipt_prcpdeptcd,"", recv_list, cmb_instcd.value, "instcd");
-
- ipt_prcpdeptcd.refresh();
- ipt_prcpdeptnm.refresh();
- if(ipt_prcpdeptcd.value == "3070000000"){
- cmb_roomdeptcd.disabled = false;
- cmb_roomdeptcd.select(0);
- cmb_roomdeptcd.refresh();
- }else{
- cmb_roomdeptcd.disabled = true;
- cmb_roomdeptcd.value = "";
- cmb_roomdeptcd.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_prcpdeptcd" ref="/root/send/search/prcpdeptcd" class="input_s_essential" disabled="false" navindex="6" style="left:610px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prcpdeptcd.value.length == 0)
- ipt_prcpdeptnm.value = "";
- else
- misfValidationCheck("02", "", "prcpdeptcd,prcpdeptnm", cmb_instcd.value, "instcd" );
-
- ipt_prcpdeptcd.refresh();
- ipt_prcpdeptnm.refresh();
- if(ipt_prcpdeptcd.value == "3070000000"){
- cmb_roomdeptcd.disabled = false;
- cmb_roomdeptcd.select(0);
- cmb_roomdeptcd.refresh();
- }else{
- cmb_roomdeptcd.disabled = true;
- cmb_roomdeptcd.value = "";
- cmb_roomdeptcd.refresh();
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption15" class="search_name" style="left:520px; top:10px; width:95px; height:17px; ">시행부서 :</caption>
- </case>
- <case id="ware">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1193px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1086px; y1:10px; x2:1086px; y2:60px; border-color:#ffd799; "/>
- <button id="button1" class="btn1_letter5" navindex="10" style="left:1095px; top:24px; width:92px; height:22px; ">
- <caption>청구 data</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_receivedeptnm.value == ""){
- messageBox("수령부서 조회되지 않았습니다. 확인해주십시오.", "E999", "");
- model.setFocus("ipt_receivedeptcd");
- return;
- }
-
- //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
- if(cmb_wareflag.value == "") {
- messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
- model.setFocus("cmb_wareflag");
- return;
- }
-
- // //출고일자에 선택된 값이 없으면, 출고일자를 선택하라고 alert함
- // if(ipt_delivedd.value.length < 8) {
- // messageBox("출고일자가 올바로 선택되지 않았습니다. \n\n먼저 출고일자를 선택하십시요.", "E999", "");
- // model.setFocus("ipt_delivedd");
- // return;
- // }
-
- // //출고부서에 선택된 값이 없으면, 출고부서를 선택하라고 alert함
- // if(ipt_delivedeptcd.value == "") {
- // messageBox("출고부서가 선택되지 않았습니다. \n\n먼저 출고부서를 선택하십시요.", "E999", "");
- // model.setFocus("ipt_delivedeptcd");
- // return;
- // }
-
- //출고부서명에 값이 없으면, 출고부서를 선택하라고 alert함 - 2013.02.26 박준범
- if(opt_delivedeptnm.value == "") {
- messageBox("출고부서가 정확하게 선택되지 않았습니다. \n\n먼저 출고부서를 선택하십시요.", "E999", "");
- model.setFocus("ipt_delivedeptcd");
- return;
- }
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popreq/instcd", cmb_instcd.value);
- model.setValue("/root/popreq/wareflag", cmb_wareflag.value);
- model.setValue("/root/popreq/wareflagnm", cmb_wareflag.label);
- model.setValue("/root/popreq/delivedd", ipt_delivedd.value);
- model.setValue("/root/popreq/reqdeptcd", ipt_delivedeptcd.value);
- model.setValue("/root/popreq/reqdeptnm", opt_delivedeptnm.value);
- model.setValue("/root/popreq/openflag", "SMRSD07600");
- //saveyn(popup 창에서 저장버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- model.setValue("/root/popreq/saveyn", "");
-
- //갯수초기화
- model.setValue("/root/popreq/count", 0);
-
- //popup 프로그램 호출
- window.load("SPRSO20200.xrw", "modal","", "", "/root/popreq","/root/popdata");
-
- var cnt = model.getValue("/root/popreq/count");
- var mrows = grd_plceordlist.rows;
- var mcnt = parseInt(mrows)+parseInt(cnt);
- var j = 1;
- for(i = mrows ; i <= mcnt-1 ; i++){
- misfGridIUD(grd_plceordlist,"A");
- grd_plceordlist.rowStatus(i) = 0;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("instcd")) = cmb_instcd.value;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("reqflag")) = "02";
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderstat")) = "01";
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("workspce2")) = ipt_receivedeptnm.value;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("workspce4")) = ipt_receivedeptcd.value;
- grd_plceordlist.valueMatrix(i, grd_plceordlist.colRef("orderdd")) = getCurrentDate().substr(0,8);
- grd_plceordlist.cellAttribute("disabled", i, grd_plceordlist.colRef("reqflag")) = "true";
- grd_plceordlist.cellAttribute("disabled", i, grd_plceordlist.colRef("orderstat")) = "true";
- grd_plceordlist.cellAttribute("disabled", i, grd_plceordlist.colRef("roomdeptcd")) = "true";
- model.setValue("/root/main/plceord/plceordlist["+i+"]/goodcd", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/goodcd")); //물품코드
- model.setValue("/root/main/plceord/plceordlist["+i+"]/goodhngnm", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/goodnm")); //물품명
- model.setValue("/root/main/plceord/plceordlist["+i+"]/orderqty", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/deliveqty")); //발주수량
- model.setValue("/root/main/plceord/plceordlist["+i+"]/custcode", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/custcode")); //거래처코드
- model.setValue("/root/main/plceord/plceordlist["+i+"]/custnm", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/custnm")); //거래처명
- model.setValue("/root/main/plceord/plceordlist["+i+"]/allsizespecid", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/allsizespecid")); //allsize
- model.setValue("/root/main/plceord/plceordlist["+i+"]/goodspec", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/goodspec")); //규격
- model.setValue("/root/main/plceord/plceordlist["+i+"]/acntcd", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/acntcd")); //계정과목
- model.setValue("/root/main/plceord/plceordlist["+i+"]/acntnm", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/acntnm")); //계정과목명
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhinstcd", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/instcd")); //청구 기관코드
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhreqflag", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/reqflag")); //청구 물품구분
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhreqdd", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/reqdd")); //청구 청구일자
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhreqno", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/reqno")); //청구 청구번호
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhreqseqno", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/reqseqno")); //청구 청구일련번호
- model.setValue("/root/main/plceord/plceordlist["+i+"]/rsdhreqdeptcd", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/reqdeptcd")); //청구 청구부서
- model.setValue("/root/main/plceord/plceordlist["+i+"]/seq", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/seq")); //청구순번
- model.setValue("/root/main/plceord/plceordlist["+i+"]/orderunit", model.getValue("/root/popsubdata/reqdetaillist["+j+"]/deliveunit")); //청구순번
- j++;
- }
- grd_plceordlist.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_delivedeptcd" ref="/root/send/warepop/delivedeptcd" class="input_default" navindex="2" style="left:315px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //2013.02.26 박준범 : 부서코드 변경시 부서코드명을 먼저 지워준다.
- opt_delivedeptnm.value = "";
-
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("ipt_delivedeptcd", "xforms-value-changed");
- ]]>
- </script>
- </input>
- <button id="btn_delivedeptcd" class="icon_search" navindex="3" style="left:387px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vOrigDeptcd = ipt_delivedeptcd.value; //popup을 열기전 부서 저장
-
- var recv_list = "delivedeptcd,delivedeptnm";
- misfOpenPopUpList("02", ipt_delivedeptcd,"", recv_list) ;
- ipt_delivedeptcd.refresh();
- opt_delivedeptnm.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_delivedeptnm" ref="/root/send/warepop/delivedeptnm" class="output_fix" appearance="output" style="left:405px; top:10px; width:126px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:11px; top:10px; width:64px; height:17px; ">창고:</caption>
- <select1 id="cmb_wareflag" ref="/root/send/warepop/wareflag" class="combo_default" navindex="4" appearance="minimal" style="left:65px; top:10px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wareflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <input id="ipt_delivedd" ref="/root/send/warepop/delivedd" navindex="5" visibility="hidden" inputtype="date" style="left:640px; top:10px; width:89px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <input id="ipt_deliveno" ref="/root/send/warepop/deliveno" class="input_default" disabled="true" navindex="6" visibility="hidden" maxbyte="4" style="left:730px; top:10px; width:32px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 출고번호를 disabled 했기 때문에 아래 script 수행되지 않기에 모두 comment처리
-
- var vDeliveno = model.getValue("/root/send/search/deliveno");
-
- //입력된 값이 없으면 return
- if( vDeliveno.length == 0 ) return;
-
- if (!vDeliveno.isNumber()) {
- messageBox("번호(숫자)를 " ,"C001");
- model.setFocus("ipt_deliveno");
- return;
- }
-
-
- //입력된 값이 숫자인 경우만 아래 실행
- //setInputNodeCurText(); //input의 ref 노드에 현재 label setValue (tfHelper.js)
- vDeliveno = model.getValue("/root/send/search/deliveno").getLeftPad(4,"0");
- model.setValue("/root/send/search/deliveno", vDeliveno);
- model.refreshpart("/root/send/search/deliveno");
-
- */
- ]]>
- </script>
- </input>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:560px; top:10px; width:85px; height:17px; ">청구일자:</caption>
- <caption id="caption20" class="search_name" style="left:235px; top:10px; width:87px; height:17px; vertical-align:middle; ">청구부서:</caption>
- </case>
- </switch>
- <select1 id="rbo_select" ref="/root/send/search/listselect" appearance="full" cols="3" overflow="visible" style="left:110px; top:6px; width:370px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>발주내역조회</label>
- <value>1</value>
- </item>
- <item>
- <label>처방내역조회</label>
- <value>2</value>
- </item>
- <item>
- <label>청구내역조회</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chk = 0;
- var selectvalue = rbo_select.value;
- for(i = 1 ; i < grd_plceordlist.rows ; i++){
- if(grd_plceordlist.rowStatus(i) == 1){
- chk++;
- }
- }
- if(chk != 0){
- var req = messageBox("저장하지 않은 자료는 지워집니다..", "Q003");
- if(req == 6){
-
- }else{
- if(selectvalue == "1"){
- rbo_select.value = 2;
- }else{
- rbo_select.value = 1;
- }
- return;
- }
- }
- misfGridInit(grd_plceordlist);
- misfGridInit(grd_plceorddetllist);
-
- if(rbo_select.value == 1){
- caption2.visible = true;
- caption13.visible = false;
- model.toggle("plceord");
-
- btn_addapntrgst.visible = true;
- btn_delapntrgst.visible = true;
-
- caption16.visible = false;
- //chk_allselect.visible = true;
- btn_upload.visible = true;
- grd_plceordlist.colWidth(grd_plceordlist.colRef("selectstat")) = "50";
- grd_plceordlist.caption = "__선택^발주일자^발주번호^순번^청구순번^물품코드^물품명^규격^Allsize^발주수량^발주단위^발주상태^청구증^SMS^시행부서^시행부서^수술실방^계정과목^거래처^수령^청구구분^처방량^발주자사번^발주자성명^비고^시행부서^수술실방번호^파일";
- grd_plceordlist.refresh();
- }else if(rbo_select.value == 2){
- caption13.visible = true;
- caption2.visible = false;
- model.toggle("prcp");
-
- btn_addapntrgst.visible = false;
- btn_delapntrgst.visible = false;
-
- caption16.visible = true;
- //chk_allselect.visible = false;
- btn_upload.visible = false;
- //grd_plceordlist.colWidth(grd_plceordlist.colRef("selectstat")) = "0";
- grd_plceordlist.caption = "선택^발주일자^발주번호^순번^청구순번^물품코드^물품명^규격^Allsize^발주수량^발주단위^발주상태^청구증^SMS^시행부서^시행부서^수술실방^계정과목^거래처^수령^청구구분^처방량^발주자사번^발주자성명^비고^시행부서^수술실방번호^파일";
- grd_plceordlist.refresh();
- }else{
- caption2.visible = true;
- caption13.visible = false;
- model.toggle("ware");
-
- btn_addapntrgst.visible = false;
- btn_delapntrgst.visible = true;
-
- caption16.visible = false;
- //chk_allselect.visible = true;
- btn_upload.visible = true;
- grd_plceordlist.colWidth(grd_plceordlist.colRef("selectstat")) = "50";
- grd_plceordlist.caption = "__선택^발주일자^발주번호^순번^청구순번^물품코드^물품명^규격^Allsize^발주수량^발주단위^발주상태^청구증^SMS^시행부서^시행부서^수술실방^계정과목^거래처^수령^청구구분^처방량^발주자사번^발주자성명^비고^시행부서^수술실방번호^파일";
- grd_plceordlist.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption16" visibility="hidden" style="left:545px; top:5px; width:650px; height:20px; font-weight:bold; color:#ff0000; ">※ 발주세부내역 조회건이 10,000건이 넘을 경우 에러메시지가 나올 수 있습니다. 조회조건을 더 넣어주세요.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|