123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPR00500_분자결과일괄등록.xrw
- * 설 명 : 분자결과 일괄등록
- * 설 계 자 : (주)에이씨케이 - 황상미
- * 작 성 자 : (주)에이씨케이 - 황상미
- * 작 성 일 : 2006.12.13
- * 수정이력 : 2007.06.07
- * 기 타 :
- -->
- <?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>
- <moleptno>
- <moleptnolist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <acptdd/>
- <pid/>
- <patnm/>
- <testcd/>
- <testnmlist/>
- <scrn/>
- <scanyn/>
- <formcd/>
- <cretno/>
- <specdrnm/>
- </moleptnolist>
- </moleptno>
- <molerslt>
- <bfptnolist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <rsltrgstdd/>
- <testrslt/>
- </bfptnolist>
- <prcplist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <testnm/>
- <spcnm/>
- <pid/>
- <patnm/>
- <bftestrslt/>
- <testrslt/>
- <sexage/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <wardroom/>
- <prcpdd/>
- <prcptm/>
- <acptdd/>
- <acpttm/>
- <rsltrgstdd/>
- <rsltrgsttm/>
- <acptno/>
- <orgprcpstatcd/>
- <testcd/>
- <spccd/>
- <prcpno/>
- <execprcpuniqno/>
- <rsltrgstno/>
- <rgstnm/>
- <orgtestrslt/>
- <inptdd/>
- <inpttm/>
- <extrpartcd/>
- <extrmthdcd/>
- <diagcd/>
- <cmtcnts/>
- <spckeepflagcd/>
- <conccaseflagcd/>
- <rslthideflagcd/>
- <preprsltflagcd/>
- <workflagcd/>
- <trandd/>
- <tranno/>
- <choi/>
- <rsltrgstid/>
- <acptitemno/>
- <orgacptstatcd/>
- <prcpgenrflag/>
- </prcplist>
- </molerslt>
- </main>
- <send/>
- <init>
- <pid/>
- <readdrid/>
- <acptfromdd/>
- <acpttodd/>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <rsltflagcd>1</rsltflagcd>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <testnmlist/>
- <testinfo>
- <testitemlist>
- <instcd/>
- <dispseqno/>
- <testcd/>
- <testengnm/>
- <testengabbr/>
- <testhngnm/>
- <testhngabbr/>
- <basepartcd/>
- <basepartnm/>
- <detlpartcd/>
- <detlpartnm/>
- <singletest_cnt/>
- </testitemlist>
- </testinfo>
- <testcdlist/>
- </init>
- <hidden>
- <readdrlist>
- <readdrid/>
- </readdrlist>
- </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" ev:event="xforms-ready">
- <![CDATA[
- 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="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/testinfo/testitemlist"/>
- <submission id="TRLPR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/moleptno/moleptnolist"/>
- <submission id="TRLPR01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/molerslt/prcplist"/>
- <submission id="TXLPR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 분자결과등록
- * @ver : 2007.06.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
-
- var sCurDate = "";
-
- model.removeNodeset("/root/main/moleptno/moleptnolist");
-
- //----------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101", false);
- submit("TRLPZ00102", false);
- submit("TRLPZ00109", false);
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- 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");
-
- //------------
- // 초기값 설정
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
- model.makeValue("/root/init/pid", ""); // 등록번호
- model.makeValue("/root/init/readdrid", ""); // 판독의사
- model.makeValue("/root/init/rsltflagcd", "1"); // 결과구분(0:전체,1:미검사,2:미확인,3:결과확인)
- model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수시작일자
- model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수종료일자
- model.makeValue("/root/init/ptnocode", "");
- model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/fromptno", "");
- model.makeValue("/root/init/toptno", "");
- cmb_readdrid.disabled = true;
- //---------------
- fGetTestCdList();
-
- //--------------
- model.refresh();
- }
-
-
- /* @group : 분자결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 분자검사목록 조회 함수
- */
- function fGetTestCdList() {
-
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/init/testinfo/testitemlist");
- model.makeValue("/root/send/delflagcd", "0"); // 조회조건 사용여부구분
- model.makeValue("/root/send/refflag", "1"); // 조회조건 조회구분
- model.makeValue("/root/send/refval", "PM"); // 조회조건 조회값
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- submit("TRLPC00401");
-
- //-----------------------------------------
- grd_testlist.fixedcellcheckbox(0,0) = true;
- }
-
- /* @group : 분자결과등록
- * @ver : 2007.06.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 분자병리 접수목록 조회 함수
- */
- function fGetMolePtNoList() {
-
- var sTemp = "";
- var sFromDD = model.getValue("/root/init/acptfromdd");
- var sToDD = model.getValue("/root/init/acpttodd");
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/molerslt/bfptnolist");
- model.removeNodeset("/root/main/molerslt/molersltlist");
- model.removeNodeset("/root/main/highrisk1/molersltlist");
- model.removeNodeset("/root/main/highrisk2/molersltlist");
- model.removeNodeset("/root/main/highrisk3/molersltlist");
- model.removeNodeset("/root/main/lowrisk1/molersltlist");
- model.removeNodeset("/root/main/lowrisk2/molersltlist");
-
- //------------------------------------------------
- if (model.getValue("/root/init/ptnocode") != "") {
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromyear") == "") {
- model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/fromyear");
- model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toyear") == "") {
- model.makeValue("/root/init/toyear", sToDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/toyear");
- model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000");
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toptno") == "") {
- model.makeValue("/root/init/toptno", "999999");
- } else {
- sTemp = model.getValue("/root/init/toptno");
- model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/pid", model.getValue("/root/init/pid"));
- model.makeValue("/root/send/ptno", model.getValue("/root/init/ptno"));
- model.makeValue("/root/send/readdrid", model.getValue("/root/init/readdrid"));
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
- model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
- model.makeValue("/root/send/rsltflagcd", model.getValue("/root/init/rsltflagcd"));
- model.makeValue("/root/send/workflagcd", "'1007'");
- model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
- model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
- model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
- model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
- model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
- model.makeValue("/root/send/workflagcd", "'1007'");
- model.makeValue("/root/send/bizflagcd", "M");
- model.makeValue("/root/send/testcdlist", model.getValue("/root/init/testcdlist"));
- submit("TRLPR00501");
- }
-
- /* @group : 분자결과등록
- * @ver : 2007.06.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 분자병리 접수목록 그리드 클릭 처리 함수
- */
- function fExePtNoGridClick(pRowNo) {
-
- if(pRowNo > 0 && grd_moleptnolist.isCell(event.target) && pRowNo >= grd_moleptnolist.fixedRows) {
- fExePtNoChoi(pRowNo);
- }
- }
-
- /* @group : 분자결과등록
- * @ver : 2008.02.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병리번호 선택 처리 함수
- */
- function fExePtNoChoi(pRowNo) {
- var sTestCd = "";
- var sTestCdList = "";
- var vTestCd = "";
- var sSrcNode = "/root/main/molerslt/molersltlist";
- var sNode = "/root/main/moleptno/moleptnolist";
-
- //----------------------------
- if (pRowNo <= 0) return false;
-
- //------------------------------------------------------------
- sTestCdList = model.getValue(sNode+"[" + pRowNo + "]/testcd");
- vTestCd = sTestCdList.split("▨");
-
- //---------------------------------------------------------
- for (var iRowNo=0; iRowNo < (vTestCd.length-1); iRowNo++) {
- sTestCd = "'" + vTestCd[iRowNo] + "', ";
- }
-
- //------------------
- if (sTestCd != "") {
- sTestCd = sTestCd.substr(0, (sTestCd.length-2));
- }
- //--------------
- // 상단정보 표시
- lpzfExeTopInfoDisp(model.getValue(sNode+"[" + pRowNo + "]/prcpdd"),
- model.getValue(sNode+"[" + pRowNo + "]/execprcpuniqno"),
- getUserInfo("dutplceinstcd"));
- //----------------------------------------------------
- model.removeNodeset("/root/main/molerslt/bfptnolist");
- model.removeNodeset("/root/main/molerslt/molersltlist");
-
- //-------------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/ptnocode", "");
- model.makeValue("/root/send/fromyear", "");
- model.makeValue("/root/send/fromptno", "");
- model.makeValue("/root/send/toyear", "");
- model.makeValue("/root/send/toptno", "");
- model.makeValue("/root/send/ptno", model.getValue(sNode+"[" + pRowNo + "]/ptno")); // 병리번호
- model.makeValue("/root/send/acptfromdd", model.getValue(sNode+"[" + pRowNo + "]/acptdd")); // 접수시작일자
- model.makeValue("/root/send/acpttodd", model.getValue(sNode+"[" + pRowNo + "]/acptdd")); // 접수종료일자
- model.makeValue("/root/send/refmthdcd", "2");
- model.makeValue("/root/send/pid", model.getValue(sNode+"[" + pRowNo + "]/pid")); // 등록번호
- model.makeValue("/root/send/testcdlist", sTestCd); // 검사코드목록
- submit("TRLPR01901");
-
- grd_prcplist.colstyle(7, "data", "background-color") = "#ffff99";
-
- //판독의사 set
- model.setValue("/root/hidden/readdrlist/readdrid", model.getValue("/root/main/molerslt/prcplist/readdrid"));
- cmb_readdr.refresh();
- }
-
-
- /* @group : 분자결과등록
- * @ver : 2007.06.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 분자병리 결과등록 처리 함수
- */
- function fExeRsltSave() {
-
- var sNode = "/root/main/molerslt/prcplist";
- var iMaxRowCnt = 0;
-
- //-------------------------
- grd_prcplist.clearStatus();
-
- //----------------------------------
- iMaxRowCnt = getNodesetCount(sNode);
- for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
-
- //------------------------------------------------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/testrslt") != model.getValue(sNode+"["+iNo+"]/orgtestrslt")) {
- grd_prcplist.addStatus(iNo, "insert");
- model.setValue(sNode+"["+iNo+"]/choi", "true");
- model.setValue(sNode+"["+iNo+"]/rsltrgstid", getUserInfo("userid"));
- model.makeValue(sNode+"["+iNo+"]/scrnid", "SMLPR02100");
- bState = true;
-
- if(model.getValue("/root/hidden/readdrlist/readdrid") != "" &&
- model.getValue("/root/hidden/readdrlist/readdrid") != "-" &&
- model.getValue("/root/hidden/readdrlist/readdrid") != "A0" ) {
- model.makeValue(sNode+"["+iNo+"]/readdrid", model.getValue("/root/hidden/readdrlist/readdrid"));
- } else {
- model.makeValue(sNode+"["+iNo+"]/readdrid", "-");
- }
- }
- }
-
- //------------
- if (!bState) {
- messageBox("변경된 결과가 없습니다! 저장", "E001");
- return false;
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/moletestlist", grd_prcplist.getUpdateData());
-
- //-------------------------
- if (submit("TXLPR00103")) {
- model.removeNodeset(sNode+"[choi='true']");
-
- }
-
- //---------------------
- grd_prcplist.refresh();
- }
-
- /* @group : 분자결과등록
- * @ver : 2007.06.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과구분 변경 처리 함수
- */
- function fExeRsltFlagChange() {
-
- switch (model.getValue("/root/init/rsltflagcd")) {
- case "0" : cmb_readdrid.disabled = false;
- break;
- case "1" : cmb_readdrid.disabled = true;
- break;
- case "2" : cmb_readdrid.disabled = true;
- break;
- case "3" : cmb_readdrid.disabled = false;
- break;
- }
- }
-
- function fExeRefValKeyPress() {
- if(event.keyCode == 13) {
- model.setValue("/root/init/pid", ipt_pid.currentText);
- ipt_pid.refresh();
-
- //-----------------
- fGetMolePtNoList();
- }
- }
-
- function fExeTestItemChoi() {
-
- var iFindNo = 0;
- var sTestCd = "";
- var sTestNm = "";
- var bState = false;
- var sNode = "/root/init/testinfo/testitemlist";
- //-------------------------------------------
- iFindNo = grd_testlist.findRow("true", 1, 0);
- if (Number(iFindNo) <= 0) {
- model.makeValue("/root/init/testcdlist", "");
- model.makeValue("/root/init/testnmlist", "");
- opt_testnmlist.refresh();
- grp_testlist.visible = false;
- return false;
- }
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
-
- if (bState) {
- sTestCd += ", '" + model.getValue(sNode+"["+iNo+"]/testcd") + "'";
- sTestNm += ", " + model.getValue(sNode+"["+iNo+"]/testengnm");
- } else {
- sTestCd += "'" + model.getValue(sNode+"["+iNo+"]/testcd") + "'";
- sTestNm += model.getValue(sNode+"["+iNo+"]/testengnm");
- bState = true;
- }
- }
- }
-
- //------------------------------------------------
- model.makeValue("/root/init/testcdlist", sTestCd);
- model.makeValue("/root/init/testnmlist", sTestNm);
- opt_testnmlist.refresh();
- grp_testlist.visible = false;
- }
-
- /* @group : 환자별 결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사결과 입력 시 처리 Function
- */
- function fExeRsltInptKeyPress() {
-
- if (event.keyCode == 13) {
-
- //--------------------
- fExeRsltChangeColor();
-
- //------------------------------------------------------------------------
- if (grd_prcplist.row == getNodesetCount("/root/main/molerslt/prcplist")) {
- return false;
- } else {
- grd_prcplist.row = Number(grd_prcplist.row) + 1;
- }
- }
- }
-
- /* @group : 환자별 결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사결과 입력 시 줄 색 변경 처리 Function
- */
- function fExeRsltChangeColor() {
-
-
- var iRowNo = grd_prcplist.row;
- var iColNo = grd_prcplist.col;
- var sNode = "/root/main/molerslt/prcplist";
-
- //---------------
- switch (iColNo) {
- case 8 :
- break;
- }
-
- //------------------------------------------------------------------------------------------------------
- if (model.getValue(sNode+"["+iRowNo+"]/testrslt") != model.getValue(sNode+"["+iRowNo+"]/orgtestrslt")) {
- grd_prcplist.rowstyle(iRowNo, "data", "background-color") = "#99ffcc";
- } else {
- grd_prcplist.rowstyle(iRowNo, "data", "background-color") = "#ffffff";
- }
- //---------------------
- grd_prcplist.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:140px; height:14px; ">환자별 결과등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="group2" 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="caption1" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <line id="line1" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption13" class="search_name" style="left:780px; top:33px; width:86px; height:17px; ">결과구분 :</caption>
- <caption id="caption15" class="search_name" style="left:780px; top:9px; width:86px; height:17px; ">판독의사 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1123px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetMolePtNoList();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/init/pid" class="input_search" navindex="1" style="left:107px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPress();
- ]]>
- </script>
- </input>
- <select1 id="cmb_readdrid" ref="/root/init/readdrid" class="combo_search" navindex="3" appearance="minimal" style="left:868px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_rsltflagcd" ref="/root/init/rsltflagcd" class="radio_search" navindex="6" appearance="full" cols="4" rows="1" overflow="visible" style="left:868px; top:34px; width:225px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>미검사</label>
- <value>1</value>
- </item>
- <item>
- <label>미확인</label>
- <value>2</value>
- </item>
- <item>
- <label>결과완료</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeRsltFlagChange();
- ]]>
- </script>
- </select1>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:107px; top:33px; width:151px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:291px; top:33px; width:50px; height:19px; "/>
- <caption id="caption12" class="search_no_b" style="left:648px; top:8px; width:12px; height:17px; ">~</caption>
- <caption id="caption14" class="search_name" style="left:16px; top:34px; width:86px; height:17px; ">병리번호 :</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:389px; top:33px; width:50px; height:19px; "/>
- <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="5" inputtype="date" style="left:663px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_toyear, "/root/init/acpttodd", "/root/init/toyear");
- ]]>
- </script>
- </input>
- <caption id="caption17" class="search_no_b" style="left:344px; top:33px; width:12px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:456px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:261px; top:33px; width:27px; height:19px; "/>
- <input id="ipt_acptfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="4" inputtype="date" style="left:545px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
- ]]>
- </script>
- </input>
- <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:359px; top:33px; width:27px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:456px; top:34px; width:86px; height:17px; ">검사코드 :</caption>
- <output id="opt_testnmlist" ref="/root/init/testnmlist" style="left:545px; top:33px; width:200px; height:19px; border-color:#000000; border-style:solid; "/>
- <button id="btn_bloc" style="left:749px; top:33px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_testlist.visible = true;
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_moleptnolist" nodeset="/root/main/moleptno/moleptnolist" caption="instcd^ptno^병리번호^동의서^접수일^등록번호^환자명^검사코드^검사종목^scanyn^formcd^cretno^선택진료의" colsep="^" colwidth="0, 0, 80, 84, 72, 72, 72, 0, 204, 0, 0, 0, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="8" style="left:0px; top:100px; width:540px; height:642px; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="scrn"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col ref="testcd"/>
- <col ref="testnmlist"/>
- <col ref="sacnyn"/>
- <col ref="formcd"/>
- <col ref="cretno"/>
- <col ref="specdrnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //동의서 컬럼을 클릭하였을 경우 스캔한 동의서가 있을 경우 스캔 이미지를 조회한다.
- if ( (grd_moleptnolist.row >= grd_moleptnolist.fixedRows) && (grd_moleptnolist.isCell(event.target)) && grd_moleptnolist.col == grd_moleptnolist.colRef("scrn")) {
- //스캔한 동의서가 있을 경우 스캔 이미지를 조회한다.
- if(model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/scanyn") == "Y"){
-
- //================================================================================================
- //pid : 환자번호
- //orddeptcd : 진료과 코드
- //indd : 입(내)원일
- //docucd : 서식코드
- //ioflag : 입원/외래
- //cmc_cretno : 생성번호
- //================================================================================================
- model.resetInstanceNode("/root/send/iemr");
-
- var prcpgenrflag = model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/prcpgenrflag");
-
- /* if((prcpgenrflag == "O") ||(prcpgenrflag == "S")) {
- prcpgenrflag = "O";
- } else {
- prcpgenrflag = "I";
- }*/
-
- model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/pid"));
- model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/orddeptcd"));
- model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/orddd"));
- model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/formcd"));
- model.makeValue("/root/send/iemr/ioflag", prcpgenrflag);
- model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/moleptno/moleptnolist["+ grd_moleptnolist.row +"]/cretno"));
- model.makeValue("/root/send/iemr/cmc_spcid", "");
- model.makeValue("/root/send/iemr/cmc_orddate", "");
- model.makeValue("/root/send/iemr/cmc_orderseqno", "");
-
- if(window.children.item("imgemrviewer") == null) {
- open("SSMRC03110", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp")
- //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
-
- } else {
- fExePtNoGridClick(grd_moleptnolist.row);
- }
- } else {
- fExePtNoGridClick(grd_moleptnolist.row);
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:80px; width:111px; height:14px; ">병리번호 목록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:95; x2:540px; y2:95; "/>
- <output id="output1" ref="/root/init/testcdlist" visibility="hidden" style="left:325px; top:75px; width:270px; height:19px; "/>
- <datagrid id="grd_bfrsltlist" nodeset="/root/main/molerslt/bfptnolist" caption="instcd^ptno^병리번호^결과일자^결과값" colsep="^" colwidth="0, 0, 80, 80, 449" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="17" style="left:544px; top:558px; width:649px; height:184px; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col class="text_center" ref="rsltrgstdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="testrslt"/>
- </datagrid>
- <line id="line11" class="line_1" style="x1:544px; y1:553px; x2:1193px; y2:553px; "/>
- <caption id="caption16" class="tit_2" style="left:549px; top:539px; width:128px; height:13px; ">이전결과</caption>
- <line id="line3" class="line_1" style="x1:544px; y1:95px; x2:1193px; y2:95px; "/>
- <caption id="caption3" class="tit_2" style="left:549px; top:81px; width:128px; height:14px; ">검사별 결과</caption>
- <datagrid id="grd_prcplist" nodeset="/root/main/molerslt/prcplist" class="datagrid2" caption="instcd^ptno^병리번호^검사명^검체명^등록번호^성명^이전결과^결과^cncrjudgflagcd^성별
나이^orddeptcd^진료과^orddrid^진료의^병동/병실^처방일자^처방시간^접수일자^접수시간^결과일자^결과시간^접수번호^orgprcpstatcd^testcd^spccd^prcpno^execprcpuniqno^rsltrgstno^등록자^orgtestrslt^inptdd^inpttm^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^choi^rsltrgstid^acptitemno^orgacptstatcd^prcpgenrflag^caption12^caption13^rsltcnts5^scrnid^readdrid" colsep="^" colwidth="0, 0, 0, 326, 0, 0, 0, 150, 150, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="9" style="left:544px; top:100px; width:649px; height:430px; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col class="text_center" ref="pid"/>
- <col ref="patnm"/>
- <col class="text_right" ref="bftestrslt"/>
- <col class="text_right" ref="testrslt" type="input"/>
- <col ref="cncrjudgflagcd" visibility="hidden"/>
- <col class="text_center" ref="sexage"/>
- <col ref="orddeptcd"/>
- <col class="text_center" ref="orddeptnm"/>
- <col ref="orddrid"/>
- <col class="text_center" ref="orddrnm"/>
- <col class="text_center" ref="wardroom"/>
- <col ref="prcpdd"/>
- <col ref="prcptm"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd"/>
- <col class="text_center" ref="acpttm" format="hh:nn:ss"/>
- <col class="text_center" ref="rsltrgstdd" format="yyyy-mm-dd"/>
- <col class="text_center" ref="rsltrgsttm" format="hh:nn:ss"/>
- <col ref="acptno"/>
- <col ref="orgprcpstatcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="prcpno"/>
- <col ref="execprcpuniqno"/>
- <col ref="rsltrgstno"/>
- <col class="text_center" ref="rgstnm"/>
- <col ref="orgtestrslt"/>
- <col ref="inptdd"/>
- <col ref="inpttm"/>
- <col ref="extrpartcd"/>
- <col ref="extrmthdcd"/>
- <col ref="diagcd"/>
- <col ref="cmtcnts"/>
- <col ref="spckeepflagcd"/>
- <col ref="conccaseflagcd"/>
- <col ref="rslthideflagcd"/>
- <col ref="preprsltflagcd"/>
- <col ref="workflagcd"/>
- <col ref="trandd"/>
- <col ref="tranno"/>
- <col ref="choi"/>
- <col ref="rsltrgstid"/>
- <col ref="acptitemno"/>
- <col ref="orgacptstatcd"/>
- <col ref="prcpgenrflag"/>
- <col ref="rsltcnts3"/>
- <col ref="rsltcnts4"/>
- <col ref="rsltcnts5"/>
- <col ref="scrnid"/>
- <col ref="readdrid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRsltInptKeyPress();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_readdr" ref="/root/hidden/readdrlist/readdrid" class="input_s_essential" appearance="minimal" style="left:730px; top:75px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption48" class="cell_1" style="left:655px; top:75px; width:75px; height:19px; vertical-align:middle; ">판독의 지정</caption>
- <group id="grp_testlist" visibility="hidden" style="left:545px; top:65px; width:555px; height:463px; ">
- <datagrid id="grd_testlist" nodeset="/root/init/testinfo/testitemlist" caption="선택^기관코드^코드^명칭^약어" colsep="^" colwidth="56, 0, 80, 200, 200" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:555px; height:437px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="testengnm"/>
- <col ref="testengabbr"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_cls" class="btn4_letter2" style="left:499px; top:440px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_testlist.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:440px; top:440px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTestItemChoi();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" navindex="18" style="left:1138; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsltSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|