123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP01700_반환폐기조회.xrw
- * 설 명 : 반환폐기조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 이재민
- * 작 성 일 : 2010.01.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <reqTlist>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <bloodcd/>
- <bloodnm/>
- <deliveid/>
- </reqTlist>
- <reqRlist>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <proddt/>
- <bloodcd/>
- <bloodnm/>
- <usernm/>
- </reqRlist>
- <reqList>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <bloodcd/>
- <bloodnm/>
- <deliveid/>
- </reqList>
- </main>
- <send>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <code/>
- </send>
- <hidden>
- <ref>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <code>1</code>
- </ref>
- <tlist>
- <reqTlist>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <bloodcd/>
- <bloodnm/>
- <deliveid/>
- </reqTlist>
- </tlist>
- <rlist>
- <reqRlist>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <proddt/>
- <bloodcd/>
- <bloodnm/>
- <usernm/>
- </reqRlist>
- </rlist>
- <list>
- <reqList>
- <blodno/>
- <blodcd/>
- <blodcomnm/>
- <blodstat/>
- <day/>
- <time/>
- <bloodcd/>
- <bloodnm/>
- <deliveid/>
- </reqList>
- </list>
- </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" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLLP01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqList"/>
- <submission id="TRLLP01603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqRlist"/>
- <submission id="TRLLP01604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqTlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetInit() {
-
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(1);
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/fromtm", "0000");
- model.setValue("/root/hidden/ref/totm", "2359");
-
- group6.visible = false;
- group7.visible = false;
- group8.visible = true;
-
- model.refresh();
-
- }
-
- function fList() {
-
- if(model.getValue("root/hidden/ref/code") == "1") {
-
- group6.visible = false;
- group7.visible = false;
- group8.visible = true;
-
- model.refresh();
-
- }else if(model.getValue("root/hidden/ref/code") == "2") {
-
- group6.visible = false;
- group7.visible = true;
- group8.visible = false;
-
- model.refresh();
-
- }else if(model.getValue("root/hidden/ref/code") == "3") {
-
- group6.visible = true;
- group7.visible = false;
- group8.visible = false;
-
- model.refresh();
-
- }
- }
-
- function fExeCSV() {
-
- var fileName = "saveGridData.csv";
-
- if (model.getValue("/root/send/code") == "1") {
-
- var fileName = window.fileDialog("save",",", false, "출고_"+getCurrentDate()+".csv","","");
-
- if (fileName != ""){
- datagrid3.saveText(fileName, "\n", ",", "", false, true);
- }
- } else if (model.getValue("/root/send/code") == "2") {
-
- var fileName = window.fileDialog("save",",", false, "재입고_"+getCurrentDate()+".csv","","");
-
- if (fileName != ""){
- datagrid4.saveText(fileName, "\n", ",", "", false, true);
-
- }
- }else if (model.getValue("/root/send/code") == "3") {
-
- var fileName = window.fileDialog("save",",", false, "폐기_"+getCurrentDate()+".csv","","");
-
- if (fileName != ""){
- datagrid5.saveText(fileName, "\n", ",", "", false, true);
-
- }
- }
- }
-
-
- function fExeExcel(pGridId) {
- var dd = getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, "출고BISS파일전송_"+dd, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- pGridId.saveExcel(fileName, dd, true, true , "", "0");
- }
- }
-
-
-
- function fExeEXCEL() {
-
- var dd = getCurrentDate();
-
- if (model.getValue("/root/send/code") == "1") {
-
- var fileName = window.fileDialog("save", ",", false, "출고_"+dd, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- datagrid3.saveExcel(fileName, dd, true, true , "", "0");
- }
-
- } else if (model.getValue("/root/send/code") == "2") {
-
-
- var fileName = window.fileDialog("save", ",", false, "재입고_"+dd, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- datagrid4.saveExcel(fileName, dd, true, true , "", "0");
- }
-
-
- }else if (model.getValue("/root/send/code") == "3") {
-
- var fileName = window.fileDialog("save", ",", false, "폐기_"+dd, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- datagrid5.saveExcel(fileName, dd, true, true , "", "0");
- }
-
- }
- }
-
-
-
-
-
-
- //조회
- function fGetList() {
- if (model.getValue("/root/hidden/ref/code") == "1") {
-
- var startdd = model.getValue("/root/hidden/ref/fromdd")+model.getValue("/root/hidden/ref/fromtm");
- var enddd = model.getValue("/root/hidden/ref/todd")+model.getValue("/root/hidden/ref/totm");
- model.setValue("/root/send/fromdd", startdd);
- model.setValue("root/send/todd", enddd);
- model.setValue("root/send/code", model.getValue("/root/hidden/ref/code"));
-
- submit("TRLLP01604");
-
- model.copyNode("/root/hidden/tlist", "/root/main");
- datagrid3.refresh();
- datagrid3.insertItem(0,"after", false);
-
- model.setValue("/root/hidden/tlist/reqTlist/blodno", "혈액번호");
- model.setValue("/root/hidden/tlist/reqTlist/blodcd", "혈액제제코드");
- model.setValue("/root/hidden/tlist/reqTlist/blodcomnm", "혈액제제명");
- model.setValue("/root/hidden/tlist/reqTlist/blodstat", "출고구분");
- model.setValue("/root/hidden/tlist/reqTlist/day", "출고일자");
- model.setValue("/root/hidden/tlist/reqTlist/time", "출고시간");
- model.setValue("/root/hidden/tlist/reqTlist/bloodcd", "혈액형코드");
- model.setValue("/root/hidden/tlist/reqTlist/bloodnm", "혈액형명");
- model.setValue("/root/hidden/tlist/reqTlist/deliveid", "출고자");
-
- datagrid3.refresh();
-
- }else if (model.getValue("/root/hidden/ref/code") == "2") {
-
- var startdd = model.getValue("/root/hidden/ref/fromdd")+model.getValue("/root/hidden/ref/fromtm");
- var enddd = model.getValue("/root/hidden/ref/todd")+model.getValue("/root/hidden/ref/totm");
- model.setValue("/root/send/fromdd", startdd);
- model.setValue("root/send/todd", enddd);
- model.setValue("root/send/code", model.getValue("/root/hidden/ref/code"));
-
- submit("TRLLP01603");
-
- model.copyNode("/root/hidden/rlist", "/root/main");
- datagrid4.refresh();
- datagrid4.insertItem(0,"after", false);
-
- model.setValue("/root/hidden/rlist/reqRlist/blodno", "혈액번호");
- model.setValue("/root/hidden/rlist/reqRlist/blodcd", "혈액제제코드");
- model.setValue("/root/hidden/rlist/reqRlist/blodcomnm", "혈액제제명");
- model.setValue("/root/hidden/rlist/reqRlist/blodstat", "입고구분");
- model.setValue("/root/hidden/rlist/reqRlist/day", "입고일자");
- model.setValue("/root/hidden/rlist/reqRlist/time", "입고시간");
- model.setValue("/root/hidden/rlist/reqRlist/proddt", "채혈일자");
- model.setValue("/root/hidden/rlist/reqRlist/bloodcd", "혈액형코드");
- model.setValue("/root/hidden/rlist/reqRlist/bloodnm", "혈액형명");
- model.setValue("/root/hidden/rlist/reqRlist/usernm", "입고자");
-
- datagrid4.refresh();
-
- }else if (model.getValue("/root/hidden/ref/code") == "3") {
-
- var startdd = model.getValue("/root/hidden/ref/fromdd")+model.getValue("/root/hidden/ref/fromtm");
- var enddd = model.getValue("/root/hidden/ref/todd")+model.getValue("/root/hidden/ref/totm");
- model.setValue("/root/send/fromdd", startdd);
- model.setValue("root/send/todd", enddd);
- model.setValue("root/send/code", model.getValue("/root/hidden/ref/code"));
-
- submit("TRLLP01602");
-
- model.copyNode("/root/hidden/list", "/root/main");
- datagrid5.refresh();
- datagrid5.insertItem(0,"after", false);
-
- model.setValue("/root/hidden/list/reqList/blodno", "혈액번호");
- model.setValue("/root/hidden/list/reqList/blodcd", "혈액제제코드");
- model.setValue("/root/hidden/list/reqList/blodcomnm", "혈액제제명");
- model.setValue("/root/hidden/list/reqList/blodstat", "출고구분");
- model.setValue("/root/hidden/list/reqList/day", "출고일자");
- model.setValue("/root/hidden/list/reqList/time", "출고시간");
- model.setValue("/root/hidden/list/reqList/bloodcd", "혈액형코드");
- model.setValue("/root/hidden/list/reqList/bloodnm", "혈액형명");
- model.setValue("/root/hidden/list/reqList/deliveid", "출고자");
-
- datagrid5.refresh();
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group8" visibility="hidden" style="left:0px; top:90px; width:1194px; height:680px; ">
- <line id="line3" class="line_1" style="x1:0px; y1:22px; x2:1194px; y2:21px; "/>
- <datagrid id="datagrid2" nodeset="/root/main/reqTlist" caption="혈액번호^혈액제제코드^혈액제제명^출고구분^출고일자^출고시간^혈액형코드^혈액형명^출고자^" colwidth="100, 90, 120, 60, 80, 100, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:1194px; height:625px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="deliveid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:5px; width:131px; height:14px; ">출고 리스트</caption>
- <datagrid id="datagrid3" nodeset="/root/hidden/tlist/reqTlist" visibility="hidden" caption="혈액번호^혈액제제코드^혈액제제명^출고구분^출고일자^출고시간^혈액형코드^혈액형명^출고자^" colwidth="100, 90, 120, 60, 80, 100, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:75px; top:55px; width:1099px; height:590px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="deliveid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid3.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group7" visibility="hidden" style="left:0px; top:90px; width:1194px; height:680px; ">
- <datagrid id="datagrid1" nodeset="/root/main/reqRlist" caption="혈액번호^혈액제제코드^혈액제제명^입고구분^입고일자^입고시간^채혈일자^혈액형코드^혈액형명^입고자^" colwidth="100, 90, 120, 60, 80, 100, 100, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:1194px; height:625px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="proddt"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="usernm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:22px; x2:1194px; y2:21px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:131px; height:14px; ">재입고 리스트</caption>
- <datagrid id="datagrid4" nodeset="/root/hidden/rlist/reqRlist" visibility="hidden" caption="혈액번호^혈액제제코드^혈액제제명^입고구분^입고일자^입고시간^채혈일자^혈액형코드^혈액형명^입고자^" colwidth="100, 90, 120, 60, 80, 100, 100, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:110px; top:200px; width:1039px; height:375px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="proddt"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="usernm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid4.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1175px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:50px; ">
- <group id="group2" ref="/root/main/getList" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1131px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1121px; y1:7px; x2:1121px; y2:29px; "/>
- <caption id="caption3">%</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption7" class="search_name" style="left:445px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/code" appearance="minimal" style="left:534px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>출고</label>
- <value>1</value>
- </item>
- <item>
- <label>재입고</label>
- <value>2</value>
- </item>
- <item>
- <label>폐기</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fList();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:97px; top:8px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/hidden/ref/fromtm" format="hh:nn" style="left:200px; top:8px; width:50px; height:19px; text-align:center; "/>
- <caption id="caption13" class="search_no_b" style="left:260px; top:9px; width:15px; height:17px; ">~</caption>
- <input id="input3" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:284px; top:8px; width:100px; height:19px; "/>
- <input id="input4" ref="/root/hidden/ref/totm" format="hh:nn" style="left:387px; top:8px; width:50px; height:19px; text-align:center; "/>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1125px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button2" class="btn2_letter4" style="left:1057px; top:3px; width:64px; height:19px; ">
- <caption>CSV저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCSV();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter5" style="left:978px; top:3px; width:75px; height:19px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEXCEL();
- ]]>
- </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>
- <group id="group6" visibility="hidden" style="left:0px; top:90px; width:1194px; height:680px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:1194px; y2:21px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:131px; height:13px; ">폐기 리스트</caption>
- <datagrid id="grd_3" nodeset="/root/main/reqList" caption="혈액번호^혈액제제코드^혈액제제명^출고구분^출고일자^출고시간^혈액형코드^혈액형명^출고자^" colwidth="100, 90, 120, 60, 80, 70, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:1194px; height:625px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="deliveid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_3.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid5" nodeset="/root/hidden/list/reqList" visibility="hidden" caption="혈액번호^혈액제제코드^혈액제제명^출고구분^출고일자^출고시간^혈액형코드^혈액형명^출고자^" colwidth="100, 90, 120, 60, 80, 70, 75, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:35px; top:120px; width:919px; height:450px; font-weight:bold; text-align:center; ">
- <col ref="blodno"/>
- <col ref="blodcd"/>
- <col ref="blodcomnm"/>
- <col ref="blodstat"/>
- <col ref="day"/>
- <col ref="time"/>
- <col ref="bloodcd"/>
- <col ref="bloodnm"/>
- <col ref="deliveid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid5.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|