123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <prcppatcase>
- <prcppatcaselist/>
- </prcppatcase>
- <prcpgoodcase>
- <prcpgoodcaselist/>
- </prcpgoodcase>
- <prcpprntinfo>
- <acptdd/>
- <sumrgstdd/>
- </prcpprntinfo>
- <prcpgoodprt>
- <prcpgoodcaselist/>
- </prcpgoodprt>
- <prcppatprt>
- <prcppatcaselist/>
- </prcppatprt>
- </list>
- <PrcpGoodTrees>
- <TreeList/>
- </PrcpGoodTrees>
- </main>
- <send>
- <SearchTree>
- <instcd/>
- <instcdnm/>
- <acptdd/>
- <sumflag/>
- <ioflag/>
- <prcpdeptcd/>
- <prcpdeptnm/>
- <querycls>2</querycls>
- <pid/>
- <patnm/>
- <goodcd/>
- <purcflag/>
- <prodcmpynm/>
- <suplplcecdnm/>
- <suppcustnm/>
- <prntmthd/>
- <sumcnt/>
- <wareflag/>
- <erprcpflag>A</erprcpflag>
- <prcpinptflag/>
- <scrnid>SMRSD07100</scrnid>
- <wareflagarr/>
- <acntcd/>
- <acntnm/>
- <acpttodd/>
- </SearchTree>
- <prcppatcaseinfo>
- <instcd/>
- <acptdd/>
- <sumflag/>
- <reqflag/>
- <reqdeptcd/>
- <reqprid/>
- <prcpdeptcd/>
- <goodcd/>
- <ioflag/>
- <deptgr/>
- <pid/>
- <patnm/>
- <purcflag/>
- <prodcmpynm/>
- <suplplcecdnm/>
- <suppcustnm/>
- <prntmthd/>
- <sumcnt/>
- <wareflag/>
- <erprcpflag/>
- <prcpinptflag/>
- <scrnid/>
- <wareflagarr/>
- <acntcd/>
- <acpttodd/>
- <prtflag/>
- <querycls/>
- </prcppatcaseinfo>
- </send>
- <init>
- <deliveprcsflag>
- <label>전체</label>
- <value/>
- <label>미불출</label>
- <value>1</value>
- <label>불출</label>
- <value>2</value>
- </deliveprcsflag>
- <ioflag>
- <label>전체</label>
- <value/>
- <label>외래</label>
- <value>O</value>
- <label>병동</label>
- <value>W</value>
- </ioflag>
- <prntmthd>
- <label>물품별</label>
- <value>G</value>
- <label>환자별</label>
- <value>P</value>
- </prntmthd>
- <sumflag>
- <label>전체</label>
- <value/>
- <label>집계</label>
- <value>Y</value>
- <label>미집계</label>
- <value>N</value>
- </sumflag>
- <goodreqcnt/>
- <prcppatcasecnt/>
- </init>
- <temp>
- <bfwareflag/>
- <searchinfo>
- <instcd/>
- <acptdd/>
- <acpttodd/>
- <sumcnt/>
- </searchinfo>
- <saveresult/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit(); // 화면 Control을 초기화한다
-
- var dept = model.getValue("/root/send/SearchTree/querycls");
- var gDutplceinstcd = getUserInfo("dutplceinstcd");
- if (dept == "0" && gDutplceinstcd =="032" ){
- btn_magamqty.visible = true;
- btn_magamqty.disabled = false; // 마감버튼 활성화 여부
- }
- // 물류파트 접근시 집계기간조회 표시
- if( getUserInfo("dutplcecd") == "4020334000" ) {
- fToggleDateSearchType("days");
- }
- ]]>
- </script>
- <submission id="TRRSD07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcppatcaseinfo" resultref="/root/main/list/prcppatcase"/>
- <submission id="TRRSD07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcppatcaseinfo" resultref="/root/main/list/prcpgoodcase"/>
- <submission id="TRRSD07103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/main/PrcpGoodTrees"/>
- <submission id="TRRSD07104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/init/sumcntinfo"/>
- <submission id="TRRSD07105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcppatcaseinfo" resultref="/root/main/list/prcpgoodprt"/>
- <submission id="TRRSD07106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcppatcaseinfo" resultref="/root/main/list/prcppatprt"/>
- <submission id="TXRSD07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp/saveresult"/>
- <submission id="TXRSD07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp/saveresult"/>
- <submission id="TXRSD07103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp/saveresult"/>
- <submission id="TXRSD07104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp/saveresult"/>
- <submission id="TXRSD07105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp/saveresult"/>
- </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="../../../mis/reqweb/js/SMRSD07100.js"/>
- <script type="javascript">
- <![CDATA[
- var searchType = "day"; // day 단일일자 조회, days 기간조회
-
- function fToggleDateSearchType(type){
- if( type == null ) type = (searchType == "day" ? "days" : "day");
- if( type == "day" ) {
- searchType = "day";
- cap_sumcnt.visible = true;
- cmb_sumcnt.visible = true;
- ipt_acpttodd.visible = false;
- cap_acpttodd.visible = false;
-
- fSearchSumcntList();
- } else {
- searchType = "days";
- cap_sumcnt.visible = false;
- cmb_sumcnt.visible = false;
- ipt_acpttodd.visible = true;
- cap_acpttodd.visible = true;
- model.setValue(cmb_sumcnt.attribute("ref"),"");
- }
- }
-
- function fSearchSumcntList() {
- model.setValue(cmb_sumcnt.attribute("ref"), "");
- if(searchType == "day"){
- model.setValue(ipt_acpttodd.attribute("ref"),model.getValue(ipt_acptdd.attribute("ref")));
- if(submit("TRRSD07104",false)) {
- cmb_sumcnt.refresh();
- cmb_sumcnt.select(0);
- }
- }
- }
-
- //(칠곡) 불출확정수량을 마감시 마감칼럼에 일괄저장
- function fSaveMagamQtyList() {
- var updtdata = "";
-
- var tarGrid1 = grd_prcpgoodcaselist;
-
- for(var i=tarGrid1.fixedRows; i<tarGrid1.rows; i++) {
- tarGrid1.rowStatus(i) = "2";
- }
- tarGrid1.refresh();
-
- updtdata = getGridUpdateData(tarGrid1);
-
- if(updtdata == ""){
- messageBox("저장할 데이타가 ","E014");
- return false;
- }
- // alert(updtdata);
- model.makeValue("/root/send/save/magamqtylist", updtdata);
- // submit("TXRSD07105");
- if (submit("TXRSD07105")){
- fDataSearchDetail(trv_setcode.focusIndex);
- } else {
- messageBox("저장","E009");
- return;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1215" 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_prcpgoodcase" class="btn_sw" group="tab" selected="true" style="left:355px; top:0px; width:125px; height:22px; ">
- <caption>물품별 집계내역</caption>
- <toggle case="cse_prcpgoodcase" ev:event="onclick"/>
- </button>
- <button id="btn_deptstoc" class="btn_sw" group="tab" style="left:480px; top:0px; width:109px; height:22px; ">
- <caption>부서재고 집계</caption>
- <toggle case="cse_deptstoc" ev:event="onclick"/>
- </button>
- <button id="btn_prcppatcase" class="btn_sw" visibility="hidden" group="tab" style="left:355px; top:0px; width:125px; height:22px; ">
- <caption>환자별 집계내역</caption>
- <toggle case="cse_prcppatcase" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:355px; top:20px; width:835px; height:725px; ">
- <case id="cse_prcppatcase">
- <button id="btn_srgprint" class="btn2_letter7" style="left:720px; top:5px; width:97px; height:19px; ">
- <caption>처방집계 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //exeReportPreview("RPRSD07101", "XMLSTR", "", "", "true", "", "", "", "", "true","","","","","",2);
- // if(model.getValue("/root/send/SearchTree/instcd") == "031") {
- // model.setValue("/root/send/prcppatcaseinfo/prtflag", "S")
- // submit("TRRSD07106");
- // }else{
- exeReportPreview("RPRSD07101", "XMLSTR");
- // }
- //
-
- ]]>
- </script>
- </button>
- <caption id="cpt_dis" class="tit_2" style="left:5px; top:10px; width:570px; height:13px; ">환자별 처방집계 내역</caption>
- <datagrid id="grd_prcppatcaselist" nodeset="/root/main/list/prcppatcase/prcppatcaselist" caption="기관코드^등록번호^등록번호(환자)^환자명^환자명^처방일자^물품코드^물품코드^총수량^선불출량^불출량^물품명^규격^단위^비고" colsep="^" colwidth="15, 63, 18, 69, 16, 80, 79, 29, 56, 67, 55, 156, 100, 63, 200" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:35px; width:825px; height:685px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pid2" visibility="hidden" style="text-align:left; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="patnm2" visibility="hidden" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="totqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="beforqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:center; "/>
- <col ref="deliveunit" style="text-align:left; padding-left:10; "/>
- <col ref="cmt" style="text-align:left; padding-left:10; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcppatcaselist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:29px; x2:825px; y2:29px; "/>
- <button id="btn_excel2" class="btn5_letter3" style="left:660px; 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_prcppatcaselist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_prcpgoodcase" selected="true" style="left:0px; top:0px; width:833px; height:733px; ">
- <caption id="cap_prcpgoodcasetitle" class="tit_2" style="left:5px; top:10px; width:575px; height:13px; ">물품별 처방집계 내역</caption>
- <datagrid id="grd_prcpgoodcaselist" nodeset="/root/main/list/prcpgoodcase/prcpgoodcaselist" class="datagrid2" caption="기관코드^물품코드^물품코드^구코드^물품명^규격^모델^안전재고수량^총수량^선불출량^불출량^불출확정수량^단위^계정과목^비고^비고표시여부^집계일자^집계회차^시행부서^bfdelivecnfmqty^불출확정수량 수정내역^수정가능여부^마감확정수량^상위부서명^상위부서코드" colsep="^" colwidth="15, 79, 25, 79, 228, 150, 25, 55, 55, 60, 45, 55, 45, 100, 200, 50, 35, 35, 50, 50, 50, 50, 50, 50, 50" dataheight="24" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" tooltip="true" navindex="18" style="left:0px; top:35px; width:825px; height:685px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
- <col ref="oldcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; padding-left:5; "/>
- <col ref="goodmodel" visibility="hidden" style="text-align:center; "/>
- <col ref="safestocqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="totqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="beforqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="delivecnfmqty" type="input" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:left; padding-left:5; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="cmt" style="text-align:left; padding-left:5; "/>
- <col ref="cmt_view" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="sumcnt" visibility="hidden"/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="bfdelivecnfmqty" visibility="hidden"/>
- <col ref="cmt2" visibility="hidden"/>
- <col ref="edityn" visibility="hidden"/>
- <col ref="magamqty" visibility="hidden"/>
- <col ref="supdeptnm" visibility="hidden"/>
- <col ref="supdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcpgoodcaselist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tarGrid = grd_prcpgoodcaselist;
- var row = tarGrid.row;
- var bfdelivecnfmqty = parseFloat(tarGrid.valueMatrix(row,tarGrid.colRef("bfdelivecnfmqty")));
- var delivecnfmqty = parseFloat(tarGrid.valueMatrix(row,tarGrid.colRef("delivecnfmqty")));
- if(bfdelivecnfmqty != delivecnfmqty) {
- tarGrid.rowstyle(row, "data", "font-weight") = "bold";
- tarGrid.cellstyle("text-decoration", row, tarGrid.colRef("delivecnfmqty"), row, tarGrid.colRef("delivecnfmqty")) = "underline";
- } else {
- tarGrid.rowstyle(row, "data", "font-weight") = "normal";
- tarGrid.cellstyle("text-decoration", row, tarGrid.colRef("delivecnfmqty"), row, tarGrid.colRef("delivecnfmqty")) = "";
- }
- model.refreshpart(tarGrid.nodeset + "[" + row + "]/delivecnfmqty");
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:29px; x2:825px; y2:29px; "/>
- <button id="btn_wardprint" class="btn2_letter7" navindex="19" style="left:720px; top:5px; width:97px; height:19px; ">
- <caption>처방집계 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(searchType == "day") {
- if(model.getValue("/root/temp/searchinfo/sumcnt") == null || model.getValue("/root/temp/searchinfo/sumcnt") == "") {
- if(messageBox(" 집계횟수 미입력시 일 전체 내역이 출력 되며\n 취소집계 수량이 반영 되지 않습니다.\n\n ","Q003") != "6") return;
- }
- }
- // 처방집계 물품별 출력시 비고 있는 화면과 없는 화면 분할 출력
- if(model.getValue("/root/send/SearchTree/instcd") == "031" && getUserInfo("dutplcecd") == "3080000000") {
- model.setValue("/root/send/prcppatcaseinfo/prtflag", "S")
- submit("TRRSD07105");
- model.removeNodeset("root/main/list/prcpgoodcase2");
- model.makeNode("root/main/list/prcpgoodcase2");
- model.copyNode("root/main/list/prcpgoodcase2","/root/main/list/prcpgoodprt");
- }else if(model.getValue("/root/send/SearchTree/instcd") == "033" && getUserInfo("dutplcecd") == "3080000000"){
- model.setValue("/root/send/prcppatcaseinfo/prtflag", "S")
- submit("TRRSD07105");
- model.removeNodeset("root/main/list/prcpgoodcase2");
- model.makeNode("root/main/list/prcpgoodcase2");
- model.copyNode("root/main/list/prcpgoodcase2","/root/main/list/prcpgoodprt")
- }else{
- model.removeNodeset("root/main/list/prcpgoodcase2");
- model.removeNodeset("root/main/list/prcpgoodcase3");
- model.makeNode("root/main/list/prcpgoodcase2");
- model.makeNode("root/main/list/prcpgoodcase3");
-
- model.copyNode("root/main/list/prcpgoodcase2","root/main/list/prcpgoodcase");
- model.copyNode("root/main/list/prcpgoodcase3","root/main/list/prcpgoodcase");
- }
- model.removeNodeset("root/main/list/prcpgoodcase2/prcpgoodcaselist[cmt_view='Y']");
- model.removeNodeset("root/main/list/prcpgoodcase3/prcpgoodcaselist[cmt_view='N']");
-
- if(instance1.selectNodes("root/main/list/prcpgoodcase2/prcpgoodcaselist").length > 0) {
- if(model.getValue("/root/send/SearchTree/instcd") == "032") {
- if(model.getValue("/root/send/SearchTree/querycls") == "0"){
- model.setValue("/root/main/list/prcpprntinfo/sumrgstdd", model.getValue("/root/main/list/prcpgoodcase/prcpsuminfo/sumrgstdd"));
- exeReportPreview("RPRSD07106", "XMLSTR")
- }else{
- exeReportPreview("RPRSD07105", "XMLSTR");
- }
- } else {
- exeReportPreview("RPRSD07102", "XMLSTR");
- }
- }
- if(instance1.selectNodes("root/main/list/prcpgoodcase3/prcpgoodcaselist").length > 0) {
- if(model.getValue("/root/send/SearchTree/instcd") == "032") {
- exeReportPreview("RPRSD07103", "XMLSTR");
- } else {
- exeReportPreview("RPRSD07104", "XMLSTR");
- }
- //exeReportPreview("RPRSD07102", "XMLSTR", "", "", "true", "", "", "", "", "true","","","","","",2);
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn5_letter3" style="left:663px; 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_prcpgoodcaselist.saveExcel(fileName, vFileNM, true, true, "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_deliveqtysave" class="btn4_letter6" navindex="-1" style="left:555px; top:4px; width:104px; height:22px; ">
- <caption>불출수량저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDeliveCnfmQtyList(); //mis/reqweb/js/SMRSD07100.js
- ]]>
- </script>
- </button>
- <button id="btn_magamqty" class="btn4_letter2" navindex="-1" visibility="hidden" style="left:497px; top:4px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox(" 마감","Q002") == "6") {
- fSaveMagamQtyList();
- var gDutplceinstcd = getUserInfo("dutplceinstcd");
- if (gDutplceinstcd =="032" ){
- btn_magamqty.visible = true;
- btn_magamqty.disabled = true; // 마감버튼 활성화 여부
- btn_deliveqtysave.disabled = true;
- }
- }else{
- return;
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_deptstoc" style="left:0px; top:0px; width:833px; height:733px; ">
- <caption id="caption15" class="tit_2" style="left:5px; top:10px; width:575px; height:15px; ">부서재고 집계반영</caption>
- <datagrid id="grd_deptstoc" nodeset="/root/main/list/prcpgoodcase/deptstoccaselist" class="datagrid2" caption="선택^불출
여부^기관코드^시행부서^시행부서^물품코드^물품코드^물품명^규격^불출량^집계일자^회차^입고
여부^수정가능여부^출고마감여부" colsep="^" colwidth="32, 35, 15, 75, 100, 79, 25, 228, 150, 45, 72, 30, 35, 50, 50" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="18" style="left:0px; top:35px; width:825px; height:685px; font-weight:normal; text-align:center; ">
- <col checkvalue="Y,N" ref="appyn" type="checkbox"/>
- <col ref="deliveyn"/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="prcpdeptcd" style="text-align:center; "/>
- <col ref="prcpdeptnm" style="text-align:left; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; padding-left:5; "/>
- <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="sumcnt" visibility="hidden"/>
- <col ref="execyn"/>
- <col ref="edityn" visibility="hidden"/>
- <col ref="deliveendflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptstoc.gridToInstance();
- grd_deptstoc.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*if(grd_deptstoc.col == grd_deptstoc.colRef("appyn")) {
- if(grd_deptstoc.valueMatrix(grd_deptstoc.row, grd_deptstoc.colRef("appyn")) == "Y") {
- grd_deptstoc.cellstyle("background-color", grd_deptstoc.row, 2, grd_deptstoc.row, 2) = "green";
- grd_deptstoc.attribute("focuscolor") = "green";
- } else {
- grd_deptstoc.cellstyle("background-color", grd_deptstoc.row, 2, grd_deptstoc.row, 2) = "pink";
- grd_deptstoc.attribute("focuscolor") = "pink";
- }
- }*/
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- //if(grd_deptstoc.cellstyle("background-color", grd_deptstoc.row, 2, grd_deptstoc.row, 2) == "green") {
- grd_deptstoc.attribute("focuscolor") = grd_deptstoc.cellstyle("background-color", grd_deptstoc.row, 2, grd_deptstoc.row, 2);
- //}
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:29px; x2:825px; y2:29px; "/>
- <button id="btn_save" class="btn4_letter2" disabled="true" navindex="5" style="left:765px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDeptStocList();
- ]]>
- </script>
- </button>
- <button id="btn_enddelivedept" class="btn4_letter7" disabled="true" navindex="5" style="left:525px; top:5px; width:116px; height:22px; ">
- <caption>출고마감(부서)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var deptcd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("prcpdeptcd"));
- var others = instance1.selectNodes(grd_deptstoc.nodeset + "[prcpdeptcd != '" + deptcd + "']");
- if(deptcd == null || (others != null && others.length > 0)) return;
- fSaveDeptStocEnd(deptcd);
- ]]>
- </script>
- </button>
- <button id="btn_enddelive" class="btn4_letter7" disabled="true" navindex="5" style="left:405px; top:5px; width:116px; height:22px; ">
- <caption>출고마감(전체)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDeptStocEnd();
- ]]>
- </script>
- </button>
- <button id="btn_canceldelivedept" class="btn4_letter7" disabled="true" navindex="5" style="left:645px; top:5px; width:116px; height:22px; ">
- <caption>마감취소(부서)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var deptcd = grd_deptstoc.valueMatrix(1,grd_deptstoc.colRef("prcpdeptcd"));
- var others = instance1.selectNodes(grd_deptstoc.nodeset + "[prcpdeptcd != '" + deptcd + "']");
- if(deptcd == null || (others != null && others.length > 0)) return;
- fSaveDeptStocEndCancel(deptcd);
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="grp_detail" style="left:5px; top:255px; width:340px; height:490px; vertical-align:top; ">
- <button id="btn_searchtree" class="btn2_letter9" navindex="15" visibility="visible" style="left:0px; top:5px; width:119px; height:19px; font-weight:bold; text-align:center; ">
- <caption>트리재구성 (조회)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list/prcpprntinfo");
-
- model.makeValue("/root/main/list/prcpprntinfo/acptdd" , model.getValue(ipt_acptdd.attribute("ref")));
- model.makeValue("/root/main/list/prcpprntinfo/acpttodd" , model.getValue(ipt_acpttodd.attribute("ref")));
- model.makeValue("/root/main/list/prcpprntinfo/usernm" , getUserInfo("usernm"));
- model.makeValue("/root/main/list/prcpprntinfo/sumrgstdd" , model.getValue("/root/main/list/prcpgoodcase/prcpsuminfo/sumrgstdd"));
-
- model.setValue("/root/temp/searchinfo/instcd" ,model.getValue("/root/send/SearchTree/instcd"));
- model.setValue("/root/temp/searchinfo/acptdd" ,model.getValue("/root/send/SearchTree/acptdd"));
- model.setValue("/root/temp/searchinfo/acpttodd" ,model.getValue("/root/send/SearchTree/acpttodd"));
- model.setValue("/root/temp/searchinfo/sumcnt" ,model.getValue("/root/send/SearchTree/sumcnt"));
-
- fDataSearchTree();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_viewcls" ref="/root/send/SearchTree/querycls" navindex="16" appearance="full" cols="23" overflow="visible" style="left:130px; top:7px; width:208px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>시행부서별</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDataSearchTree();
-
- var dept = model.getValue("/root/send/SearchTree/querycls");
- var gDutplceinstcd = getUserInfo("dutplceinstcd");
- if (dept == "0" && gDutplceinstcd =="032" ){
- btn_magamqty.visible = true; // 마감버튼 활성화 여부
- }else{
- btn_magamqty.visible = false;
- }
- ]]>
- </script>
- </select1>
- <treeview id="trv_setcode" ref="/root/main/PrcpGoodTrees/TreeList" navindex="17" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:30px; width:337px; height:455px; ">
- <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[
- fDataSearchDetail(trv_setcode.focusIndex); //mis/reqweb/js/SMRSD07100.js
- var magamqty1 = model.getValue("/root/main/list/prcpgoodcase/prcpgoodcaselist[1]/magamqty");
- var magamqty2 = model.getValue("/root/main/list/prcpgoodcase/prcpgoodcaselist[2]/magamqty");
- var magamqty3 = model.getValue("/root/main/list/prcpgoodcase/prcpgoodcaselist[3]/magamqty");
- var magamqty4 = model.getValue("/root/main/list/prcpgoodcase/prcpgoodcaselist[4]/magamqty");
- var magamqty5 = model.getValue("/root/main/list/prcpgoodcase/prcpgoodcaselist[5]/magamqty");
- var gDutplceinstcd = getUserInfo("dutplceinstcd");
- if ((magamqty1 !="" || magamqty2 !="" || magamqty3 !="" || magamqty4 !=""|| magamqty5 !="") && gDutplceinstcd == "032"){
- btn_magamqty.disabled = true; // 마감버튼 활성화 여부
- btn_deliveqtysave.disabled = true;
- }else{
- btn_magamqty.disabled = false;
- btn_deliveqtysave.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </treeview>
- </group>
- <group id="grp_key" style="left:0px; top:0px; width:340px; height:245px; vertical-align:top; ">
- <caption id="caption7" class="search_name" visibility="hidden" style="left:5px; top:54px; 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:95px; top:54px; width:173px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/sumflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <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:5px; top:5px; width:89px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcd" ref="/root/send/SearchTree/instcd" class="output_fix" visibility="hidden" style="left:230px; top:6px; width:15px; height:19px; "/>
- <input id="ipt_acptdd" ref="/root/send/SearchTree/acptdd" class="input_default" navindex="1" inputtype="date" style="left:95px; top:30px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearchSumcntList();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:5px; top:30px; width:89px; height:17px; ">
- <![CDATA[집계일자 :]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( getUserInfo("dutplcecd") == "4020334000" ) {
- fToggleDateSearchType();
- }
- ]]>
- </script>
- </caption>
- <select1 id="rdo_ioflag" ref="/root/send/SearchTree/ioflag" disabled="true" navindex="3" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:95px; top:54px; width:240px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:5px; top:54px; width:89px; height:17px; ">환자구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="14" visibility="hidden" style="left:250px; top:6px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(fCheckRetrieveData() == false)return;
-
- misfGridInit(grd_goodreq);
- misfGridInit(grd_orderlist);
- misfMsterDetailRetrieve();
-
- fAfterRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_prcpdeptcd" class="icon_search" navindex="-1" style="left:183px; top:129px; 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:5px; top:128px; width:89px; height:17px; ">시행부서 :</caption>
- <input id="ipt_prcpdeptnm" ref="/root/send/SearchTree/prcpdeptnm" class="output_fix" navindex="8" editable="false" appearance="input" style="left:202px; top:127px; width:132px; height:19px; "/>
- <input id="ipt_prcpdeptcd" ref="/root/send/SearchTree/prcpdeptcd" class="input_fix" navindex="7" style="left:95px; top:127px; width:85px; 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:6px; width:130px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:176px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption4" class="search_name" style="left:180px; top:176px; width:83px; height:17px; ">환 자 명 :</caption>
- <input id="ipt_pid" ref="/root/send/SearchTree/pid" class="input_fix" disabled="true" navindex="11" style="left:95px; top:176px; width:85px; height:19px; "/>
- <input id="ipt_patnm" ref="/root/send/SearchTree/patnm" class="input_fix" disabled="true" navindex="12" style="left:264px; top:176px; width:70px; height:19px; "/>
- <select1 id="rdo_prntmthd" ref="/root/send/SearchTree/prntmthd" navindex="4" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:95px; top:79px; width:240px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prntmthd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var prntmthd = model.getValue(rdo_prntmthd.attribute("ref"));
- if (prntmthd == "P"){
- btn_prcppatcase.selected = true;
- btn_prcppatcase.dispatch("onclick");
- btn_prcpgoodcase.visible = false;
- btn_prcppatcase.visible = true;
- ipt_pid.disabled = false;
- ipt_patnm.disabled = false;
- }else{
- btn_prcpgoodcase.selected = true;
- btn_prcpgoodcase.dispatch("onclick");
- btn_prcpgoodcase.visible = true;
- btn_prcppatcase.visible = false;
- ipt_pid.disabled = true;
- ipt_patnm.disabled = true;
- model.setValue(ipt_pid.attribute("ref"),"");
- model.setValue(ipt_patnm.attribute("ref"),"");
- ipt_pid.refresh();
- ipt_patnm.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:5px; top:79px; width:89px; height:17px; ">출력형식 :</caption>
- <caption id="caption12" class="search_name" style="left:5px; top:104px; width:89px; height:17px; ">처방구분 :</caption>
- <select1 id="rdo_erprcpflag" ref="/root/send/SearchTree/erprcpflag" navindex="5" appearance="full" cellspacing="2" cols="3" overflow="visible" style="left:95px; top:104px; width:165px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var prntmthd = model.getValue(rdo_prntmthd.attribute("ref"));
- if (prntmthd == "P"){
- btn_prcppatcase.selected = true;
- btn_prcppatcase.dispatch("onclick");
- }else{
- btn_prcpgoodcase.selected = true;
- btn_prcpgoodcase.dispatch("onclick");
- }
- ]]>
- </script>
- </select1>
- <select id="chk_prcpinptflag" ref="/root/send/SearchTree/prcpinptflag" navindex="6" overflow="visible" appearance="full" style="left:263px; top:105px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>CCD 제외</label>
- <value>ignore</value>
- </item>
- </choices>
- </select>
- <select id="chk_wareflag" ref="/root/send/SearchTree/wareflagarr" disabled="false" navindex="13" visibility="visible" overflow="visible" appearance="full" cols="3" sep="," vcellspacing="3" style="left:94px; top:198px; 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="caption13" class="search_name" style="left:5px; top:199px; width:89px; height:17px; ">사용구분 :</caption>
- <input id="ipt_acntnm" ref="/root/send/SearchTree/acntnm" class="output_fix" navindex="10" editable="false" appearance="input" style="left:202px; top:152px; width:132px; height:19px; "/>
- <button id="button1" class="icon_search" navindex="-1" style="left:183px; top:154px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
- ipt_acntcd.refresh();
- ipt_acntnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_acntcd" ref="/root/send/SearchTree/acntcd" class="input_fix" navindex="9" style="left:95px; top:152px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_acntcd.value == "") {
- ipt_acntnm.value = "";
- } else {
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
- if(model.getValue(ipt_acntnm.attribute("ref")) == "") ipt_acntcd.value = "";
- }
- ipt_acntcd.refresh();
- ipt_acntnm.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:5px; top:153px; width:89px; height:17px; ">계정과목 :</caption>
- <input id="ipt_acpttodd" ref="/root/send/SearchTree/acpttodd" class="input_default" navindex="1" visibility="hidden" inputtype="date" style="left:205px; top:30px; width:90px; height:19px; "/>
- <caption id="cap_acpttodd" visibility="hidden" style="left:190px; top:32px; width:20px; height:20px; font-weight:bold; ">~</caption>
- <caption id="cap_sumcnt" class="search_name" style="left:190px; top:30px; width:89px; height:17px; ">집계횟수 :</caption>
- <select1 id="cmb_sumcnt" ref="/root/send/SearchTree/sumcnt" navindex="2" appearance="minimal" style="left:280px; top:30px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="init/sumcntinfo/sumcntlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|