123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?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>
- <lngdinfo>
- <lngdlist/>
- </lngdinfo>
- </main>
- <send>
- <instcdnm/>
- <grupnm/>
- </send>
- <init>
- <csrdeptinfo/>
- <lngdcode>
- <grupcd/>
- </lngdcode>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lngdinfo"/>
- <submission id="TXMNG02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNG02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
-
- fSearch();
- }
-
- function fSearch() {
-
- submit("TRMNG02103");
- }
-
- function fSettingGoodList(pnode) {
-
- submit("TRMNG02104");
-
- var grupcd = model.getValue("/root/init/lngdcode/grupcd");
-
- var grupnm = grd_lngdlist.valueMatrix( grd_lngdlist.row, grd_lngdlist.colRef("grupnm"));
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_lngdlist.rows - grd_lngdlist.fixedRows;
-
- for (var j = 1; j <= codynode.length; j++) {
-
- if(addRow > grd_lngdlist.rows - grd_lngdlist.fixedRows)
- {
- misfGridIUD(grd_lngdlist,"A");
- addRow = grd_lngdlist.rows - grd_lngdlist.fixedRows;
- }
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/grupcd" , grupcd );
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/grupnm" , grupnm );
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodcd"));
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodcdseq" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodcdseq"));
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/lngoodnm" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/lngoodnm"));
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodspec"));
- model.setValue(grd_lngdlist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + "grd_lngdlist" + "[" + j + "]/goodmodel"));
- addRow = addRow + 1;
- }
-
- model.recalculate();
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="500" guideline="1,801;2,546;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:775px; 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:60px; width:775px; height:420px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">린넨그룹관리</caption>
- <button id="btn_sav" class="btn5_letter2" style="left:731px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/lngdlist", getGridUpdateData(grd_lngdlist) );
-
- submit("TXMNG02103");
-
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_lngdlist" nodeset="/root/main/lngdinfo/lngdlist" caption="그룹코드^그룹명^물품코드^상세코드^린넨품명^규격^상세규격^수량^비고" colsep="^" colwidth="100, 120, 100, 65, 110, 80, 80, 80, 80, 150" mergecellsfixedrows="never" rowheader="update" rowsep="|" style="left:0px; top:30px; width:775px; height:385px; ">
- <col disabled="true" ref="grupcd" visibility="hidden"/>
- <col ref="grupnm" type="inputbutton"/>
- <col ref="goodcd"/>
- <col ref="goodcdseq"/>
- <col ref="lngoodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="goodcnt" type="input"/>
- <col ref="remark" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.removeNodeset(gvParamPath +"/SPMNG02801_/SPMNG02801_value");
- model.property("flag") = "req";
- if (grd_lngdlist.col == grd_lngdlist.colRef("grupnm")) {//그룹명 버튼을 눌렀을 때
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
- rszfOpenPopUpListByWndName(grd_lngdlist,"","goodcd,goodcdseq,goodnm,goodspec,goodmodel","SPMNG02801","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG02801_/SPMNG02801_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_lngdlist");
-
- fSettingGoodList("/root/copynode");
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var grupnm = grd_lngdlist.valueMatrix(grd_lngdlist.row, grd_lngdlist.colRef("grupnm"));
- if ( grd_lngdlist.col == grd_lngdlist.colRef("grupnm")) {
- for ( i=grd_lngdlist.fixedRows; i<grd_lngdlist.rows; i++ ) {
- if (grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) == "" || grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) == null) {
- grd_lngdlist.valueMatrix(i, grd_lngdlist.colRef("grupnm")) = grupnm;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:1px; y1:26px; x2:775px; y2:25px; "/>
- <button id="button1" class="btn2_letter2" style="left:640px; top:3px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_lngdlist.addRow();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:685px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_lnsflist.row > -1 && grd_lnsflist.row >= grd_lnsflist.fixedrows){
-
- var firstRow = grd_lngdlist.selectedRow(0);
- var lastRow = grd_lngdlist.selectedRow(grd_lngdlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- grd_lngdlist.rowStatus(i) = "4";
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:714px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:705px; y1:25px; x2:705px; y2:50px; "/>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:160px; height:19px; text-align:center; "/>
- <input id="ipt_search" ref="/root/send/grupnm" class="input_search" style="left:375px; top:30px; width:155px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:295px; top:30px; width:86px; height:17px; ">그룹명 :</caption>
- </xhtml:body>
- </xhtml:html>
|