123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBD01400_검사결과판정.xrw
- * 설 명 : 검사결과판정
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.11.23
- * 수정이력 : 2007.11.23 박정은
- * 기 타 :
- -->
- <?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>검사결과판정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dnorlist>
- <dnorno/>
- <dnornm/>
- <chk/>
- <fityn/>
- <retestyn/>
- <tnsrpid/>
- <tnsrnm/>
- <tnsrgstno/>
- <tnssexage/>
- <btype/>
- <dnorgstno/>
- <dnorsexage/>
- <dnorbtype/>
- <dnorseqno/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <acptseqno/>
- <orgorddd/>
- <ordtype/>
- <instcd/>
- <prcpdd/>
- <barcdprntdt/>
- <prcpseq/>
- <orddrid/>
- <prcpgenrflag/>
- <signno/>
- </dnorlist>
- <dnorpam>
- <tnsrpid/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <acptseqno/>
- <orgorddd/>
- <ordtype/>
- <instcd/>
- </dnorpam>
- <dnor>
- <patinfo>
- <tnsrnm/>
- <tnsrgstno/>
- <tnssexage/>
- <tnsbtype/>
- </patinfo>
- <dnorinfo>
- <dnornm/>
- <dnorrgstno/>
- <dnorsexage/>
- <dnorbtype/>
- </dnorinfo>
- <dnortestlist>
- <tclsnm/>
- <inptrslt/>
- <refval/>
- <lastreptdt/>
- <lastreptid/>
- </dnortestlist>
- </dnor>
- </main>
- <send>
- <testgbn/>
- <tnsrpid/>
- <dnorno/>
- <dnorseqno/>
- <refromdd/>
- <retodd/>
- <codeflag/>
- <basecdid/>
- <prcpseq/>
- <refflag/>
- <resncd/>
- <pid/>
- <resnnm/>
- <prcpdd/>
- <barcdprntdt/>
- <prcpseq/>
- <signno/>
- <cretno/>
- </send>
- <init/>
- <hidden>
- <pid/>
- <testgbn>1</testgbn>
- <retestfromdd/>
- <retesttodd/>
- <patinfolist/>
- <signdata>
- <dnorinfo/>
- <dnortestinfo/>
- </signdata>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //초기화
- init();
-
- // 공여자 목록 조회
- //fGetDnorList();
-
-
- ]]>
- </script>
- <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="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <submission id="TXLRR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/signdata"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0118"/>
- <submission id="TRLBD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dnorlist"/>
- <submission id="TRLBD01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dnor/dnortestlist"/>
- <submission id="TXLBD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLBD01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dnorpam"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function init(){
- model.removeNodeset("/root/main/dnorlist");
- grd_dnorlist.rebuild();
- model.removeNodeset("/root/main/dnor/dnortestlist");
- grd_dnorprcplist.rebuild();
-
- //fSetTestgbn();
-
- var today = getCurrentDate();
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30);
- model.makeValue("/root/hidden/retestfromdd", mDate.getDateFormat("YYYYMMDD"));
- model.makeValue("/root/hidden/retesttodd", today);
-
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0118|"); // 0118=
- model.setValue("/root/send/basecdid", "LB002"); // LB002 = 부적합/재검사유목록
- submit("TRLZZ00101");
-
- //if(getPatientInfo("pid") != ""){ // 탑정보 있을때
- //model.setValue("/root/hidden/pid", getPatientInfo("pid"));
- //model.setValue("/root/send/testgbn", "1"); // 1: 미판정 2: 재검 3: 환자별
- // model.setValue("/root/send/tnsrpid", getPatientInfo("pid"));
-
- // fGetDnorList("T"); //Top
- //}else{ //탑정보 없을때
- model.setValue("/root/hidden/pid", "");
- model.setValue("/root/send/tnsrpid", "");
-
- model.setValue("/root/send/testgbn", "1"); // 1: 미판정 2: 재검 3: 환자별
-
- // 공여자 목록 조회
- fGetDnorList("A"); //Auto
- //}
-
- }
-
-
- // 공여자 목록 조회
- function fGetDnorList(ref){
- if(ref =="A"){
-
- delPatientInfos(); //환자정보 전체 삭제
- model.setValue("/root/send/testgbn", model.getValue("/root/hidden/testgbn")); // 1: 미판정 2: 재검 3: 환자별
- model.setValue("/root/send/tnsrpid", model.getValue("/root/hidden/pid"));
- model.setValue("/root/send/refromdd", model.getValue("/root/hidden/retestfromdd"));
- model.setValue("/root/send/retodd", model.getValue("/root/hidden/retesttodd")); // 재검일자 테이블 생기면 쿼리수정해야함
- }else if (ref =="T"){
-
- model.setValue("/root/send/testgbn", "1"); // 1: 미판정 2: 재검(X) 3: 환자별
- model.setValue("/root/hidden/testgbn", "1");
- }
- submit("TRLBD01401");
-
- if(grd_dnorlist.rows > 1){
- grd_dnorlist.row = 1;
- // 환자정보, 공여자정보 보이게
- fGetPatinfo("R");
- // 공여자별 검사내역 조회
- fGetDnorTestList();
- }else{
- model.setValue("/root/main/dnor/patinfo/tnsrnm", "");
- model.setValue("/root/main/dnor/patinfo/tnsrgstno", "");
- model.setValue("/root/main/dnor/patinfo/tnssexage", "");
- model.setValue("/root/main/dnor/patinfo/tnsbtype", "");
-
- model.setValue("/root/main/dnor/dnorinfo/dnornm", "");
- model.setValue("/root/main/dnor/dnorinfo/dnorrgstno", "");
- model.setValue("/root/main/dnor/dnorinfo/dnorsexage", "");
- model.setValue("/root/main/dnor/dnorinfo/dnorbtype", "");
- model.refresh();
-
- messageBox("미판정 공여자가 ", "I004"); // 선택하십시오.
- }
-
- if(grd_dnorlist.rows < 2){
- model.removeNodeset("/root/main/dnor/dnortestlist");
- grd_dnorprcplist.rebuild();
- }
- }
-
- // 환자정보, 공여자정보 보이게
- function fGetPatinfo(ref){
-
- model.setValue("/root/main/dnor/patinfo/tnsrnm", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrnm"));
- model.setValue("/root/main/dnor/patinfo/tnsrgstno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrgstno"));
- model.setValue("/root/main/dnor/patinfo/tnssexage", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnssexage"));
- model.setValue("/root/main/dnor/patinfo/tnsbtype", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/btype"));
-
- model.setValue("/root/main/dnor/dnorinfo/dnornm", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnornm"));
- model.setValue("/root/main/dnor/dnorinfo/dnorrgstno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorgstno"));
- model.setValue("/root/main/dnor/dnorinfo/dnorsexage", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorsexage"));
- model.setValue("/root/main/dnor/dnorinfo/dnorbtype", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorbtype"));
-
- if(getPatientInfo("pid") == ""){ //top 없을때
- //탑정보param 원무정보조회
- fGetPamInfo();
- }else{ //top있을때
- //탑정보와 환자pid 같을때
- if(getPatientInfo("pid") != model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid")){
- //탑정보param 원무정보조회
- fGetPamInfo();
- }else{
- // 재조회필요없음
- }
- }
-
- //if(ref =="S"){
- if(grd_dnorlist.rows > 1){
- if(getPatientInfo("pid") != model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid")){
- fGetPamInfo();
- fSetTopInfo();
- }
- }
- ////fSetTopInfo();
- //}
- model.refresh();
-
-
- model.setValue("/root/main/dnor/patinfo/tnsrnm", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrnm"));
- model.setValue("/root/main/dnor/patinfo/tnsrgstno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrgstno"));
- model.setValue("/root/main/dnor/patinfo/tnssexage", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnssexage"));
- model.setValue("/root/main/dnor/patinfo/tnsbtype", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/btype"));
-
- model.setValue("/root/main/dnor/dnorinfo/dnornm", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnornm"));
- model.setValue("/root/main/dnor/dnorinfo/dnorrgstno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorgstno"));
- model.setValue("/root/main/dnor/dnorinfo/dnorsexage", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorsexage"));
- model.setValue("/root/main/dnor/dnorinfo/dnorbtype", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorbtype"));
-
- //if(ref =="S"){
- // fSetTopInfo();
- //}
- model.refresh();
-
- }
-
- function fGetPamInfo(){
- model.setValue("/root/send/tnsrpid", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid"));
-
- submit("TRLBD01403");
- }
-
- // 탑 정보
- function fSetTopInfo(){
- var ordtype = model.getValue("/root/main/dnorpam/ordtype");
-
- if(ordtype == ""){
- delPatientInfos(); //환자정보 전체 삭제
- return;
- }
-
- var today = getCurrentDate();
- if(model.getValue("/root/main/dnorpam/ordtype")=="I"){
- setParameter("condparam", model.getValue("/root/main/dnorpam/ordtype") + "▦" +
- model.getValue("/root/main/dnorpam/tnsrpid") + "▦" +
- model.getValue("/root/main/dnorpam/orddd") + "▦" +
- model.getValue("/root/main/dnorpam/cretno") + "▦" +
- model.getValue("/root/main/dnorpam/acptseqno") + "▦" + // seqno
- today + "▦" +
- model.getValue("/root/main/dnorpam/instcd"));
-
- }else if(model.getValue("/root/main/dnorpam/ordtype")=="O"){
- setParameter("condparam", model.getValue("/root/main/dnorpam/ordtype") + "▦" +
- model.getValue("/root/main/dnorpam/tnsrpid") + "▦" +
- model.getValue("/root/main/dnorpam/orddd") + "▦" +
- model.getValue("/root/main/dnorpam/cretno") + "▦" +
- model.getValue("/root/main/dnorpam/instcd") + "▦" +
- model.getValue("/root/main/dnorpam/acptseqno") + "▦" +
- model.getValue("/root/main/dnorpam/orgorddd") + "▦");
-
- }
-
- modal("SPMMO08900");
- /*
- var ordtype = model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/ordtype");
-
- if(ordtype == ""){
- delPatientInfos(); //환자정보 전체 삭제
- return;
- }
-
- var today = getCurrentDate();
- if(model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/ordtype")=="I"){
- setParameter("condparam", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/ordtype") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orddd") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/cretno") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/acptseqno") + "▦" + // seqno
- today + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/instcd"));
-
- }else if(model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/ordtype")=="O"){
- setParameter("condparam", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/ordtype") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orddd") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/cretno") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/instcd") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/acptseqno") + "▦" +
- model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orgorddd") + "▦");
-
- }
-
- modal("SPMMO08900");
- */
- }
-
-
- // 공여자별 검사내역 조회
- function fGetDnorTestList(){
- model.setValue("/root/send/tnsrpid", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid"));
- model.setValue("/root/send/dnorno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorno"));
- model.setValue("/root/send/dnorseqno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorseqno"));
- model.setValue("/root/send/prcpdd", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/prcpdd")); //20080904_승현추가
- model.setValue("/root/send/barcdprntdt", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/barcdprntdt")); //20080904_승현추가
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/testgbn"));
- model.setValue("/root/send/prcpseq", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/prcpseq")); //승현추가
-
- submit("TRLBD01402");
-
- grd_dnorprcplist.rebuildStyle();
-
- for(z=1; z<grd_dnorprcplist.rows; z++){
- if( (model.getValue("/root/main/dnor/dnortestlist["+z+"]/testcd")=="LBR001") || (model.getValue("/root/main/dnor/dnortestlist["+z+"]/testcd")=="LHR105") ){
- grd_dnorprcplist.cellStyle("background-color", z,2,z,2) = "#cccccc";
- }
- }
-
- grd_dnorprcplist.refresh();
- }
-
-
- // 검사구분에따라 조회변경
- function fSetTestgbn(){
-
- if(model.getValue("/root/hidden/testgbn")=="1"){ // 미판정
- grp_pat.visible = true;
- grp_retest.visible = false;
- model.setValue("/root/hidden/pid", "");
- }else if(model.getValue("/root/hidden/testgbn")=="2"){ // 재검
- grp_pat.visible = false;
- grp_retest.visible = true;
-
- var today = getCurrentDate();
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30);
- model.makeValue("/root/hidden/retestfromdd", mDate.getDateFormat("YYYYMMDD"));
- model.makeValue("/root/hidden/retesttodd", today);
- ipt_from.refresh();
- ipt_to.refresh();
-
- }else if(model.getValue("/root/hidden/testgbn")=="3"){ // 환자별
- grp_pat.visible = true;
- grp_retest.visible = false;
- //alert("개발중");
- }
-
- if(getPatientInfo("pid") != ""){
- //// fGetDnorList("A");
- }
-
- }
-
- // 환자정보검색 팝업 띄우기
- function fGetPatInfoPopUp(){
- modal("SPLBD91300", "", "", "","", "", "");
- //fGetPatinfo();
- model.makeValue("/root/hidden/testgbn", "3");
- model.setValue("/root/hidden/pid", model.getValue("/root/hidden/patinfolist/tnsrpid"));
- fGetDnorList("A");
- }
-
-
- // 엔터키 이벤트
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
-
- if(event.target=="ipt_pid"){
- model.setValue("/root/hidden/pid", (ipt_pid.currentText).toUpperCase());
- // 공여자목록조회
- fGetDnorList("A");
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
- }
- }
-
- // 저장버튼(결과판정)
- function fExeRsltSave(){
-
- if(grd_dnorlist.row < 1){
- messageBox("공여자를 ", "C002"); // 선택하십시오.
- return;
- }
-
- model.setValue("/root/send/dnorno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorno"));
- model.setValue("/root/send/dnorseqno", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/dnorseqno"));
- model.setValue("/root/send/pid", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid"));
- model.setValue("/root/send/prcpseq", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/prcpseq")); //처방별로 판정하기 위해 추가 _20080910_승현
-
- var fityn = model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/fityn");
- model.setValue("/root/send/refflag", fityn);
- var resncd = "";
- var resnnm = "";
- if(fityn == "1"){
- resncd = "-";
- resnnm = "-";
- }else{
- resncd = model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/retestyn");
- resnnm = model.getValue("/root/init/LB0118[cd='"+ resncd +"']/nm");
- }
- model.setValue("/root/send/resncd", resncd);
- model.setValue("/root/send/resnnm", resnnm);
-
- //************************************************************************************************************************************************
- //인증
- if(Sign.signprocess()){
- var signno = 0;
- var recsaveflag = "N";
- if(model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/signno") != ""){ //이러꼬롬 하면 되나요??
- signno = model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/signno");
- recsaveflag = "Y";
- }else{
- signno = 0;
- }
-
- model.setValue("/root/send/signno" , signno); //서명번호
- model.setValue("/root/send/cretno" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/cretno"));
-
- model.makeNode("/root/send/signdata");
- model.makeValue("/root/send/signdata/pid" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/tnsrpid")); //등록번호
- model.makeValue("/root/send/signdata/orddd" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orddd")); //입원, 응급 : 입원일자, 외래 : 진료일자
- model.makeNode("/root/send/signdata/signno");
- model.setValue("/root/send/signdata/signno" , signno);
-
- model.makeValue("/root/send/signdata/cretno" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/cretno")); //생성번호
- model.makeValue("/root/send/signdata/recdd" , getCurrentDate()); //실제기록이 이루어진 기록일자
- model.makeValue("/root/send/signdata/rectm" , getCurrentTime()); //실제기록이 이루어진 기록시간
- model.makeValue("/root/send/signdata/recsaveflag" , recsaveflag); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag" , "02"); //서명자료구분(01 : 진료, 02 : 간호)
- model.makeValue("/root/send/signdata/signgenrflag", model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/prcpgenrflag")); //입원, 외래구분
- model.makeValue("/root/send/signdata/orddeptcd" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orddeptcd")); //진료과
- model.makeValue("/root/send/signdata/orddrid" , model.getValue("/root/main/dnorlist["+grd_dnorlist.row+"]/orddrid")); //진료의ID
- model.makeValue("/root/send/signdata/formcd" , "-"); //서식코드
-
- model.makeValue("/root/send/signdata/signbfcnts" , Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보), 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
- model.makeValue("/root/send/signdata/signaftcnts" , Sign.signedInfos[2]); //공인인증 처리후 데이터
- }else{
- alert("인증실패");
- return false;
- }
- submit("TXLRR00401");
- // 인증 끝
-
- //인증됐으면 인증번호 ★ ★ ★
- model.setValue("/root/send/signno", model.getValue("/root/signdata/signno"));
-
- //************************************************************************************************************************************************
- if(submit("TXLBD01401")){
- fGetDnorList("A");
- model.removeNodeset("/root/main/dnor/dnortestlist");
- grd_dnorprcplist.rebuild();
- }
- }
-
- //인증저장위해 생성_20080915_승현
- function fMake_SignData(){
- model.removeNodeset("/root/hidden/signdata"); //인증저장 정보 초기화
- model.makeNode("/root/hidden/signdata/dnorlist");
- model.makeNode("/root/hidden/signdata/dnortestlist");
-
- copyNodeListType("/root/hidden/signdata/dnorlist" , "/root/main/dnorlist["+grd_dnorlist.row+"]"); //공여자정보
- copyNodeListType("/root/hidden/signdata/dnortestlist" , "/root/main/dnor/dnortestlist"); //공여자검사결과
-
- Sign.addnode("/root/hidden/signdata"); //인증저장 정보 공여자정보+공여자검사결과
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:223px; height:14px; ">검사결과판정</caption>
- </group>
- <group id="group2" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button2" class="btn1_letter2" navindex="2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 공여자 목록 조회
- fGetDnorList("A");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">검사구분 :</caption>
- <select1 id="rdo_1" ref="/root/hidden/testgbn" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:110px; top:9px; width:220px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>환자별</label>
- <value>3</value>
- </item>
- <item>
- <label>미판정</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTestgbn();
- ]]>
- </script>
- </select1>
- <group id="grp_retest" style="left:370px; top:2px; width:310px; height:30px; background-color:#fffbf2; ">
- <caption id="caption10" class="search_no_b" style="left:195px; top:6px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <caption id="caption11" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">재검일자 :</caption>
- <input id="ipt_from" ref="/root/hidden/retestfromdd" class="input_search" inputtype="date" style="left:105px; top:6px; width:85px; height:19px; "/>
- <input id="ipt_to" ref="/root/hidden/retesttodd" class="input_search" inputtype="date" style="left:210px; top:6px; width:85px; height:19px; "/>
- </group>
- <group id="grp_pat" style="left:370px; top:2px; width:310px; height:30px; background-color:#fffbf2; ">
- <caption id="caption13" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">환자정보 :</caption>
- <input id="ipt_pid" ref="/root/hidden/pid" class="input_search" navindex="1" inputtype="button" maxlength="10" style="left:98px; top:6px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetDnorList("A");
- ]]>
- </script>
- </input>
- <button id="button5" class="icon_search" style="left:234px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자정보검색 팝업 띄우기
- fGetPatInfoPopUp();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <caption id="caption36" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">환자정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:223px; x2:460px; y2:223px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:208px; width:111px; height:13px; ">공여자목록</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:70px; x2:460px; y2:70px; "/>
- <caption id="caption46" class="cell_1" style="left:0px; top:99px; width:80px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption48" class="cell_1" style="left:206px; top:99px; width:100px; height:23px; vertical-align:middle; ">혈액형</caption>
- <line id="line2" class="line_1" style="x1:465px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:470px; top:55px; width:126px; height:13px; ">공여자별 검사내역</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:121px; x2:460px; y2:121px; "/>
- <output id="output1" ref="/root/main/dnor/patinfo/tnsrnm" class="output_fix" style="left:83px; top:76px; width:120px; height:19px; "/>
- <output id="output2" ref="/root/main/dnor/patinfo/tnsrgstno" class="output_fix" style="left:309px; top:76px; width:150px; height:19px; "/>
- <output id="output3" ref="/root/main/dnor/patinfo/tnssexage" class="output_fix" style="left:83px; top:100px; width:120px; height:19px; "/>
- <output id="output4" ref="/root/main/dnor/patinfo/tnsbtype" class="output_fix" style="left:309px; top:100px; width:150px; height:19px; "/>
- <datagrid id="grd_dnorlist" nodeset="/root/main/dnorlist" caption="공여자번호^공여자명^선택^적합여부 ▼^부적합 사유 ▼^처방일자^바코드발행일시" colsep="^" colwidth="80, 80, 0, 80, 130^80^80" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:228px; width:460px; height:514px; ">
- <col ref="dnorno"/>
- <col ref="dnornm"/>
- <col ref="chk" type="checkbox"/>
- <col ref="fityn" type="combo">
- <choices>
- <item>
- <label>적합</label>
- <value>1</value>
- </item>
- <item>
- <label>부적합</label>
- <value>2</value>
- </item>
- <item>
- <label>미판정</label>
- <value>0</value>
- </item>
- </choices>
- </col>
- <col ref="retestyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0118">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="barcdprntdt" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_dnorlist.isCell(event.target) && grd_dnorlist.row >= grd_dnorlist.fixedRows){
- // 환자정보, 공여자정보 보이게
- //fGetPatinfo();
-
- if(grd_dnorlist.col != "3"){
- // 환자정보, 공여자정보 보이게
- fGetPatinfo("S");
-
-
- // 공여자별 검사내역 조회
- fGetDnorTestList();
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_dnorprcplist" nodeset="/root/main/dnor/dnortestlist" caption="검사항목명^결과^적합기준치^결과보고시간^검사자" colsep="^" colwidth="160, 120, 130, 130, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:465px; top:75px; width:729px; height:667px; ">
- <col ref="tclsnm" style="left:20px; top:25px; width:90px; height:25px; "/>
- <col ref="inptrslt" style="text-align:left; "/>
- <col ref="refval"/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastreptid"/>
- </datagrid>
- <line id="line3" class="line_2" style="x1:0px; y1:97px; x2:460px; y2:97px; "/>
- <output id="output5" ref="/root/main/dnor/dnorinfo/dnorbtype" class="output_fix" style="left:309px; top:176px; width:150px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:175px; width:80px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption6" class="tit_2" style="left:5px; top:131px; width:100px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">공여자정보</caption>
- <caption id="caption8" class="cell_1" style="left:206px; top:175px; width:100px; height:23px; vertical-align:middle; ">혈액형</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:173px; x2:460px; y2:173px; "/>
- <output id="output6" ref="/root/main/dnor/dnorinfo/dnornm" class="output_fix" style="left:83px; top:152px; width:120px; height:19px; "/>
- <output id="output7" ref="/root/main/dnor/dnorinfo/dnorrgstno" class="output_fix" style="left:309px; top:152px; width:150px; height:19px; "/>
- <line id="line10" class="line_1" style="x1:0px; y1:146px; x2:460px; y2:146px; "/>
- <output id="output8" ref="/root/main/dnor/dnorinfo/dnorsexage" class="output_fix" style="left:83px; top:176px; width:120px; height:19px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:197px; x2:460px; y2:197px; "/>
- <caption id="caption43" class="cell_1" style="left:0px; top:75px; width:80px; height:23px; vertical-align:middle; ">환자명</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:151px; width:80px; height:23px; vertical-align:middle; ">공여자명</caption>
- <caption id="caption4" class="cell_1" style="left:206px; top:151px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <caption id="caption47" class="cell_1" style="left:206px; top:75px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_cle" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetInit();
- init();
- ]]>
- </script>
- </button>
- <line id="line35" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="button1" class="btn4_letter2" navindex="3" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert("개발중");
- fExeRsltSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|