123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <samplebank>
- <item>
- <bcno/>
- <pid/>
- <patnm/>
- <sex/>
- <age/>
- <orddeptnm/>
- <orddrnm/>
- <prcpnm/>
- <bcolldt/>
- <spcnm/>
- <spcstat/>
- <prcpremfact/>
- </item>
- </samplebank>
- <popupendflag/>
- </main>
- <send>
- <reqfromdd/>
- <reqtodd/>
- <code/>
- <select>1</select>
- </send>
- <hidden>
- <statshopefromdd/>
- <statshopetodd/>
- <ioflag>0</ioflag>
- <sectcd/>
- <workgbn>A</workgbn>
- <cntgbn>T</cntgbn>
- <itemgbn/>
- <ddstandard>1</ddstandard>
- </hidden>
- <init>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var reqfromdd = getCurrentDate().substr(0,8).toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD");
- ipt_reqfromdd.value = reqfromdd;
- var reqtodd = getCurrentDate().substr(0,8).toDate().getDateFormat("YYYYMMDD");
- ipt_reqtodd.value = reqtodd;
- // 이재오 추가 2012.11.26
- fBaseInfoRef("0111|"); //0111 : 계코드
-
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/sectcd", "00"); //부서를 전체로 놓는다.
- model.setValue("/root/hidden/ioflag", "0"); //입원/외래구분을 전체로 놓는다.
- model.setValue("/root/hidden/statshopefromdd", toDay); //통계희망시작일 = 현재일자
- model.setValue("/root/hidden/statshopetodd", toDay); //통계희망종료일 = 현재일자
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRLLJ00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/samplebank"/>
- <submission id="TXLLR91101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLS01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ddstats"/>
- </model>
- <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"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">일일 통계 작업</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:20px; width:675px; height:230px; ">
- <line id="line1" class="line_1" style="x1:380px; y1:210px; x2:440px; y2:210px; "/>
- <group id="grp_sea" style="left:5px; top:35px; width:660px; height:185px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:450px; height:170px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">조회 구간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:615px; y1:45px; x2:615px; y2:67px; "/>
- <input id="ipt_reqfromdd" ref="/root/send/reqfromdd" class="input_default" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_default" inputtype="date" style="left:249px; top:8px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:280px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRLLJ00501");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/select" appearance="minimal" style="left:129px; top:139px; 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>
- <item>
- <label>진료과</label>
- <value>4</value>
- </item>
- <item>
- <label>진료의</label>
- <value>5</value>
- </item>
- <item>
- <label>채혈일시</label>
- <value>6</value>
- </item>
- <item>
- <label>검체명</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:30px; top:140px; width:112px; height:17px; ">조회 구분 :</caption>
- <input id="input1" ref="/root/send/code" style="left:231px; top:139px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:65px; width:95px; height:17px; ">부 서 :</caption>
- <select1 id="combo3" ref="/root/hidden/sectcd" appearance="minimal" style="left:125px; top:64px; width:122px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGridInit();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:280px; top:140px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "샘플뱅킹리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_smpbaking.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_smpbaking" nodeset="/root/main/samplebank/item" caption="바코드번호^등록번호^환자명^성별^나이^진료과^진료의^채혈일시^처방명^검체명^검체상태^의뢰의사Remark" colsep="^" colwidth="130, 90, 100, 50, 62, 100, 90, 130, 226, 100, 100, 300" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:475px; top:50px; width:175px; height:155px; ">
- <col ref="bcno" type="output"/>
- <col ref="pid" type="output"/>
- <col ref="patnm" type="output"/>
- <col ref="sex" type="output"/>
- <col ref="age" type="output"/>
- <col ref="orddeptnm" type="output"/>
- <col ref="orddrnm" type="output"/>
- <col ref="bcolldt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prcpnm" type="output"/>
- <col ref="spcnm" type="output"/>
- <col ref="spcstat" type="output"/>
- <col ref="prcpremfact" type="output"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_smpbaking.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button23" class="btn3_letter5" style="left:265px; top:100px; width:56px; height:22px; ">
- <caption>batch 작업</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fromdd = parseInt(model.getValue("/root/hidden/statshopefromdd").substr(0,4));
- var todd = parseInt(model.getValue("/root/hidden/statshopetodd").substr(0,4));
- if(todd - fromdd >9 ){
- messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요", "I");
- return;
- }
-
- if(fromdd > todd){
- messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ", "I");
- return;
- }
- // model.makeValue("/root/send/workgbn", model.getValue("/root/hidden/workgbn")); //근무구분 Ο주간 Ο야간 ΟAll
- // model.makeValue("/root/send/cntgbn", model.getValue("/root/hidden/cntgbn")); //건수구분 Ο검사T Ο환자P
- // model.makeValue("/root/send/itemgbn", model.getValue("/root/hidden/itemgbn")); //검사항목제외
- //model.makeValue("/root/send/ioflag", model.getValue("/root/hidden/ioflag")); //입원/외래구분 I, O, E, S
- model.makeValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd")); //계코드 부서콤보
- model.makeValue("/root/send/statshopefromdd", model.getValue("/root/hidden/statshopefromdd")); //통계희망시작일
- model.makeValue("/root/send/statshopetodd", model.getValue("/root/hidden/statshopetodd")); //통계희망종료일
- model.makeValue("/root/send/ddstandard", model.getValue("/root/hidden/ddstandard")); //통계기준일 1= 접수일 2=보고일
-
-
- // model.makeValue("/root/send/refflag", "dd"); //일월연구분
- submit("TRLLS01101");
- submit("TXLLR91101");
-
- // setRowStyle("grd_dd", "2", "소계", "tclsscrnnm", "equal"); //소계 색변경
- // }
- // setRowStyle("grd_dd", "11", "부서계", "tclsscrnnm", "equal"); //부서별합계 색변경
- // setRowStyle("grd_dd", "11", "부서합계", "tclsscrnnm", "equal"); //부서별합계 색변경
- // setRowStyle("grd_dd", "3", "합계", "sectnm", "equal"); //총합계 색변경 에메랄드색
- }
-
- // model.resetInstanceNode("/root/send");
- // model.resetInstanceNode("/root/main/totalcnts");
-
-
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/hidden/ddstandard" appearance="minimal" style="left:125px; top:69px; width:92px; height:19px; ">
- <choices>
- <item>
- <label>보고일</label>
- <value>1</value>
- </item>
- <item>
- <label>접수일</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGridInit();
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:20px; top:70px; width:99px; height:17px; ">통계기준일 :</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|