123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>부서별 정량보충 기준량 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <reqdeptlist>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <lrgcd/>
- <goodcd/>
- </reqdeptlist>
- <goodbaseqtylist>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <lrgnm/>
- <goodcd/>
- <goodnm/>
- <goodmodel/>
- <goodspec/>
- <prodcmpynm/>
- <purcunit/>
- <exchqty/>
- <ddavguseqty/>
- <basevol/>
- <purcunitcopy/>
- <stocmngtflag/>
- <cmt/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <lrgcd/>
- <stocqty/>
- <reqmthdnm/>
- <mdlnm/>
- <smlnm/>
- </goodbaseqtylist>
- </main>
- <send>
- <retvcond>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <lrgcd/>
- <sumbasevolamt/>
- <mdlcd/>
- <smlcd/>
- <goodcdnm/>
- </retvcond>
- <reqdeptlist>
- <instcd/>
- <goodflag/>
- <lrgcd/>
- <reqdeptcd/>
- </reqdeptlist>
- <goodbaseqtylist/>
- </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); //권한별 물품구분
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- // hidden col
- model.setValue(ipt_goodflag.attribute("ref") , "PH");
- /*
- misfComboComCdList("R0037", cmb_reqflag); //청구구분
- */
- misfMsterDetailSet(grd_reqdeptlist,null,"TRRSD00101","Y");
- // misfMsterDetailSet(grd_goodbaseqtylist,grd_reqdeptlist,"TRRSD00102","Y");
- misfMsterDetailSet(grd_goodbaseqtylist,null,"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="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <bind id="bind_reqpack" ref="/root/main/goodbaseqtylist/reqpackconcat" calculate="concat(../exchqty, ' ', ../deliveunit, '/', ../purcunit )"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/reqdeptlist");
- model.removeNodeset("/root/main/goodbaseqtylist");
- model.resetInstanceNode("/root/send");
-
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfGridComboLrgcdList("PH", cmb_lrgcd_search, "lrgcd");
-
- model.setValue(opt_sumbasevolamt.attribute("ref"),0);
- model.refresh();
- }
- function fAfterRetrieve()
- {
- var sumbasevolamt = 0;
- for(var currow = grd_goodbaseqtylist.fixedRows ; currow < grd_goodbaseqtylist.rows ; currow++)
- {
- sumbasevolamt = sumbasevolamt + 0 + parseFloat(grd_goodbaseqtylist.valueMatrix(currow , grd_goodbaseqtylist.colRef("basevolamt")));
- }
- model.setValue(opt_sumbasevolamt.attribute("ref"),sumbasevolamt);
- model.refresh();
- }
-
- ]]>
- </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>-->
- <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:15px; 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 = cmb_instcd.value;
- if( null_check=="") {
- messageBox("기관코드를","C002");
- return;
- null_check=ipt_goodflag.value;
- } else if(null_check=="") {
- messageBox("물품청구 구분","C002");
- return;
- }
- //청구부서 출력
- //misfMsterDetailRetrieve();
- model.removeNodeset(grd_reqdeptlist.nodeset);
- submit("TRRSD00101");
-
-
-
- if( grd_reqdeptlist.rows > grd_reqdeptlist.fixedRows)
- {
- grd_reqdeptlist.row = grd_reqdeptlist.fixedRows;
- grd_reqdeptlist.dispatch("onrowchanged");
- }else{
- model.removeNodeset(grd_goodbaseqtylist.nodeset);
- }
-
- fAfterRetrieve()
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/retvcond/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqdeptcd" ref="/root/send/retvcond/reqdeptcd" class="input_search" style="left:100px; 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:206px; 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:226px; top:34px; width:289px; 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="caption8" class="search_name" style="left:312px; 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; "/>
- <input id="ipt_goodflag" ref="/root/send/retvcond/goodflag" visibility="hidden" style="left:1055px; top:30px; width:45px; height:19px; "/>
- <select1 id="cmb_lrgcd_search" ref="/root/send/retvcond/lrgcd" class="combo_s_essential" appearance="minimal" style="left:395px; top:10px; width:121px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfLMSComboList("PH", cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M");
- cmb_mdlcd_search.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_goodcd_search" ref="/root/send/retvcond/goodcdnm" class="input_search" maxlength="12" _chartype="upper" style="left:620px; top:34px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd_search.value = ipt_goodcd_search.currentText;
- ipt_goodcd_search.refresh();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:530px; top:34px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption94" class="search_name" style="left:530px; top:9px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption96" class="search_name" style="left:805px; top:9px; width:83px; height:17px; ">소 분 류 :</caption>
- <select1 id="cmb_smlcd_search" ref="/root/send/retvcond/smlcd" appearance="minimal" style="left:895px; top:10px; width:121px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_mdlcd_search" ref="/root/send/retvcond/mdlcd" appearance="minimal" style="left:620px; top:10px; width:140px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfLMSComboList("PH", cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S");
- model.refresh();
- ]]>
- </script>
- </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:236px; y1:95px; x2:1195px; y2:95px; "/>
- <!-- <caption id="caption4" class="tit_2" style="left:241px; top:80px; width:190px; height:13px; ">물품별 기준량</caption>-->
- <caption id="caption4" class="tit_2" style="left:241px; top:80px; width:190px; height:13px; ">물품별 안전재고량</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:231px; 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" scroll="auto" caption="부서코드^부서명^약품코드" colsep="^" colwidth="98, 95, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:231px; height:634px; ">
- <col class="input_essential" disabled="true" ref="reqdeptcd" type="inputbutton"/>
- <col class="output_fix" disabled="true" ref="reqdeptnm"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // misfMsterDetailRetrieve();
- //var goodcdnmTemp = ipt_goodcd_search.value;
- model.copyNode("/root/send/reqdeptlist" , grd_reqdeptlist.nodeset + "["+ grd_reqdeptlist.row +"]");
- //model.makeValue("/root/send/reqdeptlist/goodcdnm", goodcdnmTemp);
- submit("TRRSD00102");
- fAfterRetrieve()
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_reqdeptlist.col == grd_reqdeptlist.colRef("reqdeptcd") ) {//부서코드 버튼을 눌렀을 때
- 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>
- </datagrid>
- <!-- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" class="text_center" caption="대분류^중분류^소분류^물품코드^물품명^규격^포장^환산수량^포장^포장단위^비품보유량^재고량^비품보유량금액^비고^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^최종등록일시" colwidth="53, 100, 100, 97, 152, 83, 100, 61, 72, 57, 73, 57, 92, 217, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:236px; top:100px; width:959px; height:634px; ">-->
- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" class="text_center" caption="대분류^중분류^소분류^물품코드^물품명^규격^포장^환산수량^포장^포장단위^안전재고량^재고량^안전재고금액^비고^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^최종등록일시" colsep="^" colwidth="53, 100, 100, 97, 152, 83, 100, 61, 72, 57, 73, 57, 92, 217, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:236px; top:100px; width:959px; height:634px; ">
- <col disabled="true" ref="lrgnm"/>
- <col disabled="true" ref="mdlnm"/>
- <col disabled="true" ref="smlnm"/>
- <col class="input_essential" disabled="true" ref="goodcd" type="inputbutton" style="text-align:left; "/>
- <col disabled="true" ref="goodnm" style="text-align:left; "/>
- <col disabled="true" ref="goodspec" style="text-align:left; "/>
- <col ref="reqpackconcat" style="text-align:right; "/>
- <col disabled="true" ref="exchqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="purcunit" visibility="hidden"/>
- <col class="input_essential" ref="basevol" type="input" format="#,###" style="text-align:right; "/>
- <!-- <col disabled="true" ref="purcunitcopy"/> -->
- <!-- 재고 체크박스
- <col class="output_fix" checkvalue="Y,N" disabled="true" ref="stocmngtflag" type="checkbox"/>
- -->
- <col disabled="true" ref="stocqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="basevolamt" format="#,###" style="text-align:right; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- <col ref="reqmthdnm" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd") )
- {
- // var recv_list = "lrgnm,goodcd,goodnm,goodmodel,goodspec,prodcmpynm,purcunit,exchqty,stocmngtflag";
- var recv_list = "goodcd,goodnm,goodmodel,goodspec,prodcmpynm,purcunit,deliveunit,exchqty,lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm,ddavguseqty";
- //var send_list = model.getValue("/root/main/goodbaseqtylist/reqflag");
- //purcfOpenPopUpList("02", grd_goodbaseqtylist,"",recv_list, "goodflag");
-
- rszfOpenPopUpListByWndName(grd_goodbaseqtylist,"",recv_list,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_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");
-
- model.recalculate();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd") )
- {
- var recv_list = "goodcd,goodnm,goodmodel,goodspec,prodcmpynm,purcunit,deliveunit,exchqty,lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm,ddavguseqty";
- // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + ",,," + model.getValue(ipt_goodcd.attribute("ref")) + ",,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd","cmb_instcd");
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(ipt_goodflag.attribute("ref")) + "," + grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row , grd_goodbaseqtylist.colRef("goodcd")) + ",,,," ,"",recv_list,grd_goodbaseqtylist,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag" ,"Y");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel2" class="btn2_letter3" style="left:179px; 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:124px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_instcd.value == "") {
- messageBox("기관코드를","C002");
- } else if(ipt_goodflag.value == "") {
- messageBox("물품구분을","C002");
- } else {
- grd_reqdeptlist.addRow();
- var instcd, goodflag, reqdeptcd;
-
- instcd = cmb_instcd.value;
- goodflag = ipt_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>
- -->
- <caption id="caption5" style="left:810px; top:75px; width:118px; height:23px; vertical-align:middle; ">비품보유량금액합계 :</caption>
- <output id="opt_sumbasevolamt" ref="/root/send/retvcond/sumbasevolamt" format="#,###" style="left:930px; top:75px; width:125px; height:19px; "/>
- </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>
|