12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>출고관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <nutrdelive>
- <nutrdelivelist/>
- <nutrmaxdeliveno/>
- </nutrdelive>
- <close>
- <closelist/>
- </close>
- </list>
- <item/>
- </main>
- <send>
- <save>
- <nutrdelivelist/>
- <closelist/>
- </save>
- <nutrdelive>
- <instcd/>
- <goodflag/>
- <delivedd/>
- <deliveno/>
- <delivedeptcd/>
- <delivedeptnm/>
- <iokindcd/>
- <windeptcd/>
- <windeptnm/>
- <delivepsn/>
- <delivepsnnm/>
- <tmp_goodcd/>
- <tmp_goodnm/>
- <goodcd/>
- <goodnm/>
- </nutrdelive>
- <untrclose>
- <instcd/>
- <goodflag/>
- <delivefrdd/>
- <delivetodd/>
- <deliveno/>
- <delivedeptcd/>
- <delivedeptnm/>
- <iokindcd/>
- <windeptcd/>
- <windeptnm/>
- <delivepsn/>
- <delivepsnnm/>
- <tmp_goodcd/>
- <tmp_goodnm/>
- <goodcd/>
- <goodnm/>
- <sumflag/>
- <endcnfmyn/>
- <endcnfmdd/>
- </untrclose>
- </send>
- <init>
- <deliveqty/>
- <deliveamt/>
- <deliveqty_close/>
- <deliveamt_close/>
- </init>
- <hidden>
- <sumflag>
- <cd>N</cd>
- <nm>개별</nm>
- </sumflag>
- <sumflag>
- <cd>Y</cd>
- <nm>합산</nm>
- </sumflag>
- <endcnfmyn>
- <cd/>
- <nm>전체</nm>
- </endcnfmyn>
- <endcnfmyn>
- <cd>N</cd>
- <nm>마감전</nm>
- </endcnfmyn>
- <endcnfmyn>
- <cd>Y</cd>
- <nm>마감후</nm>
- </endcnfmyn>
- <G/>
- <T/>
- <S/>
- <N/>
- <list>
- <untrclose>
- <untrcloselist/>
- </untrclose>
- </list>
- </hidden>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <bind id="delivedeptqty" ref="/root/main/list/nutrdelive/nutrdelivelist/delivedeptqty" calculate="../patmealdeliveqty +../curemealdeliveqty + ../empmealdeliveqty +../empnigtmealdeliveqty"/>
- <bind id="deliveamt" ref="/root/main/list/nutrdelive/nutrdelivelist/deliveamt" calculate="../delivedeptqty * ../goodunitcost"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nutrdelive" resultref="/root/main/list/nutrdelive"/>
- <submission id="TXRSO03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp">"</submission>
- <submission id="TRRSO03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/untrclose" resultref="/root/main/list/close"/>
- <submission id="TXRSO03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
-
- misfGridInit(grd_nutrdelive);
- grd_nutrdelive.rowHeight(0) = "20";
- grd_nutrdelive.rowHeight(1) = "20";
-
- grd_nutrclose.rowHeight(0) = "20";
- grd_nutrclose.rowHeight(1) = "20";
- model.resetInstanceNode("/root/send");
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- //rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- misfComboComCdList("Z0007", cmb_instcd, "N");
- misfComboComCdList("Z0007", cmb_instcd_close, "N");
-
- misfGridInit(grd_nutrdelive);
- misfGridInit(grd_nutrclose);
-
- misfMsterDetailSet(grd_nutrdelive,null, "TRRSO03102" ,"Y");
- //misfMsterDetailSet(grd_nutrclose,null, "TRRSO03103" ,"Y");
-
- model.setValue(ipt_delivedd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_delivefrdd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_delivetodd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_endcnfmdd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_sumdeliveqty.attribute("ref"),0);
- model.setValue(opt_sumdeliveamt.attribute("ref"),0);
-
- // hidden col
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
- model.setValue(cmb_goodflag.attribute("ref"),'SF');
- //getUserInfo("dutplceinstcd")
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(cmb_instcd_close.attribute("ref") , getUserInfo("dutplceinstcd"));
- //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- //model.setValue("/root/send/nutrdelive/windeptcd" , '3251000000');
- //model.setValue("/root/send/nutrdelive/delivedeptcd" , '3251000000');
- //model.setValue("/root/send/untrclose/delivedeptcd" , '3251000000');
- model.setValue("/root/send/nutrdelive/windeptcd" , getUserInfo("dutplcecd"));
- model.setValue("/root/send/nutrdelive/delivedeptcd" , getUserInfo("dutplcecd"));
- model.setValue("/root/send/untrclose/delivedeptcd" , getUserInfo("dutplcecd"));
-
-
- rdo_endflag.select(0);
-
- model.setValue(ipt_delivepsn.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_delivepsnnm.attribute("ref") , getUserInfo("usernm"));
-
- model.setValue(ipt_delivepsn_close.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_delivepsnnm_close.attribute("ref") , getUserInfo("usernm"));
- rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","N","","E","");
- rszfGetPurcIOFlagList(cmb_iokindcd_close, model.getValue(cmb_instcd.attribute("ref")) , "O","N","","E","");
- // if(cmb_iokindcd.length> 0) cmb_iokindcd.selectedindex= 0;
-
- grd_nutrdelive.selectionmode = "free";
- grd_nutrclose.selectionmode = "free";
-
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("windd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("winseqno")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("goodcd")) = true;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("goodnm")) = true;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("orgloc")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("goodunitcost")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("winunit")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("exchqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("patmealstocqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("curemealstocqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empmealstocqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empnigtmealstocqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("patmealdeliveqty_sum")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("patmealdeliveqty_input")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("patmealdeliveqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("curemealdeliveqty_sum")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("curemealdeliveqty_input")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("curemealdeliveqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empmealdeliveqty_sum")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empmealdeliveqty_input")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empmealdeliveqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empnigtmealdeliveqty_sum")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empnigtmealdeliveqty_input")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("empnigtmealdeliveqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("deliveamt")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("instcd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("goodflag")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("delivedd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("deliveno")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("deliveseqno")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("iokindcd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("delivedeptcd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("delivepsn")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("windeptcd")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("reqflag")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("delivedeptqty")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("deliveunit")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("deliveunitcost")) = false;
- grd_nutrdelive.mergeCol(grd_nutrdelive.colRef("winno")) = false;
-
-
- cmb_iokindcd.value = '2D';
- // cmb_iokindcd.dispatch("xforms-value-changed");
- // btn_delive.dispatch("onclick");
-
- model.setValue("/root/send/untrclose/sumflag", "N");
- model.refresh();
- }
-
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- function fCheckRetrieveData(pmsg)
- {
- if(swt_1.selected == 0 && model.getValue(cmb_instcd.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(cmb_instcd_close.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- if(swt_1.selected == 0 && model.getValue(cmb_goodflag.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(cmb_goodflag_close.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- }
- return false;
- }
- if(swt_1.selected == 0 && model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 || swt_1.selected == 0 && model.getValue(ipt_delivetodd.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(ipt_delivetodd.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("출고일자를 " ,"C001");
- model.setFocus("ipt_delivedd");
- }
- return false;
- }
- if(swt_1.selected == 0 && model.getValue(ipt_delivedeptcd.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(ipt_delivedeptcd_close.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("출고부서를 " ,"C001");
- model.setFocus("ipt_delivedeptcd");
- }
- return false;
- }
- if(swt_1.selected == 0 && model.getValue(cmb_iokindcd.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(cmb_iokindcd_close.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("출고유형을 " ,"C001");
- model.setFocus("cmb_iokindcd");
- }
- return false;
- }
- if(swt_1.selected == 0 && model.getValue(ipt_delivepsn.attribute("ref")).length== 0 || swt_1.selected == 1 && model.getValue(ipt_delivepsn_close.attribute("ref")).length== 0)
- {
- if(pmsg == true)
- {
- messageBox("출고담당자를 " ,"C001");
- model.setFocus("ipt_delivepsn");
- }
- return false;
- }
- return true;
- }
- function fDefaultSetting(prow)
- {
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/instcd",model.getValue("/root/send/nutrdelive/instcd"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/goodflag",model.getValue("/root/send/nutrdelive/goodflag"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/delivedd",model.getValue("/root/send/nutrdelive/delivedd"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/delivedeptcd",model.getValue("/root/send/nutrdelive/delivedeptcd"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/iokindcd",model.getValue("/root/send/nutrdelive/iokindcd"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/delivepsn",model.getValue("/root/send/nutrdelive/delivepsn"));
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/deliveseqno",fGetmaxdeliveseqno());
- model.setValue(grd_nutrdelive.nodeset+"["+prow+"]/delivedeptqty",0);
- }
- function fGetmaxdeliveseqno()
- {
- var maxdeliveseqno = "";
- for(var currow = grd_nutrdelive.fixedRows ; currow < grd_nutrdelive.rows; currow++)
- {
- if(maxdeliveseqno < grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveseqno")))
- maxdeliveseqno = grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveseqno"));
- }
-
- if(maxdeliveseqno.length == 0)maxdeliveseqno = "001";
- else maxdeliveseqno = parseInt(maxdeliveseqno) + 1;
-
- maxdeliveseqno = "" + maxdeliveseqno;
- return maxdeliveseqno.getLeftPad(3,"0");
- }
- function fSettingGoodList(pnode, nodename, userqtynm){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_nutrdelive.rows - grd_nutrdelive.fixedRows;
-
- if(model.getValue(grd_nutrdelive.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if(addRow > grd_nutrdelive.rows - grd_nutrdelive.fixedRows)
- {
- misfGridIUD(grd_nutrdelive,"A");
- addRow = grd_nutrdelive.rows - grd_nutrdelive.fixedRows;
- fDefaultSetting(addRow );
- }
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- // model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/patmealdeliveqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- // model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/curemealdeliveqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- // model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/empmealdeliveqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- // model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/empnigtmealdeliveqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/deliveunit",model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/goodunitcost",model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/exchqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/patmealstocqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/stocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/curemealstocqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/curemealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/empmealstocqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/empmealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/empnigtmealstocqty",model.getValue(pnode +"/" + nodename + "[" + j + "]/empnigtmealstocqty"));
-
- model.setValue(grd_nutrdelive.nodeset + "[" + addRow + "]/orgloc",model.getValue(pnode +"/" + nodename + "[" + j + "]/orgloc"));
-
- addRow = addRow + 1;
- }
- model.recalculate();
- model.refresh();
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_delivedd.attribute("ref")).length== 0 )
- {
- messageBox("출고일자를 " ,"C001");
- model.setFocus("ipt_delivedd");
- return false;
- }
- if(model.getValue(ipt_delivedeptcd.attribute("ref")).length== 0 )
- {
- messageBox("출고부서를 " ,"C001");
- model.setFocus("ipt_delivedeptcd");
- return false;
- }
- if(model.getValue(cmb_iokindcd.attribute("ref")).length== 0 )
- {
- messageBox("출고유형을 " ,"C001");
- model.setFocus("cmb_iokindcd");
- return false;
- }
- if(model.getValue(ipt_delivepsn.attribute("ref")).length== 0 )
- {
- messageBox("출고담당자를 " ,"C001");
- model.setFocus("ipt_delivepsn");
- return false;
- }
-
- for(var currow = grd_nutrdelive.fixedRows ; currow < grd_nutrdelive.rows ; currow++)
- {
- if(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("goodcd")).length == 0)
- {
- messageBox((currow -1)+ " 번째 물품코드를 " ,"C001");
- grd_nutrdelive.row = currow;
- grd_nutrdelive.col= grd_nutrdelive.colRef("goodcd");
- grd_nutrdelive.editCell();
- return false;
- }
- else
- {
- for(srcrow = currow + 1 ; srcrow < grd_nutrdelive.rows ; srcrow++)
- {
- if(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("goodcd")) == grd_nutrdelive.valueMatrix(srcrow , grd_nutrdelive.colRef("goodcd")))
- {
- // messageBox("동일 물품코드가 [" + (currow - grd_nutrdelive.fixedRows + 1)+ "," + (srcrow - grd_nutrdelive.fixedRows + 1) + "->" + grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
- // return false;
- }
- }
- }
- }
- return true;
- }
- function fAfterRetrieve()
- {
- var delivedeptqty = 0;
- var deliveamt = 0;
-
- for(var currow = grd_nutrdelive.fixedRows ; currow < grd_nutrdelive.rows ; currow++)
- {
- if(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveamt"))>0)
- {
- delivedeptqty = delivedeptqty + 1;
- deliveamt = deliveamt + 0 + parseFloat(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveamt")));
- }
- }
-
- model.setValue(ipt_sumdeliveqty.attribute("ref"),delivedeptqty);
- model.setValue(opt_sumdeliveamt.attribute("ref"),deliveamt);
- model.setValue(ipt_deliveno.attribute("ref"),model.getValue("/root/main/list/nutrdelive/nutrmaxdeliveno/deliveno"));
- model.refresh();
- }
-
- function fAfterRetrieve_close()
- {
- var delivedeptqty = 0;
- var deliveamt = 0;
- var Gamt = 0;
- var Tamt = 0;
- var Samt = 0;
- var Namt = 0;
-
- for(var currow = grd_nutrclose.fixedRows ; currow < grd_nutrclose.rows ; currow++)
- {
-
- if(grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("deliveamt"))>0)
- {
- delivedeptqty = delivedeptqty + 1;
- deliveamt = deliveamt + parseFloat(grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("deliveamt")));
- }
-
- vPatmealdeliveqty = grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("patmealdeliveqty"));
- vCuremealdeliveqty = grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("curemealdeliveqty"));
- vEmpmealdeliveqty = grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("empmealdeliveqty"));
- vEmpnigtmealdeliveqty = grd_nutrclose.valueMatrix(currow , grd_nutrclose.colRef("empnigtmealdeliveqty"));
-
- if(vPatmealdeliveqty == 0)vPatmealdeliveqty = 0;
- if(vCuremealdeliveqty == 0)vCuremealdeliveqty = 0;
- if(vEmpmealdeliveqty == 0)vEmpmealdeliveqty = 0;
- if(vEmpnigtmealdeliveqty == 0)vEmpnigtmealdeliveqty = 0;
-
- Gamt = Gamt + parseFloat(vPatmealdeliveqty);
- Tamt = Tamt + parseFloat(vCuremealdeliveqty);
- Samt = Samt + parseFloat(vEmpmealdeliveqty);
- Namt = Namt + parseFloat(vEmpnigtmealdeliveqty);
- }
-
- model.setValue(ipt_sumdeliveqty_close.attribute("ref"),delivedeptqty);
- model.setValue(opt_sumdeliveamt_close.attribute("ref"),deliveamt);
- model.setValue(opt_G.attribute("ref"),Gamt);
- model.setValue(opt_T.attribute("ref"),Tamt);
- model.setValue(opt_S.attribute("ref"),Samt);
- model.setValue(opt_N.attribute("ref"),Namt);
- model.refresh();
- }
-
- function fgridDeliveCountSetting(sumdeliveValue, stockValue, deliveValue)
- {
- var deliveCnt = parseFloat(grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef(sumdeliveValue)));
- var stocCnt = 0;
- //alert(deliveCnt);
-
- if(deliveCnt != 0)
- {
- var prev_goodcode = grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodcd"));
- var next_goodcode = ""
-
- for(var i = grd_nutrdelive.row ; i < grd_nutrdelive.rows ; i ++)
- {
- var next_goodcode = grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("goodcd"));
-
- if(prev_goodcode == next_goodcode)
- {
- //alert(parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(stockValue))));
- stocCnt = stocCnt + parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(stockValue)))
- }
- }
- }
- //alert(deliveCnt + ">" + stocCnt);
- if(deliveCnt > stocCnt)
- {
- messageBox("출고량이 재고량보다 많습니다." ,"I000");
- grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef(sumdeliveValue)) = 0;
- return false;
- }
-
- if(deliveCnt != 0)
- {
- var prev_goodcode = grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodcd"));
- var next_goodcode = "";
-
- for(var i = grd_nutrdelive.row ; i < grd_nutrdelive.rows ; i ++)
- {
- var next_goodcode = grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("goodcd"));
-
- if(prev_goodcode == next_goodcode)
- {
- if(deliveCnt > parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(stockValue))))
- {
- grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(deliveValue))
- = parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(stockValue)));
- deliveCnt = deliveCnt - parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(stockValue)));
- if(deliveCnt == 0)return;
- }
- else
- { //alert(parseFloat(grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef(stockValue))));
- grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef(deliveValue)) = deliveCnt;
- return;
- }
- }
- else
- {
- return;
- }
- }
- }
- }
-
- function finsertionSetting()
- {
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_nutrdelive.nodeset).length ; i++)
- {
- vPatmealdeliveqty = model.getValue(grd_nutrdelive.nodeset + "[" + i + "]/patmealdeliveqty");
- vCuremealdeliveqty = model.getValue(grd_nutrdelive.nodeset + "[" + i + "]/curemealdeliveqty");
- vEmpmealdeliveqty = model.getValue(grd_nutrdelive.nodeset + "[" + i + "]/empmealdeliveqty");
- vEmpnigtmealdeliveqty = model.getValue(grd_nutrdelive.nodeset + "[" + i + "]/empnigtmealdeliveqty");
-
- if(vPatmealdeliveqty == "")vPatmealdeliveqty = 0;
- if(vCuremealdeliveqty == "")vCuremealdeliveqty = 0;
- if(vEmpmealdeliveqty == "")vEmpmealdeliveqty = 0;
- if(vEmpnigtmealdeliveqty == "")vEmpnigtmealdeliveqty = 0;
-
- var vDelivedeptqty = parseFloat(vPatmealdeliveqty)
- + parseFloat(vCuremealdeliveqty)
- + parseFloat(vEmpmealdeliveqty)
- + parseFloat(vEmpnigtmealdeliveqty);
- model.setValue(grd_nutrdelive.nodeset + "[" + i + "]/iokindcd", cmb_iokindcd.value);
- model.setValue(grd_nutrdelive.nodeset + "[" + i + "]/deliveno", ipt_deliveno.value);
- model.setValue(grd_nutrdelive.nodeset + "[" + i + "]/delivedeptqty", vDelivedeptqty);
- vDelivedeptqty = 0;
- }
-
- for(var i = grd_nutrdelive.fixedRows ; i < grd_nutrdelive.rows ; i++)
- {
- if(parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("deliveamt"))) > 0)
- {
- grd_nutrdelive.rowStatus(i) = 1;
- }
- else
- {
- grd_nutrdelive.rowStatus(i) = 0;
- }
- }
- }
-
- function finsertionSetting_close()
- {
-
- // for(var i = 1 ; i <= model.instance1.selectNodes(grd_nutrclose.nodeset).length ; i++)
- // {
- // alert(i);
- // model.setValue(grd_nutrclose.nodeset + "[" + i + "]/endcnfmyn", "Y");
- // }
- for(var i = grd_nutrclose.fixedRows ; i < grd_nutrclose.rows ; i++)
- {
- grd_nutrclose.valueMatrix(i, grd_nutrclose.colRef("endcnfmyn")) = "Y";
- grd_nutrclose.rowStatus(i) = 2;
-
- }
- }
-
- function fsumQTYsetting()
- {
- var curr_goodcode = grd_nutrdelive.valueMatrix(grd_nutrdelive.fixedRows, grd_nutrdelive.colRef("goodcd"));
- var next_goodcode = '';
- var set_row = grd_nutrdelive.fixedRows;
- var sum_patmealdeliveqty = 0;
- var sum_curemealdeliveqty = 0;
- var sum_empmealdeliveqty = 0;
- var sum_empnigtmealdeliveqty = 0;
-
- for(var i = grd_nutrdelive.fixedRows; i < grd_nutrdelive.rows ; i++)
- {
- next_goodcode = grd_nutrdelive.valueMatrix(i+1, grd_nutrdelive.colRef("goodcd"));
-
- sum_patmealdeliveqty = sum_patmealdeliveqty + parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("patmealstocqty")));
- sum_curemealdeliveqty = sum_curemealdeliveqty + parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("curemealstocqty")));
- sum_empmealdeliveqty = sum_empmealdeliveqty + parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("empmealstocqty")));
- sum_empnigtmealdeliveqty = sum_empnigtmealdeliveqty + parseFloat(grd_nutrdelive.valueMatrix(i, grd_nutrdelive.colRef("empnigtmealstocqty")));
-
- if(curr_goodcode != next_goodcode)
- {
- grd_nutrdelive.valueMatrix(set_row, grd_nutrdelive.colRef("patmealdeliveqty_sum")) = sum_patmealdeliveqty;
- grd_nutrdelive.valueMatrix(set_row, grd_nutrdelive.colRef("curemealdeliveqty_sum")) = sum_curemealdeliveqty;
- grd_nutrdelive.valueMatrix(set_row, grd_nutrdelive.colRef("empmealdeliveqty_sum")) = sum_empmealdeliveqty;
- grd_nutrdelive.valueMatrix(set_row, grd_nutrdelive.colRef("empnigtmealdeliveqty_sum")) = sum_empnigtmealdeliveqty;
-
- sum_patmealdeliveqty = 0;
- sum_curemealdeliveqty = 0;
- sum_empmealdeliveqty = 0;
- sum_empnigtmealdeliveqty = 0;
-
- set_row = i+1;
- }
- curr_goodcode = next_goodcode;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1191px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">출고관리</caption>
- </group>
- <switch id="swt_1" class="sw_box" style="left:0px; top:25px; width:1195px; height:759px; border-style:solid; ">
- <case id="case1" selected="true">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1193px; height:61px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1193px; y2:96px; "/>
- <input id="ipt_delivedd" ref="/root/send/nutrdelive/delivedd" class="input_s_essential" inputtype="date" style="left:459px; top:18px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_goodflag" ref="/root/send/nutrdelive/goodflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:1080px; top:15px; width:27px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/nutrdelive/instcd" class="combo_s_essential" appearance="minimal" style="left:119px; top:18px; width:192px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:118px; height:13px; ">출고내역</caption>
- <input id="ipt_deliveno" ref="/root/send/nutrdelive/deliveno" class="input_default" editable="false" style="left:569px; top:18px; width:67px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <output id="ipt_sumdeliveqty" ref="/root/init/deliveqty" class="output_default" style="left:496px; top:74px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_sumdeliveamt" ref="/root/init/deliveamt" class="output_default" format="#,###" style="left:650px; top:74px; width:125px; height:19px; font-weight:bold; "/>
- <select1 id="cmb_iokindcd" ref="/root/send/nutrdelive/iokindcd" class="combo_s_essential" appearance="minimal" style="left:890px; top:74px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_delivedeptcd" ref="/root/send/nutrdelive/delivedeptcd" class="input_fix" visibility="hidden" appearance="input" style="left:1022px; top:15px; width:27px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" style="left:438px; top:72px; width:80px; height:23px; vertical-align:middle; ">출고건수 :</caption>
- <input id="ipt_delivepsn" ref="/root/send/nutrdelive/delivepsn" class="input_default" visibility="hidden" appearance="input" style="left:964px; top:15px; width:27px; height:19px; "/>
- <output id="opt_delivepsnnm" ref="/root/send/nutrdelive/delivepsnnm" class="output_fix" appearance="output" style="left:119px; top:44px; width:192px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- misfGridInit(grd_nutrdelive);
- misfMsterDetailRetrieve();
-
- //submit("TRRSO03102");
-
-
- fAfterRetrieve();
- fsumQTYsetting();
-
- grd_nutrdelive.colStyle(grd_nutrdelive.colRef("patmealdeliveqty"), "data", "background-color") = "#ffff00";
- grd_nutrdelive.colStyle(grd_nutrdelive.colRef("curemealdeliveqty"), "data", "background-color") = "#ffff00";
- grd_nutrdelive.colStyle(grd_nutrdelive.colRef("empmealdeliveqty"), "data", "background-color") = "#ffff00";
- grd_nutrdelive.colStyle(grd_nutrdelive.colRef("empnigtmealdeliveqty"), "data", "background-color") = "#ffff00";
-
- // 그리드의 fixedRows 가 2 row 이므로 그리드의 열인덱스 정수값은 instance 의 열 인덱스 정수값 보다 1이 많다.
-
- var prev_goodcode = '';
- var next_goodcode = '';
-
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_nutrdelive.nodeset).length ; i++)
- {
- next_goodcode = model.getValue("/root/main/list/nutrdelive/nutrdelivelist[" + i + "]/goodcd");
-
- if(prev_goodcode == next_goodcode)
- {
- grd_nutrdelive.isReadOnly(i+1, grd_nutrdelive.colRef("patmealdeliveqty_input")) = true;
- grd_nutrdelive.isReadOnly(i+1, grd_nutrdelive.colRef("curemealdeliveqty_input")) = true;
- grd_nutrdelive.isReadOnly(i+1, grd_nutrdelive.colRef("empmealdeliveqty_input")) = true;
- grd_nutrdelive.isReadOnly(i+1, grd_nutrdelive.colRef("empnigtmealdeliveqty_input")) = true;
-
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("patmealdeliveqty_input")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("curemealdeliveqty_input")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("empmealdeliveqty_input")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("empnigtmealdeliveqty_input")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("patmealdeliveqty_sum")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("curemealdeliveqty_sum")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("empmealdeliveqty_sum")) ="#000000";
- grd_nutrdelive.cellStyle("background-color", i+1, grd_nutrdelive.colRef("empnigtmealdeliveqty_sum")) ="#000000";
- }
- else
- {
- //grd_nutrdelive.cellStyle("format", i+1, grd_nutrdelive.colRef("patmealdeliveqty_input")) ="#,###.00"
- }
- prev_goodcode = next_goodcode;
- }
-
-
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_nutrdelive" nodeset="/root/main/list/nutrdelive/nutrdelivelist" caption="입고일자^순번^물품코드*^품명^원산지^단가^단위^환산수량^환자식현재고량^환자식현재고량^직원식현재고량^직원식현재고량^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^출고금액|입고일자^순번^물품코드*^품명^원산지^단가^단위^환산수량^일반식^치료식^직원식^직원야식^일반식^일반식^일반식^치료식^치료식^치료식^직원식^직원식^직원식^직원야식^직원야식^직원야식^출고금액" colsep="^" colwidth="70, 33, 80, 150, 60, 55, 40, 50, 52, 48, 47, 59, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:101px; width:1193px; height:649px; ">
- <col ref="windd" format="9999-99-99" style="text-align:center; "/>
- <col ref="winseqno" style="text-align:center; "/>
- <col ref="goodcd" disable="true"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="exchqty" style="text-align:right; "/>
- <col ref="patmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="curemealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="empmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="empnigtmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="patmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="patmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="patmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="iokindcd" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="delivepsn" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="deliveunitcost" visibility="hidden"/>
- <col ref="winno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_nutrdelive.col == grd_nutrdelive.colRef("goodcd") && grd_nutrdelive.rowStatus(grd_nutrdelive.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_nutrdelive,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- var cur_row = grd_nutrdelive.row;
- var status = grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "nutrdelivelist");
-
- fSettingGoodList("/root/copynode", "nutrdelivelist" , "userqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_nutrdelive.col == grd_nutrdelive.colRef("goodcd") && grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodcd")).length> 0) {
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "reqdeptcd,refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm", ipt_delivedeptcd.value +",goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodcd") + ",,," ,"","goodcd,goodnm,goodmodel,prodcmpynm,purcunit,stocqty,minexch,goodunitcost",grd_nutrdelive,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodflag"),"Y");
- model.refresh();
-
- if( grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("goodnm")).length> 0)
- {
- // if(model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") > 0)
- // {
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/patmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/curemealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empnigtmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // }
- // else
- // {
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/patmealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/curemealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empmealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empnigtmealdeliveqty","1");
- // }
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveunit" , model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodunitcost" ,model.getValue("/root/init/main/goodlist/goodunitcost"));
-
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/exchqty" ,model.getValue("/root/init/main/goodlist/exchqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/patmealstocqty" ,model.getValue("/root/init/main/goodlist/stocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/curemealstocqty" ,model.getValue("/root/init/main/goodlist/curemealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/empmealstocqty" ,model.getValue("/root/init/main/goodlist/empmealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/empnigtmealstocqty" ,model.getValue("/root/init/main/goodlist/empnigtmealstocqty"));
-
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/orgloc" ,model.getValue("/root/init/main/goodlist/orgloc"));
- }
- model.recalculate();
- model.refresh();
-
- var cur_row = grd_nutrdelive.row;
- var status = grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/delivedeptqty" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveunit" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveamt" , "");
-
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/orgloc" ,"");
- grd_nutrdelive.col = grd_nutrdelive.colRef("goodcd");
- grd_nutrdelive.editCell();
- }
- else if(CSV.length > 0)
- {
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "nutrdelivelist");
-
- fSettingGoodList("/root/copynode", "nutrdelivelist" , "userqty");
- }
- }
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // 영양팀은 품목명칭에서 값을 입력할수 있다.. HBH
- // 입력값과 일치건이 1일경우 코드 REPLACE
- // 없을경우 FIND
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(grd_nutrdelive.col == grd_nutrdelive.colRef("goodnm") && grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodnm")).length> 0
- && grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodcd")).length== 0 )
- {
-
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // validation을 하기 위해 임시 column 을 둔다. HBH
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- model.setValue(tmp_goodcd.attribute("ref") ,"%" );
- model.setValue(tmp_goodnm.attribute("ref") ,grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodnm")) );
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "reqdeptcd,refcond,instcd,goodflag,goodnm,goodcd,indexgb,indexnm", ipt_delivedeptcd.value + ",goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(cmb_goodflag.attribute("ref")) + ","+model.getValue(tmp_goodnm.attribute("ref")) + ",,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm,purcunit,stocqty,minexch,goodflag,ddavguseqty,maincustlastsuplplce,suppcustcd,goodunitcost,deliveunit,exchqty",grd_nutrdelive,"SPRSD00210","instcd,goodflag,goodnm","cmb_instcd,cmb_goodflag,tmp_goodnm","Y");
- model.refresh();
-
- if(grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.colRef("goodcd")).length> 0) {
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "reqdeptcd,refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm", ipt_delivedeptcd.value + ",goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodcd") + ",,,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm,purcunit,stocqty,minexch,goodflag,ddavguseqty,maincustlastsuplplce,suppcustcd,goodunitcost",grd_nutrdelive,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag","Y");
- model.refresh();
- if( grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("goodnm")).length> 0)
- {
- // if(model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") > 0)
- // {
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/patmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/curemealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empnigtmealdeliveqty",model.getValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/minexch") );
- // }
- // else
- // {
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/patmealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/curemealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empmealdeliveqty","1");
- // model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/empnigtmealdeliveqty","1");
- // }
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveunit" , model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodunitcost" ,model.getValue("/root/init/main/goodlist/goodunitcost"));
-
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/exchqty" ,model.getValue("/root/init/main/goodlist/exchqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/patmealstocqty" ,model.getValue("/root/init/main/goodlist/stocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/curemealstocqty" ,model.getValue("/root/init/main/goodlist/curemealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/empmealstocqty" ,model.getValue("/root/init/main/goodlist/empmealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/empnigtmealstocqty" ,model.getValue("/root/init/main/goodlist/empnigtmealstocqty"));
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/orgloc" ,model.getValue("/root/init/main/goodlist/orgloc"));
- }
-
- model.recalculate();
- model.refresh();
-
- var cur_row = grd_nutrdelive.row;
- var status = grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_nutrdelive.valueMatrix(cur_row, grd_nutrdelive.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/delivedeptqty" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveunit" , "");
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/deliveamt" , "");
-
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1) + "]/orgloc" , "");
-
- grd_nutrdelive.col = grd_nutrdelive.colRef("goodcd");
- grd_nutrdelive.editCell();
- }
- else if(CSV.length > 0)
- {
- model.setValue(grd_nutrdelive.nodeset + "[" + (grd_nutrdelive.row - grd_nutrdelive.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "nutrdelivelist");
-
- fSettingGoodList("/root/copynode", "nutrdelivelist" , "userqty");
- }
- }
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_nutrdelive.colAttribute(grd_nutrdelive.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_nutrdelive.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_nutrdelive.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrdelive.col = curcol;
- grd_nutrdelive.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_nutrdelive.colAttribute(grd_nutrdelive.col, "type").indexOf ("input") == -1)
- {
- if(grd_nutrdelive.col - 1 == grd_nutrdelive.colRef("goodcd") && grd_nutrdelive.valueMatrix(grd_nutrdelive.row, grd_nutrdelive.col - 1).length == 0)
- {
- grd_nutrdelive.col = grd_nutrdelive.colRef("goodcd");
- grd_nutrdelive.editCell();
- return;
- }
- for(curcol = grd_nutrdelive.col ; curcol <grd_nutrdelive.cols ; curcol++)
- {
- if(grd_nutrdelive.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrdelive.col = curcol;
- grd_nutrdelive.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_nutrdelive.col == grd_nutrdelive.colRef("patmealdeliveqty_input"))
- {
- fgridDeliveCountSetting("patmealdeliveqty_input", "patmealstocqty", "patmealdeliveqty")
- }
- else if(grd_nutrdelive.col == grd_nutrdelive.colRef("curemealdeliveqty_input"))
- {
- fgridDeliveCountSetting("curemealdeliveqty_input", "curemealstocqty", "curemealdeliveqty")
- }
- else if(grd_nutrdelive.col == grd_nutrdelive.colRef("empmealdeliveqty_input"))
- {
- fgridDeliveCountSetting("empmealdeliveqty_input", "empmealstocqty", "empmealdeliveqty")
- }
- else if(grd_nutrdelive.col == grd_nutrdelive.colRef("empnigtmealdeliveqty_input"))
- {
- fgridDeliveCountSetting("empnigtmealdeliveqty_input", "empnigtmealstocqty", "empnigtmealdeliveqty")
- }
- model.recalculate();
- fAfterRetrieve();
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <input id="tmp_goodcd" ref="/root/send/nutrdelive/tmp_goodcd" visibility="hidden" style="left:993px; top:15px; width:27px; height:19px; "/>
- <input id="tmp_goodnm" ref="/root/send/nutrdelive/tmp_goodnm" visibility="hidden" style="left:1051px; top:15px; width:27px; height:19px; "/>
- <line id="line2" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:62px; "/>
- <caption id="caption5" class="cell_1" style="left:800px; top:75px; width:85px; height:17px; text-align:center; ">출 고 유 형</caption>
- <caption id="caption7" class="search_name" style="left:15px; top:19; width:120px; height:17px; ">기 관 코 드 :</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:45px; width:99px; height:17px; ">출고담당자 :</caption>
- <caption id="caption11" class="search_name" style="left:353px; top:19; width:120px; height:17px; ">출 고 일 자 :</caption>
- <caption id="caption1" style="left:591px; top:72px; width:80px; height:23px; vertical-align:middle; ">출고합계 :</caption>
- <input id="ipt_goodnm" ref="/root/send/nutrdelive/goodnm" class="input_fix" appearance="input" style="left:586px; top:44px; width:139px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- ipt_goodcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/nutrdelive/goodcd" class="input_search" imemode="disabled" _chartype="upper" style="left:459px; top:44px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value.length == 0)
- ipt_goodnm.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption16" class="search_name" style="left:353px; top:45px; width:99px; height:17px; ">식자재코드 :</caption>
- <button id="button10" class="icon_search" style="left:567px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1134px; top:73px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_nutrdelive.rows != grd_nutrdelive.fixedRows)
- {
- if(fCheckSaveData() == false)return;
- finsertionSetting();
- misfSave("TXRSO03102");
- btn_search.dispatch("DOMActivate");
- //if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1065px; top:75px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_excel1.rows != grd_excel1.fixedRows)
- {
- grd_nutrdelive.gridToInstance();
- grd_excel1.rebuild();
- misfSaveExcel(grd_excel1);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_excel1" nodeset="/root/main/list/nutrdelive/nutrdelivelist" visibility="hidden" caption="입고일자^순번^물품코드*^품명^원산지^단가^단위^환산수량^환자식현재고량^환자식현재고량^직원식현재고량^직원식현재고량^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^환자식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^직원식출고수량*^출고금액|입고일자^순번^물품코드*^품명^원산지^단가^단위^환산수량^일반식^치료식^직원식^직원야식^일반식^일반식^일반식^치료식^치료식^치료식^직원식^직원식^직원식^직원야식^직원야식^직원야식^출고금액" colsep="^" colwidth="70, 33, 80, 150, 60, 55, 40, 50, 52, 48, 47, 59, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:50px; top:315px; width:1098px; height:199px; ">
- <col ref="windd" format="9999-99-99" style="text-align:center; "/>
- <col ref="winseqno" style="text-align:center; "/>
- <col ref="goodcd" disable="true"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="exchqty" style="text-align:right; "/>
- <col ref="patmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="curemealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="empmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="empnigtmealstocqty" format="#,###.0" style="text-align:right; "/>
- <col ref="patmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="patmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="patmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty_sum" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty_input" type="input" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.0" maxlength="14.1" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case2">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1193px; height:59px; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:118px; x2:1193px; y2:118px; "/>
- <input id="ipt_delivefrdd" ref="/root/send/untrclose/delivefrdd" class="input_s_essential" inputtype="date" style="left:404px; top:18px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_goodflag_close" ref="/root/send/untrclose/goodflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:223px; top:97px; width:25px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd_close" ref="/root/send/untrclose/instcd" class="combo_s_essential" appearance="minimal" style="left:114px; top:18px; width:181px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="tit_2" style="left:5px; top:102px; width:118px; height:13px; ">마감내역</caption>
- <output id="ipt_sumdeliveqty_close" ref="/root/init/deliveqty_close" class="output_default" style="left:765px; top:96px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_sumdeliveamt_close" ref="/root/init/deliveamt_close" class="output_default" format="#,###" style="left:919px; top:96px; width:125px; height:19px; font-weight:bold; "/>
- <select1 id="cmb_iokindcd_close" ref="/root/send/untrclose/iokindcd" class="combo_s_essential" appearance="minimal" style="left:114px; top:43px; width:181px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search_close.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_delivedeptcd_close" ref="/root/send/untrclose/delivedeptcd" class="input_fix" visibility="hidden" appearance="input" style="left:196px; top:97px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:707px; top:94px; width:80px; height:23px; vertical-align:middle; ">출고건수 :</caption>
- <input id="ipt_delivepsn_close" ref="/root/send/untrclose/delivepsn" class="input_default" visibility="hidden" appearance="input" style="left:115px; top:97px; width:25px; height:19px; "/>
- <output id="opt_delivepsnnm_close" ref="/root/send/untrclose/delivepsnnm" class="output_fix" appearance="output" style="left:802px; top:74px; width:181px; height:19px; "/>
- <button id="btn_search_close" class="btn1_letter2" navindex="7" style="left:1124px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- misfGridInit(grd_nutrclose);
- submit("TRRSO03103");
- fAfterRetrieve_close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_nutrclose" nodeset="/root/main/list/close/closelist" caption="마감여부^출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^환자식출고수량*^환자식출고수량*^직원식출고수량*^직원식출고수량*^출고금액^출고자|마감여부^출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^일반식^치료식^직원식^직원야식^출고금액^출고자" colsep="^" colwidth="90, 88, 90, 45, 90, 250, 90, 54, 54, 54, 54, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:123px; width:1193px; height:627px; ">
- <col ref="endcnfmyn" style="text-align:center; "/>
- <col ref="delivedd" format="9999-99-99" style="text-align:center; "/>
- <col ref="iokindcd" style="text-align:center; "/>
- <col ref="deliveno" style="text-align:center; "/>
- <col ref="deliveseqno" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="patmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="delivepsn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" visibility="hidden" style="text-align:center; "/>
- <col ref="exchqty" visibility="hidden" style="text-align:right; "/>
- <col ref="iokindcd" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="predelivedeptqty" visibility="hidden"/>
- </datagrid>
- <input id="tmp_goodcd_close" ref="/root/send/untrclose/tmp_goodcd" visibility="hidden" style="left:142px; top:97px; width:25px; height:19px; "/>
- <input id="tmp_goodnm_close" ref="/root/send/untrclose/tmp_goodnm" visibility="hidden" style="left:169px; top:97px; width:25px; height:19px; "/>
- <line id="line4" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:62px; "/>
- <caption id="caption10" class="search_name" style="left:15px; top:44px; width:120px; height:17px; ">출 고 유 형:</caption>
- <caption id="caption12" class="search_name" style="left:15px; top:19; width:120px; height:17px; ">기 관 코 드:</caption>
- <caption id="caption13" class="cell_1" style="left:706px; top:75px; width:90px; height:17px; text-align:center; ">마감담당자</caption>
- <caption id="caption14" class="search_name" style="left:303px; top:19px; width:120px; height:17px; ">출 고 일 자 :</caption>
- <caption id="caption15" style="left:860px; top:94px; width:80px; height:23px; vertical-align:middle; ">출고합계 :</caption>
- <input id="ipt_goodnm_close" ref="/root/send/untrclose/goodnm" class="input_fix" appearance="input" style="left:521px; top:43px; width:149px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- ipt_goodcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd_close.attribute("ref")) + "," + model.getValue(cmb_goodflag_close.attribute("ref")) + "," + model.getValue(ipt_goodnm_close.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd_close" ref="/root/send/untrclose/goodcd" class="input_search" _chartype="upper" style="left:404px; top:43px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd_close.value.length == 0)
- ipt_goodnm_close.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd_close.attribute("ref")) + "," + model.getValue(cmb_goodflag_close.attribute("ref")) + "," + model.getValue(ipt_goodcd_close.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd_close,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_goodcd_close" class="icon_search" style="left:502px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd_close,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd_close,cmb_goodflag_close");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="search_name" style="left:303px; top:44px; width:99px; height:17px; ">식자재코드 :</caption>
- <input id="ipt_delivetodd" ref="/root/send/untrclose/delivetodd" class="input_s_essential" inputtype="date" style="left:521px; top:18px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" style="left:505px; top:20px; width:25px; height:20px; ">~</caption>
- <button id="button1" class="btn4_letter2" style="left:1134px; top:95px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_nutrclose.rows != grd_nutrclose.fixedRows)
- {
- if(rdo_sumflag.value == "N")
- {
- if(fCheckSaveData() == false)return;
-
- finsertionSetting_close();
-
- model.setValue("/root/send/save/closelist", grd_nutrclose.getUpdateData());
-
- submit("TXRSO03103");
- btn_search_close.dispatch("DOMActivate");
- //if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search_close.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_sumflag" ref="/root/send/untrclose/sumflag" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:780px; top:18px; width:195px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/sumflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption19" class="search_name" style="left:690px; top:19px; width:86px; height:17px; ">구 분 :</caption>
- <select1 id="rdo_endflag" ref="/root/send/untrclose/endcnfmyn" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:780px; top:43px; width:310px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/endcnfmyn">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption20" class="search_name" style="left:690px; top:44px; width:86px; height:17px; ">마감여부 :</caption>
- <caption id="cap_S" style="left:562px; top:95px; width:25px; height:23px; font-weight:bold; vertical-align:middle; ">S :</caption>
- <output id="opt_S" ref="/root/hidden/S" class="output_default" style="left:586px; top:95px; width:40px; height:19px; font-weight:bold; "/>
- <caption id="cap_T" style="left:491px; top:95px; width:25px; height:23px; font-weight:bold; vertical-align:middle; ">T :</caption>
- <output id="opt_T" ref="/root/hidden/T" class="output_default" style="left:515px; top:95px; width:40px; height:19px; font-weight:bold; "/>
- <caption id="cap_G" style="left:416px; top:95px; width:25px; height:23px; font-weight:bold; vertical-align:middle; ">G :</caption>
- <output id="opt_G" ref="/root/hidden/G" class="output_default" style="left:440px; top:95px; width:40px; height:19px; font-weight:bold; "/>
- <caption id="caption21" style="left:632px; top:95px; width:25px; height:23px; font-weight:bold; vertical-align:middle; ">N :</caption>
- <output id="opt_N" ref="/root/hidden/N" class="output_default" style="left:656px; top:95px; width:40px; height:19px; font-weight:bold; "/>
- <input id="ipt_endcnfmdd" ref="/root/send/untrclose/endcnfmdd" class="input_s_essential" inputtype="date" style="left:1092px; top:74px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption22" class="cell_1" style="left:1000px; top:75px; width:85px; height:17px; text-align:center; ">마 감 일 자</caption>
- <button id="btn_excel2" class="btn2_letter4" style="left:1061px; top:97px; width:64px; height:19px; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_excel.rows != grd_excel.fixedRows) misfSaveExcel(grd_excel2);
- ]]>
- </script>
- </button>
- <datagrid id="grd_excel2" nodeset="/root/main/list/close/closelist" visibility="hidden" caption="마감확정^출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^환자식출고수량*^환자식출고수량*^직원식출고수량*^직원식출고수량*^출고금액^출고자|마감확정^출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^일반식^치료식^직원식^직원야식^출고금액^출고자" colsep="^" colwidth="90, 88, 90, 45, 90, 250, 90, 54, 54, 54, 54, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:15px; top:345px; width:1165px; height:222px; ">
- <col ref="endcnfmyn"/>
- <col ref="delivedd" format="9999-99-99" style="text-align:center; "/>
- <col ref="iokindcd" style="text-align:center; "/>
- <col ref="deliveno" style="text-align:center; "/>
- <col ref="deliveseqno" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="patmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="delivepsn"/>
- </datagrid>
- </case>
- </switch>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:1065px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1191px; y2:25px; "/>
- </group>
- <button id="btn_delive" class="btn_sw" group="tab" selected="true" style="left:0px; top:14px; width:78px; height:22px; ">
- <caption>출고관리</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_1" class="btn_sw" group="tab" style="left:78px; top:14px; width:78px; height:22px; ">
- <caption>마감관리</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|