123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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="">
- <main>
- <getrsltregst>
- <no/>
- <bcno/>
- <pid/>
- <patnm/>
- <sexage/>
- <spcnm/>
- <orddeptnm/>
- <wardroom/>
- <tclsnm/>
- <inptrslt/>
- <testdt/>
- <testnm/>
- <testcmt/>
- <tclskind/>
- <baccd/>
- <spcacptdt/>
- <baccdnm/>
- <examnm/>
- <disease/>
- <csltinstcd/>
- <csltinstcdnm/>
- <rrgstno1/>
- <currentdt/>
- <orddridnm/>
- <csltinstexecd/>
- </getrsltregst>
- <testgrupdetl>
- <chk/>
- <tclsnm/>
- <tclscd/>
- </testgrupdetl>
- </main>
- <send>
- <codeflag/>
- <tclsnmlist/>
- <usdd/>
- <ustm/>
- <uedd/>
- <uetm/>
- <deptL/>
- <deptM/>
- <tclscdlist/>
- <userdeptflagcd/>
- <deptgbn/>
- <seamthdcd/>
- <page/>
- <itemlimit/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <usdd/>
- <ustm/>
- <uedd/>
- <uetm/>
- <tclscdlist>
- <tclscdlist/>
- <tclsnmlist/>
- <tclscdlist2/>
- <testgrup/>
- </tclscdlist>
- <testgrupseqno/>
- <deptgbn>1</deptgbn>
- <deptL>00</deptL>
- <deptM>00</deptM>
- </ref>
- <hosp/>
- </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="TRASB04620" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
- <submission id="TRASB04610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/getrsltregst"/>
- <submission id="TRASB04600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //검사분류 초기화
-
-
- //초기화
- function fSetInit(ref) {
- if(ref != 2) {
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/ref/usdd", toDay);
- model.setValue("/root/hidden/ref/ustm", "0000");
- model.setValue("/root/hidden/ref/uedd", toDay);
- model.setValue("/root/hidden/ref/uetm", "2359");
- //model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
- //model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
- //model.setValue("/root/hidden/ref/deptgbn", "1");
- //model.setValue("/root/hidden/ref/deptL", "00");
- //model.setValue("/root/hidden/ref/deptM", "00");
-
- model.removeNodeset("/root/main/getrsltregst");
- }
- model.removeNodeset("/root/init");
-
- //model.setValue("/root/send/codeflag", "0104|0102|0103|");
- //submit("TRASB04620");
-
- model.refresh();
- }
-
- //조회
- function fGetRsltRegst() {
-
- model.removeNodeset("/root/main/getrsltregst");
-
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd"));
- //model.setValue("/root/send/ustm", model.getValue("/root/hidden/ref/ustm"));
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd"));
- //model.setValue("/root/send/uetm", model.getValue("/root/hidden/ref/uetm"));
- //model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
- //model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
- //model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn"));
-
- //model.setValue("/root/send/userdeptflagcd", model.getValue("root/init/LB0000/nm"));
- //model.setValue("/root/send/seamthdcd", "0");
- //model.setValue("/root/send/page", 1);
- //model.setValue("/root/send/itemlimit", "10000");
-
- /*
- if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == "") {
- model.setValue("/root/send/tclscdlist", "");
- } else {
- model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
- }
- */
- submit("TRASB04610");
-
- var lastpage = model.getValue("/root/main/lastPage/lastPage");
-
- for(page = 2 ; page <= lastpage ; page++){
- model.setValue("/root/send/page", page);
- submit("TRASB04610");
- }
-
-
-
-
- /*
- var count = 0;
-
- var bcno = model.getValue("/root/main/getrsltregst[1]/bcno");
-
- for(i = 1; i < grd_rsltregst.rows; i++) {
- if(i == 1 || model.getValue("/root/main/getrsltregst["+ i +"]/bcno") != bcno) {
- ++count;
- model.setValue("/root/main/getrsltregst["+ i +"]/no", count);
- bcno = model.getValue("/root/main/getrsltregst["+ i +"]/bcno");
- } else if(model.getValue("/root/main/getrsltregst["+ i +"]/bcno") == bcno) {
- model.setValue("/root/main/getrsltregst["+ i +"]/bcno", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/pid", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/patnm", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/sexage", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/spcnm", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/orddeptnm", "");
- model.setValue("/root/main/getrsltregst["+ i +"]/wardroom", "");
- }
- }
- */
-
- }
-
- //검사그룹조회
- function fSelectTestGrup(){
- model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
- submit("TRASB04600" ,false);
-
-
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl");
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
-
- }
- model.refresh();
- }
- }
-
- //엑셀저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
- }
-
-
- function fComboAalue(){
-
- if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
- cmb_dept.visible = true;
- combo2.visible = false;
- }
- else{
- cmb_dept.visible = false;
- combo2.visible = true;
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:59px; width:145px; height:14px; ">병원체검사결과 신고</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:40px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1064px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsltRegst();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1054px; y1:8px; x2:1054px; y2:34px; "/>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">결과일시 :</caption>
- <caption id="caption8" style="left:196px; top:9px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:500px; top:16px; width:94px; height:17px; ">검사항목 :</caption>
- <button id="button6" class="icon_search" visibility="hidden" style="left:995px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- ]]>
- </script>
- </button>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" visibility="hidden" style="left:730px; top:15px; width:265px; height:19px; "/>
- <input id="ipt_usdd" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:106px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_ustm" ref="/root/hidden/ref/ustm" class="input_search" visibility="hidden" format="hh:nn" style="left:313px; top:8px; width:35px; height:19px; "/>
- <input id="ipt_uedd" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:211px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_uetm" ref="/root/hidden/ref/uetm" class="input_search" visibility="hidden" format="hh:nn" style="left:355px; top:8px; width:35px; height:19px; "/>
- <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" visibility="hidden" appearance="minimal" style="left:591px; top:15px; width:136px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:400px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:490px; top:8px; width:85px; height:19px; font-weight:normal; ">
- <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[
- fComboAalue();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:585px; top:8px; width:125px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:585px; top:8px; width:125px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_excel" class="btn1_letter2" navindex="8" style="left:1130px; top:10px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "병원체검사결과 신고_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_rsltregst.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_rsltregst" nodeset="/root/main/getrsltregst" caption="의뢰기관^의뢰기관^의뢰기관^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^검체정보^병원체^발생정보^발생정보^발생정보^검사기관^검사기관^접수일시^시행부서^프린트명^tclskind|의뢰기관코드^의뢰기관명^담당자^성명^성별^생년월일^등록번호^과명/병동^검체종류^검체종류(기타)^검사방법^검사방법(기타)^결과^감염질환^검사항목명^병원체코드^의뢰일^진단일^신고일^기관번호^진단의^접수일시^시행부서^프린트명^tclskind" colsep="^" colwidth="85, 100, 70, 69, 44, 70, 70, 120, 60, 151, 80, 100, 150, 150, 220, 70, 80, 80, 80, 80, 80, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:80px; width:1194px; height:650px; ">
- <col ref="csltinstcd" style="text-align:center; "/>
- <col ref="csltinstcdnm" style="text-align:center; "/>
- <col ref="orddridnm" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="rrgstno1" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="wardroom"/>
- <col/>
- <col ref="spcnm"/>
- <col style="text-align:center; "/>
- <col ref="examnm"/>
- <col ref="inptrslt"/>
- <col ref="disease"/>
- <col ref="tclsnm"/>
- <col ref="baccdnm" style="text-align:center; "/>
- <col ref="spcacptdt" style="text-align:center; "/>
- <col ref="testdt" style="text-align:center; "/>
- <col ref="currentdt" style="text-align:center; "/>
- <col ref="csltinstexecd" style="text-align:center; "/>
- <col ref="testnm" style="text-align:center; "/>
- <col ref="spcacptdt"/>
- <col ref="execdeptcd"/>
- <col ref="tclspnm"/>
- <col ref="tclskind"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsltregst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" 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="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">병원체검사결과 신고</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|