123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <stockdata>
- <item>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <drugqty/>
- <keepmth/>
- <lastupdtdt/>
- <clinicreason/>
- <modifyreason/>
- <goodunitcost/>
- <lrgnm/>
- <mdlnm/>
- <smlnm/>
- <allsizecnt/>
- <cmt/>
- </item>
- </stockdata>
- <deptdata>
- <item>
- <deptcd/>
- <deptnm/>
- <itemcnt/>
- <itemamt/>
- </item>
- </deptdata>
- <historydata>
- <item>
- <reqdeptnm/>
- <goodcd/>
- <goodnm/>
- <drugqty/>
- <setunit/>
- <lastupdt/>
- <modifyreason/>
- <cmt/>
- </item>
- </historydata>
- <articleCnt/>
- <totalPrice/>
- <itemcnt/>
- <itemamt/>
- <prtlist>
- <drugprtinfo>
- <drugprtlist/>
- </drugprtinfo>
- </prtlist>
- </main>
- <init>
- <lrgCategory>
- </lrgCategory>
- <mdlCategory>
- </mdlCategory>
- <smlCategory>
- </smlCategory>
- <viwoption>
- <reqdeptcd/>
- <reqdeptnm/>
- <lrgnm/>
- <mdlnm/>
- <smlnm/>
- <lastupdt/>
- <lastupdtnm/>
- </viwoption>
- <CheckData/>
- <usernm/>
- <drugflag>
- <item>
- <label>일반약</label>
- <value>1</value>
- </item>
- <item>
- <label>마약류</label>
- <value>2</value>
- </item>
- <item>
- <label>비치약품</label>
- <value>3</value>
- </item>
- <item>
- <label>응급약물</label>
- <value>4</value>
- </item>
- </drugflag>
- </init>
- <send>
- <search>
- <instcd/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <deptcd/>
- <deptnm/>
- <drugtxt/>
- <drugnm/>
- <drugcd/>
- <allsizespecid/>
- <totalflag/>
- <drugflag>1</drugflag>
- </search>
- <saveData/>
- <category>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </category>
- </send>
- <temp>
- <usrSelectDrugcd/>
- <receivedata>
- <receiveref>/root/temp/usrSelectDrugcd</receiveref>
- </receivedata>
- <tmpDrugDetail/>
- <result/>
- <copyVal/>
- <category/>
- <selectDept>/root/temp/selectDept/deptnm</selectDept>
- </temp>
- <target>
- <recvref>/root/main/stockdata/item</recvref>
- <recvitem>
- <reqdeptcd/>
- <reqdeptnm/>
- </recvitem>
- <control>grd_stock</control>
- <defaultvalue>012</defaultvalue>
- </target>
- <hidden>
- <allchk/>
- <allvisble/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitForm() ;
- var jobkindcd = getUserInfo("jobkindcd");
- if (jobkindcd != '1220') {
- fAllVisble() ;
- }
- ]]>
- </script>
- <submission id="TRRSC09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/deptdata"/>
- <submission id="TRRSC09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/stockdata"/>
- <submission id="TRRSC09003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/historydata"/>
- <submission id="TXRSC09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveData" replace="instance" resultref="/root/temp/result"/>
- <bind id="itemcnt" ref="/root/main/itemcnt" calculate="sum(/root/main/deptdata/item/itemcnt)" type="xsd:float"/>
- <bind id="itemamt" ref="/root/main/itemamt" calculate="sum(/root/main/deptdata/item/itemamt)" type="xsd:float"/>
- <bind id="articleCnt" ref="/root/main/articleCnt" calculate="count(/root/main/stockdata/item)" type="xsd:float"/>
- <bind id="totalPrice" ref="/root/main/totalPrice" calculate="sum(/root/main/stockdata/item/itemamt)" type="xsd:float"/>
- <submission id="TRRSC09004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prtlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/purcbaseweb/js/SMRSC09000.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * @ver : 2011-03-26
- * @desc : 선택약품을 적용
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAllVisble(){
- button2.visible = false ;
- button4.visible = false ;
- caption8.visible = false ;
- cpt_excel.visible = false ;
- ckb_reqdeptcd.visible = false ;
- ckb_mdlnm.visible = false ;
- ckb_reqdeptnm.visible = false ;
- ckb_smlnm.visible = false ;
- ckb_lrgnm.visible = false ;
- ckb_lastupdt.visible = false ;
- chk_lastupdtnm.visible = false ;
- btn_excel.visible = false ;
- button3.visible = false ;
- btn_addRow.visible = false ;
- btn_delRow.visible = false ;
- btn_save.visible = false ;
- btn_find.disabled = true ;
- btn_HistoryExcel.visible = false ;
- var vdutplcecd = getUserInfo("dutplcecd");
- var vdutplcenm = getUserInfo("dutplcenm");
- model.setValue("/root/send/search/deptcd", vdutplcecd );
- model.setValue("root/send/search/deptnm", vdutplcenm);
- model.refresh();
- }
- function fGetGrugGoodInfo(getRCVS){
- var params = getRCVS.split("▩");
- var duplFlag = false;
- for(var i = 1; i <(params.length-1); i++){
- var sGoodcd = params[i].split("▦")[1]; //물품코드
- var sGoodcdEngnm = params[i].split("▦")[2]; //물품영문명
- var Setunit = params[i].split("▦")[11]; //발주단위
- var sGoodunitcost = params[i].split("▦")[12]; //물품구입단가
- var k;
- for(k =0;k <grd_stock.rows;k++){
- compGoodcd = grd_stock.valueMatrix(k,grd_stock.colRef("goodcd"));
-
- if(sGoodcd ==compGoodcd){
- duplFlag = true;
- break;
- }else{
- duplFlag = false;
- }
- }
- if(duplFlag == true){
- messageBox(sGoodcd+"은(는) 이미 등록하신 코드","I009");
- }else{
- grd_stock.addRow(false);
-
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/reqdeptcd" ,model.getValue(ipt_deptcd.attribute("ref")));
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/drugflag" ,model.getValue(rdo_drugflag.attribute("ref")));
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/goodcd" ,sGoodcd);
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/goodnm" ,sGoodcdEngnm);
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/setunit" ,Setunit);
- model.makeValue("/root/main/stockdata/item["+grd_stock.row+"]/goodunitcost" ,sGoodunitcost);
- }
- }
- grd_stock.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:8px; top:15px; width:1193px; height:740px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1132px; top:110px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <shape id="rnd_searcharea" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:8px; width:1186px; height:77px; "/>
- <caption id="cap_search_dept" class="search_name" style="left:10px; top:15px; width:86px; height:17px; vertical-align:middle; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" disabled="true" appearance="minimal" style="left:100px; top:15px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:720px; top:15px; width:83px; height:17px; vertical-align:middle; ">대 분 류 :</caption>
- <caption id="caption3" class="search_name" style="left:720px; top:37px; width:83px; height:17px; vertical-align:middle; ">중 분 류 :</caption>
- <caption id="caption4" class="search_name" style="left:720px; top:59px; width:83px; height:17px; vertical-align:middle; ">소 분 류 :</caption>
- <caption id="cap_search_available" class="search_name" style="left:240px; top:15px; width:85px; height:17px; vertical-align:middle; ">부 서 :</caption>
- <caption id="caption5" class="search_name" style="left:240px; top:37px; width:86px; height:17px; vertical-align:middle; ">약품코드 :</caption>
- <line id="line13" style="x1:1106px; y1:27px; x2:1106px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1116px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if (model.getValue(ipt_deptcd.attribute("ref")) == "") {
- model.setValue(ipt_allsizespecid.attribute("ref") , "-");
- //}
-
- misfGridInit(grd_dept);
- submit("TRRSC09001");
-
- fSearch();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:905px; top:112px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSaveExcel();
- ]]>
- </script>
- </button>
- <button id="btn_addRow" class="btn2_letter3" visibility="visible" style="left:1018px; top:112px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <!--
- <button id="btn_copyRow" class="btn2_letter3" style="left:1076px; top:112px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRowCopy();
- ]]>
- </script>
- </button>
- -->
- <button id="btn_delRow" class="btn2_letter3" style="left:1075px; top:112px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_stock, "D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_dept" nodeset="/root/main/deptdata/item" class="datagrid2" autoresize="true" caption="부서코드^^부서이름^품목수^금액^AllSize^PREAMT" colsep="^" colwidth="7, 25, 144, 44, 86, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:140px; width:330px; height:595px; ">
- <col ref="deptcd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptnm"/>
- <col ref="itemcnt" format="#,###" style="text-align:right; "/>
- <col ref="itemamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="itemamtp" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSearchStockList();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_stock" nodeset="/root/main/stockdata/item" class="datagrid2" caption="순번^부서코드^부서^대분류^중분류^소분류^상품코드^상품코드^상품명^수량^단위^보관^보관방법^단가^등록일^임상적
보유사유^조정사유^비고^최종변경자^관리구분" colsep="^" colwidth="38, 91, 100, 100, 100, 100, 97, 23, 163, 59, 82, 12, 85, 50, 80, 65, 77, 138, 71, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:340px; top:140px; width:849px; height:361px; ">
- <col ref="rowno" visibility="hidden"/>
- <col ref="reqdeptcd" type="output" visibility="hidden"/>
- <col class="input_essential" ref="reqdeptnm" type="output" visibility="hidden"/>
- <col ref="lrgnm" visibility="hidden"/>
- <col ref="mdlnm" visibility="hidden"/>
- <col ref="smlnm" visibility="hidden"/>
- <col class="input_essential" ref="goodcd" type="output"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="goodnm"/>
- <col class="input_essential" ref="drugqty" type="input" style="text-align:right; "/>
- <col ref="setunit" style="text-align:center; "/>
- <col ref="keepmth" visibility="hidden"/>
- <col ref="pemtkeepmthd"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="lastupdt" type="output" visibility="hidden"/>
- <col ref="clinicreason" type="input"/>
- <col class="input_essential" ref="modifyreason" type="input"/>
- <col ref="cmt" type="input"/>
- <col ref="lastupdtnm" type="output" visibility="hidden"/>
- <col ref="drugflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_stock.col != grd_stock.colRef("cmt")){
- fOperationStockGrid();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_stock.col == grd_stock.colRef("drugqty")){
- if(event.keyCode=="13"){
- if(grd_stock.row < grd_stock.rows - grd_stock.fixedRows){
- grd_stock.row = grd_stock.row + 1;
- grd_stock.select(grd_stock.row, grd_stock.colRef("drugqty")) = true;
- }
- }
- grd_stock.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_history" nodeset="/root/main/historydata/item" class="datagrid2" autoresize="true" caption="부서명^코드명^상품명^용량^수량^단위^보관^조정일^조정사유^비고^변경자^관리구분" colsep="^" colwidth="90, 84, 130, 61, 45, 62, 47, 91, 96, 55, 59, 100" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:340px; top:535px; width:849px; height:200px; ">
- <col ref="reqdeptnm"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodmodel"/>
- <col ref="drugqty" format="#,###" style="text-align:right; "/>
- <col ref="setunit"/>
- <col ref="keepmth"/>
- <col ref="lastupdt" format="yyyy-mm-dd"/>
- <col ref="modifyreason"/>
- <col ref="cmt"/>
- <col ref="lastupdtnm"/>
- <col ref="drugflag" visibility="hidden"/>
- </datagrid>
- <select1 id="cmb_lrg" ref="/root/send/search/lrgcd" appearance="minimal" style="left:805px; top:15px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/lrgCategory/item">
- <label ref="iname"/>
- <value ref="icode"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag.attribute("ref")), cmb_lrg.value, "", "cmb_mdl", "", "M", "Y", "Y");
- cmb_mdl.value="";
- cmb_sml.value="";
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdl" ref="/root/send/search/mdlcd" appearance="minimal" style="left:805px; top:37px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mdlCategory/item">
- <label ref="iname"/>
- <value ref="icode"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(ipt_goodflag.attribute("ref")), cmb_lrg.value, cmb_mdl.value, "cmb_sml", "", "S", "Y", "Y");
- cmb_sml.value="";
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sml" ref="/root/send/search/smlcd" appearance="minimal" style="left:805px; top:59px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smlCategory/item">
- <label ref="iname"/>
- <value ref="icode"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_deptcd" ref="/root/send/search/deptcd" style="left:325px; top:15px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm", ipt_deptcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_deptnm" ref="/root/send/search/deptnm" class="output_fix" style="left:445px; top:15px; width:165px; height:19px; "/>
- <output id="opt_goodnm" ref="/root/send/search/drugnm" class="output_fix" style="left:445px; top:37px; width:165px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/send/search/drugcd" style="left:325px; top:37px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + cmb_instcd.value + "," + ipt_goodflag.value + "," + ipt_goodcd.value ,"","drugcd,drugnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodcd.value = "";
- opt_goodnm.value = "";
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="btn_find" class="icon_search" style="left:415px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", ipt_deptcd,"", recv_list, cmb_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:0px; top:118px; width:45px; height:13px; ">
- <![CDATA[부서]]>
- </caption>
- <line id="line11" class="line_1" style="x1:0px; y1:133px; x2:330px; y2:133px; "/>
- <line id="line1" class="line_1" style="x1:340px; y1:133px; x2:1189px; y2:133px; "/>
- <caption id="caption2" class="tit_2" style="left:341px; top:119px; width:144px; height:13px; ">부서별 상비약품량</caption>
- <input id="ipt_goodflag" ref="/root/send/category/goodflag" visibility="hidden" style="left:640px; top:55px; width:75px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/search/drugtxt" class="input_default" style="left:325px; top:59px; width:193px; height:19px; "/>
- <caption id="caption27" class="search_name" style="left:240px; top:59px; width:85px; height:17px; ">약 품 명 :</caption>
- <button id="button1" class="icon_search" style="left:415px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectDrug();
- ]]>
- </script>
- </button>
- <caption id="caption7" style="left:138px; top:116px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
- <caption id="caption12" class="tit_2" style="left:340px; top:513px; width:177px; height:13px; ">상비약품 변경이력</caption>
- <line id="line2" class="line_1" style="x1:340px; y1:529px; x2:1189px; y2:529px; "/>
- <button id="btn_HistoryExcel" class="btn2_letter2" style="left:1145px; top:507px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_history, "부서상비약품변경이력_"+getCurrentDate());
-
- // fSaveHistoryExcel();
- ]]>
- </script>
- </button>
- <select id="ckb_reqdeptcd" ref="/root/init/viwoption/reqdeptcd" overflow="visible" appearance="full" style="left:675px; top:97px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>부서코드</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_reqdeptcd, "reqdeptcd");
- ]]>
- </script>
- </select>
- <select id="ckb_reqdeptnm" ref="/root/init/viwoption/reqdeptnm" overflow="visible" appearance="full" style="left:748px; top:97px; width:57px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>부서명</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_reqdeptnm, "reqdeptnm");
- ]]>
- </script>
- </select>
- <select id="ckb_lrgnm" ref="/root/init/viwoption/lrgnm" overflow="visible" appearance="full" style="left:810px; top:97px; width:57px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>대분류</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_lrgnm, "lrgnm");
- ]]>
- </script>
- </select>
- <select id="ckb_mdlnm" ref="/root/init/viwoption/mdlnm" overflow="visible" appearance="full" style="left:675px; top:117px; width:57px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>중분류</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_mdlnm, "mdlnm");
- ]]>
- </script>
- </select>
- <select id="ckb_smlnm" ref="/root/init/viwoption/smlnm" overflow="visible" appearance="full" style="left:748px; top:117px; width:57px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>소분류</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_smlnm, "smlnm");
-
- ]]>
- </script>
- </select>
- <select id="ckb_lastupdt" ref="/root/init/viwoption/lastupdt" overflow="visible" appearance="full" style="left:810px; top:117px; width:57px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>등록일</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,ckb_lastupdt, "lastupdt");
- ]]>
- </script>
- </select>
- <select id="chk_lastupdtnm" ref="/root/init/viwoption/lastupdtnm" overflow="visible" appearance="full" style="left:871px; top:97px; width:84px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>최종수정자</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSumViewOption(grd_stock,chk_lastupdtnm, "lastupdtnm");
- ]]>
- </script>
- </select>
- <output id="opt_itemcnt" ref="/root/main/itemcnt" class="output_fix" format="#,###" style="left:176px; top:112px; width:61px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_itemamt" ref="/root/main/itemamt" class="output_fix" format="#,###" style="left:240px; top:112px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption8" style="left:50px; top:118px; width:45px; height:15px; font-weight:bold; text-decoration:underline; color:#0000ff; text-align:center; vertical-align:top; ">
- <![CDATA[Excel]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- misfSaveExcel(grd_dept, "부서상비약품내역_"+getCurrentDate());
-
- ]]>
- </script>
- </caption>
- <output id="opt_cnt" ref="/root/main/articleCnt" class="output_fix" format="#,###" style="left:575px; top:93px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption13" style="left:509px; top:117px; width:64px; height:15px; text-align:right; ">금액합계 :</caption>
- <caption id="caption16" style="left:509px; top:98px; width:64px; height:15px; text-align:right; ">품목수 :</caption>
- <output id="opt_amt" ref="/root/main/totalPrice" class="output_fix" format="#,###" style="left:575px; top:113px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="otp_usernm" ref="/root/init/usernm" style="left:100px; top:59px; width:125px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:37px; width:86px; height:17px; vertical-align:middle; ">관리구분 :</caption>
- <select1 id="rdo_drugflag" ref="/root/send/search/drugflag" appearance="minimal" style="left:100px; top:37px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/drugflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- misfGridInit(grd_dept);
- misfGridInit(grd_stock);
- misfGridInit(grd_history);
-
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:10px; top:59px; width:112px; height:17px; vertical-align:middle; ">작업유저 :</caption>
- <input id="ipt_allsizespecid" ref="/root/send/search/allsizespecid" disabled="true" visibility="hidden" style="left:614px; top:15px; width:15px; height:19px; "/>
- <caption id="cpt_excel" visibility="hidden" style="left:470px; top:117px; width:45px; height:15px; font-weight:bold; text-decoration:underline; color:#0000ff; text-align:center; vertical-align:top; ">
- <![CDATA[Excel]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- misfSaveExcel(grd_stock, "부서별상비약품량내역_"+getCurrentDate());
-
- ]]>
- </script>
- </caption>
- <bool id="bool1" checkvalue="Y,N" ref="/root/hidden/allchk" style="left:21px; top:143px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var allchk = model.getValue("/root/hidden/allchk");
-
- if(allchk=="Y"){
- for(var iRow =grd_dept.fixedRows;iRow < grd_dept.rows; iRow++){
- grd_dept.valueMatrix(iRow,grd_dept.colRef("chk"))="Y";
- grd_dept.isReadOnly(iRow,grd_dept.colRef("chk")) = true;
- }
- }else{
- for(var iRow =grd_dept.fixedRows;iRow < grd_dept.rows; iRow++){
- grd_dept.valueMatrix(iRow,grd_dept.colRef("chk"))="N";
- grd_dept.isReadOnly(iRow,grd_dept.colRef("chk")) = false;
- }
- }
- grd_dept.refresh();
- ]]>
- </script>
- </bool>
- <button id="button2" class="btn2_letter5" visibility="visible" style="left:175px; top:90px; width:75px; height:19px; ">
- <caption>병동별출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var allchk = model.getValue("/root/hidden/allchk");
-
- if(allchk=="Y"){
- var msg = messageBox("전체 출력하시겠습니까?","Q");
- if(msg =="6"){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/send/search/instcd"));
- model.makeValue("/root/send/reqdata/drugflag" ,model.getValue("/root/send/search/drugflag"));
- model.makeValue("/root/send/reqdata/srchflag" ,"D");
- if(submit("TRRSC09004")){
- model.removeNodeset("/root/prtinfo/drugprtinfo/drugprtlist");
- model.makeNode("/root/prtinfo/drugprtinfo/drugprtlist");
- copyNodesetType("/root/prtinfo/drugprtinfo/drugprtlist","/root/main/prtlist/drugprtinfo/drugprtlist","replace");
- exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- //exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo");
- /*for(var i =grd_drugprtlist.fixedRows;i < grd_drugprtlist.rows; i++){
- var sReqdeptcd = grd_drugprtlist.valueMatrix(i,grd_drugprtlist.colRef("reqdeptcd"));
- var sGoodcd = grd_drugprtlist.valueMatrix(i,grd_drugprtlist.colRef("goodcd"));
- model.removeNodeset("/root/prtinfo/drugprtinfo/drugprtlist");
- model.makeNode("/root/prtinfo/drugprtinfo/drugprtlist");
- copyNodesetType("/root/prtinfo/drugprtinfo/drugprtlist","/root/main/prtlist/drugprtinfo/drugprtlist[reqdeptcd='" + sReqdeptcd + "']","replace");
- //exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo");
- }*/
- }
- }else{
- return;
- }
- }else{
-
- for(var iRow =grd_dept.fixedRows;iRow < grd_dept.rows; iRow++){
- var chk = grd_dept.valueMatrix(iRow,grd_dept.colRef("chk"));
- if(chk=="Y"){
- var deptcd = grd_dept.valueMatrix(iRow,grd_dept.colRef("deptcd"));
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/send/search/instcd"));
- model.makeValue("/root/send/reqdata/drugflag" ,model.getValue("/root/send/search/drugflag"));
- model.makeValue("/root/send/reqdata/reqdeptcd" ,deptcd);
- if(submit("TRRSC09004")){
- model.removeNodeset("/root/prtinfo/drugprtinfo/drugprtlist");
- model.makeNode("/root/prtinfo/drugprtinfo/drugprtlist");
- copyNodesetType("/root/prtinfo/drugprtinfo/drugprtlist","/root/main/prtlist/drugprtinfo/drugprtlist","replace");
- exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- //exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo");
-
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_drugprtlist" nodeset="/root/main/prtlist/drugprtinfo/drugprtlist" class="datagrid2" visibility="hidden" autoresize="true" caption="부서코드^부서^약품코드^약품명^함량^낱개단위^포장단위^수량^비고^관리구분^단가^금액" colsep="^" colwidth="100, 100, 97, 100, 100, 30, 28, 59, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:35px; top:245px; width:540px; height:361px; ">
- <col ref="reqdeptcd"/>
- <col ref="reqdeptnm"/>
- <col ref="goodcd" type="output"/>
- <col ref="goodnm" type="output"/>
- <col ref="cntsqtyunit" type="output"/>
- <col ref="deliveunit" type="output"/>
- <col ref="purcunit" type="output"/>
- <col ref="drugqty"/>
- <col ref="cmt"/>
- <col ref="drugflag"/>
- <col ref="goodunitcost"/>
- <col ref="amt"/>
- </datagrid>
- <button id="button3" class="btn2_letter4" style="left:950px; top:112px; width:64px; height:19px; ">
- <caption>약품조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqdeptcd = model.getValue(ipt_deptcd.attribute("ref"));
- if(reqdeptcd==""){
- messageBox("부서를 먼저","C002");
- return;
- }
- modal("SPRSC09000");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter5" style="left:255px; top:90px; width:82px; height:19px; ">
- <caption>약품별출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var allchk = model.getValue("/root/hidden/allchk");
-
- if(allchk=="Y"){
- var msg = messageBox("전체 출력하시겠습니까?","Q");
- if(msg =="6"){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/send/search/instcd"));
- model.makeValue("/root/send/reqdata/drugflag" ,model.getValue("/root/send/search/drugflag"));
- model.makeValue("/root/send/reqdata/srchflag" ,"G");
- if(submit("TRRSC09004")){
- model.removeNodeset("/root/prtinfo/drugprtinfo/drugprtlist");
- model.makeNode("/root/prtinfo/drugprtinfo/drugprtlist");
- copyNodesetType("/root/prtinfo/drugprtinfo/drugprtlist","/root/main/prtlist/drugprtinfo/drugprtlist","replace");
- //exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- //exeReportPreview("RPRSC09002","XMLSTR","/root/prtinfo");
- exeReportPreview("RPRSC09002","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- }
- }else{
- return;
- }
- }else{
- for(var iRow =grd_dept.fixedRows;iRow < grd_dept.rows; iRow++){
- var chk = grd_dept.valueMatrix(iRow,grd_dept.colRef("chk"));
- if(chk=="Y"){
- var deptcd = grd_dept.valueMatrix(iRow,grd_dept.colRef("deptcd"));
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/send/search/instcd"));
- model.makeValue("/root/send/reqdata/drugflag" ,model.getValue("/root/send/search/drugflag"));
- model.makeValue("/root/send/reqdata/reqdeptcd" ,deptcd);
- if(submit("TRRSC09004")){
- model.removeNodeset("/root/prtinfo/drugprtinfo/drugprtlist");
- model.makeNode("/root/prtinfo/drugprtinfo/drugprtlist");
- copyNodesetType("/root/prtinfo/drugprtinfo/drugprtlist","/root/main/prtlist/drugprtinfo/drugprtlist","replace");
- //exeReportPreview("RPRSC09001","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
- exeReportPreview("RPRSC09002","XMLSTR","/root/prtinfo", "", "true", "", "", "", "", "true");
-
- }
- }
- }
-
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">상비약품관리</caption>
- </xhtml:body>
- </xhtml:html>
|