123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625 |
- <?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>
- <reqdeptlist>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <lrgcd/>
- </reqdeptlist>
- <goodbaseqtylist>
- <instcd/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <reqmthdnm/>
- <goodflag/>
- <goodflagnm/>
- <reqdeptcd/>
- <lrgnm/>
- <mdlnm/>
- <smlnm/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <purcunit/>
- <deliveunit/>
- <exchqty/>
- <ddavguseqty/>
- <basevol/>
- <basevolamt/>
- <purcunitcopy/>
- <stocqty/>
- <cmt/>
- <reqpackconcat/>
- <allsizeyn/>
- <oallsizespecid/>
- </goodbaseqtylist>
- <codelist>
- <allsizespecid/>
- <goodspec/>
- </codelist>
- </main>
- <send>
- <retvcond>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <lrgcd/>
- <lrgnm/>
- <instcdnm/>
- </retvcond>
- <reqdeptlist>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <lrgcd/>
- </reqdeptlist>
- <goodbaseqtylist/>
- <allsize>
- <goodcd/>
- <instcd/>
- <goodspec/>
- </allsize>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_reqdeptlist);
- misfGridInit(grd_goodbaseqtylist);
- // misfComboComCdList("Z0007", cmb_instcd); //기관코드
- // misfComboComCdListMulti("Z0007", cmb_instcd); //기관코드
- // misfComboComCdListMulti("R0025", cmb_goodflag); //권한별 물품구분
- // misfComboComCdList("R0025", cmb_goodflag); //권한별 물품구분
- // rszfComboComCdList("R0025", cmb_goodflag); //권한별 물품구분
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- // rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- cmb_goodflag.select(0); //물품구분
-
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L");
- /*
- misfComboComCdList("R0037", cmb_reqflag); //청구구분
- */
- misfMsterDetailSet(grd_reqdeptlist,null,"TRRSD00101","Y");
- misfMsterDetailSet(grd_goodbaseqtylist,grd_reqdeptlist,"TRRSD00102","Y");
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
-
- btn_prt.disabled= !(checkAuth("P"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/reqlist"/>
- <submission id="TRRSD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdeptlist" resultref="/root/main/goodbaseqtylist"/>
- <submission id="TRRSD00281" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/allsize" resultref="/root/main/codelist"/>
- <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/reqdeptlist");
- model.removeNodeset("/root/main/goodbaseqtylist");
- model.resetInstanceNode("/root/send");
-
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.refresh();
- }
- // --------------------------------------------------
- // All Size 읽어오는 함수
- // --------------------------------------------------
- var vAllSizeCol = 0;
- var vAllSizeRow = 0;
- var vAllSizePath = "/root/main/codelist";
- var vGoodReqPath = "/root/main/goodbaseqtylist";
-
- function fAllSizeRead(pRow, pCol, pPos) {
- var iClickY = pPos - 100;
-
- vAllSizeCol = pCol;
- vAllSizeRow = pRow;
-
- if (iClickY > 375) iClickY = iClickY - 319;
-
- grp_allsize.attribute("top") = iClickY+ "px";
- grp_allsize.attribute("visibility") = "visible" ;
- model.setValue("/root/send/allsize/instcd", model.getValue(opt_instcd.attribute("ref" )));
- model.setValue("/root/send/allsize/goodcd", grd_goodbaseqtylist.valueMatrix(pRow, pCol-3) );
- submit("TRRSD00281");
-
- grp_allsize.refresh();
- }
- // All Size 선택
- // All Size 선택
- function fAllSizeSelect(pGrid) {
- grp_allsize.attribute("visibility") = "hidden" ;
-
- var vQty = "0";
- var vSize = "";
- var vSpec = "";
- var vModel = "";
- var vCheck = "";
- var vPath = "";
- var vTarget = "";
- var vSource = "";
-
- var vGoodcd = model.getValue(vGoodReqPath+"["+(vAllSizeRow)+"]/goodcd");
-
-
- for (var i = 1; i < grd_codelist.rows; i++) {
-
- if (model.getValue(vAllSizePath+"["+i+"]/chk") == "true") {
- vSize = model.getValue(vAllSizePath+"["+ i +"]/allsizespecid");
- vSpec = model.getValue(vAllSizePath+"["+ i +"]/goodspec" );
- vModel = model.getValue(vAllSizePath+"["+ i +"]/goodmodel" );
- vQty = model.getValue(vAllSizePath+"["+ i +"]/qty" );
-
- if (model.getValue(vGoodReqPath+"["+"[goodcd='"+ vGoodcd+"' and allsizespecid='"+vSize+"']" +"/goodcd") == "") {
- if (vCheck == "") {
- vCheck = "Y";
- vTarget = vGoodReqPath+"["+(vAllSizeRow)+"]" ;
- if (pGrid.rowStatus(vAllSizeRow) == 0)
- pGrid.rowStatus(vAllSizeRow) = 2 ;
-
- } else {
-
- misfGridIUD(pGrid,"A");
-
- addRow = pGrid.rows - pGrid.fixedRows;
-
- //fDefaultSetting(addRow);
-
- vTarget = pGrid.nodeset + "[" + addRow + "]/";
- vSource = vGoodReqPath + "[" + vAllSizeRow + "]/";
-
- fSettingGoodData(vTarget, vSource);
-
- pGrid.cellstyle("background-color" , addRow, 9) = "#FFFF00";
- }
- } else {
- vPath = vGoodReqPath+"["+"[goodcd='"+ vGoodcd+"' and allsizespecid='"+vSize+"']";
- }
-
- //
- //if (vQty == "") {
- /// vQty = "1";
- //}
-
- model.setValue(vTarget + "/allsizeyn" , "Y" );
- model.setValue(vTarget + "/allsizespecid" , vSize );
- model.setValue(vTarget + "/goodspec" , vSpec );
- model.setValue(vTarget + "/goodmodel" , vModel);
-
- model.setValue(vTarget + "/basevol" , "0" );
- model.setValue(vTarget + "/ddavguseqty" , "0" );
- //model.setValue(vTarget + "/basevol" , vQty );
- //model.setValue(vTarget + "/ddavguseqty" , vQty );
- }
- }
-
- pGrid.refresh();
- }
-
- //
- function fSettingGoodData(pTarget, pSource) {
- model.setValue(pTarget + "instcd" , model.getValue(pSource + "instcd" ));
- model.setValue(pTarget + "goodflag" , model.getValue(pSource + "goodflag" ));
- model.setValue(pTarget + "reqdeptcd" , model.getValue(pSource + "reqdeptcd" ));
- model.setValue(pTarget + "lrgcd" , model.getValue(pSource + "lrgcd" ));
- model.setValue(pTarget + "lrgnm" , model.getValue(pSource + "lrgnm" ));
- model.setValue(pTarget + "reqmthdnm" , model.getValue(pSource + "reqmthdnm" ));
- model.setValue(pTarget + "goodcd" , model.getValue(pSource + "goodcd" ));
- model.setValue(pTarget + "allsizespecid" , model.getValue(pSource + "allsizespecid" ));
- model.setValue(pTarget + "goodnm" , model.getValue(pSource + "goodnm" ));
- model.setValue(pTarget + "goodspec" , model.getValue(pSource + "goodspec" ));
- model.setValue(pTarget + "goodmodel" , model.getValue(pSource + "goodmodel" ));
- model.setValue(pTarget + "exchqty" , model.getValue(pSource + "exchqty" ));
- model.setValue(pTarget + "ddavguseqty" , model.getValue(pSource + "ddavguseqty" ));
- model.setValue(pTarget + "basevol" , model.getValue(pSource + "basevol" ));
- model.setValue(pTarget + "stocqty" , model.getValue(pSource + "stocqty" ));
- model.setValue(pTarget + "prodcmpynm" , model.getValue(pSource + "prodcmpynm" ));
- model.setValue(pTarget + "purcunit" , model.getValue(pSource + "purcunit" ));
- model.setValue(pTarget + "cmt" , model.getValue(pSource + "cmt" ));
- model.setValue(pTarget + "allsizeyn" , model.getValue(pSource + "allsizeyn" ));
-
- // model.setValue(pTarget + "oallsizespecid", model.getValue(pSource + "oallsizespecid"));
- }
- ]]>
- </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:186px; height:14px; ">부서별 상비품 관리(구매)</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
- <caption id="caption3" class="search_name" style="left:355px; top:35px; width:86px; height:17px; ">부 서 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_goodbaseqtylist);
-
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- //기관코드 및 물품청구 구분값 체크
- var null_check = opt_instcd.value;
- if( null_check=="") {
- messageBox("기관코드를","C002");
- return;
- null_check=cmb_goodflag.value;
- } else if(null_check=="") {
- messageBox("물품청구 구분","C002");
- return;
- }
- //청구부서 출력
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag" ref="/root/send/retvcond/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:34px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- cmb_lrgcd.value='';
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqdeptcd" ref="/root/send/retvcond/reqdeptcd" class="input_search" style="left:439px; top:34px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0)
- ipt_reqdeptnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_reqdeptcd.value, "", "reqdeptcd,reqdeptnm",
- ipt_reqdeptcd, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_reqdeptcd" class="icon_search" style="left:544px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"",recv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptnm" ref="/root/send/retvcond/reqdeptnm" class="input_fix" appearance="input" style="left:564px; top:34px; width:210px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_reqdeptnm.value, "", "reqdeptcd,reqdeptnm",
- ipt_reqdeptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:15px; top:35; width:94px; height:17px; ">물품구분 :</caption>
- <caption id="caption8" class="search_name" style="left:355px; top:9px; width:89px; height:17px; ">대 분 류 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_instcd" ref="/root/send/retvcond/instcd" class="output_fix" visibility="hidden" style="left:274px; top:12px; width:30px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/retvcond/instcdnm" class="output_fix" style="left:100px; top:11px; width:165px; height:19px; "/>
- <select1 id="cmb_lrgcd" ref="/root/send/retvcond/lrgcd" appearance="minimal" style="left:439px; top:10px; width:171px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:157px; height:13px; ">부서</caption>
- <line id="line1" class="line_1" style="x1:306px; y1:95px; x2:1195px; y2:95px; "/>
- <caption id="caption4" class="tit_2" style="left:306px; top:80px; width:190px; height:13px; ">물품별 기준량</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:300px; y2:95px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rdlist_cur_row = grd_reqdeptlist.row;
- var rdlist_select_dept = model.getValue(grd_reqdeptlist.attribute("nodeset")+"["+rdlist_cur_row+"]/reqdeptcd");
- // if(rdlist_cur_row < 1) {
- if(rdlist_select_dept == "") {
- messageBox("좌측 목록에서 부서를 ","C002");
- } else {
- grd_goodbaseqtylist.addRow();
- var instcd, goodflag, reqdeptcd;
-
- instcd = grd_reqdeptlist.valueMatrix(rdlist_cur_row, grd_reqdeptlist.colRef("instcd"));
- goodflag = grd_reqdeptlist.valueMatrix(rdlist_cur_row, grd_reqdeptlist.colRef("goodflag"));
- reqdeptcd = grd_reqdeptlist.valueMatrix(rdlist_cur_row, grd_reqdeptlist.colRef("reqdeptcd"));
-
- var gbqlist_cur_row = grd_goodbaseqtylist.row;
- //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 Detail 그리드에 저장한다.
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/instcd",instcd);
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/goodflag",goodflag);
- model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+gbqlist_cur_row+"]/reqdeptcd",reqdeptcd);
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_reqdeptlist" nodeset="/root/main/reqdeptlist" allowuserresize="false" caption="기관코드^물품구분^대분류코드^부서코드^부서명" colsep="^" colwidth="0, 0, 0, 100, 158" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:300px; height:634px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col class="input_essential" disabled="true" ref="reqdeptcd" type="inputbutton"/>
- <col class="output_fix" disabled="true" ref="reqdeptnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_reqdeptlist.col == 4) {//부서코드 버튼을 눌렀을 때
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", grd_reqdeptlist,"",recv_list);
- var cur_row = grd_reqdeptlist.row;
- var status = grd_reqdeptlist.valueMatrix(cur_row, grd_reqdeptlist.colRef("m"));
- if(status !="insert" && status !="delete") grd_reqdeptlist.addStatus(cur_row,"update");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqdeptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" allowuserresize="false" caption="기관코드^물품구분^부서코드^대분류코드^대분류^청구방법^물품코드^AllSize^물품명^규격^모델^환산수량^일평균수량^상비품량^청구^제조회사^포장단위^비고^AllSizeyn^OldAllZiseId" colsep="^" colwidth="0, 0, 0, 0, 70, 63, 90, 0, 151, 169, 70, 63, 70, 62, 50, 65, 65, 100, 100, 110" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:306px; top:100px; width:889px; height:634px; ">
- <col ref="instcd" visibility="hidden" style="left:20px; top:23px; width:100px; height:23px; "/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col disabled="true" ref="lrgnm"/>
- <col disabled="true" ref="reqmthdnm"/>
- <col class="input_essential" disabled="true" ref="goodcd" type="inputbutton"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col disabled="true" ref="goodnm"/>
- <col ref="goodspec" type="inputbutton"/>
- <col disabled="true" ref="goodmodel"/>
- <col disabled="true" ref="exchqty" style="text-align:center; "/>
- <col class="input_essential" ref="ddavguseqty" type="input" style="text-align:center; "/>
- <col class="input_essential" ref="basevol" type="input" style="text-align:center; "/>
- <!-- <col disabled="true" ref="purcunitcopy"/> -->
- <!-- 재고 체크박스
- <col class="output_fix" checkvalue="Y,N" disabled="true" ref="stocmngtflag" type="checkbox"/>
- -->
- <col disabled="true" ref="stocqty" style="text-align:center; "/>
- <col disabled="true" ref="prodcmpynm" style="left:925px; top:23px; width:140px; height:23px; "/>
- <col disabled="true" ref="purcunit" style="text-align:center; "/>
- <col ref="cmt" type="input"/>
- <col ref="allsizeyn" visibility="hidden"/>
- <col ref="oallsizespecid" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_goodbaseqtylist.col == 7) {//물품코드 버튼을 눌렀을 때
- // var recv_list = "lrgnm,goodcd,goodnm,goodmodel,goodspec,prodcmpynm,purcunit,exchqty,stocmngtflag";
- var recv_list = "goodcd,goodnm,goodmodel,goodspec,prodcmpynm,purcunit,exchqty";
- //var send_list = model.getValue("/root/main/goodbaseqtylist/reqflag");
- //purcfOpenPopUpList("02", grd_goodbaseqtylist,"",recv_list, "goodflag");
-
- rszfOpenPopUpListByWndName(grd_goodbaseqtylist,"",recv_list,"SPRSD00210","instcd,goodflag","opt_instcd,cmb_goodflag", "Y");
- var cur_row = grd_goodbaseqtylist.row;
- var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
- if(status !="insert" && status !="delete") grd_goodbaseqtylist.addStatus(cur_row,"update");
- }
-
- if (grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodspec") && grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row , grd_goodbaseqtylist.colRef("allsizeyn")) == "Y" )
- {
- fAllSizeRead(grd_goodbaseqtylist.row ,grd_goodbaseqtylist.col, event.clientY);
- }
-
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodbaseqtylist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel2" class="btn2_letter3" style="left:245px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_reqdeptlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd2" class="btn2_letter3" style="left:190px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_instcd.value == "") {
- messageBox("기관코드를","C002");
- } else if(cmb_goodflag.value == "") {
- messageBox("물품구분을","C002");
- } else {
- grd_reqdeptlist.addRow();
- var instcd, goodflag, reqdeptcd;
-
- instcd = opt_instcd.value;
- goodflag = cmb_goodflag.value;
-
- var cur_row = grd_reqdeptlist.row;
- //행추가를 누를시 기간코드,물품구분 값을 자동으로 부서리스트에 저장한다.
- model.setValue(grd_reqdeptlist.attribute("nodeset")+"["+cur_row+"]/instcd",instcd);
- model.setValue(grd_reqdeptlist.attribute("nodeset")+"["+cur_row+"]/goodflag",goodflag);
- }
- model.removeNodeset("/root/main/goodbaseqtylist");
- // misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <!--
- <button id="btn_gooddeptkeeplist" class="btn2_letter12" style="left:932px; top:48px; width:152px; height:19px; ">
- <caption>물품별 부서 보유현황 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // purcfOpenPopUpList("01", grd_goodbaseqtylist,"","","");
- ]]>
- </script>
- </button>
- -->
- <group id="grp_allsize" visibility="hidden" showeffect="slidepositive 500" style="left:505px; top:150px; width:364px; height:300px; ">
- <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:362px; height:300px; border-color:#339966; border-width:2px; "/>
- <datagrid id="grd_codelist" nodeset="/root/main/codelist" class="grd_prodcmpylist" caption="C^ID^명칭^모델^수량" colsep="^" colwidth="30, 40, 161, 100, 51" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="false" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" style="left:2px; top:40px; width:357px; height:257px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="qty" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if (grd_codelist.isCell(event.target ) && grd_codelist.row >= grd_codelist.fixedRows ) {
- // fAllSizeSelect(grd_codelist.row) ;
- // btn_confirm.dispatch("DOMActivate");
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_codelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_confirm" class="btn4_letter2" style="left:285px; top:10px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllSizeSelect(grd_goodbaseqtylist) ;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:57px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </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[
- var updtdata = getGridUpdateData(grd_goodbaseqtylist);
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var null_check1 = "";
- var null_chech2 = "";
- for(var i=1;i<=grd_goodbaseqtylist.rows-1;i++)
- {
- null_check1 = model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+i+"]/ddavguseqty");
- null_check2 = model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+i+"]/basevol");
- if(null_check1 =="") {
- messageBox("일평균수량","I003");
- return;
- } else if(null_check2 == "") {
- messageBox("기준량","I003");
- return;
- }
- }
- misfSave("TXRSD00101");
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_goodbaseqtylist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|