123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516 |
- <?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>
- <deptlist/>
- <goodbaseqtylist/>
- </main>
- <send>
- <deptlist>
- <goodflag/>
- <deptcd/>
- <instcd/>
- <goodcd/>
- </deptlist>
- <retvcond>
- <instcd/>
- <goodflag/>
- <csrreqdeptcd/>
- <goodcd/>
- <goodnm/>
- </retvcond>
- <goodbaseqtylist/>
- <goodcd/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </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();
- ]]>
- </script>
- <submission id="TRRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/deptlist"/>
- <submission id="TRRSS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/main/goodbaseqtylist"/>
- <submission id="TXRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRSD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodbaseqtylist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/deptlist");
- model.removeNodeset("/root/main/goodbaseqtylist");
- model.resetInstanceNode("/root/send");
-
- misfComboComCdListMulti("Z0007,R0269", "cmb_instcd,cmb_csrreqdeptcd");
-
- misfGridInit(grd_deptlist);
- misfGridInit(grd_goodbaseqtylist);
-
- cmb_csrreqdeptcd.select(0);
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_goodflag.attribute("ref"), "T");
-
- misfMsterDetailSet(grd_deptlist,null,"TRRSS00101","Y");
- misfMsterDetailSet(grd_goodbaseqtylist,grd_deptlist,"TRRSS00102","Y");
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
-
- model.refresh();
- }
-
- function fSerachData()
- {
- // 처음 프로세스 시작시 부서를 조회함..
- // 부서 그리드 클릭시 필요없는 조회 때문에 주석처리 됨.
- // misfMsterDetailRetrieve();
- var cur_row = grd_deptlist.row;
-
- model.setValue("/root/send/deptlist/instcd", model.getValue("/root/main/deptlist["+cur_row+"]/instcd") );
- model.setValue("/root/send/deptlist/deptcd", model.getValue("/root/main/deptlist["+cur_row+"]/deptcd") );
- model.setValue("/root/send/deptlist/goodflag", model.getValue("/root/send/retvcond/goodflag") );
- model.setValue("/root/send/deptlist/goodcd", model.getValue("/root/send/retvcond/goodcd") );
-
- submit("TRRSS00102");
-
- misfSetReadOnlyCol(grd_goodbaseqtylist, "goodcd,goodnm,lrgnm,exchqty,purcunit", true);
-
- if(grd_goodbaseqtylist.rows > grd_goodbaseqtylist.fixedRows)
- {
- btn_delete.disabled = false;
- }else{
- btn_delete.disabled = true;
- }
-
- grd_goodbaseqtylist.editCell();
-
- // 부서 그리드 선택 영역 표시
- grd_deptlist.select(grd_deptlist.row, 1) = true;
- }
-
- function fGridDataSet()
- {
- //부서코드 설정
- grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("reqdeptcd"))
- = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
-
- // 기관코드 설정
- grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("instcd"))
- = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
-
- model.refresh();
- }
-
-
- function fSave()
- {
- var updtdata = getGridUpdateData(grd_goodbaseqtylist);
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
-
- // if(!checkKeyColumn("grd_goodbaseqtylist")) return;
- //
- // var sDDavguseqty = grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("ddavguseqty"));
- //
- // if(sDDavguseqty == 0 || sDDavguseqty ==null)
- // {
- // messageBox("대여량은", "I003");
- // return;
- // }
- //
- //
- // var sBasevol = grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("basevol"));
- //
- // if(sBasevol == 0 || sBasevol ==null)
- // {
- // messageBox("비품기준량은", "I003");
- // return;
- // }
-
-
- misfSave("TXRSS00101");
-
- btn_search.dispatch("DOMActivate");
-
- model.refresh();
- }
-
- function fSettingGoodList(pnode, nodename)
- {
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
-
- for (var j = 1; j <= codynode.length ; j++)
- {
-
- if(addRow > grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows)
- {
- misfGridIUD(grd_goodbaseqtylist,"A");
- addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
- }
-
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/reqdeptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) );
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodmodel"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/prodcmpynm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/prodcmpynm"));
-
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/stocqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/stocqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/lrgcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgcd"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/lrgnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/lrgnm"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/exchqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/purcunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
-
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/ddavguseqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/ddavguseqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/basevol" , model.getValue(pnode +"/" + nodename + "[" + j + "]/safestocqty"));
-
- addRow = addRow + 1;
- }
-
- model.recalculate();
- model.refresh();
- }
-
- // 물품코드 확인시 노드 설정.
- function fGridDrugSetValidation()
- {
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodcd" , model.getValue("/root/init/main/goodlist/goodcd"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodnm" , model.getValue("/root/init/main/goodlist/goodnm"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodspec" , model.getValue("/root/init/main/goodlist/goodspec"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/goodmodel" , model.getValue("/root/init/main/goodlist/goodmodel"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/prodcmpynm" , model.getValue("/root/init/main/goodlist/prodcmpynm"));
-
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/stocqty" , model.getValue("/root/init/main/goodlist/stocqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/lrgcd" , model.getValue("/root/init/main/goodlist/lrgcd"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/lrgnm" , model.getValue("/root/init/main/goodlist/lrgnm"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/exchqty" , model.getValue("/root/init/main/goodlist/exchqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/purcunit" , model.getValue("/root/init/main/goodlist/purcunit"));
-
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/ddavguseqty" , model.getValue("/root/init/main/goodlist/ddavguseqty"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + grd_goodbaseqtylist.row + "]/basevol" , model.getValue("/root/init/main/goodlist/safestocqty"));
- }
- ]]>
- </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:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfMsterDetailRetrieve();
-
- if(!isRequiredControls("cmb_instcd"))return;
- submit("TRRSS00101");
-
- if(grd_deptlist.rows != grd_deptlist.fixedRows)
- {
- grd_deptlist.row = grd_deptlist.fixedRows;
- grd_deptlist.dispatch("onclick");
- grd_deptlist.select(grd_deptlist.fixedRows, grd_deptlist.fixedCols) = true;
- }
-
- //fSerachData();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/retvcond/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_goodflag" ref="/root/send/retvcond/goodflag" visibility="hidden" style="left:605px; top:8px; width:40px; height:19px; "/>
- <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:30; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:316px; top:9px; width:119px; height:17px; ">CSR 청구부서 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/retvcond/csrreqdeptcd" appearance="minimal" style="left:439px; top:8px; width:158px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_goodnm" ref="/root/send/retvcond/goodnm" class="input_search" appearance="input" style="left:898px; top:8px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
- "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
- "", "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodcd.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="btn_searchgoodcd" class="icon_search" style="left:877px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/send/retvcond/goodcd" class="input_fix" style="left:778px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
- "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
- "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodnm.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <caption id="cap_goodcd" class="search_name" style="left:685px; top:9px; width:91px; height:17px; ">물품코드 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:13px; ">부서</caption>
- <line id="line1" class="line_1" style="x1:205px; y1:71px; x2:1195px; y2:70px; "/>
- <caption id="caption4" class="tit_2" style="left:209px; top:54px; width:190px; height:13px; ">물품별 기준량</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:200px; y2:71px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1086px; top:76px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rdlist_cur_row = grd_deptlist.row - grd_deptlist.fixedRows + 1;
- var rdlist_select_dept = model.getValue(grd_deptlist.attribute("nodeset")+"["+rdlist_cur_row+"]/deptcd");
- if(rdlist_select_dept == "") {
- messageBox("좌측 목록에서 부서를 ","C002");
- } else {
- misfGridIUD(grd_goodbaseqtylist, "A");
- var instcd, goodflag, reqdeptcd;
-
- instcd = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("instcd"));
- goodflag = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("goodflag"));
- reqdeptcd = grd_deptlist.valueMatrix(rdlist_cur_row, grd_deptlist.colRef("deptcd"));
-
- var gbqlist_cur_row = grd_goodbaseqtylist.row - grd_goodbaseqtylist.fixedRows + 1;
-
- //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 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);
-
- grd_goodbaseqtylist.editCell();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:76px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="154, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:200px; height:660px; ">
- <col disabled="true" ref="deptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSerachData();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" class="text_center" caption="물품코드^물품명^대분류^규격^환산수량^대여량^비품기준량^포장단위^비고^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^최종등록일시" colsep="^" colwidth="111, 231, 120, 113, 85, 85, 70, 75, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:205px; top:74px; width:990px; height:660px; ">
- <col class="input_essential" ref="goodcd" type="inputbutton" _key="true"/>
- <col ref="goodnm" _key="true"/>
- <col ref="lrgnm" _key="true"/>
- <col disabled="true" ref="goodspec"/>
- <col ref="exchqty" visibility="hidden" style="text-align:right; "/>
- <col class="input_essential" ref="ddavguseqty" type="input" format="#,###" style="text-align:right; "/>
- <col class="input_essential" ref="basevol" type="input" format="#,###" style="text-align:right; "/>
- <col ref="purcunit" _key="true"/>
- <col ref="cmt" type="input"/>
- <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="reqmthdnm" type="input" visibility="hidden"/>
- <col disabled="true" ref="goodmodel" visibility="hidden"/>
- <col disabled="true" ref="stocqty" visibility="hidden"/>
- <col disabled="true" ref="prodcmpynm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_goodbaseqtylist,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,ipt_goodflag", "Y");
-
- var cur_row = grd_goodbaseqtylist.row;
- // var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
-
- fSettingGoodList("/root/copynode", "goodbaseqtylist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodbaseqtylist.col == grd_goodbaseqtylist.colRef("goodcd") && grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.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",
- "goodcd," + cmb_instcd.value + "," + ipt_goodflag.value + ","+ grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row,grd_goodbaseqtylist.colRef("goodcd")),
- "", "goodcd,goodnm",
- grd_goodbaseqtylist, "SPRSD00190", "instcd,goodflag","cmb_instcd,ipt_goodflag");
-
- fGridDrugSetValidation();
-
- // var cur_row = grd_goodbaseqtylist.row;
- // var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
-
- // gvParamPath : /root/properties/parameters = js에 선언되어있는 변수
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "goodbaseqtylist");
-
- if(model.getValue("/root/init/main/goodlist/goodcd") == "")
- {
- fSettingGoodList("/root/copynode", "goodbaseqtylist");
- }
-
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete" class="btn2_letter3" style="left:1141px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist, "D");
-
- if(grd_goodbaseqtylist.rows == grd_goodbaseqtylist.fixedRows)
- {
- btn_delete.disabled = true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1086px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodbaseqtylist, "A");
-
- // 행추가시 기본값 설정.
- fGridDataSet();
-
- if(grd_goodbaseqtylist.rows > grd_goodbaseqtylist.fixedRows)
- {
- btn_delete.disabled = false;
- }
-
- ]]>
- </script>
- </button>
- </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[
- fSave();
- ]]>
- </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>
|