123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951 |
- <?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>
- <drugstatsinfo>
- <deptstocinfo>
- <deptstoclist>
- <stkdate/>
- <iokindnm/>
- <inputqty/>
- <inputamt/>
- <outputqty/>
- <outputamt/>
- <stocqty/>
- <stocamt/>
- </deptstoclist>
- </deptstocinfo>
- <clsstocinfo>
- <clsstoclist/>
- </clsstocinfo>
- <durgddstocinfo>
- <drugddstoclist>
- <goodcd/>
- <goodnm/>
- <gooduitcost/>
- <maincustlastsuplplnm/>
- <bfstocqty/>
- <inputqty/>
- <outputqty/>
- <stocqty/>
- <purcqty/>
- </drugddstoclist>
- </durgddstocinfo>
- <deptinfo>
- <stkdeptlist/>
- </deptinfo>
- </drugstatsinfo>
- </main>
- <cond>
- <deptsrchinfo>
- <instcd/>
- <stkdeptcd/>
- <stofrdd/>
- <stotodd/>
- <goodcd/>
- <goodnm/>
- <suppcustcd/>
- <suppcustnm/>
- </deptsrchinfo>
- <drugclsrchinfo>
- <instcd/>
- <stkdeptcd/>
- <stofrdd/>
- <lrgcd/>
- <goodcd/>
- <goodnm/>
- <mngtcls/>
- </drugclsrchinfo>
- <drugddsrchinfo>
- <instcd/>
- <stkdeptcd/>
- <stofrdd/>
- <stotodd/>
- <lrgcd/>
- <goodcd/>
- <goodnm/>
- <mngtcls/>
- </drugddsrchinfo>
- </cond>
- <send>
- <reqdata/>
- </send>
- <init>
- <cmb_deptcd2>
- <deptcdlist/>
- </cmb_deptcd2>
- <cmb_deptcd3>
- <deptcdlist/>
- </cmb_deptcd3>
- </init>
- <hidden>
- <common>
- <instcdinfo/>
- </common>
- <lrgcdinfo/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //기관코드 조회
- zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
-
- model.setValue("/root/cond/deptsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/cond/drugclsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/cond/drugddsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
-
- misfComboComCdList("030M0003",cmb_mngtcls,"Y");
- misfComboComCdList("030M0003",cmb_mngtcls2,"Y");
- //약국 대분류 조회
- misfComboComCdListMulti("R0315","cmb_lrgcd");
- copyNodesetType("/root/hidden/lrgcdinfo","/root/init/comcd/R03150/R03150","replace",model,model)
- addComboItem("cmb_lrgcd","전체","-","above");
- addComboItem("cmb_lrgcd2","전체","-","above");
- cmb_lrgcd.value="-";
- cmb_lrgcd2.value="-";
- //약국 재고 부서 조회
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfComboStockArthDeptcdList(cmb_deptcd,getUserInfo("dutplceinstcd") ,"PH" );
- copyNodesetType("/root/init/cmb_deptcd2/deptcdlist","/root/init/cmb_deptcd/deptcdlist","replace",model,model)
- addComboItem("cmb_deptcd2","전체","-","above");
- cmb_deptcd2.value="-";
- copyNodesetType("/root/init/cmb_deptcd3/deptcdlist","/root/init/cmb_deptcd/deptcdlist","replace",model,model)
-
- model.setValue("/root/cond/deptsrchinfo/stofrdd" ,getCurrentDate());
- model.setValue("/root/cond/deptsrchinfo/stotodd" ,getCurrentDate());
- model.setValue("/root/cond/drugclsrchinfo/stofrdd" ,getCurrentDate());
- model.setValue("/root/cond/drugddsrchinfo/stofrdd" ,getCurrentDate());
- model.setValue("/root/cond/drugddsrchinfo/stotodd" ,getCurrentDate());
-
- model.removeNodeset("/root/main/drugstatsinfo/deptstocinfo/deptstoclist");
- model.removeNodeset("/root/main/drugstatsinfo/clsstocinfo/clsstoclist");
- model.removeNodeset("/root/main/drugstatsinfo/durgddstocinfo/drugddstoclist");
- model.removeNodeset("/root/tmp/chkinfo/chkflag");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodiolist" resultref="/root/init/main"/>
- <submission id="TRRST07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/drugstatsinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 각 탭별 약국 재고 조회
- function fDrugStatsSrch(Flag){
-
-
- if(Flag =="0"){
- if(model.getValue("/root/cond/deptsrchinfo/stkdeptcd")==""){
- messageBox("약국부서는 필수조회조건","I009");
- model.setFocus("cmb_deptcd");
- return;
- }
- if(model.getValue("/root/cond/deptsrchinfo/goodcd")==""){
- messageBox("물품코드는 필수조회조건","I009");
- model.setFocus("ipt_goodcd");
- return;
- }
- model.makeValue("/root/send/reqdata/flag" ,Flag);
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/deptsrchinfo/instcd"));
- model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/deptsrchinfo/stkdeptcd"));
- model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/deptsrchinfo/stofrdd"));
- model.makeValue("/root/send/reqdata/stotodd" ,model.getValue("/root/cond/deptsrchinfo/stotodd"));
- model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/deptsrchinfo/goodcd"));
- model.makeValue("/root/send/reqdata/suppcustcd" ,model.getValue("/root/cond/deptsrchinfo/suppcustcd"));
-
- }else if(Flag =="1"){
-
- model.makeValue("/root/send/reqdata/flag" ,Flag);
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/drugclsrchinfo/instcd"));
- model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/drugclsrchinfo/stkdeptcd"));
- model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/drugclsrchinfo/stofrdd"));
- model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/drugclsrchinfo/lrgcd"));
- model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/drugclsrchinfo/goodcd"));
- model.makeValue("/root/send/reqdata/mngtcls" ,model.getValue("/root/cond/drugclsrchinfo/mngtcls"));
-
- }else if(Flag =="2"){
- if(model.getValue("/root/cond/drugddsrchinfo/stkdeptcd")==""){
- messageBox("약국부서는 필수조회조건","I009");
- model.setFocus("cmb_deptcd3");
- return;
- }
- model.makeValue("/root/send/reqdata/flag" ,Flag);
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/drugddsrchinfo/instcd"));
- model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/drugddsrchinfo/stkdeptcd"));
- model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/drugddsrchinfo/stofrdd"));
- model.makeValue("/root/send/reqdata/stotodd" ,model.getValue("/root/cond/drugddsrchinfo/stotodd"));
- model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/drugddsrchinfo/lrgcd"));
- model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/drugddsrchinfo/goodcd"));
- model.makeValue("/root/send/reqdata/mngtcls" ,model.getValue("/root/cond/drugddsrchinfo/mngtcls"));
- model.makeValue("/root/send/reqdata/suppcustcd" ,model.getValue("/root/cond/deptsrchinfo/suppcustcd"));
- }
-
- if(submit("TRRST07001")){
- if(Flag =="0"){
-
- if(grd_deptstoclist.rows > 1){
- /*
- model.removeNodeset("/root/temp/stkdate");
-
- model.makeValue("/root/temp/stkdate",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.bottomrow+"]/stkdate"));
- grd_deptstoclist.addRow(false);
-
- grd_deptstoclist.valueMatrix(grd_deptstoclist.row,grd_deptstoclist.colRef("stkdate")) = model.getValue("/root/temp/stkdate");
- grd_deptstoclist.valueMatrix(grd_deptstoclist.row,grd_deptstoclist.colRef("iokindnm")) ="출고 =>[재고보정]";
- model.setValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.row+"]/stocqty",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist/orgstocqty"));
- model.setValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.row+"]/stocamt",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist/orgstocamt"));
- grd_deptstoclist.refresh();*/
- }
-
- }else if(Flag =="1"){
- var deptcnt = parseInt(model.getValue("/root/main/drugstatsinfo/deptinfo/stkdeptlist/grd_size"));
- var new_caption = model.getValue("/root/main/drugstatsinfo/deptinfo/stkdeptlist/grd_deptcd");
- var chkflag = model.getValue("/root/tmp/chkinfo/chkflag");
-
- if(chkflag!="Y"){
- for(var i =1; i <= deptcnt;i++ ){
-
- grd_clsstoclist.addColumn("ref:"+"depthngnm"+i,false);
- grd_clsstoclist.caption = grd_clsstoclist.caption+"^depthngnm"+i;
- // 한번 조회해서 셋팅된 부서를 다시 셋팅안하기 위한 flag
- model.makeValue("/root/tmp/chkinfo/chkflag","Y");
-
- }
- grd_clsstoclist.rebuild();
- grd_clsstoclist.caption = "약품코드^약품명^포장단위^포장수량^"+new_caption
-
- for(var i =1; i <= deptcnt;i++ ){
- grd_clsstoclist.colAttribute(grd_clsstoclist.colRef("depthngnm"+i),"format")="#,###.##";
- grd_clsstoclist.colAttribute(grd_clsstoclist.colRef("depthngnm"+i),"style")="text-align:right;";
-
- }
- }
- model.makeNode("/root/main/drugstatsinfo/clsstocinfo/clsstoclist");
- copyNodesetType("/root/main/drugstatsinfo/clsstocinfo/clsstoclist","/root/main/drugstatsinfo/init/benode_clsstocinfo/clsstoclist","replace",model,model);
- model.refresh();
- model.removeNodeset("/root/main/drugstatsinfo/init/benode_clsstocinfo/clsstoclist");
- }
- model.removeNodeset("/root/send/reqdata");
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1270" pageheight="780" guideline="1,1242;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1125px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">약국재고통계</caption>
- </group>
- <button id="btn_srch1" class="btn_sw8" group="tab" selected="true" style="left:6px; top:15px; width:100px; height:22px; ">
- <caption>약국별 재고조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case1");
- if(model.getValue("/root/cond/deptsrchinfo/stkdeptcd")!=""){
- fDrugStatsSrch(switch1.selectedIndex);
- }
-
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:5px; top:40px; width:1239px; height:688px; ">
- <case id="case1" selected="true">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1090px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDrugStatsSrch(switch1.selectedIndex);
- ]]>
- </script>
- </button>
- <line id="line4" class="line_4" style="x1:1080px; y1:20px; x2:1080px; y2:52px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:165px; height:13px; ">약국별 재고조회</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:95px; x2:1235px; y2:95px; "/>
- <select1 id="cmb_instcd" ref="/root/cond/deptsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:19px; width:175px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqfrdd" ref="/root/cond/deptsrchinfo/stofrdd" class="input_s_essential" navindex="1" inputtype="date" style="left:720px; top:20px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:45px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption24" class="search_name" style="left:630px; top:20px; width:86px; height:17px; ">검색기간 :</caption>
- <caption id="caption14" class="search_name" style="left:20px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1148px; top:25px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_deptstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptcd" ref="/root/cond/deptsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:421px; top:20px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:335px; top:20px; width:90px; height:17px; ">약 국 :</caption>
- <caption id="caption11" class="search_no_b" style="left:830px; top:22px; width:12px; height:17px; ">~</caption>
- <input id="input3" ref="/root/cond/deptsrchinfo/stotodd" class="input_s_essential" navindex="2" inputtype="date" style="left:855px; top:20px; width:100px; height:19px; text-align:center; "/>
- <datagrid id="grd_deptstoclist" nodeset="/root/main/drugstatsinfo/deptstocinfo/deptstoclist" class="datagrid2" autoresize="true" caption="날 짜^적 요^입고량^입고액^출고량^출고액^재고량^재고액^실사재고량^실사재고액^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균
의뢰^비고^total
수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag" colsep="^" colwidth="99, 295, 87, 103, 89, 101, 81, 113, 100, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:100px; width:1230px; height:580px; ">
- <col ref="stkdate" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="iokindnm" type="output" style="text-align:left; "/>
- <col ref="inputqty" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="inputamt" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="outputqty" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="outputamt" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="stocqty" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="stocamt" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="orgstocqty" type="output" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="orgstocamt" type="output" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptstoclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_goodnm" ref="/root/cond/deptsrchinfo/goodnm" class="input_fix" appearance="input" style="left:244px; top:44px; width:215px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- {
- ipt_goodcd.value = "";
- }
- else {
- model.setValue("/root/cond/deptsrchinfo/goodcd", "")
- btn_searchgoodcd.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm.value = ipt_goodnm.currentText;
- ipt_goodnm.refresh();
- ipt_goodnm.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <button id="btn_searchgoodcd" class="icon_search" style="left:225px; top:45px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/deptsrchinfo/instcd"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.makeValue("/root/send/goodiolist/goodflag","PH");
- model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/deptsrchinfo/goodcd"));
- model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/deptsrchinfo/goodnm"));
-
- if (submit("TRRSD00192") == true) {
- var nodecnts = getNodesetCount("/root/init/main/goodlist");
- if (nodecnts >= "2") {
- group2.visible = true;
- } else if (nodecnts == "1") {
-
- var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
-
- model.setValue("/root/cond/deptsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/deptsrchinfo/goodnm" , goodnm)
- } else {
- messageBox("검색된 코드가 없습니다.", "I");
- }
-
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/cond/deptsrchinfo/goodcd" class="input_s_essential" navindex="3" _chartype="upper" style="left:110px; top:44px; width:111px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_goodcd.value.length == 0)
- {
- ipt_goodnm.value = "";
- }
- else {
- model.setValue("/root/cond/deptsrchinfo/goodnm", "")
- btn_searchgoodcd.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd.value = ipt_goodcd.currentText;
- ipt_goodcd.refresh();
- ipt_goodcd.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <output id="opt_suppcustnm" ref="/root/cond/deptsrchinfo/suppcustnm" class="output_fix" appearance="output" style="left:842px; top:45px; width:174px; height:19px; "/>
- <button id="btn_suppcustcd" class="icon_search" style="left:823px; top:47px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustcd" ref="/root/cond/deptsrchinfo/suppcustcd" class="input_default" style="left:720px; top:45px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ){
- model.setValue(opt_suppcustnm.attribute("ref"),"");
- }else{
- var instcd = getUserInfo("dutplceinstcd");
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","instcd");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
- else model.setFocus("cmb_conflag");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:630px; top:45px; width:86px; height:17px; ">제약회사 :</caption>
- <group id="group2" visibility="hidden" style="left:105px; top:75px; width:415px; height:165px; ">
- <datagrid id="grd_goodlist" nodeset="/root/init/main/goodlist" visibility="visible" caption="약품코드^약품명^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:25px; width:410px; height:139px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodnm");
-
- model.setValue("/root/cond/deptsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/deptsrchinfo/goodnm" , goodnm)
-
- group2.visible = false;
- }
- ipt_goodcd.refresh();
- ipt_goodnm.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = false
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="case2">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:78px; width:150px; height:13px; ">약품분류별 재고조회</caption>
- <datagrid id="grd_clsstoclist" nodeset="/root/main/drugstatsinfo/clsstocinfo/clsstoclist" class="datagrid2" caption="약품코드^약품명^포장단위^포장수량" colsep="^" colwidth="93, 321, 57, 59" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:100px; width:1230px; height:580px; ">
- <col ref="goodcd" type="output" style="text-align:center; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="purcunit" type="output" style="text-align:center; "/>
- <col ref="purcqty" format="#,###.##" style="text-align:right; "/>
- <!--<col ref="depthngnm1" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm2" format="#,###.##" style="text-align:right; "/>^부서1^부서2^부서3^부서4^부서5^부서6^부서7^부서8^부서9^부서10
- <col ref="depthngnm3" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm4" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm5" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm6" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm7" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm8" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm9" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="depthngnm10" visibility="hidden" format="#,###.##" style="text-align:right; "/>-->
- </datagrid>
- <button id="button3" class="btn1_letter2" style="left:1093px; top:25px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_clsstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn1_letter2" style="left:1035px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDrugStatsSrch(switch1.selectedIndex);
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/cond/drugclsrchinfo/stofrdd" class="input_s_essential" inputtype="date" style="left:740px; top:15px; width:100px; height:19px; text-align:center; "/>
- <select1 id="cmb_disinstcd2" ref="/root/cond/drugclsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:115px; top:19px; width:175px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:345px; top:15px; width:94px; height:17px; ">약 국 :</caption>
- <caption id="caption7" class="search_name" style="left:650px; top:15px; width:93px; height:17px; ">기준일자 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
- <line id="line2" class="line_4" style="x1:1025px; y1:20px; x2:1025px; y2:52px; "/>
- <select1 id="cmb_deptcd2" ref="/root/cond/drugclsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:435px; top:15px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_deptcd2/deptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:795px; top:70px; width:86px; height:17px; ">약품분류 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/cond/drugclsrchinfo/lrgcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:895px; top:70px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1230px; y2:95px; "/>
- <group id="group3" visibility="hidden" style="left:360px; top:80px; width:415px; height:165px; ">
- <datagrid id="grd_goodlist2" nodeset="/root/init/main/goodlist" visibility="visible" caption="약품코드^약품명^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:25px; width:410px; height:139px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist2.row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist2.row + "]/goodnm");
-
- model.setValue("/root/cond/drugclsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/drugclsrchinfo/goodnm" , goodnm)
-
- group3.visible = false;
- }
- ipt_goodcd2.refresh();
- ipt_goodnm2.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_searchgoodcd2" class="icon_search" style="left:551px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/drugclsrchinfo/instcd"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.makeValue("/root/send/goodiolist/goodflag","PH");
- model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/drugclsrchinfo/goodcd"));
- model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/drugclsrchinfo/goodnm"));
-
- if (submit("TRRSD00192") == true) {
- var nodecnts = getNodesetCount("/root/init/main/goodlist");
- if (nodecnts >= "2") {
- group3.visible = true;
- } else if (nodecnts == "1") {
-
- var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
-
- model.setValue("/root/cond/drugclsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/drugclsrchinfo/goodnm" , goodnm)
- } else {
- messageBox("검색된 코드가 없습니다.", "I");
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm2" ref="/root/cond/drugclsrchinfo/goodnm" class="input_fix" appearance="input" style="left:574px; top:45px; width:215px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm2.value.length == 0)
- {
- ipt_goodcd2.value = "";
- }
- else {
- model.setValue("/root/cond/drugclsrchinfo/goodcd", "")
- btn_searchgoodcd2.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm2.value = ipt_goodnm.currentText;
- ipt_goodnm2.refresh();
- ipt_goodnm2.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd2" ref="/root/cond/drugclsrchinfo/goodcd" class="input_fix" _chartype="upper" style="left:435px; top:45px; width:111px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_goodcd2.value.length == 0)
- {
- ipt_goodnm2.value = "";
- }
- else {
- model.setValue("/root/cond/drugclsrchinfo/goodnm", "")
- btn_searchgoodcd2.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd2.value = ipt_goodcd2.currentText;
- ipt_goodcd2.refresh();
- ipt_goodcd2.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:345px; top:46px; width:86px; height:17px; ">약품코드 :</caption>
- <select1 id="cmb_mngtcls" ref="/root/cond/drugclsrchinfo/mngtcls" class="combo_s_essential" appearance="minimal" style="left:115px; top:45px; width:175px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="search_name" style="left:15px; top:46px; width:88px; height:17px; ">관리분류 :</caption>
- </case>
- <case id="case3">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_durgddstoclist" nodeset="/root/main/drugstatsinfo/durgddstocinfo/drugddstoclist" class="datagrid2" caption="약품코드^약품명^마스터단가^거래처^전일재고^전산입고량^전산출고량^전산재고량^포장수량^청구^재멸균^대여^멸균
의뢰^미불출수량^미불출사유^청구일시^청구자^확인자" colsep="^" colwidth="121, 259, 77, 163, 97, 104, 108, 109, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:100px; width:1230px; height:580px; ">
- <col ref="goodcd" type="output" style="text-align:center; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="goodunitcost" type="output" format="#,###.##" style="text-align:right; "/>
- <col ref="maincustlastsuplplnm" style="text-align:left; "/>
- <col ref="bfstocqty" format="#,###.##" style="text-align:right; "/>
- <col ref="inputqty" format="#,###.##" style="text-align:right; "/>
- <col ref="outputqty" format="#,###.##" style="text-align:right; "/>
- <col ref="stocqty" format="#,###.##" style="text-align:right; "/>
- <col ref="purcqty" format="#,###.##" style="text-align:right; "/>
- </datagrid>
- <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:150px; height:14px; ">약품일자별 재고조회</caption>
- <line id="line5" class="line_1" style="x1:2px; y1:95px; x2:1232px; y2:95px; "/>
- <select1 id="cmb_deptcd3" ref="/root/cond/drugddsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:402px; top:19px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_deptcd3/deptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_searchgoodcd3" class="icon_search" style="left:518px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/drugddsrchinfo/instcd"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.makeValue("/root/send/goodiolist/goodflag","PH");
- model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/drugddsrchinfo/goodcd"));
- model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/drugddsrchinfo/goodnm"));
-
- if (submit("TRRSD00192") == true) {
- var nodecnts = getNodesetCount("/root/init/main/goodlist");
- if (nodecnts >= "2") {
- group4.visible = true;
- } else if (nodecnts == "1") {
-
- var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
-
- model.setValue("/root/cond/drugddsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/drugddsrchinfo/goodnm" , goodnm)
- } else {
- messageBox("검색된 코드가 없습니다.", "I");
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:810px; top:75px; width:86px; height:17px; ">약품분류 :</caption>
- <select1 id="cmb_lrgcd2" ref="/root/cond/drugddsrchinfo/lrgcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:910px; top:74px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/lrgcdinfo">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:312px; top:19px; width:94px; height:17px; ">약 국 :</caption>
- <select1 id="combo3" ref="/root/cond/drugddsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:115px; top:19px; width:175px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="search_name" style="left:312px; top:46px; width:86px; height:17px; ">약품코드 :</caption>
- <input id="ipt_goodnm3" ref="/root/cond/drugddsrchinfo/goodnm" class="input_fix" appearance="input" style="left:541px; top:45px; width:215px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm3.value.length == 0)
- {
- ipt_goodcd3.value = "";
- }
- else {
- model.setValue("/root/cond/drugddsrchinfo/goodcd", "")
- btn_searchgoodcd3.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm3.value = ipt_goodnm3.currentText;
- ipt_goodnm3.refresh();
- ipt_goodnm3.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption17" class="search_name" style="left:778px; top:45px; width:86px; height:17px; ">제약회사 :</caption>
- <input id="ipt_suppcustcd2" ref="/root/cond/deptsrchinfo/suppcustcd" class="input_default" style="left:868px; top:45px; width:66px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( model.getValue(ipt_suppcustcd2.attribute("ref")).length == 0 ){
- model.setValue(opt_suppcustnm2.attribute("ref"),"");
- opt_suppcustnm2.refresh();
- }else{
- //var instcd = getUserInfo("dutplceinstcd");
- //rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(combo3.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd2.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd2,"SPRSD00220","instcd","instcd");
- }
- //model.refresh();
- ]]>
- </script>
- </input>
- <button id="button4" class="icon_search" style="left:938px; top:47px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
- rszfOpenPopUpListByWndName(ipt_suppcustcd2,"","suppcustcd,suppcustnm","SPRSD00220","instcd","combo3");
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_suppcustnm2" ref="/root/cond/deptsrchinfo/suppcustnm" class="output_fix" appearance="output" style="left:957px; top:45px; width:138px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
- <input id="ipt_goodcd3" ref="/root/cond/drugddsrchinfo/goodcd" class="input_fix" _chartype="upper" style="left:402px; top:45px; width:111px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_goodcd3.value.length == 0)
- {
- ipt_goodnm3.value = "";
- }
- else {
- model.setValue("/root/cond/drugddsrchinfo/goodnm", "")
- btn_searchgoodcd3.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd3.value = ipt_goodcd3.currentText;
- ipt_goodcd3.refresh();
- ipt_goodcd3.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/cond/drugddsrchinfo/stofrdd" class="input_s_essential" inputtype="date" style="left:720px; top:20px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption20" class="search_no_b" style="left:830px; top:22px; width:12px; height:17px; ">~</caption>
- <caption id="caption22" class="search_name" style="left:630px; top:20px; width:86px; height:17px; ">검색기간 :</caption>
- <input id="input8" ref="/root/cond/drugddsrchinfo/stotodd" class="input_s_essential" inputtype="date" style="left:855px; top:20px; width:100px; height:19px; text-align:center; "/>
- <group id="group4" visibility="hidden" style="left:430px; top:70px; width:415px; height:165px; ">
- <datagrid id="grd_goodlist3" nodeset="/root/init/main/goodlist" visibility="visible" caption="약품코드^약품명^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:25px; width:410px; height:139px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist3.row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist3.row + "]/goodnm");
-
- model.setValue("/root/cond/drugddsrchinfo/goodcd" , goodcd)
- model.setValue("/root/cond/drugddsrchinfo/goodnm" , goodnm)
-
- group4.visible = false;
- }
- ipt_goodcd3.refresh();
- ipt_goodnm3.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button7" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false
- ]]>
- </script>
- </button>
- </group>
- <button id="button8" class="btn1_letter2" style="left:1168px; top:25px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_durgddstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <line id="line6" class="line_4" style="x1:1100px; y1:20px; x2:1100px; y2:52px; "/>
- <button id="button9" class="btn1_letter2" style="left:1110px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDrugStatsSrch(switch1.selectedIndex);
- ]]>
- </script>
- </button>
- <select1 id="cmb_mngtcls2" ref="/root/cond/drugddsrchinfo/mngtcls" class="combo_s_essential" appearance="minimal" style="left:115px; top:45px; width:175px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption23" class="search_name" style="left:15px; top:46px; width:88px; height:17px; ">관리분류 :</caption>
- </case>
- </switch>
- <button id="btn_srch2" class="btn_sw10" group="tab" style="left:119px; top:15px; width:123px; height:22px; ">
- <caption>약품분류별 재고조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- model.toggle("case2");
- if(model.getValue("/root/tmp/chkinfo/chkflag")!=""){
- fDrugStatsSrch(switch1.selectedIndex);
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_srch3" class="btn_sw10" group="tab" style="left:256px; top:15px; width:112px; height:22px; ">
- <caption>약품일자별 재고조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case3");
-
- if(model.getValue("/root/cond/drugddsrchinfo/stkdeptcd")!=""){
- fDrugStatsSrch(switch1.selectedIndex);
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|