123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752 |
- <?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="">
- <init>
- <lrglist>
- <lrgcd/>
- <lrgnm/>
- </lrglist>
- <mdllist>
- <mdlcd/>
- <mdlnm/>
- </mdllist>
- <smllist>
- <smlcd/>
- <smlnm/>
- </smllist>
- <oproomlist>
- <oproomcd/>
- <oproomnm/>
- </oproomlist>
- <goodflaglist>
- <goodflagcd/>
- <goodflagnm/>
- </goodflaglist>
- <hardcodeinfo/>
- </init>
- <main>
- <cond>
- <oproomcd/>
- <useflag/>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <goodflag/>
- <tabflag>CCR</tabflag>
- <refdeptflag>O</refdeptflag>
- <prodcmpynm/>
- <deliveyn/>
- <delivepriod/>
- <purcflag/>
- <cureflag/>
- <stocflag>R</stocflag>
- <refflag/>
- <cnfmyn/>
- <variable/>
- <oprosette/>
- <refcnfmyn/>
- <searflag/>
- <delflag/>
- </cond>
- <stoclist>
- <stocflagnm/>
- <deptflag/>
- <purcflag/>
- <useflag/>
- <delivepriod/>
- <deliveyn/>
- <oproomnm/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <purcunitcost/>
- <totalcost/>
- <prcpunit/>
- <safestocqty/>
- <stocqty/>
- <inspqty/>
- <chkflag/>
- <disreqqty/>
- <deliveqty/>
- <rtnqty/>
- <undeliveqty/>
- <rgstdd/>
- <inspdd/>
- <inspid/>
- <oproomcd/>
- <bfsafestocqty/>
- <stat/>
- <reqdd/>
- <reqcnfmyn/>
- <bfdeliveqty/>
- <reqqty/>
- <stocflag/>
- </stoclist>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <temp>
- <chkcncl/>
- <openflag>STOC</openflag>
- <logginlevel>
- <usrlevel/>
- </logginlevel>
- <btnflag/>
- </temp>
- <viewctrl>
- <viewctrllist/>
- </viewctrl>
- </root>
- </instance>
- <submission id="TRMNP03904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/stoclist"/>
- <submission id="TRMNP03905" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
- <submission id="TXMNP03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
- <submission id="TXMNP03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
- <submission id="TXMNP03903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
- <submission id="TRMNP03906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/stoclist"/>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- model.setValue("/root/temp/chkcncl", "C");
- ]]>
- </script>
- <submission id="TRMNP04463" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/lrglist"/>
- <submission id="TRMNP04464" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/mdllist"/>
- <submission id="TRMNP04465" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/smllist"/>
- <submission id="TRMNP04604" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/temp/logginlevel"/>
- <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
- <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcodeinfo"/>
- <submission id="TRMNP00323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/viewctrl/viewctrllist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/opanstweb/js/SMMNP03900.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,342;" 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:155px; height:13px; ">방재고 등록 및 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:737px; ">
- <button id="btn_delete" class="btn2_letter2" visibility="hidden" style="left:1003px; top:90px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelHist();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:1150px; top:90px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:110px; x2:1195px; y2:110px; "/>
- <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:85px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:18px; x2:1110px; y2:66px; "/>
- <caption id="caption4" class="search_name" style="left:300px; top:5px; width:83px; height:17px; ">수 술 방 :</caption>
- <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:450px; top:5px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/oproomlist">
- <label ref="oproomnm"/>
- <value ref="oproomcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption26" class="search_name" style="left:520px; top:30px; width:86px; height:17px; ">불출시기 :</caption>
- <caption id="caption28" class="search_name" style="left:825px; top:30px; width:83px; height:17px; ">제 조 원 :</caption>
- <caption id="caption29" class="search_name" style="left:520px; top:55px; width:94px; height:17px; ">물품코드 :</caption>
- <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:610px; top:55px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_goodsearch" class="icon_search" style="left:700px; top:56px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/chkcncl", "");
- //var variable = "'";
- //var goodcd = "";
- //var goodnm = "";
- //var oldgoodcd, oldgoodnm, oldvariable;
-
- //oldgoodcd = model.getValue("/root/main/cond/goodcd");
- //oldgoodnm = model.getValue("/root/main/cond/goodnm");
- //oldvariable = model.getValue("/root/main/cond/variable");
-
- var refflag = model.getValue("/root/temp/refflag");
- if( refflag == "1" ) { /*물품명으로 검색*/
- setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
- setParameter("refflag", "1");
- }else if( refflag == "2" ) { /*물품코드으로 검색*/
- setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
- setParameter("refflag", "2");
- }
- setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
- setParameter("menuparam", "T");
- setParameter("cartgubn", model.getValue("/root/main/cond/refdeptflag"));
- setParameter("tabflag", "CCR");
- open("SMMNP04460" ,"", "100", "100", "SMMNP04460", "/root/temp/openflag", "/root/main/cond/openflag");
-
- /*var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- if( getData != "") {
- if( model.getValue("/root/temp/chkcncl") != "C" ) {
- var getDataTemp1 = getData.split("▩");
-
- for( var i = 0; i < getDataTemp1.length-1; i++) {
- var getDataTemp2 = getDataTemp1[i].split("|");
-
- variable = variable + getDataTemp2[0] + getDataTemp2[2] + "'";
- goodcd = goodcd + getDataTemp2[0];
- goodnm = goodnm + getDataTemp2[1];
- if(( i+1) != (getDataTemp1.length-1) ) {
- variable = variable + ", '";
- goodcd = goodcd + ", ";
- goodnm = goodnm + ", ";
- }
-
- //if( getDataTemp1.length - 1 = 1 ) {
-
- //model.setValue("/root/main/cond/allsizespecid", goodnm);
- //}
-
- }
- if( oldgoodcd != "" ) {
- goodcd = oldgoodcd + ", " + goodcd
- }
- if( oldgoodnm != "" ) {
- goodnm = oldgoodnm + ", " + goodnm
- }
- if( oldvariable != "" ) {
- variable = oldvariable + ", " + variable
- }
- model.setValue("/root/main/cond/goodcd", goodcd);
- model.setValue("/root/main/cond/goodnm", goodnm);
- model.setValue("/root/main/cond/variable", variable);
- fSearch();
- }
- }*/
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:720px; top:55px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_lrg" ref="/root/main/cond/lrgcd" appearance="minimal" style="left:190px; top:55px; width:80px; 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.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- model.setValue("/root/main/cond/mdlcd", "");
- model.setValue("/root/main/cond/smlcd", "");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP04464");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdl" ref="/root/main/cond/mdlcd" appearance="minimal" style="left:280px; top:55px; width:80px; 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.removeNodeset("/root/main/goodlist");
- model.removeNodeset("/root/init/smllist");
- model.setValue("/root/main/cond/smlcd", "");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP04465");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sml" ref="/root/main/cond/smlcd" appearance="minimal" style="left:370px; top:55px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smllist">
- <label ref="smlnm"/>
- <value ref="smlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/main/cond/goodflag" appearance="minimal" style="left:100px; top:55px; width:80px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/goodflaglist">
- <label ref="goodflagnm"/>
- <value ref="goodflagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/lrglist");
- model.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- model.setValue("/root/main/cond/lrgcd", "");
- model.setValue("/root/main/cond/mdlcd", "");
- model.setValue("/root/main/cond/smlcd", "");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP04463", false);
- addComboItem("cmb_lrg", "전 체", "", "above" );
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:5px; top:55px; width:94px; height:17px; ">물품구분 :</caption>
- <caption id="caption3" class="search_name" style="left:5px; top:30px; width:94px; height:17px; ">사용구분 :</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:4px; width:94px; height:17px; ">부서구분 :</caption>
- <caption id="caption8" class="search_name" style="left:825px; top:5px; width:94px; height:17px; ">구매구분 :</caption>
- <select1 id="radio3" ref="/root/main/cond/purcflag" appearance="full" cols="4" overflow="visible" style="left:915px; top:5px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>구매</label>
- <value>1</value>
- </item>
- <item>
- <label>수탁</label>
- <value>2</value>
- </item>
- <item>
- <label>가납</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio4" ref="/root/main/cond/useflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:30px; width:185px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>1회</label>
- <value>N</value>
- </item>
- <item>
- <label>재사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>분할</label>
- <value>Z</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:300px; top:30px; width:90px; height:17px; ">처방구분 :</caption>
- <caption id="caption10" class="search_name" style="left:520px; top:4px; width:99px; height:17px; ">CCR불출 :</caption>
- <select1 id="radio5" ref="/root/main/cond/delivepriod" appearance="full" cols="4" overflow="visible" style="left:610px; top:30px; width:205px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>일단위</label>
- <value>1</value>
- </item>
- <item>
- <label>의뢰</label>
- <value>2</value>
- </item>
- <item>
- <label>미불출</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/main/cond/cureflag" appearance="minimal" style="left:390px; top:30px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Suture</label>
- <value>1</value>
- </item>
- <item>
- <label>Supplies</label>
- <value>2</value>
- </item>
- <item>
- <label>Drug</label>
- <value>3</value>
- </item>
- <item>
- <label>Instrument</label>
- <value>4</value>
- </item>
- <item>
- <label>처치,행위</label>
- <value>5</value>
- </item>
- <item>
- <label>린넨/소모품</label>
- <value>6</value>
- </item>
- <item>
- <label>Sheet</label>
- <value>7</value>
- </item>
- <item>
- <label>Glove</label>
- <value>8</value>
- </item>
- <item>
- <label>일반물품</label>
- <value>9</value>
- </item>
- <item>
- <label>린넨</label>
- <value>10</value>
- </item>
- <item>
- <label>공용</label>
- <value>11</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio6" ref="/root/main/cond/deliveyn" appearance="full" cols="3" overflow="visible" style="left:610px; top:5px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_prodcmpynm" ref="/root/main/cond/prodcmpynm" class="input_search" style="left:915px; top:30px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_prodcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_prodcmpy" class="icon_search" style="left:1040px; top:31px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("refnm", model.getValue("/root/main/cond/prodcmpynm"));
- setParameter("refflag", "1");
-
- modal("SMMNP04410" ,"", "100", "100", "SMMNP04410", "", "");
-
- var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- if( getData == "") {
- return;
- }else {
- var getDataTemp = getData.split("|");
-
- model.setValue("/root/main/cond/prodcmpynm", getDataTemp[1]);
- ipt_prodcmpynm.refresh();
-
-
- }
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/main/cond/refdeptflag" appearance="minimal" style="left:100px; top:5px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>수술</label>
- <value>O</value>
- </item>
- <item>
- <label>마취</label>
- <value>A</value>
- </item>
- <item>
- <label>회복</label>
- <value>R</value>
- </item>
- <item>
- <label>안과</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <button id="button2" class="btn2_letter3" style="left:910px; top:55px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/goodcd", "");
- model.setValue("/root/main/cond/goodnm", "");
- model.setValue("/root/main/cond/allsizespecid", "");
- model.setValue("/root/main/cond/variable", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_default" appearance="minimal" style="left:390px; top:5px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rosettelist">
- <label ref="rosettenm"/>
- <value ref="rosettecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" ,getCurrentDate().substr(0, 8) );
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
- if(submit("TRMNP03002")){ // 수술실코드 가져오기
- addComboItem("cmb_oproomcd","전체","","above");
- }
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_stoclist" nodeset="/root/main/stoclist" class="datagrid2" backcoloralternate="transparent" caption="재고
관리^부서
구분^구매
구분^사용
구분^불출
시기^불출
여부^수술
방^물품코드^SUB^물품명^규격^모델^제조원^구매단가^합산^단위^안전
재고^재고
수량^재고
실사^^신청
량^불출
수량^반납
수량^미불출^등록일자^확정일자^확정자^조정전안전재고^상태값^신청일^확정여부^이전불출량^실신청수량^재고구분" colsep="^" colwidth="40, 40, 40, 40, 45, 40, 40, 70, 35, 125, 80, 80, 80, 60, 80, 40, 40, 40, 40, 35, 40, 40, 40, 40, 70, 70, 50, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1195px; height:600px; ">
- <col ref="stocflagnm" style="text-align:center; "/>
- <col ref="deptflag" style="text-align:center; "/>
- <col ref="purcflag" style="text-align:center; "/>
- <col ref="useflag" style="text-align:center; "/>
- <col ref="delivepriod" style="text-align:center; "/>
- <col ref="deliveyn" style="text-align:center; "/>
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" type="output" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="purcunitcost" format="#,###" style="text-align:right; "/>
- <col ref="totalcost" format="#,###" style="text-align:right; "/>
- <col ref="prcpunit" style="text-align:center; "/>
- <col ref="safestocqty" type="input" style="text-align:right; "/>
- <col ref="stocqty" style="text-align:right; "/>
- <col ref="inspqty" type="input" style="text-align:right; "/>
- <col ref="chkflag" type="checkbox"/>
- <col ref="disreqqty" style="text-align:right; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="rtnqty" style="text-align:right; "/>
- <col ref="undeliveqty" style="text-align:right; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inspdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inspid" style="text-align:center; "/>
- <col ref="oproomcd"/>
- <col ref="bfsafestocqty"/>
- <col ref="stat"/>
- <col ref="reqdd"/>
- <col ref="reqcnfmyn"/>
- <col ref="bfdeliveqty"/>
- <col ref="reqqty"/>
- <col ref="stocflag" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var iRow = -1;
- var iCol = -1;
- iRow = grd_stoclist.row;
- iCol = grd_stoclist.col;
- if (grd_stoclist.rows <= 1 || grd_stoclist.row == 0||grd_stoclist.col == 1){
- return;
- }
- var stocflag = model.getValue("/root/main/cond/stocflag");
- var level = model.getValue("/root/temp/logginlevel/usrlevel");
- //수량이 있고 이전 재고와 틀릴경우
- if( !(model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "") ) {
- if( model.getValue("/root/main/stoclist[" + iRow + "]/bfsafestocqty") != model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") ) {
- model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
- }
- }
- //수량이 없고 이전재고와 틀린경우(등록된 안전재고를 0으로 만들때)
- if( (model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "") ) {
- if( model.getValue("/root/main/stoclist[" + iRow + "]/bfsafestocqty") != model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") ) {
- model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
- }
- }
-
- if( !(model.getValue("/root/main/stoclist[" + iRow + "]/inspqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/inspqty") == "") ) {
- model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_stoclist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ) {
- fNextRow();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter3" style="left:1094px; top:90px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_stoclist.saveExcel(fileName, "sheetname:Sheet1;", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <select1 id="radio7" ref="/root/main/cond/stocflag" appearance="full" cols="3" overflow="visible" style="left:5px; top:92px; width:260px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>안전재고등록</label>
- <value>R</value>
- </item>
- <item>
- <label>안전재고변경</label>
- <value>U</value>
- </item>
- <item>
- <label>재고실사</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var stocflag = model.getValue("/root/main/cond/stocflag");
- if( stocflag == "R" || stocflag == "U" ) {
- grd_stoclist.colDisabled(17) = "true";
- grd_stoclist.colDisabled(15) = "false";
- }else {
- grd_stoclist.colDisabled(17) = "false";
- grd_stoclist.colDisabled(15) = "true";
- }
- model.removeNodeset("/root/main/stoclist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_prnt" class="btn2_letter2" style="left:1048px; top:90px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var instcd = getUserInfo("dutplceinstcd");
- var cnt = 0;
- var nodePath = "/root/tmp/printinfo";
-
- if(instcd == "032") {
- model.removeNodeset(nodePath);
- model.makeNode(nodePath);
-
- var nodelist = instance1.selectNodes(grd_stoclist.nodeset + "[chkflag='true']");
-
- var desnode = instance1.selectSingleNode(nodePath);
-
- var node;
-
- if(nodelist.length > 0) {
- while(node = nodelist.nextNode()) {
- model.duplicate(desnode, node);
- }
- }
-
-
- exeReportPreview("RPMNP03902", "XMLSTR");
- } else {
- exeReportPreview("RPMNP03900", "XMLSTR");
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_refcnfm" ref="/root/main/cond/refcnfmyn" appearance="full" cols="3" overflow="visible" style="left:270px; top:92px; width:150px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확정</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="button5" class="btn2_letter4" visibility="visible" style="left:425px; top:90px; width:64px; height:19px; ">
- <caption>이력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHistSearch();
- ]]>
- </script>
- </button>
- <select id="chk_delehist" ref="/root/main/cond/delflag" visibility="hidden" overflow="visible" appearance="full" style="left:495px; top:92px; width:50px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>삭제</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption2" style="left:0px; top:715px; width:730px; height:20px; ">물품코드를 선택할 경우에는 전체 수술방에 대한 조회가 가능합니다. 수술방 전체에 대한 물품 전체조회는 시스템 부하상 불가능합니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|