123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>처방전달 물품 응급 불출</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <searchgood>
- <searchgoodlist/>
- </searchgood>
- </list>
- <PrcpGoodTrees>
- <TreeList/>
- </PrcpGoodTrees>
- </main>
- <send>
- <SearchTree>
- <instcd/>
- <instcdnm/>
- <prcpdd/>
- <prcpdd2/>
- <sumflag/>
- <ioflag/>
- <prcpdeptcd/>
- <prcpdeptnm/>
- <querycls>0</querycls>
- <pid/>
- <patnm/>
- <reqflag/>
- <goodcd/>
- <purcflag/>
- <homematrflag/>
- <prntyn/>
- <deliveyn/>
- <prcpinptflag/>
- <erprcpflag>Y</erprcpflag>
- <prcpcd/>
- <prcpnm/>
- </SearchTree>
- <searchgood>
- <instcd/>
- <prcpdd/>
- <prcpdd2/>
- <sumflag/>
- <reqflag/>
- <reqdeptcd/>
- <reqprid/>
- <prcpdeptcd/>
- <goodcd/>
- <ioflag/>
- <deptgr/>
- <pid/>
- <patnm/>
- <purcflag/>
- <homematrflag/>
- <prodcmpynm/>
- <suplplcecdnm/>
- <suppcustnm/>
- <prntyn/>
- <deliveyn/>
- <prcpinptflag/>
- <erprcpflag/>
- </searchgood>
- </send>
- <init>
- <prntyn>
- <label>전체</label>
- <value/>
- <label>출력</label>
- <value>Y</value>
- <label>미출력</label>
- <value>N</value>
- </prntyn>
- <deliveprcsflag>
- <label>전체</label>
- <value/>
- <label>미불출</label>
- <value>N</value>
- <label>불출</label>
- <value>Y</value>
- </deliveprcsflag>
- <sumflag>
- <label>전체</label>
- <value/>
- <label>집계</label>
- <value>Y</value>
- <label>미집계</label>
- <value>N</value>
- </sumflag>
- <ioflag>
- <label>전체</label>
- <value/>
- <label>입원</label>
- <value>I</value>
- <label>외래</label>
- <value>O</value>
- <label>건진</label>
- <value>S</value>
- <label>응급</label>
- <value>E</value>
- </ioflag>
- <goodreqcnt/>
- <searchgoodcnt/>
- </init>
- <temp>
- <allchk/>
- <alarmsec/>
- <demonresult/>
- <alarmcount/>
- <alarmfile/>
- </temp>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfComboComCdList("R0111", cmb_purcflag, "Y"); //구매구분
- rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"%","B");
- fInit(); // 화면 Control을 초기화한다
-
- cmb_reqflag.select(0); //청구구분
-
- vProgramCls = "SMRSD02300";
-
- gTimerID = window.setInterval( "fCheckTimer()", 1000 );
-
- if(getCookie("alarmTimer") != null) {
- cmb_alarmsec.value = getCookie("alarmTimer");
- alarmTimer = getCookie("alarmTimer");
- } else {
- cmb_alarmsec.select(0);
- }
-
- model.setValue("/root/temp/alarmfile", alarmFile);
- opt_alarmfile.refresh();
- fSearchNewErprcp();
- ]]>
- </script>
- <submission id="TRRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchgood" resultref="/root/main/list/searchgood"/>
- <submission id="TRRSD02205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/main/PrcpGoodTrees"/>
- <!--물품규격내역를 저장하는 submmit-->
- <submission id="TXRSD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rsihopmabefore" add="bottom" resultref="/root/temp"/>
- <submission id="TXRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/prntinfo" resultref="/root/temp/saveprint"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
- <script type="javascript" src="../../../mis/reqweb/js/SMRSD02200.js"/>
- <script type="javascript">
- <![CDATA[
- var alarmTimer = -1;
- var alarmFile = "c:\\ALARM.wav";
-
- function fCheckTimer() {
- model.setValue(opt_alarmcount.attribute("ref"),alarmTimer);
- opt_alarmcount.refresh();
-
- if(alarmTimer != -1) {
- alarmTimer -= 1;
- if(alarmTimer < 0) {
- fSearchNewErprcp();
- alarmTimer = model.getValue("/root/temp/alarmsec");
- }
- }
- }
-
- function fSearchNewErprcp() {
- asyncSend("TRRSD02211", "/root/send/SearchTree", "/root/hidden/checkercpdelivery", "responseHandlerTRRSD02211");
- }
-
- function playsound(){
- sound1.url = alarmFile;
- }
-
- function responseHandlerTRRSD02211(submitUUID, response, responseType) {
- // 서버에서 전달된 결과를 instance에 맵핑
- //defualtResponseHandler(submitUUID, response, responseType);
- var ercpcount = model.getValue("/root/hidden/checkercpdelivery/ercpcount");
- model.setValue("/root/temp/demonresult",ercpcount + "건의 미불출 응급처방이 있습니다.");
- opt_alarm.refresh();
- btn_newercp.text = "응급처방(" + ercpcount + ")";
- btn_newercp.refresh();
- if(ercpcount > 0) playsound();
- }
-
- function setCookie(strName, strValue, intDate)
- {
- var strExpires = "";
- if(intDate!=null && !isNaN(intDate))
- {
- var dtmToday = new Date();
- dtmToday.setDate(dtmToday.getDate() + parseInt(intDate));
- strExpires = "; expires=" + dtmToday.toGMTString();
- }
- document.cookie = strName + "=" + escape(strValue) + strExpires + "; ";
- }
- function getCookie(strName)
- {
- var arrCookie = document.cookie.split("; ");
- var arrCrumb;
- for (var i=0;i<arrCookie.length;i++)
- {
- arrCrumb = arrCookie[i].split("=");
- if (strName==arrCrumb[0].replace(/^\s+/, ""))
- return unescape(arrCrumb[1]);
- }
- return null;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1205" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1185px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">처방전달 물품 응급 불출</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:23px; width:1186px; height:759px; ">
- <group id="grp_detail" style="left:5px; top:218px; width:340px; height:537px; vertical-align:top; ">
- <button id="btn_searchTree" class="btn2_letter7" navindex="18" visibility="visible" style="left:0px; top:41px; width:97px; height:19px; text-align:center; ">
- <caption>트 리 재 구 성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataSearchTree();
- model.makeValue("/root/prcpprntinfo/usernm" ,getUserInfo("usernm"));
- model.makeValue("/root/prcpprntinfo/erprcpflag", model.getValue("/root/send/SearchTree/erprcpflag"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_viewcls" ref="/root/send/SearchTree/querycls" navindex="17" appearance="full" cols="4" overflow="visible" style="left:100px; top:43px; width:235px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>시행부서</label>
- <value>2</value>
- </item>
- <item>
- <label>처방부서</label>
- <value>1</value>
- </item>
- <item>
- <label>불출</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDataSearchTree();
- ]]>
- </script>
- </select1>
- <treeview id="trv_setcode" ref="/root/main/PrcpGoodTrees/TreeList" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:65px; width:338px; height:470px; ">
- <itemset nodeset="/root/main/PrcpGoodTrees/TreeList">
- <label ref="dispnm"/>
- <value ref="pcode"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/send/searchgood/homematrflag", "Y"); // 귀가유치물품flag
- fDataSearchDetail(trv_setcode.focusIndex, "D");
- ]]>
- </script>
- </treeview>
- </group>
- <group id="grp_main" style="left:350px; top:8px; width:835px; height:747px; ">
- <datagrid id="grd_excelgood" nodeset="/root/main/list/searchgood/searchgoodlist" visibility="hidden" caption="시행일자^처방일자^물품코드^물품코드^물품명^규격^모델^총수량^선불출^단위^등록번호^환자명^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계^집계일자^구매구분^제조원^거래처" colsep="^" colwidth="66, 69, 70, 27, 183, 80, 80, 50, 50, 70, 55, 56, 36, 55, 40, 72, 76, 0, 0, 0, 40, 68, 82, 82, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:100px; width:835px; height:315px; ">
- <col ref="rgstdd" format="yyyy-mm-dd"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="totqty" format="#,###.#" style="text-align:right; "/>
- <col ref="beforqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
- <col ref="setunit" style="text-align:center; "/>
- <col ref="pid2"/>
- <col ref="patnm2"/>
- <col disabled="true" ref="ioflag">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="wardnm"/>
- <col ref="room"/>
- <col ref="orddeptcdnm"/>
- <col ref="prcpdeptcdnm"/>
- <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
- <col ref="times" format="#,###" style="text-align:right; "/>
- <col ref="dayno" format="#,###" style="text-align:right; "/>
- <col ref="sumflagnm" style="text-align:center; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:right; "/>
- <col ref="purcflagnm"/>
- <col ref="prodcmpynm"/>
- <col ref="suplplcecdnm"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="ward" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="sumflag" visibility="hidden"/>
- <col ref="purcflag" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_searchgood.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_searchgood" nodeset="/root/main/list/searchgood/searchgoodlist" caption="^처방일자^등록번호^환자명^물품코드^물품코드^물품명^규격^총수량^불출^집계^출력^대차^시행일자^처방코드^처방명^모델^구매구분^단위^귀가수량^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계일자^집계일자^불출자^불출일시^caption1^caption2" colsep="^" colwidth="24, 69, 60, 60, 70, 25, 165, 71, 45, 45, 40, 40, 40, 66, 80, 149, 70, 58, 46, 57, 60, 43, 70, 76, 76, 0, 0, 35, 70, 25, 60, 120, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="25" ellipsis="true" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:833px; height:710px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="totqty" format="#,###.#" style="text-align:right; "/>
- <col ref="beforqty" type="input" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="sumflagnm" visibility="hidden" style="text-align:center; "/>
- <col ref="prntynnm" style="text-align:center; "/>
- <col ref="autdeliveyn" style="text-align:center; "/>
- <col ref="rgstdd" format="yyyy-mm-dd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="goodmodel"/>
- <col ref="purcflagnm" style="text-align:center; "/>
- <col ref="setunit" style="text-align:center; "/>
- <col ref="homematrqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
- <col disabled="true" ref="ioflag">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="wardnm"/>
- <col ref="room"/>
- <col ref="orddeptcdnm"/>
- <col ref="prcpdeptcdnm"/>
- <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
- <col ref="times" format="#,###" style="text-align:right; "/>
- <col ref="dayno" format="#,###" style="text-align:right; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sumcnt" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="ward" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="sumflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrno" visibility="hidden"/>
- <col ref="genrseq" visibility="hidden"/>
- <col ref="beforqtyold" visibility="hidden"/>
- <col ref="homematrflag" visibility="hidden"/>
- <col ref="centcd" visibility="hidden"/>
- <col ref="subdeptcd" visibility="hidden"/>
- <col ref="centcdnm" visibility="hidden"/>
- <col ref="subdeptcdnm" visibility="hidden"/>
- <col ref="prntyn" visibility="hidden" style="left:3017px; top:23px; width:100px; height:23px; "/>
- <col ref="prtndt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_searchgood.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fBeforQtyOnChange(grd_searchgood.row, 1);
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_searchgood.row < grd_searchgood.rows - grd_searchgood.fixedRows){
- grd_searchgood.row = grd_searchgood.row + 1;
- grd_searchgood.select(grd_searchgood.row, grd_searchgood.colRef("beforqty")) = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (grd_searchgood.col == grd_searchgood.colRef("chk")){
- var totqty = model.getValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/totqty");
- model.setValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty", totqty);
- model.refreshpart(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- if (grd_searchgood.col == grd_searchgood.colRef("chk")){
- model.setValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty", 0);
- model.refreshpart(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel2" class="btn5_letter3" style="left:600px; top:5px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vdate = new Date();
- var HH = vdate.getHours();
- var MI = vdate.getMinutes();
- var SS = vdate.getSeconds();
-
- var vTime = HH +"" + MI +"" + SS;
-
-
- var vFileNM = "처방전달물품내역_"+getCurrentDate()+ vTime;
-
- var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_excelgood.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <line id="lin_main" class="line_1" style="x1:0px; y1:30px; x2:834px; y2:30px; "/>
- <button id="button57" class="icon_pre_month" visibility="hidden" style="left:0px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataPartToggle("1");
- ]]>
- </script>
- </button>
- <button id="button58" class="icon_next_month" visibility="hidden" style="left:20px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataPartToggle("0");
- ]]>
- </script>
- </button>
- <caption id="cpt_disp" class="tit_2" style="left:5px; top:13px; width:575px; height:13px; ">처방전달물품내역</caption>
- <caption id="caption5" visibility="hidden" style="left:555px; top:10px; width:50px; height:15px; ">All Size</caption>
- <caption id="caption9" class="color_6" visibility="hidden" style="left:537px; top:9px; width:15px; height:15px; background-color:#FFFF00; "/>
- <button id="btn_save" class="btn4_letter2" disabled="false" style="left:542px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fBeforQtyDataSave(); // Data를 저장한다.
- fSearchNewErprcp();
- ]]>
- </script>
- </button>
- <button id="btn_wardprint" class="btn2_letter6" style="left:655px; top:5px; width:86px; height:19px; ">
- <caption>환자별 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getGridUpdateData(grd_searchgood) != "") {
- if(messageBox("변경 된 내용을 ","Q002") == "6"){
- fBeforQtyDataSave();
- } else {
- return;
- }
- }
- model.removeNodeset("/root/prtinfo/gooddetlist");
- model.makeNode("/root/prtinfo/gooddetlist");
-
- if(instance1.selectNodes("/root/main/list/searchgood/searchgoodlist[beforqty != '0']").length < 1){
- messageBox("출력할 내용이","I004");
- return;
- }
-
- // copyNodesetType("/root/prtinfo/gooddetlist","/root/main/list/searchgood/searchgoodlist[beforqty != '0' and sumflag == 'N']","replace");
- copyNodesetType("/root/prtinfo/gooddetlist","/root/main/list/searchgood/searchgoodlist[beforqty != '0']","replace");
- exeReportPreview("RPRSD02203", "XMLSTR");
- // fBeforQtyDataSave(); // Data를 저장한다.
- fPrntDataSave();
- ]]>
- </script>
- <hint>
- <![CDATA[선불출 내용 변경시 저장 하신 후 선불출서를 출력해 주세요]]>
- </hint>
- </button>
- <bool id="chk_allchk" checkvalue="Y,N" ref="/root/temp/allchk" style="left:23px; top:38px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var allchk = model.getValue("/root/temp/allchk");
- if(allchk=="Y"){
- for(var i=grd_searchgood.fixedRows; i < grd_searchgood.rows;i++){
- grd_searchgood.valueMatrix(i, grd_searchgood.colRef("chk")) = 'Y';
- grd_searchgood.valueMatrix(i , grd_searchgood.colRef("beforqty")) = grd_searchgood.valueMatrix(i , grd_searchgood.colRef("totqty"));
- }
- }else{
- for(var i=grd_searchgood.fixedRows; i < grd_searchgood.rows;i++){
- grd_searchgood.valueMatrix(i, grd_searchgood.colRef("chk")) = 'N';
- grd_searchgood.valueMatrix(i , grd_searchgood.colRef("beforqty")) = "0";
- }
- }
- grd_searchgood.refresh();
- ]]>
- </script>
- </bool>
- <button id="button3" class="btn2_letter4" navindex="20" style="left:360px; top:5px; width:64px; height:19px; ">
- <caption>알람설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_newercp" class="btn2_letter6" navindex="22" style="left:425px; top:5px; width:86px; height:19px; ">
- <caption>응급처방(0)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue(ipt_prcpdeptcd.attribute("ref"),"");
- model.setValue(ipt_prcpdeptnm.attribute("ref"),"");
- model.setValue(ipt_pid.attribute("ref"),"");
- model.setValue(ipt_patnm.attribute("ref"),"");
- model.setValue(ipt_goodcd.attribute("ref"),"");
- model.setValue(cmb_purcflag.attribute("ref"),"");
- model.setValue(rdo_prntyn.attribute("ref"),"");
- model.setValue(rdo_deliveyn.attribute("ref"),"N");
- model.setValue(chk_prcpinptflag.attribute("ref"),"ignore");
- model.setValue(rdo_viewcls.attribute("ref"),"0");
-
- grp_key.refresh();
-
- btn_searchTree.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_goodprint" class="btn2_letter6" style="left:743px; top:5px; width:86px; height:19px; ">
- <caption>물품별 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getGridUpdateData(grd_searchgood) != "") {
- if(messageBox("변경 된 내용을 ","Q002") == "6"){
- fBeforQtyDataSave();
- } else {
- return;
- }
- }
- model.removeNodeset("/root/prtinfo/groupgoodlist");
- model.makeNode("/root/prtinfo/groupgoodlist");
-
- if(instance1.selectNodes("/root/main/list/searchgood/groupgoodlist").length < 1){
- messageBox("출력할 내용이","I004");
- return;
- } else {
- if(instance1.selectNodes("/root/main/list/searchgood/groupgoodlist[prntkey = null]").length > 0) {
-
- copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist[prntkey = null]","replace");
- exeReportPreview("RPRSD02204", "XMLSTR");
- fPrntDataSave();
-
- return;
- }
- if(instance1.selectNodes("/root/main/list/searchgood/prntlist").length > 1){
- rdo_prntlist.refresh();
- model.removenode("/root/temp/prntkey");
- model.makeNode("/root/temp/prntkey");
- rdo_prntlist.select(0);
- group5.disabled = true;
- group3.visible = true;
- return;
- } else {
- copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist","replace");
- exeReportPreview("RPRSD02204", "XMLSTR");
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[선불출 내용 변경시 저장 하신 후 선불출서를 출력해 주세요]]>
- </hint>
- </button>
- </group>
- <group id="grp_key" style="left:5px; top:8px; width:340px; height:247px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:340px; height:245px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption10" class="search_name" style="left:6px; top:5px; width:89px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcd" ref="/root/send/SearchTree/instcd" class="output_fix" visibility="hidden" style="left:225px; top:5px; width:20px; height:19px; "/>
- <input id="ipt_prcpdd2" ref="/root/send/SearchTree/prcpdd2" class="input_s_essential" navindex="3" inputtype="date" style="left:221px; top:53px; width:99px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </input>
- <input id="ipt_prcpdd" ref="/root/send/SearchTree/prcpdd" class="input_s_essential" navindex="2" inputtype="date" style="left:95px; top:53px; width:99px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </input>
- <caption id="caption12" style="left:201px; top:53px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption3" class="search_name" style="left:6px; top:53px; width:89px; height:17px; ">시행일자 :</caption>
- <select1 id="rdo_sumflag" ref="/root/send/SearchTree/sumflag" visibility="hidden" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:20px; top:180px; width:50px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/sumflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/SearchTree/ioflag" visibility="hidden" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:95px; top:77px; width:240px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:6px; top:77px; width:89px; height:17px; ">환자구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="19" visibility="hidden" style="left:260px; top:5px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(fCheckRetrieveData() == false)return;
-
- misfGridInit(grd_searchgood);
- misfGridInit(grd_orderlist);
- misfMsterDetailRetrieve();
-
- fAfterRetrieve();
- misfSetReadOnlyCol(grd_searchgood, "sumflag", true);
-
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_search" navindex="5" style="left:173px; top:77px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "prcpdeptcd,prcpdeptnm";
- misfOpenPopUpList("02", ipt_prcpdeptcd,"", recv_list) ;
- model.refresh();
- fDataSearchTree();
-
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:6px; top:77px; width:93px; height:17px; ">시행부서 :</caption>
- <input id="ipt_prcpdeptnm" ref="/root/send/SearchTree/prcpdeptnm" class="output_fix" navindex="6" editable="false" appearance="input" style="left:190px; top:77px; width:145px; height:19px; "/>
- <input id="ipt_prcpdeptcd" ref="/root/send/SearchTree/prcpdeptcd" class="input_fix" navindex="4" style="left:95px; top:77px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_prcpdeptnm);
- ]]>
- </script>
- </input>
- <output id="opt_instcdnm" ref="/root/send/SearchTree/instcdnm" class="output_fix" style="left:95px; top:5px; width:125px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:6px; top:101px; width:93px; height:17px; ">등록번호 :</caption>
- <caption id="caption4" class="search_name" style="left:170px; top:101px; width:93px; height:17px; ">환자명 :</caption>
- <input id="ipt_pid" ref="/root/send/SearchTree/pid" class="input_fix" navindex="7" style="left:95px; top:101px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_searchTree", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_patnm" ref="/root/send/SearchTree/patnm" class="input_fix" navindex="8" style="left:245px; top:101px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_searchTree", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:6px; top:29px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
- <select1 id="cmb_reqflag" ref="/root/send/SearchTree/reqflag" class="combo_default" navindex="1" appearance="minimal" style="left:95px; top:29px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqflag/reqflaglist">
- <label ref="reqflagnm"/>
- <value ref="reqflag"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:170px; top:125px; width:93px; height:17px; ">구매구분 :</caption>
- <select1 id="cmb_purcflag" ref="/root/send/SearchTree/purcflag" class="combo_default" navindex="10" appearance="minimal" style="left:260px; top:125px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:6px; top:125px; width:93px; height:17px; ">물품코드 :</caption>
- <input id="ipt_goodcd" ref="/root/send/SearchTree/goodcd" class="input_fix" navindex="9" imemode="disabled" _chartype="upper" style="left:95px; top:125px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_searchTree", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_prntyn" ref="/root/send/SearchTree/prntyn" navindex="13" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:173px; width:170px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prntyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </select1>
- <caption id="caption14" class="search_name" style="left:6px; top:173px; width:89px; height:17px; ">출력여부 :</caption>
- <caption id="caption7" class="search_name" style="left:6px; top:197px; width:89px; height:17px; ">불출여부 :</caption>
- <select1 id="rdo_deliveyn" ref="/root/send/SearchTree/deliveyn" navindex="14" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:197px; width:170px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/deliveprcsflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fDataSearchTree();
- ]]>
- </script>
- </select1>
- <select id="chk_prcpinptflag" ref="/root/send/SearchTree/prcpinptflag" navindex="16" overflow="visible" appearance="full" style="left:265px; top:221px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>CCD 제외</label>
- <value>ignore</value>
- </item>
- </choices>
- </select>
- <caption id="caption15" class="search_name" style="left:6px; top:221px; width:89px; height:17px; ">처방구분 :</caption>
- <select1 id="rdo_erprcpflag" ref="/root/send/SearchTree/erprcpflag" navindex="15" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:95px; top:221px; width:125px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_prcpnm" ref="/root/send/SearchTree/prcpnm" class="input_fix" navindex="12" autonext="false" maxlength="12" style="left:245px; top:149px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_searchTree", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_prcpcd" ref="/root/send/SearchTree/prcpcd" class="input_fix" navindex="11" autonext="false" imemode="disabled" maxlength="12" _chartype="upper" style="left:95px; top:149px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_searchTree", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption45" class="search_name" style="left:170px; top:149px; width:89px; height:17px; ">처방명 :</caption>
- <caption id="caption46" class="search_name" style="left:6px; top:149px; width:96px; height:17px; ">처방코드 :</caption>
- </group>
- </group>
- <group id="group2" visibility="hidden" style="left:645px; top:60px; width:245px; height:140px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:245px; height:140px; "/>
- <object id="sound1" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" style="left:10px; top:10px; width:225px; height:45px; font-size:45; "/>
- <select1 id="cmb_alarmsec" ref="/root/temp/alarmsec" appearance="minimal" style="left:10px; top:110px; width:65px; height:19px; ">
- <choices>
- <item select="true">
- <label>끄기</label>
- <value>-1</value>
- </item>
- <item>
- <label>5초</label>
- <value>5</value>
- </item>
- <item>
- <label>30초</label>
- <value>30</value>
- </item>
- <item>
- <label>1분</label>
- <value>60</value>
- </item>
- <item>
- <label>5분</label>
- <value>300</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- alarmTimer = cmb_alarmsec.value;
- setCookie("alarmTimer",cmb_alarmsec.value,30);
- ]]>
- </script>
- </select1>
- <button id="btn_demon" class="btn1_letter2" style="left:120px; top:109px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchNewErprcp();
- ]]>
- </script>
- </button>
- <output id="opt_alarm" ref="/root/temp/demonresult" class="output_fix" style="left:40px; top:85px; width:195px; height:19px; "/>
- <button id="button2" class="btn1_letter2" style="left:180px; top:109px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = false;
- ]]>
- </script>
- </button>
- <output id="opt_alarmcount" ref="/root/temp/alarmcount" class="output_fix" style="left:80px; top:110px; width:35px; height:19px; text-align:center; "/>
- <button id="btn_addfile" class="btn2_letter4" disabled="true" navindex="21" style="left:170px; top:60px; width:64px; height:19px; ">
- <caption>알람파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var files = window.fileDialog("open", "|", false,"","","Wave Files (*.wav)|*.wav");
-
- if ( files.length <= 0 ) return;
-
- model.setValue("/root/temp/alarmfile", files);
- alarmFile = files;
- sound1.url = files;
-
- opt_alarmfile.refresh();
- // model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
- // var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
-
- // model.setValue(ipt_attfilenm.attribute("ref") , filename);
- ]]>
- </script>
- </button>
- <input id="opt_alarmfile" ref="/root/temp/alarmfile" class="output_fix" disabled="true" style="left:10px; top:60px; width:155px; height:19px; "/>
- <caption id="caption16" style="left:10px; top:82px; width:35px; height:25px; ">결과</caption>
- </group>
- <group id="group3" visibility="hidden" style="left:650px; top:285px; width:250px; height:145px; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:250px; height:145px; border-color:#ff9900; border-width:2px; "/>
- <select1 id="rdo_prntlist" ref="/root/temp/prntkey" scroll="vertical" appearance="full" cols="1" vcellspacing="5" overflow="visible" style="left:5px; top:5px; width:175px; height:135px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/list/searchgood/prntlist">
- <label ref="prntkey"/>
- <value ref="prntkey"/>
- </itemset>
- </choices>
- </select1>
- <button id="button4" class="btn4_letter2" style="left:185px; top:45px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/prtinfo/groupgoodlist");
- model.makeNode("/root/prtinfo/groupgoodlist");
-
- rdo_prntlist.refresh();
- group5.disabled = true;
- group3.visible = true;
-
- copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist[prntkey = '" + model.getValue("/root/temp/prntkey") + "']","replace"); // 전체 선불출 노드
-
- exeReportPreview("RPRSD02204", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:185px; top:75px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.disabled = false;
- group3.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|