123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPR00300_자문결과등록.xrw
- * 설 명 : 자문결과등록 팝업창(검사결과등록)
- * 설 계 자 :
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2007.06.14
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?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>
- <reqfrm>
- <reqfrmtbl>
- <reqfrminfo>
- <reqcnts/>
- <choispc>
- <choispclist>
- <choi/>
- <spcseqno/>
- <spccd/>
- <spcnm/>
- </choispclist>
- </choispc>
- </reqfrminfo>
- </reqfrmtbl>
- </reqfrm>
- <cnstrslt>
- <cnstrsltinfo>
- <instcd/>
- <ptno/>
- <cnstdg/>
- <cnstflagcd/>
- <casedcuscd/>
- <trsmdd/>
- <trsmtm/>
- <trsmid/>
- <trsmnm/>
- <diagdd/>
- <diagtm/>
- <cnsthospcd/>
- <cnstdrid/>
- <cnstdrnm/>
- <hosoutcnsthospnm/>
- <hosoutcnstdrid/>
- <hosoutcnstdrnm/>
- <estmdiagcnts/>
- <cnstdiagcnts/>
- <reqfrminfo/>
- <mpphonno/>
- <cntctelno/>
- <estmdiagstat>1000</estmdiagstat>
- </cnstrsltinfo>
- </cnstrslt>
- <cnstrslt>
- <cnstrsltlist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <cnstdg/>
- <cnstflagcd/>
- <casedcuscd/>
- <trsmdd/>
- <trsmtm/>
- <trsmid/>
- <trsmnm/>
- <diagdd/>
- <diagtm/>
- <cnsthospcd/>
- <cnstdrid/>
- <cnstdrnm/>
- <hosoutcnsthospnm/>
- <hosoutcnstdrid/>
- <hosoutcnstdrnm/>
- <estmdiagcnts/>
- <cnstdiagcnts/>
- <mpphonno/>
- <cntctelno/>
- </cnstrsltlist>
- </cnstrslt>
- </main>
- <send/>
- <init>
- <instcdlist>
- <Z0007>
- <cdid/>
- <cdnm/>
- </Z0007>
- </instcdlist>
- <testrslt>
- <patinfo>
- <ptno/>
- <patnm/>
- <rrgstno/>
- <pid/>
- <sexage/>
- <acptdd/>
- <readdd/>
- <grosdrid/>
- <grosdrnm/>
- <spcnm/>
- </patinfo>
- </testrslt>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <cnstdr>
- <cnsltlist>
- <instcd/>
- <hospnm/>
- <dutydeptnm/>
- <cnstdrid/>
- <cnstdrnm/>
- <cntctelno/>
- </cnsltlist>
- </cnstdr>
- </init>
- <hidden>
- </hidden>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(0, 50, 1179, 678, "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="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRLPC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cnstdr/cnsltlist"/>
- <submission id="TRLPR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cnstrslt/cnstrsltlist"/>
- <submission id="TXLPR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 처리 Function
- */
- function fExeInitialize() {
-
- //----------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101");
- submit("TRLPZ00102");
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
-
- //----------------------------------------------------------------------------------
- model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/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");
-
- //--------------------------------------------------
- // 자문정보(J1), Case to be discussed(J2) 목록 조회
- model.makeValue("/root/send/baseflagcd", "'J1', 'J2', 'J3'");
- //alert(model.getValue("/root/send/baseflagcd"));
- submit("TRLPZ00103");
-
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
-
- //-----------------------------------------------------------------------------------------------
- zbcfGetCodeList(new Array("Z0007"), new Array("/root/init/instcdlist", "/root/init/instcdlist"));
-
- //-------------------
- // 자문의사 목록 조회
- model.makeValue("/root/send/delflagcd", "0");
- model.makeValue("/root/send/refflag", "0");
- model.makeValue("/root/send/refval", "");
- submit("TRLPC01201");
- //----------------------
- model.toggle("case_in");
- btn_incnst.selected = true;
-
-
- //------------
- // 초기값 설정
- fExeValInit();
-
- //------------------
- // 자문결과목록 검색
- fGetCnstRsltList();
-
- //--------------
- model.refresh();
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문정보 초기값 설정 처리 Function
- */
- function fExeValInit() {
-
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd", "1001");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstcasecd", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/casedcuscd", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/trsmid", getUserInfo("userid"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/trsmdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/trsmtm", model.getValue("/root/init/sysdt/sysdtinfo/systm"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/diagdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/diagtm", model.getValue("/root/init/sysdt/sysdtinfo/systm"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnsthospcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstdrid", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnsthospnm", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrnm", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/estmdiagcnts", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstdiagcnts", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/reqfrminfo", "");
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방의뢰지 정보 검색 처리 Function
- */
- function fGetReqFrmInfo() {
-
- var sReqInfoNode = "/root/init/testrslt/patinfo";
-
- //----------------------------------------------------------------------------------------
- model.makeValue("root/hidden/reqfrminfo/pid", model.getValue(sReqInfoNode+"/pid"));
- model.makeValue("root/hidden/reqfrminfo/testcd", opener.javascript.getParameter("SMLPR00100_prcpcd"));
- model.makeValue("root/hidden/reqfrminfo/testhngnm", opener.javascript.getParameter("SMLPR00100_prcpnm"));
- model.makeValue("root/hidden/reqfrminfo/opnm", "");
- model.makeValue("root/hidden/reqfrminfo/reprspccd", opener.javascript.getParameter("SMLPR00100_spccd"));
- model.makeValue("root/hidden/reqfrminfo/spcnm", model.getValue(sReqInfoNode+"/spcnm"));
- model.makeValue("root/hidden/reqfrminfo/reqfrmno", opener.javascript.getParameter("SMLPR00100_reqfrmno"));
- model.makeValue("root/hidden/reqfrminfo/reqfrmflagcd", opener.javascript.getParameter("SMLPR00100_reqfrmflagcd"));
- model.makeValue("root/hidden/reqfrminfo/prcpstatcd", "430");
- model.makeValue("root/hidden/reqfrminfo/reqhistno", "1");
- model.makeValue("root/hidden/reqfrminfo/scrnno", "50");
-
- lpzfExeReqFrmInfo("root/hidden/reqfrminfo", "", "1");
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.18 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방의뢰지 세부검체 처리 Function
- */
- function fSpcInfo(pSpcInfo, pFlagCd) {
-
- var sCheckChar = "Ⅴ";
- var aSpcInfoNm = "";
- var sIndexNo = "";
- var iFindNo = -1;
- var sMsg = "";
- var sRtnMsg = "";
- var iNewCnt = 0;
- var iNo = 0;
-
- //----------------
- switch (pFlagCd) {
- case "02" :
- aSpcInfoNm = new Array ("Routine Check", "Hormone Therapy", "Pregnancy", "Hx. of Gyn surgery", "Chemotherapy", "Postparturm", "Hx. of Abnormal PAP smear", "Radiation Therapy", "Viginal bleeding", "Menopause");
- iNewCnt = 3;
- break;
- case "03" :
- break;
- }
-
- //--------------------------------------------------------
- for (var iRowNo=0; iRowNo < aSpcInfoNm.length; iRowNo++) {
-
- sIndexNo = (iRowNo).toString().getLeftPad(1, "0");
- iFindNo = pSpcInfo.indexOf(sIndexNo);
- //------------------
- if (iFindNo == -1) {
- sMsg = aSpcInfoNm[iRowNo];
- } else {
- sMsg = sCheckChar + " " + aSpcInfoNm[iRowNo];
- }
-
- //---------------------------------------------
- sRtnMsg += sMsg.toString().getLeftPad(35, " ");
- iNo += 1;
-
- //-------------------
- if (iNo == iNewCnt) {
- sRtnMsg += "\n";
- iNo = 0;
- }
- }
- //-------------
- return sRtnMsg;
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 닫기버튼 처리 Function
- */
- function fExeCls() {
- window.close();
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문정보 변경에 따른 초기값 검색 처리 함수
- */
- function fExeChangeCnstInfo() {
-
- model.removeNodeset("/root/send");
-
- //----------------------------------------------------------------------------
- if (model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd") == "1001") {
- cmb_cnstdrid.choices.itemset.attribute("nodeset") = "/root/init/userinfo/userinfolist[jobkindcd='1']";
- cmb_cnstdrid.choices.itemset.label.attribute("ref") = "usernm";
- cmb_cnstdrid.choices.itemset.value.attribute("ref") = "userid";
- } else {
- cmb_cnstdrid.choices.itemset.attribute("nodeset") = "/root/init/cnstdr/cnsltlist";
- cmb_cnstdrid.choices.itemset.label.attribute("ref") = "cnstdrnm";
- cmb_cnstdrid.choices.itemset.value.attribute("ref") = "cnstdrid";
- }
-
- //---------------------
- cmb_cnstdrid.refresh();
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문정보 검색 처리 함수
- */
- function fGetCnstRsltList() {
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", model.getValue("/root/init/testrslt/patinfo/ptno"));
- submit("TRLPR00301");
-
- //------------------------------------------------------------
- if (getNodesetCount("/root/main/cnstrslt/cnstrsltlist") > 0) {
- cmb_cnstdg.select(0);
- copyNodesetType("/root/main/cnstrslt/cnstrsltinfo", "/root/main/cnstrslt/cnstrsltlist[cnstdg='" + model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstdg") + "']");
- } else {
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/ptno", model.getValue("/root/init/testrslt/patinfo/ptno"));
- }
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문결과 차수변경 처리 함수
- */
- function fExeDgChange() {
- copyNodesetType("/root/main/cnstrslt/cnstrsltinfo", "/root/main/cnstrslt/cnstrsltlist[cnstdg='" + model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstdg") + "']");
- fExeOutCnstChoi();
-
- model.refresh();
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문결과 저장 처리 함수
- */
- function fExeCnstRslt() {
-
- var sCnstFlagCd = model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd");
-
- //-----------------------------------------
- // 자문정보는 반드시 1개만 선택되어야 한다.
- if (sCnstFlagCd.length > 4 ) {
- messageBox("자문정보는 1개이상 선택", "E001");
- return false;
- }
-
- //-----------------------------------------------------
- if (!isRequiredControls("cmb_trustdrid")) return false;
-
- //----------------------------
- // 의뢰 병리의사 선택여부 검사
- if (btn_incnst.selected == true) {
-
- //------------------------------------------------------
- //if (!isRequiredControls("cmb_cnsthospcd")) return false;
- if (!isRequiredControls("cmb_cnstdrid")) return false;
-
- } else if (btn_outcnst.selected == true) {
- if (!isRequiredControls("cbo_outdrchoi")) return false;
- } else {
- messageBox("원내 및 원외를 선택하여 주십시오!", "E000");
- return false;
- }
-
- //-----------------------------------------------------
- yesno = messageBox("신규로 저장하시겠습니까?", "S002"); // 6:yes, 7:no, 2:cancel
- if (yesno == "2") return false;
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
-
- //---------------------------------------------------------------
- model.copyNode("/root/send", "/root/main/cnstrslt/cnstrsltinfo");
- model.makeValue("/root/send/newflagcd", yesno);
- model.makeValue("/root/send/hospnm", getUserInfo("dutinstnm")); // 의뢰기관명
- model.makeValue("/root/send/trsmdrnm", cmb_trustdrid.label); // 의뢰자명
- model.makeValue("/root/send/incnstdrnm", cmb_cnstdrid.label); // 원내 자문의명
- model.makeValue("/root/send/outcnstdrnm", cbo_outdrchoi.label); // 원외 자문의명
- model.makeValue("/root/send/outcnstdrnm", cbo_outdrchoi.label); // 원외 자문의명
- model.makeValue("/root/send/pid", model.getValue("/root/init/testrslt/patinfo/pid")); // 등록번호
- model.makeValue("/root/send/patnm", model.getValue("/root/init/testrslt/patinfo/patnm")); // 환자명
- model.makeValue("/root/send/cntctelno", model.getValue("/root/init/cnstdr/cnsltlist[cnstdrid='"+model.getValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid")+"']/cntctelno")); // 환자명
- model.makeValue("/root/send/mpphonno", model.getValue("/root/init/userinfo/userinfolist[userid='"+model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstdrid")+"']/mpphonno")); // 환자명
- model.makeValue("/root/send/estmdiagstat", model.getValue("/root/main/cnstrslt/cnstrsltinfo/estmdiagstat"));
- //-----------
- setAlertOn();
- if ( yesno == "7"){
- var tcnstdg = model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstdg");
- //tcnstdg = Trim(tcnstdg);
- if (tcnstdg == ""){
- messageBox("자문번호가 있어야 수정저장가능합디다.","I000");
- return;
- }else{
- if (submit("TXLPR00301")) {
- window.close();
- }
- }
- }else{
- if (submit("TXLPR00301")) {
- window.close();
- }
- }
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2007.06.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 외부 자문의사 변경 처리 함수
- */
- function fExeCnstOutDrChange() {
-
- var strNode = "/root/main/cnstrslt/cnstrsltinfo";
- var sDrID = model.getValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid");
-
- model.makeValue(strNode+"/hosoutcnsthospnm", model.getValue("/root/init/cnstdr/cnsltlist[cnstdrid='" + sDrID + "']/hospnm"));
- model.makeValue(strNode+"/hosoutcnstdrnm", model.getValue("/root/init/cnstdr/cnsltlist[cnstdrid='" + sDrID + "']/cnstdrnm"));
- model.refresh();
- if ( model.getValue(strNode+"/hosoutcnsthospnm") == "기타"){
- model.toggle ("case_edit");
- }
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2008.01.10 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 원내자문구분 선택 처리 함수
- */
- function fExeOutCnstChoi() {
-
- var sCnstInfo = model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd");
- var aCnstInfo = sCnstInfo.split(" ");
-
- //-------------------------
- if (aCnstInfo.length > 1) {
- //messageBox("자문정보는 하나만 선택하셔야 합니다!", "E000");
- //return false;
- model.setValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd", aCnstInfo[1]);
- chk_cnstflagcd.refresh();
- }
-
- //----------------------------------------------------------------------------
- if (model.getValue("/root/main/cnstrslt/cnstrsltinfo/cnstflagcd") == "1001") {
- model.toggle("case_in");
- btn_incnst.selected = true;
-
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnsthospnm", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrnm", "");
- opt_hosoutcnsthospnm.refresh();
- cbo_outdrchoi.refresh();
-
- } else {
- model.toggle("case_out");
- btn_outcnst.selected = true;
-
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnsthospcd", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstdrid", "");
- model.makeValue("/root/main/cnstrslt/cnstrsltinfo/cnstdrnm", "");
- cmb_cnsthospcd.refresh();
- cmb_cnstdrid.refresh();
- opt_cnstdrnm.refresh();
- }
- }
-
- /* @group : 자문결과등록 팝업창
- * @ver : 2008.01.10 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문내용 출력 처리 함수
- */
- function fExeCnstPrnt() {
-
- var sPrntNode = "/root/main/prnt/cnstreqinfo";
- var sNode = "/root/main/cnstrslt/cnstrsltinfo";
- var sNode2 = "/root/init/testrslt/patinfo";
- var sSexAge = model.getValue(sNode2+"/sexage");
- var sTrsmDD = model.getValue(sNode+"/trsmdd");
- var sDiscussed = model.getValue(sNode+"/casedcuscd");
- var aDiscussed = "";
- var iDisCnt = 1;
- var sCnstFlagNm = "";
- var sResnNm = "";
- var sPtNo = model.getValue(sNode2+"/ptno");
-
- //------------------------------------------------
- // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
- aDiscussed = sDiscussed.split(" ");
- //-------------------------------------
- model.removeNodeset("/root/main/prnt");
- /*
- //--------------------------------
- model.makeNode("/root/main/prnt");
- model.makeNode(sPrntNode);
- model.makeNode(sPrntNode+"/discussed/discussedlist");
- */
-
- //------------------------------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount("/root/init/resncd/resncdlist"); iNo++) {
-
- if (model.getValue("/root/init/resncd/resncdlist["+iNo+"]/baseflagcd") == "J1") {
-
- //-------------------------------------------------------------------------
- sResnNm = model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncnts");
- if (model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd") == model.getValue(sNode+"/cnstflagcd")) {
- sCnstFlagNm += "◈ " + sResnNm.getRightPad(70, " ");
- } else {
- sCnstFlagNm += "◇ " + sResnNm.getRightPad(70, " ");
- }
-
- //-------------------
- if ((iNo % 2) == 0) {
- sCnstFlagNm += "\n";
- }
- } else {
- //--------------------------------------------------------------------------
- model.makeValue(sPrntNode+"/discussed/discussedlist["+iDisCnt+"]/val", "0");
-
- //--------------------------------------------------------
- for (var iRowNo=0; iRowNo < aDiscussed.length; iRowNo++) {
- if (aDiscussed[iRowNo] == "") {
- // Continue
- } else {
- if (model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncd") == aDiscussed[iRowNo]) {
- model.makeValue(sPrntNode+"/discussed/discussedlist["+iDisCnt+"]/val", "1");
- break;
- }
- }
- }
-
- //-----------------------------
- model.makeValue(sPrntNode+"/discussed/discussedlist["+iDisCnt+"]/nm", model.getValue("/root/init/resncd/resncdlist["+iNo+"]/resncnts"));
-
- //--------
- iDisCnt++;
- }
- }
-
-
-
- //model.makeValue(sPrntNode+"/title", model.getValue("/root/init/hospenv/hospenvinfo/cnsttitl"), true);
- model.makeValue(sPrntNode+"/title", "가톨릭대학교 의과대학 강남성모병원 병리과, 전화:(02)590-1603, 팩스:(02)592-4190", true);
- model.makeValue(sPrntNode+"/instcd", model.getValue(sNode2+"/instcd"), true);
- model.makeValue(sPrntNode+"/ptno", sPtNo.substr(0,(sPtNo.length-6)) + "-" + sPtNo.substr(3,6), true);
- model.makeValue(sPrntNode+"/pid", model.getValue(sNode2+"/pid"), true);
- model.makeValue(sPrntNode+"/patnm", model.getValue(sNode2+"/patnm"), true);
- model.makeValue(sPrntNode+"/spcnm", model.getValue(sNode2+"/spcnm"), true);
- model.makeValue(sPrntNode+"/estmdiag", model.getValue(sNode+"/estmdiagcnts"), true);
- model.makeValue(sPrntNode+"/cnstdiag", model.getValue(sNode+"/cnstdiagcnts"), true);
- model.makeValue(sPrntNode+"/cnstflagnm", sCnstFlagNm, true);
- model.makeValue(sPrntNode+"/trustdd", "발송일 : "+sTrsmDD.substr(0,4)+" 년 "+sTrsmDD.substr(4,2)+" 월 "+sTrsmDD.substr(6,2)+" 일");
- model.makeValue(sPrntNode+"/trustdrnm", cmb_trustdrid.label);
-
- if (btn_incnst.selected == true) {
- model.makeValue(sPrntNode+"/cnstdrnm", cmb_cnstdrid.label + "(" + cmb_cnsthospcd.label + ")");
- } else {
- model.makeValue(sPrntNode+"/cnstdrnm", cbo_outdrchoi.label + "(" +model.getValue(sNode+"/hosoutcnsthospnm") + ")");
- }
-
-
- model.makeValue(sPrntNode+"/age", sSexAge.substr(2,3));
-
- if (sSexAge.substr(0,1) == "M") {
- model.makeValue(sPrntNode+"/sexm", "1");
- model.makeValue(sPrntNode+"/sexf", "0");
- } else {
- model.makeValue(sPrntNode+"/sexm", "0");
- model.makeValue(sPrntNode+"/sexf", "1");
- }
-
- //---------------------------------------------------------------------------------------
- exeReportPreview("RPLPR00300", "XMLSTR", "", "", "true", "", "", "", "", "true", "", "");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="641" pageheight="728" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:685px; width:625px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="11" style="left:510; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCnstRslt();
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" navindex="12" style="left:569; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCls();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" navindex="10" style="left:0; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCnstPrnt();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:625; y2:0px; "/>
- </group>
- <group id="grp_biz" style="left:0px; top:0px; width:625px; height:680px; ">
- <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:46px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">환자정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:625px; y2:61px; "/>
- <caption id="caption3" class="tit_2" autoresize="true" style="left:5px; top:434px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">진단 (자문 병리의사)</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:450px; x2:625px; y2:451px; "/>
- <caption id="caption7" class="cell_1" style="left:186px; top:66px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">등록번호</caption>
- <output id="opt_pid" ref="/root/init/testrslt/patinfo/pid" class="output_fix" style="left:269px; top:67px; width:100px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:372px; top:66px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">환자명</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:90px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption5" class="cell_1" style="left:186px; top:90px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">주민번호</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:66px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">병리번호</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:114px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">병변위치</caption>
- <line id="line11" class="line_1" style="x1:0px; y1:344px; x2:625px; y2:344px; "/>
- <caption id="caption14" class="tit_2" autoresize="true" style="left:5px; top:329px; width:175px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">추정진단 (의뢰 병리의사)</caption>
- <textarea id="tar_estmdiag" ref="/root/main/cnstrslt/cnstrsltinfo/estmdiagcnts" navindex="8" style="left:0px; top:349px; width:625px; height:50px; "/>
- <caption id="caption15" class="cell_1" style="left:372px; top:90px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">접수일자</caption>
- <line id="line6" class="line_3" style="x1:0px; y1:136px; x2:625px; y2:136px; "/>
- <caption id="caption9" class="tit_2" autoresize="true" style="left:5px; top:146px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">자문정보</caption>
- <line id="line7" class="line_1" style="width:277; x1:0px; y1:161px; x2:277px; y2:161px; "/>
- <caption id="caption10" class="tit_2" autoresize="true" style="left:285px; top:146px; width:161px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">Case to be discussed</caption>
- <line id="line8" class="line_1" style="x1:280px; y1:161px; x2:623px; y2:161px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:240px; width:50px; height:23px; font-family:돋움; vertical-align:middle; ">발송일</caption>
- <caption id="caption16" class="cell_1" style="left:140px; top:240px; width:50px; height:23px; font-family:돋움; vertical-align:middle; ">진단일</caption>
- <input id="ipt_senddd" ref="/root/main/cnstrslt/cnstrsltinfo/trsmdd" class="input_default" navindex="6" inputtype="date" style="left:53px; top:241px; width:84px; height:19px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:199px; x2:250px; y2:199px; "/>
- <line id="line15" class="line_3" style="width:277; x1:0px; y1:262px; x2:277px; y2:262px; "/>
- <group id="grp_search" style="left:0px; top:0px; width:625px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:625px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption18" class="search_name" style="left:15px; top:10px; width:112px; height:17px; ">자문번호 :</caption>
- <select1 id="cmb_cnstdg" ref="/root/main/cnstrslt/cnstrsltinfo/cnstdg" class="combo_search" appearance="minimal" style="left:105px; top:9px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/cnstrslt/cnstrsltlist">
- <label ref="cnstdg"/>
- <value ref="cnstdg"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeDgChange();
- ]]>
- </script>
- </select1>
- </group>
- <select id="chk_cnstcasecd" ref="/root/main/cnstrslt/cnstrsltinfo/casedcuscd" navindex="2" overflow="visible" appearance="full" style="left:280px; top:166px; width:343px; height:154px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='J2']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select>
- <output id="opt_ptno" ref="/root/init/testrslt/patinfo/ptno" class="output_fix" style="left:83px; top:67px; width:100px; height:19px; "/>
- <output id="opt_patnm" ref="/root/init/testrslt/patinfo/patnm" class="output_fix" style="left:455px; top:67px; width:170px; height:19px; "/>
- <output id="opt_sexage" ref="/root/init/testrslt/patinfo/sexage" class="output_fix" style="left:83px; top:91px; width:100px; height:19px; "/>
- <output id="opt_rrgstno" ref="/root/init/testrslt/patinfo/rrgstno" class="output_fix" style="left:269px; top:91px; width:100px; height:19px; "/>
- <output id="acptdd" ref="/root/init/testrslt/patinfo/acptdd" class="output_fix" format="yyyy-mm-dd" style="left:455px; top:91px; width:170px; height:19px; "/>
- <output id="opt_spcnm" ref="/root/init/testrslt/patinfo/spcnm" class="output_fix" style="left:83px; top:115px; width:542px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:88px; x2:625px; y2:88px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:112px; x2:625px; y2:112px; "/>
- <input id="ipt_cnstdiagdd" ref="/root/main/cnstrslt/cnstrsltinfo/diagdd" class="input_default" navindex="7" inputtype="date" style="left:193px; top:241px; width:84px; height:19px; "/>
- <select1 id="cmb_trustdrid" ref="/root/main/cnstrslt/cnstrsltinfo/trsmid" disabled="false" appearance="minimal" style="left:170px; top:217px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_cnstflagcd" ref="/root/main/cnstrslt/cnstrsltinfo/cnstflagcd" navindex="1" overflow="visible" appearance="full" cols="1" rows="2" style="left:0px; top:166px; width:277; height:34px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='J1']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeOutCnstChoi();
- ]]>
- </script>
- </select>
- <textarea id="tar_cnstdiag" ref="/root/main/cnstrslt/cnstrsltinfo/cnstdiagcnts" navindex="9" style="left:0px; top:455px; width:625px; height:225px; "/>
- <caption id="cap_trustdrid" class="cell_1" style="left:0px; top:216px; width:50px; height:23px; font-family:돋움; vertical-align:middle; ">의뢰자</caption>
- <line id="line12" class="line_2" style="width:277; x1:0px; y1:238px; x2:277px; y2:238px; "/>
- <switch id="swt_cnstdrchoi" style="left:0px; top:292px; width:277px; height:27px; ">
- <case id="case_in">
- <select1 id="cmb_cnstdrid" ref="/root/main/cnstrslt/cnstrsltinfo/cnstdrid" class="combo_default" navindex="4" appearance="minimal" style="left:143px; top:3px; width:129px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_cnstdrnm" ref="/root/main/cnstrslt/cnstrsltinfo/cnstdrnm" class="output_fix" style="left:3; top:3px; width:137px; height:19px; "/>
- </case>
- <case id="case_out">
- <output id="opt_hosoutcnsthospnm" ref="/root/main/cnstrslt/cnstrsltinfo/hosoutcnsthospnm" class="output_fix" style="left:111px; top:3px; width:162px; height:19px; "/>
- <select1 id="cbo_outdrchoi" ref="/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid" class="combo_default" navindex="3" appearance="minimal" style="left:3; top:3px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cnstdr/cnsltlist">
- <label ref="cnstdrnm"/>
- <value ref="cnstdrid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeCnstOutDrChange();
- ]]>
- </script>
- </select1>
- </case>
- <case id="case_edit" selected="true">
- <select1 id="combo1" ref="/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid" class="combo_default" navindex="3" appearance="minimal" style="left:3; top:3px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cnstdr/cnsltlist">
- <label ref="cnstdrnm"/>
- <value ref="cnstdrid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeCnstOutDrChange();
- ]]>
- </script>
- </select1>
- <input id="output1" ref="/root/main/cnstrslt/cnstrsltinfo/hosoutcnsthospnm" appearance="input" style="left:111px; top:3px; width:162px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var strNode = "/root/main/cnstrslt/cnstrsltinfo";
- var sDrID = model.getValue("/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrid");
- model.makeValue(strNode+"/hosoutcnsthospnm", output1.currentText );
- model.refresh();
- ]]>
- </script>
- </input>
- </case>
- </switch>
- <input id="input1" ref="/root/main/cnstrslt/cnstrsltinfo/hosoutcnstdrnm" visibility="hidden" style="left:140px; top:140px; width:104px; height:19px; "/>
- <line id="line3" class="line_3" style="width:277; x1:0px; y1:320px; x2:620px; y2:320px; "/>
- <button id="btn_incnst" class="btn_sw" disabled="true" group="tab" selected="true" style="left:0px; top:270px; width:60px; height:22px; ">
- <caption>원내자문</caption>
- <toggle case="case_in" ev:event="DOMActivate"/>
- </button>
- <button id="btn_outcnst" class="btn_sw" disabled="true" group="tab" selected="true" style="left:61px; top:270px; width:60px; height:22px; ">
- <caption>원외자문</caption>
- <toggle case="case_out" ev:event="DOMActivate"/>
- </button>
- <button id="btn_reqfrm" class="btn2_letter5" style="left:550px; top:41px; width:75px; height:19px; ">
- <caption>의뢰지 보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReqFrmInfo();
- ]]>
- </script>
- </button>
- <caption id="cap_cnsthospcd" class="cell_1" visibility="hidden" style="left:190px; top:320px; width:55px; height:23px; font-family:돋움; vertical-align:middle; ">자문병원</caption>
- <caption id="cap_cnstdrid" class="cell_1" visibility="hidden" style="left:255px; top:320px; width:55px; height:23px; font-family:돋움; vertical-align:middle; ">자문의사</caption>
- <caption id="cap_outdrchoi" class="cell_1" visibility="hidden" style="left:320px; top:320px; width:55px; height:23px; font-family:돋움; vertical-align:middle; ">자문의사</caption>
- <group id="grp_prnt" visibility="hidden" style="left:275px; top:40px; width:40px; height:30px; "/>
- <select1 id="cmb_cnsthospcd" ref="/root/main/cnstrslt/cnstrsltinfo/cnsthospcd" class="combo_default" navindex="5" visibility="hidden" appearance="minimal" style="left:425px; top:325px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcdlist/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_trsmnm" ref="/root/main/cnstrslt/cnstrsltinfo/trsmnm" class="output_fix" style="left:53px; top:217px; width:114px; height:19px; "/>
- <select1 id="cmb_estmdiagstat" ref="/root/main/cnstrslt/cnstrsltinfo/estmdiagstat" appearance="minimal" style="left:0px; top:405px; width:275px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='J3']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/cnstrslt/cnstrsltinfo/estmdiagstat", cmb_estmdiagstat.value);
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|