12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPR00200추가결과등록.xrw
- * 설 명 : Addendum 팝업창(검사결과등록)
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2006.11.30
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?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>
- <addendum>
- <addendumlist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <addrsltdg/>
- <rgstdd/>
- <rgsttm/>
- <readdrid/>
- <readdrnm/>
- <readaddbase/>
- <readrslt/>
- <cmtcnts/>
- <rgstno/>
- <diagcnts/>
- <etccnts/>
- <cnfmdd/>
- <cnfmtm/>
- <cnfmid/>
- <cnfmnm/>
- <rgstnm/>
- <choi/>
- </addendumlist>
- </addendum>
- </main>
- <send/>
- <init>
- <testrslt>
- <staintestlist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <acptdd/>
- <acptno/>
- <acptitemno/>
- <testcd/>
- <testnm/>
- <workflagcd/>
- <rsltrgstdd/>
- <rsltrgstno/>
- <testrslt/>
- <trandd/>
- <tranno/>
- <orgacptstatcd/>
- <orgprcpstatcd/>
- <prcpdd/>
- <execprcpuniqno/>
- <prcpgenrflag/>
- </staintestlist>
- <relaptnolist>
- <ptno/>
- <choi/>
- <dispptno/>
- <pid/>
- <acptstatcd/>
- <acptdd/>
- <testhngnm/>
- </relaptnolist>
- </testrslt>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <userdeptcd/>
- <popupmenu>
- <item>
- <nm>결과삭제</nm>
- <funt>fExeDelAddRslt</funt>
- </item>
- </popupmenu>
- <resncd>
- <resncdlist>
- <instcd/>
- <flagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <cnclflagcd>30</cnclflagcd>
- </init>
- <hidden>
- <rsltcont/>
- <resncd/>
- </hidden>
- <temp>
- <readaddbase/>
- <readrslt/>
- <cmtcnts/>
- <ptno/>
- <instcd/>
- <rgstno/>
- <addrsltdg/>
- <readdrid/>
- <rgstdd/>
- <rgsttm/>
- <mpphonno/>
- <diagcnts/>
- <etccnts/>
- <cnfmdd/>
- <cnfmtm/>
- <cnfmid/>
- <cnfmnm/>
- <rgstnm/>
- <testrslt>
- <testrsltinfo/>
- </testrslt>
- <cnclflagcd/>
- <cnclresncd/>
- <resncnts/>
- </temp>
- </root>
- </instance>
- <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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(0, 0, 500, 500, "grp_prnt");
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRLPZ00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/testrslt/testrsltinfo"/>
- <submission id="TRLPZ00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/testrslt/patbasicinfo"/>
- <submission id="TRLPR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/addendum/addendumlist"/>
- <submission id="TXLPR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TXLPR01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TXLPR02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLPZ00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/testrslt/testrsltinfo"/>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/resncd/resncdlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var gGrdRoNo = 0;
-
- /* @group : 추가결과등록
- * @ver : 2008.09.26
- * @by : 박중규
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 진단내용 팝업창 호출 처리 Function
- */
- function fExeDiagPopup() {
-
- var sNode = "/root/temp/etccnts";
- var sDiagNm = model.getValue(sNode);
- var sDiagInfo = "";
-
- //--------------------------------------------
- // 영문,숫자, 한글일때는 3글자 넣어야 검색가능
- if ( sDiagNm.length < 2 ) {
- messageBox ( "2글자 이상", "C001" );
- return;
- }
- //-----------------------------------------
- setParameter("SPMMO00800_cond1", "2" ); // 첫단어검색을 먼저하는 것으로 수정한다.(1:코드검색)
- setParameter("SPMMO00800_cond2", "3"); // 명칭검색구분(1:코드, 2:단어, 3:문장, 4:첫단어)
- setParameter("SPMMO00800_cond3", "E" ); // 한영구분(H: 한글, E:영문)
- setParameter("SPMMO00800_cond4", getCurrentDate()); // 기준일자: 외래일때는 진료일자, 입원일때는 처방일자
- setParameter("SPMMO00800_cond5", sDiagNm ); // 검색내용
- setParameter("SPMMO00800_rtn", "" ); // 반환값
- setParameter("SPMMO00800_rtn_useyn", sDiagNm ); // 검색내용
-
- modal ( "SPMMO00800", null, null, null, "diagsrch", "", "", "", false );
- if ( getParameter( "SPMMO00800_rtn_useyn" ) == "Y" ) {
-
- //-----------------------------------------
- sDiagInfo = getParameter("SPMMO00800_rtn");
- var icd10cd = fExeGetArrayData( sDiagInfo, 1, 8, "▩", "▦" );
- var diagcd = fExeGetArrayData( sDiagInfo, 1, 9, "▩", "▦" );
- var diagengnm = fExeGetArrayData( sDiagInfo, 1, 2, "▩", "▦" );
- var diaghngnm = fExeGetArrayData( sDiagInfo, 1, 3, "▩", "▦" );
- var spclinfo = fExeGetArrayData( sDiagInfo, 1, 5, "▩", "▦" );
-
- //-------------------------------------------
- model.makeValue(sNode, diagengnm);
- //model.makeValue(sNode+"/diagcd", diagcd);
-
- //-----------------------------------------
- setParameter( "SPMMO00800_rtn_useyn", "" );
- }
-
- //--------------
- model.refresh();
- }
- function fExeGetArrayData (pData, pRow, pCol, pRowSep, pColSep ) {
- var arrRow = pData.split(pRowSep);
-
- if(arrRow.length <= pRow) return "";
- var arrCol = arrRow[pRow].split(pColSep);
- if(arrCol.length <= pCol) return "";
- return arrCol[pCol];
- }
-
- /* @group : 추가결과등록
- * @ver : 2008.09.26 (CMCDEV-0001)
- * @by : 박중규(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 확장 텍스트 입력 종료 Function
- */
- function fExeCloseCntsView() {
-
- var strNode = model.getValue("/root/hidden/rtnnode");
-
- if (strNode != "") {
- model.makeValue(model.getValue("/root/hidden/rtnnode"), model.getValue("/root/hidden/rsltcont"));
- }
-
- //---------------------------
- grp_rsltcnts.visible = false;
- model.refresh();
- }
-
- /* @group : 추가결과등록
- * @ver : 2008.09.26 (CMCDEV-0001)
- * @by : 박중규(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 확장 텍스트 입력 활성화 Function
- */
- function fExeCntsView(pTitle, objCnts) {
-
- if (event.currentTarget == event.target) {
- model.makeValue("/root/hidden/rtnnode", objCnts.attribute("ref"));
- model.makeValue("/root/hidden/rsltcont", objCnts.currentText);
- cap_title.value = pTitle;
- grp_rsltcnts.visible = true;
- model.setFocus("tar_rsltcnts");
- }
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 처리 Function
- */
- function fExeInitialize() {
- var iNo = 0;
- var nodelist = 0;
-
- model.makeValue("/root/temp/instcd", model.getValue(opener.root.main.testrslt.testcdlist.instcd));
- model.makeValue("/root/temp/ptno", model.getValue(opener.root.main.testrslt.testcdlist.ptno));
-
- //---------------
- // TEST
- //model.makeValue("/root/temp/instcd", "031");
- //model.makeValue("/root/temp/ptno", "C10000001");
- model.removeNodeset("/root/main/addendum/addendumlist");
-
- //--------------------------
- // Send Node 삭제 후 재 생성
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", model.getValue("/root/temp/instcd"));
- model.makeValue("/root/send/baseflagcd", model.getValue("/root/init/cnclflagcd"));
- submit("TRLPZ00103", false);
- submit("TRLPZ00101");
-
- //-----------------------------------------------------------------
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
- iNo = getNodesetCount("/root/init/resncd/resncdlist");
- model.makeValue("/root/init/resncd/resncdlist["+(Number(iNo) + 1)+"]/instcd", model.getValue("/root/temp/instcd"));
- model.makeValue("/root/init/resncd/resncdlist["+(Number(iNo) + 1)+"]/flagcd", model.getValue("/root/init/cnclflagcd") );
- model.makeValue("/root/init/resncd/resncdlist["+(Number(iNo) + 1)+"]/resncd", "-");
- model.makeValue("/root/init/resncd/resncdlist["+(Number(iNo) + 1)+"]/resncnts", " ");
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/init");
- //--------------------------------------------------------------------------------
- model.makeValue("/root/send/userdeptcd", model.getValue("/root/init/userdeptcd"));
- model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
- model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
- submit("TRLPZ00105");
-
- //----------------
- // 추가결과 조회
- fGetAddRslt();
-
- //--------------------------------------------
- model.makeValue("/root/temp/rgstno", ""); // 등록번호
- model.makeValue("/root/temp/addrsltdg", ""); // 추가결과차수
- model.makeValue("/root/temp/readdrid", ""); // 판독의사ID
- model.makeValue("/root/temp/rgstdd", ""); // 등록일자
- model.makeValue("/root/temp/rgsttm", ""); // 등록시간
- model.makeValue("/root/temp/readaddbase", ""); // 판독 추가기준
- model.makeValue("/root/temp/readrslt", ""); // 판독결과
- model.makeValue("/root/temp/cmtcnts", ""); // Comment
- model.makeValue("/root/temp/pid", ""); // 등록번호(환자번호)
- model.makeValue("/root/temp/patnm", ""); // 환자명
- //model.makeValue("/root/temp/mpphonno", ""); // 핸드폰번호
- model.makeValue("/root/temp/mpphonno", model.getValue("/root/init/testrslt/testcdlist/mpphonno")); // 핸드폰번호
-
-
- if (model.getValue("/root/temp/etccnts") == "") {
- nodelist = instance1.selectNodes("/root/main/addendum/addendumlist");
- if(model.getValue("/root/main/addendum/addendumlist[" + nodelist.length + "]/etccnts") == "") {
- model.makeValue("/root/temp/etccnts", model.getValue(opener.root.main.testrslt.testrsltinfoh.diagcnts));
- }else {
- //model.makeValue("/root/temp/etccnts", model.getValue("/root/main/addendum/addendumlist[" + nodelist.length + "]/etccnts"));
- model.makeValue("/root/temp/etccnts", model.getValue("/root/main/addendum/addendumlist[1]/mcode"));
- }
- }
-
- /*
- //추가 박중규 2008.09.26
- //특수/면역결과 목록에 상태별로 색을 구분한다.
- for(var iRowNo = 1 ; iRowNo < grd_stainlist.rows ; iRowNo++) {
-
- switch (model.getValue("/root/init/testrslt/staintestlist["+iRowNo+"]/?????????")) {
- case "0" :
- grd_stainlist.rowStyle(iNo, "data", "background-color") = "#ffcc00";
- break;
- case "2" :
- grd_stainlist.rowStyle(iNo, "data", "background-color") = "#ff00ff";
- break;
- case "3" :
- case "4" :
- grd_stainlist.rowStyle(iNo, "data", "background-color") = "#008000";
- break;
- case "9" :
- break;
- }
-
- }
- */
- grd_stainlist.autoResize = true;
-
- //--------------
- model.refresh();
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 종료 처리 Function
- */
- function fExeClose() {
- window.close();
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.12.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 차수목록 그리드 클릭 처리 Function
- */
- function fExeAddRsltGridClick(pRowNo) {
-
- if (grd_addendumlist.isCell(event.target) && grd_addendumlist.row >= grd_addendumlist.fixedRows) {
- gGrdRoNo = pRowNo;
- fExeAddRsltGridChoi(pRowNo);
- }
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 차수목록 선택 처리 Function
- */
- function fExeAddRsltGridChoi(pRowNo) {
-
- //----------------------------
- if (pRowNo <= 0) return false;
-
- //--------------------------------
- model.removeNodeset("/root/temp");
-
- //-------------------------------------------------------------------------------------------------------------------
- model.makeValue("/root/temp/instcd", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/instcd"));
- model.makeValue("/root/temp/ptno", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/ptno"));
- model.makeValue("/root/temp/rgstno", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/rgstno"));
- model.makeValue("/root/temp/addrsltdg", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/addrsltdg"));
- model.makeValue("/root/temp/readdrid", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/readdrid"));
- model.makeValue("/root/temp/rgstdd", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/rgstdd"));
- model.makeValue("/root/temp/rgsttm", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/rgsttm"));
- model.makeValue("/root/temp/readaddbase", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/readaddbase"));
- model.makeValue("/root/temp/readrslt", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/readrslt"));
- model.makeValue("/root/temp/cmtcnts", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/cmtcnts"));
- model.makeValue("/root/temp/diagcnts", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/diagcnts"));
- model.makeValue("/root/temp/etccnts", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/etccnts"));
- model.makeValue("/root/temp/cnfmdd", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/cnfmdd"));
- model.makeValue("/root/temp/cnfmtm", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/cnfmtm"));
- model.makeValue("/root/temp/cnfmid", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/cnfmid"));
- model.makeValue("/root/temp/cnfmnm", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/cnfmnm"));
- model.makeValue("/root/temp/rgstnm", model.getValue("/root/main/addendum/addendumlist[" + pRowNo + "]/rgstnm"));
- model.makeValue("/root/temp/mpphonno", model.getValue("/root/init/testrslt/testcdlist/mpphonno")); // 핸드폰번호
-
- //--------------------------------------------------------------------------------------------
- if (model.getValue("/root/temp/cnfmtm") == "-" || model.getValue("/root/temp/cnfmtm") == "") {
- model.makeValue("/root/temp/cnfmtm", "");
- }
-
- //-----------------------------------------------
- if (model.getValue("/root/temp/etccnts") == "") {
- model.makeValue("/root/temp/etccnts", model.getValue("/root/init/testrslt/testrsltinfoh/diagcnts"));
- }
- //---------------------
- cmb_readdrid.refresh();
- model.refresh();
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목목록 그리드 클릭 처리 Function
- */
- function fExeTestCdGridClick(pRowNo) {
-
- var sTestNmList = model.getValue("/root/temp/readaddbase");
-
- //---------------------------------------------------------------------------------------
- if (grd_stainlist.isCell(event.target) && grd_stainlist.row >= grd_stainlist.fixedRows) {
- // Continue
- } else {
- return false;
- }
-
- //----------------------------
- if (pRowNo <= 0) return false;
-
- //----------------------
- if (sTestNmList != "") {
- model.makeValue("/root/temp/readaddbase", sTestNmList + "/" + model.getValue("/root/init/testrslt/relaptnolist[" + pRowNo + "]/testhngnm"));
- } else {
- model.makeValue("/root/temp/readaddbase", model.getValue("/root/init/testrslt/relaptnolist[" + pRowNo + "]/testhngnm"));
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 등록 처리 Function
- */
- function fExeSave(pBizFlag) {
-
- var yesno = "";
- var nodelist = "";
- //-----------------------------
- if (cmb_readdrid.label == "") {
- messageBox("판독의사를 ", "C002");
- return false;
- }
-
- //-----------------------
- if (pBizFlag == "RSLT") {
- yesno = messageBox("신규로 저장하시겠습니까?", "S002"); // 6:yes, 7:no, 2:cancel
- if (yesno == "2")
- {
- return false;
- }
- else if (yesno == "6")
- {
- // 최종진단 후 데이터 수정 후 신규등록 시 ID 입력 안되게
- model.makeValue("/root/temp/cnfmdd", "");
- model.makeValue("/root/temp/cnfmtm", "");
- model.makeValue("/root/temp/cnfmid", "");
- model.makeValue("/root/temp/rgstno", "");
- }
- else if (yesno == "7")
- {
- if (model.getValue("/root/temp/cnfmdd") == "" ||model.getValue("/root/temp/cnfmdd") == "-")
- {
- // Continue
- }
- else
- {
- messageBox("최종진단된 결과는 수정", "E001");
- return false;
- }
- }
- //---------------------------------------------
- model.makeValue("/root/temp/newflagcd", yesno);
- } else if (pBizFlag == "LAST") {
-
- //-----------------------------------------------------------------------------------------------
- //if (model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd") != getUserInfo("jobkindcd")) {
- if ( !lpzfGetDoctorCheck("/root/init/hospenv/hospenvinfo/doctjobgradcd", getUserInfo("jobkindcd")) ) {
- messageBox("의사직급만 최종진단이 ", "I006");
- return false;
- }
-
- if (model.getValue("/root/temp/readdrid") != getUserInfo("userid")) {
- messageBox("선택된 판독의사와 로그인한 사용자가 다릅니다! ", "I007");
- return false;
- }
-
- if (model.getValue("/root/temp/rgstno") == "") {
- messageBox("저장된 추가결과만 최종진단", "I006");
- model.makeValue("/root/temp/newflagcd", "7");
- return false;
- }
-
- nodelist = instance1.selectNodes("/root/main/addendum/addendumlist");
- for(var i = 1; i <= nodelist.length; i++){
- if(model.getValue("/root/temp/addrsltdg") > model.getValue("/root/main/addendum/addendumlist[" + i + " ]/addrsltdg")
- && (model.getValue("/root/main/addendum/addendumlist[" + i + " ]/cnfmdd") == "-" || model.getValue("/root/main/addendum/addendumlist[" + i + " ]/cnfmdd") == "" )){
- messageBox("낮은 차수부터 먼저 최종진단되어야 합니다! ", "I007");
- return false;
- }
- else if(model.getValue("/root/temp/addrsltdg") == model.getValue("/root/main/addendum/addendumlist[" + i + " ]/addrsltdg")
- && (model.getValue("/root/main/addendum/addendumlist[" + i + " ]/cnfmdd") != "-" && model.getValue("/root/main/addendum/addendumlist[" + i + " ]/cnfmdd") != "")){
- messageBox("이미 최종진단된 결과 입니다.! ", "I007");
- return false;
- }
- }
- //-----------------------------------------------------
- //model.makeValue("/root/temp/cnfmdd", getCurrentDate());
- //model.makeValue("/root/temp/cnfmtm", getCurrentTime());
- //model.makeValue("/root/temp/cnfmid", model.getValue("/root/temp/readdrid"));
-
- } else if (pBizFlag == "PRNT") {
- model.makeValue("/root/temp/newflagcd", "7");
- } else {
- model.makeValue("/root/temp/newflagcd", "7");
- }
-
- if (pBizFlag == "LAST") {
- if (Sign.signprocess()) {
-
- } else {
- messageBox("최종진단이 취소 또는 실패되었습니다! ", "I007");
- return false;
- }
- }
-
- //------------------------------------------------
- model.makeValue("/root/temp/bizflagcd", pBizFlag);
- model.makeValue("/root/temp/pid", model.getValue("/root/init/testrslt/patinfo/pid")); // 등록번호
- model.makeValue("/root/temp/patnm", model.getValue("/root/init/testrslt/patinfo/patnm")); // 환자명
- //model.makeValue("/root/temp/mpphonno", model.getValue("/root/init/testrslt/testcdlist/mpphonno")); // 핸드폰번호
- model.copyNode("/root/send", "/root/temp");
-
- //-------------------------
- if (submit("TXLPR00201")) {
- if (pBizFlag == "LAST") {
-
-
- //-------------
- fExeGridChoi();
- if(fExeMakeCertPrcs()) {
- messageBox("최종진단 confirm이 정상적으로 ", "I001");
- }
-
- } else {
- messageBox("저장이 정상적으로 ", "I001");
- }
- //------------
- fGetAddRslt();
-
- //--------------------------------------------
- model.makeValue("/root/temp/rgstno", ""); // 등록번호
- model.makeValue("/root/temp/addrsltdg", ""); // 추가결과차수
- model.makeValue("/root/temp/readdrid", ""); // 판독의사ID
- model.makeValue("/root/temp/rgstdd", ""); // 등록일자
- model.makeValue("/root/temp/rgsttm", ""); // 등록시간
- model.makeValue("/root/temp/readaddbase", ""); // 판독 추가기준
- model.makeValue("/root/temp/readrslt", ""); // 진단내용
- model.makeValue("/root/temp/cmtcnts", ""); // Comment
- model.makeValue("/root/temp/diagcnts", ""); // 판독결과
- model.makeValue("/root/temp/etccnts", ""); // 기타내용
- model.makeValue("/root/temp/cnfmdd", ""); // 확인일자
- model.makeValue("/root/temp/cnfmtm", ""); // 확인시간
- model.makeValue("/root/temp/cnfmid", ""); // 확인자id
- model.makeValue("/root/temp/cnfmnm", ""); // 확인자명
-
- opt_cnfmdd.refresh();
- opt_cnfmtm.refresh();
- opt_cnfmnm.refresh();
-
- //--------------
- model.refresh();
- }
-
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.05.31 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 조회 처리 Function
- */
- function fGetAddRslt() {
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", model.getValue("/root/temp/ptno"));
- submit("TRLPR00201");
-
- //-------------------------------------------------------------
- if (getNodesetCount("/root/main/addendum/addendumlist") <= 0) {
- model.makeValue("/root/temp/etccnts", model.getValue("/root/init/testrslt/testrsltinfoh/diagcnts"));
- }
- }
-
- /* @group : 추가결과등록
- * @ver : 2007.12.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 삭제 처리 Function
- */
- function fExeDelAddRslt()
- {
- var sCnfmID = model.getValue("/root/main/addendum/addendumlist[" + gGrdRoNo + "]/cnfmid");
-
- if ( sCnfmID.length > 1)
- {
- // --------------------------------------------
- // 추가결과 최종진단이 내려진 경우 데이터 삭제
- messageBox("최종진단 후 데이터를 삭제", "E001");
- }
- else
- {
- //-------------------
- // 추가결과 차수 선택
- fExeAddRsltGridChoi(grd_addendumlist.row);
-
- //-------------------------------------------
- model.makeValue("/root/temp/bizflagcd", "D");
- model.makeValue("/root/temp/newflagcd", "9");
- model.makeValue("/root/temp/pid", model.getValue("/root/init/testrslt/patinfo/pid")); // 등록번호
- model.makeValue("/root/temp/patnm", model.getValue("/root/init/testrslt/patinfo/patnm")); // 환자명
- model.copyNode("/root/send", "/root/temp");
-
- //-------------------------
- if (submit("TXLPR00201")) {
- fGetAddRslt();
-
- //--------------------------------------------
- model.makeValue("/root/temp/rgstno", ""); // 등록번호
- model.makeValue("/root/temp/addrsltdg", ""); // 추가결과차수
- model.makeValue("/root/temp/readdrid", ""); // 판독의사ID
- model.makeValue("/root/temp/rgstdd", ""); // 등록일자
- model.makeValue("/root/temp/rgsttm", ""); // 등록시간
- model.makeValue("/root/temp/readaddbase", ""); // 판독 추가기준
- model.makeValue("/root/temp/readrslt", ""); // 판독결과
- model.makeValue("/root/temp/cmtcnts", ""); // Comment
-
- //--------------
- model.refresh();
- }
- }
- }
-
-
- /* @group : 추가결과등록
- * @ver : 2008.11.18 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 추가결과 최종진단 삭제 처리 Function
- */
- function fExeCmfCancle()
- {
- var sNode = "/root/main/addendum/addendumlist";
-
- var yesno = "";
- var sFinalChk = "0";
- var sCnt = model.getValue(sNode + "[" + gGrdRoNo + "]/addrsltdg");
-
- //----------------------
- // 취소사유 선택여부 검사
- if (!isRequiredControls("cbo_cnclresn")) return false;
-
- //-----------------------------------------------------------------------------------------------
- if (cmb_readdrid.label == "")
- {
- messageBox("판독의사를 ", "C002");
- return false;
- }
-
- //if (model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd") != getUserInfo("jobkindcd")) {
- if ( !lpzfGetDoctorCheck("/root/init/hospenv/hospenvinfo/doctjobgradcd", getUserInfo("jobkindcd")) ) {
- messageBox("의사직급만 최종진단이 ", "I006");
- return false;
- }
-
- if (model.getValue("/root/temp/readdrid") != getUserInfo("userid")) {
- messageBox("선택된 판독의사와 로그인한 사용자가 다릅니다! ", "I007");
- return false;
- }
-
- if ( (model.getValue("/root/main/addendum/addendumlist[" + gGrdRoNo + "]/cnfmid")).length < 2)
- {
- messageBox("추가처방 최종진단 항목이 아닙니다! ", "I007");
- return false;
- }
-
- yesno = messageBox(sCnt + "차 추가결과 최종진단을 ", "Q001");
-
- if (yesno == "6")
- {
- // 추가 결과 최종진단이 마지막 차수의 것인지 판단.
- // 최종 추가결과의 최종진단이 있는경우 취소 금지.
- for(var iNo = gGrdRoNo+1; iNo <= getNodesetCount(sNode); iNo++)
- {
- if((model.getValue(sNode + "[" + iNo + "]/cnfmid")).length > 1)
- {
- messageBox("최종진단 데이터를 취소", "E001");
- return false;
- }
- }
-
- // 최종 차수의 취소인지 구분인자
- for(var iNo = 1; iNo < gGrdRoNo; iNo++)
- {
- if((model.getValue(sNode + "[" + iNo + "]/cnfmid")).length > 1)
- {
- sFinalChk = "1";
- }
- }
-
- model.removenode("/root/temp");
-
- model.makeValue("/root/temp/instcd" , model.getValue(sNode + "[" + gGrdRoNo + "]/instcd"));
- model.makeValue("/root/temp/ptno" , model.getValue(sNode + "[" + gGrdRoNo + "]/ptno"));
- model.makeValue("/root/temp/addrsltdg" , model.getValue(sNode + "[" + gGrdRoNo + "]/addrsltdg"));
- model.makeValue("/root/temp/rgstno" , model.getValue(sNode + "[" + gGrdRoNo + "]/rgstno"));
- model.makeValue("/root/temp/pid" , model.getValue("/root/init/testrslt/patinfo/pid"));
- model.makeValue("/root/temp/dghistno" , sCnt);
- model.makeValue("/root/temp/finalcnt" , sFinalChk);
- model.makeValue("/root/temp/rsltkindflag" , "1"); // 1:추가결과, 2:수정진단
-
- //취소사유입력
- model.makeValue("/root/temp/cnclflagcd", model.getValue("/root/init/cnclflagcd"));
- model.makeValue("/root/temp/cnclresncd", model.getValue("/root/hidden/resncd"));
- model.makeValue("/root/temp/resncnts", cbo_cnclresn.label);
-
-
- model.copyNode("/root/send", "/root/temp");
-
- if (submit("TXLPR02401"))
- {
- messageBox("저장이 정상적으로 ", "I001");
-
- // -------------------------
- // 수정한 의사 확인..
- //fExeMakeCertPrcs();
-
- }
- }
- fGetAddRslt();
- model.refresh();
- }
-
- function fExePrnt() {
-
- var sNode = "/root/prnt/prntinfo";
- var sSrcNode = "/root/init/testrslt"
- var sPtNoList = "";
- var sAddReadNm = "";
- var sDiagCnts = "";
- var aDiagCnts = "";
- var sTemp = "";
- //-----------------------
- // 이전 병리번호(CF) 설정
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode+"/bfptnolist"); iNo++) {
-
- if (iNo == 1) {
- sPtNoList = model.getValue(sSrcNode+"/bfptnolist["+iNo+"]/dispptno");
- } else {
- sPtNoList += ", " + model.getValue(sSrcNode+"/bfptnolist["+iNo+"]/dispptno");
- }
- }
-
- //-------------------------
- model.removeNodeset(sNode);
- model.makeNode(sNode);
-
- //----------------------------
- // 원처방의 Diagnosis내용 출력
- //fExeMakeRow(sNode+"/", sSrcNode+"/testrsltinfoh/rsltcnts3", "orgdiag", "orgdiaglist", "");
- //fExeMakeRow(sNode+"/", "/root/temp/diagcnts", "adddiag", "adddiaglist", "");
- //fExeMakeRow(sNode+"/", "/root/temp/readrslt", "adddiagcnts", "diagcntslist", "");
- //fExeMakeRow(sNode+"/", "/root/temp/cmtcnts", "addcmtcnts", "cmtcntslist", "");
-
- //-------------------------------------------------------------------------------
- model.makeValue(sNode+"/ptno", model.getValue(sSrcNode+"/testcdlist/ptno"));
- model.makeValue(sNode+"/dispptno", model.getValue(sSrcNode+"/testcdlist/dispptno"));
- model.makeValue(sNode+"/pid", model.getValue(sSrcNode+"/patinfo/pid"));
- model.makeValue(sNode+"/patnm", model.getValue(sSrcNode+"/patinfo/patnm"), true);
- model.makeValue(sNode+"/sexage", "["+model.getValue(sSrcNode+"/patinfo/sexage")+"]");
- model.makeValue(sNode+"/rrgstno", model.getValue(sSrcNode+"/patinfo/rrgstno"));
- model.makeValue(sNode+"/cflist", sPtNoList);
- model.makeValue(sNode+"/adddg", "[ 추가결과 " + model.getValue("/root/temp/addrsltdg") + " 차 ]", true);
- model.makeValue(sNode+"/addbase", model.getValue("/root/temp/readaddbase"), true);
- model.makeValue(sNode+"/grosdd", model.getValue(sSrcNode+"/testrsltinfoh/grostestrecdd"));
- model.makeValue(sNode+"/grostm", model.getValue(sSrcNode+"/testrsltinfoh/grostestrectm"));
- model.makeValue(sNode+"/grosdrnm", model.getValue(sSrcNode+"/patinfo/grosdrnm"), true);
- model.makeValue(sNode+"/termengnm", model.getValue(sSrcNode+"/diagcntslist/termengnm"), true);
- model.makeValue(sNode+"/indd", model.getValue("/root/temp/rgstdd"));
- model.makeValue(sNode+"/intm", model.getValue("/root/temp/rgsttm"));
- model.makeValue(sNode+"/innm", model.getValue("/root/temp/rgstnm"), true);
- model.makeValue(sNode+"/readdd", model.getValue("/root/temp/cnfmdd"));
- model.makeValue(sNode+"/readtm", model.getValue("/root/temp/cnfmtm"));
- model.makeValue(sNode+"/readdrnm", model.getValue("/root/temp/cnfmnm"), true);
- model.makeValue(sNode+"/testnm", model.getValue(sSrcNode+"/testcdlist/testnm"), true);
- model.makeValue(sNode+"/acptdd", model.getValue(sSrcNode+"/testcdlist/acptdd"));
- model.makeValue(sNode+"/acpttm", model.getValue(sSrcNode+"/testcdlist/acpttm"));
- model.makeValue(sNode+"/prcpdd", model.getValue(sSrcNode+"/testcdlist/prcpdd"));
- model.makeValue(sNode+"/spcnm", model.getValue(sSrcNode+"/patinfo/spcnm"), true);
-
- //------------------------------------------------------
- sTemp = model.getValue(sSrcNode+"/testcdlist/orddrnm");
- sTemp += "(" + model.getValue(sSrcNode+"/testcdlist/orddeptnm") + "/" + model.getValue(sSrcNode+"/testcdlist/wardroom") + ")";
- model.makeValue(sNode+"/orddrnm", sTemp, true);
-
- //---------------------------------------------------------------------
- sAddReadNm = model.getValue("/root/init/userinfo/userinfolist[userid='"+model.getValue("/root/temp/readdrid")+"']/userabbr");
- if (sAddReadNm == "-") {
- sAddReadNm = model.getValue("/root/init/userinfo/userinfolist[userid='"+model.getValue("/root/temp/readdrid")+"']/usernm");
- }
- model.makeValue(sNode+"/addreaddrnm", sAddReadNm);
- //---------
- sTemp = "";
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode+"/testcdlist/reqcnts/reqfrminfo/choispc/choispclist"); iNo++) {
- sTemp += Number(iNo) + ") " + model.getValue(sSrcNode+"/testcdlist/reqcnts/reqfrminfo/choispc/choispclist/spcnm") + " ";
- }
- model.makeValue(sNode+"/detlspcnm", sTemp, true);
- //--------------------------------------------------------------------------------------
- fExeMakeRow(sNode, sSrcNode+"/testrsltinfoh/rsltcnts3", "orgdiag", "orgdiaglist", "");
- fExeMakeRow(sNode, "/root/temp/diagcnts", "adddiag", "adddiaglist", "");
- fExeMakeRow(sNode, "/root/temp/readrslt", "adddiagcnts", "diagcntslist", "");
- fExeMakeRow(sNode, "/root/temp/cmtcnts", "addcmtcnts", "cmtcntslist", "");
-
- /*
- sDiagCnts = model.getValue(sSrcNode+"/testrsltinfoh/rsltcnts3");
- aDiagCnts = sDiagCnts.split("\n");
-
- //--------------------------------
- model.makeNode(sNode+"/orgdiag");
- for (var iNo=0; iNo < aDiagCnts.length; iNo++) {
- model.makeValue(sNode+"/orgdiag/orgdiaglist["+(Number(iNo)+1)+"]/cnts", aDiagCnts[iNo], true);
- }
-
- //------------------------------------------------
- sDiagCnts = model.getValue("/root/temp/diagcnts");
- aDiagCnts = sDiagCnts.split("\n");
-
- //--------------------------------
- model.makeNode(sNode+"/adddiag");
- for (var iNo=0; iNo < aDiagCnts.length; iNo++) {
- model.makeValue(sNode+"/adddiag/adddiaglist["+(Number(iNo)+1)+"]/cnts", aDiagCnts[iNo], true);
- }
- */
-
- //------------------------------------------------------------------------------------------------
- exeReportPreview("RPLPR00200", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
-
- //-----------------
- // 출력 후 자동저장
- //fExeSave("PRNT");
- }
-
- /* @group : 추가결과등록
- * @ver : 2008.09.26 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과내용을 노드로 생성 처리 Function
- */
- function fExeMakeRow(pPrntNode, pSrcNode, pDescNm1, pDescNm2, pTitle) {
-
- var iSNo = 0;
- var iENo = 0;
- var iRowNo = 0;
- var sRsltCnts = model.getValue(pSrcNode);
- var aCnts = new Array();
- var aCntList = sRsltCnts.split("\n");
- var bState = false;
- //---------------------------------------------
- for (var iNo=0; iNo < aCntList.length; iNo++) {
-
- //-----
- iSNo=0;
- iENo=0;
- do {
- //----------
- iENo += 120;
- aCnts[iRowNo] = aCntList[iNo].substr(iSNo, 120);
- //--------------------------------
- if (aCntList[iNo].length > iENo) {
- bState = false;
- } else {
- bState = true;
- }
-
- //----------
- iSNo = iENo;
- iRowNo++;
- } while (bState == false);
- }
-
- //------------------------------------------
- model.removeNodeset(pPrntNode+"/"+pDescNm1);
-
- //-----------------------------------
- iSNo = Number(0);
- if (model.getValue(pSrcNode) != "") {
- model.makeNode(pPrntNode);
- model.makeNode(pPrntNode+"/"+pDescNm1);
- model.makeNode(pPrntNode+"/"+pDescNm1+"/"+pDescNm2);
-
- //------------------------------------------
- for (var iNo=0; iNo < aCnts.length; iNo++) {
- //if (aCnts[iNo] != "") {
- model.makeValue(pPrntNode+"/"+pDescNm1+"/"+pDescNm2+"["+(Number(iNo)+1+Number(iSNo)) +"]/cnts", aCnts[iNo], true);
- //}
- }
- }
- }
-
- function fExeGridChoi() {
-
- var sSrcNode = "/root/init/testrslt/testcdlist";
-
- //-------------------------------------------------
- model.makeNode("/root/temp/testrslt/patbasicinfo");
-
- //----------------
- model.makeValue("/root/send/instcd", model.getValue(sSrcNode+"/instcd"));
- model.makeValue("/root/send/ptno", model.getValue(sSrcNode+"/ptno"));
- model.makeValue("/root/send/pid", model.getValue(sSrcNode+"/pid"));
- model.makeValue("/root/send/workflagcd", model.getValue(sSrcNode+"/workflagcd"));
- model.makeValue("/root/send/prcpgenrflag", model.getValue(sSrcNode+"/prcpgenrflag"));
- model.makeValue("/root/send/scrno", "10");
- //--------------
- // 검사결과 조회
- submit("TRLPZ00113", false);
- submit("TRLPZ00112");
-
- //-------------------
- // 보고서 타이블 설정
- switch (model.getValue(sSrcNode+"/workflagcd")) {
-
- case "1001" :
- case "1002" :
- model.makeValue("/root/temp/testrslt/patbasicinfo/title", "조직 검사보고서");
- break;
-
- case "1003" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "세포 검사보고서");
- break;
-
- case "1004" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "특수염색 검사보고서");
- break;
-
- case "1005" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "면역염색 검사보고서");
- break;
-
- case "1006" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "면역형광 검사보고서");
- break;
-
- case "1007" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "분자병리 검사보고서");
- break;
-
- case "1008" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "전자현미경 검사보고서");
- break;
-
- case "1009" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "부검 검사보고서");
- break;
-
- case "1012" : model.makeValue("/root/temp/testrslt/patbasicinfo/title", "골수조직 검사보고서");
- break;
- }
- }
-
- /* **********************************
- * ENRSignEngine.js에서 함수를 호출함
- * **********************************
- */
- function fMake_SignData(){
- Sign.addnode("/root/temp/testrslt");
- }
- function fExeMakeCertPrcs() {
-
- var pRowNo = 1;
- var pNode = "/root/init/testrslt/testcdlist";
-
- //-----------------------
- if (Sign.signprocess()) {
- model.makeNode("/root/send/signdata");
- model.makeValue("/root/send/signdata/instcd", model.getValue(pNode+"["+pRowNo+"]/instcd")); // 기관코드
- model.makeValue("/root/send/signdata/pid", model.getValue(pNode+"["+pRowNo+"]/pid")); // 등록번호
- model.makeValue("/root/send/signdata/ptno", model.getValue(pNode+"["+pRowNo+"]/ptno")); // 병리번호
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/temp/testrslt/patbasicinfo/orddd")); // 입원, 응급 : 입원일자, 외래 : 진료일자
- model.makeValue("/root/send/signdata/signno", model.getValue("/root/init/testrslt/testrsltinfoh/signno")); // 서명번호
- model.makeValue("/root/send/signdata/histno", model.getValue("/root/init/testrslt/testrsltinfoh/histno")); // 서명이력번호
- model.makeValue("/root/send/signdata/cretno", model.getValue("/root/temp/testrslt/patbasicinfo/cretno")); // 생성번호
- model.makeValue("/root/send/signdata/recdd", getCurrentDate()); // 실제기록이 이루어진 기록일자
- model.makeValue("/root/send/signdata/rectm", getCurrentTime()); // 실제기록이 이루어진 기록시간
- model.makeValue("/root/send/signdata/recsaveflag", "N"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag", "30"); // 서명자료구분(01 : 진료, 02 : 간호, 30:LIS)
- model.makeValue("/root/send/signdata/signgenrflag", model.getValue(pNode+"["+pRowNo+"]/prcpgenrflag")); // 입원, 외래구분
- model.makeValue("/root/send/signdata/formcd", "0000002726"); // 각 기록지별 서식코드 0000002916 : BM
- model.makeValue("/root/send/signdata/orddeptcd", model.getValue(pNode+"["+pRowNo+"]/orddeptcd")); // 진료과
- model.makeValue("/root/send/signdata/orddrid", model.getValue(pNode+"["+pRowNo+"]/orddrid")); // 진료의ID
- model.makeValue("/root/send/signdata/signbfcnts", Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보), 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
- model.makeValue("/root/send/signdata/signaftcnts", Sign.signedInfos[2]); // 공인인증 처리후 데이터
- } else {
- return false;
- }
- //-------------------------
- if (submit("TXLPR01102")) {
- return true;
- } else {
- return false;
- }
- }
-
- /* @group : 추가결과등록
- * @ver : 2009.07.16 (CMCDEV-0001)
- * @by : 박중규
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 보고서 출력
- */
- function fExeReptPrnt() {
-
- var sAdddiagPtnoList = "";
- var sAddrsltPtnoList = "";
- var iRowCnt = grd_addendumlist.findRow("true", 0, grd_addendumlist.colRef("choi"), true, true);
- var iRowCnt2 = grd_stainlist.findRow("true", 0, grd_stainlist.colRef("choi"), true, true);
-
- //-------------------------------
- if ((iRowCnt <= 0) && (iRowCnt2 <= 0)) {
- messageBox("출력 할 결과를 선택하여 주십시오!", "E999");
- return false;
- }
-
-
- //------------------------------------
- model.makeNode("/root/init/prntinfo");
- model.makeValue("/root/init/prntinfo/reptflagcd", "1"); // 의뢰지(0), 보고서(1)
- model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
- model.makeValue("/root/init/prntinfo/copyflagcd", "0"); // 의뢰지/보고서(0), 복사본(1)
- model.makeValue("/root/init/prntinfo/ptno", model.getValue("/root/init/testrslt/patinfo/ptno"));
- model.makeValue("/root/init/prntinfo/pid", model.getValue("/root/init/testrslt/patinfo/pid"));
- model.makeValue("/root/init/prntinfo/acptdd", model.getValue("/root/init/testrslt/patinfo/acptdd"));
- model.makeValue("/root/init/prntinfo/adddiagprtn", "SPLPR00200");
-
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/addendum/addendumlist") ; iNo++){
- if(model.getValue("/root/main/addendum/addendumlist["+ iNo +"]/choi") == "true") {
- if(sAdddiagPtnoList == "") {
- sAdddiagPtnoList = model.getValue("/root/main/addendum/addendumlist["+ iNo +"]/addrsltdg");
- } else {
- sAdddiagPtnoList += "▦" + model.getValue("/root/main/addendum/addendumlist["+ iNo +"]/addrsltdg");
- }
- }
- }
-
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/init/testrslt/relaptnolist") ; iNo++){
- if(model.getValue("/root/init/testrslt/relaptnolist["+ iNo +"]/choi") == "true") {
- if(sAddrsltPtnoList == "") {
- sAddrsltPtnoList = model.getValue("/root/init/testrslt/relaptnolist["+ iNo +"]/ptno");
- } else {
- sAddrsltPtnoList += "▦" + model.getValue("/root/init/testrslt/relaptnolist["+ iNo +"]/ptno");
- }
- }
- }
-
- model.makeValue("/root/init/prntinfo/adddiaglist", sAdddiagPtnoList);
- model.makeValue("/root/init/prntinfo/addrsltlist", sAddrsltPtnoList);
- lpzfExeFrmPrnt("/root/init/prntinfo");
- }
-
- /* @group : 추가결과등록
- * @ver : 2008.02.13 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과입력 이력 조회 처리 Function
- */
- function fExeRgstHistPopupCall() {
-
- //---------------------------------------------------------------
- setParameter("SMLPR00100_instcd", getUserInfo("dutplceinstcd"));
- setParameter("SMLPR00100_ptno", model.getValue("/root/temp/ptno"));
- setParameter("SMLPR00100_scrnid", "SPLPR00200");
- modal("SPLPR02000");
- }
-
- /* @group : 검체접수취소 화면
- * @ver : 2009.08.04
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 취소사유 처리 함수
- */
- function fbfExeAcptCncl()
- {
- grp_resncancle.visible = true;
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1016" pageheight="677" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:634px; width:1000px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="12" style="left:881px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("RSLT");
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" navindex="13" style="left:941px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClose();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1000px; y2:0px; "/>
- <button id="btn_cnfm" class="btn4_letter4" navindex="11" style="left:798px; top:5px; width:80px; height:22px; ">
- <caption>최종진단</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("LAST");
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter2" navindex="10" style="left:0px; top:5px; width:100px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExePrnt();
- fExeReptPrnt();
- ]]>
- </script>
- </button>
- <button id="btn_cnfmcancle" class="btn4_letter6" navindex="11" style="left:692px; top:5px; width:104px; height:22px; ">
- <caption>최종진단취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbfExeAcptCncl();
- // fExeCmfCancle();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter9" navindex="12" visibility="hidden" style="left:550px; top:5px; width:140px; height:22px; ">
- <caption>불일치정도평가저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sflag = model.getValue("/root/temp/ptno") + "▦" + model.getValue("/root/temp/rgstno") ;
- setParameter("opener_parameter_id", sflag);
- modal("SMLPP02900", 1, "", 100, "", "", "", "left:0; right:; width:0; height:0; min:hidden, max:hidden;");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" style="left:0px; top:0px; width:1000px; height:635px; ">
- <button id="btn_diag1002" style="left:595px; top:345px; width:20px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeDiagPopup();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:11px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">추가결과 차수목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:283px; y2:26px; "/>
- <caption id="caption2" class="tit_2" autoresize="true" style="left:288px; top:349; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">진단(M)</caption>
- <line id="line2" class="line_1" style="x1:288px; y1:364px; x2:997px; y2:364px; "/>
- <textarea id="tar_addendum" ref="/root/temp/readrslt" navindex="7" style="left:288px; top:370px; width:709px; height:115px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeCntsView("진단(M)", document.controls(event.currentTarget));
- ]]>
- </script>
- </textarea>
- <datagrid id="grd_addendumlist" nodeset="/root/main/addendum/addendumlist" class="datagrid2" allowselection="true" caption="기관코드^ptno^병리번호^선택^차수^등록일자^등록
시간^판독의ID^판독의사^판독추가기준^판독결과^Comment^rgstno^diagcnts^etccnts^진단일자^cnfmtm^cnfmid^진단의^rgstnm" colsep="^" colwidth="0, 0, 0, 33, 34, 70, 54, 0, 70, 0, 0, 0, 0, 0, 0, 80, 0, 0, 70, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowsep="|" navindex="1" style="left:0px; top:31px; width:283px; height:308; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="addrsltdg"/>
- <col ref="rgstdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="rgsttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="readdrid"/>
- <col ref="readdrnm"/>
- <col ref="readaddbase"/>
- <col ref="readrslt"/>
- <col ref="cmtcnts"/>
- <col ref="rgstno"/>
- <col ref="diagcnts"/>
- <col ref="etccnts"/>
- <col ref="cnfmdd"/>
- <col ref="cnfmtm"/>
- <col ref="cnfmid"/>
- <col ref="cnfmnm"/>
- <col ref="rgstnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeAddRsltGridClick(grd_addendumlist.row);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_addendumlist", false, "/root/init/popupmenu/item", "nm", "funt");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ((grd_addendumlist.col == grd_addendumlist.colRef("choi")) && (grd_addendumlist.row >= grd_addendumlist.fixedRows) && (grd_addendumlist.isCell(event.target))){
- model.makeValue("/root/main/addendum/addendumlist["+grd_addendumlist.row+"]/choi", grd_addendumlist.valueMatrix(grd_addendumlist.row, grd_addendumlist.col));
- }
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea1" ref="/root/temp/cmtcnts" navindex="8" style="left:288px; top:510px; width:709px; height:121px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeCntsView("Comments", document.controls(event.currentTarget));
- ]]>
- </script>
- </textarea>
- <caption id="caption3" class="tit_2" autoresize="true" style="left:288px; top:490px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">Comments</caption>
- <line id="line4" class="line_1" style="x1:288px; y1:505px; x2:996px; y2:505px; "/>
- <caption id="caption4" class="tit_2" autoresize="true" style="left:5px; top:349px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">관련 병리번호</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:364px; x2:283px; y2:364px; "/>
- <datagrid id="grd_stainlist" nodeset="/root/init/testrslt/relaptnolist" class="datagrid2" allowselection="true" caption="ptno^선택^병리번호^접수일자^검사항목^결과" colsep="^" colwidth="0, 33, 80, 70, 143, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowsep="|" navindex="2" style="left:0px; top:369px; width:283px; height:262px; ">
- <col ref="ptno"/>
- <col ref="choi" type="checkbox"/>
- <col ref="dispptno"/>
- <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="testhngnm"/>
- <col ref="testrslt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ((grd_stainlist.col != grd_stainlist.colRef("choi")) && (grd_stainlist.row >= grd_stainlist.fixedRows) && (grd_stainlist.isCell(event.target))){
- fExeTestCdGridClick(grd_stainlist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ((grd_stainlist.col == grd_stainlist.colRef("choi")) && (grd_stainlist.row >= grd_stainlist.fixedRows) && (grd_stainlist.isCell(event.target))){
- model.makeValue("/root/init/testrslt/relaptnolist["+grd_stainlist.row+"]/choi", grd_stainlist.valueMatrix(grd_stainlist.row, grd_stainlist.col));
- }
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea2" ref="/root/temp/readaddbase" navindex="3" style="left:288px; top:31px; width:709px; height:39px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeCntsView("판독 추가기준", document.controls(event.currentTarget));
- ]]>
- </script>
- </textarea>
- <caption id="caption5" class="tit_2" autoresize="true" style="left:293px; top:11px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">판독 추가기준</caption>
- <line id="line6" class="line_1" style="x1:288px; y1:26px; x2:997px; y2:26px; "/>
- <caption id="caption6" style="left:832px; top:77px; width:65px; height:13px; font-weight:bold; ">판독의사</caption>
- <select1 id="cmb_readdrid" ref="/root/temp/readdrid" navindex="5" appearance="minimal" style="left:890px; top:74px; width:106px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/temp/mpphonno" navindex="4" style="left:723px; top:74px; width:102px; height:19px; "/>
- <caption id="caption7" style="left:678px; top:77px; width:43px; height:14px; font-weight:bold; ">연락처</caption>
- <caption id="caption8" class="tit_2" autoresize="true" style="left:288px; top:79px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">판독결과</caption>
- <line id="line3" class="line_1" style="x1:288px; y1:94px; x2:997px; y2:94px; "/>
- <textarea id="textarea3" ref="/root/temp/diagcnts" navindex="6" style="left:288px; top:99px; width:709px; height:240px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeCntsView("판독결과", document.controls(event.currentTarget));
- ]]>
- </script>
- </textarea>
- <output id="opt_cnfmdd" ref="/root/temp/cnfmdd" format="yyyy-mm-dd" style="left:713px; top:344px; width:100px; height:19px; border-color:#000000; border-width:1px; border-style:solid; "/>
- <output id="opt_cnfmtm" ref="/root/temp/cnfmtm" format="hh:nn:ss" style="left:815px; top:344px; width:80px; height:19px; border-color:#000000; border-width:1px; border-style:solid; "/>
- <output id="opt_cnfmnm" ref="/root/temp/cnfmnm" style="left:897px; top:344px; width:100px; height:19px; border-color:#000000; border-width:1px; border-style:solid; "/>
- <output id="opt_cnfmid" ref="/root/temp/cnfmid" visibility="hidden" style="left:890px; top:5px; width:100px; height:19px; "/>
- <caption id="caption9" style="left:630px; top:349px; width:80px; height:14px; font-weight:bold; ">최종진단정보</caption>
- <group id="grp_prnt" visibility="hidden" style="left:400px; top:55px; width:430px; height:255px; "/>
- <input id="input2" ref="/root/temp/etccnts" navindex="9" maxlength="300" style="left:330px; top:344px; width:260px; height:19px; "/>
- <group id="grp_rsltcnts" visibility="hidden" style="left:13px; top:70px; width:975; height:520px; color:#ff0000; background-color:#fcd2c1; border-color:#f7a08b; border-left-color:#c0c0c0; border-top-color:#c0c0c0; border-right-color:#808080; border-bottom-color:#808080; border-width:2; border-style:solid; ">
- <line id="line7" class="line_1" style="x1:0px; y1:15px; x2:970px; y2:15px; "/>
- <textarea id="tar_rsltcnts" ref="/root/hidden/rsltcont" style="left:0px; top:20px; width:970px; height:463px; font-family:굴림체; font-size:16pt; "/>
- <button id="btn_rsltclose" class="btn4_letter2" style="left:913px; top:488px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCloseCntsView();
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_2" style="left:5px; top:0px; width:343px; height:13px; ">판독결과</caption>
- <caption id="cap_cnclresn" class="cell_2" visibility="hidden" style="left:2px; top:279px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">취소사유</caption>
- <select1 id="cbo_cnclresn" ref="/root/hidden/resncd" class="combo_default" navindex="11" visibility="hidden" appearance="minimal" style="left:88px; top:278px; width:760px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line10" class="line_3" visibility="hidden" style="x1:2px; y1:301px; x2:800px; y2:301px; "/>
- <line id="line11" class="line_3" visibility="hidden" style="x1:2px; y1:277px; x2:800px; y2:277px; "/>
- </group>
- <button id="btn_rgsthist" style="left:268px; top:7px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRgstHistPopupCall();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_resncancle" visibility="hidden" style="left:300px; top:260px; width:420px; height:75px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:5px; width:411px; height:65px; background-color:#fffbf2; border-color:#ffd799; border-width:3px; "/>
- <caption id="caption10" class="cell_2" style="left:15px; top:15px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">취소사유</caption>
- <line id="line8" class="line_3" style="x1:16px; y1:15px; x2:400px; y2:15px; "/>
- <line id="line9" class="line_3" style="x1:16px; y1:60px; x2:400px; y2:60px; "/>
- <button id="btn_cncresn" class="btn2_letter4" navindex="16" style="left:334px; top:19px; width:64px; height:19px; ">
- <caption>확인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCmfCancle();
- grp_resncancle.visible = false;
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/hidden/resncd" class="combo_default" navindex="11" appearance="minimal" style="left:15px; top:40px; width:383px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|