123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBS00100_성분제제별입출고통계.xrw
- * 설 명 : 성분제제별입출고통계
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.08.09
- * 수정이력 : 2010.03.16 박정은 성분제제 라디오버튼 PRC, L/F PRC, P/F PRC 분리
- * 기 타 :
- -->
- <?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>
- <winlist>
- <dt/>
- <a/>
- <b/>
- <o/>
- <ab/>
- <sum/>
- </winlist>
- <delivelist>
- <dt/>
- <a/>
- <b/>
- <o/>
- <ab/>
- <sum/>
- </delivelist>
- </main>
- <send>
- <usdd/>
- <uedd/>
- <refflag/>
- <blodvol/>
- <comprod/>
- </send>
- <init>
- </init>
- <hidden>
- <usdd/>
- <uedd/>
- <ustm>0800</ustm>
- <uetm>0759</uetm>
- <refflag/>
- <blodvol/>
- <comprod>
- </comprod>
- <report>
- <list/>
- </report>
- <selectcd/>
- </hidden>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/comprod"/>
- <submission id="TRLBS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit() {
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/usdd", toDay);
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(+1);
- model.setValue("/root/hidden/uedd", mDate.getDateFormat("YYYYMMDD"));
-
- model.setValue("/root/hidden/refflag", "1");
- model.setValue("/root/hidden/blodvol", "0");
-
- model.removeNodeset("/root/main/winlist");
- model.removeNodeset("/root/main/delivelist");
-
- fGetComProd();
-
- model.refresh();
- }
-
- //성분제제조회
- function fGetComProd() {
- model.removeNodeset("/root/hidden/comprod");
-
- model.setValue("/root/send/blodvol", model.getValue("/root/hidden/blodvol"));
-
- if(submit("TRLBS00101")) {
- // if(model.getValue("/root/hidden/blodvol") == "0") {
- // rdo_comprod.attribute("overflow")= "visible";
- // rdo_comprod.attribute("cols")= 20;
- // }else {
- // rdo_comprod.attribute("cols")= 20;
- // }
- rdo_comprod.refresh();
- }
- }
-
- //입출고 조회
- function fGetIO() {
- var usdd = ipt_usdd.currentText;
- var uedd = ipt_uedd.currentText;
-
- usdd = usdd.substr(0, 4);
- uedd = uedd.substr(0, 4);
-
- if(model.getValue("/root/hidden/comprod")==""){
- //if(model.getValue("/root/hidden/selectcd")==""){
- messageBox("성분제제를 " , "C002", ""); //선택하십시오!
- return;
- }
-
- if(model.getValue("/root/hidden/refflag") == "2") {
- model.setValue("/root/send/usdd", usdd);
- model.setValue("/root/send/uedd", uedd);
- } else {
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/usdd"));
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/uedd"));
- }
-
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/refflag"));
- model.setValue("/root/send/comprod", model.getValue("/root/hidden/comprod")); //성분제제
- model.setValue("/root/send/blodvol", model.getValue("/root/hidden/blodvol")); //혈액용량
- model.makeValue("/root/send/ustm", model.getValue("/root/hidden/ustm"));
- model.makeValue("/root/send/uetm", model.getValue("/root/hidden/uetm"));
- //model.setValue("/root/send/comprod", model.getValue("/root/hidden/comprod[key="+rdo_comprod.value+"]/cd")); //성분제제
- // model.makeValue("/root/send/blodcomcd", model.getValue("/root/hidden/comprod[key="+rdo_comprod.value+"]/bcd"));
- // model.makeValue("/root/send/rkey", model.getValue("/root/hidden/selectcd"));
- submit("TRLBS00102");
-
- }
-
- //엑셀저장
- function fSaveExcel(pGridId) {
- var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
-
- pGridId.saveExcel(filename);
-
- }
- }
-
- // 출력
- function fExePrint(){
- model.removeNodeset("/root/hidden/report/list/winlist");
- model.removeNodeset("/root/hidden/report/list/delivelist");
-
- for(i=1; i<grd_win.rows; i++){
- copyNodeListType("/root/hidden/report/list", "/root/main/winlist["+i+"]", "arter");
- }
-
- for(j=1; j<grd_delive.rows; j++){
- copyNodeListType("/root/hidden/report/list", "/root/main/delivelist["+j+"]", "after");
- }
-
-
- model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/usdd"));
- model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/uedd"));
- model.makeValue("/root/hidden/report/blodcom", model.getValue("/root/hidden/comprod[cd="+rdo_comprod.value+"]/nm"));
-
- exeReportPreview("RPLBS00100", "XMLSTR", "/root/hidden/report");
-
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:80px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetIO();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:53px; "/>
- <caption id="caption5" class="search_name" style="left:450px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_refflag" ref="/root/hidden/refflag" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:540px; top:9px; width:115px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>월별</label>
- <value>1</value>
- </item>
- <item>
- <label>년별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:680px; top:9px; width:99px; height:17px; ">혈액용량 :</caption>
- <select1 id="rdo_blodvol" ref="/root/hidden/blodvol" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:773px; top:9px; width:210px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>320 ml</label>
- <value>1</value>
- </item>
- <item>
- <label>400 ml</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetComProd();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">기준일자 :</caption>
- <input id="ipt_usdd" ref="/root/hidden/usdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; text-align:center; "/>
- <caption id="caption8" class="search_no_b" style="left:238px; top:9px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <input id="ipt_uedd" ref="/root/hidden/uedd" class="input_search" inputtype="date" style="left:252px; top:8px; width:90px; height:19px; text-align:center; "/>
- <select1 id="rdo_comprod" ref="/root/hidden/comprod" class="radio_search" appearance="full" cellspacing="20" cols="10" itemheight="20" rows="2" style="left:105px; top:35px; width:995px; height:40px; ">
- <choices>
- <itemset nodeset="/root/hidden/comprod">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetIO();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetIO();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:15px; top:35px; width:87px; height:17px; ">성분제제 :</caption>
- <input id="input1" ref="/root/hidden/ustm" class="input_search" disabled="false" format="hh:nn" style="left:194px; top:8px; width:40px; height:19px; text-align:center; "/>
- <input id="input2" ref="/root/hidden/uetm" class="input_search" disabled="false" format="hh:nn" style="left:341px; top:8px; width:40px; height:19px; text-align:center; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:95px; width:145px; height:13px; ">입고 조회</caption>
- <datagrid id="grd_win" nodeset="/root/main/winlist" caption="일자^A^B^O^AB^계" colsep="^" colwidth="100, 80, 80, 80, 80, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:115px; width:595px; height:624px; text-align:center; ">
- <col ref="dt" format="yyyy-mm-dd"/>
- <col ref="a"/>
- <col ref="b"/>
- <col ref="o"/>
- <col ref="ab"/>
- <col ref="sum"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:595px; y2:110px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:89px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel(grd_delive);
- ]]>
- </script>
- </button>
- <datagrid id="grd_delive" nodeset="/root/main/delivelist" caption="일자^A^B^O^AB^계" colsep="^" colwidth="100, 80, 80, 80, 80, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:600px; top:115px; width:595px; height:624px; text-align:center; ">
- <col ref="dt" format="yyyy-mm-dd"/>
- <col ref="a"/>
- <col ref="b"/>
- <col ref="o"/>
- <col ref="ab"/>
- <col ref="sum"/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:605px; top:95px; width:145px; height:13px; ">출고 조회</caption>
- <line id="line2" class="line_1" style="x1:600px; y1:110px; x2:1195px; y2:110px; "/>
- <caption id="caption9" style="left:92px; top:94px; width:100px; height:15px; ">(입고일 기준)</caption>
- <caption id="caption10" style="left:691px; top:94px; width:112px; height:15px; ">(준비일 기준)</caption>
- <button id="button1" class="btn2_letter2" style="left:550px; top:90px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel(grd_win);
- ]]>
- </script>
- </button>
- <caption id="caption11" style="left:1055px; top:91px; width:85px; height:20px; ">* 실시간 통계</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">성분제제별 입출고 조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|