123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>입고내역조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <nutrwin>
- <nutrwinlist/>
- </nutrwin>
- <nutrcustwin>
- <nutrcustwinlist/>
- </nutrcustwin>
- </list>
- <item/>
- </main>
- <send>
- <nutrwin>
- <instcd/>
- <goodflag/>
- <windd/>
- <winno/>
- <winpsn/>
- <winpsnnm/>
- <windeptcd/>
- <windeptnm/>
- <delivepsn/>
- <delivepsnnm/>
- <delivedeptcd/>
- <delivedeptnm/>
- <installplcecd/>
- <installplcenm/>
- <paycond/>
- <suplplcecd/>
- <suplplcenm/>
- <temppay/>
- <calcdocukind/>
- <elctstmntyn/>
- <calcdocudd/>
- <purcdmndfrdd/>
- <purcdmndtodd/>
- <addtax/>
- <iokind/>
- <winfrdd/>
- <wintodd/>
- <goodcd/>
- <goodnm/>
- <calccnfmyn/>
- <addtaxyn/>
- </nutrwin>
- <sendlist>
- <nutrwinlist/>
- <untrcustwinlist/>
- </sendlist>
- </send>
- <init>
- <winqty/>
- <patmealwinqty/>
- <curemealwinqty/>
- <empmealwinqty/>
- <empnigtmealwinqty/>
- <winamt/>
- <patmealwinamt/>
- <curemealwinamt/>
- <empmealwinamt/>
- <empnigtmealwinamt/>
- <custwinamt/>
- <custpatmealwinamt/>
- <custcuremealwinamt/>
- <custempmealwinamt/>
- <custempnigtmealwinamt/>
- <calccnfmdd/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- <init>
- <calcdoukind/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSI05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nutrwin" resultref="/root/main/list/nutrwin"/>
- <submission id="TXRSI05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/temp"/>
- <submission id="TRRSI05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nutrwin" resultref="/root/main/list/nutrcustwin"/>
- <submission id="TXRSI05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // <bind id="winunitcost" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/winunitcost" calculate="../goodunitcost"/>
- // <bind id="nonpatmealwinamt" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/patmealwinamt" calculate="../goodunitcost *../patmealwinqty"/>
- // <bind id="noncuremealwinamt" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/curemealwinamt" calculate="../goodunitcost *../curemealwinqty"/>
- // <bind id="nonempmealwinamt" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/empmealwinamt" calculate="../goodunitcost *../empmealwinqty"/>
- // <bind id="nonempnigtmealwinamt" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/empnigtmealwinamt" calculate="../goodunitcost *../empnigtmealwinqty"/>
- // <bind id="nonwinqty" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/winqty" calculate="../patmealwinqty +../curemealwinqty + ../empmealwinqty +../empnigtmealwinqty"/>
- // <bind id="nonwinamt" ref="/root/main/list/nutrtnonwin/nutrnonwinlist/winamt" calculate="../winqty * ../goodunitcost"/>
- // <bind id="patmealwinamt" ref="/root/main/list/nutrwin/nutrwinlist/patmealwinamt" calculate="../winunitcost *../patmealwinqty"/>
- // <bind id="curemealwinamt" ref="/root/main/list/nutrwin/nutrwinlist/curemealwinamt" calculate="../winunitcost *../curemealwinqty"/>
- // <bind id="empmealwinamt" ref="/root/main/list/nutrwin/nutrwinlist/empmealwinamt" calculate="../winunitcost *../empmealwinqty"/>
- // <bind id="empnigtmealwinamt" ref="/root/main/list/nutrwin/nutrwinlist/empnigtmealwinamt" calculate="../winunitcost *../empnigtmealwinqty"/>
- // <bind id="sumpatqty" ref="/root/main/list/nutrwin/nutrwinlist/sumpatqty" calculate="../patmealwinqty +../curemealwinqty"/>
- // <bind id="sumempqty" ref="/root/main/list/nutrwin/nutrwinlist/sumempqty" calculate="../empmealwinqty +../empnigtmealwinqty"/>
- // <bind id="sumpatamt" ref="/root/main/list/nutrwin/nutrwinlist/sumpatamt" calculate="../sumpatqty *../winunitcost"/>
- // <bind id="sumempamt" ref="/root/main/list/nutrwin/nutrwinlist/sumempamt" calculate="../sumempqty *../winunitcost"/>
- // <bind id="winqty" ref="/root/main/list/nutrwin/nutrwinlist/winqty" calculate="../patmealwinqty +../curemealwinqty + ../empmealwinqty +../empnigtmealwinqty"/>
- // <bind id="winamt" ref="/root/main/list/nutrwin/nutrwinlist/winamt" calculate="../sumpatamt +../sumempamt"/>
-
- var RetrYn = "Y";
- function fInitialize() {
- misfGridInit(grd_nutrwin);
- misfGridInit(grd_untrcustwinlist);
- grd_nutrwin.rowHeight(0) = "20";
- grd_nutrwin.rowHeight(1) = "20";
- model.resetInstanceNode("/root/send");
-
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
-
- // misfComboComCdList("Z0007", cmb_instcd, "N");
- //misfComboComCdList("R0109", grd_untrcustwinlist.calcdocu);
-
-
- misfComboComCdListMulti("Z0007,R0109" ,"cmb_instcd,grd_untrcustwinlist.calcdocukind");
-
- //misfComboCopyItemSet(combo_calcdoukind,"",grd_untrcustwinlist,"calcdocu"); //물품구분 콤보 노드카피
-
-
-
- model.removenode("/root/main/list/nutrwin/nutrwinlist");
- model.removenode("/root/main/list/nutrcustwin/nutrcustwinlist");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_winfrdd.attribute("ref") ,curdate);
- model.setValue(ipt_wintodd.attribute("ref") ,curdate);
- model.setValue(ipt_calccnfmdd.attribute("ref") ,curdate.substr(0,6));
- // hidden column
- model.setValue(cmb_goodflag.attribute("ref"),'SF');
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- //model.setValue(ipt_windeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- //model.makeValue("/root/send/nutrwin/windeptcd" , '3251000000');
- model.makeValue("/root/send/nutrwin/windeptcd" , getUserInfo("dutplcecd"));
-
- grd_nutrwin.explorerbar = "sortshow";
-
- //빈센트는 보이게 만든다.
- if(model.getValue(cmb_instcd.attribute("ref"))=='017'){
- caption19.visible = true;
- ipt_windeptcd2.visible = true;
- btn_windeptcd2.visible = true;
- ipt_windeptnm2.visible = true;
- }
-
-
- model.refresh();
- }
-
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- }
- return false;
- }
-
- /*
- if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("공급처를 " ,"C001");
- model.setFocus("ipt_suplplcecd");
- }
- return false;
- }
- */
-
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고부서를 " ,"C001");
- model.setFocus("ipt_windeptcd");
- }
- return false;
- }
- if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고시작일자를 " ,"C001");
- model.setFocus("ipt_winfrdd");
- }
- return false;
- }
-
- if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고종료일자를 " ,"C001");
- model.setFocus("ipt_wintodd");
- }
- return false;
- }
- return true;
- }
- function fGetMaxWinSeqNo()
- {
- var maxwinseqno = "";
- for(var currow = grd_nutrwin.fixedRows ; currow < grd_nutrwin.rows; currow++)
- {
- if(maxwinseqno < grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("winseqno")))
- maxwinseqno = grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("winseqno"));
- }
-
- if(maxwinseqno.length == 0)maxwinseqno = "001";
- else maxwinseqno = parseInt(maxwinseqno) + 1;
-
- maxwinseqno = "" + maxwinseqno;
- return maxwinseqno.getLeftPad(3,"0");
- }
-
-
-
- function fAfterRetrieveDay()
- {
- var winqty = 0;
- var winamt = 0;
- var patmealwinqty = 0;
- var curemealwinqty = 0;
- var empmealwinqty = 0;
- var empnigtmealwinqty = 0;
-
- var patmealwinamt = 0;
- var curemealwinamt = 0;
- var empmealwinamt = 0;
- var empnigtmealwinamt = 0;
-
- for(var currow = grd_nutrwin.fixedRows ; currow < grd_nutrwin.rows ; currow++)
- {
- winqty = winqty + parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("winqty")));
- winamt = winamt + 0 + parseFloat(grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("winamt")));
-
- if (parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("patmealwinqty"))) != 0 ) {
- patmealwinqty += 1;
- }
-
- if (parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("curemealwinqty"))) != 0) {
- curemealwinqty += 1;
- }
-
- if (parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("empmealwinqty"))) != 0) {
- empmealwinqty += 1;
- }
-
- if (parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("empnigtmealwinqty"))) != 0) {
- empnigtmealwinqty += 1;
- }
-
- patmealwinamt = patmealwinamt +
- parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("patmealwinamt")));
-
- curemealwinamt = curemealwinamt +
- parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("curemealwinamt")));
-
- empmealwinamt = empmealwinamt +
- parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("empmealwinamt")));
-
- empnigtmealwinamt = empnigtmealwinamt +
- parseFloat( grd_nutrwin.valueMatrix(currow , grd_nutrwin.colRef("empnigtmealwinamt")));
- }
-
- model.setValue(ipt_sumwinqty.attribute("ref"),grd_nutrwin.rows - grd_nutrwin.fixedRows);
- model.setValue(opt_sumwinamt.attribute("ref"),winamt);
-
- model.setValue(opt_patmealwinqty.attribute("ref"), patmealwinqty);
- model.setValue(opt_curemealwinqty.attribute("ref"),curemealwinqty);
- model.setValue(opt_empmealwinqty.attribute("ref"),empmealwinqty);
- model.setValue(opt_empnigtmealwinqty.attribute("ref"),empnigtmealwinqty);
-
- model.setValue(opt_patmealwinamt.attribute("ref"), patmealwinamt);
- model.setValue(opt_curemealwinamt.attribute("ref"), curemealwinamt);
- model.setValue(opt_empmealwinamt.attribute("ref"), empmealwinamt);
- model.setValue(opt_empnigtmealwinamt.attribute("ref"), empnigtmealwinamt);
- }
-
- function fAfterRetrieveCust()
- {
- var winamt = 0;
- var patmealwinamt = 0;
- var curemealwinamt = 0;
- var empmealwinamt = 0;
- var empnigtmealwinamt = 0;
-
- for(var currow = grd_untrcustwinlist.fixedRows ; currow < grd_untrcustwinlist.rows ; currow++)
- {
- winamt = winamt + 0 + parseFloat(grd_untrcustwinlist.valueMatrix(currow , grd_untrcustwinlist.colRef("winamt")));
-
- patmealwinamt = patmealwinamt +
- parseFloat( grd_untrcustwinlist.valueMatrix(currow , grd_untrcustwinlist.colRef("patmealwinamt")));
-
- curemealwinamt = curemealwinamt +
- parseFloat( grd_untrcustwinlist.valueMatrix(currow , grd_untrcustwinlist.colRef("curemealwinamt")));
-
- empmealwinamt = empmealwinamt +
- parseFloat( grd_untrcustwinlist.valueMatrix(currow , grd_untrcustwinlist.colRef("empmealwinamt")));
-
- empnigtmealwinamt = empnigtmealwinamt +
- parseFloat( grd_untrcustwinlist.valueMatrix(currow , grd_untrcustwinlist.colRef("empnigtmealwinamt")));
-
- if(grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("paytaxyn")) == "Y" && grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("calcdocukind")) == '') {
-
- grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("calcdocukind")) = "1"
- } else if(grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("paytaxyn")) == "N" && grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("calcdocukind")) == '') {
- grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("calcdocukind")) = "2"
- }
-
- grd_untrcustwinlist.valueMatrix(currow, grd_untrcustwinlist.colRef("goodflag")) = "SF"
-
- }
-
- model.setValue(opt_custsumwinamt.attribute("ref"),winamt);
-
- model.setValue(opt_custpatmealwinamt.attribute("ref"), patmealwinamt);
- model.setValue(opt_custcuremealwinamt.attribute("ref"), curemealwinamt);
- model.setValue(opt_custempmealwinamt.attribute("ref"), empmealwinamt);
- model.setValue(opt_custempnigtmealwinamt.attribute("ref"), empnigtmealwinamt);
-
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,788;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">입고 내역 정산</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:82px; "/>
- <input id="ipt_windeptcd" ref="/root/send/nutrwin/windeptcd" class="input_essential" visibility="hidden" maxlength="10" appearance="input" style="left:945px; top:70px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- if(RetrYn == "Y")btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="bnt_suplplcecd" class="icon_search" style="left:184px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_suplplcecd" ref="/root/send/nutrwin/suplplcecd" class="input_default" maxlength="10" style="left:100px; top:45px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcecd.value.length == 0)
- ipt_suplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_suplplcenm" ref="/root/send/nutrwin/suplplcenm" class="input_fix" appearance="input" style="left:204px; top:45px; width:191px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcenm.value.length == 0)
- ipt_suplplcecd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/nutrwin/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:21px; width:295px; 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>
- <select1 id="cmb_goodflag" ref="/root/send/nutrwin/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1155px; top:50px; width:35px; 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>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- //misfMsterDetailRetrieve();
-
- if(sw_flag.selectedIndex == 0)
- {
- submit("TRRSI05402");
-
- fAfterRetrieveDay();
-
- var prev_windd = '';
- var next_windd = '';
-
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_nutrwin.nodeset).length ; i++)
- {
- next_windd = model.getValue(grd_nutrwin.nodeset + "[" + i + "]/windd");
-
- if(prev_windd != next_windd && i != 1)
- {
- grd_nutrwin.rowStyle(i, "data", "border-bottom-color") = "#ffff00";
- grd_nutrwin.rowStyle(i, "data", "border-bottom-width") = "2";
- grd_nutrwin.rowStyle(i, "data", "border-bottom-style") = "outset";
- }
-
- prev_windd = next_windd;
- }
- }
- else if(sw_flag.selectedIndex == 1)
- {
- submit("TRRSI05403");
-
- fAfterRetrieveCust();
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_winfrdd" ref="/root/send/nutrwin/winfrdd" class="input_s_essential" inputtype="date" style="left:514px; top:18px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_wintodd" ref="/root/send/nutrwin/wintodd" class="input_s_essential" inputtype="date" style="left:641px; top:18px; width:104px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption22" style="left:624px; top:19px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <input id="ipt_goodcd" ref="/root/send/nutrwin/goodcd" class="input_search" _chartype="upper" style="left:514px; 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>
- <button id="button10" class="icon_search" style="left:622px; 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>
- <input id="ipt_goodnm" ref="/root/send/nutrwin/goodnm" class="input_fix" appearance="input" style="left:641px; top:44px; width:154px; height:21px; ">
- <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>
- <line id="line2" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:62px; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:45px; width:96px; height:17px; ">거 래 처 :</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption11" class="search_name" style="left:413px; top:45px; width:99px; height:17px; ">식자재코드 :</caption>
- <caption id="caption12" class="search_name" style="left:413px; top:19px; width:120px; height:17px; ">입 고 일 자 :</caption>
- <select1 id="rdo_flag" ref="/root/send/nutrwin/calccnfmyn" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:890px; top:19px; width:220px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>미정산</label>
- <value>N</value>
- </item>
- <item>
- <label>정산확정</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:800px; top:19px; width:86px; height:17px; ">사용여부 :</caption>
- <button id="btn_custpr" class="btn_sw" group="tab" style="left:76px; top:100px; width:94px; height:22px; ">
- <caption>거 래 처 별</caption>
- <toggle case="case_grdmonthpr" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- sw_flag.selectedIndex = 1;
-
- ipt_goodcd.visible = false;
- ipt_goodnm.visible = false;
- caption11.visible = false;
- button10.visible = false;
-
- rdo_addtaxyn.visible = false;
- caption2.visible = false;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_daypr" class="btn_sw" group="tab" selected="true" style="left:0px; top:100px; width:75px; height:22px; ">
- <caption>일 자 별</caption>
- <toggle case="case_grddaypr" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- sw_flag.selectedIndex = 0;
-
- ipt_goodcd.visible = true;
- ipt_goodnm.visible = true;
- caption11.visible = true;
- button10.visible = true;
-
- rdo_addtaxyn.visible = false;
- caption2.visible = false;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:800px; top:44px; width:86px; height:17px; ">과세여부 :</caption>
- <select1 id="rdo_addtaxyn" ref="/root/send/nutrwin/addtaxyn" visibility="hidden" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:890px; top:44px; width:235px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>과 세</label>
- <value>Y</value>
- </item>
- <item>
- <label>비 과 세</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_windeptnm2" ref="/root/send/nutrwin/windeptnm" class="input_fix" visibility="hidden" appearance="input" style="left:225px; top:70px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_windeptnm2.value.length == 0)
- ipt_windeptcd2.value = "";
- else
- // rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- // "deptnm," + ipt_windeptnm.value, "", "windeptcd,windeptnm",
- // ipt_windeptnm, "SPRPZ00200", "","");
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_windeptcd2" class="icon_search" visibility="hidden" style="left:203px; top:70px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "windeptcd,windeptnm";
- var instcd = cmb_instcd.value;
- misfOpenPopUpList("02", ipt_windeptcd2,"", recv_list, instcd, "instcd") ;
- model.refresh();
- //if(RetrYn == "Y")btn_search2.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_windeptcd2" ref="/root/send/nutrwin/windeptcd" class="input_essential" visibility="hidden" maxlength="10" appearance="input" style="left:100px; top:70px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_windeptcd2.value.length == 0)
- ipt_windeptnm2.value = "";
- else
- // rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- // "deptcd," + ipt_windeptcd.value, "", "windeptcd,windeptnm",
- // ipt_windeptcd, "SPRPZ00200", "","");
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- //if(RetrYn == "Y")btn_search2.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption19" class="search_name" visibility="visible" style="left:15px; top:70px; width:93px; height:17px; ">입고부서:</caption>
- </group>
- <switch id="sw_flag" class="sw_box" style="left:0px; top:160px; width:1195px; height:620px; border-style:solid; ">
- <case id="case_grddaypr" selected="true">
- <datagrid id="grd_nutrwin" nodeset="/root/main/list/nutrwin/nutrwinlist" visibility="visible" caption="정산
확정^입고일자^순번^주거래처^보조거래처^입출유형^품목코드^발주번호^품목명칭^원산지^단가^단위^환자식입고수량*^환자식입고수량*^소계^직원식입고수량*^직원식입고수량*^소계^환자식 입고금액^환자식 입고금액^소계^직원식 입고금액^직원식 입고금액^소계^총입고금액^입고자^증빙유형^비고|정산
확정^입고일자^순번^주거래처^보조거래처^입출유형^품목코드^발주번호^품목명칭^원산지^단가^단위^일반식^치료식^소계^직원식^직원야식^소계^일반식^치료식^소계^직원식^직원야식^소계^총입고금액^입고자^증빙유형^비고" colsep="^" colwidth="40, 70, 31, 72, 73, 66, 76, 0, 127, 90, 63, 41, 50, 50, 50, 50, 54, 50, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:53px; width:1193px; height:512px; ">
- <col ref="calccnfmyn" style="text-align:center; "/>
- <col ref="windd" format="9999-99-99"/>
- <col ref="winseqno"/>
- <col ref="suplplcenm"/>
- <col ref="suppcustnm"/>
- <col ref="iokindnm"/>
- <col ref="goodcd"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="winunitcost" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="patmealwinqty" format="#,###.#" maxlength="11.2" style="text-align:right; "/>
- <col ref="curemealwinqty" format="#,###.#" maxlength="11.2" style="text-align:right; "/>
- <col ref="sumpatqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="empmealwinqty" format="#,###.#" maxlength="11.2" style="text-align:right; "/>
- <col ref="empnigtmealwinqty" format="#,###.#" maxlength="11.2" style="text-align:right; "/>
- <col ref="sumempqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="patmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="curemealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="sumpatamt" format="#,###.0" style="text-align:right; "/>
- <col ref="empmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="empnigtmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="sumempamt" format="#,###.0" style="text-align:right; "/>
- <col ref="winamt" format="#,###.0" style="text-align:right; "/>
- <col ref="winpsnnm" style="text-align:center; "/>
- <col disabled="true" ref="calcdocukind" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>과세</label>
- <value>Y</value>
- </item>
- <item>
- <label>비과세</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" visibility="hidden"/>
- <col ref="winpackqty" visibility="hidden"/>
- <col ref="winpackunit" visibility="hidden"/>
- <col ref="winpackcntperunit" visibility="hidden"/>
- <col ref="winqty" visibility="hidden"/>
- <col ref="reqqty" visibility="hidden"/>
- <col ref="winamt" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="stocqty" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="winpsn" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="paycond" visibility="hidden"/>
- <col ref="temppay" visibility="hidden"/>
- <col ref="elctstmntyn" visibility="hidden"/>
- <col ref="iokind" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="purcdmnddd" visibility="hidden"/>
- <col ref="purcdmndno" visibility="hidden"/>
- <col ref="purcdmndseq" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="bnscd" visibility="hidden"/>
- <col ref="calcdocudd" visibility="hidden"/>
- <col ref="profno" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="valiterm" visibility="hidden"/>
- <col ref="stocynindx" visibility="hidden"/>
- <col ref="chkdd" visibility="hidden"/>
- <col ref="chkpsn" visibility="hidden"/>
- <col ref="chkyn" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="prewinqty" visibility="hidden"/>
- <col ref="minexch" visibility="hidden"/>
- <col ref="prewinqty" visibility="hidden"/>
- <col ref="calccnfmdd" visibility="hidden"/>
- <col ref="winprcsflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.rowStatus(grd_nutrwin.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
- rszfOpenPopUpListByWndName(grd_nutrwin,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- var cur_row = grd_nutrwin.row;
- var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "nutrwinlist");
-
- fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.colRef("goodcd")).length> 0) {
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd") + ",,,," ,"","goodcd,goodnm,minexch,goodunitcost",grd_nutrwin,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag"),"Y");
- model.refresh();
-
- if( grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length> 0)
- {
- // if(model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") > 0)
- // {
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- // }
- // else
- // {
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , "1");
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , "1");
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , "1");
- // model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , "1");
- // }
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" ,model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" ,1);
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" ,1);
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/iokind" ,model.getValue(cmb_instcd.attribute("ref")) );
- }
- model.recalculate();
- model.refresh();
-
- var cur_row = grd_nutrwin.row;
- var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winqty" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winamt" , "");
- grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
- grd_nutrwin.editCell();
- }
- if(CSV.length > 0)
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "nutrwinlist");
- fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_nutrwin.colAttribute(grd_nutrwin.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_nutrwin.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrwin.col = curcol;
- grd_nutrwin.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_nutrwin.colAttribute(grd_nutrwin.col, "type").indexOf ("input") == -1)
- {
- if(grd_nutrwin.col - 1 == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.col - 1).length == 0)
- {
- grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
- grd_nutrwin.editCell();
- return;
- }
- for(curcol = grd_nutrwin.col ; curcol <grd_nutrwin.cols ; curcol++)
- {
- if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrwin.col = curcol;
- grd_nutrwin.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_nutrwin.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <output id="opt_empnigtmealwinqty" ref="/root/init/empnigtmealwinqty" class="output_default" style="left:1109px; top:7px; width:40px; height:19px; font-weight:bold; "/>
- <output id="opt_empnigtmealwinamt" ref="/root/init/empnigtmealwinamt" class="output_default" format="(-)#,###" style="left:1109px; top:30px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_curemealwinqty" ref="/root/init/curemealwinqty" class="output_default" style="left:914px; top:7px; width:40px; height:19px; font-weight:bold; "/>
- <caption id="caption3" style="left:888px; top:6px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(T):</caption>
- <output id="opt_empmealwinqty" ref="/root/init/empmealwinqty" class="output_default" style="left:1012px; top:7px; width:40px; height:19px; font-weight:bold; "/>
- <output id="opt_patmealwinqty" ref="/root/init/patmealwinqty" class="output_default" style="left:817px; top:7px; width:40px; height:19px; font-weight:bold; "/>
- <output id="opt_curemealwinamt" ref="/root/init/curemealwinamt" class="output_default" format="(-)#,###" style="left:914px; top:30px; width:70px; height:19px; font-weight:bold; "/>
- <caption id="caption24" style="left:985px; top:6px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(S):</caption>
- <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" style="left:690px; top:7px; width:54px; height:19px; font-weight:bold; "/>
- <output id="opt_patmealwinamt" ref="/root/init/patmealwinamt" class="output_default" format="(-)#,###" style="left:817px; top:30px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_empmealwinamt" ref="/root/init/empmealwinamt" class="output_default" format="(-)#,###" style="left:1012px; top:30px; width:70px; height:19px; font-weight:bold; "/>
- <caption id="caption25" style="left:1083px; top:6px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(N):</caption>
- <caption id="caption26" style="left:888px; top:29px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(T):</caption>
- <caption id="caption27" style="left:985px; top:29px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(S):</caption>
- <caption id="caption4" style="left:627px; top:6px; width:65px; height:23px; font-weight:bold; vertical-align:middle; ">입고건수 :</caption>
- <caption id="caption28" style="left:1083px; top:29px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(N):</caption>
- <caption id="caption5" style="left:627px; top:29px; width:65px; height:23px; font-weight:bold; vertical-align:middle; ">입고합계 :</caption>
- <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="#,###" style="left:690px; top:30px; width:99px; height:19px; font-weight:bold; "/>
- <caption id="caption29" style="left:789px; top:29px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(G):</caption>
- <caption id="caption10" style="left:789px; top:6px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(G):</caption>
- <button id="button1" class="btn4_letter4" style="left:192px; top:28px; width:80px; height:22px; ">
- <caption>정산확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (rdo_flag.value != 'Y')
- {
- //model.setValue("/root/send/nutrwin/calccnfmyn", 'Y');
-
-
- for(var i = grd_nutrwin.fixedRows ; i < grd_nutrwin.rows ; i++)
- {
- grd_nutrwin.rowStatus(i) = 2;
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("calccnfmyn")) = "Y";
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("winprcsflag")) = "8";
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("calccnfmdd" )) = model.getValue(ipt_calccnfmdd.attribute("ref")) ;
-
- }
-
- model.setValue("/root/send/sendlist/nutrwinlist", grd_nutrwin.getUpdateData());
-
- if(grd_nutrwin.getUpdateData() != "")
- {
- submit("TXRSI05404");
- btn_search.dispatch("DOMActivate");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" style="left:275px; top:28px; width:80px; height:22px; ">
- <caption>정산취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(rdo_flag.value != 'N')
- {
- //model.setValue("/root/send/nutrwin/calccnfmyn", 'N');
- for(var i = grd_nutrwin.fixedRows ; i < grd_nutrwin.rows ; i++)
- {
- grd_nutrwin.rowStatus(i) = 2;
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("calccnfmyn" )) = "N";
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("winprcsflag")) = "0";
- grd_nutrwin.valueMatrix(i, grd_nutrwin.colRef("calccnfmdd" )) = "0";
- }
-
- model.setValue("/root/send/sendlist/nutrwinlist", grd_nutrwin.getUpdateData());
-
- if(grd_nutrwin.getUpdateData() != "")
- {
- submit("TXRSI05404");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_calccnfmdd" ref="/root/init/calccnfmdd" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100px; top:28px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:5px; top:28px; width:90px; height:17px; ">정산년월 :</caption>
- </case>
- <case id="case_grdmonthpr">
- <datagrid id="grd_untrcustwinlist" nodeset="/root/main/list/nutrcustwin/nutrcustwinlist" visibility="visible" caption="기관코드^주거래처코드^전표일자^전표번호^물품구분^입고시작^입고끝^입고부서코드^주거래처^환자식입고금액*^환자식입고금액*^소계^직원식입고금액*^직원식입고금액*^소계^입고금액^입고금액^총입고금액^과세여부^계산서유형^계산서일자|기관코드^주거래처코드^전표일자^전표번호^물품구분^입고시작^입고끝^입고부서코드^주거래처^일반식^치료식^소계^직원식^직원야식^소계^환자식^직원식^총입고금액^과세여부^계산서유형^계산서일자" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 140, 100, 100, 100, 60, 60, 80, 100, 100, 100, 29, 34, 15" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1100px; height:615px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="winfrdd" visibility="hidden"/>
- <col ref="wintodd" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="suplplcenm"/>
- <col ref="patmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="curemealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="pattotamt" format="#,###.0" style="text-align:right; "/>
- <col ref="empmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="empnigtmealwinamt" format="#,###.0" style="text-align:right; "/>
- <col ref="emptotamt" format="#,###.0" style="text-align:right; "/>
- <col ref="patmealwintotamt" format="#,###.0" style="text-align:right; "/>
- <col ref="empmealwintotamt" format="#,###.0" style="text-align:right; "/>
- <col ref="winamt" format="#,###.0" style="text-align:right; "/>
- <col ref="paytaxyn" visibility="hidden" style="text-align:center; "/>
- <col ref="calcdocukind" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="calcdocudd" type="input" visibility="hidden" format="yyyy-mm-dd" _required="true"/>
- </datagrid>
- <output id="opt_custempnigtmealwinamt" ref="/root/init/custempnigtmealwinamt" class="output_default" format="(-)#,###" style="left:1031px; top:5px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_custcuremealwinamt" ref="/root/init/custcuremealwinamt" class="output_default" format="(-)#,###" style="left:836px; top:5px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_custpatmealwinamt" ref="/root/init/custpatmealwinamt" class="output_default" format="(-)#,###" style="left:739px; top:5px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_custempmealwinamt" ref="/root/init/custempmealwinamt" class="output_default" format="(-)#,###" style="left:934px; top:5px; width:70px; height:19px; font-weight:bold; "/>
- <caption id="caption14" style="left:810px; top:4px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(T):</caption>
- <caption id="caption15" style="left:907px; top:4px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(S):</caption>
- <caption id="caption16" style="left:1005px; top:4px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(N):</caption>
- <caption id="caption17" style="left:549px; top:4px; width:65px; height:23px; font-weight:bold; vertical-align:middle; ">입고합계 :</caption>
- <output id="opt_custsumwinamt" ref="/root/init/custwinamt" class="output_default" format="#,###" style="left:612px; top:5px; width:99px; height:19px; font-weight:bold; "/>
- <caption id="caption18" style="left:711px; top:4px; width:30px; height:23px; font-weight:bold; vertical-align:middle; ">(G):</caption>
- <button id="btn_wincnfmcacl" class="btn5_letter5" visibility="hidden" style="left:1107px; top:5px; width:75px; height:19px; ">
- <caption>계산서등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkRequiredColumn("grd_untrcustwinlist")) return;
-
-
- model.setValue("/root/send/sendlist/untrcustwinlist", grd_untrcustwinlist.getUpdateData());
- submit("TXRSI05402");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="grp_head" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; 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:25px; x2:1195px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|