1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237 |
- <?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>
- <lnrqinfo>
- <lnrqlist>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodunit/>
- <reqcnt/>
- <reqid/>
- <outcnt/>
- <outid/>
- <stockcnt/>
- <remark1/>
- <reqdd/>
- <deptcd/>
- <ioflag/>
- <instcd/>
- <deptnm/>
- <reqnm/>
- <outnm/>
- </lnrqlist>
- <csrdeptlist/>
- </lnrqinfo>
- <cond>
- <reqfromdd/>
- <deptcd/>
- <instcd/>
- <lowdept/>
- <reqtodd/>
- </cond>
- <csrdeptlist/>
- <possmenucnt/>
- <possmenulist/>
- </main>
- <send>
- <reqfromdd/>
- <deptcd/>
- <rexport/>
- <grupid/>
- <gubuncd>01</gubuncd>
- <cdid/>
- <lowflag/>
- <cdgrupid>T64</cdgrupid>
- <lnrqflag/>
- <reqtodd/>
- <grupdeptcd/>
- <date/>
- </send>
- <init>
- <csrdeptinfo/>
- <grupcdinfo/>
- <grupdeptlist/>
- <timeinfo/>
- </init>
- <temp>
- <prtinfo/>
- </temp>
- <tmp>
- <prtinfo/>
- </tmp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_lnrqlist.fixedcellcheckbox(0,1) = true;
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNG02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lnrqinfo"/>
- <submission id="TRMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo"/>
- <submission id="TRMNG02308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/lncal"/>
- <submission id="TRMNG00506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/timedata" resultref="/root/time"/>
- <submission id="TXMNG02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNG00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
- <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntdata" resultref="/root/temp"/>
- <submission id="TRMNG02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNG00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupdeptlist"/>
- <submission id="TXMNG02306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1/reqdata" resultref="/root/temp"/>
- <submission id="TRMNG02106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNG02309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/prtinfo"/>
- <submission id="TXMNG02307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var da = getCurrentDate();
- var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
- model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate());
-
- //model.setValue(ipt_reqfromdd.attribute("ref"), dat);
- model.setValue(ipt_reqfromdd.attribute("ref"), getCurrentDate());
-
- rdo_lnrqlist.value = "00";
-
- submit("TRMNG02305");
-
- fGetHardCodeInfo("/root/send/grupid", "/root/init/csrdeptinfo", "160"); // 중앙공급실 부서코드 조회
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
- if (!isNull(userdutplcecd)) {
- model.setValue(cmb_deptcd.attribute("ref"), "");
- model.setValue("/root/send/cdid", "Y");
- btn_cmtsav.visible =true;
- } else {
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue("/root/send/cdid", "N");
- cmb_deptcd.disabled = true; //중앙공급실이 아닐 경우 부서선택 숨김
- btn_time.visible = false;
- btn_cmtsav.visible =false;
- }
-
- cmb_deptcd.refresh();
-
- // 화면 권한 설정
- fOrdChk();
-
- // 청구가능 시간 체크
- if ( model.getValue("/root/send/cdid") == "N" ) {
- fTimeChk();
- }
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
- model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
-
- submit("TRMNG00402");
-
- submit("TRMNG00404");
-
- addComboItem("cmb_deptcd","--전체--", "","above");
-
- submit("TRMNG02302");
- var getuserinstcd = model.getValue("/root/temp/useinfo/cdid");
-
- if (getuserinstcd == "Y" ) {
- chk_low.visible = true;
- } else {
- chk_low.visible = false;
- cmb_lowdept.visible = false;
- }
-
- submit("TRMNG00405");
-
- addComboItem("cmb_grupdept", "전체", "");
-
- if ( model.getValue("root/send/cdid") == "N") {
- fChkInfo();
- }
-
- fSearch();
-
- }
-
-
- function fChkInfo() {
- model.setValue("/root/send/reqtodd", model.getValue(ipt_reqtodd.attribute("ref")));
-
- var lowdeptflag = chk_low.value;
- if(lowdeptflag == "Y") {
-
- model.setValue("/root/send/deptcd", model.getValue(cmb_lowdept.attribute("ref")));
- } else {
- model.setValue("/root/send/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
- }
-
- submit("TRMNG02106");
-
- var chk = model.getValue("/root/temp/chkinfo/chkyn");
- var chkday = model.getValue("/root/temp/chkinfo/reqdd");
-
- var date = (chkday.toDate("YYYYMMDD")).getDateFormat("YYYY년MM월DD일");
-
- if (chk == "Y") {
- alert(date + " 청구목록중 미수령한 목록이 있습니다. 미수령 목록이 있을시 청구를 할수 없습니다. 일반청구 및 응급청구 목록을 확인하세요.");
- btn_add.visible = false;
- btn_req.visible = false;
- btn_del.visible = false;
- } else {
- btn_add.visible = true;
- btn_req.visible = true;
- btn_del.visible = true;
- }
- }
-
- function fTimeChk() {
- var date = getCurrentDate();
- var time = getCurrentTime();
- var week = getCurrentWeek();
-
- var deptcd = getUserInfo("dutplcecd");
-
- model.setValue("/root/send/date", date);
-
- submit("TRMNG02308");
-
- var holiflag = model.getValue("/root/lncal/lncalinfo/holiflag");
- var supcdid = model.getValue("/root/lncal/lncalinfo/supcdid");
-
- if ( holiflag == "Y" && week != "0") {
- model.makeValue("/root/send/timedata/daykind", "2");
- } else if ( week == "6" ) {
- model.makeValue("/root/send/timedata/daykind", "3");
- } else if (week == "0" ) {
- model.makeValue("/root/send/timedata/daykind", "4");
- } else if ( holiflag != "Y") {
- model.makeValue("/root/send/timedata/daykind", "1");
- }
-
- model.makeValue("/root/send/timedata/reqdd", date);
- model.makeValue("/root/send/timedata/time", time);
-
- model.makeValue("/root/send/timedata/erflag", "Y");
-
- if ( chk_low.value == "Y" ) {
- model.makeValue("/root/send/timedata/deptcd", cmb_lowdept.value );
- } else {
- model.makeValue("/root/send/timedata/deptcd", deptcd);
- }
-
- submit("TRMNG00506");
-
- var timechk = model.getValue("/root/time/timeinfo/timechk");
-
- if ( timechk !="Y") {
- alert("청구 가능시간이 아닙니다. 청구 가능시간을 확인하십시오.");
- btn_add.disabled = true;
- btn_req.disabled = true;
- btn_del.disabled = true;
- }
- }
-
- function fOrdChk() {
- var ord = model.getValue("/root/send/cdid");
-
- if( ord == "Y" ) {
- btn_grup.visible = false;
- btn_add.visible = false;
- btn_del.visible = false;
- btn_req.visible = false;
- btn_rec.visible = false;
- caption4.visible = true;
- cmb_grupdept.visible = true;
- btn_outconf.attribute("left") = 1123;
- btn_outpr.attribute("left") = 1080;
- btn_allout.attribute("left") = 1013;
- btn_reqcancle.attribute("left") = 923;
- btn_reqconf.attribute("left") = 856;
- } else if ( ord == "N") {
- btn_outconf.visible = false;
- btn_outpr.visible = false;
- btn_allout.visible = false;
- btn_reqcancle.visible = false;
- btn_reqconf.visible =false;
- caption4.visible = false;
- cmb_grupdept.visible = false;
- btn_req.attribute("left") = 1099;
- btn_del.attribute("left") = 1053;
- btn_add.attribute("left") = 1008;
- btn_grup.attribute("left") = 897;
- }
- }
-
- function fUsrSetting() {
- var ioflag;
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
- submit("TRMNG02302");
- var getuserinstcd = model.getValue("/root/temp/useinfo/cdid");
-
- for(var i = 1; i < grd_lnrqlist.rows; i++) {
-
- ioflag = model.getValue("/root/main/lnrqinfo/lnrqlist[" + i + "]/ioflag");
- outidflag = model.getValue("/root/main/lnrqinfo/lnrqlist[" + i + "]/outid");
- reqidflag = model.getValue("/root/main/lnrqinfo/lnrqlist[" + i + "]/reqid");
-
- if(ioflag == "N") {
- grd_lnrqlist.rowStatus(i) = "1";
-
- if (!isNull(userdutplcecd) && isNull(outidflag)) {
- grd_lnrqlist.colType(grd_lnrqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
- } else if (isNull(userdutplcecd) && isNull(outidflag)) {
- grd_lnrqlist.colType(grd_lnrqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
- }
- }
- if (ioflag == "O" && !isNull(userdutplcecd)) {
-
- grd_lnrqlist.colType(grd_lnrqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
- if (isNull(outidflag)) {
- grd_lnrqlist.rowStatus(i) = "2";
- }
- } else if (ioflag == "O" && isNull(userdutplcecd)) {
-
- grd_lnrqlist.colType(grd_lnrqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
- if (isNull(reqidflag)) {
- grd_lnrqlist.rowStatus(i) = "2";
- }
- }
- }
- }
-
- function fSearch() {
-
- model.setValue("/root/send/reqfromdd", model.getValue(ipt_reqfromdd.attribute("ref")));
- model.setValue("/root/send/reqtodd", model.getValue(ipt_reqtodd.attribute("ref")));
- model.setValue("/root/send/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
- model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
- model.makeValue("/root/send/erflag", "Y");
-
- submit("TRMNG02303", "false");
-
- fUsrSetting();
-
- fStyleChk();
-
- }
-
- function fStyleChk() {
- for ( i = grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++ ) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "06" ) {
- grd_lnrqlist.cellStyle("background-color", i, grd_lnrqlist.colRef("lnrqflag")) = "#99CC00";
- } else {
- grd_lnrqlist.cellStyle("background-color", i, grd_lnrqlist.colRef("lnrqflag")) = "#FFFFFF";
- }
- }
- }
-
- function fPrintRex() {
-
- var fromdd = model.getValue(ipt_reqfromdd.attribute("ref"));
- var todd = model.getValue(ipt_reqtodd.attribute("ref"));
-
- model.removenode("/root/send/report/porqlist");
- model.makeNode("/root/send/report/porqlist");
-
- copyNodesetType("/root/send/report/lnrqlist", "/root/main/lnrqinfo/lnrqlist");
-
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
-
- // 중앙공급실 유저만 출력여부 업데이트
- if (getUserInfo("dutplcecd") == userdutplcecd) {
- fSaveprnt();
-
- }
- // exeReportPreview("RPMNG02301", "XMLSTR", "/root/main/lnrqinfo/lnrqlist");
- //
- if(cmb_grupdept.value == "") {
- exeReportPreview("RPMNG02301", "XMLSTR", "/root/main/lnrqinfo/lnrqlist");
- } else {
-
- if(todd != fromdd) {
- messageBox("그룹별 출력은 기간별로 출력하실 수 없습니다. ", "E");
- return;
- }
-
- model.makeNode("/root/temp/prtinfo");
- submit("TRMNG02309");
- model.makeValue("/root/tmp/flag", "응급");
- exeReportPreview("RPMNG02302", "XMLSTR");
- }
-
- fSearch();
-
- }
-
- function fSearch2() {
- model.setValue("/root/send/reqfromdd", model.getValue(ipt_reqfromdd.attribute("ref")));
- model.setValue("/root/send/reqtodd", model.getValue(ipt_reqtodd.attribute("ref")));
- model.setValue("/root/send/deptcd", model.getValue(cmb_lowdept.attribute("ref")));
- model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
- model.makeValue("/root/send/erflag", "Y");
-
- submit("TRMNG02303", "false");
-
- fUsrSetting();
- fStyleChk();
- }
-
- function fSaveprnt() {
-
- for (i=0; i< grd_lnrqlist.rows; i++) {
- if(grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("prntdt")) == "" || grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("prntdt")) == null ) {
- grd_lnrqlist.rowStatus(i) = 2;
- }
- }
- model.makeValue("/root/send/prntdata/porqlist", getGridUpdateData(grd_lnrqlist) );
-
- submit("TXMNG02305");
- }
-
- function fSettingGoodList(pnode) {
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_lnrqlist.rows - grd_lnrqlist.fixedRows;
- for (var j = 1; j <= codynode.length; j++)
- {
- if(addRow > grd_lnrqlist.rows - grd_lnrqlist.fixedRows)
- {
- misfGridIUD(grd_lnrqlist,"A");
- addRow = grd_lnrqlist.rows - grd_lnrqlist.fixedRows;
- }
-
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/deptcd"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/goodcd"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/goodcdseq" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/goodcdseq"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/lngoodnm" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/lngoodnm"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/goodmodel"));
- // model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/goodspec"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/goodunit" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/goodunit"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/reqnm" , getUserInfo("usernm"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/reqid" , getUserInfo("userid"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/lnrqflag" , "01"); // 청구구분( 01: 청구 , 02 : 불출, 03: 수령, 04:운송)
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/lnsfcnt" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/lnsfcnt"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/lnrlcnt" , model.getValue(pnode +"/" + "grd_lnrqlist" + "[" + j + "]/lnrlcnt"));
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/reqdd" , ipt_reqtodd.value);
- model.setValue(grd_lnrqlist.nodeset + "[" + addRow + "]/erflag" , "Y");
- addRow = addRow + 1;
- }
-
- grd_lnrqlist.colDisabled(grd_lnrqlist.colRef("lnrqflag")) = true;
- grd_lnrqlist.colDisabled(grd_lnrqlist.colRef("deptcd")) = true;
- model.recalculate();
- model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;2,786;" 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:186px; height:14px; ">린넨보관실청구관리(응급)</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:100px; width:1195px; height:680px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:195px; height:13px; font-family:굴림체; ">린넨보관실청구관리(응급)</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:26px; "/>
- <button id="btn_req" class="btn5_letter2" style="left:770px; top:3px; width:42px; height:19px; ">
- <caption>청구</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 청구 가능 시간 체크
- if ( model.getValue("/root/send/cdid") == "N" ) {
- var time = fTimeChk();
- if (time == 6 ) {
- return;
- }
- }
- var userid = getUserInfo("userid");
-
- for ( i = grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++ ) {
- if (grd_lnrqlist.valueMatrix( i , grd_lnrqlist.colRef("nowcnt") ) == "" ) {
- alert( "현재고량을 입력하십시오" );
- return;
- }
-
- if ( grd_lnrqlist.rowStatus(i) == 2 ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("reqid") ) = userid;
- }
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert("청구 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_lnrqlist" nodeset="/root/main/lnrqinfo/lnrqlist" caption="^응급여부^구분^부서명^품목코드^상세코드^린넨품명^상세규격^단위^안전재고량^현재고량^청구요청량^청구자^불출량^불출자^운송량^운송자^수령량^수령자^실재고 수량^비고^상세설명^출력여부^출력시간" colsep="^" colwidth="50, 65, 65, 96, 86, 65, 100, 70, 67, 80, 80, 80, 75, 75, 80, 65, 70, 70, 70, 77, 125, 100, 60, 120, 34, 30, 28, 100, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:26px; width:1190px; height:640px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col checkvalue="Y,N" editable="false" ref="erflag" type="checkbox"/>
- <col disabled="true" editable="false" ref="lnrqflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="goodcd" type="inputbutton" visibility="visible" style="text-align:center; "/>
- <col ref="goodcdseq" visibility="visible" style="text-align:right; "/>
- <col ref="lngoodnm" visibility="visible" style="text-align:center; "/>
- <col ref="goodmodel" visibility="visible" style="text-align:center; "/>
- <col ref="goodunit" visibility="visible" style="text-align:center; "/>
- <col ref="lnsfcnt" format="#,###"/>
- <col ref="nowcnt" type="input" format="#,###"/>
- <col ref="reqcnt" format="#,###"/>
- <col ref="reqnm" visibility="visible"/>
- <col ref="outcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="outnm" visibility="visible"/>
- <col ref="trscnt" format="#,###"/>
- <col ref="trsnm"/>
- <col ref="reccnt" format="#,###"/>
- <col ref="recnm"/>
- <col ref="lnrlcnt" visibility="hidden" format="#,###"/>
- <col ref="remark" type="input"/>
- <col ref="gooddesc" visibility="visibile"/>
- <col ref="prntyn" visibility="visible"/>
- <col ref="prntdt" visibility="visible" format="yyyy/mm/dd hh:nn:ss"/>
- <col ref="prntnm" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqid" visibility="hidden"/>
- <col ref="outid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="outdt" visibility="hidden"/>
- <col ref="trsdt" visibility="hidden"/>
- <col ref="lnedflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ord = model.getValue("/root/send/cdid");
- if ( grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("lnedflag") ) == "A" ) {
- alert("마감된 청구내역은 변경하실수 없습니다.");
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- return;
- }
-
- else if (grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("lnedflag") ) = "B" && grd_lnrqlist.col == grd_lnrqlist.colRef("outcnt") && ord == "Y" ) {
- if ( grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("lnrqflag") ) > "03" ) {
- var btn = messageBox("불출량을 수정하시겠습니까?", "Q");
- if (btn == "6") {
- var lnrlcnt = parseInt(grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("outcnt")), 10)
- + parseInt(grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("nowcnt")), 10);
- model.makeValue("/root/send1/reqdata/lnrlcnt", lnrlcnt);
- model.makeValue("/root/send1/reqdata/reqdd", grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("reqdd")) );
- model.makeValue("/root/send1/reqdata/seqno", grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("seqno")) );
- model.makeValue("/root/send1/reqdata/outcnt", grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("outcnt")) );
- model.makeValue("/root/send1/reqdata/lnrqflag", grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("lnrqflag")) );
-
- if ( submit("TXMNG02306") ) {
- alert("불출량 수정되었습니다.");
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- return;
-
- }
- model.removenode("/root/send1/reqdata");
- } else {
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- return;
- }
- }
- }
-
- var lnsfcnt = grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("lnsfcnt"));
- var nowcnt = grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("nowcnt"));
- if ( grd_lnrqlist.col == grd_lnrqlist.colRef("nowcnt") ) {
-
- if (grd_lnrqlist.valueMatrix(grd_lnrqlist.row, grd_lnrqlist.colRef("lnrqflag") ) != "01" ) {
- alert("청구 상태가 아니면 현재고량을 수정하실수 없습니다.");
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
-
- return;
- }
-
- lnsfcnt = parseInt(lnsfcnt);
- if(nowcnt == "") {
- nowcnt = 0;
- }
- nowcnt = parseInt(nowcnt);
-
- if(nowcnt > lnsfcnt) {
- messageBox("현재고량은 안전재고량보다 크게 입력할 수 없습니다.", "E");
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("nowcnt") ) = "";
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("reqcnt") ) = "";
- return;
- }
-
- if ( nowcnt != "") {
- if ( nowcnt == grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("lnsfcnt") ) ) {
- alert("현재고량이 안전재고량과 동일합니다. 청구요청량이 0 입니다.");
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("nowcnt") ) = "";
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("reqcnt") ) = "";
- } else {
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("reqcnt")) = lnsfcnt - nowcnt;
- }
- }
-
- if(nowcnt == 0) {
- grd_lnrqlist.valueMatrix( grd_lnrqlist.row, grd_lnrqlist.colRef("reqcnt")) = lnsfcnt - nowcnt;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var row = grd_lnrqlist.row;
- if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
- if(grd_lnrqlist.col == grd_lnrqlist.colRef("reqcnt") || grd_lnrqlist.col == grd_lnrqlist.colRef("outcnt")) { //불출수량이나 미불출수량 엔터시
- if(grd_lnrqlist.row + 1 < grd_lnrqlist.rows) {
- grd_lnrqlist.row = row + 1;
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( model.getValue("/root/temp/reqflag") == "S") {
- model.removeNodeset(gvParamPath + "/SPMNG02301_/SPMNG02301_value");
- if(grd_lnrqlist.col == grd_lnrqlist.colRef("goodcd") ) {
-
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
-
- if ( chk_low.value == "Y") {
- setParameter("deptcd", cmb_lowdept.value);
- } else {
- setParameter("deptcd", cmb_deptcd.value);
- }
- rszfOpenPopUpListByWndName(grd_lnrqlist,"","goodcd,goodcdseq,goodnm,goodmodel,goodspec,goodunit,lnsfcnt,lnrlcnt,deptcd","SPMNG02301","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG02301_/SPMNG02301_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_lnrqlist");
-
- fSettingGoodList("/root/copynode");
- }
- } else if ( model.getValue("/root/temp/reqflag") == "G") {
- model.removeNodeset(gvParamPath + "/SPMNG02302_/SPMNG02302_value");
- if(grd_lnrqlist.col == grd_lnrqlist.colRef("goodcd") ) {
-
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
-
- if ( chk_low.value == "Y") {
- setParameter("deptcd", cmb_lowdept.value);
- } else {
- setParameter("deptcd", cmb_deptcd.value);
- }
- rszfOpenPopUpListByWndName(grd_lnrqlist,"","goodcd,goodcdseq,goodnm,goodmodel,goodspec,goodunit,lnsfcnt,lnrlcnt,deptcd","SPMNG02302","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG02302_/SPMNG02302_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_lnrqlist");
-
- fSettingGoodList("/root/copynode");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_lnrqlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:165px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>물품마스터</label>
- <value>01</value>
- </item>
- <item>
- <label>창고마스터</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <button id="btn_add" class="btn2_letter2" style="left:680px; top:3px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 청구 가능 시간 체크
- if ( model.getValue("/root/send/cdid") == "N" ) {
- var time = fTimeChk();
- if (time == 6 ) {
- return;
- }
- }
- model.makeValue("/root/temp/reqflag", "S");
- grd_lnrqlist.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" style="left:725px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 청구 가능 시간 체크
- if ( model.getValue("/root/send/cdid") == "N" ) {
- var time = fTimeChk();
- if (time == 6 ) {
- return;
- }
- }
- var cnt = 0;
- var dnt = 0;
- var inscnt = 0;
- var rows = grd_lnrqlist.rows;
- for ( i=grd_lnrqlist.fixedRows; i <= rows; i++ ) {
- var j = i - dnt;
- if ( grd_lnrqlist.valueMatrix( j , grd_lnrqlist.colRef("chkyn") ) == "Y" && grd_lnrqlist.valueMatrix(j, grd_lnrqlist.colRef("lnrqflag")) == "01" && grd_lnrqlist.rowStatus(j) != 3) {
- grd_lnrqlist.rowStatus(j) = 4;
- cnt++;
- } else if ( grd_lnrqlist.valueMatrix( j , grd_lnrqlist.colRef("chkyn") ) == "Y" && grd_lnrqlist.valueMatrix(j, grd_lnrqlist.colRef("lnrqflag")) == "01" && grd_lnrqlist.rowStatus(j) == 3) {
- grd_lnrqlist.deleteRow(j);
- dnt++;
- } else if ( grd_lnrqlist.valueMatrix( j , grd_lnrqlist.colRef("chkyn") ) != "Y" && grd_lnrqlist.valueMatrix(j, grd_lnrqlist.colRef("lnrqflag")) == "01" && grd_lnrqlist.rowStatus(j) == 1 ) {
- alert(1);
- inscnt ++;
- }
- }
-
- if ( dnt < 1 && cnt < 1) {
- alert("선택된 삭제목록이 없습니다.");
- return;
- }
-
- if ( inscnt > 0 ) {
- var btn = messageBox("신규 청구내역이 있습니다. 청구하시겠습니까?", "Q");
- if (btn == "6") {
- for ( i = grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++ ) {
- if (grd_lnrqlist.valueMatrix( i , grd_lnrqlist.colRef("nowcnt") ) == "" ) {
- alert( "현재고량을 입력하십시오" );
- return;
- }
-
- if ( grd_lnrqlist.rowStatus(i) == 2 ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("reqid") ) = userid;
- }
- }
- } else {
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- return;
- }
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert(cnt + "건이 삭제 처리되었습니다");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_outpr" class="btn5_letter2" style="left:1034px; top:3px; width:42px; height:19px; ">
- <caption>불출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
-
- for ( i=grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "02" &&
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("outcnt")) == "0") {
- alert("선택한 청구확인 목록중 불출량이 입력되지 않은 목록이 있습니다.");
- return;
- }
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" &&
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "02" &&
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("outcnt")) != "0" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "03"
- grd_lnrqlist.rowStatus(i) = 2;
- cnt ++;
- }
- }
-
- if (cnt < 1) {
- alert("선택된 청구확인목록이 없습니다.");
- return;
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert(cnt + "건이 불출 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_rec" class="btn5_letter2" style="left:1145px; top:3px; width:42px; height:19px; ">
- <caption>수령</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
- for ( i=grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "05" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "06"
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("reccnt")) = grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("trscnt"));
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrlcnt")) = parseInt(grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("trscnt")), 10) + parseInt(grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("nowcnt")), 10);
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++;
- }
- }
-
- if (cnt < 1 ) {
- alert("선택된 운송목록이 없습니다.");
- return;
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert(cnt + "건이 수령 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_allout" class="btn5_letter4" style="left:968px; top:3px; width:64px; height:19px; ">
- <caption>일괄불출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
- for ( i=grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "02" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("outcnt")) == "0" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("outcnt")) = grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("reqcnt"));
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "03"
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++;
- } else if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "02" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("outcnt")) != "0") {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "03"
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++;
- }
- }
-
- if (cnt< 1) {
- alert("선택된 청구확인목록이 없습니다.");
- return;
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert(cnt + "건이 일괄불출 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_reqconf" class="btn5_letter4" style="left:814px; top:3px; width:64px; height:19px; ">
- <caption>청구확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cnt = 0; // 선택한 청구목록 count
-
- for (i = grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "01" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "02";
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++; // 선택한 횟수 계산
- }
- }
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( cnt < 1 ) { // 선택한 청구목록이 없으면
- alert("선택된 청구목록이 없습니다.");
- return;
- }
-
- if ( submit("TXMNG02303")) {
- alert(cnt + "건이 청구확인 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_outconf" class="btn5_letter4" style="left:1078px; top:3px; width:64px; height:19px; ">
- <caption>불출확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
- for ( i=grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "03" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "04"
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++;
- }
- }
-
- if (cnt < 1) {
- alert("선택된 불출목록이 없습니다.");
- return;
- }
-
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( submit("TXMNG02303") ) {
- alert(cnt + "건이 불출확인 처리되었습니다.");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_grup" class="btn2_letter4" visibility="hidden" style="left:612px; top:3px; width:64px; height:19px; ">
- <caption>그룹청구</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/temp/reqflag", "G");
- grd_lnrqlist.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_reqcancle" class="btn5_letter6" style="left:880px; top:3px; width:86px; height:19px; ">
- <caption>청구확인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0; // 선택한 청구확인목록 count
-
- for (i = grd_lnrqlist.fixedRows; i < grd_lnrqlist.rows; i++) {
- if ( grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("chkyn")) == "Y" && grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) == "02" ) {
- grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("lnrqflag")) = "01";
- grd_lnrqlist.rowStatus(i) = 2;
- cnt++; // 선택한 청구확인목록 횟수
- }
- }
- model.makeValue("/root/send/savedata/lnrqlist", getGridUpdateData(grd_lnrqlist) );
-
- if ( cnt < 1 ) { // 선택한 청구확인목록이 없으면
- alert("선택된 청구확인목록이 없습니다.");
- return;
- }
-
- if (submit("TXMNG02303") ) {
- alert(cnt + "건이 청구확인취소 처리되었습니다");
- }
-
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="btn_time" class="btn3_letter6" style="left:185px; top:1px; width:104px; height:22px; ">
- <caption>청구시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNG00501");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/time/timeinfo/endtm" format="hh:nn:ss" style="left:485px; top:3px; width:55px; height:19px; font-weight:bold; color:#0000ff; "/>
- <output id="output2" ref="/root/time/timeinfo/starttm" format="hh:nn:ss" style="left:420px; top:3px; width:55px; height:19px; font-weight:bold; color:#0000ff; "/>
- <caption id="caption5" class="hand" style="left:300px; top:5px; width:130px; height:15px; ">청구 가능시간 :</caption>
- <caption id="caption7" style="left:472px; top:4px; width:20px; height:20px; ">~</caption>
- <output id="output3" ref="/root/send/date" visibility="hidden" style="left:560px; top:2px; width:35px; height:19px; "/>
- <button id="btn_cmtsav" class="btn5_letter4" visibility="hidden" style="left:788px; top:3px; width:64px; height:19px; ">
- <caption>비고저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_lnrqlist);
- if(updtdata == "" || updtdata == null) {
- messageBox("수정할 내역이 없습니다.");
- }
- model.makeValue("/root/send/savedata/reqlist", updtdata);
-
- submit("TXMNG02307");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:70px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <select1 id="cmb_lowdept" ref="/root/main/cond/lowdept" appearance="minimal" style="left:690px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/deptcodelist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/cdid") == "Y" ) {
- fTimeChk();
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:620px; top:30px; width:88px; height:17px; ">부서명:</caption>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:260px; top:30px; width:68px; height:17px; ">청구일:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1018px; top:46px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
-
- if ( model.getValue("/root/send/cdid") == "N" ) {
- fChkInfo();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_reqfromdd" ref="/root/main/cond/reqfromdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:330px; top:30px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <line id="line2" class="line_4" style="x1:1012px; y1:25px; x2:1012px; y2:85px; "/>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/main/cond/instcd" class="output_fix" style="left:100px; top:30px; width:150px; height:19px; text-align:center; "/>
- <button id="button3" class="btn1_letter2" style="left:1076px; top:46px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "세탁물청구관리(응급)", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_lnrqlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:1134px; top:46px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrintRex();
-
- ]]>
- </script>
- </button>
- <select id="chk_low" ref="/root/send/lowflag" overflow="visible" appearance="full" style="left:910px; top:30px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>하위부서</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ord = model.getValue("/root/send/cdid");
- if ( chk_low.value == "Y" ) {
- cmb_deptcd.visible = false;
- cmb_lowdept.visible = true;
-
- if( ord == "Y" ) {
- btn_grup.visible = false;
- btn_add.visible = true;
- btn_del.visible = true;
- btn_req.visible = true;
- btn_rec.visible = true;
- btn_outconf.visible = false;
- btn_outpr.visible = false;
- btn_allout.visible = false;
- btn_reqcancle.visible = false;
- btn_reqconf.visible =false;
- btn_req.attribute("left") = 1099;
- btn_del.attribute("left") = 1053;
- btn_add.attribute("left") = 1008;
- btn_grup.attribute("left") = 897;
- }
-
- if ( cmb_lowdept.value != null && cmb_lowdept.value != "") {
- fSearch2();
- }
-
- } else {
- cmb_deptcd.visible = true;
- cmb_lowdept.visible = false;
-
- if ( ord == "Y" ) {
- btn_grup.visible = false;
- btn_add.visible = false;
- btn_del.visible = false;
- btn_req.visible = false;
- btn_rec.visible = false;
- btn_outconf.visible = true;
- btn_outpr.visible = true;
- btn_allout.visible = true;
- btn_reqcancle.visible = true;
- btn_reqconf.visible =true;
- btn_outconf.attribute("left") = 1123;
- btn_outpr.attribute("left") = 1080;
- btn_allout.attribute("left") = 1013;
- btn_reqcancle.attribute("left") = 923;
- btn_reqconf.attribute("left") = 856;
- }
-
- fSearch();
- }
- ]]>
- </script>
- </select>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" disabled="false" appearance="minimal" style="left:690px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:10px; top:60px; width:83px; height:17px; ">구 분 :</caption>
- <select1 id="rdo_lnrqlist" ref="/root/send/lnrqflag" appearance="full" cols="8" overflow="visible" style="left:95px; top:60px; width:380px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( chk_low.value == "Y") {
- fSearch2(); // 하위부서 check시 조회는 하위부서로.
- } else {
- fSearch();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption3" style="left:420px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="ipt_reqtodd" ref="/root/main/cond/reqtodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:430px; top:30px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:620px; top:60px; width:88px; height:17px; ">그룹명:</caption>
- <select1 id="cmb_grupdept" ref="/root/send/grupdeptcd" appearance="minimal" style="left:690px; top:60px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/grupdeptlist">
- <label ref="grupdeptnm"/>
- <value ref="grupdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|