1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>(미)불출내역조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <gooddlvrinfo>
- <gooddlvrlist>
- <reqdivs/>
- <dlvrflag/>
- <deptnm/>
- <reqdd/>
- <reqpridflag/>
- <deliveflag/>
- <dinfdivs/>
- <reqflag/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <exchngqty/>
- <reqqty/>
- <rergstqty/>
- <lendqty/>
- <rgstqty/>
- <cmt/>
- <sumqty/>
- <dlvqty/>
- <nodlvqty/>
- <exchngcmt/>
- <devlcmt/>
- <reqtm/>
- <reqpsnnm/>
- <certdt/>
- <certnm/>
- <delivedt/>
- <delivepsnnm/>
- </gooddlvrlist>
- </gooddlvrinfo>
- <disgooddlvrinfo>
- <disgooddlvrlist/>
- </disgooddlvrinfo>
- </main>
- <cond>
- <gooddlvrinfo>
- <instcd/>
- <csrreqdeptcd/>
- <reqdeptcd/>
- <reqfromdd/>
- <reqtodd/>
- <reqpridflag>
- </reqpridflag>
- <deliveflag>1</deliveflag>
- <reqdelrflag>dvr</reqdelrflag>
- <reqoptflag/>
- <reqallopt/>
- <dlvflag>1</dlvflag>
- <goodflag>02</goodflag>
- <data/>
- </gooddlvrinfo>
- <disgooddlvrinfo>
- <instcd/>
- <csrreqdeptcd/>
- <reqdeptcd/>
- <reqfromdd/>
- <reqtodd/>
- <disreqoptflag/>
- <disreqallopt>Y</disreqallopt>
- <goodflag>02</goodflag>
- <data/>
- </disgooddlvrinfo>
- </cond>
- <send>
- <reqdata/>
- </send>
- <init>
- <csrreqdeptlist/>
- <deptcodelist/>
- <csrdeptlist/>
- </init>
- <hidden>
- <csrreqdeptlist/>
- <deptcodelist/>
- <csrdeptlist/>
- <common>
- <instcdinfo/>
- </common>
- </hidden>
- <temp/>
- <tmp>
- <csrreqdeptlist/>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var getDeptcd = opener.javascript.getParameter("deptcd");
-
- model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
- fDeliveflagChg();//청구차수 선택시 상태값 변경
- model.removeNodeset("/root/send/reqdata");
-
- zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
-
- model.setValue("/root/cond/gooddlvrinfo/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/cond/disgooddlvrinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/goodreq/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/goodreq/useyn", "Y");
-
- submit("TRMNG00401");
- copyNodesetType("/root/init/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
- copyNodesetType("/root/hidden/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
- copyNodesetType("/root/tmp/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
- model.removeNodeset("/root/send/goodreq");
-
- addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
- addComboItem( "cmb_discsrreqdeptcd", "전체", "", "above");
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- if(getDeptcd !=""){
- model.makeValue("/root/send/reqdata/deptcd",getDeptcd);
- }else{
- model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- }
- model.makeValue("/root/send/reqdata/refcond", "deptcd");
- submit("TRMNG00303");
- copyNodesetType("/root/init/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
- copyNodesetType("/root/hidden/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
-
- model.setValue("/root/cond/gooddlvrinfo/csrreqdeptcd",model.getValue("/root/init/deptcodelist/csrreqdeptcd2"));
- model.setValue("/root/cond/disgooddlvrinfo/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
- cmb_csrreqdeptcd.refresh();
- cmb_discsrreqdeptcd.refresh();
- model.removeNodeset("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- copyNodesetType("/root/init/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
- copyNodesetType("/root/hidden/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
-
- //전체 조회되도록 수정 by 박영우 2010-03-05
- addComboItem( "cmb_deptcd", "전체", "", "above");
- addComboItem( "cmb_disdeptcd", "전체", "", "above");
- if(getDeptcd !=""){
- model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",getDeptcd);
- model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",getDeptcd);
- }else{
- model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
- model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
- }
- cmb_deptcd.refresh();
- cmb_disdeptcd.refresh();
-
- model.setValue("/root/cond/gooddlvrinfo/reqfromdd",getCurrentDate());
- model.setValue("/root/cond/gooddlvrinfo/reqtodd",getCurrentDate());
- model.setValue("/root/cond/disgooddlvrinfo/reqfromdd",getCurrentDate());
- model.setValue("/root/cond/disgooddlvrinfo/reqtodd",getCurrentDate());
-
-
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/main/gooddlvrinfo/gooddlvrlist");
- model.removeNodeset("/root/main/disgooddlvrinfo/disgooddlvrlist");
-
- model.setValue("/root/cond/gooddlvrinfo/reqallopt", "Y");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/temp/csrreqdeptlist"/>
- <submission id="TRMNG00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/deptcodelist"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/csrdeptlist"/>
- <submission id="TRMNG01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/gooddlvrinfo"/>
- <submission id="TRMNG01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/disgooddlvrinfo"/>
- <submission id="TRMNG00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/tmlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMNG01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/gooddlvrinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
- //불출 및 미불출 내역 조회
- //(srchflag : dvr->불출,dis->미불출)
- function fGoodDvlSearch(srchflag){
-
- fGoodDvlOption(srchflag); //불출 및 미불출에 따른 청구구분 조건
-
- if(srchflag == "dvr"){
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/gooddlvrinfo/instcd"));
- model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/gooddlvrinfo/csrreqdeptcd"));
- model.makeValue("/root/send/reqdata/reqdeptcd" ,model.getValue("/root/cond/gooddlvrinfo/reqdeptcd"));
- model.makeValue("/root/send/reqdata/reqfromdd" ,model.getValue("/root/cond/gooddlvrinfo/reqfromdd"));
- model.makeValue("/root/send/reqdata/reqtodd" ,model.getValue("/root/cond/gooddlvrinfo/reqtodd"));
- model.makeValue("/root/send/reqdata/dlvflag" ,model.getValue("/root/cond/gooddlvrinfo/dlvflag"));
-
- if(model.getValue("/root/cond/gooddlvrinfo/reqpridflag") =="-"){
- model.makeValue("/root/send/reqdata/reqpridflag" ,"");
- }else{
- model.makeValue("/root/send/reqdata/reqpridflag" ,model.getValue("/root/cond/gooddlvrinfo/reqpridflag"));
- }
- model.makeValue("/root/send/reqdata/deliveflag" ,model.getValue("/root/cond/gooddlvrinfo/deliveflag"));
- model.makeValue("/root/send/reqdata/reqdelrflag" ,model.getValue("/root/cond/gooddlvrinfo/reqdelrflag"));
- model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/gooddlvrinfo/goodflag"));
- model.makeValue("/root/send/reqdata/data" ,model.getValue("/root/cond/gooddlvrinfo/data"));
-
- if(submit("TRMNG01701")){
- model.removeNodeset("/root/send/reqdata");
-
- grd_gooddlvrlist.rebuildStyle();
- for(var i= grd_gooddlvrlist.fixedRows ; i < grd_gooddlvrlist.rows; i++ ){
-
- var exchngflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("exchngflag"));
- var reqqtyflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("reqqtyflag"));
- var rergstflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("rergstflag"));
- var lendflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("lendflag"));
- var rgstqtyflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("rgstqtyflag"));
- var sumflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("sumflag"));
-
- if(exchngflag =="N"){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("exchngqty"),i, grd_gooddlvrlist.colRef("exchngqty")) = "#ff9900";
- }
-
- if(reqqtyflag =="N" ){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("reqqty"), i, grd_gooddlvrlist.colRef("reqqty")) = "#ff9900";
- }
- if(rergstflag =="N"){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("rergstqty"), i, grd_gooddlvrlist.colRef("rergstqty")) = "#ff9900";
- }
- if(lendflag =="N"){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("lendqty"), i, grd_gooddlvrlist.colRef("lendqty")) = "#ff9900";
- }
- if(rgstqtyflag =="N"){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("rgstqty"), i, grd_gooddlvrlist.colRef("rgstqty")) = "#ff9900";
- }
- if(sumflag =="N"){
- grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("sumqty"), i, grd_gooddlvrlist.colRef("sumqty")) = "#ff9900";
- }
- }
- }
- }else if(srchflag == "dis"){
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/disgooddlvrinfo/instcd"));
- model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/disgooddlvrinfo/csrreqdeptcd"));
- model.makeValue("/root/send/reqdata/reqdeptcd" ,model.getValue("/root/cond/disgooddlvrinfo/reqdeptcd"));
- model.makeValue("/root/send/reqdata/reqfromdd" ,model.getValue("/root/cond/disgooddlvrinfo/reqfromdd"));
- model.makeValue("/root/send/reqdata/reqtodd" ,model.getValue("/root/cond/disgooddlvrinfo/reqtodd"));
- model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/disgooddlvrinfo/goodflag"));
- model.makeValue("/root/send/reqdata/data" ,model.getValue("/root/cond/disgooddlvrinfo/data"));
- if(submit("TRMNG01702")){
- model.removeNodeset("/root/send/reqdata");
- }
- }
- //model.refresh();
- }
- //청구차수 선택시 상태값 변경
- function fDeliveflagChg(){
- var eryn = model.getValue(chk_eryn.attribute("ref"));
- var std = isSearchString(eryn, "1");
- var er = isSearchString(eryn, "2");
- if(std) {
- cmb_reqpridflag.disabled = false;
- model.setValue(cmb_reqpridflag.attribute("ref"), model.getValue("/root/init/tmlist/reqseqlist/reqseq"));
- cmb_reqpridflag.refresh();
- } else {
- cmb_reqpridflag.disabled = true;
- cmb_reqpridflag.value = "-";
- }
- }
-
- //청구구분 추가 by 박영우 20100201
- function fGoodDvlOption(srchflag) {
- if(srchflag == "dvr") {
- //그리드 초기화
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = true;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = true;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = true;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = true;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = true;
-
- var reqallopt = model.getValue("/root/cond/gooddlvrinfo/reqallopt");
- var reqoptflag = model.getValue("/root/cond/gooddlvrinfo/reqoptflag");
-
- if(reqallopt == "Y") {
- model.makeValue("/root/send/reqdata/reqoptflag", "1 2 3 4 5");
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = false;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = false;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = false;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = false;
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = false;
- } else {
- model.makeValue("/root/send/reqdata/reqoptflag", reqoptflag);
-
- var reqopt = reqoptflag.split(" ");
- var exchnge, req, rergst, lend, rgst; //청구구분: 교환, 청구, 대여, 재멸균, 멸균의뢰
- exchnge = req = rergst = lend = rgst = "N";
-
- for(var i=0; i<reqopt.length; i++) {
- switch(Number(reqopt[i])) {
- case 1:
- exchnge = "Y";
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = false;
- break;
- case 2:
- req = "Y";
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = false;
- break;
- case 3:
- rergst = "Y";
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = false;
- break;
- case 4:
- lend = "Y";
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = false;
- break;
- case 5:
- rgst = "Y";
- grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = false;
- break;
- default: exchnge = req = rergst = lend = rgst = "N"; break;
- }
- }
- }
- } else if(srchflag == "dis") {
- //그리드 초기화
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = true;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = true;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = true;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = true;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = true;
-
- var disreqoptflag = model.getValue("/root/cond/disgooddlvrinfo/disreqoptflag");
- var disreqallopt = model.getValue("/root/cond/disgooddlvrinfo/disreqallopt");
- if(disreqallopt == "Y") {
- model.makeValue("/root/send/reqdata/disreqoptflag", "1 2 3 4 5");
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = false;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = false;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = false;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = false;
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = false;
- } else {
- model.makeValue("/root/send/reqdata/disreqoptflag", disreqoptflag);
-
- var disreqopt = disreqoptflag.split(" ");
- var exchnge, req, rergst, lend, rgst; //청구구분: 교환, 청구, 대여, 재멸균, 멸균의뢰
- exchnge = req = rergst = lend = rgst = "N";
-
-
- for(var i=0; i<disreqopt.length; i++) {
- switch(Number(disreqopt[i])) {
- case 1:
- exchnge = "Y";
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = false;
- break;
- case 2:
- req = "Y";
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = false;
- break;
- case 3:
- rergst = "Y";
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = false;
- break;
- case 4:
- lend = "Y";
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = false;
- break;
- case 5:
- rgst = "Y";
- grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = false;
- break;
- default: exchnge = req = rergst = lend = rgst = "N"; break;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1270" pageheight="780" guideline="1,1242;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1125px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">(미)불출내역조회</caption>
- </group>
- <button id="btn_cncrpatsrch" class="btn_sw" group="tab" selected="true" style="left:3px; top:15px; width:100px; height:22px; ">
- <caption>불출내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case1");
- chk_reqallopt.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:5px; top:40px; width:1239px; height:688px; ">
- <case id="case1">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:3px; top:5px; width:1230px; height:87px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGoodDvlSearch("dvr");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:101px; width:115px; height:13px; ">불출내역조회</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:115px; x2:1233px; y2:115px; "/>
- <select id="chk_eryn" ref="/root/cond/gooddlvrinfo/deliveflag" overflow="visible" appearance="full" cellspacing="70" cols="2" style="left:100px; top:42px; width:190px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- <item>
- <label>응급</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDeliveflagChg();
-
- ]]>
- </script>
- </select>
- <select1 id="cmb_instcd" ref="/root/cond/gooddlvrinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:14px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqfrdd" ref="/root/cond/gooddlvrinfo/reqfromdd" class="input_s_essential" inputtype="date" style="left:810px; top:15px; width:90px; height:19px; text-align:center; "/>
- <caption id="caption20" class="search_name" style="left:240px; top:14px; width:94px; height:17px; ">부서구분 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">청구차수 :</caption>
- <caption id="caption24" class="search_name" style="left:615px; top:15px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption14" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/cond/gooddlvrinfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:330px; top:15px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- copyNodesetType("/root/init/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
- cmb_deptcd.refresh();
- if(getNodesetCount(model,"/root/init/csrdeptlist") == 1 ){
- model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
- }else{
- addComboItem( "cmb_deptcd", "전체", "", "above");
- model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
- }
- model.removeNodeset("/root/send/reqdata");
- fGoodDvlSearch("dvr");
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_gooddlvrlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("개발중","I009");
- ]]>
- </script>
- </button>
- <select1 id="rdo_reqdelrflag" ref="/root/cond/gooddlvrinfo/reqdelrflag" scroll="auto" appearance="full" cols="3" rows="1" overflow="visible" style="left:410px; top:40px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>청구기준</label>
- <value>ref</value>
- </item>
- <item>
- <label>불출기준</label>
- <value>dvr</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var reqdelrflag = rdo_reqdelrflag.value;
- if(reqdelrflag == "ref") {
- grd_gooddlvrlist.caption = "상태^청구구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균\n의뢰^비고^total
수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag";
- } else if(reqdelrflag == "dvr") {
- grd_gooddlvrlist.caption = "상태^불출구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균\n의뢰^비고^total
수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag";
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_indschflag" class="search_name" style="left:325px; top:39px; width:91px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_deptcd" ref="/root/cond/gooddlvrinfo/reqdeptcd" class="combo_s_essential" appearance="minimal" style="left:512px; top:15px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGoodDvlSearch("dvr");
-
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:425px; top:14px; width:90px; height:17px; ">청구부서 :</caption>
- <caption id="caption11" class="search_no_b" style="left:902px; top:17px; width:12px; height:17px; ">~</caption>
- <input id="input3" ref="/root/cond/gooddlvrinfo/reqtodd" class="input_s_essential" inputtype="date" style="left:915px; top:15px; width:90px; height:19px; text-align:center; "/>
- <datagrid id="grd_gooddlvrlist" nodeset="/root/main/gooddlvrinfo/gooddlvrlist" class="datagrid2" caption="상태^불출구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균
의뢰^비고^total
수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag" colsep="^" colwidth="41, 72, 69, 88, 37, 34, 81, 79, 100, 199, 100, 0, 46, 44, 48, 43, 44, 100, 41, 34, 43, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="11" explorerbar="sort" extendlastcol="scroll" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:3px; top:120px; width:1230px; height:560px; ">
- <col disabled="true" ref="reqdivs" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구</label>
- <value>1</value>
- </item>
- <item>
- <label>마감</label>
- <value>2</value>
- </item>
- <item>
- <label>확인</label>
- <value>3</value>
- </item>
- <item>
- <label>불출</label>
- <value>4</value>
- </item>
- <item>
- <label>반납</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="dlvrflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>가스불출</label>
- <value>2</value>
- </item>
- <item>
- <label>추가불출</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="reqdeptnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
- <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- <item>
- <label>3차</label>
- <value>3</value>
- </item>
- <item>
- <label>4차</label>
- <value>4</value>
- </item>
- <item>
- <label>5차</label>
- <value>5</value>
- </item>
- <item>
- <label>응급</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col checkvalue="2,1" disabled="true" ref="deliveflag" type="checkbox"/>
- <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="exchngqty" style="text-align:right; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="rergstqty" style="text-align:right; "/>
- <col ref="lendqty" style="text-align:right; "/>
- <col ref="rgstqty" style="text-align:right; "/>
- <col ref="cmt"/>
- <col ref="sumqty" visibility="hidden" style="text-align:right; "/>
- <col ref="dlvqty" style="text-align:right; "/>
- <col ref="nodlvqty" visibility="hidden" style="text-align:right; "/>
- <col disabled="true" ref="exchngcmt" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>입력에러</label>
- <value>1</value>
- </item>
- <item>
- <label>과량청구</label>
- <value>2</value>
- </item>
- <item>
- <label>공급실수량부족</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="devlcmt" visibility="hidden"/>
- <col ref="reqtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="certdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <col ref="certnm" visibility="hidden" style="text-align:center; "/>
- <col ref="delivedt" format="yyyy-mm-dd hh:nn"/>
- <col ref="delivepsnnm" style="text-align:center; "/>
- <col ref="exchngflag" visibility="hidden"/>
- <col ref="reqqtyflag" visibility="hidden"/>
- <col ref="rergstflag" visibility="hidden"/>
- <col ref="lendflag" visibility="hidden"/>
- <col ref="rgstqtyflag" visibility="hidden"/>
- <col ref="sumflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_gooddlvrlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_reqpridflag" ref="/root/cond/gooddlvrinfo/reqpridflag" appearance="minimal" style="left:145px; top:38px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- <item>
- <label>3차</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" style="left:615px; top:40px; width:94px; height:17px; ">청구구분 :</caption>
- <select id="chk_reqoptflag" ref="/root/cond/gooddlvrinfo/reqoptflag" overflow="visible" appearance="full" cols="5" style="left:750px; top:40px; width:260px; 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>
- <item>
- <label>대여</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var reqoptflag = model.getValue("/root/cond/gooddlvrinfo/reqdelrflag");
- if(reqoptflag != "") chk_reqallopt.value = "";
- ]]>
- </script>
- </select>
- <select id="chk_reqallopt" ref="/root/cond/gooddlvrinfo/reqallopt" overflow="visible" appearance="full" style="left:705px; top:40px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //전체선택 추가
- var reqallopt = model.getValue("/root/cond/gooddlvrinfo/reqallopt");
- if(reqallopt == "Y") {
- chk_reqoptflag.value = "";
- fGoodDvlSearch("dvr");
- }
- ]]>
- </script>
- </select>
- <select1 id="rdo_dlvflag" ref="/root/cond/gooddlvrinfo/dlvflag" appearance="full" cols="2" overflow="visible" style="left:705px; top:17px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>청구</label>
- <value>1</value>
- </item>
- <item>
- <label>불출</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:10px; top:65px; width:106px; height:17px; font-family:돋움체; ">구 분 :</caption>
- <select1 id="rdo_goodflag" ref="/root/cond/gooddlvrinfo/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:70px; width:125px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>01</value>
- </item>
- <item>
- <label>물품명</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_reqdata" ref="/root/cond/gooddlvrinfo/data" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:65px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </case>
- <case id="case3" selected="true">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:72px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:76px; width:119px; height:14px; ">미불출내역조회</caption>
- <datagrid id="grd_disgooddlvrlist" nodeset="/root/main/disgooddlvrinfo/disgooddlvrlist" caption="청구일자^청구부서명^청구
차수^물품코드^물품명^규격^모델^교환^교환^청구^청구^재멸균^재멸균^대여^대여^멸균^멸균^미불출수량^추가
불출^미불출사유^청구일시^청구자^확인자^instcd^reqno^reqseqno^exchngaddqty^lendaddqty^reqaddqty^rgstaddqty^rergstaddqty^nodlvexchngqty^nodlvlendqty^nodlvreqqty^nodlvrgstqty^nodlvrergstqty^reqdpetcd^goodflag^reqflag^deliveunit^reqdivs|청구일자^청구부서명^청구
차수^물품코드^물품명^규격^모델^확인^미불출^확인^미불출^확인^미불출^확인^미불출^확인^미불출^미불출수량^추가
불출^미불출사유^청구일시^청구자^확인자^instcd^reqno^reqseqno^exchngaddqty^lendaddqty^reqaddqty^rgstaddqty^rergstaddqty^nodlvexchngqty^nodlvlendqty^nodlvreqqty^nodlvrgstqty^nodlvrergstqty^reqdpetcd^goodflag^reqflag^deliveunit^reqdivs" colsep="^" colwidth="100, 90, 36, 89, 155, 77, 0, 46, 43, 44, 43, 40, 43, 40, 43, 44, 43, 45, 46, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:2px; top:100px; width:1230px; height:580px; ">
- <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
- <col ref="reqdeptnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- <item>
- <label>3차</label>
- <value>3</value>
- </item>
- <item>
- <label>4차</label>
- <value>4</value>
- </item>
- <item>
- <label>5차</label>
- <value>5</value>
- </item>
- <item>
- <label>응급</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="exchngqty" style="text-align:right; "/>
- <col ref="nodlvexchngqty" style="text-align:right; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="nodlvreqqty" style="text-align:right; "/>
- <col ref="rergstqty" style="text-align:right; "/>
- <col ref="nodlvrergstqty"/>
- <col ref="lendqty" style="text-align:right; "/>
- <col ref="nodlvlendqty" style="text-align:right; "/>
- <col ref="rgstqty" style="text-align:right; "/>
- <col ref="nodlvrgstqty" style="text-align:right; "/>
- <col ref="nodlvqty" style="text-align:right; "/>
- <col ref="addqty" type="input" style="text-align:right; "/>
- <col disabled="true" ref="exchngcmt" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입력에러</label>
- <value>1</value>
- </item>
- <item>
- <label>과량청구</label>
- <value>2</value>
- </item>
- <item>
- <label>공급실수량부족</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="reqtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="certnm" visibility="hidden" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="exchngaddqty" visibility="hidden"/>
- <col ref="lendaddqty" visibility="hidden"/>
- <col ref="reqaddqty" visibility="hidden"/>
- <col ref="rgstaddqty" visibility="hidden"/>
- <col ref="rergstaddqty" visibility="hidden"/>
- <col ref="nodlvexchngqty" visibility="hidden"/>
- <col ref="nodlvlendqty" visibility="hidden"/>
- <col ref="nodlvreqqty" visibility="hidden"/>
- <col ref="nodlvrgstqty" visibility="hidden"/>
- <col ref="nodlvrergstqty" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="reqdivs" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var nodlvqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvqty")));
- var addqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("addqty")));
- var exchngaddqty = 0;
- var lendaddqty = 0;
- var reqaddqty = 0;
- var rgstaddqty = 0;
- var rergstaddqty = 0;
-
- //미불출수량을 가져온다.
- var exchngqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvexchngqty")));
- var reqqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvreqqty")));
- var lendqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvlendqty")));
- var rgstqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvrgstqty")));
- var rergstqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvrergstqty")));
-
- var tmpqty = 0; //임시로 값을 담을 변수
-
- //계산을 위해 값이 없는 변수값의 경우에는 0으로 초기화. 아닌경우에는 그냥 둠.
- if(addqty == "" || addqty == null) {
- addqty = 0;
- }
-
- if(exchngqty == "" || exchngqty == null) {
- exchngqty = 0;
- }
-
- if(reqqty == "" || reqqty == null) {
- reqqty = 0;
- }
-
- if(lendqty == "" || lendqty == null) {
- lendqty = 0;
- }
-
- if(rgstqty == "" || rgstqty == null) {
- rgstqty = 0;
- }
-
- if(rergstqty == "" || rergstqty == null) {
- rergstqty = 0;
- }
-
- if( grd_disgooddlvrlist.col == grd_disgooddlvrlist.colRef("addqty") ) {
- if( parseInt(nodlvqty) < parseInt(addqty) ) {
- messageBox("추가불출은 미불출 수량보다 클 수 없습니다.", "E");
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("addqty")) = 0;
-
- grd_disgooddlvrlist.rowStatus(grd_disgooddlvrlist.row) = "0";
-
- return;
- } else {
- //교환수량이 총 추가불출 수량보다 클경우( 내부적인 추가 교환수량을 불출할 수량 계산함.) 교환이 1순위
- if(exchngqty > 0) {
- if(exchngqty > addqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("exchngaddqty")) = addqty;
-
- } else {
-
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("exchngaddqty")) = exchngqty;
- tmpqty = addqty - exchngqty;
-
- if(tmpqty == 0) {
- return;
- }
-
- if(lendqty > tmpqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = tmpqty;
- } else {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = lendqty;
- tmpqty = tmpqty - lendqty;
-
- if(tmpqty == 0) {
- return;
- }
-
- if(rgstqty > tmpqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = tmpqty;
- } else {
-
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = rgstqty;
- tmpqty = tmpqty - rgstqty;
-
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
-
- }
- }
- }
- } else if(lendqty > 0) {
- if(lendqty > addqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = addqty;
-
- } else {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = lendqty;
- tmpqty = tmpqty - lendqty;
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
-
- }
- } else if(reqqty > 0) {
- if(reqqty > addqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("reqaddqty")) = addqty;
-
- } else {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("reqaddqty")) = reqqty;
- tmpqty = tmpqty - lendqty;
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
-
- }
- } else if(rgstqty > 0) {
- if(lendqty > addqty) {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = addqty;
-
- } else {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = rgstqty;
- tmpqty = tmpqty - lendqty;
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
-
- }
- } else {
- grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = rergstqty;
- }
- }
-
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_disgooddlvrlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGoodDvlSearch("dis");
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/cond/disgooddlvrinfo/reqfromdd" class="input_s_essential" inputtype="date" style="left:780px; top:14px; width:100px; height:19px; text-align:center; "/>
- <select1 id="cmb_disinstcd2" ref="/root/cond/disgooddlvrinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:14px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button7" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("개발중","I009");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:250px; top:14px; width:94px; height:17px; ">부서구분 :</caption>
- <caption id="caption7" class="search_name" style="left:685px; top:14px; width:86px; height:17px; ">청구일자 :</caption>
- <caption id="caption8" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">기관코드 :</caption>
- <line id="line2" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
- <select1 id="cmb_discsrreqdeptcd" ref="/root/cond/disgooddlvrinfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:340px; top:14px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_discsrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- copyNodesetType("/root/hidden/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
- if(getNodesetCount(model,"/root/hidden/csrdeptlist") == 1 ){
- model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
- }else{
- addComboItem( "cmb_disdeptcd", "전체", "", "above");
- model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
- }
- model.removeNodeset("/root/send/reqdata");
- fGoodDvlSearch("dis");
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_no_b" style="left:885px; top:17px; width:12px; height:17px; ">~</caption>
- <input id="input2" ref="/root/cond/disgooddlvrinfo/reqtodd" class="input_s_essential" inputtype="date" style="left:900px; top:14px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption9" class="search_name" style="left:467px; top:14px; width:86px; height:17px; ">청구부서 :</caption>
- <select1 id="cmb_disdeptcd" ref="/root/cond/disgooddlvrinfo/reqdeptcd" class="combo_s_essential" appearance="minimal" style="left:559px; top:14px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGoodDvlSearch("dis");
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_1" style="x1:2px; y1:95px; x2:1232px; y2:95px; "/>
- <caption id="caption13" class="search_name" style="left:615px; top:45px; width:94px; height:17px; ">청구구분 :</caption>
- <select id="chk_disreqoptflag" ref="/root/cond/disgooddlvrinfo/disreqoptflag" overflow="visible" appearance="full" cols="5" style="left:750px; top:45px; width:260px; 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>
- <item>
- <label>대여</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var disreqoptflag = model.getValue("/root/cond/disgooddlvrinfo/disreqoptflag");
- if(disreqoptflag != "") chk_disreqallopt.value = "";
- ]]>
- </script>
- </select>
- <select id="chk_disreqallopt" ref="/root/cond/disgooddlvrinfo/disreqallopt" overflow="visible" appearance="full" style="left:705px; top:45px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var reqallopt = model.getValue("/root/cond/disgooddlvrinfo/disreqallopt");
- if(reqallopt == "Y") {
- chk_disreqoptflag.value = "";
- fGoodDvlSearch("dis");
- }
- ]]>
- </script>
- </select>
- <button id="button2" class="btn5_letter2" style="left:1189px; top:75px; width:42px; height:19px; ">
- <caption>불출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_disgooddlvrlist);
-
- if(updtdata == null) {
- messageBox("변경된 내역이 없습니다.", "E");
- return;
- }
-
- model.makeValue("/root/send/savedata/dlvrlist", updtdata);
-
- if(submit("TXMNG01701")) {
- messageBox("저장되었습니다", "I");
- fGoodDvlSearch("dis");
- }
-
-
-
- ]]>
- </script>
- </button>
- <input id="ipt_disdata" ref="/root/cond/disgooddlvrinfo/data" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:42px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("button6", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_disgoodflag" ref="/root/cond/disgooddlvrinfo/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:45px; width:125px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>01</value>
- </item>
- <item>
- <label>물품명</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="search_name" style="left:10px; top:45px; width:106px; height:17px; font-family:돋움체; ">구 분 :</caption>
- </case>
- </switch>
- <button id="button4" class="btn_sw" group="tab" selected="true" style="left:102px; top:15px; width:118px; height:22px; ">
- <caption>미불출내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case3");
- chk_reqallopt.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|