123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
- <xhtml:head>
- <xhtml:title>약품 재고 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prcplist>
- <prcpinfo>
- <genrdd/>
- <genrtm/>
- <prcpdd/>
- <spcldrug/>
- <ioflag/>
- <wardcd/>
- <pid/>
- <calcscorcd/>
- <engnm/>
- <execprcptotqty/>
- <execdd/>
- <issdeptcd/>
- <prcpgenrflag/>
- <execprcpuniqno/>
- <sumflag/>
- </prcpinfo>
- </prcplist>
- <patlist>
- <patinfo/>
- </patlist>
- <astlist>
- <astinfo/>
- </astlist>
- <prnlist>
- <prninfo/>
- </prnlist>
- <endlist>
- <endinfo>
- <genrdd/>
- <genrtm/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumdeptcd/>
- <sumnm/>
- <endflag/>
- <cnt/>
- </endinfo>
- </endlist>
- </main>
- <send>
- <srchfromdd/>
- <calcscorcd/>
- <execdeptcd/>
- <sumlistinfo>
- <prcpflag>O</prcpflag>
- </sumlistinfo>
- <endtime/>
- <fromddflag/>
- <fromtm>150001</fromtm>
- <toddflag/>
- <totm>150000</totm>
- <fromdd/>
- <todd/>
- <srchorddeptcd/>
- <issdeptcd/>
- <spcldrug/>
- <maendflag/>
- <ddflag/>
- <srchdeptcd>전체</srchdeptcd>
- <offset>0</offset>
- <pagesize>1000</pagesize>
- <sumlistinfo/>
- <srchadminflag/>
- <srchadmincd/>
- <srchendfromdd/>
- <srchendtodd/>
- </send>
- <init>
- <sumtmflaglist>
- <flaglist>
- <flagcd/>
- <flagnm/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- </flaglist>
- </sumtmflaglist>
- <updmflaglist>
- <flaglist>
- <fromddflag/>
- <fromtm/>
- <nextfromtm/>
- </flaglist>
- </updmflaglist>
- <chksum>
- <item>
- <chkast/>
- </item>
- </chksum>
- <chkyn/>
- <chktm/>
- <chkinstcd>
- <hosp>
- <hospnm/>
- <hospnm1/>
- </hosp>
- </chkinstcd>
- <sumdtinfo/>
- <cmb_mngtcls>
- </cmb_mngtcls>
- </init>
- <hidden>
- <chkpid>
- <pharm>
- <pharmflag/>
- </pharm>
- </chkpid>
- </hidden>
- <temp>
- <drugcd/>
- <fromddflag/>
- <toddflag/>
- <fromtm/>
- <totm/>
- <issdeptcd/>
- </temp>
- <result>
- <hidden/>
- </result>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //model.setValue("/root/send/fromddflag", getCurrentDate()-1);
- //model.setValue("/root/send/toddflag", getCurrentDate());
- //cmb_fromddflag.value = getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchendfromdd", getCurrentDate());
- model.setValue("/root/send/srchendtodd", getCurrentDate());
- model.removeNodeset("/root/main/prcplist/prcpinfo");
-
- //zbcfGetCodeList( new Array("030M0003"), new Array("/root/init/cmb_mngtcls") );
- misfComboComCdList("030M0003",cmb_srchadminflag);
-
- submit("TRADT50202");
- submit("TRADT50204");
-
- combo_deptcd.select(0);
-
- // 마감시간 구분
- model.setValue("/root/send/sumlistinfo/prcpflag","S");
- submit("TRADT10206");
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") == "0000") {
- model.setValue("/root/send/fromtm",model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") + "00");
- } else {
- model.setValue("/root/send/fromtm",model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") + "01");
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/totm") == "2359") {
- model.setValue("/root/send/totm",model.getValue("/root/init/sumtmflaglist/flaglist/totm") + "59" );
- } else {
- model.setValue("/root/send/totm",model.getValue("/root/init/sumtmflaglist/flaglist/totm") + "00" );
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/fromddflag") == "0") { // 전일
- model.setValue("/root/send/fromddflag", getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(model.getValue("/root/init/sumtmflaglist/flaglist/fromddflag") == "1") { // 당일
- model.setValue("/root/send/fromddflag", getCurrentDate());
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/toddflag") == "0") { // 전일
- model.setValue("/root/send/toddflag", getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(model.getValue("/root/init/sumtmflaglist/flaglist/toddflag") == "1") { // 당일
- model.setValue("/root/send/toddflag", getCurrentDate());
- }
-
-
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- <submission id="TRADT50200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/prcplist/prcpinfo"/>
- <submission id="TRADT50201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRADT50202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumdtinfo"/>
- <submission id="TXADT50202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond/reqdata" resultref="/root/result"/>
- <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" resultref="/root/init/sumtmflaglist"/>
- <submission id="TRADT50204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/endlist/endinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1225;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약품 재고 마감 관리(Ver 0426)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:769px; ">
- <group id="group2" style="left:0px; top:5px; width:1195px; height:80px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:72px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1009px; y1:7px; x2:1009px; y2:70px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" visibility="visible" style="left:707px; top:45px; width:112px; height:17px; ">재고반영일자 :</caption>
- <input id="srchdd" ref="/root/send/srchfromdd" class="input_search" visibility="visible" inputtype="date" style="left:832px; top:45px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/endtime", "");
-
- submit("TRADT50202");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/endtime", "");
-
- submit("TRADT50202");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_totm" ref="/root/send/totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:945px; top:10px; width:52px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* var totm = model.getValue("/root/send/totm");
- if(totm == "235959") {
- model.setValue("/root/send/fromtm", "000000");
- } else {
- model.setValue("/root/send/fromtm", parseInt(totm) + 1);
- }
- model.refresh();*/
- ]]>
- </script>
- </input>
- <input id="cmb_fromddflag" ref="/root/send/fromddflag" class="input_search" disabled="false" editable="true" inputtype="date" appearance="minimal" style="left:660px; top:10px; width:90px; height:19px; "/>
- <input id="ipt_fromtm" ref="/root/send/fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:755px; top:10px; width:52px; height:19px; "/>
- <input id="cmb_toddflag" ref="/root/send/toddflag" class="input_search" inputtype="date" appearance="minimal" style="left:850px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //var toddflag = model.getValue("/root/send/toddflag");
- //cmb_fromddflag.value = toddflag.toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
- //model.setValue("/root/send/fromddflag" , parseInt(toddflag) - 1);
- //model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption17" class="search_name" style="left:570px; top:10px; width:85px; height:17px; vertical-align:middle; ">마감 구간</caption>
- <caption id="caption18" style="left:822px; top:9px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <button id="btn_endref" class="btn4_letter4" style="left:1100px; top:45px; width:80px; height:22px; ">
- <caption>재고반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var endtime = model.getValue("/root/send/endtime");
- if(endtime!=""){
- model.makeValue("/root/cond/reqdata/srchfromdd",model.getValue("/root/send/srchfromdd"));
- model.makeValue("/root/cond/reqdata/endtime",model.getValue("/root/send/endtime"));
- model.makeValue("/root/cond/reqdata/srchdeptcd",model.getValue("/root/send/srchdeptcd"));
- if(submit("TXADT50202")==true){
- model.setValue("/root/send/endtime","");
- messageBox("재고반영이","I001");
- //btn_sea.dispatch("DOMActivate");
- }else{
-
- model.setValue("/root/send/endtime","");
- messageBox("재고반영이","E009");
- return;
- }
- model.removeNodeset("/root/cond/reqdata");
- }else{
- messageBox("재고반영시간을","C002");
- model.setFocus("cbo_srchsumtm");
- return;
- }
- submit("TRADT50204");
- ]]>
- </script>
- </button>
- <button id="btn_end" class="btn6_letter2" style="left:1020px; top:10px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/maendflag", "Y"); // 20110428_laboru_화면에서 수동 마감할 경우 Y 값
-
- var fromddflag = model.getValue("/root/send/fromddflag");
- var toddflag = model.getValue("/root/send/toddflag");
- if(fromddflag == toddflag) { // 20110428_laboru_날짜 체크
- model.setValue("/root/send/ddflag", "N");
- } else {
- model.setValue("/root/send/ddflag", "Y");
- }
-
- if(submit("TRADT50201")==true){
- messageBox("마감이","I001");
- }else{
- messageBox("마감이","E009");
- return;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sea" class="btn1_letter2" navindex="1" style="left:1020px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
- model.setValue("/root/send/offset", "0");
- submit("TRADT50200");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1087px; y1:42px; x2:1087px; y2:69px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cbo_srchsumtm" ref="/root/send/endtime" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:927px; top:45px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumdtinfo/item">
- <label ref="genrtmnm"/>
- <value ref="genrtm"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:185px; top:10px; width:185px; height:17px; vertical-align:middle; ">조회/마감/재고반영 부서</caption>
- <select1 id="combo_deptcd" ref="/root/send/srchdeptcd" appearance="minimal" style="left:370px; top:10px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>all</value>
- </item>
- <item>
- <label>병동약국</label>
- <value>3240300000</value>
- </item>
- <item>
- <label>외래약국</label>
- <value>3240400000</value>
- </item>
- <item>
- <label>특수조제실</label>
- <value>3240807000</value>
- </item>
- </choices>
- </select1>
- <button id="button3" class="btn3_letter6" navindex="18" visibility="visible" style="left:10px; top:10px; width:104px; height:22px; ">
- <caption>마감시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetEndTime();
- modal("SPADT64100");
- if(getParameter("SPADT64100_param") == "Y") {
- //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
- if(submit("TRADT10206")) {
- if(model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") == "0000") {
- model.setValue("/root/send/fromtm",model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") + "00");
- } else {
- model.setValue("/root/send/fromtm",model.getValue("/root/init/sumtmflaglist/flaglist/fromtm") + "01");
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/totm") == "2359") {
- model.setValue("/root/send/totm",model.getValue("/root/init/sumtmflaglist/flaglist/totm") + "59" );
- } else {
- model.setValue("/root/send/totm",model.getValue("/root/init/sumtmflaglist/flaglist/totm") + "00" );
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/fromddflag") == "0") { // 전일
- model.setValue("/root/send/fromddflag", getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(model.getValue("/root/init/sumtmflaglist/flaglist/fromddflag") == "1") { // 당일
- model.setValue("/root/send/fromddflag", getCurrentDate());
- }
-
- if(model.getValue("/root/init/sumtmflaglist/flaglist/toddflag") == "0") { // 전일
- model.setValue("/root/send/toddflag", getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(model.getValue("/root/init/sumtmflaglist/flaglist/toddflag") == "1") { // 당일
- model.setValue("/root/send/toddflag", getCurrentDate());
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:505px; top:45px; width:86px; height:17px; ">약품코드 :</caption>
- <select1 id="cmb_srchadminflag" ref="/root/send/srchadminflag" class="combo_search" appearance="minimal" style="left:360px; top:45px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_mngtcls">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //submit("TRADB00401");
- //model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:270px; top:45px; width:86px; height:17px; ">관리분류 :</caption>
- <input id="ipt_srchadmincd" ref="/root/send/srchadmincd" class="input_search" style="left:595px; top:45px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate")
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption10" class="tit_2" style="left:575px; top:90px; width:183px; height:13px; ">마감 리스트</caption>
- <datagrid id="datagrid1" nodeset="/root/main/prcplist/prcpinfo" caption="마감일자^마감시간^처방일자^약품구분^I/O^병동^등록번호^약품코드^약품명^불출수량^실시일자^마감부서^발행구분^UNIQNO^재고반영여부" colsep="^" colwidth="60, 60, 60, 60, 32, 45, 75, 100, 180, 60, 57, 100, 50, 80, 82" explorerbar="sortshow" rowheader="seq" rowsep="|" style="left:575px; top:110px; width:619px; height:600px; ">
- <col ref="genrdd" style="text-align:center; "/>
- <col ref="genrtm" style="text-align:center; "/>
- <col ref="prcpdd" visibility="hidden" style="text-align:center; "/>
- <col ref="spcldrug" visibility="hidden" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden" style="text-align:center; "/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="calcscorcd"/>
- <col ref="engnm" style="text-align:left; "/>
- <col ref="execprcptotqty" style="text-align:center; "/>
- <col ref="execdd" visibility="hidden" style="text-align:center; "/>
- <col ref="issdeptcd" style="text-align:center; "/>
- <col ref="prcpgenrflag" visibility="hidden" style="text-align:center; "/>
- <col ref="execprcpuniqno" visibility="hidden" style="text-align:center; "/>
- <col ref="sumflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- if(datagrid1.vscroll.attribute("max") == datagrid1.vscroll.attribute("pos")) {
- // end of scroll
- model.setValue("/root/send/offset", datagrid1.rows-datagrid1.fixedRows); // grid의 header row는 제외
- submit("TRADT50200");
- datagrid1.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grdinx = datagrid1.row;
- model.setValue("/root/temp/drugcd",model.getValue("/root/main/prcplist/prcpinfo[" + grdinx+ "]/calcscorcd"));
- //model.setValue("/root/temp/fromddflag",model.getValue("/root/send/fromddflag"));
- model.setValue("/root/temp/toddflag",model.getValue("/root/send/srchfromdd"));
- //model.setValue("/root/temp/fromtm",model.getValue("/root/send/fromtm"));
- model.setValue("/root/temp/totm",model.getValue("/root/send/endtime"));
- model.setValue("/root/temp/issdeptcd",model.getValue("/root/main/prcplist/prcpinfo[" + grdinx+ "]/issdeptcd"));
- //,"left:100; top:100; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;",false
-
- var wndobj = getOpenWindow("SMADT50201");
- if(wndobj == null){
- open("SMADT50201","0","100","160","SMADT50201","/root/temp","/root/temp");
- } else {
- wndobj.model.removeNodeset(datagrid1.nodeset);
-
- wndobj.model.setValue("/root/temp/drugcd", model.getValue("/root/temp/drugcd"));
- wndobj.model.setValue("/root/send/fromddflag", model.getValue("/root/send/fromddflag"));
- wndobj.model.setValue("/root/send/toddflag", model.getValue("/root/send/toddflag"));
- wndobj.model.setValue("/root/temp/fromtm", model.getValue("/root/temp/fromtm"));
- wndobj.model.setValue("/root/temp/issdeptcd", model.getValue("/root/temp/issdeptcd"));
-
- wndobj.javascript.btn_srch.dispatch("DOMActivate");
- wndobj.model.refresh();
- }
- //modal("SMADT50201",0,100,160,"SMADT50201","/root/temp","/root/temp");
- // open("SMADT50201");
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:103px; x2:550px; y2:103px; "/>
- <line id="line1" class="line_1" style="x1:575px; y1:103px; x2:1195px; y2:103px; "/>
- <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:115px; top:15px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
- submit("TRADT11026");
- var chkast = model.getValue("/root/init/chksum/item/chkast");
-
- // ast에 집계된 내역이 없으면 중지
- if( chkast != "Y") {
- alert("조회된 일자로 발주된 데이터가 없습니다. ");
- model.refresh();
- return;
- }
-
- // 조회일자로 집계된 내역을 출력한다.
- var prcplist = model.getValue("/root/main/prcplist/prcpinfo/inorddeptnm");
- model.setValue("/root/send/prnflag", "E");
-
- if (prcplist == "") {
- model.removeNodeset("/root/main/prcplist/prcpinfo/");
- submit("TRADT11024");
- }
-
-
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
-
- if (file != ""){
- grd.prcp.saveExcel(file);
- }
- model.removeNodeset("/root/send/prcplist/prcpinfo")
- ]]>
- </script>
- </button>
- <caption id="caption5" class="tit_2" style="left:0px; top:90px; width:183px; height:14px; ">마감 이력</caption>
- <datagrid id="grd_drugsum" nodeset="/root/main/endlist/endinfo" autoresize="true" caption="마감일자^마감시간^마감구간^마감구간^마감구간^마감구간^마감부서^마감자^재고반영여부^마감된 처방수" colsep="^" colwidth="100, 80, 68, 54, 68, 54, 100, 60, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:145px; width:550px; height:565px; ">
- <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="genrtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="sumfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sumfromtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="sumtodd" format="yyyy-mm-dd" style="left:339px; top:23px; width:68px; height:23px; text-align:center; "/>
- <col ref="sumtotm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="sumdeptnm" style="text-align:center; "/>
- <col ref="sumnm" style="text-align:center; "/>
- <col ref="endflag" style="text-align:center; "/>
- <col ref="cnt" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
-
- model.setValue("/root/send/srchfromdd",model.getValue("/root/main/endlist/endinfo["+grd_drugsum.row+"]/genrdd"));
- submit("TRADT50202");
-
- model.setValue("/root/send/endtime",model.getValue("/root/main/endlist/endinfo["+grd_drugsum.row+"]/genrtm"));
- btn_sea.dispatch("DOMActivate");
-
- model.refresh();
- //fSelSum();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_drugsum.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="input7" ref="/root/send/srchendtodd" class="input_default" inputtype="date" style="left:458px; top:115px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT50204");
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_name" style="left:262px; top:115px; width:101px; height:17px; ">마감일자 :</caption>
- <caption id="caption7" style="left:445px; top:116px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <input id="input6" ref="/root/send/srchendfromdd" class="input_default" inputtype="date" style="left:355px; top:115px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT50204");
- ]]>
- </script>
- </input>
- </group>
- </xhtml:body>
- </xhtml:html>
|