123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <returngoodlist/>
- <returndetaillist/>
- <returndaylist/>
- <searchinfo>
- <searchtime/>
- </searchinfo>
- </list>
- </main>
- <send>
- <searchinfo>
- <instcd/>
- <acptddfr/>
- <acptddto/>
- <sumcnt>0</sumcnt>
- <reqflag/>
- <prcpdeptcd/>
- <prcpdeptnm/>
- <goodcd/>
- <goodnm/>
- <wareflag/>
- <wareflagarr/>
- <deptflag/>
- <ignoreset>ignore</ignoreset>
- <dayflag/>
- </searchinfo>
- <save>
- <returnlist/>
- </save>
- </send>
- <init>
- <erprcpdeptlist>
- <returndeptlist>
- <deptcd>2280200000,2280230000,2500000000,3050135010</deptcd>
- <deptnm>[전체] 응급의료센터</deptnm>
- </returndeptlist>
- <returndeptlist>
- <deptcd>2280200000</deptcd>
- <deptnm>응급의료센터</deptnm>
- </returndeptlist>
- <returndeptlist>
- <deptcd>2280230000</deptcd>
- <deptnm>응급의료센터(EICU)</deptnm>
- </returndeptlist>
- <returndeptlist>
- <deptcd>2500000000</deptcd>
- <deptnm>응급의료센터(응급실)</deptnm>
- </returndeptlist>
- <returndeptlist>
- <deptcd>3050135010</deptcd>
- <deptnm>응급의료센터(응급입원실)</deptnm>
- </returndeptlist>
- </erprcpdeptlist>
- </init>
- <temp>
- <printnode/>
- <viewzeroqty/>
- </temp>
- <combo>
- <number>
- <value/>
- </number>
- <redata>
- <label/>
- <value/>
- </redata>
- </combo>
- <printdata>
- <returnempllist/>
- </printdata>
- <printsend>
- <nowtime/>
- </printsend>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize(); // 화면 Control을 초기화한다
- ]]>
- </script>
- <submission id="TRRSD07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/main/list"/>
- <submission id="TRRSD07402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/init/deptlist"/>
- <submission id="TXRSD07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/returnlist" resultref="/root/temp"/>
- <submission id="TRRSD07403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/combo"/>
- <submission id="TRRSD07404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/printdata"/>
- </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">
- <![CDATA[
- function fInitialize()
- {
- if(getUserInfo("dutplceinstcd") == "032") {
- cap_acptddsearch.value = "집계일자 :";
- // btn_returngoodcase_er.visible = true;
- // btn_returndetailcase_er.visible = true;
- }
-
- //부서구분 공통코드 ID
- var deptflagGRID = getUserInfo("dutplceinstcd") + "R0029";
-
- var pcdgrupid_list = "C0048,R0450,030R0034," + deptflagGRID;
- var pcontrol_name_list = "cmb_instcd_search,chk_wareflag,grd_returngoodlist.erprcpflag,rbo_deptflag";
-
- misfComboComCdListMulti(pcdgrupid_list,pcontrol_name_list);
-
- addGridComboItem("rbo_deptflag", "전체", "", "above");
-
- misfComboCopyItemSet(rbo_deptflag, "" , grd_returngoodlist, "deptflag");
- misfComboCopyItemSet(rbo_deptflag, "" , grd_divgoodlist, "deptflag");
-
- model.setValue("/root/send/searchinfo/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- if(getUserInfo("dutplceinstcd") == "031" || getUserInfo("dutplceinstcd") == "033" ) {
- chk_wareflag.value = "2";
- }
-
- if(getUserInfo("dutplcecd") == "3080000000" || getUserInfo("dutplcecd") == "4020334000"
- || getUserInfo("dutplcecd") == "3360000000") { // 진료재료 파트인 경우 수작업 반납등록, 전부서 조회 가능
- if(submit("TRRSD07402")){
- if(cmb_prcpdeptcd.length != 0)
- addGridComboItem("cmb_prcpdeptcd", "[전체]", "", "above");
- }
- rbo_deptflag.visible = true;
- rbo_deptflag.disabled = false;
- cmb_prcpdeptcd.visible = true;
- cmb_prcpdeptcd.disabled = false;
- //btn_save.visible = true;
- btn_save.disabled = false;
- } else {
- rbo_deptflag.visible = false;
- cmb_prcpdeptcd.visible = false;
- //btn_save.visible = false;
-
- var chkNode = instance1.selectNodes("/root/init/erprcpdeptlist/returndeptlist[deptcd='" + getUserInfo("dutplcecd") + "']");
- if(getUserInfo("dutplceinstcd") == "031" && chkNode != null && chkNode.length > 0) {
- cmb_prcpdeptcd_sub.visible = true;
- cmb_prcpdeptcd_sub.select(0);
- } else if(getUserInfo("dutplceinstcd") == "033" && chkNode != null && chkNode.length > 0) {
- cmb_prcpdeptcd_sub.visible = true;
- cmb_prcpdeptcd_sub.select(0);
- } else {
- ipt_prcpdeptnm.visible = true;
- cmb_prcpdeptcd.value = getUserInfo("dutplcecd");
- ipt_prcpdeptnm.value = getUserInfo("dutplcenm");
- }
- grd_returngoodlist.colHidden(grd_returngoodlist.colRef("new_rtnqty")) = true;
- grd_returngoodlist.colHidden(grd_returngoodlist.colRef("aftqty")) = true;
- }
-
- //일자조회
- model.setValue("/root/send/searchinfo/dayflag", "day");
- submit("TRRSD07403");
- var value = model.getValue("/root/combo/number/value");
- model.setValue("/root/send/searchinfo/acptddfr", value);
- //차수조회
- model.setValue("/root/send/searchinfo/dayflag", "number");
- submit("TRRSD07403");
- value = model.getValue("/root/combo/number/value");
- for(i = 1 ; i <= value ; i++){
- var label = i + "차";
- addComboItem( "cmb_sumcnt", label, i, "above");
- }
- cmb_sumcnt.select(0);
- model.refresh();
- btn_search.dispatch("DOMActivate");
- }
-
- function fDetailSearchPopup(target, flag) {
- if(flag == "notrtn"){
- var objGrid = document.controls(target);
- var sendNode = "/root/temp/sendpopup";
-
- if(objGrid.col >= objGrid.colRef("goodcd") && objGrid.col <= objGrid.colRef("rtnqty")){
- model.removeNodeset("/root/temp/sendpopup");
- model.makeNode(sendNode);
-
- model.makeValue(sendNode + "/instcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("instcd")));
- model.makeValue(sendNode + "/prcpdeptcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptcd")));
- model.makeValue(sendNode + "/prcpdeptnm", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptnm")));
- model.makeValue(sendNode + "/goodcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("goodcd")));
- model.makeValue(sendNode + "/erprcpflag", objGrid.valueMatrix(objGrid.row, objGrid.colRef("erprcpflag")));
- model.makeValue(sendNode + "/fpopup", "1");
-
- if(target == "grd_divgoodlist") {
- model.setValue(sendNode + "/erprcpflag", "A");
- }
-
- model.makeValue(sendNode + "/acptddfr",objGrid.valueMatrix(objGrid.row, objGrid.colRef("genracptdd")));
- model.makeValue(sendNode + "/acptddto",objGrid.valueMatrix(objGrid.row, objGrid.colRef("lastacptdd")));
- model.makeValue(sendNode + "/genrsumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("genrsumcnt")));
- model.makeValue(sendNode + "/lastsumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("lastsumcnt")));
-
- model.makeValue(sendNode + "/sumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("sumcnt")));
-
- model.makeValue(sendNode + "/facptddfr",ipt_acptddfr.value);
- model.makeValue(sendNode + "/fsumcnt", cmb_sumcnt.value);
-
- modal("SMRSD07500", "", "", "", "popup", sendNode, "/root/temp" );
- }
- }else if(flag == "rtn"){
- var objGrid = document.controls(target);
- var sendNode = "/root/temp/sendpopup";
-
- model.removeNodeset("/root/temp/sendpopup");
- model.makeNode(sendNode);
-
- model.makeValue(sendNode + "/instcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("instcd")));
- model.makeValue(sendNode + "/prcpdeptcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptcd")));
- model.makeValue(sendNode + "/prcpdeptnm", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptnm")));
- model.makeValue(sendNode + "/goodcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("goodcd")));
- model.makeValue(sendNode + "/erprcpflag", objGrid.valueMatrix(objGrid.row, objGrid.colRef("erprcpflag")));
- model.makeValue(sendNode + "/fpopup", "2");
-
- model.makeValue(sendNode + "/acptddfr",ipt_acptddfr.value);
- model.makeValue(sendNode + "/sumcnt", cmb_sumcnt.value);
-
- modal("SMRSD07500", "", "", "", "popup", sendNode, "/root/temp" );
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1220" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">진료재료 취소 현황</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:23px; width:1195px; height:759px; ">
- <button id="btn_returngoodcase" class="btn_sw" group="tab" selected="true" style="left:0px; top:85px; width:125px; height:22px; ">
- <caption>물품별 미반납 현황</caption>
- <toggle case="cse_returngoodcase" ev:event="onclick"/>
- </button>
- <button id="btn_divgoodcase" class="btn_sw" group="tab" style="left:125px; top:85px; width:150px; height:22px; ">
- <caption>분할처방 사용물품 현황</caption>
- <toggle case="cse_divgoodcase" ev:event="onclick"/>
- </button>
- <button id="btn_returndetailcase" class="btn_sw" visibility="hidden" group="tab" style="left:275px; top:85px; width:125px; height:22px; ">
- <caption>일자별 취소 현황</caption>
- <toggle case="cse_returndetailcase" ev:event="onclick"/>
- </button>
- <button id="btn_divgooddetailcase" class="btn_sw" visibility="hidden" group="tab" style="left:400px; top:85px; width:185px; height:22px; ">
- <caption>일자별 분할처방 사용물품 현황</caption>
- <toggle case="cse_divgooddetailcase" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:105px; width:1195px; height:650px; ">
- <case id="cse_returngoodcase" selected="true">
- <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:575px; height:15px; ">물품별 처방집계 미반납 내역</caption>
- <datagrid id="grd_returngoodlist" nodeset="/root/main/list/returngoodlist[divuseyn='N' and aftqty!=0]" caption="기관코드^부서구분^부서^부서코드^정규/응급^물품코드^물품코드^최종집계^물품명^규격^미반납수량^반납수량^남은수량^분할사용여부^응급여부" colsep="^" colwidth="0, 56, 176, 0, 60, 79, 0, 85, 245, 241, 70, 70, 70, 40, 30, 100, 100" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="14" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col disabled="true" ref="deptflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/deptflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col disabled="true" ref="erprcpflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
- <col ref="lastacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="new_rtnqty" type="output" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="aftqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="divuseyn" visibility="hidden"/>
- <col ref="genracptdd" visibility="hidden"/>
- <col ref="genrsumcnt" visibility="hidden"/>
- <col ref="lastsumcnt" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_returngoodlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var instcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("instcd"));
- var prcpdeptcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("prcpdeptcd"));
- var goodcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("goodcd"));
- var allsizespecid = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("allsizespecid"));
-
- grd_gooddetaillist.nodeset = "root/main/list/returndetaillist[instcd='" + instcd + "' and prcpdeptcd='" + prcpdeptcd + "' and goodcd='" + goodcd + "' and allsizespecid='" +allsizespecid + "']";
- grd_gooddetaillist.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var currentRow = grd_returngoodlist.row;
- var rtnqty = grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("rtnqty"));
- var new_rtnqty = grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty"));
-
- if(parseFloat(rtnqty) - parseFloat(new_rtnqty) < 0) {
- alert("반납수량은 미반납수량을 초과 할 수 업습니다.");
- grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty")) = "";
- grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = "";
- grd_returngoodlist.rowStatus(currentRow) = "0";
- return;
- }
-
- if(new_rtnqty == "" || parseFloat(new_rtnqty) <= 0) {
- grd_returngoodlist.rowStatus(currentRow) = "0";
- grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty")) = "";
- grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = "";
- } else {
- grd_returngoodlist.rowStatus(currentRow) = "1";
- grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = parseFloat(rtnqty) - parseFloat(new_rtnqty);
- }
-
- grd_returngoodlist.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_returngoodlist.colRef("rtnqty") >= grd_returngoodlist.col && grd_returngoodlist.colRef("goodcd") <= grd_returngoodlist.col) {
- fDetailSearchPopup(event.currentTarget,"notrtn");
- btn_search.dispatch("DOMActivate");
- }else if(grd_returngoodlist.colAttribute(grd_returngoodlist.col,"ref") == "new_rtnqty"){
- fDetailSearchPopup(event.currentTarget,"rtn");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
- <button id="btn_print1" class="btn2_letter7" navindex="17" style="left:940px; top:5px; width:97px; height:19px; ">
- <caption>미반납집계 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/temp/printnode");
- model.makeNode("/root/temp/printnode");
- model.makeNode("/root/temp/printnode/list");
-
- copyNodesetType("/root/temp/printnode/list","/root/main/list/returngoodlist[divuseyn='N' and aftqty !=0]","replace");
- model.makeValue("/root/temp/printnode/searchtime",model.getValue("/root/main/list/searchinfo/searchtime"));
- if(instance1.selectNodes("/root/temp/printnode").length > 0)
- exeReportPreview("RPRSD07201", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn5_letter3" style="left:1125px; 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_returngoodlist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_gooddetaillist" nodeset="/root/temp/gooddetail/returndetaillist" visibility="hidden" caption="기관코드^부서코드^물품코드^물품코드^물품명^규격^집계일자^집계횟수^수량^누적수량" colsep="^" colwidth="15, 75, 79, 29, 200, 150, 75, 60, 60, 60" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:410px; top:425px; width:705px; height:120px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sumcnt" style="text-align:center; "/>
- <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
- </datagrid>
- <button id="btn_save" class="btn4_letter2" disabled="true" navindex="18" visibility="hidden" style="left:800px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = "";
- updtdata = getGridUpdateData(grd_returngoodlist);
-
- if(updtdata == ""){
- messageBox("저장할 데이타가 ","E014");
- return false;
- }
- model.setValue("/root/send/save/returnlist", updtdata);
-
- if(submit("TXRSD07401")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter6" navindex="16" style="left:1038px; top:5px; width:86px; height:19px; ">
- <caption>반납집계 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRSD07404");
- model.setValue("/root/printsend/nowtime",getCurrentDateTime().substr(0,8)+getCurrentDateTime().substr(9,6));
- exeReportPreview("RPRSD07203", "XMLSTR","/root/printsend");
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_returndetailcase">
- <caption id="cpt_dis" class="tit_2" style="left:5px; top:10px; width:570px; height:15px; ">반납물품 집계 세부내역</caption>
- <datagrid id="grd_returndetaillist" nodeset="/root/main/list/returndaylist[divuseyn='N']" caption="기관코드^집계일자^부서^부서코드^집계횟수^물품코드^물품코드^물품명^규격^처방수량^불출수량^취소수량^반납수량^남은수량^단위^반납등록자^분할사용여부^응급여부" colsep="^" colwidth="15, 80, 160, 100, 60, 79, 29, 200, 150, 60, 60, 60, 60, 60, 63, 80, 30, 30" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="sumcnt" 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; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="prcpqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="dcqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="prcpunit" visibility="hidden" style="text-align:left; padding-left:5; "/>
- <col ref="rtnpsnnm" style="text-align:left; padding-left:5; "/>
- <col ref="divuseyn" visibility="hidden"/>
- <col ref="erprcpflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_returndetaillist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fDetailSearchPopup(event.currentTarget,"notrtn");
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
- <button id="btn_excel2" class="btn5_letter3" style="left:1125px; 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_returndetaillist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter7" navindex="15" style="left:1020px; top:5px; width:97px; height:19px; ">
- <caption>취소집계 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/temp/printnode");
- model.makeNode("/root/temp/printnode");
- model.makeNode("/root/temp/printnode/list");
-
- copyNodesetType("/root/temp/printnode/list","/root/main/list/returndaylist[divuseyn='N']","replace");
- model.makeValue("/root/temp/printnode/searchtime",model.getValue("/root/main/list/searchinfo/searchtime"));
-
- var prcpdeptcd = model.getValue("/root/temp/printnode/list/prcpdeptcd");
- if(instance1.selectNodes("/root/temp/printnode/list[prcpdeptcd!='" + prcpdeptcd + "']").length > 0) {
- messageBox("시행부서를 선택하지", "E007");
- return;
- }
-
- if(instance1.selectNodes("/root/temp/printnode").length > 0)
- exeReportPreview("RPRSD07202", "XMLSTR");
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_divgoodcase">
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:575px; height:15px; ">분할처방 사용물품 미불출 내역</caption>
- <button id="button1" class="btn5_letter3" style="left:1125px; 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_divgoodlist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_divgoodlist" nodeset="/root/main/list/returngoodlist[divuseyn='Y']" caption="기관코드^부서구분^부서^부서코드^물품코드^물품코드^정규/응급^최종집계^물품명^규격^미불출수량^분할사용여부" colsep="^" colwidth="15, 56, 160, 68, 79, 29, 60, 70, 364, 180, 70, 40, 0, 0, 0" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="13" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col disabled="true" ref="deptflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/deptflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="erprcpflag" visibility="hidden"/>
- <col ref="lastacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="divuseyn" visibility="hidden"/>
- <col ref="genracptdd" visibility="hidden"/>
- <col ref="genrsumcnt" visibility="hidden"/>
- <col ref="lastsumcnt" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_divgoodlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fDetailSearchPopup(event.currentTarget,"notrtn");
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
- </case>
- <case id="cse_divgooddetailcase">
- <button id="button2" class="btn5_letter3" style="left:1125px; 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_divgooddetaillist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:570px; height:15px; ">분할 처방 사용물품 집계 세부내역</caption>
- <datagrid id="grd_divgooddetaillist" nodeset="/root/main/list/returndaylist[divuseyn='Y']" caption="기관코드^집계일자^부서^부서코드^집계횟수^물품코드^물품코드^물품명^규격^처방수량^불출수량^취소수량^미불출수량^남은수량^단위^반납등록자^분할사용여부" colsep="^" colwidth="15, 80, 160, 100, 60, 79, 29, 200, 150, 60, 60, 60, 75, 60, 63, 80, 100" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="sumcnt" 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; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="prcpqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="dcqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="prcpunit" visibility="hidden" style="text-align:left; padding-left:5; "/>
- <col ref="rtnpsnnm" visibility="hidden" style="text-align:left; padding-left:5; "/>
- <col ref="divuseyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_divgooddetaillist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fDetailSearchPopup(event.currentTarget,"notrtn");
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
- </case>
- </switch>
- <group id="grp_key" style="left:0px; top:0px; width:1195px; height:80px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd_search" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1120px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_viewZeroqty.value == "true") {
- grd_returngoodlist.attribute("nodeset") = "/root/main/list/returngoodlist[divuseyn='N']";
- } else {
- grd_returngoodlist.attribute("nodeset") = "/root/main/list/returngoodlist[divuseyn='N' and aftqty!=0]";
- }
- grd_returngoodlist.refresh();
-
- if(submit("TRRSD07401")){
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="cap_prcpdeptcd" class="search_name" style="left:325px; top:10px; width:89px; height:17px; ">시행부서 :</caption>
- <input id="ipt_prcpdeptcd" ref="/root/send/searchinfo/prcpdeptcd" class="input_fix" navindex="12" visibility="hidden" style="left:590px; top:10px; width:140px; height:19px; "/>
- <select id="chk_wareflag" ref="/root/send/searchinfo/wareflagarr" disabled="false" navindex="8" visibility="visible" overflow="visible" appearance="full" cols="3" sep="," vcellspacing="3" style="left:864px; top:11px; width:236px; height:42px; text-align:center; border-style:none; ">
- <choices>
- <itemset>
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var bfwareflag = model.getValue("/root/temp/bfwareflag");
- var dsplflag = model.getValue(chk_wareflag.attribute("ref"));
-
- if (isSearchString(bfwareflag, 'A')){
- model.setValue(chk_wareflag.attribute("ref"), dsplflag.replace("A", ""));
- }else{
- dsplflagArr = dsplflag.split(",");
- for (var i=0; i< dsplflagArr.length; i++){
- if (dsplflagArr[i] == "A"){
- model.setValue(chk_wareflag.attribute("ref"), "A");
- break;
- }
- }
- }
- model.makeValue("/root/temp/bfwareflag", model.getValue(chk_wareflag.attribute("ref")));
- chk_wareflag.refresh();
- ]]>
- </script>
- </select>
- <caption id="cap_wareflag" class="search_name" style="left:775px; top:11px; width:89px; height:17px; ">사용구분 :</caption>
- <input id="ipt_goodcd_search" ref="/root/send/searchinfo/goodcd" class="input_default" navindex="6" imemode="disabled" _chartype="upper" style="left:415px; top:50px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/send/searchinfo/goodnm" class="input_default" navindex="7" style="left:640px; top:49px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_goodcd_search" class="search_name" style="left:325px; top:50px; width:89px; height:17px; ">물품코드 :</caption>
- <caption id="cap_goodnm_search" class="search_name" style="left:555px; top:49px; width:94px; height:17px; ">물 품 명 :</caption>
- <select1 id="cmb_instcd_search" ref="/root/send/searchinfo/instcd" class="combo_default" disabled="true" navindex="0" appearance="minimal" style="left:95px; top:11px; width:170px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line15" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:73px; border-color:#ffd799; "/>
- <input id="ipt_acptddfr" ref="/root/send/searchinfo/acptddfr" class="input_s_essential" navindex="4" inputtype="date" style="left:95px; top:50px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/searchinfo/dayflag", "number");
- submit("TRRSD07403");
- var value = model.getValue("/root/combo/number/value");
- for(i = 1 ; i <= value ; i++){
- var label = i + "차";
- addComboItem( "cmb_sumcnt", label, i, "above");
- }
- cmb_sumcnt.select(0);
- ]]>
- </script>
- </input>
- <caption id="cap_acptddsearch" class="search_name" style="left:5px; top:51px; width:90px; height:17px; ">취소일자 :</caption>
- <select1 id="cmb_prcpdeptcd" ref="/root/send/searchinfo/prcpdeptcd" class="combo_default" disabled="true" navindex="3" appearance="minimal" editmode="search" style="left:590px; top:10px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/returndeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_ignoreset" ref="/root/send/searchinfo/ignoreset" navindex="9" overflow="visible" appearance="full" style="left:865px; top:50px; width:74px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Set 제외</label>
- <value>ignore</value>
- </item>
- </choices>
- </select>
- <input id="ipt_prcpdeptnm" ref="/root/send/searchinfo/prcpdeptnm" class="output_fix" navindex="-1" visibility="hidden" editable="false" _chartype="upper" style="left:415px; top:10px; width:170px; height:19px; "/>
- <select1 id="cmb_prcpdeptcd_sub" ref="/root/send/searchinfo/prcpdeptcd" class="combo_default" navindex="-1" visibility="hidden" appearance="minimal" style="left:415px; top:10px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/erprcpdeptlist/returndeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rbo_deptflag" ref="/root/send/searchinfo/deptflag" class="input_default" disabled="true" navindex="2" appearance="full" cols="4" rows="1" overflow="visible" style="left:415px; top:12px; width:175px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var selectOption = "";
- if(rbo_deptflag.value != "") {
- selectOption = "[deptcd='' or deptflag='" + rbo_deptflag.value + "']";
- }
- cmb_prcpdeptcd.choices.itemset.attribute("nodeset") = "/root/init/deptlist/returndeptlist" + selectOption;
- cmb_prcpdeptcd.select(0);
- cmb_prcpdeptcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sumcnt" ref="/root/send/searchinfo/sumcnt" navindex="5" appearance="minimal" style="left:200px; top:50px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/combo/redata">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select id="chk_viewZeroqty" ref="/root/temp/viewzeroqty" navindex="10" overflow="visible" appearance="full" style="left:945px; top:50px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반납완료 물품표시</label>
- <value>true</value>
- </item>
- </choices>
- <hint>
- <![CDATA[반납이 완료 된 물품을 표시합니다.]]>
- </hint>
- </select>
- <caption id="caption2" class="search_name" style="left:776px; top:49px; width:89px; height:17px; ">추가조건 :</caption>
- </group>
- <output id="out_searchtime" ref="/root/main/list/searchinfo/searchtime" appearance="output" style="left:1045px; top:83px; width:140px; height:19px; text-align:center; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|