123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- <?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>
- <oproomlist>
- <oproomcd/>
- <oproomnm/>
- </oproomlist>
- <goodflaglist>
- <goodflagcd/>
- <goodflagnm/>
- </goodflaglist>
- </init>
- <main>
- <cond>
- <oproomcd/>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <refdeptflag>O</refdeptflag>
- <cureflag/>
- <oprosette/>
- <opfromdd/>
- <optodd/>
- <tabflag>CCR</tabflag>
- <subflag>M</subflag>
- <erprcpflag>Y</erprcpflag>
- <usernm/>
- </cond>
- <deliveLists>
- <delivelist>
- <chkflag/>
- <oproomnm/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <prcpunit/>
- <prcpqty/>
- <deliveqty/>
- <undeliveqty/>
- <delivetm/>
- <delivenm/>
- <oproomcd/>
- <deliveid/>
- <seqno/>
- <sumfromdd/>
- <sumtodd/>
- <delivedd/>
- </delivelist>
- <prcplist>
- <chkflag/>
- <oproomnm/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <prcpunit/>
- <prcpqty/>
- <deliveqty/>
- <undeliveqty/>
- <cmt/>
- <oproomcd/>
- <bfdeliveqty/>
- </prcplist>
- </deliveLists>
- </main>
- <send>
- </send>
- <hidden>
- <deliveLists>
- <delivelist>
- <chkflag/>
- <oproomnm/>
- <goodcd/>
- <allsizespecid/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <prcpunit/>
- <prcpqty/>
- <deliveqty/>
- <undeliveqty/>
- <delivetm/>
- <delivenm/>
- <oproomcd/>
- <deliveid/>
- <seqno/>
- <sumfromdd/>
- <sumtodd/>
- <delivedd/>
- </delivelist>
- </deliveLists>
- </hidden>
- <viewctrl>
- <viewctrllist/>
- </viewctrl>
- <temp>
- <chkcncl/>
- <openflag>STOC</openflag>
- <logginlevel>
- <usrlevel/>
- </logginlevel>
- </temp>
- </root>
- </instance>
- <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="TRMNP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deliveLists"/>
- <submission id="TXMNP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deliveLists"/>
- <submission id="TXMNP02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMNP00323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/viewctrl/viewctrllist"/>
- <submission id="TRMNP05001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/deliveLists"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
- </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/SMMNP02000.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInit();
- ]]>
- </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:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">일단위 물품 불출</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:762px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1195px; y2:90px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:124px; x2:1194px; y2:124px; "/>
- <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1113px; y1:7px; x2:1113px; y2:51px; "/>
- <caption id="caption4" class="search_name" style="left:5px; top:35px; width:68px; height:17px; ">수술방:</caption>
- <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" class="combo_search" appearance="minimal" style="left:148px; top:35px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/oproomlist">
- <label ref="oproomnm"/>
- <value ref="oproomcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="search_name" style="left:310px; top:35px; width:85px; height:17px; ">물품코드:</caption>
- <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:395px; top:35px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_goodsearch" class="icon_search" style="left:515px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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("tabflag", "CCR");
- setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
- setParameter("menuparam", "S");
- setParameter("cartgubn", model.getValue("/root/main/cond/deptflag"));
- modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
-
- var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
- if( getData == "") {
- return;
- }else {
- var getDataTemp1 = getData.split("▩");
-
- var getDataTemp2 = getDataTemp1[0].split("|");
-
- model.setValue("/root/main/cond/goodcd", getDataTemp2[0]);
- model.setValue("/root/main/cond/goodnm", getDataTemp2[1]);
- model.setValue("/root/main/cond/allsizespecid", getDataTemp2[2]);
- //model.setValue("/root/main/cond/goodflag", getDataTemp2[3]);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:535px; top:35px; width:500px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:435px; top:10px; width:60px; height:17px; ">부서:</caption>
- <caption id="caption9" class="search_name" style="left:600px; top:10px; width:90px; height:17px; ">처방구분:</caption>
- <select1 id="combo1" ref="/root/main/cond/cureflag" class="combo_search" appearance="minimal" style="left:690px; top:10px; width:120px; 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="combo2" ref="/root/main/cond/refdeptflag" class="combo_search" appearance="minimal" style="left:500px; top:10px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <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:1125px; top:35px; 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_search" appearance="minimal" style="left:87px; top:35px; width:58px; 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>
- <caption id="caption2" class="search_name" style="left:5px; top:8px; width:81px; height:17px; ">수술일자:</caption>
- <input id="ipt_reqfromdd" ref="/root/main/cond/opfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:87px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_reqtodd" ref="/root/main/cond/optodd" class="input_s_essential" navindex="2" inputtype="date" style="left:193px; top:8px; width:90px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:180px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption1" class="search_name" style="left:820px; top:10px; width:90px; height:17px; ">응급구분:</caption>
- <select1 id="radio1" ref="/root/main/cond/erprcpflag" appearance="full" cols="2" overflow="visible" style="left:910px; top:10px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>응급만</label>
- <value>Y</value>
- </item>
- <item>
- <label>응급제외</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (radio1.value == "Y") {
- // button7.visible = true;
- button8.visible = true;
- } else if (radio1.value == "N") {
- // button7.visible = false;
- button8.visible = false;
- }
- ]]>
- </script>
- </select1>
- <button id="button17" class="btn2_letter2" style="left:380px; top:7px; width:42px; height:19px; ">
- <caption>내일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sChkdd = getCurrentDate();
- var sCalcdd = fCalcdate(1, sChkdd);
- model.setValue("/root/main/cond/opfromdd", sCalcdd);
- model.setValue("/root/main/cond/optodd", sCalcdd);
-
- ipt_reqfromdd.refresh();
- ipt_reqtodd.refresh();
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter2" style="left:335px; top:7px; width:42px; height:19px; ">
- <caption>오늘</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sChkdd = getCurrentDate();
- model.setValue("/root/main/cond/opfromdd", sChkdd);
- model.setValue("/root/main/cond/optodd", sChkdd);
-
- ipt_reqfromdd.refresh();
- ipt_reqtodd.refresh();
- ]]>
- </script>
- </button>
- <button id="button25" class="btn2_letter2" style="left:290px; top:7px; width:42px; height:19px; ">
- <caption>어제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sChkdd = getCurrentDate();
- var sCalcdd = fCalcdate(-1, sChkdd);
- model.setValue("/root/main/cond/opfromdd", sCalcdd);
- model.setValue("/root/main/cond/optodd", sCalcdd);
-
- ipt_reqfromdd.refresh();
- ipt_reqtodd.refresh();
-
-
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_prcplist" nodeset="/root/main/deliveLists/prcplist" class="datagrid2" backcoloralternate="transparent" caption="^수술
방^등록번호^환자명^물품코드^SUB^물품명^규격^모델^처방
수량^불출
수량^미불출^제조원^단위^비고^cartgubn^prcpdd^deptengabbr^sexage^prcpernm^barcdno^수술방코드^이전불출수량" colsep="^" colwidth="35, 40, 65, 65, 80, 40, 280, 125, 120, 50, 50, 50, 100, 68, 100, 100, 100, 100, 100, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1195px; height:335px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" 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="prcpqty" style="text-align:right; "/>
- <col ref="deliveqty" type="input" style="text-align:right; "/>
- <col ref="undeliveqty" style="text-align:right; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" type="output" style="text-align:center; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="cartgubn" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="deptengabbr" visibility="hidden"/>
- <col ref="sexage" visibility="hidden"/>
- <col ref="prcpernm" visibility="hidden"/>
- <col ref="barcdno"/>
- <col ref="oproomcd" style="text-align:left; "/>
- <col ref="bfdeliveqty" style="text-align:left; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var iRow = -1;
- var iCol = -1;
- var deliveqty = 0;
- var prcpqty = 0;
- var bfdeliveqty = 0;
- iRow = grd_prcplist.row;
- iCol = grd_prcplist.col;
- if (grd_prcplist.rows <= 1 || iCol != 11){
- return;
- }
- //if( event.keyCode == 13 ) {
- if( model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty") > "0"||model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty") > "0.0" ) {
- model.setValue("/root/main/deliveLists/prcplist[" + iRow + "]/chkflag", "true");
- deliveqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty");
- prcpqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/prcpqty");
- bfdeliveqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/bfdeliveqty");
- model.setValue("/root/main/deliveLists/prcplist[" + iRow + "]/undeliveqty", (parseInt(prcpqty) - (parseInt(deliveqty)+parseInt(bfdeliveqty))));
- //grd_prcplist.row = iRow + 1;
- //grd_prcplist.editCell();
- }
-
-
- //}
- //model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter3" style="left:1072px; top:70px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var fileName = window.fileDialog("save", ",", false, "일단위 물품 불출 처방집계("+opfromdd+"~"+optodd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_prcplist.saveExcel(fileName, "SheetName");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn5_letter4" style="left:1128px; top:70px; width:64px; height:19px; ">
- <caption>불출확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfmSave();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter5" style="left:874px; top:70px; width:75px; height:19px; ">
- <caption>미불출조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNP02100");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter8" style="left:763px; top:70px; width:108px; height:19px; ">
- <caption>수술/마취처방집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*setParameter("opfromdd", model.getValue("/root/main/cond/opfromdd"));
- setParameter("optodd", model.getValue("/root/main/cond/optodd"));
- setParameter("oproomcd", model.getValue("/root/main/cond/oproomcd"));
- setParameter("deptflag", model.getValue("/root/main/cond/refdeptflag"));
- setParameter("cureflag", model.getValue("/root/main/cond/cureflag"));
- setParameter("goodcd", model.getValue("/root/main/cond/goodcd"));
- setParameter("allsizespecid", model.getValue("/root/main/cond/allsizespecid"));
- setParameter("goodnm", model.getValue("/root/main/cond/goodnm"));*/
- modal("SMMNP04000");
- ]]>
- </script>
- </button>
- <caption id="caption17" class="tit_2" style="left:0px; top:75px; width:105px; height:13px; vertical-align:middle; ">처방집계</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:440px; width:90px; height:13px; vertical-align:middle; ">불출내역</caption>
- <datagrid id="grd_delivelist" nodeset="/root/main/deliveLists/delivelist" class="datagrid2" backcoloralternate="transparent" caption="^수술
방^등록번호^환자명^물품코드^SUB^물품명^규격^불출/반환
수량^미불출^불출자^취소여부^비고^순번^집계시작일자^집계종료일자^불출자아이디^불출일시^확인자^확인자^확인
수량^모델^불출일자^제조원^단위^cartgubn^oproomcd^prcpqty^ordseq^oprsrvno^erprcpflag^prcpdd^perfdeptnm^perfdrnm" colsep="^" colwidth="35, 40, 65, 64, 80, 35, 230, 115, 70, 0, 70, 100, 0, 0, 0, 0, 0, 100, 0, 67, 51, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:460px; width:1195px; height:300px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="undeliveqty" style="text-align:right; "/>
- <col ref="delivenm" style="text-align:center; "/>
- <col ref="delyn" style="text-align:left; "/>
- <col ref="cmt" style="text-align:left; "/>
- <col ref="seqno" style="text-align:left; "/>
- <col ref="sumfromdd" style="text-align:left; "/>
- <col ref="sumtodd" style="text-align:left; "/>
- <col ref="deliveid" style="text-align:left; "/>
- <col ref="delivetm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="cnfmid" visibility="hidden"/>
- <col ref="cnfmnm"/>
- <col ref="cnfmqty" type="input"/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="delivedd" visibility="hidden" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" type="output" style="text-align:center; "/>
- <col ref="cartgubn" visibility="hidden"/>
- <col ref="oproomcd" visibility="hidden"/>
- <col ref="prcpqty" visibility="hidden"/>
- <col ref="ordseq" visibility="hidden"/>
- <col ref="oprsrvno" visibility="hidden"/>
- <col ref="erprcpflag" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="perfdeptnm" visibility="hidden"/>
- <col ref="perfdrnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_delivelist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // grd_delivelist.cellStyle("color", grd_delivelist.row, grd_delivelist.colRef("delyn"), grd_delivelist.row, grd_delivelist.colRef("delyn"));
- if(grd_delivelist.col == grd_delivelist.colRef("cnfmqty")) {
- grd_delivelist.valueMatrix(grd_delivelist.row, grd_delivelist.colRef("cnfmid")) = getUserInfo("userid");
- grd_delivelist.valueMatrix(grd_delivelist.row, grd_delivelist.colRef("cnfmnm")) = getUserInfo("usernm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- for ( i=1; i<grd_delivelist.rows; i++) {
- var delyn = model.getValue("/root/main/deliveLists/delivelist[" + i + "]/delyn");
- if (delyn == "취소") {
- model.setValue("/root/main/deliveLists/delivelist[" + i + "]/chkflag", "false");
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:455px; x2:1195px; y2:455px; "/>
- <button id="btn_cnclcnfm" class="btn5_letter4" style="left:1128px; top:435px; width:64px; height:19px; ">
- <caption>확정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnclCnfmSave();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1072px; top:435px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var fileName = window.fileDialog("save", ",", false, "일단위 물품 불출 불출내역("+opfromdd+"~"+optodd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_delivelist.saveExcel(fileName, "SheetName");
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:952px; top:70px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfmSave("2");
- fPrntList("P");
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:1027px; top:435px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntList("D");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter4" style="left:957px; top:435px; width:64px; height:19px; ">
- <caption>전체출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntList("A");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn5_letter4" style="left:890px; top:435px; width:64px; height:19px; ">
- <caption>반납확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_delivelist);
-
- if(updtdata == null || updtdata == "") {
- messageBox("반납확인할 목록이 없습니다." , "E");
- return;
- } else {
- var nodes = instance1.selectNodes(grd_delivelist.nodeset + "[delyn='취소' and cnfmqty!='']");
-
- if(nodes.length == 0) {
- messageBox("반납확인할 목록이 없습니다." , "E");
- return;
- }
- }
-
- model.makeValue("/root/send/savedata/savelist", updtdata);
- submit("TXMNP02002");
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter5" style="left:680px; top:70px; width:75px; height:19px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var scrnid = "SMMNP02000";
- model.removeNodeset("/root/main/barcdprntsetup");
- fGetBarCodeInfo(scrnid); // CareCom.js
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- modal("SPZUR00300" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- ]]>
- </script>
- </button>
- <caption id="caption7" style="left:529px; top:71px; width:85px; height:18px; font-weight:bold; ">현재사용자 :</caption>
- <output id="opt_usernm" ref="/root/main/cond/usernm" class="output_defualt" style="left:605px; top:70px; width:65px; height:19px; font-weight:bold; text-align:left; "/>
- <button id="button10" class="btn2_letter5" style="left:996px; top:70px; width:75px; height:19px; ">
- <caption>바코드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var erprcpflag = model.getValue("/root/main/cond/erprcpflag");
-
- if(erprcpflag == "Y") {
-
- } else {
- messageBox("바코드출력은 응급물품일 경우에만 가능합니다.", "E");
- return;
- }
-
- fCnfmSave("1");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|