123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257 |
- <?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>
- </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", getCurrentDate());
-
- 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");
-
- submit("TRMNG02106");
-
- 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 (supcdid == "Y") {
- model.makeValue("/root/send/timedata/daykind", "2");
- } else 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", "N");
-
- 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;
-
- return 6;
- } else {
- return 0;
- }
- }
-
- 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", "N");
-
- 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/porqlist", "/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", "N");
-
- 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" , "N");
- 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:134px; height:14px; font-family:돋움체; ">린넨보관실청구관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:26px; font-family:돋움체; "/>
- <button id="btn_req" class="btn5_letter2" style="left:770px; top:3px; width:42px; height:19px; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="erflag" type="checkbox" visibility="hidden"/>
- <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 == 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; font-family:돋움체; 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; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <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; font-family:돋움체; ">
- <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.valueMatrix(i, grd_lnrqlist.colRef("lnrlcnt")) = grd_lnrqlist.valueMatrix(i, grd_lnrqlist.colRef("nowcnt"));
- 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; font-family:돋움체; ">
- <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:614px; top:3px; width:64px; height:19px; font-family:돋움체; ">
- <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; font-family:맑은 고딕; ">
- <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:160px; top:1px; width:104px; height:22px; font-family:돋움체; ">
- <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-family:돋움체; 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-family:돋움체; font-weight:bold; color:#0000ff; "/>
- <caption id="caption5" class="hand" style="left:300px; top:5px; width:130px; height:15px; font-family:돋움체; ">청구 가능시간 :</caption>
- <caption id="caption7" style="left:472px; top:4px; width:20px; height:20px; font-family:돋움체; ">~</caption>
- <output id="output3" ref="/root/send/date" visibility="hidden" style="left:560px; top:2px; width:45px; height:19px; font-family:돋움체; "/>
- <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:78px; 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>
- <button id="button1" class="btn1_letter7" navindex="2" style="left:1018px; top:24px; width:128px; height:22px; ">
- <caption>청구관리(응급)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMNG02302");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|