123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533 |
- <?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>일반청구Set 상비품복사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <goodbaseqtylist/>
- <codelist>
- <allsizespecid/>
- <goodspec/>
- </codelist>
- </main>
- <apply/>
- <send>
- <retvcond>
- <instcd/>
- <goodflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <instcdnm/>
- <reqmthd/>
- </retvcond>
- <goodbaseqtylist/>
- <allsize>
- <goodcd/>
- <instcd/>
- <goodspec/>
- </allsize>
- </send>
- <init>
- <goodflag>
- <label>의료소모품</label>
- <value>Y</value>
- <label>일반소모품</label>
- <value>Z</value>
- <label>의료비품</label>
- <value>U</value>
- </goodflag>
- <reqmthd>
- <label>전체</label>
- <value/>
- <label>처방집계</label>
- <value>1</value>
- <label>일반청구</label>
- <value>3</value>
- </reqmthd>
- <baseflag>1</baseflag>
- </init>
- <hidden/>
- <copytemp/>
- <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_goodbaseqtylist);
- misfMsterDetailSet(grd_goodbaseqtylist,null,"TRRSD00102","Y");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/goodbaseqtylist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- 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"));
-
- cmb_goodflag.select(0); //물품구분
- cmb_reqmthd.select(0); //청구방법
-
- model.refresh();
- }
-
- function fCheckKey()
- {
- var bool = false;
- //기관코드 및 물품청구 구분값 체크
- if( opt_instcd.value =="") {
- messageBox("기관코드를","C002");
- bool = true;
- } else if(cmb_goodflag.value=="") {
- messageBox("물품청구 구분","C002");
- bool = true;
- } else if(ipt_reqdeptcd.value=="") {
- messageBox("부서 코드를","C002");
- bool = true;
- }
-
- return bool
- }
-
- function fSettingGoodList(pnode, nodename, userqtynm){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
-
- if(model.getValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if((grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows == 0) || (addRow > grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows))
- {
- misfGridIUD(grd_goodbaseqtylist,"A");
- addRow = grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows;
- }
-
- 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 + "]/goodmodel" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodmodel" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/prodcmpynm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/prodcmpynm" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/purcunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/exchqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/deliveunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/deliveunit" ));
- model.makeValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/reqmthd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/reqmthd" ));
- var sReqmThd = model.getValue(pnode +"/" + nodename + "[" + j + "]/reqmthd" );
- if(sReqmThd=="1"){
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/prepargodqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/safestocqty" ));
- }else if(sReqmThd=="3"){
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/basevol" , model.getValue(pnode +"/" + nodename + "[" + j + "]/safestocqty" ));
- }
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/ddavguseqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/ddavguseqty" ));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/allsizespecid", model.getValue(pnode +"/" + nodename + "[" + j + "]/allsizespecid"));
- model.setValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/allsizeyn" , model.getValue(pnode +"/" + nodename + "[" + j + "]/allsizeyn" ));
-
- model.makeValue(grd_goodbaseqtylist.nodeset + "[" + addRow + "]/tmpreqflag" , model.getValue(pnode +"/" + nodename + "[" + j + "]/tmpreqflag" ));
- addRow = addRow + 1;
-
- }
- // 2009.11.09 수정 처방집계일때 상비품량, 일반청구일때 안전재고량만 입력가능
- // 2009.12.29 수정 tmpreqflag 임의청구 가능여부 삭제
- for(var k =1;k<=grd_goodbaseqtylist.rows;k++){
- var Reqmthd = model.getValue(grd_goodbaseqtylist.nodeset + "[" + k + "]/reqmthd");
- var Tmpreqflag = model.getValue(grd_goodbaseqtylist.nodeset + "[" + k + "]/tmpreqflag");
-
- if(Reqmthd=="1"){ //처방집계시
- grd_goodbaseqtylist.isReadOnly(k,grd_goodbaseqtylist.colRef("basevol")) = true;
- grd_goodbaseqtylist.isReadOnly(k,grd_goodbaseqtylist.colRef("prepargodqty")) = false;
- }else if(Reqmthd=="3"){ //일반청구시
- grd_goodbaseqtylist.isReadOnly(k,grd_goodbaseqtylist.colRef("basevol")) = false;
- grd_goodbaseqtylist.isReadOnly(k,grd_goodbaseqtylist.colRef("prepargodqty")) = true;
- }
- }
- //model.removenode(pnode);
- 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 선택
- 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);
-
- if (model.getValue(cmb_reqmthd.attribute("ref"))=="1") {
- model.setValue(vTarget + "/basevol" , "0" );
- model.setValue(vTarget + "/prepargodqty", vQty );
- } else {
- model.setValue(vTarget + "/basevol" , vQty );
- model.setValue(vTarget + "/prepargodqty", "0" );
- }
- }
- }
-
- pGrid.refresh();
- }
-
- //
- function fSettingGoodData(pTarget, pSource) {
- 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 + "prodcmpynm" , model.getValue(pSource + "prodcmpynm" ));
- model.setValue(pTarget + "purcunit" , model.getValue(pSource + "purcunit" ));
- model.setValue(pTarget + "exchqty" , model.getValue(pSource + "exchqty" ));
- model.setValue(pTarget + "deliveunit" , model.getValue(pSource + "deliveunit" ));
- model.setValue(pTarget + "basevol" , model.getValue(pSource + "basevol" ));
- model.setValue(pTarget + "prepargodqty" , model.getValue(pSource + "prepargodqty" ));
- model.setValue(pTarget + "cmt" , model.getValue(pSource + "cmt" ));
- model.setValue(pTarget + "ddavguseqty" , model.getValue(pSource + "ddavguseqty" ));
- 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 + "allsizeyn" , model.getValue(pSource + "allsizeyn" ));
-
- // model.setValue(pTarget + "oallsizespecid", model.getValue(pSource + "oallsizespecid"));
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1170" pageheight="600" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1150; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일반청구Set 상비품복사</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1150px; height:585px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1145px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1144px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:25px; top:9px; width:89px; height:17px; ">기관코드 :</caption>
- <caption id="caption3" class="search_name" style="left:636px; top:9px; width:86px; height:17px; ">부 서 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1030px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckKey())
- {
- return;
- }
-
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag" ref="/root/send/retvcond/goodflag" class="combo_s_essential" appearance="minimal" style="left:435px; top:9px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqdeptcd" ref="/root/send/retvcond/reqdeptcd" class="input_s_essential" style="left:720px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0)
- ipt_reqdeptnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_reqdeptcd" class="icon_search" style="left:825px; top:12px; 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:720px; top:32px; width:235px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:350px; top:9px; width:94px; height:17px; ">물품구분 :</caption>
- <line id="line3" class="line_4" style="x1:1015px; y1:9px; x2:1015px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_instcd" ref="/root/send/retvcond/instcd" class="output_fix" visibility="hidden" style="left:284px; top:9px; width:30px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/retvcond/instcdnm" class="output_search" style="left:110px; top:9px; width:165px; height:19px; text-align:center; "/>
- <select1 id="cmb_reqmthd" ref="/root/send/retvcond/reqmthd" class="combo_s_essential" appearance="minimal" style="left:435px; top:32px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:350px; top:32px; width:94px; height:17px; ">청구방법 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:106px; x2:630px; y2:106px; "/>
- <caption id="cap_titlist" class="tit_2" style="left:3px; top:91px; width:190px; height:13px; ">부서 상비품 List</caption>
- <caption id="caption8" style="left:237px; top:90px; width:66px; height:14px; font-weight:bold; ">적용구분 :</caption>
- <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/goodbaseqtylist" allowuserresize="false" caption="Chk^물품코드^물품코드^물품명^규격^모델^안전재고^상비품^단위^청구구분^물품구분^" colsep="^" colwidth="31, 66, 25, 218, 46, 46, 60, 60, 35, 10, 10, 12, 10, 13, 34" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:111px; width:630px; height:472px; ">
- <col ref="select" type="checkbox"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="basevol" format="#,###" style="text-align:right; background-color:#ccffcc; "/>
- <col ref="prepargodqty" format="#,###" style="text-align:right; background-color:#ffcc99; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqflagnm" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="reqpridnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodbaseqtylist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_listcopy" class="btn4_letter2" style="left:575px; top:83px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_goodbaseqtylist.rows - grd_goodbaseqtylist.fixedRows == 0)
- {
- messageBox("적용할 내역이","I004");
- return;
- }
-
- model.resetInstanceNode("/root/copytemp");
- var varcopy = instance1.selectNodes(grd_goodbaseqtylist.nodeset + "[select='true']");
-
- var rCSV = getNodeListCSV(varcopy);
-
- model.setValue("/root/copytemp", rCSV);
-
- var CSV = model.getValue("/root/copytemp");
-
- setCSVToNode("/root/apply", CSV, "goodapplist");
- model.refresh();
-
- var vQty = "";
- for (var row = grd_apply.fixedRows ; row < grd_apply.rows; row++)
- {
- model.setValue(grd_apply.nodeset + "[" + row + "]/select" , "false");
-
- if (model.getValue(rdo_baseflag.attribute("ref")) == "1" ) {
- vQty = model.getValue(grd_apply.nodeset +"[" + row+ "]/basevol") ; // 안전재고량
- } else {
- vQty = model.getValue(grd_apply.nodeset +"[" + row+ "]/prepargodqty") ; // 상비품량
- }
-
- //
- if (vQty == "" || vQty == "0" ) {
- vQty ="1";
- }
- //
- model.setValue(grd_apply.nodeset + "[" + row + "]/userqty" ,vQty);
-
- grd_apply.rowStatus(row) = 1;
- }
-
- for (var row = grd_goodbaseqtylist.fixedRows ; row < grd_goodbaseqtylist.rows; row++)model.setValue(grd_goodbaseqtylist.nodeset + "[" + row + "]/select" , "false");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" style="left:983px; top:85px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var currow = grd_apply.rows ; currow > 0; currow--)
- if(grd_apply.valueMatrix(currow, grd_apply.colRef("select")) == "true") grd_apply.deleteRow(currow,true);
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:640px; top:91px; width:145px; height:13px; ">선택리스트</caption>
- <line id="line2" class="line_1" style="x1:635px; y1:106px; x2:1146px; y2:106px; "/>
- <datagrid id="grd_apply" nodeset="/root/apply/goodapplist" class="grd_agtplcelist" caption="Chk^물품코드^물품코드^물품명^규격^모델^수량^단위^청구구분^청구구분^물품구분^청구주기^청구주기명^기관" colsep="^" colwidth="31, 66, 25, 158, 70, 54, 60, 35, 21, 15, 36, 30, 27, 34" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:635px; top:111px; width:511px; height:472px; ">
- <col ref="select" type="checkbox"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="userqty" type="input" format="#,###" style="text-align:right; background-color:#ccffcc; "/>
- <col ref="deliveunit"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqflagnm" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="reqpridnm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_apply.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn4_letter2" style="left:1089px; top:83px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_apply.rows - grd_apply.fixedRows == 0)
- {
- messageBox("적용할 내역이","I004");
- window.close();
- return;
- }
- var iParam = model.getValue(grd_apply.nodeset);
- var nodelist = instance1.selectNodes(grd_apply.nodeset);
-
- var rCVS = getNodeListCSV(nodelist);
-
- if ( checkOpener() ) {
- opener.javascript.setParameter("SMRSD00230_", rCVS);
-
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
-
- window.close();
- ]]>
- </script>
- </button>
- <select1 id="rdo_baseflag" ref="/root/init/baseflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:301px; top:89px; width:185px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>안전재고량</label>
- <value>1</value>
- </item>
- <item>
- <label>상비품량</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_cancel" class="btn4_letter2" style="left:1030px; top:83px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|