123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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="">
- <init>
- <deptlist>
- <deptinfo>
- <deptcd/>
- <deptnm/>
- </deptinfo>
- </deptlist>
- </init>
- <main>
- <worklist>
- <workinfo>
- <dutplcecd/>
- <dutplcenm/>
- <dcnt/>
- <rsrvrid/>
- <rsrvrnm/>
- <rcnt/>
- <pid/>
- <prcpdd/>
- <suppdeptcd/>
- <suppdeptnm/>
- <excuroomcd/>
- <excuroomnm/>
- <calcscorcd/>
- <calcscornm/>
- <rsrvdt/>
- <logno/>
- <lastupdtdt/>
- </workinfo>
- </worklist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <dutplcecd/>
- <bscdflag>Y</bscdflag>
- </send>
- </root>
- </instance>
- <submission id="TRPEA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptlist/deptinfo"/>
- <submission id="TRPEA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/worklist/workinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- submit("TRPEA00107");
- addComboItem("cmb_deptcd", "전체", "T");
- cmb_deptcd.select(0);
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; font-family:돋움; vertical-align:middle; ">예약자별 통합 검사 예약 현황</caption>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption35" class="search_name" style="left:5px; top:33px; width:76px; height:17px; ">예약일 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:31px; width:90px; height:19px; "/>
- <caption id="caption2" style="left:175px; top:33px; width:15px; height:20px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:190px; top:31px; width:90px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:320px; top:33px; width:66px; height:17px; ">부서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/dutplcecd" class="combo_search" navindex="2" appearance="minimal" style="left:386px; top:31px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/deptinfo">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line13" style="x1:1120px; y1:30px; x2:1120px; y2:55px; border-color:#FFD799; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPEA00111");
-
- var cnt = instance1.selectNodes("/root/main/worklist/workinfo").length;
-
- var prevId = "";
- var color = "#f0f0f0";
- for (var i = 1; i <= cnt; i++) {
- var currId = model.getValue("/root/main/worklist/workinfo[" + i + "]/rsrvrid");
- if (currId != prevId) {
- prevId = currId;
- color = color == "#f0f0f0" ? "#ffffff" : "#f0f0f0";
- }
-
- if (color == "#f0f0f0") {
- grd_work.rowStyle(i, "all", "background-color") = color;
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:0px; top:70px; width:85px; height:14px; font-weight:bold; ">조회 내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
- <datagrid id="grd_work" nodeset="/root/main/worklist/workinfo" backcoloralternate="transparent" caption="부서^건수^예약자^건수^예약일시^등록번호^처방일^수행부서^검사실^검사코드^검사명^검사일시" colsep="^" colwidth="120, 35, 50, 35, 120, 60, 80, 120, 160, 100, 190, 110" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; text-align:center; ">
- <col ref="dutplcenm" style="text-align:center; "/>
- <col ref="dcnt"/>
- <col ref="rsrvrnm"/>
- <col ref="rcnt"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="pid"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="suppdeptnm" style="text-align:center; "/>
- <col ref="excuroomnm"/>
- <col ref="calcscorcd"/>
- <col ref="calcscornm" style="text-align:left; "/>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1131px; top:65px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var period = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd");
- var filename = window.fileDialog("save", ",", false, "예약자별 통합 검사 예약 현황_" + period, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_work.saveExcel(filename, "sheetname:예약현황;colhiddenextend:true;rowhiddenextend:false;");
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|