123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <?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>
- <goodlist>
- <reqflag>1</reqflag>
- <mstflag>T</mstflag>
- <proddrugsetflag/>
- <useyn>Y</useyn>
- <goodpos/>
- <goodpos1/>
- <goodpos2/>
- <dinfflag>1</dinfflag>
- <dinfdivs/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <csrflag>Y</csrflag>
- <csrrequnit/>
- <csrreqqty/>
- </goodlist>
- </main>
- <send>
- <instcd/>
- </send>
- <temp/>
- <init>
- <initflag/>
- <deptflag/>
- <deptref>
- <instcd/>
- </deptref>
- <mlist>
- <R0092>
- <cdid/>
- <cdnm/>
- </R0092>
- <R0032>
- <cdid/>
- <cdnm/>
- </R0032>
- <R0039>
- <cdid/>
- <cdnm/>
- </R0039>
- <R0111>
- <cdid/>
- <cdnm/>
- </R0111>
- </mlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- // fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/lrglist"/>
- <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/mdllist"/>
- <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/smllist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- zbcfGetCodeList( new Array ( "R0092" //청구방법
- ,"R0032" //구매단위
- ,"R0039" //불출단위
- ,"R0111" //구매구분
- ,"R0093" //청구기간
- )
- , new Array ( "/root/init/mlist" //청구방법
- ,"/root/init/mlist" //구매단위
- ,"/root/init/mlist" //불출단위
- ,"/root/init/mlist" //구매구분
- ,"/root/init/mlist" //청구기간
- )
- );
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- model.makeValue("/root/send/reqlrgcd/useyn", "Y");
- submit("TRMNG00101");
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="180" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:683px; height:155px; ">
- <line id="line1" class="line_1" style="x1:5px; y1:26px; x2:680px; y2:26px; "/>
- <caption id="caption4" class="tit_2" style="left:10px; top:11px; width:126px; height:13px; ">물품기본정보 등록</caption>
- <button id="btn_comfirm" class="btn4_letter2" navindex="28" style="left:620px; top:130px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.copyNode(opener.root.main.popup, root.main.goodlist);
- //수정
- var dinfflag = model.getValue("/root/main/goodlist/dinfflag");
- var dinfdivs = model.getValue("/root/main/goodlist/dinfdivs");
- var proddrugsetflag = model.getValue("/root/main/goodlist/proddrugsetflag");
- if(dinfflag =="1"){
- if(dinfdivs ==""){
- messageBox("멸균선택시 세부항목은","I003");
- model.setFocus("cmb_dinfdivs");
- return;;
- }
- }
- if(proddrugsetflag ==""){
- messageBox("Set구분은","I003");
- model.setFocus("rdo_proddrugsetflag2");
- return;;
- }
- var oprnerId = opener.window.javascript.getScreenID();
- if(oprnerId =="SMMNG00200"){
- opener.window.javascript.setParameter("mstflag" ,model.getValue("/root/main/goodlist/mstflag"));
- opener.window.javascript.setParameter("proddrugsetflag" ,model.getValue("/root/main/goodlist/proddrugsetflag"));
- opener.window.javascript.setParameter("reqflag" ,model.getValue("/root/main/goodlist/reqflag"));
- opener.window.javascript.setParameter("goodpos" ,model.getValue("/root/main/goodlist/goodpos"));
- opener.window.javascript.setParameter("goodpos1" ,model.getValue("/root/main/goodlist/goodpos1"));
- opener.window.javascript.setParameter("goodpos2" ,model.getValue("/root/main/goodlist/goodpos2"));
- opener.window.javascript.setParameter("lrgcd" ,model.getValue("/root/main/goodlist/lrgcd"));
- opener.window.javascript.setParameter("mdlcd" ,model.getValue("/root/main/goodlist/mdlcd"));
- opener.window.javascript.setParameter("smlcd" ,model.getValue("/root/main/goodlist/smlcd"));
- opener.window.javascript.setParameter("dinfflag" ,model.getValue("/root/main/goodlist/dinfflag"));
- opener.window.javascript.setParameter("dinfdivs" ,model.getValue("/root/main/goodlist/dinfdivs"));
- opener.window.javascript.setParameter("csrflag" ,model.getValue("/root/main/goodlist/csrflag"));
- opener.window.javascript.setParameter("csrrequnit" ,model.getValue("/root/main/goodlist/csrrequnit"));
- opener.window.javascript.setParameter("csrreqqty" ,model.getValue("/root/main/goodlist/csrreqqty"));
- opener.window.javascript.setParameter("useyn" ,model.getValue("/root/main/goodlist/useyn"));
-
- opener.javascript.fGoodInfoSave();
- }
- window.close();
- ]]>
- </script>
- </button>
- <input id="ipt_goodpos1" ref="/root/main/goodlist/goodpos1" navindex="12" style="left:108px; top:104px; width:30px; height:19px; "/>
- <input id="ipt_goodpos2" ref="/root/main/goodlist/goodpos2" navindex="13" style="left:141px; top:104px; width:33px; height:19px; "/>
- <select1 id="rdo_reqflag" ref="/root/main/goodlist/reqflag" navindex="1" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:75px; top:82px; width:245px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_goodpos" ref="/root/main/goodlist/goodpos" navindex="11" imemode="alpha" style="left:75px; top:104px; width:30px; height:19px; text-align:center; "/>
- <select1 id="rdo_useyn" ref="/root/main/goodlist/useyn" navindex="10" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:395px; top:106px; width:125px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_2" style="x1:5px; y1:53px; x2:680px; y2:53px; "/>
- <line id="line3" class="line_2" style="x1:5px; y1:77px; x2:680px; y2:77px; "/>
- <line id="line4" class="line_2" style="x1:5px; y1:101px; x2:680px; y2:101px; "/>
- <line id="line7" class="line_2" style="x1:5px; y1:125px; x2:680px; y2:125px; "/>
- <caption id="caption1" class="cell_1" style="left:347px; top:55px; width:65px; height:23px; vertical-align:middle; ">멸균구분</caption>
- <select1 id="rdo_dinfflag" ref="/root/main/goodlist/dinfflag" navindex="1" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:415px; top:59px; width:115px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
-
- cmb_dinfdivs.disabled = false;
-
-
- } else {
- model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
- cmb_dinfdivs.refresh();
-
- cmb_dinfdivs.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="cell_1" style="left:287px; top:31px; width:65px; height:23px; vertical-align:middle; ">분류구분</caption>
- <caption id="caption45" style="left:449px; top:32px; width:15px; height:20px; ">/</caption>
- <select1 id="cmb_smlcd" ref="/root/main/goodlist/smlcd" appearance="minimal" style="left:568px; top:32px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smllist">
- <label ref="smlnm"/>
- <value ref="smlcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" style="left:556px; top:32px; width:15px; height:20px; ">/</caption>
- <select1 id="cmb_lrgcd" ref="/root/main/goodlist/lrgcd" appearance="minimal" style="left:355px; top:32px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/lrglist">
- <label ref="lrgnm"/>
- <value ref="lrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqlrgcd/goodflag", "T");
- model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
- model.makeValue("/root/send/reqlrgcd/useyn", "Y");
- submit("TRMNG00102");
- model.removeNodeset("/root/main/goodlist/mdlcd");
- model.removeNodeset("/root/main/goodlist/smlcd");
- model.makeNode("/root/main/goodlist/mdlcd");
- model.makeNode("/root/main/goodlist/smlcd");
- var nodelist = instance1.selectNodes("/root/init/mdllist");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- }
- cmb_mdlcd.refresh();
- cmb_smlcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/main/goodlist/mdlcd" appearance="minimal" style="left:463px; top:32px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mdllist">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue("/root/main/goodlist/lrgcd"));
- model.makeValue("/root/send/reqlrgcd/mdlcd", model.getValue("/root/main/goodlist/mdlcd"));
- model.makeValue("/root/send/reqlrgcd/useyn", "Y");
- submit("TRMNG00103");
- model.removeNodeset("/root/main/goodlist/smllist");
- model.makeNode("/root/main/goodlist/smllist");
- var nodelist = instance1.selectNodes("/root/init/smllist");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/smllist");
- }
- cmb_smlcd.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="caption46" class="cell_1" style="left:5px; top:79px; width:67px; height:23px; vertical-align:middle; ">물품구분</caption>
- <select1 id="rdo_csrreqflag" ref="/root/main/goodlist/csrflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:395px; top:83px; width:75px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption55" class="cell_1" style="left:5px; top:55px; width:67px; height:23px; vertical-align:middle; ">Set 구분</caption>
- <caption id="caption5" class="cell_1" style="left:327px; top:79px; width:65px; height:23px; vertical-align:middle; ">CSR청구</caption>
- <select1 id="cmb_csrrequnit" ref="/root/main/goodlist/csrrequnit" disabled="true" appearance="minimal" style="left:558px; top:80px; width:58px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0039">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_csrreqqty" ref="/root/main/goodlist/csrreqqty" maxlength="12" format="###.##" style="left:619px; top:80px; width:34px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)model.setFocus("ipt_goodnm");
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell_1" style="left:490px; top:79px; width:65px; height:23px; vertical-align:middle; ">기준단위</caption>
- <select1 id="rdo_mstflag" ref="/root/main/goodlist/mstflag" appearance="full" cols="2" overflow="visible" style="left:75px; top:35px; width:85px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>CSR</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:5px; top:31px; width:67px; height:23px; text-align:center; vertical-align:middle; ">마스터구분</caption>
- <select1 id="cmb_dinfdivs" ref="/root/main/goodlist/dinfdivs" appearance="minimal" style="left:538px; top:56px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption40" class="cell_1" style="left:327px; top:103px; width:65px; height:23px; vertical-align:middle; ">사용여부</caption>
- <caption id="caption54" class="cell_1" style="left:5px; top:103px; width:67px; height:23px; vertical-align:middle; ">물품위치</caption>
- <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:75px; top:60px; width:270px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Set</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- <item>
- <label>Single(Set)</label>
- <value>3</value>
- </item>
- <item>
- <label>없음</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "3") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "N");
- model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
-
- } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "2") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
- model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
- } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "1") {
- model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
- model.setValue(cmb_csrrequnit.attribute("ref"), "SET");
- }
-
- rdo_csrreqflag.refresh();
- cmb_csrrequnit.refresh();
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|