123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPU00400_인터넷검사접수
- * 설 명 : 인터넷검사접수
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2008.07.12
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>인터넷검사접수</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <trsttest>
- <trsttestlist>
- <choi/>
- <instcd/>
- <reqdd/>
- <testnm>
- <![CDATA[]]>
- </testnm>
- <spcnm>
- <![CDATA[]]>
- </spcnm>
- <trustinstcd/>
- <trustinstnm>
- <![CDATA[]]>
- </trustinstnm>
- <trustpid/>
- <pid>-</pid>
- <patnm>
- <![CDATA[]]>
- </patnm>
- <sex/>
- <age/>
- <rrgstno/>
- <psptno/>
- <spcflagcd/>
- <forgnerflagcd/>
- <bcolldt/>
- <bcno/>
- <ptno/>
- <relaptno/>
- <brthdd/>
- <reqseqno/>
- <tclscd/>
- <spccd/>
- <reqcnts>
- <![CDATA[<reqfrminfo><spcsite>2</spcsite><choispc><choispclist><choi>true</choi><spcseqno>001</spcseqno><spccd>TCBF08</spccd><spccd2/><spcnm>Ovary cyst</spcnm></choispclist></choispc><inptitem01/><reqcnts>test</reqcnts></reqfrminfo>]]>
- </reqcnts>
- <uncocd/>
- <rrgstno1/>
- <rrgstno2/>
- <reqno/>
- <signbfcnts/>
- <signafcnts/>
- <orddeptcd/>
- <orddrid/>
- <cretno/>
- <orddd/>
- <grupsnglflag/>
- <spcseqno/>
- <spcseqcd/>
- <spcseqnm/>
- <deptflagcd/>
- <conttestintvlflagcd/>
- <conttestorgtims/>
- <conttestbasetm/>
- <bfptnoref/>
- <dummy/>
- <trustreqfrmno/>
- <acptflagcd/>
- <babyflagcd/>
- <zipcdseq/>
- <zipcd1/>
- <zipcd2/>
- <zipcdaddr/>
- <detladdr/>
- </trsttestlist>
- </trsttest>
- <cert>
- <certdata/>
- </cert>
- <newpat>
- <newpatlist>
- <instcd/>
- <pid/>
- </newpatlist>
- </newpat>
- <barcd>
- <barcdlist>
- <pid/>
- </barcdlist>
- </barcd>
- </main>
- <send/>
- <init>
- <coophosp>
- <coophosplist>
- <instcd/>
- <coophospcd/>
- <coophospnm/>
- <uncocd/>
- </coophosplist>
- </coophosp>
- <deptuser>
- <deptuserlist>
- <instcd/>
- <userid/>
- </deptuserlist>
- </deptuser>
- <fromdd/>
- <todd/>
- <acptflagcd/>
- <pid/>
- <cmcpid/>
- <coophospcd/>
- <deptflagcd/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <reqfrm>
- <rqfrminfo/>
- </reqfrm>
- <userinfo>
- <userinfolist/>
- </userinfo>
- <prcpdrid/>
- </init>
- <hidden>
- <popupmenu>
- <grid>
- </grid>
- </popupmenu>
- </hidden>
- <message/>
- </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="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- lzzfMakeBrcdPrntObjHanDo("CommAX");
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/coophosp/coophosplist"/>
- <submission id="TRLPU00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptuser/deptuserlist"/>
- <submission id="TRLPU00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trsttest/trsttestlist"/>
- <submission id="TXLPU00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/barcd/barcdlist"/>
- <submission id="TXLPU00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trsttest/trsttestlist"/>
- <submission id="TRLPU00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRLZZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 인터넷검사접수
- * @ver : 2008.07.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
-
- var sCurDate = "";
- var iMaxRowCnt = 0;
-
- //--------------------------------------------------------------------------
- // 전자인증 초기화 함수(필수) - 전자인증 ACTIVEX 모듈 동적으로 추가하는 함수
- //zesfInitSign();
-
- //---------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRLPZ00102", false);
- submit("TRLPU00401", false);
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- model.makeValue("/root/init/fromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/todd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/acptflagcd", "0");
- model.makeValue("/root/init/pid", "");
- model.makeValue("/root/init/coophospcd", "");
-
- //------------------------------------------
- // 사용자목록이 없을 경우 병리과로 인식한다.
- if (getNodesetCount("/root/init/deptuser/deptuserlist") > 0) {
- model.makeValue("/root/init/deptflagcd", "0"); // 진단검사
- } else {
- model.makeValue("/root/init/deptflagcd", "1"); // 병리과
- //btn_lastsave.visible = true;
- }
-
- model.makeValue("/root/send/deptflagcd", model.getValue("/root/init/deptflagcd"));
- submit("TRLPJ02302");
-
- //------------------------------------------------------
- model.removeNodeset("/root/main/trsttest/trsttestlist");
-
- //---------------------------------------------------------------
- iMaxRowCnt = getNodesetCount("/root/init/coophosp/coophosplist");
- model.makeValue("/root/init/coophosp/coophosplist["+(Number(iMaxRowCnt)+1)+"]/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/init/coophosp/coophosplist["+(Number(iMaxRowCnt)+1)+"]/coophospcd", "ZZZZZ");
- model.makeValue("/root/init/coophosp/coophosplist["+(Number(iMaxRowCnt)+1)+"]/coophospnm", "전체");
- model.makeValue("/root/init/coophosp/coophosplist["+(Number(iMaxRowCnt)+1)+"]/uncocd", "-");
- model.makeValue("/root/init/coophospcd", "ZZZZZ");
-
- //---------------------------------------------------
- if (model.getValue("/root/init/deptflagcd") == "0") {
-
- grd_trstlist.colHidden(grd_trstlist.colRef("relaptno")) = true; // 이전병리번호
- grd_trstlist.colHidden(grd_trstlist.colRef("bfptnoref")) = true; // 이전병리번호
-
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestintvlflagcd")) = false; // 연속검사간격
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestorgtims")) = false; // 연속검사횟수
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestbasetm")) = false; // 연속검사기본시간
-
- cmb_orddrid.visible = true; // 후인증의사 콤보
- cap_orddrid.visible = true; // 후인증의사 캡션
- //cap_searchTxt.attribute("text") = "바코드번호 :";
-
- submit("TRLPU00403", false); // 진검
-
- } else {
-
- grd_trstlist.colHidden(grd_trstlist.colRef("relaptno")) = false; // 이전병리번호
- grd_trstlist.colHidden(grd_trstlist.colRef("bfptnoref")) = false; // 이전병리번호
-
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestintvlflagcd")) = true; // 연속검사간격
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestorgtims")) = true; // 연속검사횟수
- grd_trstlist.colHidden(grd_trstlist.colRef("conttestbasetm")) = true; // 연속검사기본시간
-
- grd_trstlist.colHidden(grd_trstlist.colRef("addr")) = true; // 주소
-
- cmb_orddrid.visible = false; // 후인증의사 콤보
- cap_orddrid.visible = false; // 후인증의사 캡션
- //cap_searchTxt.attribute("text") = "병리번호 :";
- }
-
- //-----------------------
- cmb_coophospcd.refresh();
- model.refresh();
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 위탁검사목록 조회 Function
- */
- function fGetTrustList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/trsttest/trsttestlist");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/deptflagcd", model.getValue("/root/init/deptflagcd"));
- model.makeValue("/root/send/trustinstcd", model.getValue("/root/init/coophospcd"));
- model.makeValue("/root/send/fromdd", model.getValue("/root/init/fromdd"));
- model.makeValue("/root/send/todd", model.getValue("/root/init/todd"));
- model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); //의뢰병원등록번호
- model.makeValue("/root/send/cmcpid", model.getValue("/root/init/cmcpid")); //CMC등록번호
- //model.makeValue("/root/send/searchTxt", model.getValue("/root/init/searchTxt")); //진검:바코드번호, 병리:병리번호
- model.makeValue("/root/send/acptstatcd", model.getValue("/root/init/acptflagcd"));
-
- //-------------------
- submit("TRLPU00402");
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 위탁검사목록 조회 Function
- */
- function fExeSaveToExcel() {
- grd_trstlist.saveExcel("C:\\SMLPU00400_인터넷검사접수.xls", "인터넷검사접수", false, false);
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 인터넷 검사의뢰 접수 처리 Function
- */
- function fExeTrustSave(pFlagCd) {
-
- var iFindNo = 0;
- var sNode = "/root/main/trsttest/trsttestlist";
-
- //---------------------------------------------------------
- iFindNo = grd_trstlist.findRow("true", 1, 0, false, false);
- if (Number(iFindNo) <= 0) {
- messageBox("접수할 검사를 선택하여 주십시오!", "I");
- return false;
- }
-
- if((model.getValue("/root/init/deptflagcd") =="0") && (model.getValue("/root/init/prcpdrid")=="")){
- messageBox("후인증 의사를 선택하여 주십시오!", "I");
- return false;
- }// 후인증 의사 선택
-
- //-------------------------
- grd_trstlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/acptflagcd", pFlagCd);
- grd_trstlist.addStatus(iNo, "insert");
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/barcd/barcdlist");
- model.removeNodeset("/root/main/newpat/newpatlist");
- model.makeValue("/root/send/patlist", grd_trstlist.getUpdateData());
-
- if(model.getValue("/root/init/deptflagcd") =="0"){
- model.makeValue("/root/send/doctid", model.getValue("/root/init/prcpdrid"));
- }
- //------------------------------------
- // 환자의 등록번호 발생(다중으로 생성)
- if (!submit("TXLPU00402")) {
- messageBox("CMCnU의 환자에 대한 등록번호 생성 중 오류가 발생하였습니다!", "I");
- return false;
- }
-
-
- //------------------------------------
- // 인증자료를 생성하여 처방자료에 추가
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
-
- //----------------
- // 인증데이타 생성
- grd_trstlist.addStatus(iNo, "insert");
- model.removeNodeset("/root/main/cert/certdata");
- model.makeNode("/root/main/cert/certdata");
- copyNodesetType("/root/main/cert/certdata", sNode+"["+iNo+"]");
-
- if(model.getValue("/root/init/deptflagcd") =="1"){ // 병리만 인증저장함
- //----------------
- // 암호화자료 생성
- if (Sign.signprocess()) {
- model.setValue(sNode+"["+iNo+"]/signbfcnts", Sign.signedInfos[1]); // 인증 전 자료
- model.setValue(sNode+"["+iNo+"]/signafcnts", Sign.signedInfos[2]); // 인증 후 자료
- } else {
- return false;
- }
-
- }// 병리만 인증저장함
-
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/testlist", grd_trstlist.getUpdateData());
-
- if(model.getValue("/root/init/deptflagcd") =="0"){
- model.makeValue("/root/send/doctid", model.getValue("/root/init/prcpdrid"));
- model.makeValue("/root/send/doctnm", cmb_orddrid.label);
- }
-
- //-------------------------
- if (submit("TXLPU00401")) {
- fExeBarCdPrnt("/root/main/barcd/barcdlist"); // 바코드 출력
-
- //-----------------------------------------
- model.removeNodeset(sNode+"[choi='true']");
- }
-
- //---------------------
- grd_trstlist.refresh();
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 인터넷 검사의뢰 접수 처리 Function
- * : ENRSignEngine.js에서 함수를 호출함
- */
- function fMake_SignData() {
- Sign.addnode("/root/main/cert/certdata");
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수바코드 출력 처리 Function
- */
- function fExeBarCdPrnt(pNode) {
-
- //-------------------------------------------
- // 공통 바코드 출력함수 사용을 위한 노드 생성
- for (var iNo=1; iNo <= getNodesetCount(pNode); iNo++) {
- model.makeValue(pNode+"["+iNo+"]/spcbarcdno", model.getValue(pNode+"["+iNo+"]/barcdno"));
- model.makeValue(pNode+"["+iNo+"]/wardroom", model.getValue(pNode+"["+iNo+"]/wardnm"));
- model.makeValue(pNode+"["+iNo+"]/spcdispnm", model.getValue(pNode+"["+iNo+"]/spcnm"));
- model.makeValue(pNode+"["+iNo+"]/prcpdispnm", model.getValue(pNode+"["+iNo+"]/testnm"));
- }
-
- //--------------------------------------------------------------------
- lpzfAcptBarCd("0", model.getValue("/root/hidden/acptenv/barcdprntcnt"), pNode, "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드 프린터 환경설정 처리 Function
- */
- function fExeBarCdPopupCall() {
-
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭 처리 Function
- */
- function fExeGridClick() {
-
- //------------------------------------------------------------------------------------
- fExeGridSelect(grd_trstlist.row, grd_trstlist.col);
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 Row 선택 처리 Function
- */
- function fExeGridSelect(pRow, pCol) {
- var sNode = "/root/main/trsttest/trsttestlist";
-
- //-------------------------------
- // 의뢰지 컬럼을 선택한 경우 처리
- switch (pCol) {
- case 42 : fExeReqFrmCall(model.getValue(sNode+"["+pRow+"]/reqcnts"));
- break;
- case 18 : fExeBfPtNoCall(pRow);
- break;
- }
- //진검일경우 상단정보
- if(model.getValue("/root/init/deptflagcd") =="0"){
- fUpPatinfo();
- }
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 의뢰지내용 팝업호출 처리 Function
- */
- function fExeReqFrmCall(pReqCnts) {
-
- var sHdrNode = "<?xml version='1.0' encoding='euc-kr'?>";
- sHdrNode += "<root>"+pReqCnts+"</root>";
- iviewer1.window.instance1.loadXML(sHdrNode);
- model.copyNode(root.init.reqfrm, iviewer1.window.instance1.selectSingleNode("/root"));
-
- //-----------------------------------------------------------------------------
- setParameter("SMLPU00400_deptflagcd", model.getValue("/root/init/deptflagcd"));
- modal("SPLPU00500", "", "", "", "SPLPU00500", "/root/init/reqfrm", "/root/main/reqfrm");
- }
-
- /* @group : 인터넷검사접수
- * @ver : 2008.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이전 병리번호목록 팝업호출 처리 Function
- */
- function fExeBfPtNoCall(pRow) {
-
- var sNode = "/root/main/trsttest/trsttestlist";
-
- //------------------------------------------------------------------
- model.property("pid") = model.getValue(sNode+"["+pRow+"]/pid");
- model.property("ptno") = "";
- model.property("dispptno") = "";
- model.property("instcd") = getUserInfo("dutplceinstcd");
-
- //---------------------------
- // 병리번호리스트 팝업창 표시
- modal("SPLPJ02100");
-
- //--------------------------------------------------------------
- model.setValue(sNode+"["+pRow+"]/ptno", model.property("ptno"));
- grd_trstlist.refresh();
- }
-
- //2009.11.23 김성희 추가
- //진검 일때 마우스 오른쪽 메뉴 - 외래채혈, 환자별채혈
- function fGetMouseDown(){
- var deptflag = model.getValue("/root/init/deptflagcd");
- model.removeNodeset("/root/hidden/popupmenu/grid");
- if(deptflag == "0"){
- fUpPatinfo();
-
- model.makeNode("/root/hidden/popupmenu/grid/item");
- model.makeValue("/root/hidden/popupmenu/grid/item/name" , "▶외래 채혈관리");
- model.makeValue("/root/hidden/popupmenu/grid/item/func" , "fGetOutBcoll");
-
- model.makeNode("/root/hidden/popupmenu/grid/item[2]");
- model.makeValue("/root/hidden/popupmenu/grid/item[2]/name" , "▶환자별 채혈관리");
- model.makeValue("/root/hidden/popupmenu/grid/item[2]/func" , "fGetOutInBcoll");
- }
-
- if(grd_trstlist.isCell(event.target) && grd_trstlist.mouseRow >= grd_trstlist.fixedrows){
- window.setPopupMenu(true, "/root/hidden/popupmenu/grid/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
-
- function fGetOutBcoll(){
- modal("SMLLC00100", "1", "", "", "SMLLC00100", "", "");
- }
-
- function fGetOutInBcoll(){
- modal("SMLLC00300", "1", "", "", "SMLLC00300", "", "");
- }
-
- function fUpPatinfo(){
- //alert(getPatientInfo("pid"));
- //alert(model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.mouseRow +"]/pid"));
- grd_trstlist.row = grd_trstlist.mouseRow;
- if(getPatientInfo("pid") != model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.row +"]/pid")) {
- model.makeValue("/root/send/pid", model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.row +"]/pid"));
- submit("TRLZZ00109");
-
- if(model.getValue("/root/init/prcpinfo/pid")!=""){
- setParameter("errflag", "Y");
-
- //var ordtype = "";
- var genrflag = model.getValue("/root/init/prcpinfo/genrflag");
- //DSC 환자인 경우 genrflag를 I 로 보냄. 오류나서 2008.12.03 김성희 수정
- //SPMMO08900.js 파일(fInitialize_SPMMO08900())에서 genrflag가 "D"인 것을 처리하는 구문이 없음.("I" 로 처리해야함.)
- if(genrflag =="D"){
- genrflag = "I";
- }
-
- //modal("SPMMO08900");
- if((genrflag == "I") || (genrflag =="E")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" + // seqno
- model.getValue("/root/init/prcpinfo/todd") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd")); // 임시로
-
- }else if((genrflag =="O") || (genrflag =="S")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" +
- model.getValue("/root/init/prcpinfo/orgorddd") + "▦");
-
- }
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.row +"]/pid"))){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.row +"]/pid");
- var hngnm = model.getValue("/root/main/trsttest/trsttestlist["+ grd_trstlist.row +"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">인터넷 수탁검사 접수</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_no_b" style="left:197px; top:8px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:52px; "/>
- <input id="ipt_acptddfrom" ref="/root/init/fromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:100px; top:8px; width:94px; height:19px; "/>
- <input id="ipt_acptddto" ref="/root/init/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:212px; top:8px; width:94px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:701px; top:9px; width:86px; height:17px; ">위탁기관 :</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1128px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTrustList();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" autoresize="true" style="left:11px; top:33px; width:143px; height:17px; ">의뢰병원 등록번호 :</caption>
- <caption id="cap_ddflagcd" class="search_name" style="left:11px; top:9px; width:86px; height:17px; ">의뢰일자 :</caption>
- <caption id="caption2" class="search_name" style="left:378px; top:9px; width:91px; height:17px; ">접수구분 :</caption>
- <select1 id="cmb_coophospcd" ref="/root/init/coophospcd" class="combo_search" navindex="5" appearance="minimal" style="left:790px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/coophosp/coophosplist">
- <label ref="coophospnm"/>
- <value ref="coophospcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_trustpid" ref="/root/init/pid" navindex="4" maxlength="20" style="left:160px; top:32px; width:87px; height:19px; "/>
- <select1 id="cmb_acptflagcd" ref="/root/init/acptflagcd" class="combo_search" navindex="3" appearance="minimal" style="left:470px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>의뢰</label>
- <value>0</value>
- </item>
- <item>
- <label>접수</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/init/acptflagcd") == "1" ){
- btn_save.disabled = true;
- //btn_lastsave.disabled = true;
- }else{
- btn_save.disabled = false;
- //btn_lastsave.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" autoresize="true" style="left:378px; top:33px; width:143px; height:17px; ">CMCnU 등록번호 :</caption>
- <input id="ipt_cmcpid" ref="/root/init/cmcpid" navindex="4" maxlength="20" style="left:525px; top:32px; width:100px; height:19px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:85px; width:139px; height:13px; ">위탁검사정보</caption>
- <datagrid id="grd_trstlist" nodeset="/root/main/trsttest/trsttestlist" class="datagrid2" caption="선
택^instcd^요청일자^검사^검체^trustinstcd^의뢰병원^의뢰병원
등록번호^CMCnU
등록번호^환자명^성별^나이^주민번호^여권
번호^검체구분^외국인^채혈일시^이전
병리번호^이전
병리번호^연속검사
간격^연속검사
횟수^연속검사
기본시간^의뢰지^신생아^주소^바코드번호^병리번호^brthdd^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^cretno^orddd^grupsnglflag^spcseqno^spcseqcd^spcseqnm^deptflagcd^trustreqfrmno^acptflagcd" colsep="^" colwidth="26, 0, 70, 100, 90, 0, 100, 80, 80, 60, 36, 36, 100, 50, 60, 60, 120, 80, 20, 60, 60, 60, 70, 70, 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" tooltip="label" navindex="8" style="left:0px; top:105px; width:1194px; height:630px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="reqdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col ref="trustinstcd"/>
- <col class="text_center" ref="trustinstnm"/>
- <col class="text_center" ref="trustpid"/>
- <col class="text_center" ref="pid" type="input"/>
- <col class="text_center" ref="patnm"/>
- <col class="text_center" ref="sex"/>
- <col class="text_center" ref="age"/>
- <col class="text_center" ref="rrgstno"/>
- <col class="text_center" ref="psptno"/>
- <col class="text_center" ref="spcflagcd" type="combo">
- <choices>
- <item>
- <label>검체</label>
- <value>0</value>
- </item>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col class="text_center" ref="forgnerflagcd" type="combo">
- <choices>
- <item>
- <label>내국인</label>
- <value>N</value>
- </item>
- <item>
- <label>외국인</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col class="text_center" ref="bcolldt"/>
- <col class="text_center" ref="relaptno"/>
- <col class="icon_search" ref="bfptnoref"/>
- <col ref="conttestintvlflagcd" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>N</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>
- <item>
- <label>식전/후</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="conttestorgtims"/>
- <col ref="conttestbasetm"/>
- <col ref="brthdd"/>
- <col class="text_center" ref="babyflagcd" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="addr"/>
- <col ref="bcno"/>
- <col ref="ptno"/>
- <col ref="reqseqno"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <col ref="reqcnts"/>
- <col ref="uncocd"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="reqno"/>
- <col ref="signbfcnts"/>
- <col ref="signafcnts"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col ref="cretno"/>
- <col ref="orddd"/>
- <col ref="grupsnglflag"/>
- <col ref="spcseqno"/>
- <col ref="spcseqcd"/>
- <col ref="spcseqnm"/>
- <col ref="deptflagcd"/>
- <col class="icon_search" ref="dummy"/>
- <col ref="trustreqfrmno"/>
- <col ref="acptflagcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_trstlist.isCell(event.target) && grd_trstlist.row >= grd_trstlist.fixedRows) {
- fExeGridClick();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_trstlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fGetMouseDown();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <iviewer id="iviewer1" visibility="hidden" src="SPLPU00600_viewer.xrw" style="left:180px; top:80px; width:65px; height:15px; border-style:sunken; "/>
- <select1 id="cmb_orddrid" ref="/root/init/prcpdrid" visibility="hidden" appearance="minimal" style="left:1094px; top:78px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_orddrid" class="cell_1" visibility="hidden" style="left:1010px; top:76px; width:81px; height:23px; font-family:돋움; vertical-align:middle; ">후인증 의사</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button13" class="btn6_letter5" navindex="7" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- lpzfExeSaveToExcel(grd_trstlist, "인터넷검사접수");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="25" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTrustSave("J");
- ]]>
- </script>
- </button>
- <button id="btn_prntset" class="btn3_letter5" style="left:100px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarCdPopupCall();
- ]]>
- </script>
- </button>
- <button id="btn_lastsave" class="btn4_letter7" navindex="25" visibility="hidden" style="left:1019px; top:3px; width:116px; height:22px; ">
- <caption>접수(결과완료)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTrustSave("L");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|