123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?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>세탁물 물품 Master 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <mscdinfo>
- <mscdlist>
- <goodcd/>
- <goodnm/>
- <goodflag/>
- <goodspec/>
- <goodunit/>
- <useyn/>
- <sortseq/>
- <gooddesc/>
- <etcremark/>
- <fromdd/>
- <todd/>
- <instcd/>
- <gubuncd/>
- <dsioyn/>
- <csmtyn/>
- <possyn/>
- <porqyn/>
- <linenyn/>
- </mscdlist>
- <csrdeptlist/>
- </mscdinfo>
- <csrdeptlist/>
- <cond>
- <gubuncd/>
- </cond>
- </main>
- <send>
- </send>
- <code>
- <codeinfo>
- <codelist/>
- </codeinfo>
- </code>
- <codesend/>
- <datasend>
- <instcdnm/>
- <gubuncd/>
- </datasend>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/datasend" resultref="/root/main/mscdinfo"/>
- <submission id="TXMNG02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
- model.setValue(rdo_gubuncd.attribute("ref") , '01' );
-
- fSearch();
- }
-
- function fSearch() {
- model.setValue("/root/datasend/gubuncd", model.getValue(rdo_gubuncd.attribute("ref")));
-
- var pCode = "'T34'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); // 조회기준일자
- fGetNursHardCdInfo(pCode, pDate); // 간호코드 조회
-
- submit("TRMNG02801");
- if (model.getValue(rdo_gubuncd.attribute("ref")) == '02'){
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("dsioyn"))) = true;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("csmtyn"))) = true;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("possyn"))) = true;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("porqyn"))) = true;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("linenyn"))) = true;
- } else {
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("dsioyn"))) = false;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("csmtyn"))) = false;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("possyn"))) = false;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("porqyn"))) = false;
- grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("linenyn"))) = false;
- }
- }
-
- ]]>
- </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:1185px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물 물품 Master 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:660px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">세탁물 물품 Master 등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
- <button id="btn_sav" class="btn5_letter2" style="left:1141px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/mscdlist", getGridUpdateData(grd_mscdlist) );
- submit("TXMNG02801");
-
- fSearch();
- ]]>
- </script>
- </button>
- <col ref="mscdcnt" type="input"/>
- <col ref="mscdcnt" type="input"/>
- <datagrid id="grd_mscdlist" nodeset="/root/main/mscdinfo/mscdlist" visibility="visible" caption="물품코드^물품명^구분^규격^단위^사용유무^정렬^시작일자^종료일자^기관코드^구븐코드^폐기관리화면^위탁/수탁화면^보유관리화면^청구관리화면^린넨운용관리화면^상세설명^비고^망순번|물품코드^물품명^구분^규격^단위^사용유무^정렬^시작일자^종료일자^기관코드^구븐코드^폐기관리화면^위탁/수탁화면^보유관리화면^청구관리화면^린넨운용관리화면^상세설명^비고^망순번" colsep="^" colwidth="83, 172, 73, 77, 40, 60, 48, 60, 40, 44, 49, 60, 60, 60, 60, 60, 136, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:1185px; height:616px; ">
- <col class="input_essential" ref="goodcd" type="input" visibility="visible" maxlength="12"/>
- <col ref="goodnm" type="input" visibility="visible" maxlength="100"/>
- <col ref="goodflag" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/code/codeinfo/codelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="goodspec" type="input" visibility="visible"/>
- <col ref="goodunit" type="input" visibility="visible"/>
- <col ref="useyn" type="combo" visibility="visible">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="sortseq" type="input" visibility="visible"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="gubuncd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="dsioyn" type="checkbox" visibility="visible"/>
- <col checkvalue="Y,N" ref="csmtyn" type="checkbox" visibility="visible"/>
- <col checkvalue="Y,N" ref="possyn" type="checkbox" visibility="visible"/>
- <col checkvalue="Y,N" ref="porqyn" type="checkbox" visibility="visible"/>
- <col checkvalue="Y,N" ref="linenyn" type="checkbox" visibility="visible"/>
- <col ref="gooddesc" type="input" visibility="visible"/>
- <col ref="etcremark" type="input" visibility="visible"/>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:998px; top:3px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:1097px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_mscdlist.row > -1 && grd_mscdlist.row >= grd_mscdlist.fixedrows){
-
- var firstRow = grd_mscdlist.selectedRow(0);
- var lastRow = grd_mscdlist.selectedRow(grd_mscdlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- //grd_mscdlist.addStatus(i, "delete");
- grd_mscdlist.rowStatus(i) = "4";
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter2" disabled="false" style="left:1053px; top:3px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mscdlist.addRow();
- grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("useyn")) = "Y";
- grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("gubuncd")) = model.getValue(rdo_gubuncd.attribute("ref"));
- var tmp = Number(grd_mscdlist.valueMatrix(grd_mscdlist.row-1,grd_mscdlist.colRef("goodcd")).substr(1,3)) + 1;
- if (tmp.toString().length == 1) {
- tmp = "00" + tmp;
- } else if (tmp.toString().length == 2) {
- tmp = "0" + tmp;
- }
- if (model.getValue(rdo_gubuncd.attribute("ref")) == '01') {grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("goodcd")) = "A" + tmp}
- else { }
- grd_mscdlist.editCell();
- ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1120px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1100px; y1:25px; x2:1100px; 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/datasend/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
- <select1 id="rdo_gubuncd" ref="/root/main/cond/gubuncd" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:350px; top:30px; width:305px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>물품Master</label>
- <value>01</value>
- </item>
- <item>
- <label>창고Master</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:290px; top:30px; width:55px; height:17px; ">구분:</caption>
- </xhtml:body>
- </xhtml:html>
|