123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- <?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>
- <rsthrstnlist/>
- </main>
- <send>
- <instcd/>
- <goodflag>SF</goodflag>
- <orginspym/>
- <stocdeptcd/>
- <stocdeptnm/>
- <goodcd/>
- <goodnm/>
- <lrgcd/>
- <instcdnm/>
- <orginspdd/>
- </send>
- <init>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRST05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsthrstnlist"/>
- <submission id="TXRST05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsthrstnlist" resultref="/root/temp"/>
- <submission id="TRRST05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsthrstnlist"/>
- </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[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
-
- misfGridInit(grd_rsthrstnlist);
-
- // rszfComboStockArthDeptcdList(cmb_stocdeptcd,getUserInfo("dutplceinstcd"),"P" );
- // misfComboComCdListMulti("R0025","cmb_goodflag");
- // model.setValue(cmb_goodflag.attribute("ref"), "P");
- misfMsterDetailSet(grd_rsthrstnlist, null, "TRRST05301", "Y");
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
-
- model.setValue(opt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_stocdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
-
- var curdd = getCurrentDate();
-
- model.setValue(ipt_orginspym.attribute("ref") ,curdd.substr(0,6) );
-
- rszfGridComboLrgcdList(opt_goodflag.value, cmb_lrgcd, "lrgcd","N");
-
- addComboItem( "cmb_lrgcd", "전체", "", "above" );
- model.refresh();
- }
-
- function fCheckRetrieveData()
- {
- if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
- if(!isRequiredControls("ipt_orginspym") )return false; // 작업년월
- if(!isRequiredControls("opt_stocdeptcd") )return false; // 부서코드
- // if(!isRequiredControls("cmb_lrgcd") )return false; // 대분류
- }
- // 팝업에서 리턴된 물품 데이터 노드설정.
- function fSettingGoodList(pnode, nodename){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows;
-
- // if(model.getValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if(addRow > grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows)
- {
- btn_insert.dispatch("DOMActivate");
- addRow = grd_rsthrstnlist.rows - grd_rsthrstnlist.fixedRows;
-
- }
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd")); //물품코드
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm")); //물품명
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/stocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/stocqty")); // 재고량
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost")); // 단가
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/goodflag" , opt_goodflag.value); // 물품구분.
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/curemealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/curemealstocqty")); // 재고량T
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/empmealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/empmealstocqty")); // 재고량S
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/empnigtmealstocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/empnigtmealstocqty")); // 재고량N
-
- model.setValue(grd_rsthrstnlist.nodeset + "[" + addRow + "]/lrgcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgcd")); // 대분류코드
-
-
- addRow = addRow + 1;
- }
-
- model.refresh();
- }
-
- function finsert()
- {
- misfGridIUD(grd_rsthrstnlist, "A");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("instcd")) = opt_instcd.value; //기관코드
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocdeptcd")) = opt_stocdeptcd.value; //부서코드
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("orginspym")) = ipt_orginspym.value; //작업년월
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = opt_goodflag.value; //물품구분
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("orginspdd")) = getCurrentDate(); //실사일자
- grd_rsthrstnlist.isReadOnly(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = true;
- }
-
- function fAfterRetr()
- {
- for(var liRow = grd_rsthrstnlist.fixedRows ; liRow < grd_rsthrstnlist.rows ; liRow++)
- {
- model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/instcd",opt_instcd.value);
- model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/stocdeptcd",opt_stocdeptcd.value);
- model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/orginspym",ipt_orginspym.value );
- model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/goodflag",opt_goodflag.value);
- model.setValue(grd_rsthrstnlist.nodeset + "[" + (liRow - grd_rsthrstnlist.fixedRows + 1)+ "]/orginspdd",getCurrentDate());
-
- if (grd_rsthrstnlist.rowStatus(liRow) == "0") grd_rsthrstnlist.rowStatus(liRow) = "1";
- }
- }
- ]]>
- </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: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:38; width:1195; height:744; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
- <datagrid id="grd_rsthrstnlist" nodeset="/root/main/rsthrstnlist" caption="물품코드^품명^단가^재고수량G^실사량G^재고수량T^실사량T^재고수량S^실사량S^재고수량N^실사량N^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="124, 334, 89, 70, 70, 70, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1195px; height:640px; ">
- <col imemode="alpha" ref="goodcd" type="inputbutton" _chartype="upper" _key="true" style="left:64px; top:23px; width:124px; height:23px; text-align:left; "/>
- <col ref="goodnm" type="input" style="text-align:left; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="stocqty" format="#,###.#" style="text-align:right; "/>
- <col ref="orginspqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="curemealstocqty" format="#,###.#" style="text-align:right; "/>
- <col ref="curemealorginspqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="empmealstocqty" format="#,###.#" style="text-align:right; "/>
- <col ref="empmealorginspqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="empnigtmealstocqty" format="#,###.#" style="text-align:right; "/>
- <col ref="empnigtmealorginspqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <col ref="orginspym" visibility="hidden" _key="true"/>
- <col ref="stocdeptcd" visibility="hidden" _key="true"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="stocadjttretyn" visibility="hidden"/>
- <col ref="orginspdd" visibility="hidden"/>
- <col ref="stocseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodcd"))
- {
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_rsthrstnlist,"","acsrscd,acsrsnm,acsrsspec,acsrsqty,acsrsunit,acsrsamt","SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag");
-
- var cur_row = grd_rsthrstnlist.row;
- var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
- model.refresh();
- fSettingGoodList("/root/copynode", "rsthrstnlist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodcd"))
- {
-
- if( grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) == "" )
- {
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = "";
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = "";
- return;
- }
-
- 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," + opt_instcd.value + ","+ grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) + "," + grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) + ",,," ,
- "","goodcd,goodnm",grd_rsthrstnlist,"SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag","Y");
-
- if(model.getValue("/root/init/main/goodlist/goodcd") != "")
- {
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = model.getValue("/root/init/main/goodlist/goodcd");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = model.getValue("/root/init/main/goodlist/goodnm");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocqty")) = model.getValue("/root/init/main/goodlist/stocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = model.getValue("/root/init/main/goodlist/goodunitcost");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = model.getValue("/root/init/main/goodlist/goodflag");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("curemealstocqty")) = model.getValue("/root/init/main/goodlist/curemealstocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empmealstocqty")) = model.getValue("/root/init/main/goodlist/empmealstocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empnigtmealstocqty")) = model.getValue("/root/init/main/goodlist/empnigtmealstocqty");
-
- }
-
-
- var cur_row = grd_rsthrstnlist.row;
- var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
-
- fSettingGoodList("/root/copynode", "rsthrstnlist");
-
- }
- else if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("goodnm"))
- {
-
- if( grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) == "" )
- {
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = "";
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = "";
- return;
- }
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" ,
- "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
- "goodnm," + opt_instcd.value + ","+ grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) +",," + grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) + ",," ,
- "","goodcd,goodnm",grd_rsthrstnlist,"SPRSD00190","instcd,goodflag","opt_instcd,opt_goodflag","Y");
-
- if(model.getValue("/root/init/main/goodlist/goodcd") != ""){
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodcd")) = model.getValue("/root/init/main/goodlist/goodcd");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodnm")) = model.getValue("/root/init/main/goodlist/goodnm");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("stocqty")) = model.getValue("/root/init/main/goodlist/stocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodunitcost")) = model.getValue("/root/init/main/goodlist/goodunitcost");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("goodflag")) = model.getValue("/root/init/main/goodlist/goodflag");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("curemealstocqty")) = model.getValue("/root/init/main/goodlist/curemealstocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empmealstocqty")) = model.getValue("/root/init/main/goodlist/empmealstocqty");
- grd_rsthrstnlist.valueMatrix(grd_rsthrstnlist.row, grd_rsthrstnlist.colRef("empnigtmealstocqty")) = model.getValue("/root/init/main/goodlist/empnigtmealstocqty");
-
-
-
- }
-
- var cur_row = grd_rsthrstnlist.row;
- var status = grd_rsthrstnlist.valueMatrix(cur_row, grd_rsthrstnlist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rsthrstnlist");
- fSettingGoodList("/root/copynode", "rsthrstnlist");
- }
-
- else if(grd_rsthrstnlist.col == grd_rsthrstnlist.colRef("orginspqty"))
- {
- if(event.keyCode == 13)
- {
- // ddd
- if( grd_rsthrstnlist.rows > grd_rsthrstnlist.row+1 )
- {
- grd_rsthrstnlist.row = grd_rsthrstnlist.row+1;
- grd_rsthrstnlist.col = grd_rsthrstnlist.colRef("orginspqty");
- }
- }
- }
-
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_orginspym" ref="/root/send/orginspym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:386px; top:18px; width:105px; height:19px; text-align:center; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:131px; height:14px; ">영양 실사등록 내역</caption>
- <button id="btn_goodcd" class="icon_search" style="left:719px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("opt_goodflag") )return; // 물품구분
-
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodflag","SPRSD00210","instcd,goodflag", "opt_instcd,opt_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_search" style="left:630px; top:45px; width:82px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(!isRequiredControls("opt_goodflag") )return; // 물품구분
-
- if(ipt_goodcd.value != ""){
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag",
- "goodcd," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(opt_goodflag.attribute("ref"))
- + ","+ ipt_goodcd.value +",,," + model.getValue(opt_goodflag.attribute("ref")) ,
- "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" style="left:739px; top:45px; width:203px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("opt_goodflag") )return; // 물품구분
-
- if(ipt_goodnm.value != ""){
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag",
- "goodnm," + model.getValue(opt_instcd.attribute("ref")) + "," + model.getValue(opt_goodflag.attribute("ref"))
- +",," + ipt_goodnm.value + ",," + model.getValue(opt_goodflag.attribute("ref")) ,
- "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var data = getGridUpdateData(grd_rsthrstnlist);
-
- if(data != "")
- {
- if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- if(fCheckRetrieveData(false) == false)return;
-
- submit("TRRST05301");
-
- misfSetReadOnlyCol(grd_rsthrstnlist, "goodcd,goodnm,goodflag,goodunitcost,stocqty,curemealstocqty,empmealstocqty,empnigtmealstocqty,", true);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:61px; "/>
- <caption id="cap_lrgcd" class="search_name" style="left:15px; top:45px; width:88px; height:17px; ">대 분 류 :</caption>
- <caption id="cap_instcd" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="cap_goodcd" class="search_name" style="left:542px; top:45px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="cap_orginspym" class="search_name" style="left:285px; top:19px; width:101px; height:17px; ">작업 년월 :</caption>
- <caption id="cap_stocdeptcd" class="search_name" style="left:542px; top:19px; width:99px; height:17px; ">부 서 :</caption>
- <button id="btn_delete" class="btn2_letter3" style="left:1140px; top:75px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rsthrstnlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1085px; top:75px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
-
- finsert();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:45px; width:150px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_load" class="btn2_letter10" style="left:952px; top:75px; width:130px; height:19px; ">
- <caption>기초데이타 가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var data = getGridUpdateData(grd_rsthrstnlist);
-
- if(data != "")
- {
- if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- if(!isRequiredControls("opt_goodflag") )return; // 물품구분
- if(!isRequiredControls("ipt_orginspym") )return; // 작업년월
- if(!isRequiredControls("opt_stocdeptcd") )return; // 부서코드
- // if(!isRequiredControls("cmb_lrgcd") )return; // 대분류
- submit("TRRST05302");
-
- fAfterRetr();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:18px; width:150px; height:19px; text-align:center; "/>
- <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:1020px; top:45px; width:20px; height:19px; "/>
- <output id="opt_goodflag" ref="/root/send/goodflag" class="output_fix" visibility="hidden" style="left:1045px; top:45px; width:20px; height:19px; "/>
- <output id="opt_stocdeptcd" ref="/root/send/stocdeptcd" class="output_fix" style="left:630px; top:18px; width:90px; height:19px; text-align:center; "/>
- <output id="opt_stocdeptnm" ref="/root/send/stocdeptnm" class="output_fix" style="left:725px; top:18px; width:120px; height:19px; text-align:center; "/>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>리스트출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRST05301", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // if(messageBox("","Q002") != 6) return;
-
- if(checkKeyColumn("grd_rsthrstnlist")== false) return;
-
- for(var fRow = grd_rsthrstnlist.fixedRows; fRow < grd_rsthrstnlist.rows; fRow++)
- {
- if(grd_rsthrstnlist.valueMatrix(fRow, grd_rsthrstnlist.colRef("orginspqty")) == "" )
- {
- messageBox("실사량은","I003");
- return;
- }
- }
- var data = getGridUpdateData(grd_rsthrstnlist);
-
- if(data == "")
- {
- messageBox("저장할 내용이","I004");
- return;
- }
-
- misfSave("TXRST05301");
- btn_search.dispatch("DOMActivate");
-
- model.refresh();
- ]]>
- </script>
- </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[
- var data = getGridUpdateData(grd_rsthrstnlist);
-
- if(data != "")
- {
- if(messageBox("작업중인 Data 가 있습니다.","Q003") != 6 )return;
- }
-
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|