123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLOP00100_수탁검사항목조회.xrw
- * 설 명 : 수탁검사항목조회
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2008.10.28
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <sutaktestlist>
- <reqinstnm/>
- <reqdd/>
- <pid/>
- <bcno/>
- <reqpid/>
- <patnm/>
- <sexage/>
- <tclscdnm/>
- <spcnm/>
- <reptrslt/>
- <rsltunit/>
- <reflh/>
- <reptgbn/>
- <spcacptdt/>
- <spcacptid/>
- <lastreptdt/>
- <lastreptid/>
- <instcd/>
- <tootfact/>
- <urinextrvol/>
- <reqinstcd/>
- <tclscd/>
- <spccd/>
- </sutaktestlist>
- </main>
- <send>
- <usdd/>
- <uedd/>
- <testitem/>
- <userdeptflag/>
- <sutakinst/>
- <rsltgbn/>
- <rslt/>
- <codeflag/>
- <deptgbn/>
- <rsltstat/>
- <prcpstat/>
- </send>
- <init>
- <reqinstcd/>
- <coophosp>
- <coophosplist>
- <instcd/>
- <coophospcd/>
- <coophospnm/>
- <uncocd/>
- </coophosplist>
- </coophosp>
- </init>
- <hidden>
- <ref>
- <usdd/>
- <uedd/>
- <tclscdlist>
- <tclsnmlist/>
- <tclscdlist/>
- <tclscdlist2/>
- <testgrup/>
- </tclscdlist>
- <sutakinst>00</sutakinst>
- <rsltgbn/>
- <rslt/>
- <usertestgrup/>
- <rsltstat>0</rsltstat>
- <prcpstat>1</prcpstat>
- </ref>
- </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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0103"/>
- <submission id="TRLLP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRLPJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/coophosp/coophosplist"/>
- <submission id="TRLOP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sutaktestlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
- }
-
- function fSetInit(ref) {
- if(ref != 2) {
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/ref/usdd", toDay);
- model.setValue("/root/hidden/ref/uedd", toDay);
- model.setValue("/root/hidden/ref/rsltgbn", "");
- model.setValue("/root/hidden/ref/rslt", "");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
-
- }
- model.removeNodeset("/root/init");
-
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/codeflag", "0000|0103|0104|0102|"); //사용자별 검사그룹
- submit("TRLZZ00101");
-
- model.makeValue("/root/send/deptflagcd", "0");
- model.makeNode("root/init/coophosp/coophosplist");
- submit("TRLPJ02302", false); // 수탁기관
-
- model.refresh();
-
- }
-
- // 수탁검사항목조회
- function fGetSutakTestLIst(){
- if(model.getValue("/root/hidden/ref/usdd")=="" || model.getValue("/root/hidden/ref/uedd")=="" ){
- alert("접수일자 필수");
- return;
- }
-
- model.setValue("/root/send/userdeptflag", model.getValue("/root/init/LB0000/nm")); // 진검 핵의학 구분 L, N
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd")); // 시작일자
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd")); // 종료일자
- model.setValue("/root/send/testitem", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist")); // 검사코드
- model.setValue("/root/send/sutakinst", model.getValue("/root/hidden/ref/sutakinst")); // 수탁기관
- model.setValue("/root/send/rsltstat", model.getValue("/root/hidden/ref/rsltstat"));
- model.setValue("/root/send/prcpstat", model.getValue("/root/hidden/ref/prcpstat"));
- submit("TRLOP00101");
-
- }
-
-
- /*
- function fGettroblist() {
- if(model.getValue("/root/hidden/ref/judg")!=0||model.getValue("/root/hidden/ref/rsltgbn")!=0||
- model.getValue("/root/hidden/ref/panic")!=''||model.getValue("/root/hidden/ref/delta")!=''||
- model.getValue("/root/hidden/ref/critical")!=''){
- model.refresh();
- model.setValue("/root/send/usdd" ,model.getValue("/root/hidden/ref/usdd"));
- model.setValue("/root/send/uedd" ,model.getValue("/root/hidden/ref/uedd"));
- model.setValue("/root/send/judgmark" ,model.getValue("/root/hidden/ref/judg"));
- model.setValue("/root/send/rsltgbn" ,model.getValue("/root/hidden/ref/rsltgbn"));
- model.setValue("/root/send/rslt" ,model.getValue("/root/hidden/ref/rslt"));
- model.setValue("/root/send/panicmark" ,model.getValue("/root/hidden/ref/panic"));
- model.setValue("/root/send/deltamark" ,model.getValue("/root/hidden/ref/delta"));
- model.setValue("/root/send/criticalmark" ,model.getValue("/root/hidden/ref/critical"));
- model.setValue("/root/send/testitem" ,model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
- model.setValue("/root/send/deptgbn" ,model.getValue("/root/hidden/ref/deptgbn"));
- model.setValue("/root/send/deptL" ,model.getValue("/root/hidden/ref/deptL"));
- model.setValue("/root/send/deptM" ,model.getValue("/root/hidden/ref/deptM"));
- if(model.getValue("/root/send/panicmark")!='P')
- model.setValue("/root/send/panicmark" , '1');
- if(model.getValue("/root/send/deltamark")!='D')
- model.setValue("/root/send/deltamark", '1');
- if(model.getValue("/root/send/criticalmark")!='C')
- model.setValue("/root/send/criticalmark", '1');
- submit("TRLLP00501");
-
- }
- else{
- alert("판정, 결과, PDC구분 중 한개는 반드시 선택해야 합니다.");
- }
- }
- */
-
- /*
- function fonclickgrid() {
- var row = rslt.row;
- model.setValue("/root/hidden/reflh", model.getValue("/root/main/rslt["+row+"]/refval"));
- model.setValue("/root/hidden/panicval", model.getValue("/root/main/rslt["+row+"]/panicval"));
- model.setValue("/root/hidden/deltagbn", model.getValue("/root/main/rslt["+row+"]/deltgbn"));
- model.setValue("/root/hidden/deltaval", model.getValue("/root/main/rslt["+row+"]/deltaval"));
- model.refresh();
- }
- */
-
- /*
- function frsltgbn() {
- if(model.getValue("/root/hidden/ref/rsltgbn") != 0 ){
- input2.visible = true;
- }
- else{
- input2.visible = false;
- }
- }
- */
-
- /*
- function fComboAalue(){
-
- if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
- cmb_dept.visible = true;
- combo4.visible = false;
- }
- else{
- cmb_dept.visible = false;
- combo4.visible = true;
-
- }
- }
-
- */
-
-
- //검사그룹조회
- function fSelectTestGrup(){
- model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
- submit("TRLLF90401" ,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);
- }
-
- }
-
- ]]>
- </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:95px; x2:1194px; y2:95px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:144px; height:13px; ">수탁검사항목리스트</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <button id="button3" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fGettroblist();
- fGetSutakTestLIst();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:51px; "/>
- <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>
- <input id="ipt_usdt" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:106px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_uedt" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:211px; top:8px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:33px; width:94px; height:17px; ">검사항목 :</caption>
- <button id="button6" class="icon_search" style="left:715px; top:33px; 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" style="left:195px; top:32px; width:510px; height:19px; "/>
- <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_s_essential" appearance="minimal" style="left:106px; top:32px; width:85px; 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="caption12" class="search_name" style="left:339px; top:8px; width:92px; height:17px; ">수탁기관 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/sutakinst" navindex="3" appearance="minimal" itemcount="20" style="left:435px; top:7px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/coophosp/coophosplist">
- <label ref="coophospnm"/>
- <value ref="coophospcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:864px; top:8px; width:92px; height:17px; ">결과상태 :</caption>
- <select1 id="cmb_rsltstat" ref="/root/hidden/ref/rsltstat" class="combo_default" appearance="minimal" style="left:960px; top:8px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <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>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/hidden/ref/prcpstat" overflow="visible" appearance="full" style="left:755px; top:9px; width:90px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미채혈포함</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <datagrid id="rslt" nodeset="/root/main/sutaktestlist" caption="수탁기관^요청일자^nU 등록번호^바코드번호^요청등록번호^환자명^성별/나이^검사항목명^검체명^결과값^단위^결과상태^접수일시^접수자^보고일시^보고자" colsep="^" colwidth="110, 70, 72, 70, 76, 64, 58, 110, 74, 70, 46, 74, 100, 60, 100, 70" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:100px; width:1194px; height:640px; ">
- <col ref="reqinstnm"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="bcno"/>
- <col ref="reqpid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="tclscdnm"/>
- <col ref="spcnm"/>
- <col ref="reptrslt"/>
- <col ref="rsltunit"/>
- <col ref="reptgbn"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="spcacptid"/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastreptid" style="left:1256px; top:23px; width:100px; height:23px; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- rslt.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(rslt);
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" 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:800px; height:14px; ">수탁검사항목조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|